/* CSS KHUSUS HALAMAN KOMITE */

/* Hero Section Komite (Nuansa Maroon/Burgundy) */

/* Global Section */

.komite-section {

    padding: 80px 0;

    background-color: #FAFAFA;

}

.komite-section.bg-white {

    background-color: var(--white);

}

.section-heading {

    text-align: center;

    margin-bottom: 56px;

}

.sec-title {

    font-size: 32px;

    font-weight: 800;

    color: var(--charcoal);

    margin-bottom: 16px;

}

.sec-desc {

    color: var(--slate);

    font-size: 16px;

    max-width: 650px;

    margin: 0 auto;

    line-height: 1.7;

}

/* Peran & Fungsi Grid */

.fungsi-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 30px;

    max-width: 1000px;

    margin: 0 auto;

}

@media (min-width: 640px) {

    .fungsi-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

.fungsi-card {

    background: var(--white);

    border-radius: 20px;

    padding: 40px 30px;

    text-align: center;

    box-shadow: 0 4px 15px rgba(0,0,0,0.03);

    border: 1px solid rgba(0,0,0,0.03);

    transition: transform 0.3s, box-shadow 0.3s;

}

.fungsi-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(159, 18, 57, 0.08); /* rose shadow */

    border-color: #fecdd3; /* rose-200 */

}

.fungsi-icon {

    width: 70px;

    height: 70px;

    background: #fff1f2; /* rose-50 */

    color: #e11d48; /* rose-600 */

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    transform: rotate(45deg);

}

.fungsi-icon svg {

    transform: rotate(-45deg);

}

.fungsi-title {

    font-size: 20px;

    font-weight: 800;

    color: var(--charcoal);

    margin-bottom: 12px;

}

.fungsi-text {

    font-size: 15px;

    color: var(--slate);

    line-height: 1.6;

}

/* Struktur Organisasi Komite (Org Chart 3 Level) */

.komite-tree {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 20px 0 40px;

}

.komite-level {

    display: flex;

    justify-content: center;

    gap: 40px;

    position: relative;

    padding-top: 40px;

    flex-wrap: wrap;

    width: 100%;

}

@media (max-width: 768px) {

    .komite-level {

        gap: 20px;

        padding-top: 20px;

    }

}

/* Garis vertikal ke atas (untuk node anak) */

.komite-level::before {

    content: '';

    position: absolute;

    top: 0; left: 50%;

    transform: translateX(-50%);

    width: 2px;

    height: 40px;

    background: #cbd5e1;

}

/* Menyembunyikan garis vertikal untuk level 0 (Ketua) */

.komite-level.level-0 {

    padding-top: 0;

}

.komite-level.level-0::before {

    display: none;

}

/* Garis horizontal pengait anak */

/* Level 1 (Sekretaris & Bendahara: 2 item) */

.komite-level.level-1::after {

    content: '';

    position: absolute;

    top: 0;

    left: calc(25% + 20px); /* Approx center of first child */

    right: calc(25% + 20px); /* Approx center of last child */

    height: 2px;

    background: #cbd5e1;

}

/* Garis vertikal ke bawah dari Ketua tembus ke Level 1 untuk menyambung ke Level 2 */

.komite-level.level-1 .connector-down {

    position: absolute;

    bottom: -40px;

    left: 50%;

    transform: translateX(-50%);

    width: 2px;

    height: 40px;

    background: #cbd5e1;

}

/* Level 2 (4 Anggota) */

.komite-level.level-2::after {

    content: '';

    position: absolute;

    top: 0;

    left: calc(12.5% + 20px); 

    right: calc(12.5% + 20px);

    height: 2px;

    background: #cbd5e1;

}

@media (max-width: 900px) {

    .komite-level.level-1::after,

    .komite-level.level-2::after,

    .komite-level.level-1 .connector-down {

        display: none; /* Hide horizontal/complex lines on mobile */

    }

    .komite-level { padding-top: 20px; flex-direction: column; align-items: center; gap: 20px;}

    .komite-level::before { display: none; }

}

.komite-node {

    background: var(--white);

    border-radius: 16px;

    padding: 24px;

    text-align: center;

    width: 220px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    border: 1px solid #e2e8f0;

    position: relative;

    z-index: 2;

    transition: all 0.3s;

}

@media (max-width: 768px) {

    .komite-node { width: 280px; }

}

.komite-node:hover {

    border-color: #e11d48; /* rose-600 */

    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.15);

    transform: translateY(-5px);

}

.komite-node.ketua {

    background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);

    color: white;

    border: none;

    width: 260px;

}

.komite-node.ketua .k-name { color: white; }

.komite-node.ketua .k-pos { color: #fecdd3; border-top-color: rgba(255,255,255,0.2); }

.k-avatar {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    background: #e2e8f0;

    margin: 0 auto 16px;

    overflow: hidden;

    border: 3px solid white;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

.k-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.k-name {

    font-weight: 800;

    font-size: 16px;

    color: var(--charcoal);

    margin-bottom: 6px;

}

.k-pos {

    font-size: 13px;

    color: #64748b;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    padding: 4px 0;

    border-top: 1px solid rgba(0,0,0,0.1);

    margin-top: 8px;

}