@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS RESET & GLOBAL STYLES (DIOPTIMALKAN UNTUK LAPTOP & HP)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f4;
    color: #2c3e50;
    line-height: 1.8;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-block {
    padding: 40px 0;
}

.card-panel {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 81, 50, 0.03);
    margin-bottom: 25px;
}

/* Typography */
h2 {
    color: #0f5132;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background-color: #ffc107;
    border-radius: 2px;
}

h3 {
    color: #0f5132;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #4a5568;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
#main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    max-height: 55px;
    width: auto;
    margin-right: 15px;
    object-fit: contain;
}

.logo-text-wrapper h1 {
    font-size: 1.25rem;
    color: #0f5132;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text-wrapper p {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 2px;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    align-items: center;
}

#main-nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#main-nav a:hover {
    color: #0f5132;
}

#main-nav a.nav-badge {
    background-color: #ffc107;
    color: #0f5132;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
}

#main-nav a.nav-badge:hover {
    background-color: #e0a800;
}

/* ==========================================================================
   LAYOUT UTAMA: KESAMPING DI LAPTOP (PROFIL DI KANAN)
   ========================================================================== */
.main-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

#tentang {
    flex: 2;
}

#biodata-organ {
    flex: 1;
    height: fit-content;
}

.aside-profile-box {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    margin-bottom: 20px;
}

/* FOTO TETAP KOTAK/PERSEGI DENGAN UKURAN PROPORSIONAL */
.profile-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.aside-profile-box h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-top: 5px;
    margin-bottom: 2px;
}

.role-title {
    font-style: italic;
    color: #718096;
    font-size: 0.9rem;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin: 15px 0;
}

.aside-socials h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.aside-socials ul {
    list-style: none;
    margin-left: 0;
}

.aside-socials li {
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
}

.aside-socials a {
    color: #0f5132;
    text-decoration: none;
    font-weight: 600;
}

.aside-socials a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TABEL & KARTU BAWAH (FULL WIDTH ROW)
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

caption {
    font-size: 1rem;
    color: #0f5132;
    text-align: left;
    margin-bottom: 10px;
    font-weight: 700;
}

th, td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    font-size: 1rem;
}

thead th {
    background-color: #0f5132;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f8faf8;
}

tbody tr:hover {
    background-color: #edf7ed;
}

.flex-grid-cards {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

.card-item {
    flex: 1;
    background-color: #f8faf8;
    padding: 25px;
    border-radius: 10px;
    border-top: 5px solid #0f5132;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.maps-responsive {
    width: 100%;
    height: 450px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.maps-responsive iframe {
    width: 100%;
    height: 100%;
}

#main-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 35px 20px;
    text-align: center;
    margin-top: 5px;
}

.footer-container p {
    text-align: center;
    color: #cbd5e0;
    font-size: 0.95rem;
}

.footer-contact {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 4px;
}

/* ==========================================================================
   MEDIA QUERIES (OTOMATIS RESPONSIVE DI LAYAR HP)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    #main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-container {
        flex-direction: column;
    }

    #tentang, #biodata-organ {
        width: 100%;
    }

    .flex-grid-cards {
        flex-direction: column;
        gap: 20px;
    }

    .maps-responsive {
        height: 300px;
    }

    h2 {
        font-size: 1.5rem;
    }
}