/* ===================================================================
   File: style.css
   Deskripsi: File gaya utama untuk website Disdikbud Perencanaan.
   Struktur:
   1. Reset & Gaya Global      - Pengaturan dasar untuk semua halaman.
   2. Komponen Global          - Navbar, Footer, Tombol (dipakai di banyak halaman).
   3. Gaya Halaman Utama       - Khusus untuk elemen di index.html.
   4. Gaya Halaman Data        - Khusus untuk halaman tabel data (sub-sub index).
=================================================================== */

/* ===================================================================
   1. RESET & GAYA GLOBAL
=================================================================== */

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
}

.btn, a {
    transition: all 0.3s ease;
}

/* ===================================================================
   2. KOMPONEN GLOBAL (Navbar, Footer, dll.)
=================================================================== */

/* --- Navbar Utama --- */
.custom-navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 1rem;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.custom-navbar.scrolled {
    background: linear-gradient(to bottom, #444, #333);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.custom-navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.custom-navbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.custom-navbar .nav-brand img {
    height: 35px;
}
/* teks di samping logo */
.custom-navbar .brand-text {
    color: #E0C56E;
    line-height: 1.2;
}
.custom-navbar .brand-text strong {
    display: block;
    font-size: 20px;
    font-weight: 600;
}
/* end teks disamping logo */
.custom-navbar .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 0;
    padding-left: 0;
}
.custom-navbar .nav-menu li {
    position: relative;
}
/* untuk teks navbar */
.custom-navbar .nav-menu a {
    color: #E0C56E; 
    text-decoration: none;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 60px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}
.custom-navbar.scrolled .nav-menu a {
    text-shadow: none;
}
.custom-navbar .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
.custom-navbar .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #3a3a3a;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    margin-top: 0;
}
.custom-navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-navbar .dropdown-menu a {
    height: auto;
    padding: 0.75rem 1.5rem;
    text-shadow: none;
}
.custom-navbar .dropdown-menu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}
.custom-navbar .dropdown-menu .dropdown-menu.show {
    max-height: 500px;
}
.custom-navbar .dropdown-menu .dropdown-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.custom-navbar .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.custom-navbar .hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: rgb(253, 194, 0);
}
.custom-navbar .material-icons {
    font-size: 1.2rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.custom-navbar .dropdown-toggle.active > .material-icons {
    transform: rotate(180deg);
}
.custom-navbar .dropdown-toggle::after {
    display: none;
}

/* --- Tampilan Responsif Navbar (Mobile) --- */
@media (max-width: 992px) {
    .custom-navbar .hamburger { display: block; }
    .custom-navbar .nav-menu-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
    }
    .custom-navbar .nav-menu-wrapper.active { max-height: 100vh; opacity: 1; }
    .custom-navbar .nav-menu { flex-direction: column; width: 100%; height: auto; }
    .custom-navbar .nav-menu li { width: 100%; border-top: 1px solid #444; }
    .custom-navbar .nav-menu a {
        height: auto;
        padding: 1rem;
        justify-content: space-between;
        width: 100%;
        text-shadow: none;
    }
    .custom-navbar .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .custom-navbar .nav-menu > li > .dropdown-menu { background-color: rgba(0, 0, 0, 0.2); }
    .custom-navbar .dropdown-menu .dropdown-menu {
        background-color: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .custom-navbar .dropdown-menu.show { max-height: 500px; }
}

/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #ecd360;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
    padding: 2rem 1rem;
}
.site-footer p { margin-bottom: 0; }

/* --- Tombol Kembali ke Atas --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    padding: 0;
    line-height: 50px;
    text-align: center;
}

/* --- Tombol Kontak WhatsApp --- */
.whatsapp-button {
    display: inline-block;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   3. GAYA KHUSUS HALAMAN UTAMA (index.html)
=================================================================== */

/* --- Judul di Beranda --- */
.title-section {
    position: relative;
    padding-bottom: 2rem;
}
.title-section h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    background: linear-gradient(45deg, #e0c56e, #b88a34);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.title-section p { color: #6c757d; }
.title-section::after {
    content: '';
    position: absolute;
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #e0c56e, #b88a34);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Seksi Tim Kami --- */
#tim-kami .team-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#tim-kami .team-photo:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* --- Seksi Fokus Utama & Berita --- */
.focus-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}
.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #fdd20033;
    color: #b88a34;
}
#berita .card-img-top {
    height: 300px;
    object-fit: cover;
}

/* ===================================================================
   4. GAYA KHUSUS HALAMAN DATA (sub-sub index)
=================================================================== */

/* --- Header Halaman Data --- */
/* --- GAYA BARU UNTUK HEADER HALAMAN DATA (FULL-WIDTH) --- */
.data-header {
    padding: 8rem 0; Menambah sedikit jarak atas-bawah
    /* margin-top: 60px; Memberi ruang untuk navbar fixed-top */
    background-color: #343a40;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/2.png');
    background-size: cover;
    background-position: center;
}

.data-header h2, .data-header h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.data-header h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.data-header h3 {
    color: rgba(255, 255, 255, 0.8);
}

#data-table tbody tr:first-child {
    display: none;
}

/* --- Kartu Statistik Pagu --- */
.stat-card .card-body { padding: 1.5rem; text-align: center; }
.stat-title { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
.stat-value {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 2.25rem;
    color: #343a40;
}

/* --- Tabel Data Modern --- */
#data-table thead th {
    background-color: #2d3748;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 24px;
}
#data-table tbody td {
    color: #4a5568;
    padding: 14px 24px;
    border-bottom: 1px solid #edf2f7;
}
#data-table tbody tr:hover { background-color: #f7fafc; }