/* ============================================================
 * Dikembangkan oleh Institut Teknologi Del
 * ============================================================ */
/* ==========================================
   PKK KABUPATEN TOBA - LANDING PAGE CSS
   ==========================================
   Structure:
   1. Global Variables & Reset
   2. Navbar
   3. Hero Section
   4. Floating Button
   5. Quick Access
   6. Apps Section
   7. News Section
   8. News Full Page
   9. News Pagination
   10. Page Header
   11. Struktur Organisasi
   12. SK & Dokumen
   13. Desa Section
   14. Template Page
   15. Info Section (Tentang)
   16. Stats Section
   17. Full Pages
   18. Footer
   19. News Detail Page
   20. Responsive - Tablet
   21. Responsive - Mobile
   22. Responsive - Small Mobile
   ========================================== */

/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0f6b63;
    /* Ujung terang gradien navbar harus tetap lolos kontras untuk teks putih
       (--primary-light #14b8a6 hanya 2,49:1). */
    --primary-light: #0f766e;
    --gold: #d69e2e;
    --bg-light: #f7fafc;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --sieda-color: #2563eb;
    --SIDONGAN-color: #c53030;
    --coming1-color: #6b46c1;
    --coming2-color: #14b8a6;
    --news-color: #138c7f;
    --sk-color: #553c9a;
    --template-color: #14b8a6;
    --navbar-bg: #115e59;
}

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-dark); background: var(--bg-light); overflow-x: hidden; }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 2rem;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, background-color 0.4s ease;
    background: transparent; overflow: visible;
}
/* Bilah navigasi SELALU bertumpuk di atas hero (foto/gradien). Sebelumnya
   ::before transparan (opacity 0) saat belum di-scroll, sehingga label putih
   jatuh di atas foto teal terang — hanya ~2,5:1 (tak terbaca). Sekarang
   lapisan teal merek selalu aktif; state scrolled hanya menambah bayangan. */
.navbar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary), var(--primary-light)); opacity: 0.94; transition: opacity 0.35s ease; pointer-events: none; }
.navbar.scrolled::before { opacity: 1; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.navbar.scrolled { background-color: var(--primary); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15); padding: 0.6rem 2rem; }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.navbar-logo { width: 56px; height: 56px; object-fit: contain; transition: transform 0.3s ease; }
.navbar-logo:hover { transform: rotate(10deg) scale(1.05); }
.navbar-title { display: flex; flex-direction: column; }
.navbar-title span:first-child { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 1px; line-height: 1.2; }
.navbar-title span:last-child { font-size: 0.7rem; color: rgba(255,255,255,0.9); font-weight: 400; letter-spacing: 0.5px; }
/* New class-based overrides */
.navbar-title-main { font-weight: 800 !important; font-size: 1.15rem !important; color: #fff !important; letter-spacing: 1px !important; text-transform: uppercase !important; }
.navbar-title-sub { font-weight: 600 !important; font-size: 0.8rem !important; color: #ffffff !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; }
.navbar-title-region { font-weight: 500 !important; font-size: 0.7rem !important; color: rgba(255,255,255,0.9) !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; }
.navbar-links { display: flex; gap: 0.2rem; list-style: none; flex-wrap: wrap; }
.navbar-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.3s ease; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.navbar-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
/* Label menu aktif: emas di atas navbar teal hanya 1,17:1 (tak terbaca).
   Label dibuat putih, aksen emas dipindah ke garis bawah. */
.navbar-links a.active-link { color: #fff; background: rgba(214, 158, 46, 0.22); box-shadow: inset 0 -2px 0 var(--gold, #d69e2e); }

/* Nav-link fallback styling (shared class used in both desktop & mobile menu) */
.nav-link {
    color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.875rem; font-weight: 600;
    padding: 6px 10px; border-radius: 6px; transition: all 0.2s ease; cursor: pointer;
    display: inline-block; -webkit-tap-highlight-color: transparent;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.15); }
.nav-link.active-link { color: #fff; background: rgba(255, 255, 255, 0.18); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold, #d69e2e); }

/* Hamburger menu button */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; z-index: 1001; justify-content: center; align-items: center; background: none; border: none; }
.hamburger span { width: 25px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu (hidden by default, positioned absolutely below navbar) */
.mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(20, 83, 76, 0.98); backdrop-filter: blur(15px);
    padding: 1rem 2rem 2rem 2rem; border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 999;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu .nav-link {
    display: block; width: 100%; padding: 12px 15px;
    border-radius: 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem; text-align: left;
}
.mobile-menu .nav-link:hover { background: rgba(255,255,255,0.05); }

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}
.hero-bg-slider { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1.5s ease-in-out; pointer-events: none; }
.hero-bg-slide.active { opacity: 1; }
/* Overlay hero dibuat lebih pekat: teks putih (h1, subtitle, tombol) di atas
   foto teal terang hanya ~2,5:1. Dengan overlay gelap ini rasio aman >4,5:1. */
.hero-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,86,80,0.88) 0%, rgba(11,86,80,0.72) 40%, rgba(8,64,60,0.92) 100%); pointer-events: none; }
.hero-particles { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; animation: floatParticle linear infinite; }
@keyframes floatParticle { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; } }
.hero-slider-indicators { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.4s ease; border: 2px solid rgba(255,255,255,0.4); touch-action: manipulation; }
.slider-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); box-shadow: 0 0 12px rgba(214, 158, 46, 0.5); }
/* Panah navigasi hero — dirender view hanya bila "Tampilkan Panah" aktif
   di Admin Panel > Kelola Beranda > Pengaturan Slider. */
.hero-slider-arrows { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(15,118,110,.35); color: #fff; cursor: pointer; pointer-events: auto; backdrop-filter: blur(4px); transition: background .25s ease, transform .25s ease; }
.hero-arrow:hover { background: rgba(15,118,110,.6); transform: translateY(-50%) scale(1.06); }
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }
@media (max-width: 640px) { .hero-arrow { width: 38px; height: 38px; } .hero-arrow-prev { left: .6rem; } .hero-arrow-next { right: .6rem; } }
.hero-content { position: relative; z-index: 4; text-align: center; padding: 2rem; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(7, 52, 49, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.28); padding: 8px 20px; border-radius: 50px; margin-bottom: 2rem; animation: fadeInDown 0.8s ease forwards; opacity: 0; }
.hero-badge-dot { width: 8px; height: 8px; background: #48bb78; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(72, 187, 120, 0); } }
.hero-badge span { color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.hero-logo-container { margin-bottom: 2rem; animation: fadeInDown 0.8s ease 0.2s forwards; opacity: 0; }
/* Logo PKK: transparan penuh, bentuk mengikuti logo asli (bukan dipaksa bulat).
   Glow memakai drop-shadow agar mengikuti kontur logo, bukan kotak gambar. */
.hero-logo { width: auto; height: 120px; object-fit: contain; border: 0; filter: drop-shadow(0 0 24px rgba(255,255,255,0.25)); transition: transform 0.5s ease, filter 0.5s ease; }
.hero-logo:hover { transform: scale(1.08); filter: drop-shadow(0 0 34px rgba(255,255,255,0.35)); }
.hero h1 { font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem; animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }
.hero h1 .highlight { background: linear-gradient(135deg, #ffd700, #ff8c00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 400; animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; }

/* Hero CTA Button */
.hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: var(--primary); padding: 16px 38px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1.05rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.8s forwards, ctaPulse 3s ease-in-out 2s infinite;
    opacity: 0; box-shadow: 0 8px 25px rgba(214, 158, 46, 0.4);
    cursor: pointer; position: relative; border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px; z-index: 5; touch-action: manipulation;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(214, 158, 46, 0.55); background: linear-gradient(135deg, #ffdf33 0%, #ffa033 100%); border-color: rgba(255, 255, 255, 0.5); color: var(--primary); opacity: 1; }
.hero-cta:active { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(214, 158, 46, 0.4); }
.hero-cta svg { transition: transform 0.3s ease; flex-shrink: 0; pointer-events: none; }
.hero-cta:hover svg { transform: translate(3px, -3px); }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 8px 25px rgba(214, 158, 46, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.4); } 50% { box-shadow: 0 8px 25px rgba(214, 158, 46, 0.4), 0 0 0 12px rgba(255, 215, 0, 0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   4. FLOATING BUTTON
   ========================================== */
.floating-app-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    pointer-events: none !important;
}
/* Kelas .open hanya dipasang di .floating-app-btn (container) oleh
   toggleFloatingMenu() di floating-btn.blade.php. Aturan turunannya ada di
   blok ".floating-app-btn.open ..." di bawah. */
.floating-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none !important; }
.floating-menu-item { display: flex; align-items: center; gap: 10px; text-decoration: none; transition: all 0.3s ease; pointer-events: auto !important; }
.floating-menu-item:hover { transform: translateX(-5px); }
.floating-menu-label { background: #fff; padding: 6px 14px; border-radius: 10px; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; transition: all 0.3s ease; }
.floating-menu-item:hover .floating-menu-label { background: var(--fab-c, var(--primary)); color: #fff; }
.floating-menu-item:hover .floating-menu-icon { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.floating-trigger { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 25px rgba(30, 58, 95, 0.4); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 10; pointer-events: auto !important; }
.floating-trigger:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(15, 107, 99, 0.5); }
.floating-app-btn.open .floating-trigger { box-shadow: 0 8px 30px rgba(15, 107, 99, 0.45); }
.floating-trigger svg { width: 26px; height: 26px; color: #fff; transition: transform 0.3s ease; }
.floating-trigger-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--primary-light); animation: floatingPulse 2s infinite; }
.floating-app-btn.open .floating-trigger-pulse { display: none; }
@keyframes floatingPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

/* Floating Button Icon Improvements */
.floating-menu-icon img { width: 32px !important; height: 32px !important; object-fit: contain !important; filter: brightness(0) invert(1) !important; border-radius: 4px; }
.floating-menu-icon span { color: #fff !important; font-weight: 700 !important; font-size: 1.1rem !important; letter-spacing: 0.5px; text-transform: uppercase; }
/* --fab-c / --fab-c-2 di-set inline per item oleh floating-btn.blade.php,
   berasal dari kolom `color` di Admin Panel > Manajemen Aplikasi.
   Fallback ke warna PKK bila aplikasi belum diberi warna. */
.floating-menu-icon { width: 48px !important; height: 48px !important; border-radius: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: linear-gradient(135deg, var(--fab-c, var(--primary)), var(--fab-c-2, var(--primary-light))) !important; box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important; transition: all 0.3s ease !important; flex-shrink: 0; }
.floating-menu-item:hover .floating-menu-icon { transform: scale(1.1) !important; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important; }
.floating-menu-icon:not(:has(img)) { position: relative; }
.floating-menu-icon:not(:has(img)) span { opacity: 0; position: absolute; width: 0; height: 0; overflow: hidden; }
.floating-menu-icon:not(:has(img))::before { content: ''; position: absolute; width: 28px; height: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; }
.floating-menu-item:hover .floating-menu-icon:not(:has(img))::before { transform: scale(1.1); }

/* Override untuk tampilan floating button */
.floating-app-btn.open .floating-menu { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
.floating-app-btn.open .floating-menu-item { opacity: 1 !important; transform: translateY(0) !important; }
.floating-app-btn.open .floating-trigger { transform: rotate(45deg) !important; }
.floating-app-btn .floating-menu-label { font-size: 0.95rem !important; padding: 10px 20px !important; }
.floating-app-btn .floating-menu-icon { width: 56px !important; height: 56px !important; }
.floating-app-btn .floating-menu-icon img, .floating-app-btn .floating-menu-icon span { width: 40px !important; height: 40px !important; font-size: 1.25rem !important; }
.floating-app-btn .floating-menu { gap: 12px !important; }
.floating-app-btn .floating-menu-item { gap: 12px !important; }
.floating-app-btn .floating-trigger { width: 64px !important; height: 64px !important; }
.floating-app-btn .floating-trigger svg { width: 28px !important; height: 28px !important; }

/* ==========================================
   5. QUICK ACCESS (Homepage)
   ========================================== */
.quick-access-section { padding: 5rem 2rem; background: var(--bg-light); }
.quick-access-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.quick-access-card { background: #fff; border-radius: 20px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s ease; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; min-height: 100%; touch-action: manipulation; }
.quick-access-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.quick-access-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.quick-access-icon svg { width: 26px; height: 26px; color: #fff; }
.quick-access-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.quick-access-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
/* Kartu-kartu di bawah ini seluruhnya berupa <a>, jadi isinya sengaja
   dimatikan agar klik di mana pun mengenai link kartu, bukan elemen dalam.
   CATATAN: .template-card TIDAK boleh masuk daftar ini. Ia berupa <div>
   tanpa link, dan justru tombol Preview/Download di dalamnya yang harus
   bisa diklik. */
.quick-access-card > *, .app-card-home > *, .news-card > *, .news-card-full > *, .news-card-link > * { pointer-events: none; }

/* ==========================================
   6. APPS SECTION (Homepage)
   ========================================== */
.apps-home-section { padding: 5rem 2rem; background: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-light); background: rgba(44, 82, 130, 0.08); padding: 6px 16px; border-radius: 20px; margin-bottom: 1rem; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.8rem; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 550px; margin: 0 auto; line-height: 1.7; }
.tab-nav { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn { padding: 10px 24px; border: 2px solid rgba(0,0,0,0.08); background: #fff; border-radius: 50px; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.tab-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-btn .tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.tab-btn[data-tab="sieda"] .tab-dot { background: var(--sieda-color); }
.tab-btn[data-tab="SIDONGAN"] .tab-dot { background: var(--SIDONGAN-color); }
.tab-btn[data-tab="coming"] .tab-dot { background: var(--coming1-color); }
.tab-btn.active .tab-dot { background: var(--gold) !important; }
.tab-content { display: none; max-width: 1000px; margin: 0 auto; }
.tab-content.active { display: block; animation: tabFadeIn 0.5s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* App Cards */
.apps-grid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 1000px; margin: 0 auto; }
.app-card-home { background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.app-card-home:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.app-card-home.sieda:hover { border-color: rgba(43, 108, 176, 0.2); }
.app-card-home.SIDONGAN:hover { border-color: rgba(197, 48, 48, 0.2); }
.app-card-header { position: relative; padding: 2.5rem 2.5rem 1.5rem; overflow: hidden; }
.app-card-home.sieda .app-card-header { background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%); }
.app-card-home.SIDONGAN .app-card-header { background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%); }
.app-card-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 200px; height: 200px; border-radius: 50%; opacity: 0.15; }
.app-card-home.sieda .app-card-header::before { background: var(--sieda-color); }
.app-card-home.SIDONGAN .app-card-header::before { background: var(--SIDONGAN-color); }
.app-icon-wrapper { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.app-card-home.sieda .app-icon-wrapper { background: linear-gradient(135deg, #2b6cb0, #3182ce); }
.app-card-home.SIDONGAN .app-icon-wrapper { background: linear-gradient(135deg, #c53030, #e53e3e); }
.app-icon-wrapper img { width: 100px; height: 100px; object-fit: contain; filter: brightness(0) invert(1); }
.app-card-body { padding: 0 2.5rem 2rem; flex: 1; display: flex; flex-direction: column; }
.app-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.app-card-home.sieda .app-name { color: var(--sieda-color); }
.app-card-home.SIDONGAN .app-name { color: var(--SIDONGAN-color); }
.app-fullname { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }
.app-description { font-size: 0.92rem; color: #4a5568; line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.app-features { list-style: none; margin-bottom: 2rem; }
.app-features li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.85rem; color: #4a5568; }
.app-features li svg { flex-shrink: 0; width: 18px; height: 18px; }
.app-card-home.sieda .app-features li svg { color: var(--sieda-color); }
.app-card-home.SIDONGAN .app-features li svg { color: var(--SIDONGAN-color); }
.app-card-footer { padding: 1.5rem 2.5rem; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; }
.app-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 14px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; text-decoration: none; }
.app-card-home.sieda .app-btn { background: linear-gradient(135deg, #2b6cb0, #3182ce); color: #fff; }
.app-card-home.SIDONGAN .app-btn { background: linear-gradient(135deg, #c53030, #e53e3e); color: #fff; }
.app-btn:hover { transform: translateX(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.app-btn svg { transition: transform 0.3s ease; }
.app-btn:hover svg { transform: translateX(4px); }
.app-status { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #48bb78; font-weight: 500; }
.app-status-dot { width: 7px; height: 7px; background: #48bb78; border-radius: 50%; animation: pulse 2s infinite; }

/* App Card Color Schemes */
.app-color-0 .app-name { color: #2563eb !important; }
.app-color-0 .app-icon-wrapper { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }
.app-color-0 .app-card-header { background: linear-gradient(135deg, #dbeafe, #eff6ff) !important; }
.app-color-0 .app-btn { background: #2563eb !important; }
.app-color-1 .app-name { color: #dc2626 !important; }
.app-color-1 .app-icon-wrapper { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }
.app-color-1 .app-card-header { background: linear-gradient(135deg, #fee2e2, #fef2f2) !important; }
.app-color-1 .app-btn { background: #dc2626 !important; }
.app-color-2 .app-name { color: #7c3aed !important; }
.app-color-2 .app-icon-wrapper { background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important; }
.app-color-2 .app-card-header { background: linear-gradient(135deg, #ede9fe, #f5f3ff) !important; }
.app-color-2 .app-btn { background: #7c3aed !important; }
.app-color-3 .app-name { color: #059669 !important; }
.app-color-3 .app-icon-wrapper { background: linear-gradient(135deg, #059669, #10b981) !important; }
.app-color-3 .app-card-header { background: linear-gradient(135deg, #d1fae5, #ecfdf5) !important; }
.app-color-3 .app-btn { background: #059669 !important; }
.app-color-4 .app-name { color: #d97706 !important; }
.app-color-4 .app-icon-wrapper { background: linear-gradient(135deg, #d97706, #f59e0b) !important; }
.app-color-4 .app-card-header { background: linear-gradient(135deg, #fef3c7, #fffbeb) !important; }
.app-color-4 .app-btn { background: #d97706 !important; }
.app-color-5 .app-name { color: #db2777 !important; }
.app-color-5 .app-icon-wrapper { background: linear-gradient(135deg, #db2777, #ec4899) !important; }
.app-color-5 .app-card-header { background: linear-gradient(135deg, #fce7f3, #fdf2f8) !important; }
.app-color-5 .app-btn { background: #db2777 !important; }
.app-color-6 .app-name { color: #0891b2 !important; }
.app-color-6 .app-icon-wrapper { background: linear-gradient(135deg, #0891b2, #06b6d4) !important; }
.app-color-6 .app-card-header { background: linear-gradient(135deg, #cffafe, #ecfeff) !important; }
.app-color-6 .app-btn { background: #0891b2 !important; }
.app-color-7 .app-name { color: #7c2d12 !important; }
.app-color-7 .app-icon-wrapper { background: linear-gradient(135deg, #7c2d12, #ea580c) !important; }
.app-color-7 .app-card-header { background: linear-gradient(135deg, #ffedd5, #fff7ed) !important; }
.app-color-7 .app-btn { background: #7c2d12 !important; }
.app-color-8 .app-name { color: #4338ca !important; }
.app-color-8 .app-icon-wrapper { background: linear-gradient(135deg, #4338ca, #6366f1) !important; }
.app-color-8 .app-card-header { background: linear-gradient(135deg, #e0e7ff, #eef2ff) !important; }
.app-color-8 .app-btn { background: #4338ca !important; }
.app-color-9 .app-name { color: #be185d !important; }
.app-color-9 .app-icon-wrapper { background: linear-gradient(135deg, #be185d, #ec4899) !important; }
.app-color-9 .app-card-header { background: linear-gradient(135deg, #fce7f3, #fdf2f8) !important; }
.app-color-9 .app-btn { background: #be185d !important; }

/* Coming Soon */
.coming-home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.coming-home-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; transition: all 0.4s ease; }
.coming-home-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.coming-home-card.coming1:hover { border-color: rgba(107, 70, 193, 0.2); }
.coming-home-card.coming2:hover { border-color: rgba(43, 108, 176, 0.2); }
.coming-home-card-header { position: relative; padding: 2.5rem 2.5rem 1.5rem; overflow: hidden; }
.coming-home-card.coming1 .coming-home-card-header { background: linear-gradient(135deg, #faf5ff 0%, #f5f0ff 100%); }
.coming-home-card.coming2 .coming-home-card-header { background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%); }
.coming-home-card-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 200px; height: 200px; border-radius: 50%; opacity: 0.15; }
.coming-home-card.coming1 .coming-home-card-header::before { background: var(--coming1-color); }
.coming-home-card.coming2 .coming-home-card-header::before { background: var(--coming2-color); }
.coming-icon-wrapper { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.coming-home-card.coming1 .coming-icon-wrapper { background: linear-gradient(135deg, #6b46c1, #805ad5); }
.coming-home-card.coming2 .coming-icon-wrapper { background: linear-gradient(135deg, #2b6cb0, #3182ce); }
.coming-icon-wrapper img { width: 50px; height: 50px; object-fit: contain; filter: brightness(0) invert(1); }
.coming-home-card-body { padding: 0 2.5rem 2rem; flex: 1; display: flex; flex-direction: column; }
.coming-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.coming-home-card.coming1 .coming-name { color: var(--coming1-color); }
.coming-home-card.coming2 .coming-name { color: var(--coming2-color); }
.coming-fullname { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }
.coming-description { font-size: 0.92rem; color: #4a5568; line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.coming-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid; padding: 8px 16px; border-radius: 50px; margin-bottom: 1.5rem; }
.coming-home-card.coming1 .coming-badge { background: linear-gradient(135deg, #faf5ff, #f5f0ff); border-color: rgba(107, 70, 193, 0.2); }
.coming-home-card.coming2 .coming-badge { background: linear-gradient(135deg, #ebf8ff, #e6fffa); border-color: rgba(43, 108, 176, 0.2); }
.coming-badge svg { width: 16px; height: 16px; }
.coming-home-card.coming1 .coming-badge svg { color: var(--coming1-color); }
.coming-home-card.coming2 .coming-badge svg { color: var(--coming2-color); }
.coming-badge span { font-size: 0.8rem; font-weight: 600; }
.coming-home-card.coming1 .coming-badge span { color: var(--coming1-color); }
.coming-home-card.coming2 .coming-badge span { color: var(--coming2-color); }
.coming-features { list-style: none; margin-bottom: 2rem; }
.coming-features li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.85rem; color: #4a5568; }
.coming-features li svg { flex-shrink: 0; width: 18px; height: 18px; }
.coming-home-card.coming1 .coming-features li svg { color: var(--coming1-color); }
.coming-home-card.coming2 .coming-features li svg { color: var(--coming2-color); }
.coming-home-card-footer { padding: 1.5rem 2.5rem; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; }
.coming-btn-home { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 14px; font-weight: 600; font-size: 0.9rem; cursor: default; opacity: 0.6; text-decoration: none; }
.coming-home-card.coming1 .coming-btn-home { background: linear-gradient(135deg, #6b46c1, #805ad5); color: #fff; }
.coming-home-card.coming2 .coming-btn-home { background: linear-gradient(135deg, #2b6cb0, #3182ce); color: #fff; }
.coming-status { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500; }
.coming-home-card.coming1 .coming-status { color: var(--coming1-color); }
.coming-home-card.coming2 .coming-status { color: var(--coming2-color); }
.coming-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.coming-home-card.coming1 .coming-status-dot { background: var(--coming1-color); animation: pulseComing 2s infinite; }
.coming-home-card.coming2 .coming-status-dot { background: var(--coming2-color); animation: pulseComing 2s infinite; }
@keyframes pulseComing { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.2); } 50% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } }

/* ==========================================
   7. NEWS SECTION (HOMEPAGE)
   ========================================== */
.news-home-section { padding: 5rem 2rem; background: var(--bg-light); }
.news-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; }
/* Tablet: 2 kolom agar kartu berita tidak terlalu sempit (3 kolom hanya untuk desktop lebar) */
@media (max-width: 1024px) and (min-width: 769px) {
    .news-home-grid { grid-template-columns: repeat(2, 1fr); }
}
.news-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s ease; cursor: pointer; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.news-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card-body { padding: 1.5rem; }
.news-card-date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 500; }
.news-card-date svg { width: 14px; height: 14px; }
.news-card-category { display: inline-block; background: rgba(39, 103, 73, 0.1); color: var(--news-color); font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-bottom: 0.8rem; }
.news-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-link { display: block; width: 100%; color: var(--news-color); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: gap 0.3s ease; touch-action: manipulation; }
.news-card-link:hover { gap: 10px; }
.news-card-link > article, .news-card-link > .news-card-full { width: 100%; height: 100%; }
.news-card-link, .news-card-link * { -webkit-tap-highlight-color: transparent; }
.news-home-more { text-align: center; margin-top: 3rem; }
.btn-see-all { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; background: var(--news-color); color: #fff; border-radius: 50px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; font-family: inherit; }
.btn-see-all:hover { background: #1a4731; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 103, 73, 0.3); }

/* ==========================================
   8. NEWS FULL PAGE - BERITA & KEGIATAN
   ========================================== */
.news-full-section { padding: 4rem 2rem; min-height: 60vh; background: #f8fafc; }
.news-header { max-width: 1200px; margin: 0 auto 2rem auto; padding: 0; }
.news-section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin: 0 0 1.5rem 0; letter-spacing: -0.5px; }
.news-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; width: 100%; }
.news-perpage-selector { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.news-perpage-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.news-perpage-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.news-perpage-select { padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background: #fff; cursor: pointer; transition: all 0.2s ease; font-family: inherit; min-width: 60px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 16px; }
.news-perpage-select:hover { border-color: var(--primary); }
.news-perpage-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1); }
.news-perpage-text { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.news-sort-selector { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; }
.news-sort-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.news-sort-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.news-sort-select { padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background: #fff; cursor: pointer; transition: all 0.2s ease; font-family: inherit; min-width: 140px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 16px; }
.news-sort-select:hover { border-color: var(--primary); }
.news-sort-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1); }
.news-loading { text-align: center; padding: 5rem 2rem; }
.news-loading-text { font-size: 1.2rem; color: #64748b; font-weight: 500; }
.news-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.news-card-full { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; }
.news-card-link:hover .news-card-full { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.news-card-image-wrapper { position: relative; overflow: hidden; }
.news-card-image { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.news-card-link:hover .news-card-image { transform: scale(1.05); }
.news-card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.news-card-category { background: rgba(39, 103, 73, 0.1); color: #276749; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.news-card-date { color: #64748b; font-size: 0.8rem; }
.news-card-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0 0 0.5rem 0; line-height: 1.4; }
.news-card-excerpt { color: #64748b; font-size: 0.9rem; line-height: 1.6; margin: 0 0 1rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-card-readmore { color: #276749; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; }
.news-card-readmore svg { transition: transform 0.3s ease; }
.news-card-link:hover .news-card-readmore svg { transform: translateX(4px); }
.news-empty-state { display: none; text-align: center; padding: 5rem 2rem; max-width: 650px; margin: 0 auto; }
.news-empty-icon { width: 120px; height: 120px; margin: 0 auto 2rem; background: linear-gradient(135deg, rgba(15, 107, 99, 0.1), rgba(20, 184, 166, 0.1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f6b63; }
.news-empty-icon svg { opacity: 0.8; }
.news-empty-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin: 0 0 0.75rem 0; }
.news-empty-text { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0 auto 2rem; max-width: 500px; }
.news-back-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, #0f6b63, #14b8a6); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15, 107, 99, 0.3); }
.news-back-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15, 107, 99, 0.4); }
.news-back-btn svg { width: 18px; height: 18px; }
.news-error-text { color: #ef4444; font-weight: 500; text-align: center; padding: 2rem; }

/* ==========================================
   9. NEWS PAGINATION
   ========================================== */
.news-pagination-wrapper { padding: 1.5rem; background: #fff; border-radius: 16px; margin-top: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); max-width: 1200px; margin-left: auto; margin-right: auto; }
.news-pagination-wrapper.hidden { display: none !important; }
.news-pagination-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.news-page-numbers { display: flex; align-items: center; gap: 0.5rem; }
.news-pagination-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; text-decoration: none; min-width: 40px; font-family: inherit; }
.news-pagination-btn:hover:not(:disabled):not(.active) { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.news-pagination-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); cursor: default; }
.news-pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f1f5f9; }
.news-pagination-btn svg { width: 16px; height: 16px; }
.news-pagination-dots { padding: 0.5rem 0.25rem; color: var(--text-muted); font-size: 0.875rem; }
.news-pagination-info { text-align: center; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.news-pagination-info strong { color: var(--primary); font-weight: 600; }
.news-sort-info { margin-top: 0.5rem; padding: 0.5rem 1rem; background: rgba(15, 107, 99, 0.05); border-radius: 8px; font-size: 0.85rem; color: var(--text-muted); }
.sort-description { margin: 0; font-style: italic; }

/* ==========================================
   10. PAGE HEADER (Sub Pages)
   ========================================== */
.page-header { padding: 8rem 2rem 4rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; cursor: pointer; transition: color 0.3s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--gold); }

/* ==========================================
   11. STRUKTUR ORGANISASI
   ========================================== */
.struktur-section { padding: 4rem 2rem; background: var(--bg-light); }
.struktur-wrapper { max-width: 1200px; margin: 0 auto; }
.struktur-scroll { overflow-x: auto; padding: 2rem 0; }
.struktur-tree { display: flex; flex-direction: column; align-items: center; min-width: 1000px; }
.top3-tree { display: flex !important; justify-content: center !important; align-items: flex-start !important; gap: 2rem !important; width: 100% !important; max-width: 1100px !important; margin: 0 auto 3rem auto !important; }
.top3-tree .org-card-wrapper { display: flex; flex-direction: column; align-items: center; }
.top3-tree .org-card { width: 220px; padding: 1.5rem 1rem; }
.staff-combined-card { width: 340px !important; min-width: 340px !important; max-width: 340px !important; padding: 1.5rem 1rem !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; box-sizing: border-box !important; }
.staff-duo-grid { display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: stretch !important; gap: 1rem !important; width: 100% !important; margin-top: 1rem !important; }
.staff-duo-item { flex: 1 1 0 !important; min-width: 0 !important; max-width: 140px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; padding: 0.75rem 0.5rem !important; background: rgba(255,255,255,0.1) !important; border-radius: 12px !important; box-sizing: border-box !important; }
.staff-duo-avatar { width: 50px !important; height: 50px !important; border-radius: 50% !important; overflow: hidden !important; flex-shrink: 0 !important; margin: 0 auto 0.5rem !important; background: #fff !important; }
.staff-duo-avatar img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; display: block !important; }
.staff-duo-role { font-size: 0.65rem !important; font-weight: 600 !important; color: #f6e05e !important; text-align: center !important; margin-bottom: 0.25rem !important; width: 100% !important; word-wrap: break-word !important; overflow-wrap: break-word !important; line-height: 1.3 !important; }
.staff-duo-name { font-size: 0.7rem !important; color: #fff !important; text-align: center !important; width: 100% !important; word-wrap: break-word !important; overflow-wrap: break-word !important; line-height: 1.4 !important; }
#wrapper-ketua-pembina { width: 340px !important; min-width: 340px !important; display: flex; justify-content: center; align-items: center; }
#wrapper-staf-ahli { width: 340px !important; min-width: 340px !important; display: flex; justify-content: center; align-items: center; }
#wrapper-ketua-pembina .org-card { width: 220px !important; }
#wrapper-staf-ahli .org-card { width: 320px !important; }
#row-sekben { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2.5rem; }
#row-sekben .org-card { width: 200px; }
#row-pokja { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }
#row-pokja .org-card { width: 200px; background: linear-gradient(135deg, #234e52, #285e61); color: #fff; border: none; }
#row-pokja .org-card .org-position { color: #f6e05e; }
#row-pokja .org-card .org-name { color: #fff; }
.org-card { background: #fff; border-radius: 16px; padding: 1.25rem 1rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 2px solid #e2e8f0; transition: all 0.3s ease; position: relative; z-index: 2; }
.org-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.org-card.highlight { background: linear-gradient(135deg, #1a365d, #2c5282); color: #fff; border: none; box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35); }
.org-card.highlight .org-position { color: #f6e05e; }
.org-card.highlight .org-name { color: #fff; }
.org-card.chair { border: 2px solid var(--primary); }
.org-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.75rem; overflow: hidden; border: 3px solid #e2e8f0; }
.org-card.highlight .org-avatar { border-color: rgba(255,255,255,0.4); }
.org-card .org-avatar-lg { width: 72px; height: 72px; }
.org-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-position { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary-light); margin-bottom: 0.5rem; line-height: 1.3; word-wrap: break-word; }
.org-name { font-size: 0.75rem; font-weight: 600; color: #2d3748; line-height: 1.4; word-wrap: break-word; }

/* ==========================================
   POKJA SECTION - REDESIGNED (UNIFIED CARD)
   ========================================== */

.pokja-section {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 0 !important;
    margin: 2rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border: 2px solid rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pokja-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) !important;
}

/* Header - Full width border & centered */
.pokja-header {
    background: #fff !important;
    border-radius: 0 !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 2px solid rgba(0,0,0,0.06) !important;
    /* Full width border */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Center content */
    gap: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.pokja-header:hover {
    background: #f8fafc !important;
}

/* Warna border header sesuai Pokja */
.pokja-section.p1 .pokja-header { border-bottom-color: #e53e3e !important; }
.pokja-section.p2 .pokja-header { border-bottom-color: #3182ce !important; }
.pokja-section.p3 .pokja-header { border-bottom-color: #38a169 !important; }
.pokja-section.p4 .pokja-header { border-bottom-color: #d69e2e !important; }

/* Nomor Pokja */
.pokja-number {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pokja-header:hover .pokja-number {
    transform: scale(1.05) !important;
}

.pokja-number.p1 { background: linear-gradient(135deg, #e53e3e, #fc8181) !important; }
.pokja-number.p2 { background: linear-gradient(135deg, #3182ce, #63b3ed) !important; }
.pokja-number.p3 { background: linear-gradient(135deg, #38a169, #68d391) !important; }
.pokja-number.p4 { background: linear-gradient(135deg, #d69e2e, #f6e05e) !important; }

/* Title & Subtitle - benar-benar center dengan absolute positioning */
.pokja-header > div:nth-child(2) {
    text-align: center !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 65% !important;
    margin: 0 !important;
    pointer-events: none !important; /* Agar tidak menghalangi klik */
}

.pokja-title,
.pokja-subtitle {
    pointer-events: auto !important; /* Kembalikan klik pada teks */
}

/* Nomor Pokja - tetap di kiri */
.pokja-number {
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
}

/* Toggle icon - tetap di kanan */
.toggle-icon {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.pokja-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.pokja-subtitle {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0.25rem 0 0 0 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease !important;
}

.pokja-header:hover .pokja-title {
    color: var(--primary) !important;
}

/* Toggle icon */
.toggle-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #edf2f7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.pokja-header:hover .toggle-icon {
    background: #e2e8f0 !important;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg) !important;
}

.toggle-icon svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Content container dengan smooth animation */
.pokja-content {
    overflow: hidden !important;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: 3000px !important;
    opacity: 1 !important;
    padding: 2rem !important;
}

.pokja-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 2rem !important;
}

/* Grid members */
.pokja-members {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 1.5rem !important;
    justify-items: center !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Member card dengan smooth animation */
.member-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    border: 2px solid rgba(0,0,0,0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    max-width: 200px !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.member-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.member-card .org-avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    margin: 0 auto 0.75rem !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.member-card:hover .org-avatar {
    transform: scale(1.05) !important;
}

.member-card .org-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.member-card .org-position {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    color: #475569 !important;
    transition: color 0.3s ease !important;
}

.member-card .org-name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    word-wrap: break-word !important;
    transition: color 0.3s ease !important;
}

/* Warna border member struktural sesuai Pokja */
.pokja-section.p1 .member-card.pos-ketua,
.pokja-section.p1 .member-card.pos-wakil,
.pokja-section.p1 .member-card.pos-sekretaris {
    border-color: #e53e3e !important;
    background: linear-gradient(135deg, #fff5f5, #fff) !important;
}
.pokja-section.p1 .member-card.pos-ketua .org-position,
.pokja-section.p1 .member-card.pos-wakil .org-position,
.pokja-section.p1 .member-card.pos-sekretaris .org-position {
    color: #e53e3e !important;
}

.pokja-section.p2 .member-card.pos-ketua,
.pokja-section.p2 .member-card.pos-wakil,
.pokja-section.p2 .member-card.pos-sekretaris {
    border-color: #3182ce !important;
    background: linear-gradient(135deg, #ebf8ff, #fff) !important;
}
.pokja-section.p2 .member-card.pos-ketua .org-position,
.pokja-section.p2 .member-card.pos-wakil .org-position,
.pokja-section.p2 .member-card.pos-sekretaris .org-position {
    color: #3182ce !important;
}

.pokja-section.p3 .member-card.pos-ketua,
.pokja-section.p3 .member-card.pos-wakil,
.pokja-section.p3 .member-card.pos-sekretaris {
    border-color: #38a169 !important;
    background: linear-gradient(135deg, #f0fff4, #fff) !important;
}
.pokja-section.p3 .member-card.pos-ketua .org-position,
.pokja-section.p3 .member-card.pos-wakil .org-position,
.pokja-section.p3 .member-card.pos-sekretaris .org-position {
    color: #38a169 !important;
}

.pokja-section.p4 .member-card.pos-ketua,
.pokja-section.p4 .member-card.pos-wakil,
.pokja-section.p4 .member-card.pos-sekretaris {
    border-color: #d69e2e !important;
    background: linear-gradient(135deg, #fffbeb, #fff) !important;
}
.pokja-section.p4 .member-card.pos-ketua .org-position,
.pokja-section.p4 .member-card.pos-wakil .org-position,
.pokja-section.p4 .member-card.pos-sekretaris .org-position {
    color: #d69e2e !important;
}

.member-card.pos-anggota {
    border: 2px solid rgba(0,0,0,0.06) !important;
    background: #fff !important;
}

.member-card.pos-anggota .org-position {
    color: #64748b !important;
    font-weight: 600 !important;
}

/* ==========================================
   POKJA - MOBILE RESPONSIVE (3 COLUMNS)
   ========================================== */
@media (max-width: 768px) {
    .pokja-section {
        margin: 1rem 0.5rem !important;
        border-radius: 12px !important;
    }

    /* Header - sejajarkan nomor, teks, dan panah */
    .pokja-header {
        padding: 0.9rem 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }

    /* Nomor di kiri */
    .pokja-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        margin-right: 0 !important;
    }

    /* Teks di tengah */
    .pokja-header > div:nth-child(2) {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex: 1 !important;
        text-align: left !important;
        min-width: 0 !important;
        order: 2 !important;
        max-width: none !important;
    }

    .pokja-title {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }

    /* Sembunyikan deskripsi di mobile */
    .pokja-subtitle {
        display: none !important;
    }

    /* Panah di kanan, sejajar */
    .toggle-icon {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
        order: 3 !important;
        margin-left: 0 !important;
    }

    .toggle-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .pokja-content {
        padding: 1rem !important;
    }

    /* GRID 3 KOLOM - PAKSA DENGAN SELECTOR KUAT */
    .pokja-section .pokja-content .pokja-members {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 0.6rem !important;
        width: 100% !important;
        justify-items: center !important;
        align-items: stretch !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card {
        /* RESET SEMUA PROPERTI DESKTOP */
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0.6rem 0.3rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        margin: 0 auto 0.3rem !important;
        flex-shrink: 0 !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-position {
        font-size: 0.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-name {
        font-size: 0.58rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .pokja-section {
        margin: 0.75rem 0.25rem !important;
    }

    .pokja-header {
        padding: 0.75rem 0.75rem !important;
        gap: 0.5rem !important;
    }

    .pokja-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .pokja-title {
        font-size: 0.8rem !important;
    }

    .toggle-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .toggle-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .pokja-content {
        padding: 0.75rem !important;
    }

    .pokja-section .pokja-content .pokja-members {
        gap: 0.4rem !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card {
        padding: 0.5rem 0.25rem !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-avatar {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        margin-bottom: 0.25rem !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-position {
        font-size: 0.45rem !important;
    }

    .pokja-section .pokja-content .pokja-members .member-card .org-name {
        font-size: 0.55rem !important;
    }
}

/* ==========================================
   12. SK & DOKUMEN
   ========================================== */
.sk-section { padding: 4rem 2rem; background: var(--bg-light); }
.sk-container { max-width: 1200px; margin: 0 auto; }
.sk-header { margin-bottom: 2.5rem; }
.sk-header-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 0; }
.sk-section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin: 0; letter-spacing: -0.5px; line-height: 1; flex-shrink: 0; }
.sk-header-controls { display: flex; align-items: center; gap: 1rem; width: 100%; justify-content: space-between; }
.sk-perpage-selector { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.sk-perpage-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.sk-perpage-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.sk-perpage-select { padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background: #fff; cursor: pointer; transition: all 0.2s ease; font-family: inherit; min-width: 60px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 16px; padding-right: 2rem; }
.sk-perpage-select:hover { border-color: var(--primary); }
.sk-perpage-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1); }
.sk-perpage-text { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.sk-search-box { position: relative; flex: 1; min-width: 250px; max-width: 500px; }
.sk-search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.sk-search-input { width: 100%; padding: 0.75rem 1.25rem 0.75rem 3rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; transition: all 0.3s ease; background: #fff; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.sk-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1); }
.sk-loading { text-align: center; padding: 4rem 2rem; }
.sk-loading-spinner { width: 48px; height: 48px; border: 4px solid rgba(15, 107, 99, 0.1); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 1rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk-loading-text { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.sk-table-container { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-bottom: 2rem; overflow-x: auto; }
.sk-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 800px; }
.sk-table thead tr { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; }
.sk-table th { padding: 1.25rem 1.5rem; text-align: left; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.sk-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: #fff; }
.sk-table tbody tr:last-child { border-bottom: none; }
.sk-table tbody tr:hover { background: linear-gradient(90deg, #f0fdfa 0%, #ccfbf1 100%); box-shadow: inset 0 0 0 1px rgba(15, 107, 99, 0.1); }
.sk-table td { padding: 1.25rem 1.5rem; vertical-align: middle; overflow: hidden; }
.sk-col-no { width: 60px; text-align: center; }
.sk-col-date { width: 160px; }
.sk-col-size { width: 130px; }
.sk-col-action { width: 120px; text-align: center; }
.sk-header-icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: middle; display: inline-block; stroke: currentColor; }
.sk-cell-name { display: flex !important; align-items: center; gap: 1rem; }
.sk-doc-icon { width: 42px; height: 42px; background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(25,122,110,0.1)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-doc-icon svg { width: 22px; height: 22px; color: var(--primary); }
.sk-doc-info { flex: 1; min-width: 0; overflow: hidden; }
.sk-doc-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sk-doc-file { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sk-cell-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: middle; color: var(--text-muted); display: inline-block; flex-shrink: 0; }
.sk-cell-date, .sk-cell-size { white-space: nowrap; color: var(--text-muted); font-size: 0.9rem; }
.sk-cell-date svg, .sk-cell-size svg { vertical-align: middle; }
.sk-action-buttons { display: flex; gap: 0.5rem; justify-content: center; align-items: center; }
.sk-action-btn { width: 36px; height: 36px; border-radius: 10px; border: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; }
.sk-action-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.sk-action-btn:hover svg { transform: scale(1.15); }
.sk-view-btn { background: rgba(15, 107, 99, 0.1); color: var(--primary); }
.sk-view-btn:hover { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.sk-download-btn { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.sk-download-btn:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.sk-mobile-list { display: none !important; flex-direction: column; gap: 1rem; }
.sk-mobile-card { background: #fff; border-radius: 14px; padding: 1.25rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 2px solid rgba(15, 107, 99, 0.1); transition: all 0.3s ease; }
.sk-mobile-card:hover { box-shadow: 0 6px 20px rgba(15, 107, 99, 0.15); transform: translateY(-2px); border-color: rgba(15, 107, 99, 0.2); }
.sk-mobile-card-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.sk-mobile-doc-icon { width: 48px; height: 48px; background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(25,122,110,0.1)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-mobile-doc-icon svg { width: 24px; height: 24px; color: var(--primary); }
.sk-mobile-doc-info { flex: 1; min-width: 0; }
.sk-mobile-doc-name { font-weight: 600; color: var(--text-dark); font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; word-break: break-word; }
.sk-mobile-doc-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.sk-mobile-doc-date, .sk-mobile-doc-size { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.sk-mobile-doc-date svg, .sk-mobile-doc-size svg { width: 16px; height: 16px; flex-shrink: 0; }
.sk-mobile-card-actions { display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.05); }
.sk-mobile-action-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: 10px; border: none; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; text-decoration: none; }
.sk-mobile-action-btn svg { width: 18px; height: 18px; }
.sk-mobile-action-btn.sk-view-btn { background: rgba(15, 107, 99, 0.1); color: var(--primary); }
.sk-mobile-action-btn.sk-view-btn:hover { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.sk-mobile-action-btn.sk-download-btn { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.sk-mobile-action-btn.sk-download-btn:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.sk-empty-state { text-align: center; padding: 5rem 2rem; max-width: 650px; margin: 0 auto; }
.sk-empty-icon { width: 120px; height: 120px; margin: 0 auto 2rem; background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(25,122,110,0.1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sk-empty-icon svg { width: 60px; height: 60px; stroke: var(--primary); opacity: 0.8; }
.sk-empty-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin: 0 0 0.75rem 0; }
.sk-empty-text { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0 auto 2rem; max-width: 500px; }
.sk-back-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15,107,99,0.3); border: none; font-family: inherit; }
.sk-back-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15,107,99,0.4); }
.sk-back-btn svg { width: 18px; height: 18px; }
.sk-pagination-wrapper { padding: 1.5rem; background: #fff; border-radius: 16px; margin-top: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); max-width: 1200px; margin-left: auto; margin-right: auto; }
.sk-pagination-wrapper.hidden { display: none !important; }
.sk-pagination-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sk-page-numbers { display: flex; align-items: center; gap: 0.5rem; }
.sk-pagination-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; text-decoration: none; min-width: 40px; font-family: inherit; }
.sk-pagination-btn:hover:not(:disabled):not(.active) { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.sk-pagination-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); cursor: default; }
.sk-pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f1f5f9; }
.sk-pagination-btn svg { width: 16px; height: 16px; }
.sk-pagination-dots { padding: 0.5rem 0.25rem; color: var(--text-muted); font-size: 0.875rem; }
.sk-pagination-info { text-align: center; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.sk-pagination-info strong { color: var(--primary); font-weight: 600; }
.sk-empty-state .sk-back-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15,107,99,0.3); border: none; font-family: inherit; margin-top: 1rem; }
.sk-empty-state .sk-back-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15,107,99,0.4); }
.sk-empty-state .sk-back-btn svg { width: 18px; height: 18px; }
.sk-empty-state .sk-back-btn:nth-of-type(2) { display: none; }
.sk-empty-state.has-search .sk-back-btn:first-of-type { display: none; }
.sk-empty-state.has-search .sk-back-btn:nth-of-type(2) { display: inline-flex; }
.sk-empty-state.no-documents .sk-back-btn:first-of-type { display: inline-flex; }
.sk-empty-state.no-documents .sk-back-btn:nth-of-type(2) { display: none; }
.sk-empty-search-term { background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(25,122,110,0.1)); border: 2px solid rgba(15,107,99,0.2); border-radius: 12px; padding: 0.75rem 1.5rem; margin: 1rem auto 1.5rem; max-width: 500px; font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }
.sk-empty-search-term strong { color: var(--primary); font-weight: 700; font-size: 1.05rem; display: block; margin-top: 0.25rem; }
.sk-back-btn.sk-btn-secondary { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.sk-back-btn.sk-btn-secondary:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); }

/* ==========================================
   13. DESA SECTION
   ========================================== */
.desa-section { padding: 4rem 2rem; background: var(--bg-light); }
.desa-container { max-width: 1200px; margin: 0 auto; }
.desa-header { margin-bottom: 2.5rem; }
.desa-section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin: 0 0 1.5rem 0; letter-spacing: -0.5px; line-height: 1; flex-shrink: 0; }
.desa-header-controls { display: flex; align-items: center; gap: 1rem; width: 100%; justify-content: space-between; flex-wrap: wrap; }
.desa-search-box { position: relative; flex: 1; min-width: 250px; max-width: 500px; }
.desa-search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.desa-search-input { width: 100%; padding: 0.75rem 1.25rem 0.75rem 3rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; transition: all 0.3s ease; background: #fff; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.desa-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1); }
.desa-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
/* Per page selector (selaras dengan SK & Dokumen) */
.desa-perpage-selector { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.desa-perpage-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.desa-perpage-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.desa-perpage-select { padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background: #fff; cursor: pointer; transition: all 0.2s ease; font-family: inherit; min-width: 60px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 16px; }
.desa-perpage-select:hover { border-color: var(--primary); }
.desa-perpage-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1); }
.desa-perpage-text { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
/* Baris filter: scroll horizontal agar tetap rapi walau kecamatan banyak */
.desa-filter { display: flex; justify-content: flex-start; align-items: center; gap: 0.6rem; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.2) transparent; margin-top: 1.25rem; }
.desa-filter[hidden], .desa-filter.u-hidden { display: none !important; }
.desa-filter::-webkit-scrollbar { height: 6px; }
.desa-filter::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.filter-btn { padding: 8px 20px; border: 2px solid rgba(0,0,0,0.08); background: #fff; border-radius: 50px; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; white-space: nowrap; flex-shrink: 0; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.desa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; align-items: stretch; }
/* Loading state (selaras dengan SK & Dokumen) */
.desa-loading { text-align: center; padding: 4rem 2rem; }
.desa-loading-spinner { width: 48px; height: 48px; border: 4px solid rgba(15, 107, 99, 0.1); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 1rem; animation: spin 0.8s linear infinite; }
.desa-loading-text { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
/* Empty state (selaras dengan Berita) */
.desa-empty-state { text-align: center; padding: 5rem 2rem; max-width: 650px; margin: 0 auto; }
.desa-empty-icon { width: 120px; height: 120px; margin: 0 auto 2rem; background: linear-gradient(135deg, rgba(15, 107, 99, 0.1), rgba(20, 184, 166, 0.1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f6b63; }
.desa-empty-icon svg { opacity: 0.8; }
.desa-empty-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin: 0 0 0.75rem 0; }
.desa-empty-text { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0 auto 2rem; max-width: 500px; }
.desa-back-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, #0f6b63, #14b8a6); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15, 107, 99, 0.3); }
.desa-back-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15, 107, 99, 0.4); }
.desa-back-btn svg { width: 18px; height: 18px; }
/* Pagination (selaras dengan Berita / SK & Dokumen) */
.desa-pagination-wrapper { padding: 1.5rem; background: #fff; border-radius: 16px; margin-top: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); max-width: 1200px; margin-left: auto; margin-right: auto; }
.desa-pagination-wrapper.hidden, .desa-pagination-wrapper.u-hidden { display: none !important; }
.desa-pagination-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.desa-pagination-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; text-decoration: none; min-width: 40px; font-family: inherit; }
.desa-pagination-btn:hover:not(:disabled):not(.active) { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.desa-pagination-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); cursor: default; }
.desa-pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f1f5f9; }
.desa-pagination-btn svg { width: 16px; height: 16px; }
.desa-page-numbers { display: flex; align-items: center; gap: 0.5rem; }
.desa-pagination-dots { padding: 0.5rem 0.25rem; color: var(--text-muted); font-size: 0.875rem; }
.desa-pagination-info { text-align: center; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.desa-pagination-info strong { color: var(--primary); font-weight: 600; }
.desa-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.desa-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
/* Kartu desa = link ke landing page desa (tab baru): kursor & fokus jelas */
a.desa-card { color: inherit; cursor: pointer; }
a.desa-card:focus-visible { outline: 3px solid rgba(15, 107, 99, 0.45); outline-offset: 3px; }
a.desa-card:hover .desa-card-image { transform: scale(1.05); }
.desa-card-image { transition: transform 0.45s ease; }
/* Desa yang portalnya belum aktif: kartu redup, badge "Segera" abu */
.desa-card-soon { opacity: 0.82; }
.desa-card-soon .desa-card-image-wrapper, .desa-card-soon .desa-card-image-placeholder { filter: grayscale(0.45); }
.desa-card-visit-soon { color: #64748b !important; background: rgba(241, 245, 249, 0.95) !important; }
/* Info "X dari Y desa aktif" di baris header halaman desa */
.desa-aktif-info { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-top: 0.5rem; }
.desa-aktif-info strong { color: var(--primary); }
.desa-aktif-info svg { width: 16px; height: 16px; color: var(--primary); }
/* Indikator "buka website" muncul saat hover di pojok kanan atas gambar */
.desa-card-visit { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border-radius: 50px; background: rgba(255, 255, 255, 0.92); color: #0f6b63; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px; opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); pointer-events: none; }
.desa-card-visit svg { width: 12px; height: 12px; }
a.desa-card:hover .desa-card-visit, a.desa-card:focus-visible .desa-card-visit { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .desa-card-visit { opacity: 1; transform: none; } }
.desa-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.desa-card-image-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); flex-shrink: 0; }
.desa-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.25rem; }
.desa-card-body h3 { margin: 0 0 0.5rem 0; font-size: 1.15rem; font-weight: 700; color: #166534; }
.desa-card-body p { margin: 0 0 0.75rem 0; font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.desa-card-body p svg { width: 12px; height: 12px; flex-shrink: 0; }
.desa-card-body small { display: block; color: var(--text-muted); line-height: 1.5; font-size: 0.85rem; }
.desa-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 1.25rem; background: #f8fafc; border-top: 2px solid #f0fdf4; flex-shrink: 0; }
.desa-stat { text-align: center; }
.desa-stat-number { font-size: 1.25rem; font-weight: 700; color: #166534; }
.desa-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================
   14. TEMPLATE PAGE
   ========================================== */
.template-section { padding: 4rem 2rem; background: var(--bg-light); }
.template-container { max-width: 1200px; margin: 0 auto; }
.template-header { margin-bottom: 2rem; }
.template-section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin: 0 0 1.5rem 0; letter-spacing: -0.5px; }
.template-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; width: 100%; }
.template-search-box { position: relative; flex: 1; min-width: 250px; max-width: 500px; }
.template-search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.template-search-input { width: 100%; padding: 0.75rem 1.25rem 0.75rem 3rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; transition: all 0.3s ease; background: #fff; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.template-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1); }
.template-perpage-selector { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.template-perpage-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.template-perpage-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.template-perpage-select { padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background: #fff; cursor: pointer; transition: all 0.2s ease; font-family: inherit; min-width: 60px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 16px; }
.template-perpage-select:hover { border-color: var(--primary); }
.template-perpage-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.1); }
.template-perpage-text { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.template-loading { text-align: center; padding: 4rem 2rem; }
.template-loading-spinner { width: 48px; height: 48px; border: 4px solid rgba(15, 107, 99, 0.1); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 1rem; animation: spin 0.8s linear infinite; }
.template-loading-text { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.template-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.template-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s ease; display: flex; flex-direction: column; }
.template-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.template-card-header { padding: 2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: relative; }
.template-card-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.template-card-icon svg { width: 28px; height: 28px; color: #fff; }
.template-card-format { background: rgba(255,255,255,0.25); color: #fff; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }
.template-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.template-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 1rem 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.template-card-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.template-card-date, .template-card-size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.template-card-date svg, .template-card-size svg { width: 16px; height: 16px; flex-shrink: 0; }
.template-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0 1.5rem 1.5rem; }
.template-card-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: 10px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; border: none; font-family: inherit; }
.template-card-btn svg { width: 18px; height: 18px; }
.template-card-btn-preview { background: rgba(15, 107, 99, 0.1); color: var(--primary); }
.template-card-btn-preview:hover { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.template-card-btn-download { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.template-card-btn-download:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.template-empty-state { text-align: center; padding: 5rem 2rem; max-width: 650px; margin: 0 auto; }
.template-empty-icon { width: 120px; height: 120px; margin: 0 auto 2rem; background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(25,122,110,0.1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.template-empty-icon svg { width: 60px; height: 60px; stroke: var(--primary); opacity: 0.8; }
.template-empty-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin: 0 0 0.75rem 0; }
.template-empty-search-term { background: linear-gradient(135deg, rgba(15,107,99,0.08), rgba(25,122,110,0.08)); border: 2px solid rgba(15,107,99,0.2); border-radius: 12px; padding: 1rem 1.5rem; margin: 1.5rem auto; max-width: 400px; text-align: center; }
.template-search-term-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.template-search-term-value { font-size: 1.25rem; color: var(--primary); font-weight: 700; word-break: break-word; line-height: 1.4; }
.template-empty-text { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0 auto 2rem; max-width: 500px; }
.template-back-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15,107,99,0.3); border: none; font-family: inherit; margin-top: 1rem; }
.template-back-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15,107,99,0.4); }
.template-back-btn svg { width: 18px; height: 18px; }
.template-btn-secondary { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.template-btn-secondary:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); }
.template-pagination-wrapper { padding: 1.5rem; background: #fff; border-radius: 16px; margin-top: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.template-pagination-wrapper.hidden { display: none !important; }
.template-pagination-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.template-page-numbers { display: flex; align-items: center; gap: 0.5rem; }
.template-pagination-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; text-decoration: none; min-width: 40px; font-family: inherit; }
.template-pagination-btn:hover:not(:disabled):not(.active) { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.template-pagination-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); cursor: default; }
.template-pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f1f5f9; }
.template-pagination-btn svg { width: 16px; height: 16px; }
.template-pagination-dots { padding: 0.5rem 0.25rem; color: var(--text-muted); font-size: 0.875rem; }
.template-pagination-info { text-align: center; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.template-pagination-info strong { color: var(--primary); font-weight: 600; }
.template-card-filename { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: rgba(0, 0, 0, 0.03); border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.05); font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 500; line-height: 1.4; overflow: hidden; }
.template-card-filename svg { flex-shrink: 0; color: var(--text-muted); opacity: 0.7; }
.template-card-filename span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; font-family: inherit; font-size: 0.8rem; font-weight: 500; color: #4a5568; }
.template-card-filename:hover { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); }
.template-preview-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2rem; }
.template-preview-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.template-preview-modal-content { position: relative; background: #fff; border-radius: 16px; max-width: 900px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalSlideUp 0.3s ease; }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.template-preview-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid #e2e8f0; }
.template-preview-modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text-dark); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 1rem; }
.template-preview-modal-close { width: 40px; height: 40px; border-radius: 10px; border: none; background: #f1f5f9; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; }
.template-preview-modal-close:hover { background: #e2e8f0; }
.template-preview-modal-close svg { width: 20px; height: 20px; color: var(--text-muted); }
.template-preview-modal-body { flex: 1; overflow: auto; padding: 0; min-height: 400px; }
.template-preview-modal-body embed, .template-preview-modal-body iframe { width: 100%; height: 600px; border: none; }
.template-preview-modal-body pre { padding: 2rem; margin: 0; white-space: pre-wrap; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; color: var(--text-dark); }
.template-preview-modal-footer { padding: 1.5rem; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.template-preview-open-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: #f1f5f9; color: var(--text-dark); border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; font-family: inherit; }
.template-preview-open-btn:hover { background: #e2e8f0; transform: translateY(-2px); }
.template-preview-open-btn svg { width: 18px; height: 18px; }
.template-preview-download-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; font-family: inherit; }
.template-preview-download-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3); }
.template-preview-download-btn svg { width: 18px; height: 18px; }

/* ==========================================
   15. INFO SECTION (Tentang)
   ========================================== */
.info-section { padding: 6rem 2rem; background: #fff; }
.info-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.info-text h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; line-height: 1.3; }
.info-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.info-list { list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: #4a5568; font-size: 0.95rem; }
.info-list li svg { flex-shrink: 0; margin-top: 2px; color: #48bb78; }
.info-map { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.info-map iframe { width: 100%; height: 400px; border: none; display: block; }
.info-map-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent); color: #fff; }
.info-map-overlay h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.info-map-overlay p { font-size: 0.8rem; opacity: 0.8; }
.info-map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.5rem; color: var(--gold); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.info-map-link:hover { color: #fff; }
.info-map-link svg { transition: transform 0.3s ease; }
.info-map-link:hover svg { transform: translateX(4px); }

/* ==========================================
   16. STATS SECTION
   ========================================== */
.stats-section { padding: 5rem 2rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.stat-item { text-align: center; opacity: 0; transform: translateY(20px); }
.stat-item.visible { opacity: 1; transform: translateY(0); transition: all 0.6s ease; }
/* Kartu desa (Section Desa) ikut memakai class .stat-item untuk angka Penduduk/KK.
   Kartu dirender dinamis setelah observer reveal berjalan, jadi .visible tidak
   pernah ditambahkan — tampilkan langsung tanpa animasi reveal. */
.desa-card .stat-item { opacity: 1; transform: none; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ==========================================
   17. FULL PAGES (Apps, Coming, News)
   ========================================== */
.apps-full-section { padding: 4rem 2rem; background: var(--bg-light); }
.apps-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 1000px; margin: 0 auto 3rem; }
.coming-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 1000px; margin: 0 auto; }

/* ==========================================
   18. FOOTER
   ========================================== */
.footer { background: var(--primary); color: #fff; padding: 3rem 0 1.5rem; margin-top: 0; width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-title-section { margin-bottom: 2rem; }
.footer-title { font-size: 1.75rem; font-weight: 700; color: #fff; margin: 0; }
.footer-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 1024px) { .footer-main { flex-direction: row; } }
.footer-left { width: 100%; }
@media (min-width: 1024px) { .footer-left { width: 58%; } }
.footer-brand-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 768px) { .footer-brand-row { flex-direction: row; } }
.footer-brand-logo { height: 144px; width: auto; object-fit: contain; flex-shrink: 0; }
@media (min-width: 768px) { .footer-brand-logo { margin-bottom: 0; } }
.footer-info { display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.footer-address { color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.7; margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0; }
.footer-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-contact-link { display: flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 1rem; transition: all 0.2s; font-weight: 500; }
.footer-contact-link:hover { color: #fff; transform: translateY(-2px); }
.contact-icon { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
.footer-right { display: flex; align-items: flex-start; justify-content: center; width: 100%; }
@media (min-width: 1024px) { .footer-right { width: 42%; justify-content: flex-end; } }
.footer-secondary-logo { height: 144px; width: auto; object-fit: contain; flex-shrink: 0; }

/* Quick Access sebagai kolom kanan footer: blok rata kanan, isi rata kiri di dalam blok */
.footer-right .footer-quick-access { width: auto; margin-left: auto; padding: 0; border-bottom: none; }
.footer-right .quick-access-title { text-align: left; margin-bottom: 1rem; }
.footer-right .quick-access-links { justify-content: flex-start; }
@media (max-width: 1023px) {
    .footer-right { margin-top: 0; }
    .footer-right .footer-quick-access { width: 100%; margin-left: 0; }
    .footer-right .quick-access-title { text-align: center; }
    .footer-right .quick-access-links { justify-content: center; }
}
.footer-quick-access { padding: 1.5rem 0 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.quick-access-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 1.5rem 0; text-transform: uppercase; letter-spacing: 0.5px; }
.quick-access-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.quick-access-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; background: rgba(255, 255, 255, 0.1); border-radius: 8px; color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.15); cursor: pointer; }
.quick-access-item:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.quick-access-item img.app-icon { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); flex-shrink: 0; }
.quick-access-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-bottom { margin-top: 1rem; padding-top: 1rem; display: flex; justify-content: center; align-items: center; }
.footer-copyright { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin: 0; text-align: center; line-height: 1.6; letter-spacing: 0.5px; font-weight: 400; transition: color 0.3s ease; }
.footer-copyright:hover { color: rgba(255, 255, 255, 0.95); }

/* ==========================================
   19. NEWS DETAIL PAGE
   ========================================== */
body:has(.news-detail-wrapper) .news-modal-overlay,
body:has(.news-detail-wrapper) #newsModal,
.news-detail-wrapper ~ .news-modal-overlay,
.news-detail-wrapper ~ #newsModal { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.news-detail-wrapper { background: #fff; min-height: 100vh; }
.news-page-header { padding: 8rem 2rem 4rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); text-align: center; position: relative; overflow: hidden; }
.news-page-header::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.news-page-header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.news-page-header h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem 0; letter-spacing: -0.5px; }
.news-page-header p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin: 0 0 1.5rem 0; font-weight: 400; }
.news-breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }
.news-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; padding: 4px 8px; border-radius: 6px; }
.news-breadcrumb a:hover { color: #fff; background: rgba(255,255,255,0.1); }
/* Teks putih 40% di atas header teal hanya ~2,5:1 (tak terbaca).
   Label dibuat lebih pekat; aksen emas jadi garis bawah, bukan warna teks
   (emas di atas teal ~2,4:1). */
.news-breadcrumb span { color: rgba(255,255,255,0.85); }
.news-breadcrumb .current { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold, #d69e2e); }
.news-detail-container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.news-detail-article { background: transparent; padding: 0; display: grid; grid-template-columns: 1fr min(800px, 100%) 1fr; }
.news-detail-article > * { grid-column: 2; }
.news-detail-article > .news-detail-image { grid-column: 1 / -1; }
.news-detail-article > .news-detail-actions { grid-column: 1 / -1; }
.news-detail-article > .news-detail-related { grid-column: 1 / -1; }
.news-detail-title { font-size: 2.75rem; font-weight: 800; color: var(--text-dark); line-height: 1.2; margin: 0 0 2rem 0; text-align: left; letter-spacing: -0.5px; }
.news-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--news-color); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 2rem; padding: 8px 16px; border-radius: 8px; transition: all 0.3s ease; border: 1px solid rgba(19, 140, 127, 0.2); }
.news-back-link:hover { background: rgba(19, 140, 127, 0.08); border-color: var(--news-color); transform: translateX(-4px); }
.news-back-link svg { transition: transform 0.3s ease; }
.news-back-link:hover svg { transform: translateX(-4px); }
.news-detail-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
.news-detail-reading-time { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.news-detail-reading-time svg { width: 18px; height: 18px; color: var(--news-color); }
.news-detail-author { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.news-detail-author svg { width: 18px; height: 18px; color: var(--news-color); }
.news-detail-category { display: inline-flex; align-items: center; background: var(--news-color); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 16px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-detail-date { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.news-detail-date svg { width: 18px; height: 18px; color: var(--news-color); }
.news-detail-image { width: 100%; border-radius: 16px; overflow: hidden; margin: 0 0 3rem 0; background: var(--bg-light); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.news-detail-image img { width: 100%; height: auto; max-height: 580px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.news-detail-image:hover img { transform: scale(1.02); }
.news-detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 0 0 3rem 0; }
.news-gallery-item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-light); box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.news-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.news-gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.news-gallery-item:hover img { transform: scale(1.05); }
.news-gallery-item figcaption { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
@media (max-width: 768px) { .news-detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .news-gallery-item img { height: 160px; } }
@media (max-width: 480px) { .news-detail-gallery { grid-template-columns: 1fr; } }
.news-detail-excerpt { font-size: 1.35rem; color: #2d3748; line-height: 1.7; margin: 0 0 3rem 0; font-weight: 500; position: relative; padding-left: 2rem; }
.news-detail-excerpt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--news-color), var(--primary)); border-radius: 2px; }
.news-detail-content { line-height: 1.9; color: #2d3748; font-size: 1.125rem; margin: 0; }
.news-detail-content p { margin-bottom: 1.75rem; text-align: justify; }
.news-detail-content p:first-child::first-letter { font-size: 3.5rem; font-weight: 800; color: var(--primary); float: left; line-height: 0.8; margin: 0.1em 0.2em 0 0; text-transform: uppercase; }
.news-detail-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2.5rem 0; display: block; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.news-detail-content h2, .news-detail-content h3, .news-detail-content h4 { margin: 3rem 0 1.5rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.news-detail-content h2 { font-size: 1.85rem; color: var(--primary); position: relative; padding-bottom: 0.75rem; }
.news-detail-content h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, var(--news-color), transparent); border-radius: 2px; }
.news-detail-content h3 { font-size: 1.45rem; }
.news-detail-content h4 { font-size: 1.2rem; }
.news-detail-content ul, .news-detail-content ol { margin: 2rem 0; padding-left: 2rem; }
.news-detail-content li { margin-bottom: 0.75rem; line-height: 1.8; }
.news-detail-content a { color: var(--news-color); text-decoration: none; border-bottom: 2px solid rgba(19, 140, 127, 0.3); transition: all 0.2s; font-weight: 600; }
.news-detail-content a:hover { color: var(--primary); border-bottom-color: var(--news-color); }
.news-detail-content blockquote { padding: 2rem 2.5rem; margin: 3rem 0; border-left: 4px solid var(--news-color); background: linear-gradient(135deg, rgba(19, 140, 127, 0.05), rgba(15, 107, 99, 0.05)); font-style: italic; color: #4a5568; border-radius: 0 12px 12px 0; font-size: 1.15rem; line-height: 1.7; position: relative; }
.news-detail-content blockquote::before { content: '"'; position: absolute; top: -10px; left: 15px; font-size: 4rem; color: var(--news-color); opacity: 0.2; font-family: Georgia, serif; line-height: 1; }
.news-detail-content [style*="text-align: center"], .news-detail-content .text-center { text-align: center !important; }
.news-detail-content [style*="text-align: right"], .news-detail-content .text-right { text-align: right !important; }
.news-detail-content [style*="text-align: justify"], .news-detail-content .text-justify { text-align: justify !important; }
.news-detail-share { padding: 3rem 0; border-top: 1px solid rgba(0,0,0,0.08); text-align: center; }
.news-detail-share-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin: 0 0 1.5rem 0; text-transform: uppercase; letter-spacing: 2px; }
.news-share-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.news-share-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 0.9rem; font-weight: 600; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; border: 2px solid; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.news-share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.news-share-btn.facebook { color: #1877f2; border-color: #1877f2; }
.news-share-btn.facebook:hover { background: #1877f2; color: #fff; }
.news-share-btn.twitter { color: #000; border-color: #000; }
.news-share-btn.twitter:hover { background: #000; color: #fff; }
.news-share-btn.whatsapp { color: #128c7e; border-color: #128c7e; }
.news-share-btn.whatsapp:hover { background: #128c7e; color: #fff; }
.news-share-btn svg { width: 18px; height: 18px; }
.news-detail-related { margin-top: 5rem; padding: 4rem 0 0; border-top: 1px solid rgba(0,0,0,0.08); }
.news-detail-related-title { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin: 0 0 3rem 0; text-align: center; }
.news-detail-related-title::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--news-color), var(--primary)); margin: 1rem auto 0; border-radius: 2px; }

/* ===== MAGAZINE LAYOUT: Image Left + Content Right ===== */
.news-magazine-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: start; }
.news-magazine-gallery { position: sticky; top: 100px; }
.news-gallery-main { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-light); box-shadow: 0 20px 60px rgba(0,0,0,0.15); aspect-ratio: 4/3; }
.news-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.4s ease; }
.news-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: all 0.2s; z-index: 2; }
.news-gallery-arrow svg { width: 20px; height: 20px; color: #1e293b; }
.news-gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.news-gallery-prev { left: 12px; }
.news-gallery-next { right: 12px; }
.news-gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; z-index: 2; }
.news-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.2) transparent; }
.news-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.news-gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
.news-gallery-thumb { flex: 0 0 72px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; padding: 0; background: none; }
.news-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-gallery-thumb:hover { border-color: rgba(0,0,0,0.2); }
.news-gallery-thumb.active { border-color: var(--news-color); box-shadow: 0 0 0 2px rgba(19, 140, 127, 0.3); }
.news-magazine-content { min-width: 0; }
@media (max-width: 900px) {
    .news-magazine-layout { grid-template-columns: 1fr; gap: 2rem; }
    .news-magazine-gallery { position: static; }
    .news-gallery-main { aspect-ratio: 16/9; }
}
.news-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-related-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.4s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.04); }
.news-related-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.news-related-image { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.news-related-card:hover .news-related-image { transform: scale(1.05); }
.news-related-image-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(19,140,127,0.1), rgba(19,140,127,0.05)); color: var(--news-color); }
.news-related-image-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.news-related-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.news-related-category { display: inline-block; background: var(--news-color); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 12px; border-radius: 4px; margin-bottom: 1rem; width: fit-content; text-transform: uppercase; letter-spacing: 0.5px; }
.news-related-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin: 0 0 0.75rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-related-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-related-date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.news-related-date svg { width: 14px; height: 14px; }
.news-related-link { display: inline-flex; align-items: center; gap: 8px; color: var(--news-color); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: gap 0.3s ease; margin-top: auto; }
.news-related-link:hover { gap: 12px; }
.news-related-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.news-related-link:hover svg { transform: translateX(6px); }

/* ==========================================
   20. RESPONSIVE - DESKTOP (1101px+)
   ========================================== */
@media (min-width: 1101px) {
    .mobile-menu { display: none !important; }
}

/* ==========================================
   21. RESPONSIVE - TABLET (1024px)
   ========================================== */
@media (max-width: 1024px) {
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
    .desa-grid { grid-template-columns: repeat(3, 1fr); }
    .top3-tree { gap: 1.5rem; }
    .top3-tree .org-card { width: 180px; }
    .staff-combined-card { width: 300px !important; min-width: 300px !important; max-width: 300px !important; }
    .staff-duo-item { max-width: 120px !important; }
    #row-pokja .org-card { width: 180px; }
    .footer-quick-access { padding: 1rem 0; }
    .news-full-grid { grid-template-columns: repeat(2, 1fr); }
    .news-related-grid { grid-template-columns: repeat(2, 1fr); }
    .news-detail-image img { max-height: 450px; }
    .news-page-header h1 { font-size: 2.25rem; }
    .news-detail-title { font-size: 2.25rem; }
}

/* ==========================================
   21. RESPONSIVE - MOBILE (768px)
   ========================================== */
@media (max-width: 1100px) and (min-width: 769px) {
    .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
    .navbar-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(30, 58, 95, 0.98); flex-direction: column; padding: 1.5rem 2rem; gap: 0.5rem; backdrop-filter: blur(20px); }
    .navbar-links.active { display: flex; }
    .navbar-links a { padding: 10px 14px; font-size: 0.9rem; }
    .hamburger { display: flex; }
    .hero { min-height: 100dvh !important; min-height: -webkit-fill-available !important; height: 100dvh !important; padding: 5rem 1.25rem 3rem !important; }
    .hero-content { padding: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-badge { margin-bottom: 1.5rem; padding: 6px 16px; }
    .hero-logo { height: 88px; }
    .hero h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 0.75rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
    .hero-cta { width: 100%; max-width: 300px; justify-content: center; padding: 14px 24px; font-size: 1rem; }
    .hero-slider-indicators { bottom: 1.5rem; }
    .quick-access-section, .apps-home-section, .news-home-section { padding-left: 1rem; padding-right: 1rem; }
    .quick-access-card, .app-card-home, .news-card, .news-card-link, .navbar-links a, .hero-cta, .floating-trigger, .btn-see-all, .tab-btn, .filter-btn { touch-action: manipulation; }
    .quick-access-card { min-height: 120px; padding: 1.25rem 1rem; border-radius: 18px; }
    .quick-access-card h3 { font-size: 0.95rem; }
    .quick-access-card p { font-size: 0.82rem; }
    .navbar-links a, .hamburger, .floating-trigger, .tab-btn, .filter-btn, .btn-see-all, .news-card-link, .news-back-btn, .desa-back-btn, .sk-back-btn, .template-back-btn { min-height: 44px; }
    .news-card-link { display: inline-flex; width: fit-content; }
    .slider-dot { width: 12px; height: 12px; }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid-home, .coming-home-grid, .apps-full-grid, .coming-full-grid { grid-template-columns: 1fr; }
    .news-home-grid, .news-full-grid { grid-template-columns: 1fr; }
    /* Ponsel & ponsel besar: 1 kolom, selaras grid berita & aplikasi */
    .desa-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-number { font-size: 2.2rem; }
    .info-container { grid-template-columns: 1fr; gap: 2rem; }
    .info-map iframe { height: 300px; }
    .page-header h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .floating-app-btn { bottom: 1.5rem; right: 1.5rem; }
    .struktur-scroll { overflow-x: visible !important; overflow: visible !important; padding: 1rem 0 !important; }
    .struktur-tree { min-width: 0 !important; width: 100% !important; }
    .top3-tree { flex-direction: column !important; align-items: center !important; gap: 1.25rem !important; width: 100% !important; max-width: 100% !important; margin: 0 auto 2rem auto !important; padding: 0 0.5rem; }
    .top3-tree::after { display: none; }
    .top3-tree .top-v-line { height: 20px; }
    .top-three-row { flex-direction: column; align-items: center; }
    .top3-tree .org-card-wrapper .top-h-line { display: none; }
    .top3-tree .org-card-wrapper { width: 100% !important; max-width: 320px !important; min-width: 0 !important; }
    .top3-tree .org-card { width: 100% !important; min-width: 0 !important; max-width: 320px !important; padding: 1.25rem 1rem !important; }
    #wrapper-ketua-pembina, #wrapper-staf-ahli { width: 100% !important; min-width: 0 !important; max-width: 320px !important; }
    #wrapper-ketua-pembina .org-card, #wrapper-staf-ahli .org-card { width: 100% !important; max-width: 320px !important; min-width: 0 !important; }
    .staff-combined-card { width: 100% !important; min-width: 0 !important; max-width: 320px !important; padding: 1.25rem 1rem !important; }
    .staff-duo-grid { flex-direction: row !important; gap: 0.75rem !important; width: 100% !important; margin-top: 0.75rem !important; }
    .staff-duo-item { flex: 1 !important; min-width: 0 !important; max-width: none !important; width: auto !important; padding: 0.75rem 0.5rem !important; }
    .staff-duo-avatar { width: 44px !important; height: 44px !important; }
    .staff-duo-role { font-size: 0.6rem !important; }
    .staff-duo-name { font-size: 0.65rem !important; }
    #row-sekben { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important; gap: 0.75rem !important; width: 100% !important; margin-bottom: 1.5rem !important; }
    #row-sekben .org-card-wrapper { width: calc(50% - 0.5rem) !important; max-width: 160px !important; min-width: 0 !important; }
    #row-sekben .org-card { width: 100% !important; min-width: 0 !important; padding: 1rem 0.5rem !important; }
    #row-sekben .org-avatar { width: 44px !important; height: 44px !important; }
    #row-sekben .org-position { font-size: 0.6rem !important; }
    #row-sekben .org-name { font-size: 0.65rem !important; }
    #row-pokja { flex-direction: row !important; flex-wrap: wrap !important; gap: 0.75rem !important; justify-content: center !important; width: 100% !important; margin-bottom: 2rem !important; padding: 0 0.5rem; }
    #row-pokja .org-card-wrapper:nth-child(3),
    #row-pokja .org-card-wrapper:nth-child(4) {
        margin-top: 2.5rem !important; /* Jarak lebih besar di mobile */
    }
    #row-pokja .org-card-wrapper { width: calc(50% - 0.5rem) !important; max-width: 150px !important; min-width: 0 !important; }
    #row-pokja .org-card { width: 100% !important; min-width: 0 !important; padding: 1rem 0.5rem !important; }
    #row-pokja .org-avatar { width: 40px !important; height: 40px !important; }
    #row-pokja .org-position { font-size: 0.55rem !important; }
    #row-pokja .org-name { font-size: 0.6rem !important; }
    .struktur-row { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important; gap: 0.75rem !important; width: 100% !important; }
    .struktur-row-gap { height: 0.75rem !important; }
    .pokja-section { padding: 1.5rem 0.5rem !important; margin: 1.5rem 0 !important; }
    .pokja-header { padding: 1rem !important; margin-bottom: 1.5rem !important; flex-wrap: wrap !important; }
    .pokja-number { width: 40px !important; height: 40px !important; font-size: 1rem !important; }
    .pokja-title { font-size: 0.95rem !important; flex: 1 !important; }
    .pokja-subtitle { font-size: 0.75rem !important; width: 100% !important; }
    .toggle-icon { width: 28px !important; height: 28px !important; }
    .pokja-members { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; gap: 1rem !important; }
    .member-card { max-width: 160px !important; min-height: 160px !important; padding: 1.25rem 0.75rem !important; }
    .member-card .org-avatar { width: 50px !important; height: 50px !important; }
    .member-card .org-position { font-size: 0.65rem !important; }
    .member-card .org-name { font-size: 0.75rem !important; }
    .org-card { padding: 1rem 0.75rem !important; }
    .org-avatar { width: 48px !important; height: 48px !important; margin: 0 auto 0.5rem !important; }
    .org-position { font-size: 0.6rem !important; }
    .org-name { font-size: 0.65rem !important; }
    .sk-section { padding: 3rem 1.5rem; }
    .sk-header-top { flex-direction: column; align-items: stretch; gap: 1rem; }
    .sk-section-title { font-size: 1.5rem; text-align: center; }
    .sk-header-controls { flex-direction: column; align-items: stretch; }
    .sk-perpage-selector { width: 100%; justify-content: center; margin-left: 0; }
    .sk-perpage-text { display: none; }
    .sk-search-box { max-width: 100%; width: 100%; }
    .sk-search-input { padding: 0.75rem 1rem 0.75rem 2.75rem; font-size: 0.9rem; }
    .sk-search-icon { left: 1rem; width: 18px; height: 18px; }
    .sk-table-container { display: none !important; }
    .sk-mobile-list { display: flex !important; flex-direction: column; }
    .sk-mobile-card { padding: 1rem; }
    .sk-mobile-doc-name { font-size: 0.95rem; }
    .sk-empty-state { padding: 4rem 1.5rem; }
    .sk-empty-title { font-size: 1.5rem; }
    .sk-empty-text { font-size: 0.95rem; }
    .sk-pagination-wrapper { padding: 1rem !important; background: transparent !important; border-radius: 0 !important; margin-bottom: 1rem !important; }
    .sk-pagination-wrapper.hidden { display: none !important; }
    .sk-pagination-container { gap: 0.4rem; }
    .sk-page-numbers { gap: 0.4rem; }
    .sk-pagination-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-width: 36px; }
    .sk-pagination-btn .desktop-only { display: none !important; }
    .sk-pagination-info { font-size: 0.8rem; }
    .desa-section { padding: 3rem 1.5rem; }
    .desa-section-title { font-size: 1.5rem; }
    .desa-header-controls { flex-direction: column; align-items: stretch; }
    .desa-perpage-selector { width: 100%; justify-content: center; margin-left: 0; }
    .desa-perpage-text { display: none; }
    .desa-pagination-wrapper { padding: 1rem !important; background: transparent !important; border-radius: 0 !important; margin-top: 1rem !important; margin-bottom: 1rem !important; }
    .desa-pagination-wrapper.hidden, .desa-pagination-wrapper.u-hidden { display: none !important; }
    .desa-pagination-container { gap: 0.4rem; }
    .desa-page-numbers { gap: 0.4rem; }
    .desa-pagination-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-width: 36px; }
    .desa-pagination-btn .desktop-only { display: none !important; }
    .desa-pagination-info { font-size: 0.8rem; }
    .desa-empty-state { padding: 3rem 1.5rem; }
    .desa-empty-title { font-size: 1.5rem; }
    .desa-empty-text { font-size: 0.95rem; }
    .news-full-section { padding: 3rem 1.5rem; }
    .news-empty-state { padding: 3rem 1.5rem; }
    .news-empty-title { font-size: 1.5rem; }
    .news-empty-text { font-size: 0.95rem; }
    .news-pagination-wrapper { padding: 1rem; }
    .news-pagination-container { gap: 0.4rem; }
    .news-page-numbers { gap: 0.4rem; }
    .news-pagination-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-width: 36px; }
    .news-pagination-btn .desktop-only { display: none !important; }
    .template-pagination-btn .desktop-only { display: none !important; }
    .news-pagination-info { font-size: 0.8rem; }
    .news-controls { flex-direction: column; align-items: stretch; }
    .news-perpage-selector { width: 100%; justify-content: center; margin-left: 0; }
    .news-perpage-text { display: none; }
    .news-sort-selector { width: 100%; justify-content: center; }
    .template-section { padding: 3rem 1.5rem; }
    .template-controls { flex-direction: column; align-items: stretch; }
    .template-search-box { max-width: 100%; min-width: 100%; }
    .template-perpage-selector { width: 100%; justify-content: center; margin-left: 0; }
    .template-perpage-text { display: none; }
    .template-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
    .template-card-actions { grid-template-columns: 1fr; }
    .template-preview-modal { padding: 1rem; }
    .template-preview-modal-content { max-height: 95vh; }
    .template-preview-modal-body embed, .template-preview-modal-body iframe { height: 400px; }
    .footer { padding: 2rem 0 1rem; }
    .footer-container { padding: 0 1.25rem; }
    .footer-title { font-size: 1.5rem; }
    .footer-brand-logo, .footer-secondary-logo { height: 120px; }
    .footer-address { font-size: 0.95rem; }
    .footer-contact-link { font-size: 0.95rem; }
    .quick-access-links { gap: 1rem; }
    .quick-access-item { padding: 0.65rem 1rem; font-size: 0.9rem; }
    .footer-bottom-section { justify-content: center; text-align: center; }
    .footer-title-section { margin-bottom: 1.5rem; text-align: center; }
    .footer-main { gap: 2rem; padding-bottom: 2rem; }
    .footer-brand-row { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand-logo { height: 100px; margin-bottom: 0; }
    .footer-secondary-logo { margin-bottom: 1rem; }
    .footer-info { align-items: center; }
    .footer-address { text-align: center; font-size: 0.9rem; margin-bottom: 1rem; }
    .footer-contact { align-items: center; }
    .footer-contact-title { font-size: 1rem; margin-bottom: 0.75rem; }
    .footer-contact-links { flex-direction: column; gap: 0.5rem; }
    .footer-right { margin-top: 0; }
    .footer-secondary-logo { height: 100px; }
    .quick-access-title { font-size: 1rem; margin-bottom: 1rem; text-align: center; }
    .quick-access-links { gap: 0.75rem; justify-content: center; }
    .quick-access-item { padding: 0.6rem 1rem; font-size: 0.85rem; min-width: 120px; justify-content: center; }
    .footer-bottom { padding-top: 1rem; }
    .footer-copyright { font-size: 0.8rem; text-align: center; line-height: 1.4; }
    .news-page-header { padding: 7rem 1.5rem 3rem; }
    .news-page-header h1 { font-size: 1.8rem; }
    .news-page-header p { font-size: 1rem; }
    .news-detail-container { padding: 2.5rem 1.5rem 3rem; }
    .news-detail-article { grid-template-columns: 1fr; }
    .news-detail-article > * { grid-column: 1; }
    .news-detail-title { font-size: 1.75rem; }
    .news-detail-excerpt { font-size: 1.1rem; padding-left: 1.5rem; }
    .news-detail-content { font-size: 1.05rem; line-height: 1.85; }
    .news-detail-content p:first-child::first-letter { font-size: 3rem; }
    .news-detail-content h2 { font-size: 1.5rem; }
    .news-related-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .news-detail-share { padding: 2rem 0; }
    .news-share-btn { padding: 12px 24px; font-size: 0.85rem; }
    .news-detail-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .floating-menu-icon { width: 42px !important; height: 42px !important; }
    .floating-menu-icon img { width: 28px !important; height: 28px !important; }
    .floating-menu-icon span { font-size: 1rem !important; }
    .floating-menu-icon:not(:has(img))::before { width: 24px; height: 24px; }
    .floating-app-btn .floating-menu-label { font-size: 0.85rem !important; padding: 8px 16px !important; max-width: 200px !important; }
    .floating-app-btn .floating-menu-icon { width: 48px !important; height: 48px !important; }
    .floating-app-btn .floating-menu-icon img, .floating-app-btn .floating-menu-icon span { width: 32px !important; height: 32px !important; font-size: 1.1rem !important; }
    .floating-app-btn .floating-trigger { width: 56px !important; height: 56px !important; }
    .btn-see-all, .news-back-btn, .sk-back-btn, .template-back-btn { padding: 14px 28px !important; min-height: 48px !important; }
    .news-pagination-btn, .desa-pagination-btn, .sk-pagination-btn, .template-pagination-btn { min-width: 44px !important; min-height: 44px !important; padding: 10px 14px !important; }
    .filter-btn, .tab-btn { min-height: 44px !important; padding: 10px 20px !important; }
    .quick-access-item { min-height: 48px !important; padding: 12px 16px !important; }
    .footer-contact-link { padding: 8px 0 !important; }
    .floating-app-btn { z-index: 999 !important; }
    .floating-menu { pointer-events: none !important; }
    .floating-menu.open { pointer-events: auto !important; }
    .floating-trigger { z-index: 1001 !important; }
}

/* ==========================================
   22. RESPONSIVE - SMALL MOBILE (480px)
   ========================================== */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-cta { padding: 14px 28px !important; font-size: 1rem !important; }
    .quick-access-item { width: 100% !important; justify-content: center !important; }
    .quick-access-grid { grid-template-columns: 1fr; }
    .desa-grid { grid-template-columns: 1fr; gap: 1rem; }
    .desa-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; margin-top: 1rem; }
    .tab-btn { padding: 8px 16px; font-size: 0.82rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .top3-tree .org-card-wrapper { max-width: 100% !important; }
    .top3-tree .org-card { max-width: 100% !important; padding: 1rem 0.75rem !important; }
    .staff-combined-card { max-width: 100% !important; }
    .staff-duo-avatar { width: 38px !important; height: 38px !important; }
    .staff-duo-role { font-size: 0.55rem !important; }
    .staff-duo-name { font-size: 0.6rem !important; }
    #row-sekben .org-card-wrapper { max-width: 140px !important; }
    #row-sekben .org-card { padding: 0.75rem 0.5rem !important; }
    #row-sekben .org-avatar { width: 38px !important; height: 38px !important; }
    #row-pokja .org-card-wrapper { max-width: 130px !important; }
    #row-pokja .org-card { padding: 0.75rem 0.5rem !important; }
    #row-pokja .org-avatar { width: 36px !important; height: 36px !important; }
    .pokja-section { padding: 1rem 0.75rem !important; margin: 0.75rem 0.25rem !important; }
    .pokja-title { font-size: 0.75rem !important; }
    .pokja-subtitle { font-size: 0.65rem !important; }
    .pokja-number { width: 36px !important; height: 36px !important; font-size: 0.9rem !important; }
    .member-card { width: 75px !important; padding: 0.5rem 0.25rem !important; }
    .member-card .org-avatar { width: 34px !important; height: 34px !important; }
    .member-card .org-position { font-size: 0.45rem !important; }
    .member-card .org-name { font-size: 0.55rem !important; }
    .org-card { padding: 0.75rem 0.5rem !important; }
    .org-avatar { width: 40px !important; height: 40px !important; }
    .org-position { font-size: 0.55rem !important; }
    .org-name { font-size: 0.6rem !important; }
    .sk-section { padding: 2rem 1rem; }
    .sk-section-title { font-size: 1.25rem; }
    .sk-perpage-selector { padding: 0.6rem 0.75rem; }
    .sk-perpage-label { font-size: 0.8rem; }
    .sk-perpage-select { font-size: 0.8rem; padding: 0.35rem 0.6rem; min-width: 50px; }
    .sk-search-input { padding: 0.75rem 1rem 0.75rem 2.75rem; font-size: 0.9rem; }
    .sk-search-icon { left: 1rem; width: 18px; height: 18px; }
    .sk-mobile-card-header { flex-direction: column; gap: 0.75rem; }
    .sk-mobile-doc-icon { width: 42px; height: 42px; }
    .sk-mobile-doc-icon svg { width: 22px; height: 22px; }
    .sk-mobile-doc-meta { flex-direction: column; gap: 0.5rem; }
    .sk-mobile-card-actions { flex-direction: column; }
    .sk-mobile-action-btn { width: 100%; }
    .sk-pagination-container { gap: 0.3rem; }
    .sk-pagination-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; min-width: 32px; }
    .sk-pagination-info { font-size: 0.75rem; }
    .news-full-section { padding: 2rem 1rem; }
    .news-card-image { height: 180px; }
    .news-card-content { padding: 1.25rem; }
    .news-card-title { font-size: 1.05rem; }
    .news-empty-state { padding: 2rem 1rem; }
    .news-pagination-wrapper { padding: 0.75rem; }
    .news-pagination-container { gap: 0.3rem; }
    .desa-pagination-container { gap: 0.3rem; }
    .desa-pagination-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; min-width: 32px; }
    .desa-pagination-info { font-size: 0.75rem; }
    .news-pagination-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; min-width: 32px; }
    .news-pagination-info { font-size: 0.75rem; }
    .news-perpage-selector { padding: 0.6rem 0.75rem; }
    .news-perpage-label { font-size: 0.8rem; }
    .news-perpage-select { font-size: 0.8rem; padding: 0.35rem 0.6rem; min-width: 50px; }
    .news-sort-select { font-size: 0.8rem; min-width: 120px; }
    .template-section { padding: 2rem 1rem; }
    .template-section-title { font-size: 1.5rem; }
    .template-card-header { padding: 1.5rem 1rem; }
    .template-card-body { padding: 1rem; }
    .template-card-actions { padding: 0 1rem 1rem; }
    .template-empty-state { padding: 3rem 1rem; }
    .template-card-filename { font-size: 0.75rem; padding: 0.4rem 0.6rem; gap: 0.4rem; }
    .template-card-filename span { font-size: 0.75rem; }
    .footer { padding: 1.5rem 0 1rem; }
    .footer-container { padding: 0 1.25rem; }
    .footer-title { font-size: 1.25rem; }
    .footer-brand-logo, .footer-secondary-logo { height: 90px; }
    .footer-address { font-size: 0.85rem; }
    .footer-contact-link { font-size: 0.85rem; }
    .quick-access-links { flex-direction: column; width: 100%; }
    .quick-access-item { width: 100%; justify-content: center; }
    .footer-copyright { font-size: 0.75rem; }
    .news-detail-container { padding: 2rem 1rem 2.5rem; }
    .news-page-header h1 { font-size: 1.5rem; }
    .news-detail-title { font-size: 1.5rem; }
    .news-detail-excerpt { font-size: 1rem; padding-left: 1.25rem; }
    .news-detail-content { font-size: 1rem; }
    .news-detail-content p:first-child::first-letter { font-size: 2.5rem; }
    .news-share-buttons { flex-direction: column; width: 100%; }
    .news-share-btn { width: 100%; justify-content: center; }
    .pokja-members { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; gap: 0.75rem !important; }
    .member-card { max-width: 140px !important; min-height: 150px !important; padding: 1rem 0.5rem !important; }
}

/* ==========================================
   APLIKASI & LAYANAN PAGE (CAROUSEL & MODAL)
   ========================================== */
.apps-landing-section { padding: 4rem 2rem; background: var(--bg-light); min-height: 80vh; }
.apps-container { max-width: 1200px; margin: 0 auto; }

/* Search Bar */
.search-wrapper { position: relative; max-width: 600px; margin: 0 auto 3rem auto; }
.search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); }
.search-input { width: 100%; padding: 1rem 1.25rem 1rem 3.5rem; border: 2px solid #e2e8f0; border-radius: 50px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; background: #fff; }
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1); }

/* Category Block */
.category-block { margin-bottom: 3rem; }
.section-head { text-align: center; margin-bottom: 2rem; }
.badge-app { display: inline-block; padding: 0.4rem 1rem; background: rgba(15, 107, 99, 0.1); color: var(--primary); border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 1rem; }
.badge-lay { display: inline-block; padding: 0.4rem 1rem; background: rgba(214, 158, 46, 0.1); color: #d69e2e; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 1rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Carousel */
.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 1rem; }
.carousel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 1rem 0.5rem; flex: 1; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #e2e8f0; background: #fff; color: var(--text-dark); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; flex-shrink: 0; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.05); }

/* App Card in Carousel */
.app-card-slide { flex: 0 0 320px; scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.app-card-slide:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.app-card-slide.hidden { display: none !important; }
.slide-header { padding: 2rem; background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); text-align: center; position: relative; overflow: hidden; }
.slide-header.layanan-bg { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.slide-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 200px; height: 200px; border-radius: 50%; opacity: 0.15; }
.slide-header:not(.layanan-bg)::before { background: var(--primary); }
.slide-header.layanan-bg::before { background: #d97706; }
.slide-icon { width: 70px; height: 70px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 8px 20px rgba(0,0,0,0.1); position: relative; z-index: 2; }
.slide-icon.lay-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.slide-icon img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.slide-icon span { color: #fff; font-weight: 800; font-size: 1.2rem; }
.slide-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.slide-name { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.slide-name.lay-name { color: #d97706; }
.slide-fullname { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 500; }
.slide-desc {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}
.slide-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; background: var(--primary); color: #fff; border-radius: 14px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.3s ease; margin-top: 1rem; }
.slide-link.lay-link { background: #d97706; }
.slide-link:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
/* See All Button */
.see-all-wrapper { text-align: center; margin-top: 2rem; }
.btn-see-all-apps { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--primary); color: #fff; border: none; border-radius: 50px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.btn-see-all-apps:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 107, 99, 0.3); }
.btn-see-all-apps.btn-layanan { background: #d97706; }
.btn-see-all-apps.btn-layanan:hover { background: #b45309; box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3); }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; padding: 2rem; }
.modal-overlay.active { display: flex; }
.modal-content { background: #fff; border-radius: 20px; width: 100%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: modalSlideUp 0.3s ease; overflow: hidden; }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.modal-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: #e2e8f0; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.modal-close:hover { background: #cbd5e1; color: var(--text-dark); }
.modal-grid { padding: 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; overflow-y: auto; }
.modal-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f8fafc; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.modal-card:hover { background: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(15, 107, 99, 0.1); transform: translateX(5px); }
.modal-card.lay-card:hover { border-color: #d97706; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1); }
.modal-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-icon.lay-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.modal-icon img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.modal-icon span { color: #fff; font-weight: 800; font-size: 0.9rem; }
.modal-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin: 0 0 0.25rem 0; }
.modal-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
    .app-card-slide { flex: 0 0 280px; }
    .nav-btn { display: none; } /* Hide arrows on mobile, rely on swipe */
    .modal-grid { grid-template-columns: 1fr; }
}

/* ==========================================
APLIKASI CAROUSEL - FEATURES & COLORS
========================================== */

/* Features List */
.app-features {
    list-style: none !important;
    margin: 1rem 0 1.5rem 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    padding-top: 1rem !important;
}

.app-features li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
    font-size: 0.85rem !important;
    color: #4a5568 !important;
    line-height: 1.4 !important;
}

.app-features li svg {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    stroke: var(--primary) !important;
}

.app-card-slide.app-color-0 .app-features li svg { stroke: #2563eb !important; }
.app-card-slide.app-color-1 .app-features li svg { stroke: #dc2626 !important; }
.app-card-slide.app-color-2 .app-features li svg { stroke: #7c3aed !important; }
.app-card-slide.app-color-3 .app-features li svg { stroke: #059669 !important; }
.app-card-slide.app-color-4 .app-features li svg { stroke: #d97706 !important; }
.app-card-slide.app-color-5 .app-features li svg { stroke: #db2777 !important; }
.app-card-slide.app-color-6 .app-features li svg { stroke: #0891b2 !important; }
.app-card-slide.app-color-7 .app-features li svg { stroke: #7c2d12 !important; }
.app-card-slide.app-color-8 .app-features li svg { stroke: #4338ca !important; }
.app-card-slide.app-color-9 .app-features li svg { stroke: #be185d !important; }

/* Color Variations for Cards */
.app-card-slide.app-color-0 .slide-name { color: #2563eb !important; }
.app-card-slide.app-color-0 .slide-icon { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }
.app-card-slide.app-color-0 .slide-header { background: linear-gradient(135deg, #dbeafe, #eff6ff) !important; }
.app-card-slide.app-color-0 .slide-link { background: #2563eb !important; }

.app-card-slide.app-color-1 .slide-name { color: #dc2626 !important; }
.app-card-slide.app-color-1 .slide-icon { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }
.app-card-slide.app-color-1 .slide-header { background: linear-gradient(135deg, #fee2e2, #fef2f2) !important; }
.app-card-slide.app-color-1 .slide-link { background: #dc2626 !important; }

.app-card-slide.app-color-2 .slide-name { color: #7c3aed !important; }
.app-card-slide.app-color-2 .slide-icon { background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important; }
.app-card-slide.app-color-2 .slide-header { background: linear-gradient(135deg, #ede9fe, #f5f3ff) !important; }
.app-card-slide.app-color-2 .slide-link { background: #7c3aed !important; }

.app-card-slide.app-color-3 .slide-name { color: #059669 !important; }
.app-card-slide.app-color-3 .slide-icon { background: linear-gradient(135deg, #059669, #10b981) !important; }
.app-card-slide.app-color-3 .slide-header { background: linear-gradient(135deg, #d1fae5, #ecfdf5) !important; }
.app-card-slide.app-color-3 .slide-link { background: #059669 !important; }

.app-card-slide.app-color-4 .slide-name { color: #d97706 !important; }
.app-card-slide.app-color-4 .slide-icon { background: linear-gradient(135deg, #d97706, #f59e0b) !important; }
.app-card-slide.app-color-4 .slide-header { background: linear-gradient(135deg, #fef3c7, #fffbeb) !important; }
.app-card-slide.app-color-4 .slide-link { background: #d97706 !important; }

.app-card-slide.app-color-5 .slide-name { color: #db2777 !important; }
.app-card-slide.app-color-5 .slide-icon { background: linear-gradient(135deg, #db2777, #ec4899) !important; }
.app-card-slide.app-color-5 .slide-header { background: linear-gradient(135deg, #fce7f3, #fdf2f8) !important; }
.app-card-slide.app-color-5 .slide-link { background: #db2777 !important; }

.app-card-slide.app-color-6 .slide-name { color: #0891b2 !important; }
.app-card-slide.app-color-6 .slide-icon { background: linear-gradient(135deg, #0891b2, #06b6d4) !important; }
.app-card-slide.app-color-6 .slide-header { background: linear-gradient(135deg, #cffafe, #ecfeff) !important; }
.app-card-slide.app-color-6 .slide-link { background: #0891b2 !important; }

.app-card-slide.app-color-7 .slide-name { color: #7c2d12 !important; }
.app-card-slide.app-color-7 .slide-icon { background: linear-gradient(135deg, #7c2d12, #ea580c) !important; }
.app-card-slide.app-color-7 .slide-header { background: linear-gradient(135deg, #ffedd5, #fff7ed) !important; }
.app-card-slide.app-color-7 .slide-link { background: #7c2d12 !important; }

.app-card-slide.app-color-8 .slide-name { color: #4338ca !important; }
.app-card-slide.app-color-8 .slide-icon { background: linear-gradient(135deg, #4338ca, #6366f1) !important; }
.app-card-slide.app-color-8 .slide-header { background: linear-gradient(135deg, #e0e7ff, #eef2ff) !important; }
.app-card-slide.app-color-8 .slide-link { background: #4338ca !important; }

.app-card-slide.app-color-9 .slide-name { color: #be185d !important; }
.app-card-slide.app-color-9 .slide-icon { background: linear-gradient(135deg, #be185d, #ec4899) !important; }
.app-card-slide.app-color-9 .slide-header { background: linear-gradient(135deg, #fce7f3, #fdf2f8) !important; }
.app-card-slide.app-color-9 .slide-link { background: #be185d !important; }

/* Modal Color Variations */
.modal-card.app-color-0 .modal-icon { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }
.modal-card.app-color-1 .modal-icon { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }
.modal-card.app-color-2 .modal-icon { background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important; }
.modal-card.app-color-3 .modal-icon { background: linear-gradient(135deg, #059669, #10b981) !important; }
.modal-card.app-color-4 .modal-icon { background: linear-gradient(135deg, #d97706, #f59e0b) !important; }
.modal-card.app-color-5 .modal-icon { background: linear-gradient(135deg, #db2777, #ec4899) !important; }
.modal-card.app-color-6 .modal-icon { background: linear-gradient(135deg, #0891b2, #06b6d4) !important; }
.modal-card.app-color-7 .modal-icon { background: linear-gradient(135deg, #7c2d12, #ea580c) !important; }
.modal-card.app-color-8 .modal-icon { background: linear-gradient(135deg, #4338ca, #6366f1) !important; }
.modal-card.app-color-9 .modal-icon { background: linear-gradient(135deg, #be185d, #ec4899) !important; }

/* ============================================
   WARNA DARI ADMIN PANEL
   Nilai --app-c* di-set inline per kartu oleh page-aplikasi.blade.php,
   berasal dari kolom `color` di Admin Panel > Manajemen Aplikasi.
   Fallback dipakai kalau variabelnya belum ter-set.
   Blok ini WAJIB berada sebelum blok STATUS di bawah, supaya kartu
   maintenance/development tetap bisa menimpa warna ini.
   ============================================ */
.app-card-slide.has-app-color .slide-name { color: var(--app-c, var(--primary)) !important; }
.app-card-slide.has-app-color .slide-icon { background: var(--app-c-icon, linear-gradient(135deg, var(--primary), var(--primary-light))) !important; }
.app-card-slide.has-app-color .slide-header { background: var(--app-c-header, linear-gradient(135deg, #f0fdfa, #ccfbf1)) !important; }
.app-card-slide.has-app-color .slide-header::before { background: var(--app-c-circle, var(--primary)) !important; }
.app-card-slide.has-app-color .slide-link { background: var(--app-c, var(--primary)) !important; }
.app-card-slide.has-app-color .app-features li svg { stroke: var(--app-c, var(--primary)) !important; }
.modal-card.has-app-color .modal-icon { background: var(--app-c-icon, linear-gradient(135deg, var(--primary), var(--primary-light))) !important; }
.modal-card.has-app-color:hover { border-color: var(--app-c, var(--primary)); }

/* ============================================
   STATUS: MAINTENANCE & DEVELOPMENT
   Kartu non-aktif tetap tampil, tapi tidak bisa diinteraksikan.
   ============================================ */

/* Badge status di pojok kanan atas header kartu */
.slide-status-badge { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.slide-status-badge.status-maintenance { background: #64748b; color: #fff; }
.slide-status-badge.status-development { background: #7c3aed; color: #fff; }

/* Tombol yang dinonaktifkan, menggantikan .slide-link */
.slide-link.is-disabled { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: not-allowed; pointer-events: none; user-select: none; }
.slide-link.is-disabled:hover { transform: none; box-shadow: none; opacity: 1; }

/* --- MAINTENANCE: abu-abu, tidak bisa diinteraksikan --- */
.app-card-slide.is-maintenance { background: #f8fafc; border-color: #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.app-card-slide.is-maintenance:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.app-card-slide.is-maintenance .slide-header,
.app-card-slide.is-maintenance .slide-header.layanan-bg { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
.app-card-slide.is-maintenance .slide-header::before { background: #94a3b8 !important; }
.app-card-slide.is-maintenance .slide-icon,
.app-card-slide.is-maintenance .slide-icon.lay-icon { background: linear-gradient(135deg, #94a3b8, #cbd5e1) !important; box-shadow: none; }
.app-card-slide.is-maintenance .slide-icon img { filter: brightness(0) invert(1) opacity(0.85); }
.app-card-slide.is-maintenance .slide-name,
.app-card-slide.is-maintenance .slide-name.lay-name { color: #475569 !important; }
.app-card-slide.is-maintenance .slide-fullname,
.app-card-slide.is-maintenance .slide-desc { color: #94a3b8; }
.app-card-slide.is-maintenance .app-features li { color: #94a3b8; }
.app-card-slide.is-maintenance .app-features li svg { stroke: #cbd5e1 !important; }
/* !important diperlukan untuk mengalahkan palet .app-color-N di bawah */
.app-card-slide.is-maintenance .slide-link.is-disabled { background: #cbd5e1 !important; color: #64748b !important; }

/* --- DEVELOPMENT: sneak peek, warna tetap hidup tapi tidak bisa diklik --- */
.app-card-slide.is-development { position: relative; background: #fff; border: 1px dashed #c4b5fd; box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08); }
.app-card-slide.is-development:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(124, 58, 237, 0.15); }
.app-card-slide.is-development .slide-header,
.app-card-slide.is-development .slide-header.layanan-bg { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }
.app-card-slide.is-development .slide-header::before { background: #7c3aed !important; }
.app-card-slide.is-development .slide-icon,
.app-card-slide.is-development .slide-icon.lay-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa) !important; }
.app-card-slide.is-development .slide-name,
.app-card-slide.is-development .slide-name.lay-name { color: #6d28d9 !important; }
.app-card-slide.is-development .app-features li svg { stroke: #a78bfa !important; }
.app-card-slide.is-development .slide-link.is-disabled { background: #ede9fe !important; color: #6d28d9 !important; border: 1px solid #ddd6fe; }

/* Status di dalam modal "Lihat Semua" */
.modal-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.modal-status.status-maintenance { background: #e2e8f0; color: #475569; }
.modal-status.status-development { background: #ede9fe; color: #6d28d9; }
.modal-card.is-maintenance,
.modal-card.is-development { cursor: not-allowed; pointer-events: none; }
.modal-card.is-maintenance { background: #f1f5f9; border-color: #e2e8f0; }
.modal-card.is-maintenance .modal-icon { filter: grayscale(1); opacity: 0.7; }
.modal-card.is-maintenance h4, .modal-card.is-maintenance p { color: #94a3b8; }
.modal-card.is-development { background: #faf9ff; border-color: #ddd6fe; border-style: dashed; }

/* Aksesibilitas: hormati preferensi pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
    .app-card-slide.is-development:hover { transform: none; }
}

/* ==========================================
   23. NEWS DETAIL - PRINT BUTTON (screen only)
   ========================================== */
.news-detail-actions { display: flex; flex-direction: column; align-items: center; gap: 2rem; margin: 4rem 0 0; padding: 3rem 0 0; border-top: 1px solid rgba(0,0,0,0.08); }
.news-detail-actions .news-detail-share { margin: 0; padding: 0; border: none; }
.news-print-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; font-size: 0.9rem; font-weight: 600;
    border-radius: 50px; border: 2px solid var(--news-color);
    background: #fff; color: var(--news-color); cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-print-btn:hover { background: var(--news-color); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.news-print-btn svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .news-detail-actions { margin: 2rem 0 0; padding: 2rem 0 0; }
    .news-detail-actions .news-detail-share { padding: 0; }
}

/* ==========================================
   24. NEWS DETAIL - READING PROGRESS BAR
   ========================================== */
.news-progress-bar { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--news-color), var(--primary)); z-index: 1000; transition: width 0.1s linear; }

/* ==========================================
   25. NEWS DETAIL - BACK TO TOP BUTTON
   ========================================== */
.news-back-to-top { position: fixed; bottom: 7rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%; background: var(--news-color); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 999; }
.news-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.news-back-to-top:hover { background: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.news-back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .news-back-to-top { bottom: 6.75rem; right: 1.5rem; width: 44px; height: 44px; } }
/* Sembunyikan tombol kembali ke atas saat menu aplikasi mengambang terbuka,
   karena item menu membuka ke atas dan bisa menutupi tombol tersebut.
   Kelas .floating-menu-closing menahannya tetap tersembunyi selama menu
   menutup, lalu tombol muncul kembali dengan fade setelah animasi selesai. */
body.floating-menu-open .news-back-to-top,
body.floating-menu-closing .news-back-to-top { opacity: 0 !important; visibility: hidden !important; transform: translateY(20px) !important; }

/* ==========================================
   26. NEWS DETAIL - PRINT STYLES (printer)
   ========================================== */
@media print {
    /* ── Hide everything non-essential ── */
    .navbar, .footer, .floating-app-btn, .mobile-menu,
    .news-page-header, .news-back-link, .news-detail-related,
    .news-detail-actions, .news-detail-share,
    .news-detail-meta .news-detail-reading-time,
    .news-progress-bar, .news-back-to-top,
    .news-gallery-arrow, .news-gallery-counter,
    body > script, body > noscript { display: none !important; }

    /* ── Reset page ── */
    *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
    html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
    body { font-size: 12pt; line-height: 1.6; color: #000 !important; }

    /* ── Print header (appears only on paper) ── */
    .news-detail-wrapper::before {
        content: 'PKK Kabupaten Toba — tp-pkk.tobakab.go.id';
        display: block !important;
        font-size: 10pt; color: #555; text-align: center;
        padding-bottom: 8pt; margin-bottom: 12pt;
        border-bottom: 1px solid #ccc;
    }

    /* ── Container ── */
    .news-detail-wrapper { min-height: auto !important; background: none !important; }
    .news-detail-container { max-width: 100%; padding: 0 !important; margin: 0 !important; }
    .news-detail-article { padding: 0 !important; display: block !important; }

    /* ── Title & Meta ── */
    .news-detail-title { font-size: 20pt; margin: 0 0 8pt 0; color: #000 !important; }
    .news-detail-meta {
        flex-direction: row; flex-wrap: wrap; gap: 1rem;
        margin-bottom: 16pt; padding-bottom: 8pt;
        border-bottom: 1px solid #ccc !important;
        font-size: 10pt; color: #333 !important;
    }
    .news-detail-category {
        background: #eee !important; color: #333 !important;
        font-size: 8pt; padding: 3px 10px;
    }

    /* ── Images ── */
    .news-detail-image { box-shadow: none !important; margin: 0 0 16pt 0; border-radius: 0 !important; }
    .news-detail-image img { max-height: none !important; width: 100%; }
    .news-detail-content img { max-width: 100%; margin: 8pt 0 !important; box-shadow: none !important; border-radius: 0 !important; }

    /* ── Content ── */
    .news-detail-excerpt { padding-left: 1rem; font-style: italic; border-left: 3px solid #999; }
    .news-detail-content { font-size: 11pt; line-height: 1.8; color: #000 !important; }
    .news-detail-content p { margin-bottom: 10pt; }
    .news-detail-content p:first-child::first-letter { font-size: 1.6rem; }
    .news-detail-content h2, .news-detail-content h3, .news-detail-content h4 { color: #000 !important; page-break-after: avoid; }
    .news-detail-content a { color: #000 !important; text-decoration: underline !important; border: none !important; }
    .news-detail-content a::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #666; }
    .news-detail-content blockquote { border-left-color: #999 !important; background: none !important; }

    /* ── Page breaks ── */
    .news-detail-title, .news-detail-image, .news-detail-content h2, .news-detail-content h3 {
        page-break-after: avoid;
    }
    .news-detail-content p, .news-detail-content img, .news-detail-content blockquote {
        page-break-inside: avoid;
    }

    /* ── Footer at bottom of printout ── */
    .news-detail-wrapper::after {
        content: 'Dicetak pada ' attr(data-print-date) ' — © PKK Kabupaten Toba';
        display: block !important;
        font-size: 8pt; color: #999; text-align: center;
        margin-top: 24pt; padding-top: 8pt;
        border-top: 1px solid #ccc;
    }
}
/* Dikembangkan oleh Institut Teknologi Del */

/* ==========================================
   EMPTY STATE SERAGAM — semua halaman landing PKK
   Pola tunggal: ikon lingkaran + judul + teks + tombol kembali.
   Dipakai: beranda (berita, aplikasi), halaman berita, desa,
   SK & Dokumen, template, struktur.
   ========================================== */
.landing-empty { text-align: center; padding: 5rem 2rem; max-width: 650px; margin: 0 auto; background: linear-gradient(135deg, rgba(15,107,99,0.04), rgba(20,184,166,0.04)); border-radius: 20px; }
.landing-empty-icon { width: 120px; height: 120px; margin: 0 auto 2rem; background: linear-gradient(135deg, rgba(15,107,99,0.1), rgba(20,184,166,0.1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f6b63; }
.landing-empty-icon svg { opacity: 0.8; }
.landing-empty-title { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin: 0 0 0.75rem 0; }
.landing-empty-text { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0 auto 2rem; max-width: 500px; }
.landing-empty-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: linear-gradient(135deg, #0f6b63, #14b8a6); color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(15,107,99,0.3); }
.landing-empty-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15,107,99,0.4); }
@media (max-width: 640px) { .landing-empty { padding: 3rem 1.25rem; } .landing-empty-title { font-size: 1.35rem; } .landing-empty-icon { width: 96px; height: 96px; } .landing-empty-icon svg { width: 38px; height: 38px; } }

/* ==========================================
   GAMBAR GAGAL LOAD — tampilan enak dipandang
   <img class="u-img-fallback"> gagal => ikon SVG latar lembut,
   bukan ikon rusak browser. Dipasang otomatis oleh image-fallback.js.
   ========================================== */
.img-fallback-box { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, rgba(15,107,99,0.07), rgba(20,184,166,0.07)); color: rgba(15,107,99,0.55); }
.img-fallback-box svg { width: 34%; height: 34%; max-width: 48px; max-height: 48px; opacity: 0.7; }
