/* Batasi lebar konten agar bagian profil tetap nyaman dibaca. */
.profile-page {
    max-width: 1040px;
    margin: 0 auto;
}

.profile-heading {
    max-width: 640px;
    margin: 4px auto 30px;
    text-align: center;
}

.profile-eyebrow {
    color: #a33335;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.profile-heading h1 {
    margin: 9px 0 0;
    color: #292525;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.05em;
}

.profile-heading p {
    margin: 10px 0 0;
    color: #716967;
    font-size: 16px;
    line-height: 1.7;
}

/* Setiap topik profil memakai panel dan pola judul yang sama. */
.profile-sections {
    display: grid;
    gap: 16px;
}

.profile-section {
    overflow: hidden;
    border: 1px solid #e9dfdc;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(69, 43, 38, 0.045);
}

.profile-section-heading {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #eee5e2;
    background: #fcf8f7;
}

.profile-section-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ecd5d2;
    border-radius: 10px;
    background: #fff;
    color: #a33335;
    font-size: 13px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.profile-section-heading h2 {
    margin: 0;
    color: #352e2c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-section-content {
    padding: 20px;
}

/* Ruang lingkup menggunakan kartu turunan di dalam panel utamanya. */
.profile-content-title {
    margin: 0;
    color: #a33335;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
}

.profile-content-intro {
    margin: 5px 0 16px;
    color: #716967;
    font-size: 15px;
    line-height: 1.6;
}

.profile-scope-grid,
.profile-vision-mission {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-scope-item,
.profile-statement {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #eee6e3;
    border-radius: 12px;
    background: #fffdfc;
}

.profile-scope-number {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #f6e9e7;
    color: #8f3032;
    font-size: 14px;
    font-weight: 750;
}

.profile-scope-item h4,
.profile-statement h3 {
    margin: 1px 0 6px;
    color: #393230;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-scope-item p,
.profile-statement p {
    margin: 0;
    color: #655d5a;
    font-size: 15px;
    line-height: 1.65;
}

.profile-statement {
    display: block;
    padding: 17px;
    border-left: 3px solid #a33335;
    background: #f9f6f5;
}

.profile-statement h3 {
    color: #a33335;
}

.profile-statement strong {
    color: #38312f;
    font-weight: 750;
}

/* Placeholder memiliki perlakuan seragam agar mudah diganti dengan materi nanti. */
.profile-placeholder {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed #e5d8d5;
    border-radius: 10px;
    background: #fdfbfa;
    color: #817977;
    font-size: 15px;
    line-height: 1.6;
}

/* Bagan organisasi memakai konektor CSS agar nama tetap berupa teks HTML. */
.profile-org-chart {
    max-width: 780px;
    margin: 0 auto;
    padding: 8px 0 2px;
}

.profile-org-node {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
    border: 1px solid #e9d9d6;
    border-top: 3px solid #a33335;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(69, 43, 38, 0.055);
    text-align: center;
}

.profile-org-node--leader {
    width: min(100%, 380px);
    margin: 0 auto 62px;
    background: #fcf8f7;
}

.profile-org-node--leader::after {
    position: absolute;
    top: 100%;
    left: 50%;
    height: 32px;
    border-left: 2px solid #d8b8b3;
    content: "";
}

.profile-org-role {
    color: #a33335;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.profile-org-node h3 {
    margin: 6px 0 0;
    color: #342d2b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-org-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.profile-org-branches::before {
    position: absolute;
    top: -32px;
    right: 25%;
    left: 25%;
    border-top: 2px solid #d8b8b3;
    content: "";
}

.profile-org-unit {
    position: relative;
    min-width: 0;
}

.profile-org-unit::before {
    position: absolute;
    top: -32px;
    left: 50%;
    height: 32px;
    border-left: 2px solid #d8b8b3;
    content: "";
}

.profile-org-team-connector {
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background: #d8b8b3;
}

.profile-org-node--team {
    background: #fcf8f7;
}

.profile-org-caption {
    max-width: 780px;
    margin: 18px auto 0;
    padding: 12px 14px;
    border-left: 3px solid #a33335;
    border-radius: 0 8px 8px 0;
    background: #f8f5f4;
    color: #706764;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 650px) {
    .profile-heading {
        margin: 0 auto 22px;
        text-align: left;
    }

    .profile-heading h1 {
        font-size: 32px;
    }

    .profile-heading p {
        font-size: 16px;
    }

    .profile-sections {
        gap: 12px;
    }

    .profile-section {
        border-radius: 13px;
    }

    .profile-section-heading {
        min-height: 56px;
        gap: 10px;
        padding: 10px 14px;
    }

    .profile-section-heading h2 {
        font-size: 16px;
    }

    .profile-section-number {
        width: 31px;
        height: 31px;
    }

    .profile-section-content {
        padding: 14px;
    }

    .profile-content-title {
        font-size: 16px;
    }

    .profile-scope-grid,
    .profile-vision-mission {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .profile-scope-item,
    .profile-statement {
        padding: 13px;
    }

    .profile-org-chart {
        padding-top: 2px;
    }

    .profile-org-node--leader {
        margin-bottom: 37px;
    }

    .profile-org-node--leader::after {
        height: 19px;
    }

    .profile-org-branches {
        grid-template-columns: 1fr;
        gap: 13px;
        padding-left: 25px;
    }

    .profile-org-branches::before {
        top: -19px;
        right: auto;
        bottom: 50%;
        left: 8px;
        border-top: 0;
        border-left: 2px solid #d8b8b3;
    }

    .profile-org-unit::before {
        top: 50%;
        left: -17px;
        width: 17px;
        height: 0;
        border-top: 2px solid #d8b8b3;
        border-left: 0;
    }

    .profile-org-node {
        min-height: 72px;
        padding: 13px;
    }

    .profile-org-node h3 {
        font-size: 16px;
    }

    .profile-org-role {
        font-size: 16px;
    }

    .profile-org-team-connector {
        height: 18px;
    }

    .profile-org-caption {
        margin-top: 14px;
        font-size: 16px;
    }

    .profile-scope-item h4,
    .profile-statement h3 {
        font-size: 16px;
    }

    .profile-scope-item p,
    .profile-statement p,
    .profile-placeholder {
        font-size: 13px;
    }
}
