/* ==========================================================================
   Website Resmi & Sapa Warga Edy Susanto (No. Urut 2)
   Calon Kepala Desa Tampirkulon
   Desain Modern, Responsif, Fullscreen & Terintegrasi PWA
   ========================================================================== */

:root {
  --color-primary: #b71c1c;
  --color-primary-dark: #8e0000;
  --color-primary-light: #d32f2f;
  --color-primary-soft: #fff5f5;
  --color-asri: #2e7d32;
  --color-asri-soft: #e8f5e9;
  --color-maju: #c62828;
  --color-maju-soft: #ffebee;
  --color-rukun: #ef6c00;
  --color-rukun-soft: #fff3e0;
  --color-dark: #1e293b;
  --color-muted: #64748b;
  --color-border: #f1f5f9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.1);
  --radius-card: 16px;
  --radius-pill: 50px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-handwrite: 'Caveat', cursive, serif;
}

/* Base & Fullscreen Container Utility */
body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: #fcfdfd;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Wide Fluid Container for Fullscreen Modern Feel */
.container-custom {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1200px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Typography */
.font-handwriting {
  font-family: var(--font-handwrite);
  line-height: 1.2;
}

.text-primary-red {
  color: var(--color-primary) !important;
}

.bg-primary-red {
  background-color: var(--color-primary) !important;
}

.bg-primary-soft {
  background-color: var(--color-primary-soft) !important;
}

/* ==========================================================================
   Header & Navbar (Sleek, Compact, Centered)
   ========================================================================== */
.main-header {
  height: 72px;
  display: flex;
  align-items: center;
}

.badge-no-urut {
  width: 38px;
  height: 38px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(183, 28, 28, 0.35);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.94rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

.navbar-nav .nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 700;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Sapa Warga Pill on Navbar */
.nav-badge-sapa {
  border: 1.5px solid #ef5350 !important;
  color: var(--color-primary) !important;
  border-radius: 30px !important;
  padding: 0.35rem 0.95rem !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap !important;
}

.nav-badge-sapa:hover, .nav-badge-sapa.active {
  background-color: var(--color-primary-soft);
  color: var(--color-primary) !important;
}

.nav-badge-sapa.active::after {
  display: none !important;
}

/* Tombol Sampaikan Aspirasi (Compact & Modern) */
.btn-aspirasi-header {
  background-color: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 30px;
  padding: 0.5rem 1.4rem;
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
  border: none;
}

.btn-aspirasi-header:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(183, 28, 28, 0.35);
}

.btn-search-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.btn-search-icon:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

/* ==========================================================================
   Hero Section — Contained Flayer Card (Match UI/1.png)
   Tidak Panjang Sampai Pinggir & Tanpa Garis Vertikal
   ========================================================================== */

.hero-card-wrapper {
  position: relative;
  width: 100%;
  padding: 0.5rem 0 0;
}

/* Hero Section as a Bounded Card (Tidak Panjang Sampai Pinggir) */
.hero-section.hero-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

/* Layer 0: Seamless Background Image (Zero Vertical Lines) */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Flayer Inner: Content above background — foto absolute di tengah */
.hero-flayer-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-height: 420px;
  flex: 1;
}

/* [1] Text Block (Left Side) — 44% lebar, foto overlap di kanannya */
.hero-text-block {
  flex: 0 0 auto;
  width: 44%;
  max-width: 480px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tagline-badge {
  background-color: #fee2e2;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(183, 28, 28, 0.08);
}

.hero-name {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #0f172a;
  line-height: 1.05;
  margin: 0.4rem 0 0.45rem;
}

.badge-hero-no {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.3rem 0.95rem;
  border-radius: 7px;
  display: inline-block;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 10px rgba(183, 28, 28, 0.3);
}

.hero-quote-slogan {
  font-family: var(--font-handwrite);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: #1e293b;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}

.pillar-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pillar-icon-asri  { background-color: var(--color-asri); }
.pillar-icon-maju  { background-color: var(--color-maju); }
.pillar-icon-rukun { background-color: var(--color-rukun); }

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta-buttons .btn-danger {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.35);
  transition: all 0.25s ease;
}

.hero-cta-buttons .btn-danger:hover {
  background: #8e0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(183, 28, 28, 0.45);
}

.hero-cta-buttons .btn-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.hero-cta-buttons .btn-light:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

/* Candidate Wrapper — ABSOLUTE di area kotak hijau (tengah-kanan hero) */
.hero-candidate-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40%;           /* mulai dari 40% — tepat di area landscape hijau */
  right: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 4;
  pointer-events: none;  /* agar teks kiri tetap bisa diklik */
  overflow: hidden;
}

/* Aktifkan kembali pointer-events pada elemen interaktif di dalam wrapper */
.hero-candidate-wrapper a,
.hero-candidate-wrapper button {
  pointer-events: auto;
}

.hero-candidate-img {
  height: 98%;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
  transition: transform 0.3s ease;
  z-index: 2;
  align-self: center;
}

.hero-candidate-wrapper:hover .hero-candidate-img {
  transform: scale(1.02);
}

/* Sapa Warga pill tetap pointer-events auto */
.hero-sapa-floating-pill {
  pointer-events: auto;
}

.hero-quote-box {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 200px;
  text-align: right;
  z-index: 5;
  pointer-events: none;
}

.hero-quote-mark {
  font-family: var(--font-handwrite);
  font-size: 4rem;
  color: rgba(30, 41, 59, 0.45);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.2rem;
}

.hero-quote-text {
  font-family: var(--font-handwrite);
  font-size: 1.45rem;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 4px rgba(255,255,255,0.9);
}

.hero-quote-author {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

/* [4] Sapa Warga Floating Capsule Pill */
.hero-sapa-floating-pill {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 10;
  background: linear-gradient(90deg, #b71c1c 0%, #c62828 60%, #e53935 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 10px 24px rgba(183, 28, 28, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 420px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-sapa-floating-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(183, 28, 28, 0.55);
  background: linear-gradient(90deg, #8e0000 0%, #b71c1c 60%, #c62828 100%);
}

.hero-sapa-pill-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-sapa-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.hero-sapa-pill-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
}

.hero-sapa-pill-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.hero-sapa-pill-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #b71c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.hero-sapa-floating-pill:hover .hero-sapa-pill-arrow {
  transform: translateX(4px);
}

/* ============================================================
   Hero Card — Responsive Breakpoints
   ============================================================ */

/* --- SM (576px - 767.98px) --- */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section.hero-card {
    min-height: auto;
  }
  .hero-flayer-inner {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 14rem;  /* padding bawah untuk ruang foto absolute */
    gap: 1rem;
    min-height: 380px;
  }
  .hero-text-block {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  /* Kembali ke absolute tapi lebih compact di SM */
  .hero-candidate-wrapper {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 260px;
    height: 200px;
    overflow: visible;
    justify-content: flex-end;
    align-items: center;
  }
  .hero-candidate-img {
    height: 200px;
    max-height: 200px;
    width: auto;
    align-self: flex-end;
  }
  .hero-sapa-floating-pill {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem auto 0;
    pointer-events: auto;
  }
  .hero-tagline-badge { margin: 0 auto; }
  .hero-pillars { justify-content: center; }
  .hero-cta-buttons { justify-content: center; }
}

/* --- MD (768px - 991.98px) --- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section.hero-card {
    min-height: 380px;
  }
  .hero-flayer-inner {
    padding: 2rem 1.5rem;
    min-height: 380px;
    align-items: stretch;
  }
  .hero-text-block {
    width: 46%;
    max-width: 46%;
  }
  /* Absolute positioning tetap, hanya ukuran disesuaikan */
  .hero-candidate-wrapper {
    left: 42%;
  }
  .hero-candidate-img {
    height: 95%;
    max-height: 100%;
  }
  .hero-sapa-floating-pill {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: 300px;
  }
}

/* --- LG (992px+) --- */
@media (min-width: 992px) {
  .hero-section.hero-card {
    min-height: 440px;
  }
  .hero-flayer-inner {
    padding: 2.5rem 2rem;
    min-height: 440px;
    align-items: stretch;
  }
  .hero-text-block {
    width: 43%;
    max-width: 43%;
  }
  .hero-candidate-wrapper {
    left: 39%;
  }
  .hero-candidate-img {
    height: 95%;
    max-height: 100%;
  }
  .hero-sapa-floating-pill {
    right: 1.5rem;
    bottom: 1.25rem;
  }
}

/* --- XL (1200px+) --- */
@media (min-width: 1200px) {
  .hero-section.hero-card {
    min-height: 480px;
  }
  .hero-flayer-inner {
    padding: 3rem 2.5rem 3rem 3.5rem;
    min-height: 480px;
    align-items: stretch;
  }
  .hero-text-block {
    width: 42%;
    max-width: 42%;
  }
  .hero-candidate-wrapper {
    left: 38%;
  }
  .hero-candidate-img {
    height: 96%;
    max-height: 100%;
  }
  .hero-sapa-floating-pill {
    right: 2rem;
    bottom: 1.5rem;
  }
}

/* --- Mobile (< 576px) — foto kembali ke flow normal stacked */
@media (max-width: 575.98px) {
  .hero-card-wrapper {
    padding: 0.5rem 0 0;
  }
  .hero-section.hero-card {
    min-height: auto;
    border-radius: 16px;
    background-color: #ffffff;
  }
  .hero-bg-layer {
    opacity: 0.15;
    background-position: center center;
    background-size: cover;
  }
  .hero-flayer-inner {
    padding: 1.5rem 1rem 0;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
  }
  .hero-text-block {
    width: 100%;
    max-width: 100%;
    text-align: center;
    order: 1;
  }
  .hero-tagline-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-name {
    font-size: 1.9rem;
  }
  .hero-quote-slogan {
    font-size: 1.35rem;
  }
  .hero-pillars {
    justify-content: center;
  }
  .hero-cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero-cta-buttons .btn {
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
  }
  /* Mobile: foto kembali static (bukan absolute) agar stack normal */
  .hero-candidate-wrapper {
    position: static;
    width: 100%;
    max-width: 280px;
    height: auto;
    min-height: auto;
    margin: 0.5rem auto 0;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    order: 2;
    transform: none;
    pointer-events: auto;
  }
  .hero-candidate-img {
    height: auto;
    max-height: 240px;
    width: auto;
    margin: 0 auto;
    align-self: center;
    display: block;
  }
  .hero-quote-box {
    display: none !important;
  }
  .hero-sapa-floating-pill {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 0;
    border-radius: 0 0 16px 16px;
    padding: 0.65rem 1rem;
    order: 3;
    pointer-events: auto;
  }
  .hero-sapa-pill-title {
    font-size: 0.9rem;
  }
  .hero-sapa-pill-sub {
    font-size: 0.73rem;
  }
}

/* ==========================================================================
   Quick Navigation Cards Bar (Match UI/1.png)
   ========================================================================== */
.quick-nav-wrapper {
  margin-top: 0;
  padding-top: 0.75rem;   /* dikurangi dari 2.5rem agar rapat ke hero */
  position: relative;
  z-index: 10;
  margin-bottom: 0.5rem;  /* dikurangi dari 2.5rem agar rapat dengan section bawah */
}

.quick-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--color-primary);
  border-color: #fecdd3;
}

.quick-card.active-card {
  border: 1.5px solid #ef5350;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
}

.quick-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #c62828;
}

.quick-card-label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ==========================================================================
   Section: Tampirkulon yang Kita Kenal & 3 Pillars
   ========================================================================== */
.card-pillar-feature {
  border-radius: var(--radius-card);
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.25s ease;
}

.card-pillar-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.circle-pillar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.1rem;
}

.card-tubing-featured {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  min-height: 200px;
}

.card-tubing-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-tubing-featured:hover img {
  transform: scale(1.04);
}

.card-tubing-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.88) 100%);
  padding: 1.25rem 1.4rem;
  color: #fff;
}

/* ==========================================================================
   7 Program Unggulan
   ========================================================================== */
.program-card {
  border-radius: var(--radius-card);
  border: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.25s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.program-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.program-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.program-card-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
}



/* ==========================================================================
   Sapa Warga Sub-Page (Exact UI/1.png match)
   ========================================================================== */
.sapa-banner-rich {
  background: linear-gradient(135deg, #246d32 0%, #175424 100%);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 10px 30px rgba(23, 84, 36, 0.2);
}

.sapa-quote-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .sapa-banner-rich {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .sapa-banner-rich {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
}

@media (max-width: 575.98px) {
  .sapa-banner-rich {
    padding: 1.25rem 1rem;
  }
  .sapa-banner-rich h1 {
    font-size: 1.85rem !important;
  }
  .sapa-banner-rich p.fs-5 {
    font-size: 0.92rem !important;
    line-height: 1.45;
  }
  .sapa-quote-card {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    border-radius: 12px;
  }
  .sapa-quote-card p {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
  }
  .sapa-quote-card img {
    width: 95px !important;
    height: 72px !important;
  }
}

/* Red-Underlined Modern Tabs (as in UI/1.png) */
.sapa-nav-tabs-clean {
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.sapa-nav-tabs-clean .tab-link-clean {
  background: transparent;
  border: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.2rem 0.8rem;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.sapa-nav-tabs-clean .tab-link-clean:hover {
  color: var(--color-primary);
}

.sapa-nav-tabs-clean .tab-link-clean.active {
  color: var(--color-primary);
  font-weight: 700;
}

.sapa-nav-tabs-clean .tab-link-clean.active::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Sapa Warga Form Styling */
.form-card-aspirasi {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

/* 2 Columns of Clean Radio Buttons */
.radio-clean-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.radio-clean-item input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Statistik Box */
.stat-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* Status Badges */
.badge-status {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-proses {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-status-selesai {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-status-rencana {
  background-color: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Feed Aspirasi */
.card-aspirasi-item {
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.card-aspirasi-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

/* ==========================================================================
   Mobile Bottom Nav & PWA Banner Toast
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  z-index: 1030;
  padding: 0 0.5rem;
}

.mobile-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
  gap: 2px;
  transition: all 0.2s ease;
}

.mobile-bottom-item i {
  font-size: 1.25rem;
}

.mobile-bottom-item.active {
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-bottom-item.btn-sapa-center {
  position: relative;
  top: -10px;
}

.mobile-bottom-item.btn-sapa-center .circle-sapa-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
}

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

/* PWA Toast Notification (Polished & Non-obstructive) */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100% - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #fee2e2;
  padding: 0.9rem 1.1rem;
  z-index: 1040;
  display: none;
}

@media (max-width: 767px) {
  .pwa-install-banner {
    bottom: 74px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.btn-whatsapp-float {
  background-color: #25d366;
  color: #fff !important;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.55rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp-float:hover {
  background-color: #1ebc57;
  transform: translateY(-2px);
}

/* ============================================================
   HALAMAN PROGRAM KERJA - PROG-* STYLES (MATCH UI MOCKUP)
   ============================================================ */

/* Badge Nomor Section - diganti dengan accent bar (garis hijau vertikal) */
.prog-section-num-badge {
  width: 34px;
  height: 34px;
  background-color: #1b5e20 !important;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

/* Accent Bar: garis hijau vertikal sebagai pengganti badge angka section */
.prog-section-accent-bar {
  width: 4px;
  min-height: 42px;
  background: linear-gradient(180deg, #2e7d32 0%, #66bb6a 100%);
  border-radius: 4px;
  align-self: stretch;
}

/* ------ SECTION 1: HERO BANNER (BOUNDED CARD SEPERTI BERANDA) ------ */
.prog-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d320d 0%, #1b5e20 50%, #2e7d32 100%);
  background-image: url('../images/banner/hero_bg_pure_landscape.jpg');
  background-size: cover;
  background-position: center 40%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.prog-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 50, 13, 0.84) 0%, rgba(27, 94, 32, 0.72) 55%, rgba(15, 61, 18, 0.84) 100%);
  z-index: 1;
}

.prog-hero-inner {
  position: relative;
  z-index: 2;
  padding: 2.25rem 2rem;
}

.prog-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  margin-bottom: 1rem;
}

.prog-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.prog-hero-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.prog-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Slogan Box & Watermark Tidak Bertumpuk (Fixed) */
.prog-hero-slogan-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 360px;
}

.prog-hero-watermark {
  position: static !important;
  font-family: 'Caveat', cursive, var(--font-handwriting);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
  display: block;
}

.prog-hero-slogan-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0;
  line-height: 1.3;
}

/* ------ SECTION 2: STATISTIK SINGKAT (STATS BAR ULTRA COMPACT & LEBIH KECIL) ------ */
.prog-stats-section {
  background: transparent;
  position: relative;
  z-index: 10;
  margin-top: -24px;
  padding: 0;
  margin-bottom: 0;
}

.prog-stats-bar-compact {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  padding: 0.75rem 1.5rem;
  border: 1px solid #edf2f7;
  max-width: 900px;
  margin: 0 auto;
}

.prog-stat-compact-item {
  padding: 0.4rem 0.75rem;
}

.prog-stat-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background-color: #e8f5e9;
  color: #2e7d32;
  flex-shrink: 0;
}

.prog-stat-mini-val {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a2e;
}

.prog-stat-mini-txt {
  font-size: 0.78rem;
  color: #495057;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid #eef2f6 !important;
  }
}

/* Rapatkan Jarak Section 2 dan Section 3 (Hilangkan Gap Kotak Kuning) */
.prog-section-spacing-top {
  padding-top: 1.85rem !important;
}

/* ------ SECTION 3: 7 PROGRAM PRIORITAS CARDS ------ */
.prog-card {
  border: 1.5px solid;
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.prog-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.prog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.prog-card-desc {
  font-size: 0.835rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.prog-card-detail-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.prog-card-detail-btn:hover {
  background: #f8f9fa;
  color: #000;
}

/* Quote Card Sesuai Mockup */
.prog-quote-card {
  background: #eef9ee !important;
  border-color: #c8e6c9 !important;
  display: flex;
  flex-direction: column;
}

.prog-quote-icon {
  font-size: 2.2rem;
  line-height: 1;
  color: #2e7d32;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.prog-quote-text {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #1b5e20;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.prog-sig-name {
  font-family: 'Caveat', cursive;
  font-size: 1.65rem;
  color: #1b5e20;
  font-weight: 700;
  line-height: 1.1;
}

.prog-sig-role {
  font-size: 0.78rem;
  color: #2e7d32;
  font-weight: 600;
}

.prog-sig-num {
  font-size: 0.74rem;
  color: #4caf50;
  font-weight: 700;
}

/* ------ SECTION 4: HIGHLIGHT POTENSI DESA ------ */
.prog-potensi-unified-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
}

/* Banner kiri: aspect-ratio 16:9, foto tidak terpotong */
.prog-potensi-banner-wrap {
  width: 100%;
}

.prog-potensi-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.prog-potensi-hero-overlay {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 2;
}

/* Photo card kanan: aspect-ratio 4:3, foto tampil penuh */
.prog-potensi-photo-card {
  background: #f8f9fa;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-potensi-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.prog-potensi-photo-ratio {
  position: relative;
  width: 100%;
  padding-top: 75%; /* aspect-ratio 4:3 */
  overflow: hidden;
}

.prog-potensi-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* contain = tidak terpotong, foto tampil penuh */
  object-position: center;
  background: #eef2f7;
}

/* Label bawah foto dengan ikon warna */
.prog-potensi-photo-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
  border-top: 1px solid #f0f0f0;
}

.prog-potensi-photo-label i {
  font-size: 0.68rem;
  flex-shrink: 0;
}

/* Backward-compat: class lama tidak dipakai lagi tapi jaga kalau masih ada */
.prog-potensi-hero-banner { height: auto; }
.prog-potensi-mini-img    { height: auto; }


.prog-stepper-card {
  background: #ffffff;
  border: 1.5px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prog-stepper-card:hover {
  border-color: #2e7d32;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.prog-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.prog-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
}

.prog-step-list li {
  font-size: 0.835rem;
  color: #495057;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-step-list li i {
  font-size: 0.55rem;
}

/* ------ SECTION 6: TRANSPARANSI & PROGRES ------ */
.prog-stat-box {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.prog-stat-box:hover {
  transform: translateY(-3px);
}

.prog-stat-box-icon {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.prog-stat-box-num {
  font-size: 1.65rem;
  line-height: 1;
}

/* ------ SECTION 7: BERITA TERKAIT PROGRAM ------ */
.prog-news-card {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.prog-news-img-wrap {
  height: 155px;
  overflow: hidden;
  background: #f8f9fa;
}

.prog-news-body {
  padding: 1rem 1.15rem 1.25rem;
}

.prog-news-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.prog-news-desc {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ------ SECTION 8: BANNER CTA SAPA WARGA (COMPACT SEPERTI KOTAK BIRU) ------ */
.prog-cta-sapa-card {
  border: 1px solid #c8e6c9;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  padding: 0.65rem 1.25rem;
}

.prog-cta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.prog-cta-subtitle {
  font-size: 0.76rem;
  color: #495057;
  margin-bottom: 0;
  line-height: 1.35;
}

.prog-cta-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Foto dialog warga di tengah CTA - Presisi & Sleek seimbang dengan teks & tombol */
.prog-cta-photo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prog-cta-photo {
  height: 54px;
  width: auto;
  max-width: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(200, 230, 201, 0.8);
}

.prog-cta-btn {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

.prog-cta-secure {
  font-size: 0.65rem;
  color: #6c757d;
  margin-top: 3px;
}

/* ------ RESPONSIVE BREAKPOINTS ------ */
@media (max-width: 991px) {
  .prog-hero-section {
    padding: 60px 0 50px;
    text-align: center;
  }

  .prog-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .prog-hero-cta {
    justify-content: center;
  }

  .prog-stats-section {
    margin-top: -24px;
  }

  /* potensi-hero-banner sudah diganti dengan aspect-ratio, tidak perlu override */
}

@media (max-width: 767px) {
  .prog-hero-watermark {
    font-size: 1.35rem;
  }

  .prog-stat-number {
    font-size: 1.6rem;
  }

  .prog-news-img-wrap {
    height: 140px;
  }

  /* Section 4: label lebih kecil di mobile */
  .prog-potensi-photo-label {
    font-size: 0.62rem;
    padding: 4px 6px;
  }
}

@media (max-width: 575px) {
  .prog-hero-title {
    font-size: 1.65rem;
  }

  .prog-hero-cta .btn {
    width: 100%;
  }

  .prog-stat-card {
    padding: 0.25rem;
  }

  .prog-stat-icon-circle {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .prog-stat-number {
    font-size: 1.4rem;
  }

  .prog-stat-title-top {
    font-size: 0.9rem;
  }

  .prog-stat-label {
    font-size: 0.72rem;
  }

  .prog-potensi-photo-label {
    font-size: 0.58rem;
    padding: 3px 5px;
    gap: 2px;
  }

  .prog-potensi-photo-label i {
    display: none; /* sembunyikan icon di layar sangat kecil */
  }
}

/* ==========================================================================
   HALAMAN POTENSI DESA TAMPIRKULON (SESUAI UI/Potensi MOCKUP)
   ========================================================================== */

/* Section Tag Accent */
.potensi-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2e7d32;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.potensi-accent-bar {
  width: 24px;
  height: 3px;
  background-color: #2e7d32;
  border-radius: 3px;
  display: inline-block;
}

/* SECTION 1: HERO BANNER */
.potensi-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center 40%;
  min-height: 460px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
}

.potensi-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 50, 13, 0.88) 0%, rgba(27, 94, 32, 0.72) 45%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.potensi-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2.5rem;
  width: 100%;
}

.potensi-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2e7d32;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.potensi-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.potensi-hero-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.potensi-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.potensi-btn-primary {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.potensi-btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(183, 28, 28, 0.45);
}

.potensi-btn-outline {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.potensi-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.potensi-hero-floating-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* SECTION 2: ENAM POTENSI UTAMA */
.potensi-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  padding: 1.6rem 1.25rem 1.25rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.potensi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #d1fae5;
}

.potensi-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.potensi-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.potensi-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.potensi-card-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2e7d32;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.potensi-card-btn:hover {
  color: #1b5e20;
  transform: translateX(3px);
}

/* SECTION 3: SPOT UNGGULAN (KOLAM NGUDAL TUK PUTRI) */
.potensi-spot-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 1.25rem;
}

.potensi-spot-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}

.potensi-spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.potensi-video-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 30px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.potensi-video-badge:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #4ade80;
}

.potensi-spot-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.potensi-spot-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.potensi-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.potensi-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #334155;
  font-weight: 500;
}

.potensi-meta-item i {
  color: #2e7d32;
  font-size: 1rem;
}

/* SECTION 4: PETA POTENSI DESA */
.potensi-filter-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.potensi-filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.potensi-filter-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.potensi-filter-item:hover,
.potensi-filter-item.active {
  background-color: #e8f5e9;
  color: #1b5e20;
  font-weight: 700;
}

.potensi-map-wrap {
  position: relative;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#potensiMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.potensi-popular-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.potensi-popular-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.potensi-popular-item:hover {
  background: #f8fafc;
}

.potensi-popular-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.potensi-popular-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1.25;
}

.potensi-popular-sub {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  width: 220px !important;
}

.potensi-map-popup {
  padding: 0.85rem;
}

.potensi-map-popup img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.potensi-map-popup h6 {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: #0f172a;
}

.potensi-map-popup p {
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* SECTION 5: GALERI POTENSI */
.potensi-gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.potensi-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.potensi-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.potensi-gallery-card:hover .potensi-gallery-img {
  transform: scale(1.05);
}

.potensi-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  color: #ffffff;
}

.potensi-gallery-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff;
}

.potensi-gallery-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

/* SECTION 6: BANNER CTA SAPA WARGA */
.potensi-cta-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(200, 230, 201, 0.8);
}

.potensi-cta-overlay {
  background: linear-gradient(135deg, rgba(13, 50, 13, 0.88) 0%, rgba(27, 94, 32, 0.82) 55%, rgba(15, 61, 18, 0.88) 100%);
  padding: 2.25rem 2rem;
}

.potensi-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.potensi-cta-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  max-width: 600px;
  line-height: 1.5;
}

.potensi-cta-btn {
  background: #ffffff;
  color: #1b5e20 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.potensi-cta-btn:hover {
  background: #f1f8e9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE BREAKPOINTS UNTUK HALAMAN POTENSI */
@media (max-width: 991px) {
  .potensi-hero-content {
    padding: 2.5rem 1.5rem;
  }
  .potensi-hero-floating-badge {
    position: static;
    margin-top: 1.5rem;
    display: inline-flex;
  }
  .potensi-spot-img-wrap {
    min-height: 260px;
    margin-bottom: 1.5rem;
  }
  .potensi-map-wrap {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .potensi-hero-card {
    min-height: 400px;
    border-radius: 18px;
  }
  .potensi-hero-title {
    font-size: 1.85rem;
  }
  .potensi-hero-subtitle {
    font-size: 0.88rem;
  }
  .potensi-spot-card {
    padding: 1rem;
  }
  .potensi-spot-title {
    font-size: 1.45rem;
  }
  .potensi-gallery-card {
    height: 140px;
  }
  .potensi-cta-overlay {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }
  .potensi-cta-subtitle {
    margin-bottom: 1.25rem;
  }
}


