/* Situs publik PC ISNU Kabupaten Sukoharjo — gaya portal berita, hijau NU. */
:root {
  --green: #0A7A44;
  --green-dark: #065C33;
  --green-deep: #04391F;
  --green-soft: #E8F5EE;
  --gold: #C99A2E;
  --gold-soft: #FBF3DF;
  --ink: #14211B;
  --ink-2: #33443B;
  --muted: #64746B;
  --line: #E1E8E4;
  --bg: #F6F8F7;
  --white: #FFFFFF;
  --r: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 28, 0.05), 0 8px 24px rgba(16, 40, 28, 0.06);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-deep); color: #BFD8CB; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #BFD8CB; }
.topbar a:hover { color: #fff; }
.topbar .socials { display: flex; gap: 14px; align-items: center; }
.topbar .socials svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--green-deep); }
.brand span { display: block; font-size: 13px; color: var(--muted); }
.search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; min-width: 280px; }
.search input { border: 0; background: none; outline: none; font: inherit; font-size: 14px; flex: 1; min-width: 0; }
.search button { border: 0; background: var(--green); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

/* ---------- Navigasi ---------- */
.nav { background: var(--green); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 12px 0; cursor: pointer; font: inherit; font-weight: 700; gap: 8px; align-items: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14.5px; padding: 14px 16px; }
.menu > li > a:hover, .menu > li.active > a { background: var(--green-dark); color: #fff; }
.menu > li.active > a { box-shadow: inset 0 -3px 0 var(--gold); }
.menu .caret { width: 12px; height: 12px; opacity: .8; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow); display: none; }
.menu > li:hover .submenu, .menu > li:focus-within .submenu { display: block; }
.submenu a { color: var(--ink-2); font-weight: 500; padding: 9px 18px; }
.submenu a:hover, .submenu li.active a { background: var(--green-soft); color: var(--green-dark); }

/* ---------- Umum ---------- */
main { min-height: 50vh; }
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: linear-gradient(var(--green), var(--gold)); }
.section-head p { margin: 6px 0 0 16px; color: var(--muted); }
.more { font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: .15s; }
.btn-primary { background: var(--gold); color: var(--green-deep); }
.btn-primary:hover { background: #DDAE3F; color: var(--green-deep); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--green-dark); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; }
.badge-gold { background: var(--gold-soft); color: #8A6512; }
.muted { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; }
.empty-state { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Page header ---------- */
.page-hero { background: linear-gradient(120deg, var(--green-deep), var(--green)); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(226,182,73,.12); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 0; max-width: 820px; }
.page-hero p { color: #CFE6DA; margin: 10px 0 0; max-width: 720px; }
.crumbs { font-size: 13px; color: #A9CDBA; margin-bottom: 10px; }
.crumbs a { color: #DCEFE5; }

/* ---------- Hero beranda ---------- */
.hero { background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(226,182,73,.18), transparent 60%), linear-gradient(130deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%); color: #fff; padding: 56px 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; margin-bottom: 16px; }
.hero p { color: #D3E9DD; font-size: 17px; margin: 0 0 26px; max-width: 560px; }
.hero .kicker { display: inline-block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.headline { display: block; background: #fff; border-radius: 16px; overflow: hidden; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.headline .img { aspect-ratio: 16/9; background: var(--green-soft); }
.headline .img img { width: 100%; height: 100%; object-fit: cover; }
.headline .body { padding: 20px 22px 22px; }
.headline h2 { font-size: 21px; margin: 8px 0; }
.headline:hover h2 { color: var(--green); }
.headline p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }

/* ---------- Kartu berita ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--green-soft), #fff); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); opacity: .35; }
.card .thumb .placeholder svg { width: 54px; height: 54px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 17.5px; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .meta { margin-top: auto; padding-top: 6px; }

/* ---------- Tentang & sambutan ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about p { color: var(--ink-2); font-size: 16.5px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pillar { background: var(--bg); border-radius: var(--r); padding: 18px; border-left: 4px solid var(--green); }
.pillar b { display: block; color: var(--green-deep); margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 14px; }
.chair { background: var(--white); border-radius: 18px; padding: 30px; display: grid; grid-template-columns: 150px 1fr; gap: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.chair img, .chair .avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--green-soft); }
.chair blockquote { margin: 0; font-size: 16.5px; color: var(--ink-2); font-style: italic; white-space: pre-line; }
.chair cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--green-deep); }

/* ---------- Statistik ---------- */
.stats { background: linear-gradient(120deg, var(--green-deep), var(--green-dark)); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat span { display: block; font-weight: 600; margin-top: 6px; }
.stat small { color: #A9CDBA; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; text-align: center; }
.stat-card b { display: block; font-size: 38px; color: var(--green); font-weight: 800; }

/* ---------- Program ---------- */
.program { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.program:hover { border-color: var(--green); box-shadow: var(--shadow); }
.program .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.program h3 { font-size: 17px; margin: 0; }
.program h3 a { color: var(--ink); }
.program p { color: var(--muted); font-size: 14.5px; margin: 0; }
.progress-rencana { background: var(--gold-soft); color: #8A6512; }
.progress-berjalan { background: #E3EEFF; color: #1D4FA8; }
.progress-selesai { background: var(--green-soft); color: var(--green-dark); }

/* ---------- Pengurus ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 18px; text-align: center; }
.person img, .person .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--green-soft); }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; font-weight: 800; font-size: 30px; }
.person b { display: block; font-size: 15.5px; }
.person span { color: var(--green); font-weight: 600; font-size: 14px; }

/* ---------- Galeri ---------- */
.album { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--green-soft); display: block; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.album:hover img { transform: scale(1.04); }
.album .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(4,30,17,.85)); color: #fff; }
.album .cap b { display: block; font-size: 15.5px; line-height: 1.3; }
.album .cap small { color: #CFE6DA; }
.photos { columns: 3 260px; column-gap: 16px; }
.photos figure { margin: 0 0 16px; break-inside: avoid; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photos a { display: block; }
.photos figcaption { padding: 8px 12px; font-size: 13.5px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(5, 15, 10, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }
.lightbox p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; margin: 0; font-size: 14px; }

/* ---------- Artikel ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 40px; }
.article h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
.article .cover { border-radius: 10px; overflow: hidden; margin: 22px 0 6px; }
.article .cover img { width: 100%; }
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose img { height: auto; border-radius: 8px; margin: 1.2em auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tags a { background: var(--bg); color: var(--ink-2); font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.tags a:hover { border-color: var(--green); color: var(--green); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); font-size: 13px; }
.share a:hover { color: var(--green); border-color: var(--green); }
.preview-bar { background: var(--gold); color: var(--green-deep); text-align: center; font-weight: 700; padding: 10px; font-size: 14px; }

/* ---------- Sidebar ---------- */
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 22px; }
.widget h3 { font-size: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--green-soft); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { border-top: 1px solid var(--line); }
.widget li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ink-2); font-size: 14.5px; }
.widget li a:hover { color: var(--green); }
.mini { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; align-items: start; }
.mini img, .mini .ph { width: 76px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--green-soft); }
.mini b { font-size: 14px; line-height: 1.35; color: var(--ink); display: block; }
.mini:hover b { color: var(--green); }
.mini small { color: var(--muted); font-size: 12px; }

/* ---------- Unduhan ---------- */
.doc { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.doc + .doc { margin-top: 12px; }
.doc .ext { width: 52px; height: 52px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.doc .info { flex: 1; min-width: 0; }
.doc .info b { display: block; }
.doc .info p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.info-list b { display: block; font-size: 14px; }
.info-list span, .info-list a { color: var(--ink-2); font-size: 15px; word-break: break-word; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input { width: 100%; padding: 11px 14px; border: 1px solid #CBD6D0; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,122,68,.15); }
textarea.input { resize: vertical; min-height: 140px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert-success { background: var(--green-soft); color: var(--green-dark); border: 1px solid #BFE3CF; }
.alert-error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 22px; }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Pagination ---------- */
.pt-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pt-pagination a, .pt-pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pt-pagination a:hover { border-color: var(--green); color: var(--green); }
.pt-pagination .is-active { background: var(--green); color: #fff; border-color: var(--green); }
.pt-pagination .is-disabled { opacity: .4; }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: #B6D1C3; margin-top: 0; font-size: 14.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 50px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: #D6EADF; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .brand b { color: #fff; }
.footer .brand span { color: #A9CDBA; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer .socials a:hover { background: var(--gold); color: var(--green-deep); }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #8FB3A1; }
.copy .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 20px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 30; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .hero .wrap, .about, .contact-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .search { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .menu { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav.open .menu { display: flex; }
  .menu a { padding: 11px 6px; }
  .submenu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
  .submenu a { color: #D6EADF; }
  .submenu a:hover, .submenu li.active a { background: transparent; color: #fff; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .chair { grid-template-columns: 1fr; text-align: center; }
  .chair img, .chair .avatar { margin: 0 auto; }
  .article { padding: 24px 20px; }
  .row-2, .pillars { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .topbar .date { display: none; }
  .section { padding: 40px 0; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand b { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
}
