/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a2e1a;
  background: #f8faf8;
  line-height: 1.6;
}

/* ========== TOKENS ========== */
:root {
  --green-dark: #1a4731;
  --green-mid: #2d7a4f;
  --green-light: #4caf7d;
  --green-pale: #e8f5ee;
  --gold: #c9963a;
  --gold-light: #f5e6c8;
  --text-dark: #1a2e1a;
  --text-mid: #4a5e4a;
  --text-light: #7a8e7a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26,71,49,0.10);
  --radius: 14px;
  --radius-sm: 8px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,122,79,0.12);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { font-size: 28px; }
.brand-name { display: block; font-weight: 800; font-size: 16px; color: var(--green-dark); }
.brand-sub { display: block; font-size: 11px; color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--green-dark);
  background: var(--green-pale);
}

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: var(--radius); min-width: 200px;
  box-shadow: 0 8px 32px rgba(26,71,49,0.15);
  border: 1px solid rgba(45,122,79,0.1);
  overflow: hidden;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 10px 18px;
  font-size: 14px; color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
}
.dropdown li a:hover { background: var(--green-pale); color: var(--green-dark); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--green-dark); border-radius: 2px;
  transition: 0.3s;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block; padding: 12px 28px;
  background: var(--gold); color: #fff;
  border-radius: 50px; font-weight: 700; font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201,150,58,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,150,58,0.5); }
.btn-outline {
  display: inline-block; padding: 12px 28px;
  border: 2px solid rgba(255,255,255,0.7); color: #fff;
  border-radius: 50px; font-weight: 700; font-size: 14px;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark {
  display: inline-block; padding: 12px 32px;
  border: 2px solid var(--green-mid); color: var(--green-mid);
  border-radius: 50px; font-weight: 700; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover { background: var(--green-mid); color: #fff; }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  overflow: hidden; margin-top: 68px;
}
.hero-slides { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  display: flex; align-items: center;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-content {
  max-width: 640px; padding: 0 48px;
  animation: slideUp 0.8s ease both;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.slide-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  color: #fff; padding: 4px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.slide-content h1 {
  font-family: 'Lora', serif; font-size: clamp(36px, 5vw, 64px);
  color: #fff; line-height: 1.2; margin-bottom: 20px;
  font-weight: 600;
}
.slide-content h1 em { font-style: italic; opacity: 0.9; }
.slide-content p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 32px; max-width: 460px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.slide-deco {
  position: absolute; right: 10%; font-size: clamp(80px, 15vw, 180px);
  opacity: 0.12; user-select: none;
}

.slide-controls {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.dot.active { width: 24px; border-radius: 4px; background: #fff; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  font-size: 28px; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; z-index: 10; backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.slide-arrow:hover { background: rgba(255,255,255,0.35); }
.prev { left: 24px; }
.next { right: 24px; }

/* ========== QUICK ACCESS ========== */
.quick-access {
  background: #fff;
  padding: 0;
  box-shadow: 0 4px 24px rgba(26,71,49,0.08);
  position: relative; z-index: 10;
}
.qa-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.qa-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1 1 150px; max-width: 190px;
  padding: 20px 12px;
  border-right: 1px solid rgba(45,122,79,0.1);
  transition: background 0.2s;
  cursor: pointer;
}
.qa-card:last-child { border-right: none; }
.qa-card:hover { background: var(--green-pale); }
.qa-icon { font-size: 26px; }
.qa-card span { font-size: 12px; font-weight: 600; color: var(--text-mid); text-align: center; }

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header.light { }
.section-tag {
  display: inline-block; background: var(--green-pale);
  color: var(--green-mid); padding: 4px 16px;
  border-radius: 50px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Lora', serif; font-size: clamp(28px, 4vw, 42px);
  color: var(--green-dark); margin-bottom: 12px;
}
.section-header p { color: var(--text-light); max-width: 520px; margin: 0 auto; }
.section-header.light .section-tag { background: rgba(255,255,255,0.2); color: #fff; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.8); }
.section-cta { text-align: center; margin-top: 40px; }

/* ========== STATS ========== */
.stats-section { padding: 80px 0; background: var(--green-pale); }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-num {
  font-size: 32px; font-weight: 800; color: var(--green-dark);
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-light); font-weight: 600; }

/* ========== SAMBUTAN ========== */
.sambutan-section { padding: 80px 0; background: #fff; }
.sambutan-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.img-placeholder-kades {
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url("pak");
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
}
.kades-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--green-dark); color: #fff;
  text-align: center; padding: 12px; font-size: 13px; font-weight: 700;
}
.sambutan-text { }
.kades-name { font-size: 20px; font-weight: 700; color: var(--green-mid); margin: 8px 0 16px; }
.divider-line { width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 24px; }
.sambutan-text p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; }
.kades-ttd { color: var(--text-light); }

/* ========== POTENSI DESA ========== */
.potensi-section { padding: 80px 0; background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%); }
.potensi-section .section-tag { background: rgba(255,255,255,0.15); color: #fff; }
.potensi-section .section-header h2 { color: #fff; }
.potensi-section .section-header p { color: rgba(255,255,255,0.75); }
.potensi-sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.potensi-sector {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  padding: 24px;
}
.ps-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ps-header-icon { font-size: 24px; }
.ps-header h3 { font-size: 16px; color: #fff; font-weight: 700; }
.ps-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.ps-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ps-img {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 14px;
  overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-item:hover .ps-img { transform: translateY(-4px) scale(1.02); }
.ps-item span { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600; }

/* ========== UMKM DESA ========== */
.umkm-section { padding: 80px 0; background: #f8faf8; }
.umkm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.umkm-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform 0.2s;
}
.umkm-card:hover { transform: translateY(-4px); }
.umkm-img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.umkm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.umkm-card span { font-size: 13px; font-weight: 700; color: var(--text-dark); }

/* ========== BERITA ========== */
.berita-section { padding: 80px 0; background: #f8faf8; }
.berita-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.berita-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,71,49,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.berita-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.berita-card.featured { grid-row: 1 / 3; }
.berita-img-wrap {
  height: 200px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.berita-img-wrap.small { height: 100px; }
.berita-img-placeholder { font-size: 48px; }
.berita-img-wrap.small .berita-img-placeholder { font-size: 32px; }
.berita-card.featured .berita-img-wrap { height: 280px; }
.berita-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-dark); color: #fff;
  padding: 3px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
}
.berita-body { padding: 20px; }
.berita-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.berita-body h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.berita-body p { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.7; }
.read-more { font-size: 13px; font-weight: 700; color: var(--green-mid); }
.read-more:hover { color: var(--green-dark); }

/* ========== LAYANAN KILAT ========== */
.layanan-kilat {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
}
.layanan-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.layanan-item {
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 28px 16px; text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.layanan-item:hover { background: rgba(255,255,255,0.22); transform: translateY(-4px); }
.l-icon { font-size: 32px; margin-bottom: 10px; }
.layanan-item span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.9); }

/* ========== FOOTER ========== */
.footer { background: var(--green-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { font-size: 36px; margin-bottom: 12px; }
.footer-brand h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background 0.2s;
}
.footer-social a:hover { background: var(--gold); }
.footer-links h4, .footer-contact h4, .footer-visit h4 {
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links ul li a:hover { color: #fff; }
.footer-contact ul li { font-size: 13px; margin-bottom: 8px; }
.visit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs { background: rgba(255,255,255,0.07); border-radius: var(--radius-sm); padding: 10px 12px; }
.vs span { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.vs strong { font-size: 16px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ========== PAGE CONTENT (for inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 80px 0 60px; margin-top: 68px;
}
.page-hero h1 {
  font-family: 'Lora', serif; color: #fff;
  font-size: clamp(28px, 4vw, 48px); margin-bottom: 8px;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 13px; }
.breadcrumb span { color: rgba(255,255,255,0.4); font-size: 13px; }
.breadcrumb strong { color: rgba(255,255,255,0.9); font-size: 13px; }
.page-content { padding: 60px 0; }

/* Info Card */
.info-card {
  background: #fff; border-radius: var(--radius); padding: 28px 32px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.info-card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 16px; }
.info-card p { color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }

/* Tab Nav */
.tab-nav { display: flex; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 20px; border-radius: 50px;
  background: #fff; border: 2px solid rgba(45,122,79,0.2);
  color: var(--text-mid); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: 0.2s;
}
.tab-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .dropdown { position: static; box-shadow: none; border: none; background: var(--green-pale); border-radius: var(--radius-sm); }
  .has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: block; }

  .hero { min-height: 480px; }
  .slide-content { padding: 0 24px; }
  .slide-deco { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sambutan-grid { grid-template-columns: 1fr; }
  .img-placeholder-kades { max-width: 280px; margin: 0 auto; }
  .potensi-sectors { grid-template-columns: 1fr; }
  .berita-grid { grid-template-columns: 1fr; }
  .berita-card.featured { grid-row: auto; }
  .layanan-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .qa-icon { font-size: 20px; }
  .qa-card span { font-size: 10px; }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

#modalImg{
    margin-bottom: 30px;
}

#modalImg img{
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

#modalImg{
    margin-bottom:50px;
}

.blc-meta{
    margin-bottom:20px;
}

#modalBody h2{
    margin-top:0;
}