/* ============================================================
   SI-JEMPOL — Sistem Informasi Jambangan Pelayanan Online
   Pemerintah Kecamatan Jambangan, Kota Surabaya
   Stylesheet Utama: Clean, Minimalist, & Elegant Civic Web Portal
   ============================================================ */

:root {
  /* ============================================================
     SAPA JAMBANGAN — COLOR SYSTEM RESMI: MODERN CIVIC NAVY (NO GREEN)
     Dominasi Biru Navy Pemerintahan & Kota Surabaya:
     1. Deep Civic Navy (#1e3a8a / #172554) -> Warna Utama Portal
     2. Biru Cerulean Sian (#0284c7 / #00aeef) -> Aksen Interaktif
     3. Oranye Terakota (#f26522)             -> Layanan & Aduan
     4. Slate / Ice Blue (#eff6ff / #f1f5f9)   -> Surface & Pill
     ============================================================ */
  --civic-navy: #1e3a8a;
  --civic-navy-dark: #172554;
  --civic-navy-light: #eff6ff;
  --civic-navy-soft: #dbeafe;

  --jambangan-orange: #f26522;
  --jambangan-orange-dark: #d94e0e;
  --jambangan-orange-light: #fff0e8;
  --jambangan-orange-soft: #ffc5a9;

  --jambangan-blue: #0284c7;
  --jambangan-blue-dark: #0369a1;
  --jambangan-blue-light: #e0f2fe;
  --jambangan-blue-soft: #bae6fd;

  --jambangan-navy: #1e3a8a;
  --jambangan-navy-dark: #172554;
  --jambangan-navy-light: #eff6ff;
  --jambangan-navy-soft: #bfdbfe;

  --surabaya-blue: #1d4ed8;
  --surabaya-gold: #f59e0b;

  /* Primary Brand System: Modern Civic Navy */
  --primary: #1e3a8a;
  --primary-hover: #172554;
  --primary-dark: #0f172a;
  --primary-light: #eff6ff;
  --primary-subtle: #f8fafc;

  --accent-gold: var(--surabaya-gold);
  --accent-gold-light: #fef3c7;
  --accent-blue: var(--jambangan-blue);
  --accent-blue-light: var(--jambangan-blue-light);
  --accent-orange: var(--jambangan-orange);
  --accent-orange-light: var(--jambangan-orange-light);
  --accent-navy: var(--jambangan-navy);
  --accent-navy-light: var(--jambangan-navy-light);
  --accent-red: #ef4444;
  --accent-red-light: #fee2e2;
  --accent-purple: #6366f1;
  --accent-purple-light: #e0e7ff;

  /* Neutrals & Surfaces (Light Mode) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-color: #cbd5e1;
  --border-color-light: #f1f5f9;
  --bg-card-subtle: #f8fafc;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-sheet: 0 -16px 40px rgba(15, 23, 42, 0.12);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
body.theme-dark {
  --bg-body: #070d14;
  --bg-card: #0f1923;
  --bg-subtle: #152433;
  --border: #1e3347;
  --border-light: #16293a;
  --border-color: #1e3347;
  --border-color-light: #16293a;
  --bg-card-subtle: #152433;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;

  --primary-light: rgba(30, 58, 138, 0.35);
  --accent-gold-light: rgba(217, 119, 6, 0.15);
  --accent-blue-light: rgba(2, 132, 199, 0.15);
  --accent-red-light: rgba(220, 38, 38, 0.15);
  --accent-purple-light: rgba(124, 58, 237, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   1. SITE HEADER (Minimalist & Clean)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition);
}

.brand-link:hover .brand-logo {
  transform: scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.theme-dark .brand-title {
  color: #93c5fd;
}

/* ========================================================
   SAPA JAMBANGAN — LOGO RESMI
   Simpel, bersih, elegan, dan profesional
   ======================================================== */
.brand-sapa {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  display: inline-flex;
  align-items: baseline;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--jambangan-navy, #3b4876);
}

.brand-sapa-header {
  font-size: 19px;
  margin-bottom: 2px;
}

.brand-sapa .brand-jambangan {
  font-weight: 800;
  margin-left: 0.22em;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}

/* Dark Mode Adaptation */
body.theme-dark .brand-sapa {
  color: #ffffff;
}
body.theme-dark .brand-sapa .brand-jambangan {
  color: #93c5fd;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navigation Links */
.nav-menu {
  display: none;
}

@media (min-width: 860px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .nav-link i {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--transition);
  }

  .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
  }

  .nav-link:hover i {
    color: var(--primary);
  }

  .nav-btn-emergency {
    background: #dc2626;
    color: #fff !important;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
    transition: all var(--transition);
  }

  .nav-btn-emergency i {
    color: #fff !important;
  }

  .nav-btn-emergency:hover {
    background: #b91c1c;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  animation: pulseEmergencyNav 3s infinite;
}

@media (min-width: 860px) {
  .mobile-emergency-pill {
    display: none;
  }
}

.btn-theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  font-size: 13px;
}

.btn-theme:hover {
  transform: scale(1.05);
}

.btn-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  font-size: 14px;
}

.btn-menu-toggle:hover {
  transform: scale(1.05);
  background: var(--border);
}

@media (min-width: 860px) {
  .btn-menu-toggle {
    display: none;
  }
}

/* Mobile Dropdown Navigation */
.mobile-nav-dropdown {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.mobile-nav-dropdown.open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 860px) {
  .mobile-nav-dropdown {
    display: none !important;
  }
}

.mobile-nav-links {
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.mobile-nav-link i {
  font-size: 14px;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-link:hover i {
  color: var(--primary);
}

.mobile-nav-link.mobile-nav-emergency {
  margin-top: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-weight: 700;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.mobile-nav-link.mobile-nav-emergency i {
  color: #dc2626;
}

.mobile-nav-link.mobile-nav-emergency:hover {
  background: #dc2626;
  color: #ffffff;
}

.mobile-nav-link.mobile-nav-emergency:hover i {
  color: #ffffff;
}

/* ============================================================
   2. MAIN CONTAINER & HERO
   ============================================================ */
.site-main {
  flex: 1;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 52px;
  background-color: #0b1528;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 76px 20px 68px;
  }
}

/* Background Photo Slides */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Overlay for Optimal Contrast and Photo Vibrancy */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 21, 40, 0.78) 0%,
    rgba(15, 23, 42, 0.78) 45%,
    rgba(15, 23, 42, 0.92) 100%
  );
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero-heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 40px;
  }
}

.hero-description {
  font-size: 14px;
  color: rgba(241, 245, 249, 0.94);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 15.5px;
  }
}

/* Minimalist Search Box in Hero */
.hero-search-wrap {
  max-width: 580px;
  margin: 0 auto 26px;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: all var(--transition);
}

.search-input-box:focus-within {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(30, 58, 138, 0.4);
}

.search-icon {
  font-size: 14px;
  color: #1e3a8a;
  margin-right: 12px;
}

.search-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
}

.search-input-box input::placeholder {
  color: #64748b;
}

.btn-search-action {
  background: #1e3a8a;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-search-action:hover {
  background: #172554;
}

/* Quick Search Tags */
.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tags-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-right: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.chip-tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chip-tag:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #1e3a8a;
  text-shadow: none;
}

.chip-tag.chip-accent {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef3c7;
}

.chip-tag.chip-accent:hover {
  background: #f59e0b;
  color: #ffffff;
  text-shadow: none;
}

/* ============================================================
   HERO 3 CORE PILLARS (Layanan, Aduan, Darurat 112)
   ============================================================ */
.hero-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 820px;
  margin: 28px auto 16px;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.hero-pillar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

/* Pillar 1: Layanan (Civic Navy) */
.hero-pillar-card.pillar-layanan {
  border-top: 4px solid #1e3a8a;
}
.hero-pillar-card.pillar-layanan:hover {
  border-color: rgba(30, 58, 138, 0.75);
}

/* Pillar 2: Aduan (Orange) */
.hero-pillar-card.pillar-aduan {
  border-top: 4px solid #f26522;
}
.hero-pillar-card.pillar-aduan:hover {
  border-color: rgba(242, 101, 34, 0.65);
}

/* Pillar 3: Darurat 112 (Red) */
.hero-pillar-card.pillar-darurat {
  border-top: 4px solid #dc2626;
  background: rgba(220, 38, 38, 0.14);
}
.hero-pillar-card.pillar-darurat:hover {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.3);
}

.pillar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pillar-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.pillar-layanan .pillar-icon-box {
  background: rgba(30, 58, 138, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.pillar-aduan .pillar-icon-box {
  background: rgba(242, 101, 34, 0.25);
  color: #fdba74;
  border: 1px solid rgba(242, 101, 34, 0.4);
}

.pillar-darurat .pillar-icon-box {
  background: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.5);
  animation: redPulseIcon 2s infinite;
}

@keyframes redPulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pillar-badge-urgent {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(220, 38, 38, 0.88);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.urgent-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pillar-content {
  flex: 1;
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.92);
  line-height: 1.5;
  margin: 0;
}

.pillar-action {
  width: 100%;
}

.btn-pillar {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  border: none;
  box-sizing: border-box;
}

.btn-pillar-green,
.btn-pillar-navy {
  background: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
}
.btn-pillar-green:hover,
.btn-pillar-navy:hover {
  background: #172554;
  transform: translateY(-1px);
}

.btn-pillar-orange {
  background: #f26522;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.4);
}
.btn-pillar-orange:hover {
  background: #dc5618;
  transform: translateY(-1px);
}

.btn-pillar-red {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
  font-weight: 800;
}
.btn-pillar-red:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.65);
}

/* Hero Secondary Action Links */
.hero-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.hero-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.hero-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hero-dot-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Dark Mode Adaptation for Hero Pillars */
body.theme-dark .hero-pillar-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-dark .hero-pillar-card.pillar-darurat {
  background: rgba(220, 38, 38, 0.22);
}

/* Fallback & General Button Classes */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-main {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: none;
}

.btn-main.primary {
  background: #1e3a8a;
  color: #fff;
  border: 1px solid #1e3a8a;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.35);
}

.btn-main.primary:hover {
  background: #172554;
  border-color: #172554;
  transform: translateY(-1px);
}

.btn-main.secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-main.secondary:hover {
  background: #ffffff;
  color: #1e3a8a;
}

.btn-main.danger-soft {
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-main.danger-soft:hover {
  background: #dc2626;
}

/* Hero Background Slide Dots Indicator */
.hero-bg-dock {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg-dots {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-bg-dot {
  width: 20px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-bg-dot.active {
  width: 40px;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.hero-bg-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
}

/* Dark Mode Overrides for Hero */
body.theme-dark .hero-section .search-input-box {
  background: #111d2b;
  border-color: #1e3347;
}

body.theme-dark .hero-section .search-input-box input {
  color: #f8fafc;
}

body.theme-dark .hero-section .search-input-box input::placeholder {
  color: #94a3b8;
}

body.theme-dark .hero-section .btn-main.secondary {
  background: #152433;
  color: #f8fafc;
  border-color: #1e3347;
}

body.theme-dark .hero-section .btn-main.secondary:hover {
  background: #1e3347;
  color: #93c5fd;
}

/* ============================================================
   3. EMERGENCY SLIM STRIP
   ============================================================ */
.emergency-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.emergency-strip-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
}

@media (min-width: 768px) {
  .emergency-strip-inner {
    flex-direction: row;
    text-align: left;
  }
}

.emergency-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-main);
}

.pulse-red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: redPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes redPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.emergency-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-emergency-call {
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}

.btn-emergency-call:hover {
  background: #b91c1c;
}

.btn-emergency-report {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}

.btn-emergency-report:hover {
  background: var(--border);
}

/* ============================================================
   4. SECTION BLOCKS & CLEAN GRID
   ============================================================ */
.section-block {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 20px 10px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

body.theme-dark .section-eyebrow {
  color: #93c5fd;
}

.section-title-clean {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .section-title-clean {
    font-size: 26px;
  }
}

.section-desc-clean {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Clean Pill Tabs */
.clean-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .clean-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    box-sizing: border-box;
  }
}

.clean-tab-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .clean-tab-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

.clean-tab-btn:hover {
  color: var(--text-main);
}

.clean-tab-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

/* Clean Cards Grid */
.clean-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .clean-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   4. CLEAN SERVICE CARD (Option 1: Modern Civic Navy)
   ============================================================ */
.service-clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  position: relative;
}

.service-clean-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -6px rgba(30, 58, 138, 0.12);
}

body.theme-dark .service-clean-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.theme-dark .service-clean-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.card-icon.tint-blue   { background: #eff6ff; color: #1d4ed8; }
.card-icon.tint-navy   { background: #f1f5f9; color: #1e3a8a; }
.card-icon.tint-orange { background: #fff7ed; color: #ea580c; }
.card-icon.tint-purple { background: #faf5ff; color: #7c3aed; }
.card-icon.tint-teal   { background: #ecfeff; color: #0891b2; }
.card-icon.tint-maroon { background: #fff1f2; color: #e11d48; }

body.theme-dark .card-icon.tint-blue   { background: rgba(37, 99, 235, 0.18); color: #60a5fa; }
body.theme-dark .card-icon.tint-navy   { background: rgba(30, 58, 138, 0.25); color: #93c5fd; }
body.theme-dark .card-icon.tint-orange { background: rgba(234, 88, 12, 0.18); color: #fb923c; }
body.theme-dark .card-icon.tint-purple { background: rgba(124, 58, 237, 0.18); color: #c084fc; }
body.theme-dark .card-icon.tint-teal   { background: rgba(8, 145, 178, 0.18); color: #22d3ee; }
body.theme-dark .card-icon.tint-maroon { background: rgba(225, 29, 72, 0.18); color: #fb7185; }

.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-badge.badge-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.card-badge.badge-navy   { background: #f1f5f9; color: #1e3a8a; border: 1px solid #cbd5e1; }
.card-badge.badge-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.card-badge.badge-purple { background: #faf5ff; color: #6d28d9; border: 1px solid #e9d5ff; }
.card-badge.badge-amber  { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.card-badge.badge-maroon { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.card-badge.badge-teal   { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

body.theme-dark .card-badge.badge-blue   { background: rgba(37, 99, 235, 0.22); color: #93c5fd; border-color: rgba(37, 99, 235, 0.4); }
body.theme-dark .card-badge.badge-navy   { background: rgba(30, 58, 138, 0.28); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
body.theme-dark .card-badge.badge-orange { background: rgba(194, 65, 12, 0.22); color: #fdba74; border-color: rgba(194, 65, 12, 0.4); }
body.theme-dark .card-badge.badge-purple { background: rgba(109, 40, 217, 0.22); color: #d8b4fe; border-color: rgba(109, 40, 217, 0.4); }
body.theme-dark .card-badge.badge-amber  { background: rgba(180, 83, 9, 0.22); color: #fde047; border-color: rgba(180, 83, 9, 0.4); }
body.theme-dark .card-badge.badge-maroon { background: rgba(190, 18, 60, 0.22); color: #fda4af; border-color: rgba(190, 18, 60, 0.4); }
body.theme-dark .card-badge.badge-teal   { background: rgba(14, 116, 144, 0.22); color: #67e8f9; border-color: rgba(14, 116, 144, 0.4); }

.service-clean-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.service-clean-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Quick Civic Metadata Row */
.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.meta-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta-item i {
  color: #1e3a8a;
  font-size: 10px;
}

body.theme-dark .meta-item i {
  color: #60a5fa;
}

.card-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-card-action {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-card-action:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.theme-dark .btn-card-action:hover {
  background: #334155;
  color: #f8fafc;
  border-color: #475569;
}

.btn-card-action.primary {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.btn-card-action.primary:hover {
  background: #172554;
  border-color: #172554;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}

/* ============================================================
   5. TRACKER MINIMAL CARD
   ============================================================ */
.tracker-minimal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 800px) {
  .tracker-minimal-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
  }

  .tracker-text {
    flex: 1;
  }

  .tracker-input-box {
    width: 360px;
  }
}

@media (max-width: 640px) {
  .tracker-minimal-card {
    padding: 18px 16px;
  }
  .tracker-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tracker-input-box {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .tracker-input-box input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
  }
  .tracker-input-box .btn-clean-primary {
    width: 100%;
    height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }
}

.tracker-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tracker-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tracker-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tracker-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.tracker-text code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

.tracker-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tracker-input-box input {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition);
}

.tracker-input-box input:focus {
  border-color: var(--primary);
}

.btn-clean-primary {
  height: 40px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-clean-primary:hover {
  background: var(--primary-hover);
}

/* ============================================================
   6. INOVASI MINIMAL GRID
   ============================================================ */
.inovasi-minimal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .inovasi-minimal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inovasi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition);
}

.inovasi-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.inovasi-card-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  width: fit-content;
  margin-bottom: 12px;
}

.inovasi-card-badge.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.inovasi-card-badge.purple {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
}

.inovasi-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.inovasi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.inovasi-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.inovasi-stats {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.inovasi-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-card-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.link-card-action:hover {
  gap: 9px;
}

.center-cta {
  text-align: center;
  margin-top: 14px;
}

.btn-clean-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-clean-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ============================================================
   7. WARTA MINIMAL GRID (kecamatanjambangan.id)
   ============================================================ */
.warta-minimal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .warta-minimal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .warta-minimal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.warta-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition);
}

.warta-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.warta-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.warta-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.warta-date {
  font-size: 10.5px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.warta-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.warta-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.warta-action-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   8. PROFIL 4 KELURAHAN (Pills & Clean Display)
   ============================================================ */
.kelurahan-pill-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .kelurahan-pill-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    border-radius: 14px;
    gap: 6px;
    padding: 6px;
    box-sizing: border-box;
  }
}

.kel-pill-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

@media (max-width: 640px) {
  .kel-pill-btn {
    text-align: center;
    padding: 9px 10px;
    min-height: 40px;
    border-radius: 10px;
    font-size: 12px;
  }
}

.kel-pill-btn:hover {
  color: var(--text-main);
}

.kel-pill-btn.active {
  background: #1e3a8a !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.25);
}

.kelurahan-display-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .kelurahan-display-wrap {
    padding: 30px 36px;
  }
}

.kel-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .kel-grid-2 {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
  }
}

.kel-name-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.kel-code-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.kel-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 18px;
}

.kel-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kel-detail-item i {
  width: 16px;
  color: var(--primary);
}

.kel-stat-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.kel-mini-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.kel-mini-card strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.kel-mini-card small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================================
   9. DUAL CLEAN GRID (BUDGET & CONTACTS)
   ============================================================ */
.dual-clean-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .dual-clean-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.clean-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.panel-header small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.budget-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.budget-stat small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.budget-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.budget-badge-pill {
  font-size: 10px;
  font-weight: 700;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.budget-bars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bud-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}

.bud-name {
  width: 100px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bud-track {
  flex: 1;
  height: 7px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bud-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.bud-pct {
  width: 34px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
}

/* Contact List */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
}

.contact-row i {
  font-size: 16px;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.contact-row i.navy { color: #1e3a8a; }
.contact-row i.blue { color: #0284c7; }

.contact-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-main);
}

.contact-row span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.contact-row.clickable {
  background: var(--bg-subtle);
  transition: background var(--transition);
}

.contact-row.clickable:hover {
  background: var(--border);
}

.contact-row .arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-soft);
}

/* ============================================================
   10. SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-top-row {
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 36px;
  }
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand-title strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.footer-brand-title span {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-about {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.footer-nav-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-col ul li a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.footer-nav-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom-row {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    text-align: left;
  }
}

.footer-cert-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-cert-badges i {
  color: var(--primary);
}

/* ============================================================
   11. COLOR TINTS & UTILITIES (Harmoni Palet Logo Jambangan)
   ============================================================ */
.tint-sky   { background: #eff6ff; color: #1e3a8a; }
.tint-blue   { background: var(--jambangan-blue-light); color: var(--jambangan-blue-dark); }
.tint-orange { background: var(--jambangan-orange-light); color: var(--jambangan-orange-dark); }
.tint-navy   { background: #f1f5f9; color: #1e3a8a; }
.tint-maroon { background: #ffe4e6; color: #be123c; }
.tint-purple { background: #f3e8ff; color: #7e22ce; }
.tint-teal   { background: #ccfbf1; color: #0f766e; }

.hidden {
  display: none !important;
}

.toast-box {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
  pointer-events: none;
}

.toast-box.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   PELAYANAN BALAI RW SECTION (Jemput Bola Warga)
   ============================================================ */
.balai-kel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 22px auto 16px;
  width: 100%;
}

@media (max-width: 767px) {
  .balai-kel-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0 14px;
  }
}

@media (max-width: 360px) {
  .balai-kel-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.balai-kel-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: inherit;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.balai-kel-btn .kel-tab-icon {
  font-size: 16px;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.balai-kel-btn .kel-tab-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.balai-kel-btn .kel-tab-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  transition: color var(--transition);
}

.balai-kel-btn .kel-tab-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color var(--transition);
}

.balai-kel-btn:hover {
  border-color: #93c5fd;
  background: var(--primary-light);
  transform: translateY(-1px);
}

.balai-kel-btn:hover .kel-tab-icon {
  color: var(--primary);
  transform: scale(1.1);
}

/* Active Kelurahan State: Unified Modern Civic Navy */
.balai-kel-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.28);
}

.balai-kel-btn.active .kel-tab-icon {
  color: #ffffff !important;
}

.balai-kel-btn.active .kel-tab-title {
  color: #ffffff !important;
}

.balai-kel-btn.active .kel-tab-badge {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* RW Navigation Control Dock */
.balai-rw-nav-dock {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.rw-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.rw-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rw-nav-label i {
  color: var(--primary);
}

.rw-nav-indicator {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

body.theme-dark .rw-nav-indicator {
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.3);
  border-color: rgba(30, 58, 138, 0.5);
}

.balai-rw-chips-scroll {
  width: 100%;
}

.balai-rw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 2px 0;
}

@media (max-width: 640px) {
  .balai-rw-chips {
    gap: 6px;
  }
}

.rw-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.rw-chip:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #eff6ff;
}

body.theme-dark .rw-chip:hover {
  border-color: #93c5fd;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.25);
}

/* RW Active State: Clean Civic Navy (NO GREEN) */
.rw-chip.active {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(30, 58, 138, 0.35);
  transform: translateY(-1px);
}

/* Balai RW Display Card */
.balai-rw-display {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .balai-rw-display {
    padding: 28px 32px;
  }
}

.balai-header-dock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .balai-header-dock {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.balai-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balai-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

body.theme-dark .balai-icon-circle {
  background: rgba(30, 58, 138, 0.3);
  color: #93c5fd;
  border-color: rgba(30, 58, 138, 0.5);
}

.balai-name-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .balai-name-heading {
    font-size: 19px;
  }
}

.balai-sub-info {
  font-size: 12px;
  color: var(--text-muted);
}

.balai-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.balai-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
}

.balai-pill-badge.time {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.balai-pill-badge.free {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.balai-pill-badge.count {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.petugas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .petugas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.petugas-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
}

.petugas-card:hover {
  border-color: #1e3a8a;
  background: var(--bg-card);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
  transform: translateY(-2px);
}

.petugas-avatar-init {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.2);
}

.petugas-avatar-init.bkpsdm {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
}

.petugas-info {
  flex: 1;
  min-width: 0;
}

.petugas-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 2px;
  word-break: break-word;
}

.petugas-nip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.petugas-opd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
}

.petugas-opd-badge.kecamatan {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.petugas-opd-badge.bkpsdm {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.petugas-empty-state {
  grid-column: 1 / -1;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: 14px;
  font-size: 13px;
}

.petugas-empty-state i {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.6;
  color: var(--primary);
  display: block;
}

.balai-footer-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .balai-footer-note {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
  }
}

.balai-footer-text {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.balai-footer-text i {
  color: #1e3a8a;
  margin-top: 3px;
  flex-shrink: 0;
}

body.theme-dark .balai-footer-text i {
  color: #93c5fd;
}

.balai-footer-text strong {
  color: var(--text-main);
}

.btn-balai-whatsapp {
  background: #1e3a8a;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
  min-height: 42px;
}

.btn-balai-whatsapp:hover {
  background: #172554;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(30, 58, 138, 0.35);
}

/* Balai RW Location Geotag Card */
.balai-location-card {
  background: var(--bg-card);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.06);
  transition: all var(--transition);
}

.balai-location-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.1);
}

.balai-loc-icon-col {
  flex-shrink: 0;
}

.balai-loc-pin-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.balai-loc-content-col {
  flex: 1;
  min-width: 0;
}

.balai-loc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.balai-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.balai-loc-badge.verified {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.balai-loc-badge.pending {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.balai-loc-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.balai-loc-address {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 4px;
  word-break: break-word;
}

.balai-loc-address strong {
  color: #1e3a8a;
}

.balai-loc-patokan {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: italic;
}

.balai-loc-action-col {
  flex-shrink: 0;
}

.btn-balai-route {
  background: #1e3a8a;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.2);
  min-height: 40px;
}

.btn-balai-route:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(30, 58, 138, 0.3);
}

@media (max-width: 767px) {
  .balai-location-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .balai-loc-action-col {
    width: 100%;
  }

  .btn-balai-route {
    width: 100%;
    min-height: 44px;
    font-size: 13.5px;
  }
}

/* Dark mode adjustments for Balai RW */
body.theme-dark .balai-pill-badge.time {
  background: rgba(30, 58, 138, 0.25);
  color: #93c5fd;
  border-color: rgba(30, 58, 138, 0.4);
}

body.theme-dark .balai-pill-badge.free {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
}

body.theme-dark .petugas-opd-badge.kecamatan {
  background: rgba(30, 58, 138, 0.28);
  color: #93c5fd;
  border-color: rgba(30, 58, 138, 0.4);
}

body.theme-dark .petugas-opd-badge.bkpsdm {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
  border-color: rgba(2, 132, 199, 0.4);
}
