/*
 * Design System — Halaman Publik Website Desa
 * Layout baru, tampilan profesional, konsisten di seluruh portal
 */

/* Skala dasar: 93.75% = 15px agar tampilan tidak kebesaran di zoom 100% */
html {
  font-size: 93.75%;
  /* Satu scrollbar vertikal: overflow-x di html; jangan juga di body — overflow-x:hidden
     pada body membuat overflow-y komputasi "auto" sehingga html + body bisa scroll ganda */
  overflow-x: hidden;
  overflow-y: auto;
}

:root {
  /* Sama dengan home / landing: Bricolage Grotesque (Google Fonts di base.html) */
  --pub-font: "Bricolage Grotesque", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pub-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --pub-primary: #0c5440;
  --pub-primary-dark: #083d30;
  --pub-primary-light: #0d6b54;
  --pub-accent: #0d9488;
  --pub-gold: #c9a227;
  --pub-text: #0f172a;
  --pub-text-muted: #475569;
  --pub-bg: #f8fafc;
  --pub-card: #ffffff;
  --pub-border: rgba(15, 23, 42, 0.08);
  --pub-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --pub-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --pub-shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.12);
  --pub-radius: 10px;
  --pub-radius-lg: 16px;
  --pub-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Top bar ----- */
.pub-topbar {
  background: linear-gradient(90deg, var(--pub-primary-dark), var(--pub-primary));
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 0.375rem 0;
}

.pub-topbar a {
  color: inherit;
  transition: color var(--pub-transition);
}

.pub-topbar a:hover {
  color: #fff;
}

/* ----- Header ----- */
.pub-header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--pub-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.pub-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.pub-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity var(--pub-transition);
}

.pub-logo-link:hover {
  opacity: 0.9;
}

.pub-logo-kab {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.pub-logo-desa {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.pub-nav {
  display: none;
}

@media (min-width: 1024px) {
  .pub-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.pub-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pub-text-muted);
  text-decoration: none;
  transition: color var(--pub-transition), background var(--pub-transition);
}

.pub-nav a:hover,
.pub-nav a.pub-nav-active {
  color: var(--pub-primary);
  background: rgba(12, 84, 64, 0.06);
}

.pub-nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-light));
  color: #fff !important;
  border-radius: 10px;
}

.pub-nav-cta:hover {
  background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary)) !important;
  color: #fff !important;
}

.pub-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--pub-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--pub-transition);
}

@media (min-width: 1024px) {
  .pub-mobile-toggle {
    display: none;
  }
}

.pub-mobile-toggle:hover {
  background: var(--pub-bg);
}

.pub-mobile-menu {
  display: block;
  background: var(--pub-card);
  border-top: 1px solid var(--pub-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Penting: saat punya class .hidden, menu benar-benar disembunyikan (override Tailwind di mobile) */
@media (max-width: 1023px) {
  .pub-mobile-menu.hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .pub-mobile-menu {
    display: none !important;
  }
}

.pub-mobile-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pub-mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--pub-text);
  text-decoration: none;
  transition: background var(--pub-transition);
}

.pub-mobile-menu a:hover {
  background: rgba(12, 84, 64, 0.06);
  color: var(--pub-primary);
}

.pub-mobile-menu-cta {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-light)) !important;
  color: #fff !important;
  text-align: center;
}

.pub-mobile-menu-cta:hover {
  background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary)) !important;
  color: #fff !important;
}

/* ----- Main content area ----- */
.pub-main {
  flex: 1;
  min-height: 0;
}

.pub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ----- Global public theme (inherit home look) ----- */
.landing-theme {
  --home-p: #0c5444;
  --home-p2: #0d6652;
  --home-teal: #11a87e;
  --home-ink: #0c1c18;
  --home-muted: #5e8a80;
  --home-fog: #f0faf5;
  --home-bdr: rgba(12, 84, 68, 0.10);
  --home-shadow-sm: 0 1px 4px rgba(12, 84, 68, 0.06), 0 4px 12px rgba(12, 84, 68, 0.06);
  --home-shadow-md: 0 4px 16px rgba(12, 84, 68, 0.08), 0 12px 32px rgba(12, 84, 68, 0.06);
  font-family: var(--pub-font);
}

/* Paksa font landing sama home di seluruh UI publik (timpa Tailwind font-sans / utility lain) */
.landing-theme .landing-nav,
.landing-theme .landing-footer,
.landing-theme .landing-mobile-menu,
.landing-theme .pub-main,
.landing-theme .pub-main button,
.landing-theme .pub-main input,
.landing-theme .pub-main select,
.landing-theme .pub-main textarea,
.landing-theme .pub-main label {
  font-family: var(--pub-font);
}

.landing-theme .pub-main {
  color: var(--home-ink);
}
.landing-theme:not(.home-page) .pub-main {
  padding-top: 88px;
  /* Seperti home (#landing-root): canvas putih bersih, bukan gradient + kartu ganda */
  background: #fff;
}
.landing-theme.home-page .pub-main {
  padding-top: 0;
}
/* Halaman dalam: section = blok penuh seperti .sec di home, BUKAN kartu luar */
.landing-theme:not(.home-page) .pub-main > section {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.landing-theme:not(.home-page) .pub-main > section:first-child {
  margin-top: 0;
}
.landing-theme:not(.home-page) .pub-main > section:last-child {
  margin-bottom: 0;
}
/* Hero halaman dalam: tetap “napas” lebar, tanpa bingkai kartu */
.landing-theme:not(.home-page) .pub-main > section[class*="hero"],
.landing-theme:not(.home-page) .pub-main > section.pub-page-hero,
.landing-theme:not(.home-page) .pub-main > section.berita-page-hero,
.landing-theme:not(.home-page) .pub-main > section.bansos-hero {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] .pub-container,
.landing-theme:not(.home-page) .pub-main > section.pub-page-hero .pub-container {
  padding-top: 8px;
  padding-bottom: 8px;
}
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] [class*="badge"],
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] .inline-block,
.landing-theme:not(.home-page) .pub-main > section.pub-page-hero .pub-page-kicker {
  border-radius: 999px;
  letter-spacing: .08em;
  font-weight: 700;
}
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] h1,
.landing-theme:not(.home-page) .pub-main > section.pub-page-hero .pub-page-title {
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 1.8vw, 2.15rem);
}
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] p,
.landing-theme:not(.home-page) .pub-main > section.pub-page-hero .pub-page-lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.landing-theme:not(.home-page) .pub-main .pub-page-hero h1.pub-page-title {
  color: #fff;
  font-weight: 800;
  font-family: var(--pub-font);
}
.landing-theme:not(.home-page) .pub-main .pub-page-hero .pub-page-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.65;
}
/* Mirip hero-crumb di home: chip halus, bukan kartu besar */
.landing-theme:not(.home-page) nav[aria-label="Breadcrumb"] {
  background: #e6f5ef;
  border: 1px solid rgba(12, 84, 68, 0.14);
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.landing-theme:not(.home-page) nav[aria-label="Breadcrumb"] a {
  color: #2c6a5c;
  font-weight: 500;
}
.landing-theme:not(.home-page) nav[aria-label="Breadcrumb"] a:hover {
  color: #0c5444;
}

.landing-theme .pub-main .card,
.landing-theme .pub-main article,
.landing-theme .pub-main .table-wrapper,
.landing-theme .pub-main .stats-card {
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  box-shadow: none;
  border-radius: 22px;
  background: #fff;
}

.landing-theme .pub-main .card:hover,
.landing-theme .pub-main article:hover {
  box-shadow: 0 8px 28px rgba(12, 84, 68, 0.08);
  border-color: rgba(12, 84, 68, 0.14);
}

.landing-theme .pub-main h1,
.landing-theme .pub-main h2,
.landing-theme .pub-main h3 {
  letter-spacing: -0.02em;
  color: var(--home-ink);
  font-family: var(--pub-font);
  font-weight: 700;
}

.landing-theme .pub-main .btn,
.landing-theme .pub-main .pub-btn-primary {
  background: var(--home-p);
  background-image: none;
  border-color: transparent;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
}

.landing-theme .pub-main .btn:not(.btn-secondary):hover,
.landing-theme .pub-main .pub-btn-primary:hover {
  background: var(--home-p2);
}

.landing-theme .pub-main .pub-btn-secondary {
  border-radius: 12px;
  border: 1.5px solid rgba(12, 84, 68, 0.14);
  background: #e6f5ef;
  color: var(--home-p);
}
.landing-theme .pub-main a.pub-btn-secondary,
.landing-theme .pub-main button.pub-btn-secondary,
.landing-theme .pub-main a.pub-btn-primary,
.landing-theme .pub-main button.pub-btn-primary {
  padding: 10px 14px;
  font-weight: 600;
}
.landing-theme .pub-main input[type="text"],
.landing-theme .pub-main input[type="search"],
.landing-theme .pub-main input[type="email"],
.landing-theme .pub-main input[type="number"],
.landing-theme .pub-main input[type="date"],
.landing-theme .pub-main select,
.landing-theme .pub-main textarea {
  border: 1px solid var(--home-bdr);
  border-radius: 12px;
  background: #fff;
  color: var(--home-ink);
  min-height: 42px;
  box-shadow: 0 1px 2px rgba(12, 84, 68, 0.04);
}
.landing-theme .pub-main input:focus,
.landing-theme .pub-main select:focus,
.landing-theme .pub-main textarea:focus {
  outline: none;
  border-color: rgba(12, 84, 68, 0.32);
  box-shadow: 0 0 0 3px rgba(12, 84, 68, 0.10);
}
.landing-theme .pub-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--home-bdr);
  border-radius: 14px;
  overflow: hidden;
}
.landing-theme .pub-main th,
.landing-theme .pub-main td {
  border-bottom: 1px solid rgba(12, 84, 68, 0.08);
}
.landing-theme .pub-main th {
  background: #f1faf6;
  color: #184e42;
}
.landing-theme .pub-main .berita-list-card,
.landing-theme .pub-main .berita-detail-card,
.landing-theme .pub-main .dokumen-card,
.landing-theme .pub-main .agenda-card,
.landing-theme .pub-main .pengumuman-item {
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  border-radius: 22px;
  box-shadow: none;
  background: #fff;
}
/* .landing-theme .pub-main .flex.flex-wrap.gap-3.mb-6,
.landing-theme .pub-main .mb-6:has(select),
.landing-theme .pub-main .mb-6:has(input[type="text"]) {
  background: #f7fdf9;
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  border-radius: 16px;
  box-shadow: none;
  padding: 12px;
} */

/* berita-list-toolbar diatur oleh berita.css */
.landing-theme .pub-main .berita-list-toolbar {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.landing-theme .pub-main .space-y-3 > .pub-card,
.landing-theme .pub-main .space-y-4 > .pub-card,
.landing-theme .pub-main .grid .pub-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.landing-theme .pub-main .space-y-3 > .pub-card:hover,
.landing-theme .pub-main .space-y-4 > .pub-card:hover,
.landing-theme .pub-main .grid .pub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12, 84, 68, 0.08);
  border-color: rgba(12, 84, 68, 0.14);
}
.landing-theme:not(.home-page) .pub-main .pub-card {
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  border-radius: 22px;
  box-shadow: none;
}
.landing-theme .pub-main .horizontal-scroll-item .pub-card {
  border-radius: 22px;
}
.landing-theme .pub-main .text-center.py-12.px-6.pub-card,
.landing-theme .pub-main .text-center.py-12.pub-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}
.landing-theme .pub-main .pub-section-header {
  margin-bottom: 1.4rem;
}
.landing-theme .pub-main .pub-section-header .pub-section-title {
  font-size: clamp(1.3rem, 1.5vw, 1.9rem);
  color: #0c1c18;
}
.landing-theme .pub-main .pub-section-header .pub-section-subtitle {
  color: #5e8a80;
}
.landing-theme .pub-main .sticky.top-24 {
  top: 86px;
}
.landing-theme .pub-main .berita-pagination a,
.landing-theme .pub-main .pagination a {
  border: 1px solid var(--home-bdr);
  border-radius: 10px;
  background: #fff;
  color: var(--home-p);
  padding: 8px 12px;
  text-decoration: none;
}

/* ----- Halaman publik non-home: selaras penuh dengan home (#landing-root) ----- */
.landing-theme:not(.home-page) .pub-main {
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.landing-theme:not(.home-page) .pub-main > section[class*="bg-slate-50"],
.landing-theme:not(.home-page) .pub-main > section.bg-slate-50 {
  background-color: var(--home-fog) !important;
}

.landing-theme:not(.home-page) .pub-main > section.bg-white {
  background-color: #fff !important;
}

/* Hero halaman dalam: skala judul & nuansa seperti home */
.landing-theme:not(.home-page) .pub-main > section[class*="hero"] h1,
.landing-theme:not(.home-page) .pub-main > section.berita-page-hero h1,
.landing-theme:not(.home-page) .pub-main > section.bansos-hero h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.landing-theme:not(.home-page) .pub-main > section[class*="hero"] p,
.landing-theme:not(.home-page) .pub-main > section.berita-page-hero p,
.landing-theme:not(.home-page) .pub-main > section.bansos-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Judul section ala .sec-title home */
.landing-theme:not(.home-page) .pub-main .pub-section-title {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--home-ink);
}

.landing-theme:not(.home-page) .pub-main .pub-section-title em {
  font-family: var(--pub-font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--home-p);
}

.landing-theme:not(.home-page) .pub-main .pub-section-subtitle {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 42rem;
}

/* Tailwind primary → token home */
.landing-theme:not(.home-page) .pub-main .text-primary {
  color: var(--home-p) !important;
}

/* Link isi teks / artikel — hindari kartu klik penuh (.pub-card, .b-item, dll.) */
.landing-theme:not(.home-page) .pub-main .berita-konten a,
.landing-theme:not(.home-page) .pub-main p a,
.landing-theme:not(.home-page) .pub-main .text-slate-600 a,
.landing-theme:not(.home-page) .pub-main .text-slate-500 a {
  color: var(--home-p);
  font-weight: 500;
  text-underline-offset: 3px;
}

.landing-theme:not(.home-page) .pub-main .berita-konten a:hover,
.landing-theme:not(.home-page) .pub-main p a:hover,
.landing-theme:not(.home-page) .pub-main .text-slate-600 a:hover,
.landing-theme:not(.home-page) .pub-main .text-slate-500 a:hover {
  color: var(--home-p2);
}

/* Tombol = btn-solid / btn-soft home */
.landing-theme:not(.home-page) .pub-main .pub-btn-primary,
.landing-theme:not(.home-page) .pub-main .btn-primary,
.landing-theme:not(.home-page) .pub-main a.pub-btn-primary {
  background: var(--home-p);
  background-image: none;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.15rem;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.landing-theme:not(.home-page) .pub-main .pub-btn-primary:hover,
.landing-theme:not(.home-page) .pub-main .btn-primary:hover,
.landing-theme:not(.home-page) .pub-main a.pub-btn-primary:hover {
  background: var(--home-p2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(12, 84, 68, 0.18);
}

.landing-theme:not(.home-page) .pub-main .pub-btn-secondary,
.landing-theme:not(.home-page) .pub-main .btn-secondary,
.landing-theme:not(.home-page) .pub-main a.pub-btn-secondary {
  background: #e6f5ef;
  color: var(--home-p);
  border: 1.5px solid rgba(12, 84, 68, 0.14);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.landing-theme:not(.home-page) .pub-main .pub-btn-secondary:hover,
.landing-theme:not(.home-page) .pub-main .btn-secondary:hover,
.landing-theme:not(.home-page) .pub-main a.pub-btn-secondary:hover {
  background: #d8f0e6;
  border-color: rgba(12, 84, 68, 0.22);
}

/* Teks slate → palet home (lembut, tanpa ubah utility di template) */
.landing-theme:not(.home-page) .pub-main .text-slate-800 {
  color: var(--home-ink) !important;
}

.landing-theme:not(.home-page) .pub-main .text-slate-700 {
  color: #1a2e28 !important;
}

.landing-theme:not(.home-page) .pub-main .text-slate-600 {
  color: #4b6f66 !important;
}

.landing-theme:not(.home-page) .pub-main .text-slate-500 {
  color: var(--home-muted) !important;
}

.landing-theme:not(.home-page) .pub-main .border-slate-200 {
  border-color: rgba(12, 84, 68, 0.1) !important;
}

.landing-theme:not(.home-page) .pub-main .bg-slate-50,
.landing-theme:not(.home-page) .pub-main .bg-slate-100 {
  background-color: var(--home-fog) !important;
}

.landing-theme:not(.home-page) .pub-main table {
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  border-radius: 16px;
}

/* ----- Footer ----- */
.pub-footer {
  background: linear-gradient(180deg, #0a1210 0%, #06100d 100%);
  color: #e2e8f0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.pub-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pub-primary), var(--pub-accent));
  opacity: 0.9;
}

.pub-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

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

@media (min-width: 1024px) {
  .pub-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.pub-footer-brand .pub-logo-link {
  margin-bottom: 1rem;
}

.pub-footer-brand .pub-logo-kab {
  height: 34px;
  /* Warna asli logo, tanpa filter */
  opacity: 0.95;
}
.pub-footer-brand .pub-logo-desa {
  height: 100px;
  /* Warna asli logo, tanpa filter */
  opacity: 0.95;
}

.pub-footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.pub-footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.7);
}

.pub-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-footer-links li {
  margin-bottom: 0.5rem;
}

.pub-footer-links a {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--pub-transition), padding-left var(--pub-transition);
}

.pub-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.pub-footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 0.75rem;
}

.pub-footer-contact i {
  color: var(--pub-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pub-footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pub-footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--pub-transition);
}

.pub-footer-socials a:hover {
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.pub-footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.55);
}

.pub-footer-bottom a {
  color: rgba(226, 232, 240, 0.7);
  text-decoration: none;
}

.pub-footer-bottom a:hover {
  color: #fff;
}

/* ========== LANDING STYLE NAV + FOOTER (new.html look) ========== */
.pub-body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

/* Cegah geser horizontal: kliping di html (atas). Jangan overflow-x:hidden di body — scrollbar ganda. */
body.landing-theme {
  max-width: 100%;
}
.landing-theme .pub-main {
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}
@supports not (overflow-x: clip) {
  .landing-theme .pub-main {
    overflow-x: visible;
  }
}

/* Layout nav sama di semua state; radius hanya saat .scrolled */
.landing-nav {
  position: fixed;
  z-index: 600;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Tanpa transisi: langsung kotak ↔ rounded, tidak goyang saat scroll */
  transition: none;
}

/* Puncak halaman: bar penuh lebar, sudut 0 (tanpa rounded sama sekali pada bar) */
body.landing-theme nav#nav.landing-nav:not(.scrolled),
.landing-nav:not(.scrolled) {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0 clamp(16px, 4vw, 64px);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid rgba(12, 84, 68, 0.08);
  border-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}

.landing-nav.scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1320px;
  padding: 0 20px 0 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(12, 84, 68, 0.1);
  border-bottom: 1px solid rgba(12, 84, 68, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(12, 84, 68, 0.08), 0 12px 32px rgba(12, 84, 68, 0.06);
}
.landing-nav .nav-left { display: flex; align-items: center; gap: 10px; }
.landing-nav .nav-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: #0c5444; color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
}
.landing-nav .nav-logo-img { width: 50px; height: 22px; object-fit: contain; display: block; }
.landing-nav .nav-icon:has(.nav-logo-img) {
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
}

/* Logo navbar (dipisah supaya bisa Anda tune sendiri) */
.landing-nav .nav-logo-desa {
  height: 100px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
  display: block;
}
.landing-nav .nav-logo-kabupaten {
  height: 35px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
  display: block;
}
.landing-nav .nav-brand { font-size: 14px; font-weight: 700; color: #0c1c18; line-height: 1.1; }
.landing-nav .nav-brand span { display: block; font-size: 10px; font-weight: 400; color: #5e8a80; letter-spacing: .2px; }
.landing-nav .nav-links { display: flex; list-style: none; gap: 2px; }
.landing-nav .nav-links a {
  font-size: 13px; font-weight: 500; color: #5e8a80; text-decoration: none;
  padding: 6px 12px; border-radius: 8px; transition: all .2s;
}
.landing-nav .nav-links a:hover,
.landing-nav .nav-links a.active { background: #e6f5ef; color: #0c5444; }
.landing-nav .nav-pill {
  background: #0c5444; color: #fff; text-decoration: none;
  padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: all .25s;
}
.landing-nav .nav-pill:hover { background: #0d6652; transform: translateY(-1px); }
.landing-nav .nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(12, 84, 68, 0.16);
  background: #fff;
  color: #0c5444;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.landing-nav .nav-mobile-toggle:hover { background: #e6f5ef; }
.landing-mobile-menu {
  position: fixed;
  top: 78px;
  left: 24px;
  right: 24px;
  z-index: 590;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(12, 84, 68, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(12, 84, 68, 0.10);
  backdrop-filter: blur(16px);
  padding: 10px;
}
.landing-mobile-menu.hidden { display: none; }
.landing-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0c1c18;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.landing-mobile-menu a:hover {
  background: #edf9f3;
  color: #0c5444;
}

.landing-footer {
  background: #0c1c18;
  padding: 72px 64px 36px;
  margin-top: auto;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.landing-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.landing-footer .foot-grid > div {
  min-width: 0;
}
.landing-footer .foot-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.landing-footer .foot-brand-logo-only { text-decoration: none; color: inherit; display: inline-flex; }
.landing-footer .foot-brand-meta { display: flex; flex-direction: column; gap: 6px; max-width: 22rem; }
.landing-footer .foot-gov-line { margin: 0; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.35; }
.landing-footer .foot-address { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.68); line-height: 1.7; }
.landing-footer .foot-kode-wilayah { margin: 4px 0 0; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.52); }
.landing-footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.landing-footer .foot-brand-ico {
  width: 32px; height: 32px; border-radius: 8px; background: #0c5444; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 700;
}
.landing-footer .foot-logo-desa {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}
.landing-footer .foot-logo-kabupaten {
  width: 52px;
  height: auto;
  object-fit: contain;
  display: block;
}
.landing-footer .foot-brand-ico:has(.foot-logo-img) {
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
}
.landing-footer .foot-brand-txt { font-size: 14px; font-weight: 700; color: #fff; }
.landing-footer .foot-brand-txt span { display: block; font-size: 10px; font-weight: 400; color: rgba(255,255,255,.52); }
.landing-footer .foot-desc { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.58); line-height: 1.75; }
.landing-footer .foot-h { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.48); margin-bottom: 18px; }
.landing-footer .foot-ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.landing-footer .foot-ul a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s, border-color .2s;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.landing-footer .foot-ul a:hover { color: #7ee8c9; }
/* Kontak penting: garis bawah di bawah nama instansi (tetap tel:) */
.landing-footer .foot-ul a.foot-wa-link,
.landing-footer .foot-ul a[href^="https://wa.me/"] {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.42);
  padding-bottom: 3px;
  display: inline-block;
  max-width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(19, 196, 148, 0.25);
}
.landing-footer .foot-wa-link .foot-kontak-name { display: block; font-weight: 500; }
.landing-footer .foot-wa-link .foot-kontak-num {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.landing-footer .foot-ul .foot-kontak-plain {
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.landing-footer .foot-ul a.foot-wa-link:hover,
.landing-footer .foot-ul a[href^="https://wa.me/"]:hover {
  border-bottom-color: #25d366;
  color: #7ee8c9;
}
.landing-footer .foot-ul li.foot-kontak-empty {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}

.landing-footer .foot-sosmed-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.landing-footer .foot-sosmed-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: transform .15s, background .15s, color .15s;
}

.landing-footer .foot-sosmed-icon:hover {
  transform: translateY(-1px);
  background: rgba(19, 196, 148, 0.12);
  color: #7ee8c9;
}
.landing-footer .foot-bar {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.landing-footer .foot-bar a { color: rgba(255,255,255,.55); text-decoration: none; }
.landing-footer .foot-bar a:hover { color: #13c494; }

@media (max-width: 1100px) {
  .landing-nav.scrolled { width: calc(100% - 32px); }
  .landing-footer { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 900px) {
  .landing-nav .nav-links { display: none; }
  .landing-nav .nav-pill { display: none; }
  .landing-nav .nav-mobile-toggle { display: inline-flex; }
  .landing-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .landing-theme:not(.home-page) .pub-main {
    padding-top: 82px;
  }
}
@media (max-width: 640px) {
  .landing-footer {
    padding: 48px 24px 32px; 
  }
  .landing-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .landing-footer .foot-grid > div:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 28px;
  }
  .landing-footer .foot-h {
    margin-bottom: 14px;
  }
  .landing-footer .foot-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-top: 24px;
  }
}

/* ========== BASE LAYOUT REDESIGN (Header, Topbar, Footer keren) ========== */
.base-topbar {
  display: none;
  position: relative;
  background: linear-gradient(95deg, #062a22 0%, #083d30 45%, #0c5440 100%);
  color: #fff;
  min-height: 40px;
  align-items: stretch;
}
@media (min-width: 640px) {
  .base-topbar { display: flex; }
}
.base-topbar-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0c5440 0%, #0d9488 50%, #14b8a6 100%);
  opacity: 1;
}
.base-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding-top: 3px; /* clear accent */
  gap: 1rem;
}
.base-topbar-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  flex-shrink: 0;
}
.base-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.base-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.base-topbar-phone i {
  font-size: 0.7rem;
  opacity: 0.95;
}
.base-topbar-phone:hover {
  color: #fff;
}
.base-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.base-topbar-cta:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.base-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.base-header-scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}
.base-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.base-logo:hover { opacity: 0.92; }
.base-nav { display: none; }
@media (min-width: 1024px) {
  .base-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
}
.base-nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.base-nav-link:hover {
  color: #0c5440;
  background: rgba(12,84,64,0.06);
}
.base-nav-link.base-nav-active {
  color: #0c5440;
  background: rgba(12,84,64,0.08);
  padding-bottom: 0.6rem;
}
.base-nav-link.base-nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: linear-gradient(90deg, #0c5440, #0d6b54);
  border-radius: 1px;
}
.base-nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  background: linear-gradient(135deg, #0c5440, #0d6b54);
  color: #fff !important;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(12,84,64,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.base-nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(12,84,64,0.4);
}

.base-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease;
}
@media (min-width: 1024px) { .base-mobile-toggle { display: none; } }
.base-mobile-toggle:hover { background: rgba(12,84,64,0.06); }
.base-hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.base-mobile-toggle-open .base-hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.base-mobile-toggle-open .base-hamburger:nth-child(2) { opacity: 0; }
.base-mobile-toggle-open .base-hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.base-mobile-menu {
  display: block;
  background: #fff;
  border-top: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
@media (max-width: 1023px) {
  .base-mobile-menu.hidden { display: none !important; }
  .base-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .base-header-inner { height: 64px; }
}
@media (min-width: 1024px) {
  .base-mobile-menu { display: none !important; }
}
.base-mobile-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.base-mobile-menu-inner a {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.base-mobile-menu-inner a:hover {
  background: rgba(12,84,64,0.08);
  color: #0c5440;
}
.base-mobile-cta {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #0c5440, #0d6b54) !important;
  color: #fff !important;
  text-align: center;
}
.base-mobile-cta:hover { color: #fff !important; background: linear-gradient(135deg, #083d30, #0c5440) !important; }

.base-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, #051a15 0%, #062a22 50%, #083d30 100%);
  color: #e2e8f0;
  overflow: hidden;
}
.base-footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c5440, #0d9488, #14b8a6);
  opacity: 0.95;
}
.base-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}
.base-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .base-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .base-footer-grid { grid-template-columns: 1.25fr 1fr 1fr 1.2fr; gap: 3rem; }
}
.base-footer-brand .pub-logo-link { margin-bottom: 0.75rem; }
.base-footer-brand .pub-logo-kab,
.base-footer-brand .pub-logo-desa { height: 34px; opacity: 0.95; }
.base-footer-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}
.base-footer-address {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(226,232,240,0.75);
}
.base-footer-code {
  font-size: 0.75rem;
  color: rgba(226,232,240,0.5);
  margin-top: 0.5rem;
}
.base-footer-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f1f5f9;
  margin-bottom: 1rem;
}
.base-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.base-footer-links li { margin-bottom: 0.4rem; }
.base-footer-links a {
  color: rgba(226,232,240,0.78);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.base-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.base-footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(226,232,240,0.8);
  margin-bottom: 0.75rem;
}
.base-footer-contact i {
  color: #0d9488;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.base-footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.base-footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(226,232,240,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.base-footer-socials a:hover {
  background: linear-gradient(135deg, #0c5440, #0d9488);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.base-footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(226,232,240,0.5);
}
.base-footer-bottom a {
  color: rgba(226,232,240,0.7);
  text-decoration: none;
}
.base-footer-bottom a:hover { color: #fff; }

.base-back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0c5440, #0d6b54);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12,84,64,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.base-back-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.base-back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12,84,64,0.45);
}

/* ----- Messages (Django) ----- */
.pub-messages {
  background: var(--pub-bg);
  border-bottom: 1px solid var(--pub-border);
}

.pub-messages-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.pub-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--pub-radius);
  font-size: 0.9375rem;
  font-weight: 500;
}

.pub-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pub-message-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ----- Hero background slider (home) ----- */
.pub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pub-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.pub-hero-slide.pub-hero-active {
  opacity: 1;
}

.pub-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pub-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(8, 61, 48, 0.75) 0%,
    rgba(12, 84, 64, 0.5) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* ----- Section titles ----- */
.pub-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pub-text);
  margin-bottom: 0.375rem;
}

.pub-section-subtitle {
  font-size: 0.9375rem;
  color: var(--pub-text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.pub-section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ----- Cards ----- */
.pub-card {
  background: var(--pub-card);
  border-radius: var(--pub-radius-lg);
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-shadow);
  transition: box-shadow var(--pub-transition), border-color var(--pub-transition), transform var(--pub-transition);
}

.pub-card:hover {
  box-shadow: var(--pub-shadow-md);
  border-color: rgba(12, 84, 64, 0.12);
}

.pub-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-light));
  border: none;
  border-radius: var(--pub-radius);
  box-shadow: 0 4px 14px rgba(12, 84, 64, 0.35);
  text-decoration: none;
  transition: all var(--pub-transition);
  cursor: pointer;
}

.pub-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 84, 64, 0.4);
  background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary));
}

.pub-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pub-text);
  background: #fff;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  text-decoration: none;
  transition: all var(--pub-transition);
  cursor: pointer;
}

.pub-btn-secondary:hover {
  border-color: var(--pub-primary);
  color: var(--pub-primary);
  transform: translateY(-1px);
}

/* ----- Horizontal scroll (perangkat, mitra) ----- */
.pub-hscroll {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pub-radius);
}

.pub-hscroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.pub-hscroll-track::-webkit-scrollbar {
  display: none;
}

.pub-hscroll-track {
  scrollbar-width: none;
}

.pub-hscroll-track:active {
  cursor: grabbing;
}

.pub-hscroll-item {
  flex-shrink: 0;
  transition: transform var(--pub-transition);
}

.pub-hscroll-item:hover {
  transform: translateY(-4px);
}

.pub-hscroll-nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.pub-hscroll-nav button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(12, 84, 64, 0.08);
  color: var(--pub-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--pub-transition);
}

.pub-hscroll-nav button:hover {
  background: rgba(12, 84, 64, 0.15);
  transform: translateY(-1px);
}

/* ----- Potensi carousel ----- */
.pub-potensi-wrap {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.pub-potensi-track-wrap {
  flex: 1;
  overflow: hidden;
  padding: 0 1rem;
}

.pub-potensi-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 12%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pub-potensi-track::-webkit-scrollbar {
  display: none;
}

.pub-potensi-item {
  flex: 0 0 58%;
  scroll-snap-align: center;
  transition: flex 0.35s ease;
}

.pub-potensi-item.pub-potensi-center {
  flex: 0 0 68%;
  z-index: 1;
}

@media (min-width: 768px) {
  .pub-potensi-item { flex: 0 0 50%; }
  .pub-potensi-item.pub-potensi-center { flex: 0 0 62%; }
}

@media (min-width: 1024px) {
  .pub-potensi-item { flex: 0 0 45%; }
  .pub-potensi-item.pub-potensi-center { flex: 0 0 56%; }
}

.pub-potensi-card {
  display: block;
  border-radius: var(--pub-radius-lg);
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: var(--pub-shadow-md);
  border: 1px solid var(--pub-border);
  transition: box-shadow var(--pub-transition);
}

.pub-potensi-card:hover {
  box-shadow: var(--pub-shadow-lg);
}

.pub-potensi-card img {
  transition: transform 0.4s ease;
}

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

.pub-potensi-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.875rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}

.pub-potensi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--pub-primary);
  box-shadow: var(--pub-shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--pub-transition);
}

.pub-potensi-nav:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: var(--pub-shadow-lg);
}

.pub-potensi-prev { left: 0.5rem; }
.pub-potensi-next { right: 0.5rem; }

/* ----- Public Pages: unify with home/base concept ----- */
.landing-theme .section-header h2,
.landing-theme .cek-status-section .section-header h2,
.landing-theme .infra-header h1 {
  letter-spacing: -0.02em;
  color: var(--home-ink);
  font-family: var(--pub-font);
  font-weight: 700;
}

.landing-theme .section-header p,
.landing-theme .cek-status-section .section-header p,
.landing-theme .infra-header p {
  color: var(--home-muted);
}

.landing-theme .video-card,
.landing-theme .cek-status-card,
.landing-theme .bansos-form-card,
.landing-theme .infra-card,
.landing-theme .infra-kpi-bar,
.landing-theme .infra-source-bar,
.landing-theme .infra-table-wrap {
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.landing-theme .video-card:hover,
.landing-theme .infra-card:hover {
  box-shadow: 0 8px 28px rgba(12, 84, 68, 0.08);
  border-color: rgba(12, 84, 68, 0.14);
}

.landing-theme .video-card h3,
.landing-theme .infra-block-title,
.landing-theme .bansos-result-head,
.landing-theme .cek-status-card h3 {
  color: var(--home-ink);
}

.landing-theme .video-card p,
.landing-theme .infra-block-desc,
.landing-theme .bansos-result-table th,
.landing-theme .bansos-result-table td {
  color: #4b6f66;
}

.landing-theme .pagination .btn-secondary,
.landing-theme .btn-secondary,
.landing-theme .btn-primary {
  border-radius: 12px;
}

/* ----- Body base ----- */
body.pub-body {
  font-family: var(--pub-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--pub-text);
  background: var(--pub-bg);
}

body.pub-body.landing-theme:not(.home-page) {
  background: #fff;
  color: var(--home-ink);
}

::selection {
  background: rgba(12, 84, 64, 0.2);
  color: var(--pub-text);
}

/* ============================================
   MOBILE — Perbaikan tampilan semua halaman publik
   ============================================ */

@media (max-width: 1023px) {
  html {
    font-size: 100%;
  }

  /* overflow-x: jangan di body — scrollbar ganda; html sudah overflow-x:hidden */

  /* ----- Header mobile ----- */
  .pub-header-inner {
    position: relative;
    z-index: 45;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 56px;
    min-height: 56px;
    background: inherit;
  }

  .pub-logo-kab {
    height: 30px;
  }

  .pub-logo-desa {
    height: 26px;
  }

  .pub-mobile-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* ----- Mobile menu: overlay + tap target ----- */
  .pub-mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
  }

  .pub-mobile-menu-inner {
    padding: 1rem 1rem 2rem;
    gap: 0;
  }

  .pub-mobile-menu a {
    display: block;
    padding: 0.875rem 1rem;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
  }

  /* ----- Container & main ----- */
  .pub-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pub-main {
    padding-bottom: 1rem;
  }

  /* ----- Section spacing mobile ----- */
  .pub-main section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .pub-main section.py-10,
  .pub-main section.py-14 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .pub-section-header {
    margin-bottom: 1.25rem;
  }

  .pub-section-title {
    font-size: 1.25rem;
  }

  .pub-section-subtitle {
    font-size: 0.875rem;
  }

  /* ----- Cards & grids ----- */
  .pub-card {
    border-radius: 12px;
  }

  .pub-btn-primary,
  .pub-btn-secondary {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* ----- Footer mobile ----- */
  .pub-footer-inner {
    padding: 1.5rem 1rem 1.25rem;
    max-width: 100%;
  }

  .pub-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .pub-footer-brand {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pub-footer-brand .pub-logo-link {
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  .pub-footer-brand .pub-logo-kab,
  .pub-footer-brand .pub-logo-desa {
    height: 30px;
  }

  .pub-footer-brand .pub-logo-link + p,
  .pub-footer-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .pub-footer-title {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
  }

  .pub-footer-links {
    margin: 0;
    padding: 0;
  }

  .pub-footer-links li {
    margin-bottom: 0.25rem;
  }

  .pub-footer-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    min-height: 44px;
    line-height: 44px;
    color: rgba(226, 232, 240, 0.85);
  }

  .pub-footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
  }

  .pub-footer-contact p i {
    margin-right: 0.5rem;
  }

  .pub-footer-socials {
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .pub-footer-socials a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .pub-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.25rem;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .pub-footer-bottom p {
    margin: 0;
  }

  /* ----- Messages ----- */
  .pub-messages-inner {
    padding: 0.75rem 1rem;
  }

  .pub-message {
    font-size: 0.875rem;
  }

  /* ----- Potensi carousel mobile ----- */
  .pub-potensi-wrap {
    min-height: 220px;
  }

  .pub-potensi-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pub-potensi-item {
    flex: 0 0 72%;
  }

  .pub-potensi-item.pub-potensi-center {
    flex: 0 0 80%;
  }

  .pub-potensi-nav {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .pub-potensi-prev {
    left: 0.25rem;
  }

  .pub-potensi-next {
    right: 0.25rem;
  }

  .pub-potensi-caption {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  /* ----- Horizontal scroll ----- */
  .pub-hscroll-track {
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .pub-hscroll-item {
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .pub-header-inner {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .pub-container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .pub-footer-inner {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .pub-section-title {
    font-size: 1.125rem;
  }
}

/* Gambar & media: tidak overflow di mobile */
@media (max-width: 1023px) {
  .pub-main img {
    max-width: 100%;
    height: auto;
  }

  .pub-main table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Form & input: tap target cukup besar di mobile */
@media (max-width: 1023px) {
  .pub-main input[type="text"],
  .pub-main input[type="email"],
  .pub-main input[type="number"],
  .pub-main input[type="tel"],
  .pub-main input[type="url"],
  .pub-main input[type="search"],
  .pub-main select,
  .pub-main textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .pub-main .pub-btn-primary,
  .pub-main .pub-btn-secondary {
    min-height: 44px;
  }
}

/* List grid: satu kolom di mobile sempit */
@media (max-width: 480px) {
  .pub-main .grid {
    gap: 1rem;
  }
}

/* ========== Halaman publik (selain home) — hero & section selaras #landing-root ========== */
.pub-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c5444 0%, #0d6652 100%);
  color: #fff;
  text-align: center;
}

.pub-page-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.06) 2px,
    rgba(255, 255, 255, 0.06) 3px
  );
}

.pub-page-hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pub-page-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-page-ring--1 {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  top: -100px;
  right: -80px;
}

.pub-page-ring--2 {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  top: 40px;
  right: 60px;
}

.pub-page-ring--3 {
  width: min(220px, 50vw);
  height: min(220px, 50vw);
  top: 140px;
  right: 160px;
}

.pub-page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.75rem 1.25rem 3rem;
}

@media (min-width: 640px) {
  .pub-page-hero-content {
    padding: 3.25rem 1.25rem 3.5rem;
  }
}

.pub-page-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  margin: 0 auto 1rem;
}

.pub-page-title {
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.pub-page-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(212, 245, 226, 0.95);
}

.pub-page-lead {
  margin: 0 auto;
  max-width: 36rem;
}

/* Breadcrumb di atas hero (gelap) — timpa pill hijau halaman dalam */
.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] a:hover {
  color: #fff !important;
}

.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] .text-slate-500,
.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] .text-slate-300,
.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] .text-slate-700,
.landing-theme:not(.home-page) .pub-page-hero nav[aria-label="Breadcrumb"] li.font-medium {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Isi halaman: latar seperti .sec di home */
.pub-page-section {
  padding: 2.5rem 0 3.5rem;
  background: var(--home-fog, #f0faf5);
}

.pub-page-section--white {
  background: #fff;
}

@media (min-width: 768px) {
  .pub-page-section {
    padding: 3rem 0 4rem;
  }
}

/* ----- Profil Desa: Informasi Umum + Lokasi ----- */
.profil-info-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .profil-info-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 1.5rem;
  }

  .profil-info-grid--solo {
    grid-template-columns: 1fr;
  }
}

.profil-info-address {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1.5px solid rgba(12, 84, 68, 0.1);
  background: linear-gradient(145deg, #f7fdf9 0%, #fff 48%, #f0faf5 100%);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 24px rgba(12, 84, 68, 0.06);
}

@media (min-width: 640px) {
  .profil-info-address {
    padding: 1.75rem 2rem;
  }
}

.profil-info-address::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(17, 168, 126, 0.09) 0%, transparent 68%);
  pointer-events: none;
}

.profil-info-address-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.profil-info-pin {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--home-p, #0c5444);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(12, 84, 68, 0.25);
}

.profil-info-address h3 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-p, #0c5444);
}

.profil-info-address p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--home-ink, #0c1c18);
}

.profil-info-actions {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(12, 84, 68, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.profil-info-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-p, #0c5444);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 84, 68, 0.06);
  border: 1px solid rgba(12, 84, 68, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profil-info-actions a:hover {
  background: rgba(12, 84, 68, 0.1);
  border-color: rgba(12, 84, 68, 0.2);
}

.profil-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profil-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.profil-contact-item:hover {
  border-color: rgba(12, 84, 68, 0.18);
  box-shadow: 0 8px 28px rgba(12, 84, 68, 0.08);
  transform: translateY(-1px);
}

.profil-contact-item.is-static {
  cursor: default;
  pointer-events: none;
}

.profil-contact-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f5ef;
  color: var(--home-p, #0c5444);
  font-size: 1.1rem;
  line-height: 0;
}

.profil-contact-item .min-w-0 > span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-muted, #5e8a80);
  margin-bottom: 0.15rem;
}

.profil-contact-item strong,
.profil-contact-item .profil-contact-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--home-ink, #0c1c18);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
}

/* Utility kecil yang dipakai di template (biar flex item bisa shrink, mencegah overflow) */
.min-w-0 { min-width: 0; }

/* Email panjang: tetap rapi di mobile */
@media (max-width: 520px) {
  .profil-contact-item { gap: 0.85rem; padding: 0.9rem 1rem; }
  .profil-contact-ico { width: 44px; height: 44px; border-radius: 14px; }
  .profil-contact-item .profil-contact-val {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Sambutan (Profil) - crop foto lebih bagus di layar kecil */
@media (max-width: 768px) {
  .sambutan-foto-img { object-position: 50% 0%; }
  .sambutan-foto-inner { padding: 16px; }
  .sambutan-foto-label { padding: 12px 14px; }
  .sambutan-foto-nama { font-size: 14px; }
  .sambutan-foto-jabatan { font-size: 10px; }
}

@media (max-width: 600px) {
  .sambutan-foto-img { object-position: 50% 0%; }
}

/* Teks sambutan: scrollable jika panjang */
.sambutan-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-muted, #5e8a80);
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 84, 68, 0.25) transparent;
}
.sambutan-text::-webkit-scrollbar { width: 4px; }
.sambutan-text::-webkit-scrollbar-track { background: transparent; }
.sambutan-text::-webkit-scrollbar-thumb {
  background: rgba(12, 84, 68, 0.25);
  border-radius: 99px;
}
.sambutan-text::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 84, 68, 0.45);
}

a.profil-contact-item .profil-contact-val {
  color: var(--home-p, #0c5444);
}

/* Lokasi / peta */
.profil-lokasi-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .profil-lokasi-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 1.75rem;
  }
}

.profil-map-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(12, 84, 68, 0.12);
  background: #e8f5ef;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  box-shadow: 0 8px 32px rgba(12, 84, 68, 0.08);
}

.profil-map-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.profil-map-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 84, 68, 0.92);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profil-lokasi-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profil-lokasi-card {
  border-radius: 18px;
  border: 1.5px solid rgba(12, 84, 68, 0.08);
  background: #fff;
  padding: 1.15rem 1.25rem;
}

.profil-lokasi-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted, #5e8a80);
}

.profil-lokasi-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--home-ink, #0c1c18);
}

.profil-coords {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-p, #0c5444);
  word-break: break-all;
}

.profil-lokasi-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .profil-lokasi-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
