.profile-detail {
    --detail-green: #0b6b2b;
    --detail-green-dark: #074b20;
    --detail-green-soft: #eef8f0;
    --detail-ink: #111c15;
    --detail-muted: #606b63;
    --detail-line: #e2e9e4;
    color: var(--detail-ink);
    background: #f7f9f7;
}

.profile-detail *,
.profile-detail *::before,
.profile-detail *::after {
    box-sizing: border-box;
}

.profile-detail-hero {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #123b22;
}

.profile-detail-hero__cover,
.profile-detail-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-detail-hero__cover {
    z-index: -2;
    object-fit: cover;
}

.profile-detail-hero__overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 38, 16, .94), rgba(4, 51, 21, .78) 46%, rgba(2, 27, 12, .42)),
        linear-gradient(0deg, rgba(2, 25, 11, .6), transparent 60%);
}

.profile-detail-hero__container {
    display: grid;
    min-height: 410px;
    grid-template-rows: auto 1fr;
    padding-top: 24px;
    padding-bottom: 24px;
}

.profile-detail-hero__back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-self: start;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(7px);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.profile-detail-hero__back:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

.profile-detail-hero__identity {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 28px;
    padding: 18px 0 8px;
}

.profile-detail-hero__portrait {
    position: relative;
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

.profile-detail-hero__portrait > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #e7f0e9;
    object-fit: cover;
}

.profile-verified-badge {
    position: absolute;
    right: 8px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #0c8a36;
    font-size: 12px;
}

.profile-detail-hero__copy {
    min-width: 0;
}

.profile-detail-hero__label,
.profile-section-label {
    display: block;
    color: #68c85d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.profile-detail-hero__copy h1 {
    margin: 7px 0 8px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
}

.profile-detail-hero__designation {
    margin: 0;
    color: #a9e4aa;
    font-size: 18px;
    font-weight: 700;
}

.profile-detail-hero__location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
}

.profile-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d9e5dc;
    border-radius: 50%;
    color: var(--detail-green);
    background: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.profile-social-links a:hover {
    color: #fff;
    background: var(--detail-green);
    transform: translateY(-2px);
}

.profile-social-links--light a {
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(7px);
}

.profile-social-links--light a:hover {
    color: var(--detail-green-dark);
    background: #fff;
}

.profile-detail__content {
    padding: 62px 0 84px;
}

.profile-detail__grid {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.profile-detail-card {
    border: 1px solid var(--detail-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(19, 49, 28, .055);
}

.profile-about {
    padding: 48px 58px 54px;
}

.profile-detail h2 {
    margin: 8px 0 30px;
    color: var(--detail-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 760;
    line-height: 1.2;
}

.profile-about__body {
    color: #3f4a42;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.profile-about__body > *:last-child {
    margin-bottom: 0;
}

.profile-about__body p {
    margin: 0 0 1.35em;
}

.profile-about__body h2,
.profile-about__body h3,
.profile-about__body h4 {
    margin: 1.65em 0 .65em;
    color: var(--detail-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.28;
}

.profile-about__body h2 {
    font-size: 1.65em;
}

.profile-about__body h3 {
    font-size: 1.38em;
}

.profile-about__body h4 {
    font-size: 1.16em;
}

.profile-about__body a {
    color: var(--detail-green);
    text-decoration-color: rgba(11, 107, 43, .35);
    text-underline-offset: 3px;
}

.profile-about__body a:hover {
    color: var(--detail-green-dark);
    text-decoration-color: currentColor;
}

.profile-about__body ul,
.profile-about__body ol {
    margin: 0 0 1.5em;
    padding-left: 1.55em;
}

.profile-about__body li {
    margin-bottom: .48em;
    padding-left: .25em;
}

.profile-about__body li::marker {
    color: var(--detail-green);
    font-weight: 700;
}

.profile-about__body blockquote {
    margin: 2em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--detail-green);
    border-radius: 0 12px 12px 0;
    color: #334139;
    background: var(--detail-green-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08em;
    font-style: italic;
}

.profile-about__body blockquote > *:last-child {
    margin-bottom: 0;
}

.profile-about__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 47, 26, .1);
}

.profile-about__body figure {
    max-width: 100%;
    margin: 32px 0;
}

.profile-about__body figure img {
    margin: 0 auto;
}

.profile-about__body figcaption {
    margin-top: 10px;
    color: #727d75;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.profile-about__body table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--detail-line);
    border-radius: 10px;
}

.profile-about__body th,
.profile-about__body td {
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid var(--detail-line);
    text-align: left;
    vertical-align: top;
}

.profile-about__body th {
    color: var(--detail-ink);
    background: var(--detail-green-soft);
    font-weight: 750;
}

.profile-about__body iframe,
.profile-about__body video {
    display: block;
    max-width: 100%;
    margin: 30px auto;
    border: 0;
    border-radius: 14px;
}

.profile-about__body pre {
    max-width: 100%;
    margin: 28px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 10px;
    color: #eaf5ed;
    background: #102b1a;
    font-size: .88em;
    line-height: 1.65;
}

.profile-latest,
.related-profiles {
    margin-top: 66px;
}

.profile-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 23px;
}

.profile-section-heading h2 {
    margin-bottom: 0;
}

.profile-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--detail-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.profile-section-heading > a:hover i {
    transform: translateX(3px);
}

.profile-section-heading > a i {
    font-size: 11px;
    transition: transform .2s ease;
}

.profile-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.profile-article-card {
    overflow: hidden;
    border: 1px solid var(--detail-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(18, 47, 26, .055);
    transition: box-shadow .25s ease, transform .25s ease;
}

.profile-article-card:hover {
    box-shadow: 0 15px 34px rgba(18, 55, 29, .11);
    transform: translateY(-4px);
}

.profile-article-card__image {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #e7efe9;
}

.profile-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.profile-article-card:hover .profile-article-card__image img {
    transform: scale(1.04);
}

.profile-article-card__content {
    padding: 20px 21px 22px;
}

.profile-article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    font-size: 10px;
}

.profile-article-card__meta a {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--detail-green);
    background: var(--detail-green-soft);
    font-weight: 750;
    text-decoration: none;
}

.profile-article-card__meta time {
    color: #7a847d;
}

.profile-article-card h3 {
    display: -webkit-box;
    min-height: 53px;
    margin: 0 0 15px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 740;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-article-card h3 a {
    color: var(--detail-ink);
    text-decoration: none;
}

.profile-article-card h3 a:hover {
    color: var(--detail-green);
}

.profile-article-card__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--detail-green);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.profile-empty-articles {
    padding: 60px 24px;
    border: 1px solid var(--detail-line);
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.profile-empty-articles > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    border-radius: 50%;
    color: var(--detail-green);
    background: var(--detail-green-soft);
    font-size: 22px;
}

.profile-empty-articles h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.profile-empty-articles p {
    margin: 0;
    color: var(--detail-muted);
    font-size: 13px;
}

.related-profiles__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.related-profile-card {
    overflow: hidden;
    border: 1px solid var(--detail-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(19, 49, 28, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.related-profile-card:hover {
    box-shadow: 0 14px 32px rgba(19, 49, 28, .1);
    transform: translateY(-4px);
}

.related-profile-card__image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #e7f0e9;
}

.related-profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-profile-card__content {
    padding: 19px 20px 21px;
}

.related-profile-card__content > span {
    color: var(--detail-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.related-profile-card h3 {
    margin: 6px 0 8px;
    font-size: 18px;
    font-weight: 750;
}

.related-profile-card h3 a {
    color: var(--detail-ink);
    text-decoration: none;
}

.related-profile-card p {
    min-height: 42px;
    margin: 0 0 13px;
    color: var(--detail-muted);
    font-size: 12px;
    line-height: 1.55;
}

.related-profile-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--detail-green);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .profile-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-profiles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .profile-detail .container {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-detail-hero,
    .profile-detail-hero__container {
        min-height: 410px;
    }

    .profile-detail-hero__identity {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 13px;
        padding: 12px 0 4px;
        text-align: center;
    }

    .profile-detail-hero__portrait {
        width: 124px;
        height: 124px;
        flex-basis: 124px;
    }

    .profile-verified-badge {
        right: 3px;
        bottom: 8px;
        width: 26px;
        height: 26px;
        border-width: 3px;
    }

    .profile-detail__content {
        padding: 20px 0 64px;
    }

    .profile-about {
        padding: 34px 28px 40px;
    }

    .profile-about__body {
        font-size: 16px;
    }

    .profile-latest,
    .related-profiles {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .profile-detail-hero,
    .profile-detail-hero__container {
        min-height: 390px;
    }

    .profile-detail-hero__container {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .profile-detail-hero__copy h1 {
        margin-top: 5px;
        font-size: clamp(32px, 10vw, 40px);
        overflow-wrap: anywhere;
    }

    .profile-detail-hero__designation {
        font-size: 16px;
    }

    .profile-about {
        padding: 20px 20px 34px;
    }

    .profile-detail h2 {
        margin-bottom: 24px;
    }

    .profile-about__body blockquote {
        padding: 18px 20px;
    }

    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-article-grid,
    .related-profiles__grid {
        grid-template-columns: 1fr;
    }

    .profile-article-card__image,
    .related-profile-card__image {
        height: 230px;
    }
}
