/* ================= GLOBAL STYLES ================= */
:root {
    --primary-color: #003399;    /* Biru Profesional */
    --accent-color: #e67e22;     /* Oranye Yorisoi */
    --success-color: #27ae60;    /* Hijau Koordinator */
    --text-dark: #2c3e50;
    --text-muted: #666;
    --bg-body: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* POIN 3: Perbaikan Tipografi agar lebih nyaman dibaca */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth; /* Tambahan agar scroll halus saat klik menu */
    overflow-x: hidden; /* Mencegah geser kanan kiri di HP */
}

/* ================= HEADER (Sempit & Berjajar) ================= */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 45px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* ================= LAYOUT CONTAINER ================= */
.container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    gap: 25px;
    padding: 0 20px;
}

/* ================= NAVIGATION SIDEBAR & SOCIAL BOX ================= */
aside.sidebar-left {
    width: 280px;
    position: sticky;
    top: 90px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

nav {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 10px;
}

nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav a:hover {
    background-color: #f0f4f8;
    color: var(--primary-color);
}

nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 58, 90, 0.3);
}

/* SOSIAL MEDIA BOX DI SIDEBAR */
.social-sidebar-box {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.social-sidebar-box h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.side-btn:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.side-btn img {
    width: 20px;
    height: 20px;
}

.side-wa { background-color: #25d366; }
.side-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.side-tt { background-color: #000000; }

/* ================= MAIN CONTENT ================= */
main {
    flex: 1;
    /* Agar konten tidak overflow di HP */
    min-width: 0; 
}

.section {
    display: none;
    background: var(--white);
    padding: 45px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    min-height: 70vh;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= TYPOGRAPHY & ELEMENTS ================= */
h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 6px solid var(--accent-color);
}

h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

p {
    margin-bottom: 18px;
    text-align: left;
    color: #444;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* Profile Layout */
.profile-layout {
    overflow: hidden; 
    margin-bottom: 30px;
}

.photo-lg {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ================= SEKSI LOKASI & MAP ================= */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.map-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.map-link:hover {
    background: var(--accent-color);
}

/* ================= STRUKTUR ORGANISASI ================= */
.org-structure {
    text-align: center;
}

/* ================= STRUKTUR ORGANISASI (GARIS & WARNA FINAL) ================= */

/* 1. WRAPPER UTAMA */
.divisi-wrapper {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* 2. JUDUL DIVISI */
.divisi-tag {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(26, 58, 90, 0.3);
}

/* 3. BARIS KOORDINATOR (ATAS) */
.coordinator-row {
    position: relative;
    margin-bottom: 40px; 
    display: flex;
    justify-content: center;
}

/* Garis Tiang Utama (Turun dari Koordinator) */
.coordinator-row::after {
    content: '';
    position: absolute;
    bottom: -40px; 
    left: 50%;
    width: 2px;
    height: 40px;
    background-color: #cbd5e0;
}

/* 4. BARIS STAFF (BAWAH) */
.staff-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 0; 
    width: 100%;
}

/* 5. ITEM PEMBUNGKUS STAFF (LOGIKA GARIS) */
.org-item {
    position: relative;
    padding: 20px 15px 0 15px; 
    box-sizing: border-box;
    border-top: none; 
}

/* Garis Tegak Kecil di Atas Kartu Staff */
.org-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px; 
    background-color: #cbd5e0;
}

/* === LOGIKA GARIS === */
.staff-row .org-item::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    height: 2px;
    background-color: #2a2e33;
    width: 100%; 
    left: 0;
}

/* Staff Paling Kiri */
.staff-row .org-item:first-child::after {
    width: 50%;
    left: 50%;
}

/* Staff Paling Kanan */
.staff-row .org-item:last-child::after {
    width: 50%;
    left: 0;
}

/* Jika Staff CUMA SATU */
.staff-row .org-item:only-child::after {
    display: none !important;
}
.staff-row .org-item:only-child::before {
    height: 20px; 
}


/* ================= DESAIN KARTU ================= */

/* 1. SETUP DASAR KARTU & STAFF (DEFAULT: KREM) */
.card-member {
    background: #fff8f0;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid #e6dec1;
    border-top: 5px solid #e67e22;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    z-index: 2; 
}

/* Efek Hover (Gerak saat kursor lewat) */
.card-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Tipografi Default (Untuk Staff) */
.card-member .role { 
    display: block;
    color: #7f8c8d; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 5px; 
    letter-spacing: 0.5px;
}
.card-member .name { 
    display: block;
    color: #2c3e50; 
    font-size: 0.95rem; 
    font-weight: 800; 
    line-height: 1.3;
}


/* 2. KHUSUS PIMPINAN / DIREKTUR */
.card-member.pimpinan {
    background: #1a3a5a;       /* Background Biru Gelap */
    border: none;              /* Tidak pakai garis pinggir */
    border-top: 5px solid #3498db; /* Topi Biru Terang */
    width: 260px;              /* Ukuran Paling Besar */
}
/* Warna Teks Pimpinan */
.card-member.pimpinan .role { color: #aab8c2; }
.card-member.pimpinan .name { color: #ffffff; }


/* 3. KHUSUS WAKIL */
.card-member.wakil {
    background: #f4ecf7;       /* Ungu Pucat */
    border: 1px solid #d2b4de;
    border-top: 5px solid #8e44ad; /* Topi Ungu Tua */
    width: 250px;
}
/* Warna Teks Wakil */
.card-member.wakil .role { color: #8e44ad; }
.card-member.wakil .name { color: #4a235a; }


/* 4. KHUSUS KOORDINATOR */
.card-member.coordinator {
    background: #eafaf1;       /* Hijau Pucat */
    border: 1px solid #d5f5e3;
    border-top: 5px solid #27ae60; /* Topi Hijau */
    width: 250px;
}
/* Warna Teks Koordinator */
.card-member.coordinator .role { color: #27ae60; }
.card-member.coordinator .name { color: #145a32; }


/* ================= ELEMEN TAMBAHAN ================= */
.clean-list { 
    list-style: none; 
    margin-bottom: 25px; 
}

.clean-list li { 
    padding: 10px 0; 
    padding-left: 30px; 
    position: relative; 
    border-bottom: 1px dashed #f0f0f0; 
}

.clean-list li::before { 
    content: "✓"; 
    color: var(--success-color); 
    font-weight: bold; 
    position: absolute; 
    left: 5px; 
}

.image-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin: 30px 0; 
}

.image-grid img { 
    width: 100%; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s; 
}

.image-grid img:hover {
    transform: scale(1.03);
}

.img-card { 
    text-align: center; 
}

.img-card p {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 600;
}

.testimonial-box { 
    background-color: #f9f9f9; 
    padding: 30px; 
    border-left: 6px solid var(--accent-color); 
    border-radius: 0 12px 12px 0; 
    font-style: italic; 
    margin-top: 20px; 
}

.total-badge { 
    margin-top: 40px; 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: var(--primary-color); 
    border-top: 2px dashed #ddd; 
    padding-top: 25px; 
    letter-spacing: 1px;
}

footer { 
    text-align: center; 
    padding: 40px 20px; 
    background-color: var(--primary-color); 
    color: var(--white); 
    margin-top: 60px; 
}

footer p { 
    text-align: center;
    color: #cbd5e0; 
    margin-bottom: 5px;
}

/* =========================================================
   RESPONSIVE (OPTIMASI HP & TABLET)
   Bagian ini sangat penting untuk tampilan HP yang
========================================================= */

/* Tablet & Laptop Kecil (Dibawah 1024px) */
@media (max-width: 1024px) {
    .container {
        flex-direction: column; /* Ubah layout jadi atas-bawah */
        margin: 10px auto;
        padding: 0 15px;
    }

    aside.sidebar-left {
        width: 100%;
        position: static; /* Hilangkan sticky di HP agar tidak memenuhi layar */
        margin-bottom: 20px;
    }

    /* Menu Navigasi jadi baris tombol */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    nav li {
        margin-bottom: 0;
        flex: 1 1 auto; /* Tombol fleksibel */
    }
    
    nav a {
        text-align: center;
        white-space: nowrap; /* Teks jangan turun baris */
        font-size: 0.9rem;
        padding: 10px;
    }

    .social-links-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .side-btn {
        flex: 1;
        justify-content: center;
    }
}

/* HP (Dibawah 600px) */
@media (max-width: 600px) {
    /* Header HP */
    header {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column; /* Logo di atas, Teks di bawah */
        text-align: center;
        gap: 8px;
    }

    .logo {
        height: 50px; /* Logo sedikit lebih besar di HP biar jelas */
    }

    .brand-name {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    /* Konten Utama di HP */
    .section {
        padding: 20px; /* Padding lebih kecil biar muat banyak teks */
        min-height: auto;
    }

    /* Gambar Profil */
    .photo-lg {
        float: none;
        margin: 0 auto 20px;
        display: block;
        max-width: 100%;
        height: auto;
    }

    /* Judul */
    h2 {
        font-size: 1.5rem;
        padding-left: 10px;
        border-left-width: 4px;
    }
    
    h3 {
        font-size: 1.2rem;
    }

    /* Navigasi di HP: Tombol Penuh */
    nav ul {
        flex-direction: column; /* Tombol tumpuk ke bawah */
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        text-align: left;
        padding: 12px 15px;
    }

    /* Kartu Lokasi & Anggota Tim */
    .location-grid {
        grid-template-columns: 1fr; /* 1 Kolom Penuh */
    }
    
    .divisi-wrapper {
        padding: 15px;
    }
    
    .cards-container {
        flex-direction: column; /* Kartu tumpuk ke bawah */
        align-items: center;
    }
    
    .card-member {
        width: 100%; /* Kartu lebar penuh */
        max-width: 320px;
    }

    /* Tombol Sosmed */
    .social-links-container {
        flex-direction: column;
    }
    
    .side-btn {
        width: 100%;
    }
    
    /* Gambar Grid */
    .image-grid {
        grid-template-columns: 1fr; /* 1 gambar per baris */
    }
}
/* Container utama untuk tiap pimpinan */
.leader-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

/* KOTAK FOTO: Ini yang bikin foto jadi kecil & rapi */
.leader-photo-wrapper {
    flex: 0 0 150px; /* Lebar foto dipatok 150px saja */
    width: 150px;
}

.leader-img {
    width: 100%;    /* Mengikuti lebar wrapper (150px) */
    height: auto;   /* Proporsi tetap, tidak gepeng */
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #0056b3;
}

/* Direktur Utama & Wakil Direktur */
.leader-name { font-size: 20px; margin: 0; color: #333; }
.leader-role { font-size: 14px; color: #0056b3; font-weight: bold; margin: 5px 0 15px 0; }
.leader-quote { font-style: italic; font-size: 15px; color: #666; border-left: 3px solid #ddd; padding-left: 15px; }

.leader-quote {
    font-style: normal !important; /* Memaksa tulisan tegak */
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #0056b3;
    text-align: justify; /* Membuat teks rata kanan-kiri agar rapi */
}

/* Memastikan paragraf di dalamnya juga tidak miring */
.leader-quote p {
    font-style: normal !important;
    margin-bottom: 10px;
}
