/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; 
    width: 100%;
}
a {
    text-decoration: none; /* Mengembalikan agar link tidak bergaris bawah biru */
    color: #2563eb;
    transition: color 0.2s ease;
}
a:hover {
    color: #1e40af;
}

/* 1. HEADER */
.main-header {
    background-color: #ffffff;
    padding: 0; 
    border-bottom: 2px solid #e5e7eb;
    position: relative;
    z-index: 10; /* Menjaga header di bawah menu dropdown */
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
}
.header-image {
    width: 100%; 
    height: 130px; 
    object-fit: cover; 
    object-position: center; 
    display: block;
}

/* 2. NAVIGATION BAR */
.main-nav {
    background-color: #facc15; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 9999; /* Memastikan menu selalu bisa diklik */
    width: 100%;
}
.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0 20px;
    flex-wrap: wrap;
}
.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: #111827; 
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-links li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* DROPDOWN MENU */
.nav-links li.dropdown { position: relative; }
.dropdown-menu {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: #ffffff; 
    min-width: 250px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    z-index: 10000; /* Dropdown tampil paling atas */
    border-top: 3px solid #166534; 
}
.nav-links li.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { border-bottom: 1px solid #f3f4f6; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a {
    padding: 12px 20px; 
    color: #374151; 
    text-transform: capitalize; 
    font-size: 0.95rem; 
    font-weight: 500;
}
.dropdown-menu li a:hover {
    background-color: #f8fafc; 
    color: #166534; 
    padding-left: 25px; 
    transition: all 0.2s ease;
}

/* 3. HERO IMAGE */
.hero-section {
    width: 100%; max-height: 400px; overflow: hidden;  
    display: flex; justify-content: center; align-items: center;
    background-color: #ffffff; border-bottom: 4px solid #facc15; 
    position: relative;
    z-index: 1;
}
.hero-section img {
    width: 100%; height: 100%; min-height: 250px; 
    object-fit: cover; object-position: center; display: block;
}

/* 4. LAYOUT KONTEN UTAMA */
.content-wrapper {
    max-width: 1200px; margin: 40px auto; padding: 0 20px;
    display: flex; gap: 40px;
    width: 100%;
}
.main-content {
    flex: 7; background-color: #ffffff; padding: 30px;
    border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%; 
    overflow: hidden;
}
.section-title {
    font-size: 2rem; color: #166534; margin-bottom: 30px;
    border-bottom: 2px solid #facc15; padding-bottom: 10px; display: inline-block;
}
.info-grid {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 20px; margin-bottom: 30px;
}
.info-item { flex: 1; min-width: 150px; }
.info-item h3 { font-size: 1rem; color: #111827; margin-bottom: 5px; }
.info-item p { 
    font-size: 0.95rem; color: #4b5563; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
.content-image {
    width: 100%; height: auto; border-radius: 6px; margin-bottom: 20px;
}

/* SIDEBAR */
.sidebar { flex: 3; display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget h3 {
    font-size: 1.1rem; color: #111827; margin-bottom: 15px;
    padding-bottom: 8px; border-bottom: 2px solid #e5e7eb;
}
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid #f3f4f6; }
.sidebar-list li a { display: block; padding: 12px 0; color: #374151; font-size: 0.95rem; }
.sidebar-list li a:hover { color: #166534; padding-left: 5px; }

/* =========================================
   SEKSI BERITA (SAMA SEPERTI ASLI ANDA)
========================================= */
.berita-section {
    max-width: 1200px; margin: 50px auto 80px; padding: 0 20px;
}
.berita-header { text-align: center; margin-bottom: 40px; }
.berita-header h2 {
    color: #1e40af; font-size: 2rem; display: inline-block;
    border-bottom: 3px solid #facc15; padding-bottom: 5px; text-transform: uppercase;
}
.berita-grid {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 30px;
}
.berita-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
    max-width: 400px; width: 100%; 
}
.berita-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.berita-card img { width: 100%; height: auto; object-fit: cover; border-bottom: 1px solid #f3f4f6;}
.berita-content { padding: 20px; }
.berita-title {
    display: block; font-size: 1.05rem; font-weight: bold; color: #1e40af; 
    margin-bottom: 10px; line-height: 1.4; text-transform: uppercase;
}
.berita-title:hover { color: #166534; text-decoration: underline; }
.berita-meta { font-size: 0.85rem; color: #6b7280; margin-bottom: 15px; }
.berita-excerpt { font-size: 0.95rem; color: #4b5563; margin-bottom: 20px; line-height: 1.5; }
.berita-link { font-size: 0.95rem; color: #1e40af; font-weight: bold; }
.berita-link:hover { text-decoration: underline; color: #166534; }

/* GAYA TABEL VMTS & KURIKULUM */
.table-responsive { overflow-x: auto; margin-top: 20px; margin-bottom: 30px; }
.vmts-table { width: 100%; border-collapse: collapse; background-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.vmts-table th { padding: 12px; border: 1px solid #d1d5db; background-color: #166534; color: white; text-align: left; }
.vmts-table td { padding: 12px; border: 1px solid #d1d5db; vertical-align: top; color: #4b5563; font-size: 0.95rem; }
.vmts-table tr:nth-child(even) { background-color: #f8fafc; }

/* ========================================================
   RESPONSIVE DESIGN (HP) & HAMBURGER MENU
======================================================== */
.menu-toggle {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; cursor: pointer; padding: 10px;
    background-color: #166534; width: 45px; height: 45px; border-radius: 5px;
}
.menu-toggle .bar {
    height: 3px; width: 25px; background-color: white; margin: 3px 0; transition: 0.3s ease;
}

@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; gap: 20px; }
    .info-grid { flex-direction: column; }
    
    .main-header { position: relative; border-bottom: none; background-color: #ffffff; z-index: 998; }
    .header-container { display: flex; justify-content: flex-end; align-items: center; min-height: 70px; }
    .header-image { height: auto; max-height: 55px; padding: 5px 15px 5px 70px; }
    .hero-section { height: auto; max-height: none; }
    .hero-section img { height: auto; min-height: auto; object-fit: contain; }

    /* Navigasi Mobile */
    .main-nav { position: absolute; top: 0; left: 0; width: 100%; height: 0; background-color: transparent; box-shadow: none; z-index: 9999;}
    .menu-toggle { display: flex; position: absolute; top: 12px; left: 15px; margin: 0; z-index: 10000; pointer-events: auto; }
    
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background-color: #ffffff; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
        z-index: 9999; padding: 0; margin: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: left; border-bottom: 1px solid #e5e7eb; }
    .nav-links li a {
        display: flex; justify-content: space-between; align-items: center;
        padding: 15px 20px; color: #4b5563 !important; font-weight: 500;
        background-color: #ffffff;
    }
    .nav-links li a:active { background-color: #f3f4f6; }
    
    .dropdown-menu { display: none !important; position: static; background-color: #f9fafb; width: 100%; box-shadow: none; padding-left: 15px; border-top: none; }
    .dropdown.open .dropdown-menu { display: flex !important; flex-direction: column; }
}