:root {
  --primary: #2BA84A;
  --primary-700: #1E7E39;
  --accent: #F9A826;
  --accent-700: #D07F00;
  --bg: #F6FBF7;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, .6);
  --text: #1F2E24;
  --muted: #6F8377;
  --ring: rgba(43, 168, 74, .35);
  --shadow: 0 15px 40px rgba(20, 45, 32, .14);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1200px;
}

html[data-theme="dark"] {
  --bg: #0E1D13;
  --surface: #122418;
  --glass: rgba(18, 36, 24, .55);
  --text: #EAF5EC;
  --muted: #9CB3A6;
  --ring: rgba(249, 168, 38, .22);
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(43, 168, 74, .12), transparent 40%), radial-gradient(800px 500px at 110% 10%, rgba(249, 168, 38, .12), transparent 45%), var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.btn {
  --bg: var(--primary);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.25rem;
  border-radius: 14px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(43, 168, 74, .22);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px)
}

.btn:active {
  transform: translateY(0)
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--text);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: none;
}

html[data-theme="dark"] .btn--ghost {
  border-color: rgba(255, 255, 255, .12)
}

.btn--accent {
  --bg: var(--accent)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(43, 168, 74, .12);
  color: var(--primary);
  font-weight: 600
}

.section {
  padding: 80px 0
}

@media (min-width:992px) {
  .section {
    padding: 110px 0
  }
}

.section__head {
  margin-bottom: 28px
}

/* Membuat judul section di halaman profil bisa rata tengah */
#profil-hero .section__head,
#visi-misi .section__head,
#sejarah .section__head,
#struktur .section__head,
#demografi .section__head,
#wilayah .section__head,
#dokumen .section__head {
  text-align: center;
}

.section__pretitle {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700
}

.section__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: .25rem 0 .75rem
}

.muted {
  color: var(--muted)
}

.lead {
  font-size: 1.05rem
}

.text-center {
  text-align: center;
}

/* Common UI Elements */
.card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease
}

html[data-theme="dark"] .card {
  border-color: rgba(255, 255, 255, .12)
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(20, 45, 32, .2)
}

.card__media {
  position: relative;
  height: 200px;
  overflow: hidden
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease
}

.card:hover .card__media img {
  transform: scale(1.07)
}

.card__body {
  padding: 18px
}

.card-tilt {
  transform: perspective(800px) rotateX(0) rotateY(0)
}

/* Skip link */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

.visually-hidden:focus {
  position: fixed !important;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  white-space: normal;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  padding: .6rem .8rem;
  box-shadow: var(--shadow);
  z-index: 100
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 8px
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .9rem;
  border-radius: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800
}

.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #36c06b)
}

.brand b {
  font-size: 1.05rem;
  letter-spacing: .3px
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 600;
  color: var(--muted)
}

.nav a {
  padding: .65rem .7rem;
  border-radius: 12px
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, .05)
}

html[data-theme="dark"] .nav a.active,
html[data-theme="dark"] .nav a:hover {
  background: rgba(255, 255, 255, .06)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  cursor: pointer
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, .12)
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block
}

.hamburger span:before,
.hamburger span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: .2s
}

.hamburger span:before {
  top: -6px
}

.hamburger span:after {
  top: 6px
}

.mobile-open .hamburger span {
  background: transparent
}

.mobile-open .hamburger span:before {
  top: 0;
  transform: rotate(45deg)
}

.mobile-open .hamburger span:after {
  top: 0;
  transform: rotate(-45deg)
}

@media (max-width:980px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    margin: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: .2s
  }

  html[data-theme="dark"] .nav {
    border-color: rgba(255, 255, 255, .12)
  }

  .mobile-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible
  }

  .hamburger {
    display: flex
  }

  .nav-actions .btn--ghost {
    display: none
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  padding: 80px 0 60px;
  display: grid;
  align-items: center;
  overflow: hidden
}

/* Background hero untuk halaman utama */
#hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/background_title_profil.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02) brightness(.6);
  transform: scale(1.02);
}

#hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .25) 30%, transparent 60%), radial-gradient(800px 300px at 70% 0, rgba(43, 168, 74, .35), transparent 60%);
  pointer-events: none;
}

/* Background hero untuk halaman profil */
#profil-hero,
#wilayah-hero,
#layanan-hero,
#potensi-hero {
  min-height: 60vh;
}

#profil-hero:before,
#wilayah-hero:before,
#layanan-hero:before,
#potensi-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/background_title_profil.jpg');
  /* Asumsi ada gambar background untuk profil */
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02) brightness(.6);
  transform: scale(1.02);
}

#profil-hero:after,
#wilayah-hero:after,
#layanan-hero:after,
#potensi-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .25) 30%, transparent 60%), radial-gradient(800px 300px at 70% 0, rgba(43, 168, 74, .35), transparent 60%);
  pointer-events: none;
}

.hero .content {
  position: relative;
  color: #fff;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  background: rgba(0, 0, 0, .35);
  padding: .45rem .7rem;
  border-radius: 999px
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.05;
  margin: .6rem 0
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  color: #EAF5EC
}

.hero .cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1rem
}

.float-shapes .bubble {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .7;
  z-index: 0;
}

.bubble.b1 {
  width: 200px;
  height: 200px;
  right: -40px;
  bottom: -40px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .0) 65%);
  mix-blend: overlay;
  animation: float1 14s ease-in-out infinite
}

.bubble.b2 {
  width: 120px;
  height: 120px;
  left: 10%;
  top: 16%;
  background: radial-gradient(circle at 40% 40%, #F9A826, rgba(249, 168, 38, 0) 60%);
  animation: float2 12s ease-in-out infinite
}

@keyframes float1 {
  50% {
    transform: translate(-20px, -10px)
  }
}

@keyframes float2 {
  50% {
    transform: translate(10px, 16px)
  }
}

.separator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.separator svg {
  display: block;
  width: 100%;
  height: auto
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #EAF5EC;
  margin-bottom: .4rem
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: -40px;
  position: relative;
  z-index: 2
}

@media (min-width:680px) {
  .stats {
    grid-template-columns: repeat(4, 1fr)
  }
}

/* Ganti blok kode .stat yang ada dengan yang ini */
.stat {
  padding: 18px;
  border-radius: 16px;
  display: flex;
  gap: .9rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .65));
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow)
}

/* Ganti blok kode html[data-theme="dark"] .stat yang ada dengan yang ini */
html[data-theme="dark"] .stat {
  background: var(--glass);
  border-color: rgba(255, 255, 255, .12);
}

.stat .val {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800
}

.stat .lbl {
  font-size: .9rem;
  color: var(--muted)
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 22px
}

@media (min-width:768px) {
  .grid-2 {
    grid-template-columns: 1.1fr 1fr
  }
}

@media (min-width:992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (min-width:1100px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr)
  }
}

/* About Section & Features */
.about__image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.feature {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 10px 0
}

.feature .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(43, 168, 74, .12);
  color: var(--primary)
}

/* Potensi Section */
.potensi .item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  color: #fff
}

.potensi .item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1) brightness(.9);
  transition: transform .35s ease
}

.potensi .item:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .5));
}

.potensi .item:hover img {
  transform: scale(1.06)
}

.potensi .cap {
  position: relative;
  z-index: 2;
  padding: 18px
}

/* Berita Section */
.news .card__media {
  height: 180px
}

.meta {
  display: flex;
  gap: .8rem;
  align-items: center;
  color: var(--muted);
  font-size: .9rem
}

.chip {
  font-size: .75rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06)
}

html[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, .08)
}

/* Layanan Section */
.service {
  display: flex;
  gap: 1rem;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(0, 0, 0, .12)
}

html[data-theme="dark"] .service {
  border-color: rgba(255, 255, 255, .16)
}

.service .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 168, 74, .12);
  color: var(--primary)
}

/* Galeri Section */
.gallery {
  columns: 1;
  column-gap: 16px
}

@media (min-width:600px) {
  .gallery {
    columns: 2
  }
}

@media (min-width:960px) {
  .gallery {
    columns: 3
  }
}

.gallery img {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 16px;
  break-inside: avoid;
  box-shadow: var(--shadow);
  cursor: zoom-in
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60
}

.lightbox.open {
  display: flex
}

.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 12px
}

/* == PROFIL PAGE SPECIFIC STYLES == */

.quote {
  border-left: 4px solid var(--primary);
  padding: .35rem .9rem;
  background: rgba(43, 168, 74, .08);
  border-radius: 10px
}

.sign {
  margin-top: 10px;
  font-weight: 600
}

/* Tabs */
.tabs {
  margin-top: 10px
}

.tablist {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, .04);
  border-radius: 12px;
  padding: 6px
}

html[data-theme="dark"] .tablist {
  background: rgba(255, 255, 255, .06)
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .55rem .9rem;
  border-radius: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer
}

.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow)
}

.tabpanel {
  margin-top: 14px
}

.is-hidden {
  display: none
}

.tick {
  padding-left: 0;
  list-style: none
}

.tick li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0
}

.tick li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800
}

/* Timeline */
.timeline {
  list-style: none;
  padding-left: 0;
  position: relative;
  margin: 0
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, .12)
}

html[data-theme="dark"] .timeline:before {
  background: rgba(255, 255, 255, .12)
}

.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  position: relative;
  padding: 10px 0
}

.timeline li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(43, 168, 74, .15)
}

.timeline .time {
  font-weight: 700;
  color: var(--primary)
}

/* Accordion (details) */
details summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  padding: 12px 16px
}

details[open] summary {
  border-bottom: 1px solid rgba(0, 0, 0, .06)
}

html[data-theme="dark"] details[open] summary {
  border-color: rgba(255, 255, 255, .12)
}

/* Bars chart */
.bars {
  margin-top: 10px
}

.bar {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 10px;
  margin: 8px 0
}

.bar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.bar i.fill {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #36c06b);
  width: 0
}

.bar em {
  font-style: normal;
  color: var(--muted);
  text-align: right
}

.revealed .bar i.fill {
  transition: width .9s cubic-bezier(.2, .8, .2, 1)
}

/* Map/Contact layout */
.contact {
  display: grid;
  gap: 22px
}

@media (min-width:900px) {
  .contact {
    grid-template-columns: 1.2fr .8fr
  }
}

.map {
  height: 450px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

/* Documents List */
.doc-list {
  display: grid;
  gap: 16px
}

.doc {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.doc__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 14px 16px
}

.doc__actions {
  padding: 14px 16px
}

/* Footer */
footer {
  padding: 70px 0 30px;
  background: linear-gradient(180deg, rgba(43, 168, 74, .08), transparent), var(--bg)
}

.footer-grid {
  display: grid;
  gap: 22px
}

@media (min-width:900px) {
  .footer-grid {
    grid-template-columns: 1.2fr .8fr 1fr
  }
}

/* Helpers */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

section {
  scroll-margin-top: 90px
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: .2s;
  z-index: 70
}

.to-top.show {
  opacity: 1;
  transform: none
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 10px);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
  padding: .8rem 1rem;
  border-radius: 12px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: .3s
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}

/* Styling untuk Tombol Bahasa */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  width: auto;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-weight: 600;
}

html[data-theme="dark"] .lang-btn {
  border-color: rgba(255, 255, 255, .12);
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: var(--surface);
  min-width: 160px;
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, .06);
  padding: 6px;
  overflow: hidden;
}

html[data-theme="dark"] .lang-dropdown {
  border-color: rgba(255, 255, 255, .12);
}

.lang-dropdown a {
  color: var(--muted);
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  font-weight: 500;
}

.lang-dropdown a:hover {
  background-color: rgba(0, 0, 0, .05);
  color: var(--text);
}

html[data-theme="dark"] .lang-dropdown a:hover {
  background-color: rgba(255, 255, 255, .06);
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

/* Visibilitas Ikon Tema */
.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

/* Custom styles for the SmartHub button in the navigation */
.nav .btn--smarthub {
  --bg: var(--primary);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  /* Sedikit menambah jarak antara ikon dan teks */
  padding: .6rem 1.2rem;
  /* Menambah panjang tombol ke kiri dan kanan */
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s ease;
  box-shadow: 0 4px 15px rgba(43, 168, 74, .25);
  font-size: 0.9rem;
}

.nav .btn--smarthub:hover {
  background-color: var(--primary-700);
  transform: translateY(-2px);
}

/* SVG icon for the rocket - No changes needed here */
.nav .btn--smarthub svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Styling for the new Sumedang Logo */
.brand .logo {
  background: none;
  /* Menghilangkan background gradien hijau */
}

.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Memastikan logo pas tanpa terpotong */
}

/* Responsive Organizational Structure Images */
.struktur-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  /* Menambahkan jarak vertikal antara dua gambar */
}

.struktur-gambar {
  width: 100%;
  max-width: 800px;
  /* Lebar maksimum di desktop */
  height: auto;
  /* Menjaga rasio aspek gambar */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Override Warna Ikon untuk Kartu di Halaman Layanan */
#administrasi .hub-card .icon {
  color: var(--primary);
}

/* ===============================================
   GAYA UNTUK KOMPONEN KARTU (HUB-CARD)
   =============================================== */

/* Menggantikan smarthub-styles.css */

.hub-category {
  margin-top: 2.5rem;
}

.hub-category h2 {
  font-family: "Playfair Display", serif;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

html[data-theme="dark"] .hub-category h2 {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .hub-card {
  border-color: rgba(255, 255, 255, 0.12);
}

.hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.hub-card .icon {
  width: 48px;
  height: 48px;
  /* Warna ikon akan otomatis menggunakan --primary (hijau) dari :root */
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hub-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Gaya untuk search bar di Smarthub */
.smarthub-search {
  margin-bottom: 40px;
  position: relative;
}

.smarthub-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .smarthub-search input {
  border-color: rgba(255, 255, 255, 0.15);
}

.smarthub-search .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 24px;
  height: 24px;
}

#searchNotFound {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius);
  margin-top: 2rem;
  display: none;
  /* Disembunyikan secara default */
}

html[data-theme="dark"] #searchNotFound {
  background: rgba(255, 255, 255, 0.04);
}

/* CSS untuk menyembunyikan header peta My Maps */
.map-wrapper {
  height: 450px;
  /* Tinggi peta yang akan terlihat di web */
  overflow: hidden;
  position: relative;
}

.map-wrapper iframe {
  position: absolute;
  top: -60px;
  /* Geser iframe ke atas sejauh 60px */
  left: 0;
  width: 100%;
}

/* Partners Section */
.partners-section .section__title {
  margin-bottom: 2rem;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.partner-logo img {
  max-height: 70px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all .3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive Partner Logos for Mobile */
@media (max-width: 768px) {
  .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* Modifikasi untuk menghilangkan spasi putih pada bagian 'Tentang Desa' di desktop */
@media (min-width: 992px) {
  #profil-ringkas .grid-2 {
    gap: 0;
    /* Menghilangkan celah antar kolom grid */
    align-items: stretch;
    /* Membuat kedua kolom memiliki tinggi yang sama */
  }

  #profil-ringkas .reveal:first-child {
    padding: 2rem;
    /* Menambahkan padding di dalam kolom teks */
  }

  #profil-ringkas .about__image {
    border-radius: 0 20px 20px 0;
    /* Mengatur sudut border hanya di sisi kanan */
    height: 100%;
  }

  #profil-ringkas .about__image img {
    height: 100%;
    object-fit: cover;
    /* Memastikan gambar menutupi area tanpa distorsi */
  }
}

/* ===============================================
   STYLE UNTUK PENYERAGAMAN GAMBAR DI HALAMAN POTENSI
   =============================================== */

.img-uniform {
  width: 100%;
  height: 320px;
  /* Anda bisa sesuaikan tinggi ini */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}

/* Memastikan grid seimbang */
@media (min-width: 768px) {

  #potensi .grid-2,
  #ekonomi-kerakyatan .grid-2,
  #pangan .grid-2,
  #pariwisata .grid-2 {
    align-items: stretch;
    /* Membuat setiap item di grid memiliki tinggi yang sama */
  }
}

#ekonomi-kerakyatan .reveal,
#pangan .reveal,
#pariwisata .reveal {
  display: flex;
  flex-direction: column;
}

#ekonomi-kerakyatan .reveal p,
#pangan .reveal p,
#pariwisata .reveal p {
  flex-grow: 1;
  /* Membuat teks mengisi ruang yang tersedia */
}

/* Promo Modal */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal.show {
  opacity: 1;
  visibility: visible;
}

.promo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.promo-modal__content {
  position: relative;
  background: var(--surface);
  max-width: 480px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(40px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-modal.show .promo-modal__content {
  transform: scale(1) translateY(0);
}

.promo-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.promo-modal__close:hover {
  background: #fff;
  color: #ef4444;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.promo-modal__image-wrap {
  position: relative;
  width: 100%;
  background: #f8fafc;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.promo-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.promo-modal:hover .promo-modal__image {
  transform: scale(1.05);
}

.promo-modal__body {
  padding: 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-modal .btn--promo {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 1.2rem;
  padding: 1.1rem;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal .btn--promo:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.5);
}

.promo-modal .btn--promo:active {
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .promo-modal {
    padding: 16px;
  }

  .promo-modal__content {
    border-radius: 24px;
  }

  .promo-modal__body {
    padding: 24px;
  }
}

/* Floating Promo Toggle */
.promo-toggle {
  position: fixed;
  bottom: 85px;
  /* Above the to-top button */
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-toggle.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.promo-toggle:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.promo-toggle i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .promo-toggle {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}