.profile-page {
    --profile-navy: #0b2d45;
    --profile-navy-light: #164f70;

    --profile-blue: #1f628e;
    --profile-blue-light: #eaf4f9;

    --profile-green: #56bd96;

    --profile-ink: #152e40;
    --profile-text: #455c6e;
    --profile-muted: #778a9a;

    --profile-line: #dce6ed;
    --profile-soft: #f5f8fa;

    --profile-shadow:
        0 18px 50px rgba(14, 43, 64, 0.08);

    color: var(--profile-text);
    background: #ffffff;
    overflow: clip;
}


.profile-page *,
.profile-page *::before,
.profile-page *::after {
    box-sizing: border-box;
}


.profile-page a {
    text-decoration: none;
}


.profile-page section[id] {
    scroll-margin-top: 145px;
}



/* ============================================================
   HERO PROFILE
============================================================ */

.profile-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 72px 0 78px;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            #09283d 0%,
            #103d5d 60%,
            #175475 100%
        );
}


.profile-masthead-pattern {
    position: absolute;
    inset: 0;

    z-index: -1;

    opacity: 0.14;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.38) 1px,
            transparent 1px
        );

    background-size: 27px 27px;
}


.profile-masthead::after {
    content: '';

    position: absolute;

    right: -180px;
    bottom: -270px;

    z-index: -1;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}



/* ============================================================
   BREADCRUMB
============================================================ */

.profile-breadcrumb {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 36px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.78rem;
    font-weight: 600;
}


.profile-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}


.profile-breadcrumb a:hover {
    color: #ffffff;
}


.profile-breadcrumb i {
    font-size: 0.55rem;
}



/* ============================================================
   HERO CONTENT
============================================================ */

.profile-masthead-content {
    max-width: 820px;
}


.profile-eyebrow,
.profile-section-index {
    display: block;

    margin-bottom: 11px;

    color: var(--profile-blue);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


.profile-masthead .profile-eyebrow {
    color: #8fd8f5;
}


.profile-masthead h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            2.5rem,
            5vw,
            4.5rem
        );

    font-weight: 800;

    line-height: 1.04;

    letter-spacing: -0.055em;
}


.profile-masthead-content > p {
    max-width: 680px;

    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.96rem;

    line-height: 1.8;
}



/* ============================================================
   LOCAL NAVIGATION
============================================================ */

.profile-local-nav {
    position: sticky;

    top: 78px;

    z-index: 800;

    border-bottom:
        1px solid
        var(--profile-line);

    background:
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.profile-local-nav-inner {
    display: flex;
    align-items: center;

    gap: 34px;

    overflow-x: auto;

    scrollbar-width: none;
}


.profile-local-nav-inner::-webkit-scrollbar {
    display: none;
}


.profile-local-nav a {
    position: relative;

    flex-shrink: 0;

    padding: 19px 0 17px;

    color: var(--profile-muted);

    font-size: 0.82rem;
    font-weight: 700;

    white-space: nowrap;
}


.profile-local-nav a::after {
    content: '';

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 2px;

    background: var(--profile-blue);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.2s ease;
}


.profile-local-nav a:hover {
    color: var(--profile-blue);
}


.profile-local-nav a:hover::after {
    transform: scaleX(1);
}



/* ============================================================
   GLOBAL SECTION
============================================================ */

.profile-section {
    padding: 90px 0;
}


.profile-section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(260px, 0.75fr);

    align-items: end;

    gap: 65px;

    margin-bottom: 44px;
}


.profile-section-heading h2,
.profile-overview-copy h2,
.profile-contact-intro h2 {
    margin: 0;

    color: var(--profile-ink);

    font-size:
        clamp(
            2rem,
            4vw,
            3.1rem
        );

    font-weight: 800;

    line-height: 1.13;

    letter-spacing: -0.045em;
}


.profile-section-heading > p {
    margin: 0;

    color: var(--profile-muted);

    font-size: 0.9rem;

    line-height: 1.8;
}



/* ============================================================
   OVERVIEW
============================================================ */

.profile-overview {
    padding: 78px 0 82px;

    background:
        linear-gradient(
            180deg,
            #f4f8fa 0%,
            #f7fafc 100%
        );
}


/* ============================================================
   OVERVIEW CARD
============================================================ */

.profile-overview-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 0.94fr)
        minmax(430px, 1.06fr);

    align-items: stretch;

    min-height: 390px;

    overflow: hidden;

    border:
        1px solid
        rgba(31, 98, 142, 0.10);

    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 22px 58px
        rgba(14, 43, 64, 0.09);
}


/* ============================================================
   TEKS OVERVIEW
============================================================ */

.profile-overview-copy {
    position: relative;

    z-index: 4;

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    max-width: none;

    padding:
        46px
        34px
        44px
        46px;

    /*
     * Area putih tetap dominan,
     * tetapi ujung kanan dibuat transparan tipis
     * agar bertemu foto secara natural.
     */
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 86%,
            rgba(255, 255, 255, 0.96) 92%,
            rgba(255, 255, 255, 0.72) 97%,
            rgba(255, 255, 255, 0.18) 100%
        );
}


.profile-overview-copy .profile-section-index {
    width: fit-content;

    margin-bottom: 14px;

    padding:
        7px 11px;

    border:
        1px solid
        rgba(31, 98, 142, 0.12);

    border-radius: 999px;

    color: var(--profile-blue);

    background: #f3f9fc;

    font-size: 0.62rem;

    letter-spacing: 0.10em;
}


.profile-overview-copy h2 {
    max-width: 540px;

    margin: 0;

    color: var(--profile-ink);

    font-size:
        clamp(
            2.25rem,
            4.6vw,
            3.85rem
        );

    font-weight: 800;

    line-height: 1.06;

    letter-spacing: -0.052em;
}


.profile-overview-copy p {
    max-width: 560px;

    margin: 21px 0 0;

    color: var(--profile-muted);

    font-size: 0.94rem;

    line-height: 1.9;
}


/* ============================================================
   FOTO KANTOR DESA
============================================================ */

.profile-office-card {
    position: relative;

    z-index: 1;

    min-width: 0;

    margin: 0;
}


.profile-office-photo {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 390px;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    background: #e9f2f6;

    box-shadow: none;
}


.profile-office-photo img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    opacity: 0.99;

    filter:
        saturate(0.98)
        contrast(1.01)
        brightness(1.01);

    transform:
        scale(1.01);

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


.profile-office-card:hover
.profile-office-photo img {
    transform:
        scale(1.025);
}


/* ============================================================
   FADE FOTO - LEBIH TIPIS / NATURAL
============================================================ */

.profile-office-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    /*
     * Fade hanya berada dekat pertemuan teks dan foto.
     * Tidak lagi menutupi bagian tengah foto.
     */
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.64) 0%,
            rgba(255, 255, 255, 0.42) 8%,
            rgba(255, 255, 255, 0.22) 16%,
            rgba(255, 255, 255, 0.09) 25%,
            rgba(255, 255, 255, 0.025) 34%,
            rgba(255, 255, 255, 0.00) 43%
        ),
        linear-gradient(
            180deg,
            rgba(14, 45, 64, 0.00) 68%,
            rgba(14, 45, 64, 0.07) 100%
        );

    pointer-events: none;
}


/* ============================================================
   LABEL KANTOR DESA
============================================================ */

.profile-office-caption {
    position: absolute;

    z-index: 3;

    right: 22px;
    bottom: 20px;

    left: auto;

    max-width: 300px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        11px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.64);

    border-radius: 17px;

    color: var(--profile-ink);

    background:
        rgba(255, 255, 255, 0.90);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 12px 30px
        rgba(14, 43, 64, 0.12);
}


.profile-office-caption-icon {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    flex:
        0 0 40px;

    border:
        1px solid
        rgba(31, 98, 142, 0.10);

    border-radius: 11px;

    color: var(--profile-blue);

    background:
        var(--profile-blue-light);
}


.profile-office-caption > div {
    min-width: 0;

    display: flex;

    flex-direction: column;
}


.profile-office-caption small {
    color: var(--profile-muted);

    font-size: 0.53rem;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.profile-office-caption strong {
    margin-top: 2px;

    color: var(--profile-ink);

    font-size: 0.88rem;

    font-weight: 800;
}


.profile-office-caption div > span {
    margin-top: 2px;

    color: var(--profile-muted);

    font-size: 0.61rem;

    line-height: 1.45;
}


/* ============================================================
   IDENTITAS DESA
============================================================ */

.profile-identity-list {
    display: grid;

    margin: 0;

    overflow: hidden;

    border:
        1px solid
        var(--profile-line);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(14, 43, 64, 0.05);
}


.profile-identity-list-overview {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    margin-top: 24px;
}


.profile-identity-list > div {
    min-width: 0;

    padding:
        20px 22px;
}


.profile-identity-list-overview
> div:not(:last-child) {
    border-right:
        1px solid
        var(--profile-line);
}


.profile-identity-list dt {
    margin-bottom: 5px;

    color: var(--profile-muted);

    font-size: 0.65rem;

    font-weight: 750;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


.profile-identity-list dd {
    margin: 0;

    color: var(--profile-ink);

    font-size: 0.91rem;

    font-weight: 780;
}


/* ============================================================
   OVERVIEW TABLET
============================================================ */

@media (max-width: 991.98px) {

    .profile-overview-grid {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(360px, 1.1fr);

        min-height: 370px;
    }


    .profile-overview-copy {
        padding:
            38px
            25px
            38px
            34px;
    }


    .profile-office-photo {
        min-height: 370px;
    }


    .profile-office-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.58) 0%,
                rgba(255, 255, 255, 0.36) 9%,
                rgba(255, 255, 255, 0.17) 18%,
                rgba(255, 255, 255, 0.06) 28%,
                rgba(255, 255, 255, 0.00) 40%
            ),
            linear-gradient(
                180deg,
                rgba(14, 45, 64, 0.00) 72%,
                rgba(14, 45, 64, 0.07) 100%
            );
    }


    .profile-identity-list-overview {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .profile-identity-list-overview
    > div:not(:last-child) {
        border-right: 0;
    }


    .profile-identity-list-overview
    > div:nth-child(odd) {
        border-right:
            1px solid
            var(--profile-line);
    }


    .profile-identity-list-overview
    > div:nth-child(-n + 2) {
        border-bottom:
            1px solid
            var(--profile-line);
    }

}


/* ============================================================
   OVERVIEW MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .profile-overview {
        padding:
            62px 0 66px;
    }


    .profile-overview-grid {
        grid-template-columns: 1fr;

        min-height: auto;

        border-radius: 23px;
    }


    .profile-overview-copy {
        padding:
            30px 24px 27px;

        background: #ffffff;
    }


    .profile-overview-copy h2 {
        font-size:
            clamp(
                2rem,
                9vw,
                2.7rem
            );
    }


    .profile-office-photo {
        min-height: 285px;
    }


    /*
     * Di mobile, foto berada di bawah teks.
     * Fade dibuat vertikal dan tipis.
     */
    .profile-office-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.50) 0%,
                rgba(255, 255, 255, 0.27) 7%,
                rgba(255, 255, 255, 0.10) 15%,
                rgba(255, 255, 255, 0.025) 23%,
                rgba(255, 255, 255, 0.00) 32%
            ),
            linear-gradient(
                180deg,
                rgba(14, 45, 64, 0.00) 72%,
                rgba(14, 45, 64, 0.07) 100%
            );
    }


    .profile-office-caption {
        right: 15px;
        bottom: 15px;

        max-width:
            calc(100% - 30px);
    }


    .profile-identity-list-overview {
        grid-template-columns: 1fr;

        margin-top: 20px;
    }


    .profile-identity-list-overview > div,
    .profile-identity-list-overview
    > div:nth-child(odd),
    .profile-identity-list-overview
    > div:nth-child(-n + 2) {
        border-right: 0;

        border-bottom:
            1px solid
            var(--profile-line);
    }


    .profile-identity-list-overview
    > div:last-child {
        border-bottom: 0;
    }

}


/* ============================================================
   OVERVIEW SMALL MOBILE
============================================================ */

@media (max-width: 479.98px) {

    .profile-overview-grid {
        border-radius: 20px;
    }


    .profile-overview-copy {
        padding:
            27px 20px 24px;
    }


    .profile-overview-copy h2 {
        font-size: 2rem;
    }


    .profile-office-photo {
        min-height: 235px;
    }


    .profile-office-caption {
        gap: 9px;

        padding:
            9px 11px;

        border-radius: 14px;
    }


    .profile-office-caption-icon {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }


    .profile-office-caption strong {
        font-size: 0.78rem;
    }


    .profile-office-caption div > span {
        font-size: 0.57rem;
    }

}


/* ============================================================
   SEJARAH
============================================================ */

.profile-history {
    background: #ffffff;
}


.simple-history-card {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.42fr)
        minmax(0, 0.58fr);

    min-height: 470px;

    overflow: hidden;

    border:
        1px solid
        var(--profile-line);

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        var(--profile-shadow);
}



/* ============================================================
   HISTORY PHOTO
============================================================ */

.simple-history-photo {
    position: relative;

    min-height: 470px;

    overflow: hidden;

    background: var(--profile-navy);
}


.simple-history-photo img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.simple-history-card:hover
.simple-history-photo img {
    transform: scale(1.025);
}


.simple-history-photo-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(6, 28, 43, 0.02) 20%,
            rgba(6, 28, 43, 0.13) 48%,
            rgba(6, 28, 43, 0.82) 100%
        );
}


.simple-history-photo-info {
    position: absolute;

    z-index: 2;

    right: 28px;
    bottom: 28px;
    left: 28px;
}


.simple-history-photo-info > span {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.59rem;
    font-weight: 800;

    letter-spacing: 0.13em;
}


.simple-history-photo-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 2rem;
    font-weight: 800;

    letter-spacing: -0.04em;
}


.simple-history-photo-info p {
    margin: 5px 0 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.76rem;
}



/* ============================================================
   HISTORY CONTENT
============================================================ */

.simple-history-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        clamp(
            38px,
            5vw,
            62px
        );

    background: #ffffff;
}


.simple-history-label {
    display: block;

    margin-bottom: 10px;

    color: var(--profile-blue);

    font-size: 0.66rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.simple-history-content > h3 {
    max-width: 600px;

    margin: 0 0 23px;

    color: var(--profile-ink);

    font-size:
        clamp(
            1.5rem,
            2.5vw,
            2.05rem
        );

    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.035em;
}


.simple-history-text {
    max-width: 680px;
}


.simple-history-text p {
    margin: 0;

    color: var(--profile-text);

    font-size: 0.94rem;

    line-height: 1.9;
}


.simple-history-text p + p {
    margin-top: 16px;
}


.simple-history-location {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 27px;

    padding-top: 21px;

    border-top:
        1px solid
        var(--profile-line);

    color: var(--profile-muted);

    font-size: 0.74rem;
    font-weight: 600;
}


.simple-history-location i {
    color: var(--profile-blue);
}



/* ============================================================
   EMPTY STATE
============================================================ */

.profile-empty-state {
    display: flex;

    align-items: center;

    gap: 16px;

    color: var(--profile-muted);
}


.profile-empty-state > i {
    color: var(--profile-blue);

    font-size: 1.8rem;
}


.profile-empty-state > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.profile-empty-state strong {
    color: var(--profile-ink);
}


.profile-empty-state span {
    font-size: 0.85rem;

    line-height: 1.6;
}



/* ============================================================
   DEMOGRAFI
============================================================ */

.profile-demography {
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #09283d,
            #103f5d
        );
}


.profile-section-heading-light
.profile-section-index {
    color: #75c9e9;
}


.profile-section-heading-light h2 {
    color: #ffffff;
}


.profile-section-heading-light > p {
    color:
        rgba(255, 255, 255, 0.65);
}



/* ============================================================
   DEMOGRAPHY DASHBOARD
============================================================ */

.profile-demography-dashboard {
    display: grid;

    grid-template-columns:
        minmax(250px, 0.36fr)
        minmax(0, 0.64fr);

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.055);
}



/* ============================================================
   TOTAL POPULATION
============================================================ */

.profile-total-population {
    padding: 38px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.11);
}


.profile-total-population > span {
    display: block;

    color:
        rgba(255, 255, 255, 0.57);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.profile-total-population > strong {
    display: block;

    margin-top: 11px;

    color: #ffffff;

    font-size:
        clamp(
            3.2rem,
            6vw,
            5.2rem
        );

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.06em;
}


.profile-total-population > small {
    display: block;

    margin-top: 8px;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 0.78rem;
}



/* ============================================================
   STAFF
============================================================ */

.profile-staff-summary {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 36px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.11);
}


.profile-staff-summary > i {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: var(--profile-navy);

    background: var(--profile-green);
}


.profile-staff-summary div {
    display: flex;

    flex-direction: column;
}


.profile-staff-summary strong {
    color: #ffffff;

    font-size: 1.1rem;
}


.profile-staff-summary span {
    color:
        rgba(255, 255, 255, 0.54);

    font-size: 0.75rem;
}



/* ============================================================
   COMPOSITION
============================================================ */

.profile-composition {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 29px;

    padding:
        38px
        clamp(
            32px,
            5vw,
            64px
        );
}


.profile-composition-heading {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.profile-composition-heading > span {
    color: #ffffff;

    font-size: 0.9rem;

    font-weight: 750;
}


.profile-composition-heading > small {
    color:
        rgba(255, 255, 255, 0.5);

    font-size: 0.73rem;
}



/* ============================================================
   PROGRESS
============================================================ */

.profile-progress-item {
    display: flex;

    flex-direction: column;

    gap: 11px;
}


.profile-progress-label {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color:
        rgba(255, 255, 255, 0.74);

    font-size: 0.82rem;
}


.profile-progress-label span {
    display: flex;

    align-items: center;

    gap: 8px;
}


.profile-progress-label strong {
    color: #ffffff;

    font-size: 0.86rem;
}


.profile-progress-label small {
    margin-left: 5px;

    color:
        rgba(255, 255, 255, 0.5);
}


.profile-progress-track {
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.09);
}


.profile-progress-track span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #64b7dc,
            #91daf6
        );
}


.profile-progress-item-secondary
.profile-progress-track span {
    background:
        linear-gradient(
            90deg,
            #55b993,
            #91dec3
        );
}



/* ============================================================
   AGE
============================================================ */

.profile-age-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-top: 14px;
}


.profile-age-item {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 14px;

    padding: 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 17px;

    background:
        rgba(255, 255, 255, 0.045);
}


.profile-age-number {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: #8edcf7;

    background:
        rgba(142, 220, 247, 0.1);

    font-size: 0.7rem;
    font-weight: 800;
}


.profile-age-item > div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.profile-age-item small {
    color:
        rgba(255, 255, 255, 0.52);

    font-size: 0.69rem;
}


.profile-age-item strong {
    color: #ffffff;

    font-size: 0.88rem;
}


.profile-age-item > b {
    color: #ffffff;

    font-size: 0.92rem;
}


.profile-age-item-featured {
    border-color:
        rgba(85, 185, 147, 0.3);

    background:
        rgba(85, 185, 147, 0.09);
}



/* ============================================================
   VISI & MISI
============================================================ */

.profile-direction {
    background: #ffffff;
}


.direction-heading {
    margin-bottom: 42px;
}



/* ============================================================
   VISION CARD
============================================================ */

.vision-card {
    display: grid;

    grid-template-columns:
        minmax(300px, 0.4fr)
        minmax(0, 0.6fr);

    overflow: hidden;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #0b2d45 0%,
            #185575 100%
        );

    box-shadow:
        0 20px 52px
        rgba(11, 45, 69, 0.13);
}

.vision-main {
    display: flex;

    flex-direction: column;
    justify-content: flex-start;

    min-height: auto;

    padding:
        34px 38px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.12);
}



.vision-main-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.vision-main-header > span {
    color: #8ed7f3;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.vision-main-header i {
    width: 37px;
    height: 37px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    color: #aadff3;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 0.82rem;
}



/* ============================================================
   VISI CONTENT
============================================================ */

.vision-main-content {
    /*
     * Sebelumnya margin-top 55px.
     * Dihapus supaya tidak terjadi ruang kosong.
     */
    margin-top: 0;
}


.vision-main-content small {
    display: block;

    margin-bottom: 9px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 0.59rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.vision-main-content h3 {
    max-width: 470px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            1.35rem,
            2.3vw,
            2rem
        );

    font-weight: 750;

    line-height: 1.38;

    letter-spacing: -0.025em;
}


.vision-main-content p {
    max-width: 455px;

    margin:
        15px 0 0;

    color:
        rgba(255, 255, 255, 0.61);

    font-size: 1rem;

    line-height: 1.72;
}



/* ============================================================
   BAGIAN KANAN - MAJU
============================================================ */

.vision-maju {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        34px 38px;
}


.vision-maju-header {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 17px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;
}


.vision-maju-header strong {
    color: #ffffff;

    font-size: 0.72rem;

    letter-spacing: 0.06em;
}



/* ============================================================
   MAJU GRID
============================================================ */

.vision-maju-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.vision-maju-item {
    display: grid;

    grid-template-columns:
        36px
        minmax(0, 1fr);

    align-items: start;

    gap: 11px;

    min-height: 78px;

    padding:
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.055);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.vision-maju-item:hover {
    border-color:
        rgba(255, 255, 255, 0.16);

    background:
        rgba(255, 255, 255, 0.075);
}


.vision-maju-item > span {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    color: #123c56;

    background: #a8dcf2;

    font-size: 0.72rem;

    font-weight: 800;
}


.vision-maju-item p {
    margin:
        2px 0 0;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 0.96rem;

    line-height: 1.55;
}



/* ============================================================
   MISSION SECTION
============================================================ */

.mission-section {
    display: grid;

    grid-template-columns:
        minmax(250px, 0.34fr)
        minmax(0, 0.66fr);

    gap: 65px;

    margin-top: 66px;
}


.mission-heading {
    padding-top: 5px;
}


.mission-label {
    display: block;

    margin-bottom: 10px;

    color: var(--profile-blue);

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.mission-heading h3 {
    max-width: 350px;

    margin: 0;

    color: var(--profile-ink);

    font-size:
        clamp(
            1.4rem,
            2.3vw,
            1.85rem
        );

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.035em;
}


.mission-heading p {
    max-width: 350px;

    margin:
        15px 0 0;

    color: var(--profile-muted);

    font-size: 1rem;

    line-height: 1.75;
}



/* ============================================================
   MISSION LIST
============================================================ */

.mission-list {
    margin: 0;

    padding: 0;

    list-style: none;

    border-top:
        1px solid
        var(--profile-line);
}


.mission-list li {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr);

    align-items: start;

    gap: 15px;

    padding:
        17px 0;

    border-bottom:
        1px solid
        var(--profile-line);
}


.mission-number {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    color: var(--profile-blue);

    background:
        var(--profile-blue-light);

    font-size: 0.65rem;

    font-weight: 800;
}


.mission-list p {
    margin:
        5px 0 0;

    color: var(--profile-text);

    font-size: 1rem;

    line-height: 1.65;
}



/* ============================================================
   PERANGKAT DESA
============================================================ */

.profile-organization {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f5f8fa 0%,
            #f8fbfd 100%
        );
}


.profile-organization::before {
    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    top: -210px;
    right: -130px;

    border:
        1px solid
        rgba(31, 98, 142, 0.08);

    border-radius: 50%;

    pointer-events: none;
}


.profile-organization::after {
    content: '';

    position: absolute;

    width: 240px;
    height: 240px;

    bottom: -155px;
    left: -95px;

    border-radius: 50%;

    background:
        rgba(31, 98, 142, 0.035);

    pointer-events: none;
}


.profile-team-heading {
    position: relative;
    z-index: 2;

    margin-bottom: 46px;
}


.profile-team-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 24px;
}


/* ============================================================
   CARD PERANGKAT
============================================================ */

.profile-team-card {
    position: relative;

    min-width: 0;

    display: grid;

    grid-template-columns:
        168px
        minmax(0, 1fr);

    align-items: stretch;

    overflow: hidden;

    min-height: 218px;

    border:
        1px solid
        rgba(31, 98, 142, 0.12);

    border-radius: 25px;

    background: #ffffff;

    box-shadow:
        0 16px 42px
        rgba(14, 43, 64, 0.065);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


.profile-team-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(31, 98, 142, 0.22);

    box-shadow:
        0 24px 55px
        rgba(14, 43, 64, 0.105);
}


.profile-team-card-featured {
    border-color:
        rgba(31, 98, 142, 0.20);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 62%,
            #f0f7fb 100%
        );

    box-shadow:
        0 20px 48px
        rgba(14, 43, 64, 0.09);
}


/* ============================================================
   FOTO PERANGKAT
============================================================ */

.profile-team-photo-wrap {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #eaf4f9 0%,
            #f5f9fc 100%
        );
}


.profile-team-card-featured
.profile-team-photo-wrap {
    background:
        linear-gradient(
            145deg,
            #dceef7 0%,
            #edf7fb 100%
        );
}


.profile-team-photo {
    width: 124px;
    height: 154px;

    overflow: hidden;

    border:
        4px solid
        rgba(255, 255, 255, 0.92);

    border-radius: 20px;

    background: #dfeef5;

    box-shadow:
        0 12px 28px
        rgba(21, 63, 92, 0.12);
}


.profile-team-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;
}


.profile-team-photo-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: var(--profile-blue);

    background:
        linear-gradient(
            145deg,
            #eef7fb,
            #d9ebf4
        );

    font-size: 2rem;
}


.profile-team-featured-badge {
    position: absolute;

    right: 12px;
    bottom: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 29px;

    padding: 5px 9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.7);

    border-radius: 999px;

    color: #ffffff;

    background:
        rgba(11, 45, 69, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-size: 0.61rem;
    font-weight: 800;

    letter-spacing: 0.04em;
}


.profile-team-featured-badge i {
    color: #9bdcf6;

    font-size: 0.57rem;
}


/* ============================================================
   ISI PERANGKAT
============================================================ */

.profile-team-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        32px 34px 31px;
}


.profile-team-role {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    margin-bottom: 12px;

    padding:
        6px 10px;

    border-radius: 999px;

    color: var(--profile-blue);

    background: var(--profile-blue-light);

    font-size: 0.64rem;
    font-weight: 850;

    letter-spacing: 0.075em;
    line-height: 1.2;

    text-transform: uppercase;
}


.profile-team-card-featured
.profile-team-role {
    color: #ffffff;

    background: var(--profile-blue);
}


.profile-team-content h3 {
    max-width: 420px;

    margin: 0;

    color: var(--profile-ink);

    font-size:
        clamp(
            1.12rem,
            1.7vw,
            1.42rem
        );

    font-weight: 800;

    line-height: 1.35;

    letter-spacing: -0.025em;
}


.profile-team-content > p {
    margin:
        7px 0 0;

    color: var(--profile-muted);

    font-size: 0.79rem;

    line-height: 1.55;
}


.profile-team-meta {
    display: flex;

    flex-wrap: wrap;

    gap:
        8px 16px;

    margin-top: 20px;

    padding-top: 16px;

    border-top:
        1px solid
        var(--profile-line);
}


.profile-team-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #7b8d9a;

    font-size: 0.68rem;
    font-weight: 650;
}


.profile-team-meta i {
    color: var(--profile-blue);

    font-size: 0.65rem;
}


.profile-team-number {
    position: absolute;

    top: 18px;
    right: 19px;

    color:
        rgba(31, 98, 142, 0.15);

    font-size: 1rem;
    font-weight: 900;

    letter-spacing: 0.08em;
}


/* ============================================================
   FOTO BERSAMA & DIREKTORI PERANGKAT DESA
============================================================ */

.profile-team-directory {
    position: relative;
    z-index: 2;

    margin-top: 58px;
}


.profile-team-directory-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 32px;

    margin-bottom: 26px;
}


.profile-team-directory-heading > div {
    max-width: 690px;
}


.profile-team-directory-heading h3 {
    margin: 0;

    color: var(--profile-ink);

    font-size:
        clamp(
            1.65rem,
            3vw,
            2.35rem
        );

    font-weight: 800;

    line-height: 1.16;

    letter-spacing: -0.04em;
}


.profile-team-directory-heading p {
    max-width: 630px;

    margin: 12px 0 0;

    color: var(--profile-muted);

    font-size: 0.87rem;

    line-height: 1.75;
}


.profile-team-directory-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(31, 98, 142, 0.12);

    border-radius: 999px;

    color: var(--profile-blue);

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(14, 43, 64, 0.05);

    font-size: 0.69rem;

    font-weight: 800;

    white-space: nowrap;
}


/* ============================================================
   FOTO BERSAMA
============================================================ */

.profile-team-group {
    margin: 0 0 28px;
}


.profile-team-group-media {
    position: relative;

    height:
        clamp(
            360px,
            43vw,
            500px
        );

    overflow: hidden;

    border:
        1px solid
        rgba(31, 98, 142, 0.12);

    border-radius: 28px;

    background:
        #dcecf4;

    box-shadow:
        0 20px 54px
        rgba(14, 43, 64, 0.10);
}


.profile-team-group-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.6s ease;
}


.profile-team-group:hover
.profile-team-group-media img {
    transform:
        scale(1.018);
}


.profile-team-group-overlay {
    position: absolute;

    inset: 0;

    /*
     * Fade ke bawah:
     * bagian atas gambar tetap jelas,
     * bagian bawah perlahan memudar ke warna latar section.
     */
    background:
        linear-gradient(
            180deg,
            rgba(244, 248, 250, 0.00) 0%,
            rgba(244, 248, 250, 0.00) 52%,
            rgba(244, 248, 250, 0.08) 66%,
            rgba(244, 248, 250, 0.24) 78%,
            rgba(244, 248, 250, 0.52) 88%,
            rgba(244, 248, 250, 0.82) 96%,
            #f4f8fa 100%
        );

    pointer-events: none;
}


.profile-team-group-caption {
    position: absolute;

    z-index: 2;

    right: 24px;
    bottom: 30px;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    max-width:
        calc(100% - 48px);

    padding:
        11px 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 17px;

    color: #ffffff;

    background:
        rgba(11, 45, 69, 0.72);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 12px 26px
        rgba(7, 28, 42, 0.16);
}


.profile-team-group-caption > span {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    flex:
        0 0 40px;

    border-radius: 11px;

    color: #d9f3ff;

    background:
        rgba(255, 255, 255, 0.12);
}


.profile-team-group-caption > div {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.profile-team-group-caption small {
    color:
        rgba(255, 255, 255, 0.66);

    font-size: 0.55rem;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.profile-team-group-caption strong {
    margin-top: 2px;

    color: #ffffff;

    font-size: 0.86rem;

    font-weight: 800;
}


/* ============================================================
   DIREKTORI NAMA PERANGKAT
============================================================ */

.profile-team-directory-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.profile-team-directory-card {
    position: relative;

    min-width: 0;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    align-items: center;

    gap: 12px;

    min-height: 104px;

    padding:
        18px
        42px
        18px
        17px;

    overflow: hidden;

    border:
        1px solid
        rgba(31, 98, 142, 0.10);

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 10px 28px
        rgba(14, 43, 64, 0.045);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.profile-team-directory-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(31, 98, 142, 0.20);

    box-shadow:
        0 16px 34px
        rgba(14, 43, 64, 0.075);
}


.profile-team-directory-icon {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: var(--profile-blue);

    background:
        var(--profile-blue-light);

    font-size: 0.72rem;
}


.profile-team-directory-content {
    min-width: 0;
}


.profile-team-directory-content > span {
    display: block;

    margin-bottom: 4px;

    color: var(--profile-blue);

    font-size: 0.55rem;

    font-weight: 800;

    line-height: 1.35;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


.profile-team-directory-content h4 {
    margin: 0;

    color: var(--profile-ink);

    font-size: 0.87rem;

    font-weight: 800;

    line-height: 1.4;
}


.profile-team-directory-number {
    position: absolute;

    top: 12px;
    right: 13px;

    color:
        rgba(31, 98, 142, 0.15);

    font-size: 0.71rem;

    font-weight: 900;

    letter-spacing: 0.05em;
}


/* ============================================================
   RESPONSIVE DIREKTORI PERANGKAT
============================================================ */

@media (max-width: 991.98px) {

    .profile-team-directory {
        margin-top: 48px;
    }


    .profile-team-directory-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .profile-team-group-media {
        height: 420px;
    }

}


@media (max-width: 767.98px) {

    .profile-team-directory {
        margin-top: 40px;
    }


    .profile-team-directory-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    .profile-team-group-media {
        height: 310px;

        border-radius: 22px;
    }


    .profile-team-group-caption {
        right: 15px;
        bottom: 22px;

        max-width:
            calc(100% - 30px);
    }


    .profile-team-directory-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 479.98px) {

    .profile-team-group-media {
        height: 250px;

        border-radius: 19px;
    }


    .profile-team-group-caption {
        gap: 9px;

        padding:
            9px 11px;
    }


    .profile-team-group-caption > span {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }


    .profile-team-group-caption strong {
        font-size: 0.76rem;
    }


    .profile-team-directory-card {
        min-height: 96px;

        padding:
            16px
            38px
            16px
            15px;
    }

}


/* ============================================================
   EMPTY PERANGKAT
============================================================ */

.profile-organization-empty {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 17px;

    padding: 25px 27px;

    border:
        1px solid
        var(--profile-line);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(14, 43, 64, 0.05);
}


.profile-organization-empty > i {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--profile-blue);

    background: var(--profile-blue-light);
}


.profile-organization-empty > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.profile-organization-empty strong {
    color: var(--profile-ink);

    font-size: 0.92rem;
}


.profile-organization-empty span {
    color: var(--profile-muted);

    font-size: 0.82rem;
    line-height: 1.6;
}


/* ============================================================
   CONTACT
============================================================ */

.profile-contact {
    padding-top: 0;

    background: #ffffff;
}


.profile-contact-shell {
    display: grid;

    grid-template-columns:
        minmax(270px, 0.4fr)
        minmax(0, 0.6fr);

    gap: 65px;

    padding:
        clamp(
            36px,
            5vw,
            60px
        );

    border:
        1px solid
        var(--profile-line);

    border-radius: 23px;

    background:
        var(--profile-soft);
}


.profile-contact-intro p {
    max-width: 420px;

    margin: 18px 0 0;

    color: var(--profile-muted);

    font-size: 0.88rem;

    line-height: 1.8;
}


.profile-contact-list {
    display: flex;

    flex-direction: column;

    border-top:
        1px solid
        var(--profile-line);
}


.profile-contact-list article {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr);

    gap: 16px;

    padding:
        20px 0;

    border-bottom:
        1px solid
        var(--profile-line);
}


.profile-contact-list article > i {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: var(--profile-blue);

    background:
        var(--profile-blue-light);
}


.profile-contact-list article > div {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 4px;

    min-width: 0;
}


.profile-contact-list small {
    color: var(--profile-muted);

    font-size: 0.67rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.profile-contact-list strong,
.profile-contact-list
a:not(.profile-contact-action) {
    color: var(--profile-ink);

    font-size: 0.87rem;

    font-weight: 700;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


.profile-contact-list
a:not(.profile-contact-action):hover {
    color: var(--profile-blue);
}


.profile-contact-action {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 3px;

    color: #27805f;

    font-size: 0.7rem;

    font-weight: 700;
}


.profile-contact-action:hover {
    color: #1f674e;
}


.profile-contact-action i {
    font-size: 0.6rem;
}



/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991.98px) {

    .profile-section {
        padding:
            76px 0;
    }


    .profile-section-heading,
    .mission-section,
    .profile-contact-shell {
        grid-template-columns: 1fr;

        gap: 32px;
    }


    /* History */

    .simple-history-card {
        grid-template-columns: 1fr;
    }


    .simple-history-photo {
        min-height: 350px;
    }


    .simple-history-content {
        padding:
            40px 32px;
    }



    /* Demografi */

    .profile-demography-dashboard {
        grid-template-columns:
            0.42fr
            0.58fr;
    }


    .profile-age-grid {
        grid-template-columns: 1fr;
    }
    /* Perangkat Desa */

    .profile-team-grid {
        grid-template-columns: 1fr;
    }

    .profile-team-card {
        grid-template-columns:
            155px
            minmax(0, 1fr);
    }



    /* ========================================================
       VISI TABLET
    ======================================================== */

    .vision-card {
        grid-template-columns: 1fr;
    }


    .vision-main {
        min-height: auto;

        padding:
            32px 34px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.12);
    }


    .vision-main-header {
        margin-bottom: 25px;
    }


    .vision-main-content {
        margin-top: 0;
    }


    .vision-maju {
        padding:
            32px 34px;
    }


    .mission-section {
        margin-top: 55px;
    }

}



/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .profile-page section[id] {
        scroll-margin-top: 125px;
    }


    .profile-masthead {
        padding:
            48px 0 54px;
    }


    .profile-breadcrumb {
        margin-bottom: 26px;
    }


    .profile-local-nav {
        top: 72px;
    }


    .profile-local-nav-inner {
        gap: 25px;
    }


    .profile-local-nav a {
        padding:
            16px 0 14px;

        font-size: 0.77rem;
    }


    .profile-section {
        padding:
            62px 0;
    }


    .profile-section-heading {
        margin-bottom: 34px;
    }


    .simple-history-card {
        border-radius: 20px;
    }


    .simple-history-photo {
        min-height: 300px;
    }


    .simple-history-photo-info {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }


    .simple-history-photo-info h3 {
        font-size: 1.7rem;
    }


    .simple-history-content {
        padding:
            30px 24px;
    }


    .simple-history-text p {
        font-size: 0.9rem;

        line-height: 1.8;
    }



    .profile-demography-dashboard {
        grid-template-columns: 1fr;
    }


    .profile-total-population {
        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.11);
    }


    .profile-total-population,
    .profile-composition {
        padding:
            30px 25px;
    }


    .profile-age-item {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }


    .profile-age-item > b {
        grid-column: 2;
    }
    /* Perangkat Desa */

    .profile-team-grid {
        gap: 17px;
    }

    .profile-team-card {
        grid-template-columns:
            138px
            minmax(0, 1fr);

        min-height: 190px;

        border-radius: 22px;
    }

    .profile-team-photo-wrap {
        padding: 18px;
    }

    .profile-team-photo {
        width: 104px;
        height: 136px;

        border-radius: 17px;
    }

    .profile-team-content {
        padding:
            25px 22px;
    }

    .profile-team-meta {
        margin-top: 15px;
        padding-top: 13px;
    }

    .profile-team-number {
        top: 15px;
        right: 15px;
    }



    /* ========================================================
       VISI MOBILE
    ======================================================== */

    .vision-card {
        border-radius: 20px;
    }


    .vision-main {
        padding:
            27px 24px;
    }

    .vision-main-header {
        margin-bottom: 22px;
    }


    .vision-main-content {
        margin-top: 0;
    }


    .vision-main-content h3 {
        font-size: 1.55rem;

        line-height: 1.4;
    }


    .vision-main-content p {
        margin-top: 13px;

        font-size: 0.94rem;

        line-height: 1.7;
    }


    .vision-maju-item p {
        font-size: 0.92rem;
    }


    .mission-heading p {
        font-size: 0.94rem;
    }


    .vision-maju {
        padding:
            27px 24px;
    }


    .vision-maju-grid {
        grid-template-columns: 1fr;
    }


    .vision-maju-item {
        min-height: auto;
    }


    .mission-section {
        margin-top: 48px;
    }


    .mission-heading h3 {
        font-size: 1.45rem;
    }


    .mission-list li {
        grid-template-columns:
            40px
            minmax(0, 1fr);

        gap: 13px;
    }


    .mission-list p {
        font-size: 0.94rem;
    }


    .profile-contact-shell {
        padding:
            31px 23px;
    }

}

@media (max-width: 479.98px) {

    .profile-masthead h1 {
        font-size: 2.3rem;
    }


    .profile-section-heading h2,
    .profile-overview-copy h2,
    .profile-contact-intro h2 {
        font-size: 1.85rem;
    }

    /* History */

    .simple-history-photo {
        min-height: 260px;
    }


    .simple-history-content {
        padding:
            27px 20px;
    }



    /* Progress */

    .profile-progress-label {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }
    /* Perangkat Desa */

    .profile-team-card {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .profile-team-photo-wrap {
        min-height: 220px;

        padding:
            24px 22px;
    }

    .profile-team-photo {
        width: 132px;
        height: 164px;
    }

    .profile-team-featured-badge {
        right: auto;
        left: 50%;
        bottom: 14px;

        min-width: 126px;

        transform: translateX(-50%);
    }

    .profile-team-content {
        padding:
            23px 22px 25px;
    }

    .profile-team-content h3 {
        font-size: 1.08rem;
    }

    .profile-team-role {
        font-size: 0.60rem;
    }

    .profile-team-meta {
        gap: 7px 13px;
    }

    .profile-team-number {
        top: 15px;
        right: 17px;
    }



    /* Vision */

    .vision-main {
        padding:
            24px 20px;
    }


    .vision-main-header {
        margin-bottom: 19px;
    }


    .vision-main-content h3 {
        font-size: 1.25rem;
    }


    .vision-main-content p {
        font-size: 0.9rem;
    }


    .mission-heading p {
        font-size: 0.9rem;
    }


    .mission-list p {
        font-size: 0.9rem;
    }


    .vision-maju {
        padding:
            24px 20px;
    }


    .vision-maju-item {
        grid-template-columns:
            33px
            minmax(0, 1fr);

        padding: 12px;
    }


    .vision-maju-item > span {
        width: 31px;
        height: 31px;
    }


    .vision-maju-item p {
        font-size: 0.88rem;
    }

}



/* ============================================================
   STARTUP REFRESH - PERANGKAT DESA
============================================================ */

.profile-team-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.profile-team-heading > div {
    max-width: 760px;
}

.profile-team-heading .profile-section-index {
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(31, 98, 142, 0.10);
    border-radius: 999px;
    background: #f2f8fc;
    color: var(--profile-blue);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.profile-team-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.profile-team-grid {
    gap: 28px;
    align-items: stretch;
}

.profile-team-card {
    position: relative;
    grid-template-columns: 186px minmax(0, 1fr);
    min-height: 244px;
    border: 1px solid rgba(31, 98, 142, 0.11);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 22px 54px rgba(13, 45, 67, 0.07);
}

.profile-team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2b6fa7 0%, #78c7ea 100%);
}

.profile-team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 98, 142, 0.20);
    box-shadow: 0 28px 60px rgba(13, 45, 67, 0.11);
}

.profile-team-card-featured {
    border-color: rgba(22, 87, 127, 0.18);
    background: linear-gradient(135deg, #ffffff 0%, #f5fbfe 58%, #e9f4fb 100%);
    box-shadow: 0 26px 62px rgba(17, 60, 89, 0.11);
}

.profile-team-card-featured::before {
    height: 5px;
    background: linear-gradient(90deg, #0e4e76 0%, #2d86be 52%, #8fd7f4 100%);
}

.profile-team-photo-wrap {
    padding: 26px 22px;
    border-right: 1px solid rgba(31, 98, 142, 0.08);
    background: linear-gradient(180deg, #eef7fb 0%, #e4f0f7 100%);
}

.profile-team-card-featured .profile-team-photo-wrap {
    background: linear-gradient(180deg, #e5f2f9 0%, #d9ecf6 100%);
}

.profile-team-photo {
    width: 132px;
    height: 166px;
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(16, 58, 86, 0.14);
}

.profile-team-featured-badge {
    right: 18px;
    left: 18px;
    bottom: 16px;
    min-height: 33px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(14, 47, 71, 0.88);
    font-size: 0.63rem;
    letter-spacing: 0.05em;
}

.profile-team-content {
    justify-content: center;
    padding: 34px 34px 30px;
}

.profile-team-role {
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(31, 98, 142, 0.08);
    background: #eef7fc;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.profile-team-card-featured .profile-team-role {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #0f4e76 0%, #1b6a99 100%);
}

.profile-team-content h3 {
    max-width: 460px;
    font-size: clamp(1.18rem, 1.8vw, 1.52rem);
    line-height: 1.28;
}

.profile-team-content > p {
    margin: 8px 0 0;
    color: #70889a;
    font-size: 0.82rem;
    font-weight: 500;
}

.profile-team-meta {
    gap: 10px 18px;
    margin-top: 18px;
    padding-top: 17px;
}

.profile-team-meta:empty {
    display: none;
}

.profile-team-number {
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f7fb;
    color: #a1b5c3;
    font-size: 0.70rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.profile-team-directory {
    position: relative;
    z-index: 2;
    margin-top: 54px;
    padding: 30px;
    border: 1px solid rgba(31, 98, 142, 0.10);
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 22px 56px rgba(13, 45, 67, 0.06);
}

.profile-team-directory::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(130, 201, 233, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(25, 91, 127, 0.07), transparent 32%);
    pointer-events: none;
}

.profile-team-directory > * {
    position: relative;
    z-index: 1;
}

.profile-team-directory-heading {
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.profile-team-directory-heading > div {
    max-width: 720px;
}

.profile-team-directory-heading .profile-section-index {
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(31, 98, 142, 0.10);
    border-radius: 999px;
    background: #f2f8fc;
    color: var(--profile-blue);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.profile-team-directory-heading h3 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.profile-team-directory-heading p {
    margin-top: 11px;
    color: #718999;
    font-size: 0.89rem;
    line-height: 1.78;
}

.profile-team-directory-count {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0e3857 0%, #195f82 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(13, 53, 80, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
}

.profile-team-group {
    margin: 0 0 28px;
}

.profile-team-group-media {
    height: clamp(395px, 42vw, 540px);
    border: 1px solid rgba(20, 76, 110, 0.11);
    border-radius: 28px;
    box-shadow: 0 24px 58px rgba(13, 45, 67, 0.11);
}

.profile-team-group-media img {
    object-position: center 24%;
}

.profile-team-group-overlay {
    background:
        linear-gradient(180deg, rgba(8, 32, 48, 0.00) 50%, rgba(8, 32, 48, 0.12) 66%, rgba(8, 32, 48, 0.62) 100%),
        linear-gradient(90deg, rgba(11, 45, 69, 0.28) 0%, rgba(11, 45, 69, 0.00) 38%);
}

.profile-team-group-caption {
    left: 24px;
    right: auto;
    bottom: 24px;
    max-width: min(360px, calc(100% - 48px));
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(10, 35, 52, 0.78);
    box-shadow: 0 14px 32px rgba(7, 28, 42, 0.18);
}

.profile-team-group-caption > span {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
}

.profile-team-group-caption strong {
    font-size: 0.9rem;
}

.profile-team-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-team-directory-card {
    min-height: 112px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 44px 18px 18px;
    border: 1px solid rgba(31, 98, 142, 0.09);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(13, 45, 67, 0.05);
}

.profile-team-directory-card::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, #1f628e 0%, #79caed 100%);
}

.profile-team-directory-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 98, 142, 0.18);
    box-shadow: 0 18px 36px rgba(13, 45, 67, 0.09);
}

.profile-team-directory-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef7fc 0%, #dfeff7 100%);
    font-size: 0.78rem;
}

.profile-team-directory-content > span {
    margin-bottom: 5px;
    color: #2b6fa7;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.42;
    letter-spacing: 0.06em;
}

.profile-team-directory-content h4 {
    font-size: 0.91rem;
    line-height: 1.38;
    letter-spacing: -0.015em;
}

.profile-team-directory-number {
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f7fb;
    color: #9eb4c2;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
}

.profile-organization-empty {
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(13, 45, 67, 0.06);
}

@media (max-width: 1199.98px) {
    .profile-team-card {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .profile-team-photo {
        width: 122px;
        height: 156px;
    }

    .profile-team-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .profile-team-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .profile-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-team-card {
        grid-template-columns: 164px minmax(0, 1fr);
        min-height: 220px;
    }

    .profile-team-content {
        padding: 28px 28px 26px;
    }

    .profile-team-directory {
        margin-top: 46px;
        padding: 24px;
        border-radius: 26px;
    }

    .profile-team-directory-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .profile-team-group-media {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .profile-team-heading h2 {
        font-size: 2.15rem;
    }

    .profile-team-card {
        grid-template-columns: 145px minmax(0, 1fr);
        min-height: 204px;
        border-radius: 24px;
    }

    .profile-team-photo-wrap {
        padding: 18px;
    }

    .profile-team-photo {
        width: 104px;
        height: 136px;
        border-radius: 18px;
    }

    .profile-team-content {
        padding: 24px 22px 22px;
    }

    .profile-team-content h3 {
        font-size: 1.1rem;
    }

    .profile-team-directory {
        margin-top: 40px;
        padding: 20px;
    }

    .profile-team-group-media {
        height: 310px;
        border-radius: 22px;
    }

    .profile-team-group-media img {
        object-position: center 28%;
    }

    .profile-team-group-caption {
        left: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
        padding: 11px 13px;
    }

    .profile-team-directory-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 479.98px) {
    .profile-team-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .profile-team-photo-wrap {
        min-height: 225px;
        padding: 24px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(31, 98, 142, 0.08);
    }

    .profile-team-photo {
        width: 132px;
        height: 165px;
    }

    .profile-team-featured-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: 132px;
    }

    .profile-team-content {
        padding: 22px 20px 22px;
    }

    .profile-team-role {
        font-size: 0.58rem;
    }

    .profile-team-directory {
        padding: 18px;
        border-radius: 22px;
    }

    .profile-team-directory-heading h3 {
        font-size: 1.55rem;
    }

    .profile-team-group-media {
        height: 255px;
        border-radius: 18px;
    }

    .profile-team-group-caption > span {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .profile-team-group-caption strong {
        font-size: 0.78rem;
    }

    .profile-team-directory-card {
        min-height: 98px;
        padding: 16px 40px 16px 16px;
        border-radius: 17px;
    }
}



/* ============================================================
   FINAL TEAM HERO -> DIRECTORY CONTINUOUS FADE
   Foto bersama memudar lalu langsung menyatu dengan card nama
============================================================ */

.profile-team-group {
    position: relative;

    z-index: 2;

    margin:
        0
        0
        0;
}


.profile-team-group-media {
    position: relative;

    height:
        clamp(
            395px,
            42vw,
            540px
        );

    overflow: hidden;

    border:
        1px solid
        rgba(20, 76, 110, 0.10);

    border-radius:
        28px
        28px
        22px
        22px;

    background:
        #eef5f8;

    box-shadow:
        0 22px 54px
        rgba(13, 45, 67, 0.09);
}


.profile-team-group-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center 24%;

    filter:
        saturate(1.02)
        contrast(1.01);

    transform:
        scale(1.01);

    transition:
        transform 0.55s ease;
}


.profile-team-group:hover
.profile-team-group-media img {
    transform:
        scale(1.025);
}


/*
 * Fade dibuat menuju warna background directory.
 * Bagian bawah gambar benar-benar melebur,
 * bukan hanya diberi overlay gelap.
 */
.profile-team-group-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(248, 251, 253, 0.00) 46%,
            rgba(248, 251, 253, 0.03) 55%,
            rgba(248, 251, 253, 0.10) 64%,
            rgba(248, 251, 253, 0.24) 72%,
            rgba(248, 251, 253, 0.44) 80%,
            rgba(248, 251, 253, 0.68) 88%,
            rgba(248, 251, 253, 0.88) 95%,
            #f8fbfd 100%
        ),
        linear-gradient(
            90deg,
            rgba(11, 45, 69, 0.10) 0%,
            rgba(11, 45, 69, 0.00) 38%
        );
}


/*
 * Caption dinaikkan agar tidak tenggelam
 * di area putih fade bagian bawah.
 */
.profile-team-group-caption {
    z-index: 3;

    left: 24px;
    right: auto;

    bottom: 86px;

    max-width:
        min(
            360px,
            calc(100% - 48px)
        );

    padding:
        12px 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.24);

    border-radius: 17px;

    background:
        rgba(10, 35, 52, 0.76);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 12px 28px
        rgba(7, 28, 42, 0.16);
}


/*
 * Card nama "naik" ke area bawah foto,
 * sehingga fade langsung dilanjutkan card.
 */
.profile-team-directory-grid {
    position: relative;

    z-index: 5;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-top: -58px;

    padding:
        0
        18px
        4px;
}


.profile-team-directory-card {
    min-height: 112px;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    gap: 13px;

    padding:
        18px
        44px
        18px
        18px;

    border:
        1px solid
        rgba(31, 98, 142, 0.10);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.97);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    box-shadow:
        0 14px 34px
        rgba(13, 45, 67, 0.075);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.profile-team-directory-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(31, 98, 142, 0.20);

    box-shadow:
        0 20px 40px
        rgba(13, 45, 67, 0.11);
}


/* Supaya bagian setelah directory tidak terlalu menempel */
.profile-team-directory {
    overflow: hidden;
}


/* ============================================================
   RESPONSIVE - CONTINUOUS FADE
============================================================ */

@media (max-width: 1199.98px) {

    .profile-team-directory-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        margin-top: -52px;
    }

}


@media (max-width: 991.98px) {

    .profile-team-group-media {
        height: 400px;
    }


    .profile-team-group-caption {
        bottom: 76px;
    }


    .profile-team-directory-grid {
        margin-top: -48px;

        padding:
            0
            14px
            4px;
    }

}


@media (max-width: 767.98px) {

    .profile-team-group-media {
        height: 310px;

        border-radius:
            22px
            22px
            18px
            18px;
    }


    .profile-team-group-media img {
        object-position:
            center 28%;
    }


    .profile-team-group-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(248, 251, 253, 0.00) 48%,
                rgba(248, 251, 253, 0.10) 62%,
                rgba(248, 251, 253, 0.30) 74%,
                rgba(248, 251, 253, 0.58) 84%,
                rgba(248, 251, 253, 0.82) 93%,
                #f8fbfd 100%
            );
    }


    .profile-team-group-caption {
        left: 16px;
        bottom: 64px;

        max-width:
            calc(100% - 32px);

        padding:
            10px 12px;
    }


    .profile-team-directory-grid {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-top: -38px;

        padding:
            0
            8px
            2px;
    }

}


@media (max-width: 479.98px) {

    .profile-team-group-media {
        height: 255px;

        border-radius:
            18px
            18px
            15px
            15px;
    }


    .profile-team-group-caption {
        bottom: 52px;
    }


    .profile-team-directory-grid {
        margin-top: -30px;

        padding:
            0
            4px;
    }


    .profile-team-directory-card {
        min-height: 98px;

        padding:
            16px
            40px
            16px
            16px;

        border-radius: 17px;
    }

}




/* ============================================================
   FINAL DIRECTORY STYLE
   Foto bersama -> fade putih -> daftar nama tanpa card
============================================================ */

/*
 * Foto bersama menjadi bagian atas dari satu komponen besar.
 */
.profile-team-group {
    position: relative;

    z-index: 2;

    margin: 0;
}


.profile-team-group-media {
    position: relative;

    height:
        clamp(
            395px,
            42vw,
            540px
        );

    overflow: hidden;

    border:
        1px solid
        rgba(20, 76, 110, 0.10);

    border-bottom: 0;

    border-radius:
        28px
        28px
        0
        0;

    background: #f8fbfd;

    box-shadow:
        0 22px 54px
        rgba(13, 45, 67, 0.08);
}


.profile-team-group-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center 24%;

    filter:
        saturate(1.02)
        contrast(1.01);

    transform:
        scale(1.01);

    transition:
        transform 0.55s ease;
}


.profile-team-group:hover
.profile-team-group-media img {
    transform:
        scale(1.022);
}


/*
 * Foto melebur ke background putih directory.
 * Tidak lagi menghasilkan batas keras.
 */
.profile-team-group-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(248, 251, 253, 0.00) 48%,
            rgba(248, 251, 253, 0.04) 58%,
            rgba(248, 251, 253, 0.12) 67%,
            rgba(248, 251, 253, 0.28) 76%,
            rgba(248, 251, 253, 0.50) 84%,
            rgba(248, 251, 253, 0.72) 91%,
            rgba(248, 251, 253, 0.92) 97%,
            #f8fbfd 100%
        );
}


/*
 * Caption tetap berada di foto tetapi sedikit dinaikkan
 * supaya tidak bertabrakan dengan area fade.
 */
.profile-team-group-caption {
    position: absolute;

    z-index: 3;

    left: 24px;
    right: auto;
    bottom: 78px;

    max-width:
        min(
            360px,
            calc(100% - 48px)
        );

    display: inline-flex;
    align-items: center;

    gap: 11px;

    padding:
        11px
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.24);

    border-radius: 16px;

    color: #ffffff;

    background:
        rgba(10, 35, 52, 0.74);

    backdrop-filter:
        blur(11px);

    -webkit-backdrop-filter:
        blur(11px);

    box-shadow:
        0 12px 26px
        rgba(7, 28, 42, 0.15);
}


/* ============================================================
   DIRECTORY TANPA CARD
============================================================ */

/*
 * Directory langsung menyambung dengan bagian bawah foto.
 */
.profile-team-directory-grid {
    position: relative;

    z-index: 5;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 0;

    margin:
        -36px
        0
        0;

    padding:
        56px
        26px
        24px;

    border:
        1px solid
        rgba(20, 76, 110, 0.08);

    border-top: 0;

    border-radius:
        0
        0
        28px
        28px;

    background:
        #f8fbfd;

    box-shadow:
        0 22px 54px
        rgba(13, 45, 67, 0.055);
}


/*
 * Hilangkan gaya card sepenuhnya.
 * Setiap nama sekarang menjadi row directory sederhana.
 */
.profile-team-directory-card {
    position: relative;

    min-width: 0;
    min-height: 92px;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    align-items: center;

    gap: 12px;

    padding:
        17px
        34px
        17px
        10px;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transform: none;

    transition:
        background 0.2s ease;
}


/*
 * Garis horizontal halus antar nama.
 */
.profile-team-directory-card::after {
    content: '';

    position: absolute;

    right: 14px;
    bottom: 0;
    left: 10px;

    height: 1px;

    background:
        rgba(31, 98, 142, 0.10);
}


/*
 * Garis vertikal antar kolom.
 */
.profile-team-directory-card:not(:nth-child(3n + 1))::before {
    content: '';

    position: absolute;

    top: 18px;
    bottom: 18px;
    left: -1px;

    width: 1px;

    background:
        rgba(31, 98, 142, 0.08);
}


/*
 * Baris terakhir tidak perlu garis bawah.
 */
.profile-team-directory-card:nth-last-child(-n + 3)::after {
    display: none;
}


.profile-team-directory-card:hover {
    transform: none;

    border-color: transparent;

    box-shadow: none;

    background:
        rgba(31, 98, 142, 0.035);
}


/* Hilangkan aksen garis biru card versi lama */
.profile-team-directory-card::before {
    width: 1px;
}


/* ============================================================
   ICON DIRECTORY
============================================================ */

.profile-team-directory-icon {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(31, 98, 142, 0.10);

    border-radius: 11px;

    color: var(--profile-blue);

    background:
        rgba(234, 244, 249, 0.78);

    font-size: 0.68rem;
}


/* ============================================================
   TEKS DIRECTORY
============================================================ */

.profile-team-directory-content {
    min-width: 0;
}


.profile-team-directory-content > span {
    display: block;

    margin-bottom: 4px;

    color: var(--profile-blue);

    font-size: 0.54rem;

    font-weight: 800;

    line-height: 1.4;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.profile-team-directory-content h4 {
    margin: 0;

    color: var(--profile-ink);

    font-size: 0.88rem;

    font-weight: 800;

    line-height: 1.38;

    letter-spacing: -0.012em;
}


/*
 * Nomor dibuat sangat subtle.
 */
.profile-team-directory-number {
    position: absolute;

    top: 17px;
    right: 12px;

    width: auto;
    height: auto;

    display: block;

    border-radius: 0;

    color:
        rgba(31, 98, 142, 0.28);

    background: transparent;

    font-size: 0.58rem;

    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.04em;
}


/* ============================================================
   DIREKTORI WRAPPER
============================================================ */

.profile-team-directory {
    overflow: visible;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1199.98px) {

    .profile-team-directory-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .profile-team-directory-card:not(:nth-child(3n + 1))::before {
        display: none;
    }


    .profile-team-directory-card:nth-child(even)::before {
        content: '';

        position: absolute;

        top: 18px;
        bottom: 18px;
        left: -1px;

        width: 1px;

        display: block;

        background:
            rgba(31, 98, 142, 0.08);
    }


    .profile-team-directory-card:nth-last-child(-n + 3)::after {
        display: block;
    }


    .profile-team-directory-card:nth-last-child(-n + 2)::after {
        display: none;
    }

}


@media (max-width: 991.98px) {

    .profile-team-group-media {
        height: 400px;
    }


    .profile-team-group-caption {
        bottom: 70px;
    }


    .profile-team-directory-grid {
        margin-top: -32px;

        padding:
            50px
            22px
            22px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .profile-team-group-media {
        height: 310px;

        border-radius:
            22px
            22px
            0
            0;
    }


    .profile-team-group-media img {
        object-position:
            center 28%;
    }


    .profile-team-group-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(248, 251, 253, 0.00) 48%,
                rgba(248, 251, 253, 0.09) 62%,
                rgba(248, 251, 253, 0.25) 73%,
                rgba(248, 251, 253, 0.52) 84%,
                rgba(248, 251, 253, 0.80) 94%,
                #f8fbfd 100%
            );
    }


    .profile-team-group-caption {
        left: 16px;
        bottom: 58px;

        max-width:
            calc(100% - 32px);

        padding:
            10px
            12px;
    }


    .profile-team-directory-grid {
        grid-template-columns: 1fr;

        margin-top: -26px;

        padding:
            44px
            16px
            18px;

        border-radius:
            0
            0
            22px
            22px;
    }


    .profile-team-directory-card {
        min-height: 86px;

        padding:
            15px
            28px
            15px
            6px;
    }


    .profile-team-directory-card::before {
        display: none !important;
    }


    .profile-team-directory-card:nth-last-child(-n + 2)::after {
        display: block;
    }


    .profile-team-directory-card:last-child::after {
        display: none;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 479.98px) {

    .profile-team-group-media {
        height: 255px;

        border-radius:
            19px
            19px
            0
            0;
    }


    .profile-team-group-caption {
        bottom: 48px;
    }


    .profile-team-directory-grid {
        margin-top: -22px;

        padding:
            38px
            12px
            14px;

        border-radius:
            0
            0
            19px
            19px;
    }


    .profile-team-directory-card {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 10px;

        min-height: 80px;
    }


    .profile-team-directory-icon {
        width: 34px;
        height: 34px;

        border-radius: 10px;
    }


    .profile-team-directory-content h4 {
        font-size: 0.84rem;
    }

}




/* ============================================================
   FINAL - UKURAN FOTO BERSAMA LEBIH COMPACT
============================================================ */

.profile-team-group-media {
    height:
        clamp(
            320px,
            36vw,
            440px
        );
}


@media (max-width: 991.98px) {

    .profile-team-group-media {
        height: 350px;
    }

}


@media (max-width: 767.98px) {

    .profile-team-group-media {
        height: 275px;
    }

}


@media (max-width: 479.98px) {

    .profile-team-group-media {
        height: 225px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .profile-page *,
    .profile-page *::before,
    .profile-page *::after {
        transition: none !important;
    }
}