/*
Theme Name: Desa Pekuncen Official Portal V2
Author: Tim Pengembang Desa Pekuncen
Description: Tema Lengkap Portal Resmi Desa Pekuncen + Berita Terkini di Atas Statistik Penduduk.
Version: 3.1.0
License: GNU General Public License v2 or later
Text Domain: desa-pekuncen
*/

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

:root {
    --b2-blue: #1d72e8;
    --b2-blue-dark: #1557b0;
    --b2-blue-soft: #edf4ff;
    --b2-dark: #0f172a;
    --b2-green: #0f766e;
    --b2-green-light: #10b981;
    --b2-card-bg: #ffffff;
    --b2-border: #e2e8f0;
    --b2-bg-light: #f8fafc;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--b2-bg-light);
    color: #334155;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* 1. HEADER UTAMA */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--b2-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title { font-size: 17px; font-weight: 800; color: #0f172a; text-transform: uppercase; line-height: 1.2; }
.site-subtitle { font-size: 10px; color: #64748b; font-weight: 600; letter-spacing: 0.5px; }

.main-navigation ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-navigation a {
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
    background-color: #f1f5f9;
    color: #0f172a;
}
.btn-login-blue {
    background: var(--b2-blue) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    font-size: 12px !important;
    box-shadow: 0 4px 10px rgba(29, 114, 232, 0.25);
}

/* 2. HERO BANNER & TICKERS */
.hero-banner-section {
    position: relative;
    width: 100%;
    height: 380px;
    background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.65)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.hero-caption-box {
    padding: 25px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.ticker-bar-duka {
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    font-size: 12px;
}
.badge-duka { background: #991b1b; padding: 8px 16px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.text-duka { padding: 8px 12px; font-size: 12px; white-space: nowrap; overflow: hidden; color: #f1f5f9; }

.ticker-bar-info {
    background: #ffffff;
    border-bottom: 1px solid var(--b2-border);
    display: flex;
    align-items: center;
    font-size: 12px;
}
.badge-info { background: var(--b2-blue); color: #ffffff; padding: 6px 14px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.text-info { padding: 6px 12px; color: #475569; font-size: 12px; }

/* 3. SINERGI PROGRAM */
.sinergi-section {
    padding: 25px 0 20px 0;
    text-align: center;
}
.section-header-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.section-header-title::before, .section-header-title::after {
    content: "";
    height: 1px;
    width: 60px;
    background: #cbd5e1;
}

.sinergi-carousel {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 10px 5px 15px 5px !important;
    scroll-behavior: smooth;
}
.sinergi-carousel::-webkit-scrollbar { height: 5px; }
.sinergi-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.sinergi-card {
    min-width: 92px !important;
    max-width: 92px !important;
    background: #ffffff !important;
    padding: 12px 6px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #f1f5f9 !important;
    text-align: center !important;
    flex: 0 0 auto !important;
}
.sinergi-card:hover { transform: translateY(-3px); }
.sinergi-icon-box { font-size: 24px; margin-bottom: 4px; }
.sinergi-card h5 { font-size: 10px !important; font-weight: 700 !important; color: #334155 !important; margin: 0; }

/* 4. JADWAL SHALAT */
.jadwal-shalat-card {
    background: #f0f6ff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #e0ecfb;
}
.jadwal-info h2 { font-family: 'Georgia', serif; font-size: 26px; color: #1d4ed8; margin-bottom: 2px; font-weight: 700; }
.jadwal-info .lokasi-text { font-weight: 800; font-size: 13px; color: #0f172a; }
.jadwal-info .tanggal-text { font-size: 12px; color: #64748b; margin-bottom: 14px; }
.btn-blue-rounded {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 5. SAMBUTAN KEPALA DESA HORIZONTAL */
.kades-card-horizontal {
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.kades-profile-side {
    width: 230px;
    padding: 25px 20px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
}
.kades-profile-side img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
    margin-bottom: 10px;
}
.kades-name { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.kades-badge { display: inline-block; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 12px; }
.kades-content-side { padding: 30px 35px; flex-grow: 1; }
.kades-content-side h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.kades-content-side p { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
.btn-blue-action { display: inline-block; background: #2563eb; color: #ffffff !important; padding: 8px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* 6. APARATUR DESA CAROUSEL */
.aparatur-section { margin-bottom: 35px; }
.aparatur-section-title { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 15px; border-left: 4px solid #2563eb; padding-left: 10px; }
.aparatur-carousel { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.aparatur-card {
    min-width: 150px;
    max-width: 150px;
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    flex: 0 0 auto;
}
.aparatur-card img { width: 100%; height: 180px; object-fit: cover; }
.aparatur-info { padding: 10px 6px; }
.aparatur-info h5 { font-size: 12px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.aparatur-info p { font-size: 11px; color: #64748b; }

/* 7. 12 KARTU FITUR LAYANAN DESA */
.fitur-layanan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.fitur-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.fitur-card-item .f-icon-box { font-size: 24px; min-width: 35px; text-align: center; }
.fitur-card-item .f-text h5 { font-size: 12px; font-weight: 800; color: #1e293b; margin-bottom: 2px; }
.fitur-card-item .f-text p { font-size: 10px; color: #64748b; margin: 0; }

/* ========================================================
   SEKSI BARU: BERITA TERKINI & KEGIATAN DESA (DI ATAS STATISTIK)
   ======================================================== */
.berita-terkini-section {
    margin-bottom: 40px;
}
.berita-header-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.berita-header-title a {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
}

.berita-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.berita-card-item {
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.25s ease;
}
.berita-card-item:hover {
    transform: translateY(-4px);
}

.berita-card-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.berita-card-body {
    padding: 18px;
}

.berita-card-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.berita-card-body h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
}

.berita-card-body p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-baca-berita {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 8. STATISTIK PENDUDUK & SMART INSIGHT */
.statistik-section {
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}
.statistik-section h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.statistik-section p { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.stat-circles-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-circle-card {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #0284c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-circle-card strong { font-size: 16px; color: #0f172a; }
.stat-circle-card span { font-size: 8px; color: #64748b; font-weight: 700; text-transform: uppercase; }

/* SMART INSIGHT */
.smart-insight-box {
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
}
.smart-insight-box h3 { font-size: 16px; font-weight: 800; text-align: center; color: #0f172a; margin-bottom: 20px; letter-spacing: 0.5px; }
.smart-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.tab-btn { padding: 6px 16px; font-size: 12px; font-weight: 700; border-radius: 6px; border: 1px solid #cbd5e1; background: #f8fafc; }
.tab-btn.active { background: #2563eb; color: #ffffff; border-color: #2563eb; }

.smart-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.smart-green-card { background: #065f46; color: #ffffff; padding: 15px; border-radius: 8px; }
.smart-green-card h4 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.smart-green-card span { font-size: 10px; opacity: 0.9; display: block; }

/* 9. TRANSPARANSI APBDES */
.apbdes-card {
    background: #ffffff;
    border: 1px solid var(--b2-border);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    margin-bottom: 35px;
}
.apbdes-left { background: #0f172a; color: #ffffff; padding: 30px 25px; width: 220px; flex-shrink: 0; text-align: center; }
.apbdes-left h3 { font-size: 18px; font-weight: 900; color: #fbbf24; margin-bottom: 10px; }
.apbdes-right { padding: 25px 30px; flex-grow: 1; display: flex; justify-content: space-between; align-items: center; }
.apbdes-col { text-align: left; }
.apbdes-col h5 { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 800; margin-bottom: 6px; }
.apbdes-col p { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0; }

/* 10. JAM KERJA, LOKASI KANTOR, & PETA WILAYAH */
.bottom-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.info-widget-card { background: #ffffff; border: 1px solid var(--b2-border); border-radius: 12px; overflow: hidden; }
.widget-header-green { background: #059669; color: #ffffff; padding: 12px 16px; font-weight: 800; font-size: 13px; }
.widget-header-blue { background: #2563eb; color: #ffffff; padding: 12px 16px; font-weight: 800; font-size: 13px; }
.widget-header-purple { background: #7c3aed; color: #ffffff; padding: 12px 16px; font-weight: 800; font-size: 13px; }

.jam-kerja-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.jam-kerja-table td { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; }
.jam-kerja-table tr:last-child td { border-bottom: none; }

/* 11. FOOTER LENGKAP */
.site-footer-dark {
    background: #1e293b;
    color: #cbd5e1;
    padding: 45px 0 20px 0;
    font-size: 12px;
}
.footer-cols-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #ffffff; font-size: 14px; font-weight: 800; margin-bottom: 15px; }
.footer-col p { line-height: 1.6; color: #94a3b8; }
.footer-bottom-bar { border-top: 1px solid #334155; padding-top: 20px; text-align: center; color: #64748b; font-size: 11px; }

@media (max-width: 768px) {
    .kades-card-horizontal, .apbdes-card { flex-direction: column; }
    .kades-profile-side, .apbdes-left { width: 100%; }
    .fitur-layanan-grid, .bottom-info-grid, .footer-cols-grid, .smart-cards-grid, .berita-cards-grid { grid-template-columns: 1fr; }
}
/* ===================================================
   SISTEM NAVIGASI HAMBURGER UNTUK HP
   =================================================== */

/* 1. Di Laptop / PC Desktop (Lebih dari 768px) */
@media (min-width: 769px) {
    /* Sembunyikan Tombol Hamburger */
    button.mobile-only-btn,
    .menu-toggle {
        display: none !important;
    }
    /* Tampilkan Menu Utama Secara Normal */
    .main-navigation {
        display: block !important;
    }
    .main-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        list-style: none !important;
    }
}

/* 2. Di Handphone / Mobile (Maksimal 768px) */
@media (max-width: 768px) {
    /* Tampilkan Tombol Hamburger di HP */
    button.mobile-only-btn,
    .menu-toggle {
        display: inline-block !important;
        background: #1d72e8;
        color: #ffffff;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
    }

    /* SEMBUNYIKAN DAFTAR MENU SECARA DEFAULT DI HP */
    .main-navigation {
        display: none !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* TAMPILKAN DAFTAR MENU HANYA SAAT TOMBOL DIKLIK (ADA KELAS TOGGLED) */
    .main-navigation.toggled {
        display: block !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        background: #ffffff;
        padding: 10px !important;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        list-style: none !important;
    }

    .main-navigation a {
        display: block !important;
        padding: 10px 12px !important;
        background: #f8fafc;
        border-radius: 6px;
        color: #0f172a !important;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
    }
}