/* ==========================================================================
   SC Dinas HTML — Desain 05 "Pertanian" (Dinas Pertanian dan Pangan)
   Template oleh sharecode.id — MIT License
   Konsep: "Lahan & Lumbung" — kertas krem, garis pematang, papan harga
   ala papan tulis kayu, kartu berbentuk kantong benih.
   ========================================================================== */

/* ---------- Font (self-host) ---------- */
@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variabel (ganti warna & font di sini) ---------- */
:root {
  --green: #558b2f;          /* hijau padi (aksen utama) */
  --green-600: #457524;
  --green-700: #33691e;      /* untuk teks/tombol agar kontras */
  --green-900: #1f3d12;      /* hijau tua (footer, papan) */
  --green-100: #e6efd9;
  --green-50: #f1f6ea;
  --brown: #795548;          /* cokelat tanah */
  --brown-700: #5d4037;
  --brown-900: #3e2a20;
  --brown-100: #efe6dc;
  --wheat: #e8c872;          /* kuning gabah */
  --wheat-600: #c9a24a;
  --paper: #fbf8f0;          /* latar kertas */
  --cream: #f4eedf;
  --ink: #2b2a24;            /* teks utama */
  --muted: #6a6457;
  --line: #e2d9c6;
  --white: #fff;
  --danger: #c62828;
  --up: #2e7d32;
  --down: #c62828;

  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Merriweather Sans", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px -14px rgba(62, 42, 32, .35);
  --shadow-lg: 0 24px 50px -22px rgba(62, 42, 32, .45);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--paper);
  /* tekstur kertas halus */
  background-image: radial-gradient(rgba(121, 85, 72, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; color: var(--green-900); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--wheat-600); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px -10px var(--green-700); }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-wheat { background: var(--wheat); color: var(--brown-900); }
.btn-wheat:hover { background: #f0d68a; color: var(--brown-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-900); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar + ticker harga ---------- */
.topbar { background: var(--brown-900); color: #efe6dc; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.topbar-date { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ticker { flex: 1; display: flex; align-items: center; gap: 10px; overflow: hidden; min-width: 0; }
.ticker-label { background: var(--wheat); color: var(--brown-900); font-weight: 700; padding: 2px 10px; border-radius: 4px; white-space: nowrap; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 34px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 10px; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move span b { color: #fff; font-weight: 600; margin-left: 4px; }
.ticker-move .up { color: #a5d6a7; } .ticker-move .down { color: #ffab91; }
@keyframes ticker { to { transform: translateX(-50%); } }
.topbar-links { display: flex; gap: 16px; white-space: nowrap; }
.topbar-links a { color: #efe6dc; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.topbar-links a:hover { color: var(--wheat); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 240, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(62, 42, 32, .5); }
.site-header::after { /* garis pematang di bawah header */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--green) 0 18px, transparent 18px 24px, var(--brown) 24px 30px, transparent 30px 36px);
  opacity: .55;
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand img { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); font-weight: 700; }
.brand-text strong { font-family: var(--font-head); font-size: 1.08rem; font-weight: 900; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; position: relative;
}
.nav-list > li > a:hover, .nav-list > li > button:hover { color: var(--green-700); background: var(--green-50); }
.nav-list > li > .active { color: var(--green-700); }
.nav-list > li > .active::after { /* tunas penanda menu aktif */
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 22px; height: 12px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M11 12V5M11 6Q5 7 3 1Q9 0 11 6M11 6Q17 7 19 1Q13 0 11 6' fill='%23558b2f'/%3E%3C/svg%3E") no-repeat center/contain;
}
.nav-list .icon { width: 1em; height: 1em; transition: transform .2s; }
.dropdown {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > button .icon, .has-dropdown.open > button .icon { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.dropdown a:hover, .dropdown a.active { background: var(--green-50); color: var(--green-700); }
.dropdown a .icon { color: var(--green); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--green-900); }
.icon-btn:hover { background: var(--green-50); }
.menu-toggle { display: none; }

/* Panel menu mobile (di luar header agar tidak terkurung) */
.mobile-panel { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-panel.open { visibility: visible; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(31, 61, 18, .5); opacity: 0; transition: opacity .3s; }
.mobile-panel.open .mobile-backdrop { opacity: 1; }
.mobile-drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: var(--paper); padding: 20px;
  overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
}
.mobile-panel.open .mobile-drawer { transform: none; }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav a.active, .mobile-nav a:hover { background: var(--green-100); color: var(--green-700); }
.mobile-nav .group-label { display: block; padding: 14px 12px 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); font-weight: 700; }
.mobile-nav ul { list-style: none; padding: 0 0 0 10px; margin: 0; border-left: 2px dashed var(--line); margin-left: 12px; }

/* Kotak pencarian (overlay) */
.search-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(31, 61, 18, .82); display: grid; place-items: start center; padding-top: 16vh; opacity: 0; visibility: hidden; transition: .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(92vw, 640px); background: var(--paper); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.search-box form { display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; }
.search-box p { margin: 12px 4px 0; font-size: .85rem; color: var(--muted); }

/* ---------- Section umum ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-900); color: #e6efd9; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }
.section-green .section-head p { color: #c5d8b0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5h8M11 5h4M18 5h8' stroke='%23558b2f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.section-green .eyebrow { color: var(--wheat); }
.section-head h2 { margin: 0; }

/* Pembatas "lapisan tanah" */
.strata { display: block; width: 100%; height: 60px; }
.strata-top { margin-bottom: -1px; }
.furrow-band { height: 18px; background: repeating-linear-gradient(-45deg, var(--brown) 0 6px, #8d6e63 6px 12px); opacity: .9; }

/* ---------- HERO beranda ---------- */
.hero { position: relative; padding: 46px 0 0; overflow: hidden; }
.hero::before { /* garis kontur topografi */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23d8ccb2' stroke-width='1.2'%3E%3Cpath d='M-20 80 Q150 20 300 90 T620 70'/%3E%3Cpath d='M-20 130 Q150 70 300 140 T620 120'/%3E%3Cpath d='M-20 180 Q150 120 300 190 T620 170'/%3E%3Cpath d='M-20 230 Q150 170 300 240 T620 220'/%3E%3Cpath d='M-20 280 Q150 220 300 290 T620 270'/%3E%3Cpath d='M-20 330 Q150 270 300 340 T620 320'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero-slides { position: relative; min-height: 380px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s, transform .6s, visibility .6s; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-100); color: var(--green-700); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 18px; }
.hero-badge span { background: var(--green-700); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .72rem; }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--wheat); opacity: .55; z-index: -1; border-radius: 4px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 8px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero-dots button.is-active { background: var(--green); width: 56px; }
.hero-count { font-family: var(--font-head); font-weight: 700; color: var(--brown); font-size: .9rem; }
.hero-art { position: relative; padding: 0 0 70px 30px; }
.hero-window { /* bingkai jendela lengkung ala lumbung */
  position: relative; border-radius: 300px 300px 26px 26px; overflow: hidden; aspect-ratio: 4/4.4;
  border: 10px solid var(--brown); box-shadow: 0 0 0 4px var(--wheat), var(--shadow-lg); background: var(--cream);
}
.hero-window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero-window img.is-active { opacity: 1; }
.calendar-card {
  position: absolute; left: -10px; bottom: 10px; width: min(330px, 80%); background: #fff; border-radius: 18px;
  padding: 18px 20px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--green);
}
.calendar-card h3 { font-size: .95rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.calendar-card .muted { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.season-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-bottom: 8px; }
.season-bar i { height: 22px; border-radius: 4px; background: var(--green-100); position: relative; }
.season-bar i.mt1 { background: var(--green); } .season-bar i.mt2 { background: #9ccc65; } .season-bar i.mt3 { background: var(--wheat); }
.season-bar i.now { outline: 2px solid var(--brown-900); outline-offset: 1px; }
.season-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .62rem; color: var(--muted); text-align: center; }
.season-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: .72rem; color: var(--muted); }
.season-legend span { display: inline-flex; align-items: center; gap: 5px; }
.season-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.weather-chip { position: absolute; right: 0; top: 30px; background: var(--green-900); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: .82rem; }
.weather-chip strong { font-family: var(--font-head); font-size: 1.4rem; display: block; line-height: 1; }
.weather-chip .icon { width: 34px; height: 34px; color: var(--wheat); }

/* Layanan cepat menempel di bawah hero */
.quick-strip { position: relative; margin-top: 10px; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.quick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px; text-decoration: none; color: var(--ink); border-right: 1px dashed var(--line); transition: background .2s; position: relative; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--green-50); color: var(--ink); }
.quick-item .qi-icon { width: 46px; height: 46px; border-radius: 14px 14px 14px 4px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; transition: .2s; }
.quick-item:hover .qi-icon { background: var(--green-700); color: #fff; transform: rotate(-6deg); }
.quick-item .qi-icon .icon { width: 24px; height: 24px; }
.quick-item strong { font-size: .92rem; line-height: 1.35; }
.quick-item small { color: var(--muted); font-size: .76rem; line-height: 1.4; }

/* ---------- Papan harga pangan (papan tulis kayu) ---------- */
.board-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.board {
  background: var(--green-900); color: #e6efd9; border-radius: 18px; padding: 26px; position: relative;
  border: 14px solid #6d4c41; box-shadow: inset 0 0 0 3px #8d6e63, var(--shadow-lg);
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 6px 6px;
}
.board::before, .board::after { content: ""; position: absolute; top: -24px; width: 14px; height: 14px; border-radius: 50%; background: var(--wheat-600); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.board::before { left: 30px; } .board::after { right: 30px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.board-head h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.board-head small { color: #a5c08a; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #dcedc8; padding: 6px 14px; border-radius: 99px; cursor: pointer; font-size: .82rem; font-weight: 600; }
.tab-btn[aria-selected="true"] { background: var(--wheat); color: var(--brown-900); border-color: var(--wheat); }
.tab-panel[hidden] { display: none; }
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th { text-align: left; font-weight: 600; color: #a5c08a; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.price-table td { padding: 11px 6px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.price-table td:nth-child(2), .price-table th:nth-child(2), .price-table td:nth-child(3), .price-table th:nth-child(3) { text-align: right; }
.price-table .price { font-family: var(--font-head); color: #fff; font-weight: 700; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.chg.up { background: rgba(165, 214, 167, .16); color: #a5d6a7; }
.chg.down { background: rgba(255, 171, 145, .16); color: #ffab91; }
.chg.flat { background: rgba(255, 255, 255, .1); color: #e0e0e0; }
.board-foot { margin: 14px 0 0; font-size: .76rem; color: #a5c08a; }

/* ---------- Statistik (kantong benih) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.seed-card {
  position: relative; background: #fff; border-radius: 10px 10px 22px 22px; padding: 44px 22px 24px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.seed-card::before { /* lipatan atas kantong benih */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: repeating-linear-gradient(90deg, var(--c, var(--green)) 0 10px, transparent 10px 12px);
  -webkit-mask: radial-gradient(circle at 8px 22px, transparent 6px, #000 6.5px) 0 0/16px 22px; mask: radial-gradient(circle at 8px 22px, transparent 6px, #000 6.5px) 0 0/16px 22px;
}
.seed-card .icon { width: 38px; height: 38px; color: var(--c, var(--green)); margin: 0 auto 10px; }
.seed-card .num { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--green-900); line-height: 1.1; }
.seed-card .num small { font-size: .45em; color: var(--brown); font-weight: 700; margin-left: 3px; }
.seed-card p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }

/* ---------- Sambutan kepala dinas ---------- */
.welcome { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.welcome-photo { position: relative; }
.welcome-photo img { border-radius: 200px 200px 24px 24px; border: 8px solid #fff; box-shadow: var(--shadow-lg); width: 100%; }
.welcome-photo .tag { position: absolute; bottom: -18px; right: -14px; background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); }
.welcome-photo .tag strong { display: block; font-family: var(--font-head); }
.welcome-photo .tag small { color: #efe6dc; }
.quote-mark { width: 60px; height: 60px; color: var(--wheat); }
.welcome blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.75; color: var(--green-900); }
.signature { margin-top: 24px; display: flex; gap: 14px; align-items: center; }
.signature::before { content: ""; width: 50px; height: 2px; background: var(--brown); }

/* ---------- Alur benih -> pasar (program) ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 38px; left: 6%; right: 6%; height: 4px; background: repeating-linear-gradient(90deg, var(--wheat) 0 14px, transparent 14px 22px); }
.flow li { text-align: center; padding: 0 10px; position: relative; }
.flow .flow-icon { width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-900); border: 4px solid var(--wheat); display: grid; place-items: center; color: var(--wheat); position: relative; z-index: 1; transition: transform .3s; }
.flow li:hover .flow-icon { transform: translateY(-6px) rotate(-4deg); }
.flow .flow-icon .icon { width: 32px; height: 32px; }
.flow .step { font-size: .72rem; letter-spacing: .14em; color: var(--wheat); font-weight: 700; }
.flow h3 { font-size: 1rem; margin: 4px 0 6px; }
.flow p { font-size: .84rem; color: #c5d8b0; margin: 0; }

/* ---------- Kartu program (kartu lahan) ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.plot-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.plot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plot-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.plot-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.plot-card:hover .media img { transform: scale(1.06); }
.plot-card .label { position: absolute; left: 16px; top: 16px; background: var(--wheat); color: var(--brown-900); font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plot-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.plot-card .body p { color: var(--muted); font-size: .92rem; }
.progress { height: 10px; border-radius: 99px; background: var(--green-100); overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #9ccc65); border-radius: 99px; width: var(--w); }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .icon { color: var(--green); }

/* ---------- Berita (layout majalah) ---------- */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; }
.news-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-feature:hover img { transform: scale(1.05); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(31, 61, 18, .92)); }
.news-feature .body { position: relative; z-index: 1; padding: 30px; }
.news-feature h3 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.news-feature p { color: #e6efd9; margin: 0; }
.cat { display: inline-block; background: var(--wheat); color: var(--brown-900); font-size: .72rem; font-weight: 700; padding: 3px 11px; border-radius: 99px; margin-bottom: 12px; letter-spacing: .04em; }
.news-list { display: flex; flex-direction: column; gap: 6px; }
.news-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .2s; }
.news-row:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.news-row img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-row h3 { font-size: 1rem; margin: 4px 0; }
.news-row time, .news-card time { font-size: .78rem; color: var(--brown); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; }
.news-card .media .cat { position: absolute; left: 14px; top: 14px; margin: 0; }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.news-card h3 a { color: var(--green-900); text-decoration: none; }
.news-card h3 a:hover { color: var(--green); }
.news-card p { color: var(--muted); font-size: .9rem; flex: 1; }

/* ---------- Pengumuman & agenda ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.panel-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.panel-head h3 .icon { color: var(--brown); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { display: flex; gap: 14px; padding: 14px 0; text-decoration: none; color: var(--ink); align-items: flex-start; }
.notice-list a:hover strong { color: var(--green-700); }
.notice-list .pin { width: 38px; height: 38px; border-radius: 10px; background: var(--brown-100); color: var(--brown); display: grid; place-items: center; flex-shrink: 0; }
.notice-list strong { display: block; font-size: .95rem; line-height: 1.45; }
.notice-list small { color: var(--muted); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--green-100); color: var(--green-700); margin-left: 6px; vertical-align: middle; }
.badge.new { background: #fde2d8; color: #a33a17; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda-item { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--green-50); }
.date-box { background: var(--green-700); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px; line-height: 1.1; }
.date-box b { display: block; font-family: var(--font-head); font-size: 1.5rem; }
.date-box small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.agenda-item h4 { margin: 0 0 3px; font-size: .95rem; }
.agenda-item p { margin: 0; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- Galeri ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic a { border-radius: var(--radius); overflow: hidden; position: relative; display: block; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }

.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.07); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 8px 18px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .88rem; transition: .2s; }
.filter-btn:hover { border-color: var(--green); color: var(--green-700); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #fff; border: 0; padding: 0; text-align: left; display: block; width: 100%; }
.gallery-item img { aspect-ratio: 16/11; width: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(31, 61, 18, .88)); color: #fff; font-size: .88rem; font-weight: 600; }
.gallery-item .cap small { display: block; color: var(--wheat); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.gallery-item.is-hidden, .video-card.is-hidden, .filterable.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(20, 30, 12, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #e6efd9; margin-top: 14px; font-size: .95rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--wheat); color: var(--brown-900); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); } .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: #c5d8b0; font-size: .85rem; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.video-thumb { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; position: relative; background: none; }
.video-thumb img { aspect-ratio: 16/10; width: 100%; object-fit: cover; transition: filter .3s; }
.video-thumb:hover img { filter: brightness(1.08) saturate(1.1); }
.video-thumb .dur { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 6px; }
.video-card .body { padding: 18px 20px 22px; }
.video-card h3 { font-size: 1rem; margin: 0 0 6px; }
.video-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.video-feature .video-thumb img { border-radius: var(--radius-lg); }
.modal { position: fixed; inset: 0; z-index: 260; background: rgba(20, 30, 12, .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-inner { width: min(960px, 100%); position: relative; }
.modal-frame { aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -56px; right: 0; }

/* ---------- Testimoni petani ---------- */
.testi { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.testi-slider { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.testi-slider::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--green-100); }
.testi-track { display: flex; transition: transform .6s ease; }
.testi-item { min-width: 100%; position: relative; }
.testi-item p { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.8; color: var(--green-900); }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testi-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--wheat); }
.testi-person strong { display: block; } .testi-person small { color: var(--muted); }
.testi-nav { display: flex; gap: 10px; margin-top: 24px; position: relative; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--green-900); transition: .2s; }
.round-btn:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--brown); color: #fff; padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-12deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 24px); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: #efe6dc; max-width: 620px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (halaman dalam) ---------- */
.page-hero { position: relative; background: var(--green-900); color: #dcedc8; padding: 70px 0 110px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%237cb342' stroke-width='1.2'%3E%3Cpath d='M-20 40 Q150 -10 300 50 T620 30'/%3E%3Cpath d='M-20 90 Q150 40 300 100 T620 80'/%3E%3Cpath d='M-20 140 Q150 90 300 150 T620 130'/%3E%3Cpath d='M-20 190 Q150 140 300 200 T620 180'/%3E%3Cpath d='M-20 240 Q150 190 300 250 T620 230'/%3E%3C/g%3E%3C/svg%3E"); }
.page-hero .container { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero p { max-width: 640px; margin: 0; color: #c5d8b0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #7cb342; }
.breadcrumb a { color: var(--wheat); text-decoration: none; }
.breadcrumb [aria-current] { color: #dcedc8; }
.page-hero .ph-icon { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed rgba(232, 200, 114, .5); display: grid; place-items: center; color: var(--wheat); }
.page-hero .ph-icon .icon { width: 54px; height: 54px; stroke-width: 1.3; }
.page-hero .strata { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; }

/* ---------- Konten umum halaman dalam ---------- */
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 5px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); color: var(--green-900); }
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); }
.card h3 { display: flex; gap: 10px; align-items: center; }
.card h3 .icon { color: var(--green); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 6px; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2333691e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.arch-img { border-radius: 300px 300px 24px 24px; border: 8px solid #fff; box-shadow: var(--shadow-lg); }

/* Visi misi */
.vision { background: var(--green-900); color: #e6efd9; border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; }
.vision::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(232, 200, 114, .15); }
.vision h3 { color: var(--wheat); }
.vision blockquote { margin: 0; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.7; color: #fff; }
.mission-list { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mission-list li { counter-increment: m; display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.mission-list li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--green); }

/* Tupoksi bidang */
.field-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; transition: .25s; }
.field-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.field-card .fc-icon { width: 54px; height: 54px; border-radius: 16px 16px 16px 4px; background: var(--brown-100); color: var(--brown); display: grid; place-items: center; margin-bottom: 14px; }
.field-card .fc-icon .icon { width: 28px; height: 28px; }
.field-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.field-card ul { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }

/* Struktur organisasi (pohon) */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { background: #fff; border: 2px solid var(--green); border-radius: 14px; padding: 12px 18px; text-align: center; min-width: 200px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.org-node strong { display: block; font-size: .9rem; color: var(--green-900); }
.org-node small { color: var(--muted); font-size: .78rem; }
.org-node.head { background: var(--green-900); border-color: var(--wheat); }
.org-node.head strong { color: #fff; } .org-node.head small { color: var(--wheat); }
.org-node.brown { border-color: var(--brown); }
.org-line { width: 2px; height: 28px; background: var(--brown); }
.org-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; position: relative; padding-top: 28px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--brown); }
.org-row > .org-node::before { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 28px; background: var(--brown); }
.org-side { display: flex; gap: 18px; align-items: center; }

/* Pejabat */
.officer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.officer { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); text-align: center; transition: .25s; }
.officer:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.officer .photo { background: var(--green-50); padding: 18px 18px 0; }
.officer .photo img { border-radius: 160px 160px 0 0; margin: 0 auto; width: 82%; }
.officer .body { padding: 18px 16px 22px; border-top: 4px solid var(--green); }
.officer h3 { font-size: 1rem; margin: 0 0 4px; }
.officer .role { color: var(--brown); font-weight: 700; font-size: .82rem; margin: 0 0 6px; }
.officer .nip { font-size: .75rem; color: var(--muted); margin: 0; }
.officer-lead { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 44px; }
.officer-lead img { border-radius: 160px 160px 20px 20px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.info-table th, .info-table td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 38%; color: var(--muted); font-weight: 600; }

/* Tabel data */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.data-table th { background: var(--green-900); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; font-size: .85rem; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: var(--green-50); }
.data-table tbody tr:hover { background: #fff8e1; }
.file-type { display: inline-grid; place-items: center; width: 40px; height: 44px; border-radius: 6px 12px 6px 6px; font-size: .68rem; font-weight: 700; color: #fff; background: var(--danger); }
.file-type.xls { background: #2e7d32; } .file-type.doc { background: #1565c0; } .file-type.zip { background: var(--brown); }
.doc-name { display: flex; gap: 12px; align-items: center; }
.doc-name strong { display: block; font-size: .92rem; } .doc-name small { color: var(--muted); }

/* Toolbar pencarian/filter */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; padding: 13px 18px 13px 46px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.search-field input:focus, .select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--green-100); }
.select { padding: 13px 40px 13px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23795548' stroke-width='2'/%3E%3C/svg%3E") right 14px center/18px no-repeat; appearance: none; }
.result-info { font-size: .88rem; color: var(--muted); }
.empty-state { text-align: center; padding: 40px; color: var(--muted); display: none; }
.empty-state.show { display: block; }

/* Akordeon */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: 0; cursor: pointer; font-weight: 700; text-align: left; color: var(--green-900); font-size: 1rem; }
.acc-btn .icon { transition: transform .3s; color: var(--brown); }
.acc-btn[aria-expanded="true"] { background: var(--green-50); }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc-panel { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; }
.acc-panel.open { padding: 4px 22px 20px; }
.acc-panel p:last-child, .acc-panel ul:last-child { margin-bottom: 0; }

/* Tab umum (halaman dalam) */
.tabs-light .tab-list { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 26px; }
.tabs-light .tab-btn { border: 0; border-radius: 10px 10px 0 0; color: var(--muted); background: transparent; padding: 12px 18px; font-size: .92rem; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs-light .tab-btn[aria-selected="true"] { background: transparent; color: var(--green-700); border-bottom-color: var(--green); }

/* Alur layanan */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 18px; position: relative; padding-bottom: 26px; }
.steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 50%; background: var(--wheat); color: var(--brown-900); font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--brown) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h4 { margin: 10px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.sla { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sla span { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700); font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--green-900); }
.form-group label .req { color: var(--danger); }
.input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border .2s, box-shadow .2s; }
.form-group textarea { min-height: 140px; resize: vertical; }
.input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-100); }
.form-group.invalid .input, .form-group.invalid select, .form-group.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: .8rem; min-height: 1em; }
.hint { color: var(--muted); font-size: .78rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.check-row input { margin-top: 5px; accent-color: var(--green-700); width: 18px; height: 18px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .86rem; background: #fff; }
.radio-cards input { accent-color: var(--green-700); }
.radio-cards label:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.ticket-box { display: none; text-align: center; background: var(--green-50); border: 2px dashed var(--green); border-radius: var(--radius-lg); padding: 30px; margin-top: 20px; }
.ticket-box.show { display: block; }
.ticket-box .ticket-no { font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; color: var(--green-900); letter-spacing: .05em; margin: 6px 0; }

/* Kontak */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.contact-card .icon { width: 30px; height: 30px; color: var(--green); margin-bottom: 10px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--green-50); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.hours { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* Artikel detail */
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); margin: 0 0 24px; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 20px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 30px 0; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--green-900); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--green-700); color: #fff; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 5px 12px; border-radius: 99px; background: var(--green-50); color: var(--green-700); font-size: .82rem; text-decoration: none; border: 1px solid var(--green-100); }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-list a { display: grid; grid-template-columns: 80px 1fr; gap: 12px; text-decoration: none; color: var(--ink); align-items: center; }
.mini-list img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.mini-list strong { font-size: .88rem; line-height: 1.4; display: block; }
.mini-list small { color: var(--muted); font-size: .75rem; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--green-50); border-radius: var(--radius-lg); padding: 22px; }
.author-box img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }

/* PPID */
.ppid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ppid-cat { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); border-bottom: 5px solid var(--c, var(--green)); }
.ppid-cat .icon { width: 34px; height: 34px; color: var(--c, var(--green)); margin-bottom: 12px; }
.ppid-cat h3 { font-size: 1.05rem; }
.ppid-cat p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Harga pangan (halaman) */
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 240px; padding: 20px 10px 0; border-bottom: 2px solid var(--line); }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--green), var(--green-700)); border-radius: 8px 8px 0 0; height: var(--h); position: relative; transition: height 1s ease; min-width: 18px; }
.bar-chart .bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--green-900); white-space: nowrap; }
.bar-labels { display: flex; gap: 12px; padding: 8px 10px 0; }
.bar-labels span { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); min-width: 18px; }
.price-light td .chg.up { background: #e3f1e3; color: var(--up); }
.price-light td .chg.down { background: #fde6e6; color: var(--down); }
.price-light td .chg.flat { background: #eee; color: #555; }

/* 404 */
.error-page { text-align: center; padding: 70px 0 100px; }
.error-page img { max-width: 520px; margin: 0 auto 10px; width: 100%; }
.error-page .code { font-family: var(--font-head); font-weight: 900; font-size: clamp(4rem, 12vw, 8rem); color: var(--green); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c5d8b0; position: relative; margin-top: 0; }
.site-footer .strata { position: absolute; top: -59px; left: 0; height: 60px; }
.footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #dcedc8; text-decoration: none; }
.site-footer a:hover { color: var(--wheat); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-text small { color: var(--wheat); }
.footer-brand p { font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-links a { display: inline-flex; gap: 6px; align-items: center; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .9rem; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { color: var(--wheat); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.socials a:hover { background: var(--wheat); color: var(--brown-900); border-color: var(--wheat); }
.footer-bottom { border-top: 1px dashed rgba(255, 255, 255, .18); padding: 20px 0; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--wheat); }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; }
.newsletter input::placeholder { color: #a5c08a; }

/* ---------- Kembali ke atas & toast ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 16px 16px 16px 4px; border: 0; background: var(--brown); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-700); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 300; background: var(--green-900); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; opacity: 0; visibility: hidden; transition: .3s; max-width: calc(100vw - 30px); font-size: .92rem; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: var(--wheat); }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { animation: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .nav-list > li > a, .nav-list > li > button { padding: 10px 8px; font-size: .86rem; }
  .header-cta .btn { display: none; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .hero-grid, .board-wrap, .welcome, .testi, .split, .video-feature, .layout-side, .officer-lead { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .welcome-photo { max-width: 340px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-item:nth-child(3) { border-right: 0; }
  .quick-item:nth-child(-n+3) { border-bottom: 1px dashed var(--line); }
  .stats-grid, .grid-4, .officer-grid, .ppid-cats, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .flow::before { display: none; }
  .program-grid, .news-grid, .gallery-grid, .video-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-layout, .two-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .officer-lead img { max-width: 280px; }
}
@media (max-width: 720px) {
  .topbar-links, .topbar-date { display: none; }
  .brand-text strong { font-size: .95rem; }
  .brand img { width: 42px; height: 42px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item { border-right: 1px dashed var(--line) !important; border-bottom: 1px dashed var(--line); }
  .quick-item:nth-child(even) { border-right: 0 !important; }
  .program-grid, .news-grid, .gallery-grid, .video-grid, .grid-2, .grid-3, .form-grid, .contact-cards, .ppid-cats { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }

  .news-row { grid-template-columns: 100px 1fr; gap: 12px; padding: 10px; }
  .news-feature { min-height: 360px; }
  .cta { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0 90px; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .ph-icon { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .hero-art { padding-left: 0; }
  .calendar-card { left: 0; }
  .weather-chip { top: 14px; right: 6px; }
  .board { padding: 18px 14px; border-width: 10px; }
  .price-table { font-size: .84rem; }
  .testi-slider, .panel, .card, .vision { padding: 24px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .org-row::before { display: none; }
  .org-row > .org-node::before { display: none; }
  .org-row { padding-top: 14px; gap: 10px; }
  .org-node { min-width: 0; width: 100%; }
}
@media (max-width: 420px) {
  .stats-grid, .grid-4, .officer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Penyesuaian ---------- */
.icon { display: inline-block; vertical-align: -.22em; }
.seed-card .icon, .contact-card .icon, .ppid-cat .icon, .quote-mark { display: block; }
.agenda-item p span { display: inline-flex; align-items: center; gap: 4px; }
.price-table .price small { font-family: var(--font-body); font-weight: 400; font-size: .72em; color: #a5c08a; margin-left: 2px; }
.testi-slider { padding: 0; }
.testi-item { padding: 40px 40px 0; }
.testi-nav { padding: 0 40px 40px; }
@media (max-width: 720px) {
  .testi-slider { padding: 0; }
  .testi-item { padding: 26px 24px 0; }
  .testi-nav { padding: 0 24px 26px; }
}
@media (min-width: 1025px) {
  .org-row { flex-wrap: nowrap; width: 100%; }
  .org-row > .org-node { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .org-row::before, .org-row > .org-node::before { display: none; }
}
@media (max-width: 720px) {
  .hero-art { padding-bottom: 0; }
  .hero-window { aspect-ratio: 1 / 1; }
  .calendar-card { position: relative; left: auto; bottom: auto; width: auto; margin: -50px 12px 0; }
}
@media (max-width: 720px) {
  .tabs-light .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .tabs-light .tab-btn { white-space: nowrap; }
}
.header-cta .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--wheat); }
@media (max-width: 720px) { .quick-strip { margin-top: 28px; } }
