/* RESET & UTAS ASAS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* BAHAGIAN CARTA ORGANISASI (BACKGROUND PUTIH BERSIH & KORPORAT) */
.org-chart-section {
    position: relative;
    width: 100%;
    background-color: #ffffff; /* Latar Belakang Putih Bersih */
    padding: 60px 20px;
}

.org-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADER CARTA */
.org-header {
    text-align: center;
    margin-bottom: 50px;
}

.org-badge {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.12);
    color: #C5A059;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Kelas khas untuk tajuk utama */
.org-main-title {
    color: #0F2147;
    font-size: 2.2rem;
    font-weight: 700;
	  font-family: 'Playfair Display', Georgia, serif;
    margin: 15px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.org-tenure {
    display: inline-block;
    color: #D9232A;
    font-weight: 700;
    font-size: 0.95rem;
}

.org-glow-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0F2147, #C5A059, #D9232A);
    margin: 15px auto 0;
    border-radius: 2px;
}

.org-group-title {
    width: 100%;
    text-align: center;
    color: #0F2147;
    font-size: 1.3rem;
    font-weight: 700;
	font-family: 'Playfair Display', Georgia, serif;
    margin: 50px 0 25px;
    text-transform: uppercase;
    position: relative;
}

.org-group-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #C5A059;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* STRUKTUR SUSUNAN LEVEL / FLEXBOX */
.org-level, 
.level-flex-wrap {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* KHUSUS UNTUK ROW 2 & 3: GRID 3 KOLUM DENGAN GAP KOSONG DI TENGAH */
.grid-3-col {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.org-card-spacer {
    width: 220px; /* Saiz ruang kosong sama dengan saiz 1 kad */
    height: 1px;
    visibility: hidden; /* Menyembunyikan elemen tetapi kekal mengisi ruang 3 kolum */
    flex-shrink: 0;
}

/* GAYA KAD & SERAGAMKAN SAIZ SEMUA KAD */
.org-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 33, 71, 0.06);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* SAIZ KAD UNIFORM */
    width: 220px; 
    flex-shrink: 0;
}

.org-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 33, 71, 0.12);
    border-color: #C5A059;
}

/* KAD PENGERUSI / KETUA (WARNA BORDER EMAS) */
.leader-card {
    border: 2px solid #C5A059;
    box-shadow: 0 6px 24px rgba(197, 160, 89, 0.15);
}

.card-avatar {
    width: 100%;
    aspect-ratio: 1 / 1; /* Diubah dari 4 / 5 kepada 1 / 1 */
    border-radius: 8px; /* Kemasan bucu bulat (opsional) */
    overflow: hidden;
    background-color: #f1f5f9;
    margin-bottom: 12px;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar memenuhi ruang 1:1 tanpa penyek */
    object-position: top center;
    transition: transform 0.4s ease;
}

.org-card:hover .card-avatar img {
    transform: scale(1.04);
}

/* MAKLUMAT AHLI */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.position-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #C5A059;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0F2147;
    line-height: 1.35;
}

/* RESPONSIF MOBIL & TABLET */
@media (max-width: 768px) {
    .grid-3-col {
        flex-wrap: wrap;
    }
    .org-card-spacer {
        display: none; /* Sembunyikan spacer pada skrin kecil */
    }
    .org-card {
        width: 46%; /* 2 kad sebaris di skrin tablet/telefon */
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .org-card {
        width: 100%; /* 1 kad sebaris di skrin telefon kecil */
        max-width: 260px;
    }
}