/* ==========================================================================
   DUN N.19 Panching — Portal Rasmi & Pusat Khidmat Masyarakat PAS
   Wakil Rakyat: YB Tuan Haji Mohd Tarmizi Bin Yahaya
   Konsep: Sejahtera Architectural Editorial & Bento Civic Portal
   ========================================================================== */

:root {
  --emerald-950: #032215;
  --emerald-900: #053822;
  --emerald-800: #084c2e;
  --pas-green: #007a3d;
  --pas-green-bright: #0ca656;
  --emerald-soft: #e6f5ec;
  --emerald-mist: #eef7f1;

  --gold: #c89d3c;
  --gold-light: #e8c66b;
  --gold-soft: #fcf6e6;

  --canvas: #f4f8f5;
  --surface: #ffffff;
  --surface-muted: #ebf2ed;

  --ink: #072115;
  --ink-2: #385245;
  --ink-3: #688274;
  --border: rgba(7, 33, 21, 0.09);
  --border-strong: rgba(7, 33, 21, 0.16);

  --ok: #007a3d;
  --ok-bg: #e6f6ee;
  --err: #c62836;
  --err-bg: #fdecef;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Amiri', serif;

  --header-h: 46px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 10px 26px -12px rgba(3, 34, 21, 0.10);
  --shadow-md: 0 24px 54px -18px rgba(3, 34, 21, 0.18);
  --shadow-lg: 0 32px 68px -20px rgba(3, 34, 21, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.login-modal-open,
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Komponen Asas ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pas-green);
}

.kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pas-green);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:active { transform: scale(0.98); }
.btn i { transition: transform 0.25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-emerald-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--emerald-950);
  box-shadow: 0 16px 32px -12px rgba(200, 157, 60, 0.55);
}

.btn-emerald-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -12px rgba(200, 157, 60, 0.72);
}

.btn-outline-mint {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-outline-mint:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pas-green-bright), var(--pas-green) 60%, var(--emerald-900));
  color: #ffffff;
  box-shadow: 0 14px 28px -10px rgba(0, 122, 61, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(0, 122, 61, 0.65);
}

.btn-block { width: 100%; padding: 14px 24px; margin-top: 6px; }

/* ==========================================================================
   JALUR UTILITI SIVIK ATAS (CIVIC UTILITY RIBBON)
   ========================================================================== */
.civic-topbar {
  background: var(--emerald-950);
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  position: relative;
  z-index: 1002;
}

.civic-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.civic-motto {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.arabic-bismillah {
  font-family: var(--font-arabic);
  font-size: 13.5px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.civic-divider { opacity: 0.35; }

.civic-tagline {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.civic-tagline i { color: var(--gold-light); font-size: 10px; }

.civic-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.civic-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-light);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(232, 198, 107, 0.12);
  border: 1px solid rgba(232, 198, 107, 0.25);
  font-size: 11px;
  transition: background 0.2s;
}

.civic-hotline:hover { background: rgba(232, 198, 107, 0.22); }

.header-clock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-flags { display: flex; align-items: center; gap: 4px; }
.mini-flags img {
  height: 10px;
  width: auto;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.clock-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.clock-copy small { font-size: 10.5px; font-weight: 500; opacity: 0.75; }
.clock-copy strong { font-size: 11px; font-weight: 800; color: #fff; }

/* ==========================================================================
   HEADER NAVIGASI DOCK SENI BINA (ARCHITECTURAL DOCK HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px -16px rgba(3, 34, 21, 0.16);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-emblems {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-emblems .logo-pas {
  height: 25px;
  width: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 122, 61, 0.2);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-titles strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--emerald-950);
}

.brand-titles span {
  font-size: 10px;
  font-weight: 600;
  color: var(--pas-green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px;
  border-radius: 9px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.nav-item {
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}

.nav-item:hover {
  color: var(--emerald-950);
  background: rgba(255, 255, 255, 0.65);
}

.nav-item.active {
  background: var(--pas-green);
  color: #ffffff;
  box-shadow: 0 3px 8px -3px rgba(0, 122, 61, 0.55);
}

.nav-item-highlight {
  color: var(--emerald-900);
  background: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-quick-aduan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--pas-green);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(0, 122, 61, 0.16);
  transition: background 0.22s, transform 0.22s;
}

.btn-quick-aduan:hover {
  background: #d3ede0;
  transform: translateY(-1px);
}

.btn-staff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 2px 2px 10px;
  border-radius: 7px;
  background: var(--emerald-950);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.staff-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--emerald-950);
  font-size: 10px;
  transition: transform 0.25s var(--ease);
}

.btn-staff:hover {
  background: var(--emerald-900);
  transform: translateY(-1px);
}

.btn-staff:hover .staff-icon { transform: translateX(2px); }

.mobile-toggle {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  position: relative;
  border: 1.5px solid var(--border-strong);
  color: var(--emerald-950);
}

.mobile-toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}

.mobile-toggle span:first-child { top: 9px; }
.mobile-toggle span:last-child { top: 17px; }
body.menu-open .mobile-toggle span:first-child { top: 13px; transform: rotate(45deg); }
body.menu-open .mobile-toggle span:last-child { top: 13px; transform: rotate(-45deg); }

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(3, 34, 21, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

body.menu-open .mobile-backdrop { opacity: 1; visibility: visible; }

/* ==========================================================================
   1. HERO EDITORIAL & BENTO COMMAND SHOWCASE (KONSEP BAHARU)
   ========================================================================== */
.hero {
  position: relative;
  padding: 10px 0 12px;
  min-height: calc(100vh - var(--header-h) - 29px);
  max-height: calc(100vh - var(--header-h) - 29px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 14% 18%, rgba(12, 166, 86, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 86% 80%, rgba(200, 157, 60, 0.16) 0%, transparent 48%),
    linear-gradient(155deg, var(--emerald-950) 0%, var(--emerald-900) 58%, #064429 100%);
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero .container {
  max-width: 1540px;
  padding-left: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
}

.hero-geometric-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='18' y='18' width='44' height='44'/%3E%3Crect x='18' y='18' width='44' height='44' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pas-green-bright), var(--gold-light) 50%, var(--pas-green));
}

.hero-split-grid,
.hero-bento-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 3.8vw, 64px);
  align-items: center;
  max-width: 100%;
  margin: 0;
}

/* --- Kolum Kiri Hero: Potret Rasmi YB Tuan Haji Mohd Tarmizi Bin Yahaya --- */
.hero-yb-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  margin-left: -32px;
  animation: riseIn 0.8s var(--ease) both;
}

.hero-yb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform: translateY(-44px);
  margin-bottom: -44px;
}

.hero-yb-glow {
  position: absolute;
  width: 336px;
  height: 336px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(12, 166, 86, 0.42) 0%, rgba(200, 157, 60, 0.20) 45%, transparent 70%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

.hero-yb-img {
  position: relative;
  z-index: 1;
  max-height: 408px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.60));
  transition: transform 0.35s var(--ease);
}

.hero-yb-img:hover {
  transform: translateY(-4px) scale(1.015);
}

.hero-yb-nametag {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 9px;
  border-radius: 999px;
  background: rgba(3, 34, 21, 0.92);
  border: 1px solid rgba(232, 198, 107, 0.45);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  white-space: nowrap;
  animation: riseIn 0.85s 0.15s var(--ease) both;
}

.nametag-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.nametag-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Kolum Kanan Hero: Naratif Editorial --- */
.hero-narrative {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: auto;
  text-align: left;
  animation: riseIn 0.8s 0.08s var(--ease) both;
}

.hero-top-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  animation: riseIn 0.75s var(--ease) both;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
  margin-bottom: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-pas {
  color: #00e676;
  text-shadow: 0 2px 10px rgba(0, 230, 118, 0.5);
  letter-spacing: 0.05em;
}

.brand-teraju {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.brand-pahang {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 48.5%, #050505 51.5%, #050505 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 950;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  filter:
    drop-shadow(1px 0 0 #000000)
    drop-shadow(-1px 0 0 #000000)
    drop-shadow(0 1px 0 #000000)
    drop-shadow(0 -1px 0 #000000)
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85));
}

.hero-flag,
.hero-pas-flag,
.hero-pahang-flag {
  width: 38px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 680px;
  text-align: left;
  transform: translateX(-90px);
  position: relative;
  z-index: 2;
}

.hero-title .title-emerald {
  display: block;
  color: #6ee7a8;
}

.hero-title .title-gold-pill {
  display: block;
  margin-top: 4px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(232, 198, 107, 0.25);
}

/* Metrik Bento di dalam Hero (Dikecilkan & Berada di Kanan Bawah) */
.hero-metrics {
  display: none !important;
}

.metric-bento-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

.metric-bento-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(232, 198, 107, 0.45);
}

.metric-ico {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(12, 166, 86, 0.28);
  color: var(--gold-light);
  font-size: 12px;
  flex-shrink: 0;
}

.metric-body {
  text-align: left;
}

.metric-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.metric-body span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1px;
}

/* ==========================================================================
   KAROUSEL HERO & KAD STATISTIK PAS (KANAN HERO)
   ========================================================================== */
.hero-split-grid {
  position: relative;
}

.hero-carousel-wrap {
  position: absolute;
  right: 0;
  top: 16px;
  width: 455px;
  max-width: calc(100% - 510px);
  height: 310px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  background: rgba(3, 34, 21, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  z-index: 3;
}

.hero-pas-stats-card {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 455px;
  max-width: calc(100% - 510px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(3, 34, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 198, 107, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 8px;
  box-sizing: border-box;
  z-index: 3;
}

.pas-stat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 6px;
  min-width: 0;
}

.pas-stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pas-stat-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(12, 166, 86, 0.28);
  border: 1px solid rgba(232, 198, 107, 0.3);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.pas-stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.pas-stat-num {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.pas-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  margin-top: 1px;
  white-space: normal;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(3, 34, 21, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold-light);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0.85;
  transition: opacity 0.25s, transform 0.25s, background 0.25s, border-color 0.25s;
  backdrop-filter: blur(6px);
}

.carousel-arrow:hover {
  opacity: 1;
  background: rgba(12, 166, 86, 0.9);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow-prev { left: 12px; }
.carousel-arrow-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.carousel-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: var(--gold-light);
  box-shadow: 0 0 6px rgba(232, 198, 107, 0.6);
}

/* ==========================================================================
   TAJUK SEKSYEN SPLIT (EDITORIAL SECTION HEADERS)
   ========================================================================== */
.section-header-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}

.section-header-split h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--emerald-950);
  margin-top: 8px;
}

.section-header-split p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ==========================================================================
   2. TERAS KHIDMAT & AGENDA SEJAHTERA (BENTO GRID)
   ========================================================================== */
.fokus-section {
  padding: 76px 0 68px;
}

.agenda-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agenda-card {
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
  position: relative;
  overflow: hidden;
}

.agenda-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pas-green), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}

.agenda-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 61, 0.28);
}

.agenda-card:hover::before { opacity: 1; }

.agenda-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.agenda-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--emerald-soft);
  color: var(--pas-green);
  font-size: 20px;
  transition: background 0.25s, color 0.25s;
}

.agenda-card:hover .agenda-icon-box {
  background: var(--pas-green);
  color: #ffffff;
}

.agenda-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
  background: var(--surface-muted);
  padding: 4px 10px;
  border-radius: 999px;
}

.agenda-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 8px;
}

.agenda-card p {
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   3. DIREKTORI 8 DAERAH MENGUNDI (PDM) N.19 PANCHING
   ========================================================================== */
.pdm-section {
  padding: 68px 0 76px;
  background: linear-gradient(180deg, var(--emerald-mist) 0%, var(--canvas) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pdm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pdm-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.pdm-card:hover {
  transform: translateY(-4px);
  border-color: var(--pas-green);
  box-shadow: var(--shadow-md);
}

.pdm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pdm-code {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--emerald-950);
  color: var(--gold-light);
}

.pdm-zone-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pas-green);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.pdm-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pdm-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--emerald-900);
  font-size: 15px;
  flex-shrink: 0;
}

.pdm-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.25;
}

.pdm-school {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdm-card-footer {
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
}

.pdm-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--pas-green);
}

.pdm-action-link:hover { color: var(--emerald-950); }

/* ==========================================================================
   4. MEJA BANTUAN & E-ADUAN RAKYAT (COMMAND DESK WORKSPACE - SATU SKRIN)
   ========================================================================== */
.aduan-section {
  padding: 8px 0 10px;
  min-height: calc(100vh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.aduan-workspace {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.aduan-form-panel {
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px -8px rgba(3, 34, 21, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.form-head { margin-bottom: 5px; }

.form-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--pas-green);
  font-size: 9.5px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1;
}

.form-head h3 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--emerald-950);
  line-height: 1.15;
  margin: 0;
}

.form-head p {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 1px;
  margin-bottom: 0;
}

.form-head em { color: var(--err); font-style: normal; }

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  margin-bottom: 6px;
}

.notice-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(0, 122, 61, 0.25); }
.notice-err { background: var(--err-bg); color: var(--err); border: 1px solid rgba(198, 40, 54, 0.25); }
.form-notice > i { font-size: 13px; margin-top: 1px; }

.ref-copy-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ref-copy-bar strong {
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--emerald-950);
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 122, 61, 0.2);
}

.btn-copy-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--pas-green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.cat-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-pill { cursor: pointer; }
.cat-pill input { position: absolute; opacity: 0; pointer-events: none; }

.cat-pill span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-muted);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.cat-pill span i { font-size: 9.5px; opacity: 0.8; }
.cat-pill:hover span { background: var(--emerald-soft); color: var(--pas-green); }

.cat-pill input:checked + span {
  background: var(--emerald-950);
  color: #ffffff;
  box-shadow: 0 4px 10px -3px rgba(3, 34, 21, 0.45);
}

.cat-pill input:checked + span i { color: var(--gold-light); opacity: 1; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-field { margin-bottom: 4px; }

.f-label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.15;
}

.f-label em { color: var(--err); font-style: normal; }
.f-label small { color: var(--ink-3); font-weight: 500; font-size: 9px; }
.f-label .char-count { margin-left: auto; font-size: 9.5px; }

.f-input {
  width: 100%;
  height: 29px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  font-size: 11px;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.f-input::placeholder { color: #8ca396; }

.f-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--pas-green);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.13);
}

.f-input.is-touched:invalid { border-color: rgba(198, 40, 54, 0.55); background: #fff9fa; }

select.f-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23385245' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px;
}

textarea.f-input {
  min-height: 38px;
  height: 38px;
  max-height: 48px;
  resize: none;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.3;
}

/* --- Sidebar Kanan Aduan: Kad Pusat Khidmat (Satu Skrin) --- */
.aduan-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-center-card {
  padding: 12px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(155deg, var(--emerald-950) 0%, var(--emerald-900) 60%, var(--pas-green) 100%);
  box-shadow: 0 10px 28px -10px rgba(3, 34, 21, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sc-header img {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sc-kicker {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  line-height: 1;
}

.sc-header h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 1px 0 0 0;
}

.sc-lead {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  margin-bottom: 8px;
}

.info-list {
  display: grid;
  gap: 5px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold-light);
  font-size: 10px;
}

.info-list small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.info-list p {
  font-size: 10.5px;
  line-height: 1.25;
  margin: 1px 0 0 0;
  color: #ffffff;
}

.info-list a:hover { color: var(--gold-light); }

.btn-whatsapp-direct {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #25d366;
  color: #042412;
  font-size: 11px;
  font-weight: 800;
  height: 29px;
  transition: transform 0.22s, box-shadow 0.22s;
}

.btn-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(37, 211, 102, 0.55);
}

.workflow-mini-card {
  display: none !important;
}

.workflow-mini-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-950);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.workflow-mini-card h4 i { color: var(--pas-green); }

.workflow-steps {
  display: grid;
  gap: 12px;
}

.workflow-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wf-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--emerald-soft);
  color: var(--pas-green);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.workflow-steps strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-950);
}

.workflow-steps span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

/* ==========================================================================
   FOOTER RASMI PAS DUN N.19 PANCHING
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--emerald-950);
  color: rgba(255, 255, 255, 0.70);
  padding: 56px 0 28px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pas-green), var(--gold-light) 50%, var(--pas-green-bright));
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logos { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-logos .f-pas-logo { height: 32px; width: auto; border-radius: 6px; }
.footer-logos .f-flag { height: 22px; width: auto; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.25); }

.footer-brand h3 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-brand p { font-size: 13.5px; max-width: 44ch; line-height: 1.6; }

.footer-socials { display: flex; gap: 9px; margin-top: 16px; }

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-socials a:hover { background: var(--gold-light); color: var(--emerald-950); transform: translateY(-2px); }

.footer-cols { display: flex; gap: 64px; }
.f-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }

.f-col h4 {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.f-col a { transition: color 0.2s; }
.f-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
}

/* Butang Ke Atas */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pas-green);
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(3, 34, 21, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.2s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-light); color: var(--emerald-950); }

/* ==========================================================================
   TOAST & MODAL LOG MASUK PETUGAS PAS N.19 PANCHING
   ========================================================================== */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--emerald-950);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.landing-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  transition: opacity 0.3s, transform 0.3s;
}

.landing-toast-success i { color: var(--ok); }
.landing-toast-danger i, .landing-toast-error i { color: var(--err); }
.landing-toast-close { font-size: 20px; color: var(--ink-3); }

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 34, 21, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.login-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.login-modal-dialog {
  width: 100%;
  max-width: 410px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 36px 80px -20px rgba(3, 34, 21, 0.55);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.login-modal-backdrop.is-open .login-modal-dialog { transform: none; }

.login-modal-banner {
  position: relative;
  padding: 28px 26px 22px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--emerald-950), var(--pas-green));
}

.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 20px;
}

.login-modal-pas-img {
  height: 44px;
  width: auto;
  margin: 0 auto 10px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.login-modal-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.login-modal-banner h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 3px;
}

.login-modal-banner p { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.login-modal-body { padding: 24px 26px 28px; }

.login-modal-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.login-alert-danger, .login-alert-error { background: var(--err-bg); color: var(--err); }
.login-alert-success { background: var(--ok-bg); color: var(--ok); }
.login-alert-info, .login-alert-warning { background: var(--emerald-soft); color: var(--pas-green); }

.login-field-group { margin-bottom: 14px; }
.login-field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.login-input-wrap { position: relative; }
.login-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13.5px; }

.login-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--canvas);
  font-size: 14px;
}

.login-input.has-toggle { padding-right: 44px; }
.login-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--pas-green);
  box-shadow: 0 0 0 4px rgba(0, 122, 61, 0.13);
}

.login-toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--ink-3);
}

.login-submit-btn {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13.5px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pas-green), var(--emerald-900));
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(0, 122, 61, 0.55);
}

.login-submit-btn:disabled { opacity: 0.7; cursor: wait; }

/* ==========================================================================
   ANIMASI
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   RESPONSIF
   ========================================================================== */
@media (max-width: 1120px) {
  .hero {
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .hero-split-grid,
  .hero-bento-grid {
    grid-template-columns: 390px 1fr;
    gap: 28px;
  }
  .hero-yb-col {
    margin-left: -12px;
  }
  .hero-yb-stage { transform: translateY(-28px); margin-bottom: -28px; }
  .hero-yb-img { max-height: 350px; }
  .hero-title { transform: translateX(-50px); }
  .hero-narrative { min-height: auto; }
  .hero-carousel-wrap {
    position: absolute;
    right: 0;
    width: 405px;
    max-width: calc(100% - 490px);
    height: 270px;
    top: 14px;
  }
  .hero-pas-stats-card {
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 405px;
    max-width: calc(100% - 490px);
    padding: 8px 12px;
    gap: 6px;
  }
  .pas-stat-ico {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .pas-stat-num { font-size: 15.5px; }
  .pas-stat-lbl { font-size: 9px; }
  .pdm-grid { grid-template-columns: repeat(2, 1fr); }
  .agenda-bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    max-height: none;
    height: auto;
    display: block;
    padding: 16px 0 20px;
  }
  .hero .container {
    max-width: 100%;
    padding: 0 16px;
  }
  .hero-split-grid,
  .hero-bento-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-yb-col {
    justify-content: center;
    margin-left: 0;
  }
  .hero-yb-stage { transform: translateY(-16px); margin-bottom: 0; }
  .hero-yb-img { max-height: 270px; }
  .hero-yb-nametag { margin-top: -18px; padding: 6px 18px; }
  .nametag-name { font-size: 13.5px; }
  .nametag-role { font-size: 10px; }
  .hero-narrative { align-items: center; text-align: center; min-height: auto; }
  .hero-title { text-align: center; transform: none; }
  .hero-carousel-wrap {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 240px;
    margin: 18px 0 14px 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }
  .hero-pas-stats-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 16px 0;
    padding: 8px 12px;
  }

  .civic-tagline { display: none; }
  .civic-divider { display: none; }
  .btn-quick-aduan { display: none; }
  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 32px);
    left: 16px;
    right: 16px;
    z-index: 995;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border-color: var(--border-strong);
    box-shadow: 0 28px 60px rgba(3, 34, 21, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }

  body.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-item { padding: 12px 16px; text-align: center; }

  .section-header-split { grid-template-columns: 1fr; gap: 10px; }
  .aduan-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 44px; }
  .container { padding: 0 16px; }

  .civic-topbar-inner { justify-content: space-between; }
  .header-clock { display: none; }
  .btn-staff > span:first-child { display: none; }
  .btn-staff { padding: 4px; }

  .hero { padding: 14px 0 20px; }
  .hero-carousel-wrap { height: 200px; border-radius: 14px; }
  .hero-pas-stats-card { padding: 8px 10px; }
  .pas-stat-ico { width: 25px; height: 25px; font-size: 11px; }
  .pas-stat-num { font-size: 13.5px; }
  .pas-stat-lbl { font-size: 8.5px; }
  .agenda-bento-grid { grid-template-columns: 1fr; }
  .pdm-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .aduan-form-panel { padding: 22px 18px; }
  .footer-cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
