/*
Theme Name: PPID Madrasah
Theme URI: https://malakatech.com/
Author: Malakatech
Author URI: https://malakatech.com/
Description: Tema WordPress untuk situs PPID (Pejabat Pengelola Informasi dan Dokumentasi) Madrasah / Sekolah. Gaya Microsoft Fluent Design dengan warna hijau madrasah. Informasi Publik diambil dari custom post type, menu mengikuti sistem WordPress, dan nama sekolah serta konten dapat diatur melalui Customizer.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ppid-madrasah
*/

:root {
  --hijau-tua: #14532d;
  --hijau: #15803d;
  --hijau-terang: #22c55e;
  --hijau-soft: #f0fdf4;
  --hijau-border: #bbf7d0;
  --emas: #ca8a04;
  --ink: #1b1a19;
  --ink-2: #605e5c;
  --ink-3: #8a8886;
  --line: #e1dfdd;
  --surface: #ffffff;
  --bg: #faf9f8;
  --shadow-2: 0 1.6px 3.6px rgba(0,0,0,.08), 0 0.3px 0.9px rgba(0,0,0,.06);
  --shadow-8: 0 3.2px 7.2px rgba(0,0,0,.10), 0 0.6px 1.8px rgba(0,0,0,.08);
  --shadow-16: 0 6.4px 14.4px rgba(0,0,0,.12), 0 1.2px 3.6px rgba(0,0,0,.10);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

svg.ico { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 24px; height: 24px; }

/* ===== Top command bar ===== */
.topbar { background: var(--hijau-tua); color: #fff; font-size: 12.5px; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.85); }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item .ico { width: 14px; height: 14px; stroke-width: 1.7; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar-right a:hover { color: #fff; }

/* ===== Header ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-tua) 100%); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-8); overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.brand-text h1 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--hijau-tua); }
.brand-text p { font-size: 12px; color: var(--ink-2); font-weight: 400; }

.header-search { margin-left: auto; position: relative; width: 280px; }
.header-search input { width: 100%; padding: 8px 12px 8px 36px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.header-search input:focus { border-color: var(--hijau); box-shadow: 0 0 0 1px var(--hijau); background: #fff; }
.header-search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; display: none; }

/* ===== Nav (wp_nav_menu) ===== */
.main-nav { background: var(--hijau); box-shadow: var(--shadow-2); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; flex-wrap: wrap; position: relative; }
.menu-toggle { display: none; background: none; border: none; color: #fff; padding: 12px 16px; cursor: pointer; align-items: center; gap: 8px; font-family: inherit; font-size: 13.5px; font-weight: 500; }
.menu-toggle .ico { width: 20px; height: 20px; }

.nav-inner ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; }
.nav-inner ul li { position: relative; }
.nav-inner ul li a { color: rgba(255,255,255,.9); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 12px 16px; display: flex; align-items: center; gap: 7px; border-bottom: 3px solid transparent; transition: background .15s, border-color .15s; }
.nav-inner ul li a:hover { background: rgba(255,255,255,.1); }
.nav-inner ul li.current-menu-item > a,
.nav-inner ul li.current_page_item > a { color: #fff; border-bottom-color: var(--emas); background: rgba(255,255,255,.08); }

/* submenu */
.nav-inner ul li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--surface); box-shadow: var(--shadow-16); border-radius: 0 0 var(--radius) var(--radius); flex-direction: column; min-width: 200px; padding: 6px 0; z-index: 60; }
.nav-inner ul li:hover > ul { display: flex; }
.nav-inner ul li ul li a { color: var(--ink); padding: 9px 16px; border-bottom: none; font-weight: 500; }
.nav-inner ul li ul li a:hover { background: var(--hijau-soft); color: var(--hijau-tua); }

/* fallback menu */
.nav-fallback { display: flex; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ===== Hero slider ===== */
.slider { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-16); margin-bottom: 28px; height: 340px; }
.slides { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; inset: 0; color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; overflow: hidden; }
.slide.active { opacity: 1; visibility: visible; }
.slide-inner { position: relative; z-index: 2; height: 100%; padding: 44px 64px; display: flex; flex-direction: column; justify-content: center; }
.slide:not(.has-bg)::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); z-index: 1; }
.slide-1 { background: linear-gradient(120deg, var(--hijau-tua) 0%, var(--hijau) 100%); }
.slide-2 { background: linear-gradient(120deg, #134e4a 0%, #0f766e 100%); }
.slide-3 { background: linear-gradient(120deg, #1e3a5f 0%, #15803d 100%); }

/* gambar latar + efek zoom (Ken Burns) */
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform: scale(1); }
.slide.active .slide-bg.slide-zoom { animation: ppid-kenburns 12s ease-out forwards; }
@keyframes ppid-kenburns { from { transform: scale(1); } to { transform: scale(1.18); } }
.slide-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(15,40,30,.82) 0%, rgba(20,83,45,.62) 45%, rgba(15,30,50,.40) 100%); }
@media (prefers-reduced-motion: reduce) { .slide.active .slide-bg.slide-zoom { animation: none; } }

.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.15); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.2); width: fit-content; position: relative; z-index: 1; }
.hero-tag .ico { width: 14px; height: 14px; }
.slide h2 { font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; max-width: 620px; position: relative; z-index: 1; color: #fff; }
.slide p { font-size: 14.5px; color: rgba(255,255,255,.9); margin-top: 12px; max-width: 560px; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all .15s; }
.btn-primary { background: #fff; color: var(--hijau-tua); box-shadow: var(--shadow-8); }
.btn-primary:hover { background: var(--hijau-soft); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn .ico { width: 16px; height: 16px; }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .15s; }
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-arrow .ico { width: 22px; height: 22px; }
.slider-dots { position: absolute; bottom: 18px; left: 64px; z-index: 5; display: flex; gap: 8px; }
.dot { width: 28px; height: 5px; border-radius: 3px; cursor: pointer; border: none; padding: 0; background: rgba(255,255,255,.35); transition: background .2s; }
.dot.active { background: #fff; }

/* ===== Home section bands ===== */
.home-band { padding: 36px 0; }
.home-band > .container { padding-top: 0; padding-bottom: 0; }
.home-band .tentang,
.home-band .artikel,
.home-band .alur,
.home-band .statistik,
.home-band .two-col { margin-top: 0; }
.home-band .section-head { margin-top: 0; }

/* ===== Section title ===== */
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-head .bar { width: 4px; height: 22px; border-radius: 2px; background: var(--emas); }
.section-head h3 { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.section-sub { font-size: 13px; color: var(--ink-2); margin: -8px 0 16px 14px; }

/* ===== Klasifikasi cards ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-2); transition: box-shadow .18s, transform .18s; cursor: pointer; position: relative; text-decoration: none; color: inherit; display: block; }
.card:hover { box-shadow: var(--shadow-16); transform: translateY(-2px); }
.card-ico { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--hijau-soft); color: var(--hijau); border: 1px solid var(--hijau-border); margin-bottom: 14px; }
.card-ico .ico { width: 22px; height: 22px; }
.card h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.card-link { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--hijau); margin-top: 12px; }
.card-link .ico { width: 14px; height: 14px; }

/* ===== Two column ===== */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* ===== Panel / info list ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--hijau-soft); }
.panel-head .ico { color: var(--hijau); }
.panel-head h4 { font-size: 15px; font-weight: 600; color: var(--hijau-tua); }
.panel-head .more { margin-left: auto; font-size: 12px; color: var(--hijau); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.panel-head .more .ico { width: 14px; height: 14px; }

.info-row { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; transition: background .12s; text-decoration: none; color: inherit; }
.info-row:last-child { border-bottom: none; }
.info-row:hover { background: var(--bg); }
.info-row-ico { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.info-row-body { flex: 1; min-width: 0; }
.info-row-body h5 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.info-row-meta { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-row-meta span { display: flex; align-items: center; gap: 4px; }
.info-row-meta .ico { width: 12px; height: 12px; }
.badge { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: var(--hijau-soft); color: var(--hijau-tua); border: 1px solid var(--hijau-border); }
.badge.berkala { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.badge.serta-merta { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.badge.setiap-saat { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.info-row-dl { color: var(--ink-3); flex-shrink: 0; }
.info-row:hover .info-row-dl { color: var(--hijau); }

/* ===== Sidebar widgets ===== */
.side-stack { display: flex; flex-direction: column; gap: 20px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--hijau); letter-spacing: -.02em; }
.stat-label { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.quick-list { padding: 8px; }
.quick-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); transition: background .12s; }
.quick-item:hover { background: var(--hijau-soft); }
.quick-item .ico { color: var(--hijau); flex-shrink: 0; }
.quick-item span { font-size: 13px; font-weight: 500; }
.quick-item .chev { margin-left: auto; color: var(--ink-3); width: 16px; height: 16px; }

/* ===== Tentang PPID ===== */
.tentang { margin-top: 36px; }
.tentang-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.tentang-text .lead { font-size: 14.5px; color: var(--ink); line-height: 1.7; margin-bottom: 14px; }
.tentang-text p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.tentang-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point-ico { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: var(--hijau-soft); border: 1px solid var(--hijau-border); color: var(--hijau); display: flex; align-items: center; justify-content: center; }
.point-ico .ico { width: 19px; height: 19px; }
.point h5 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.point p { font-size: 12px; color: var(--ink-2); line-height: 1.45; margin: 0; }
.tentang-aside { background: linear-gradient(160deg, var(--hijau-tua), var(--hijau)); border-radius: 12px; padding: 26px; color: #fff; box-shadow: var(--shadow-16); position: relative; overflow: hidden; }
.tentang-aside::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); }
.tentang-aside h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; position: relative; z-index: 1; }
.struktur-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); position: relative; z-index: 1; }
.struktur-item:last-child { border-bottom: none; }
.struktur-ico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; }
.struktur-ico .ico { width: 18px; height: 18px; }
.struktur-item .role { font-size: 11px; color: rgba(255,255,255,.75); }
.struktur-item .nama { font-size: 13.5px; font-weight: 600; }

/* ===== Article carousel ===== */
.artikel { margin-top: 32px; }
.artikel-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.artikel-nav { display: flex; gap: 8px; }
.art-arrow { width: 38px; height: 38px; border-radius: 8px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); transition: all .15s; }
.art-arrow:hover { background: var(--hijau-soft); color: var(--hijau); border-color: var(--hijau-border); }
.art-arrow:disabled { opacity: .4; cursor: not-allowed; }
.art-arrow:disabled:hover { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.art-arrow .ico { width: 20px; height: 20px; }
.artikel-viewport { overflow: hidden; }
.artikel-track { display: flex; gap: 18px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.art-card { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2); transition: box-shadow .18s, transform .18s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.art-card:hover { box-shadow: var(--shadow-16); transform: translateY(-3px); }
.art-thumb { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); background-size: cover; background-position: center; }
.art-thumb-1 { background: linear-gradient(135deg, var(--hijau-tua), var(--hijau)); }
.art-thumb-2 { background: linear-gradient(135deg, #134e4a, #0f766e); }
.art-thumb-3 { background: linear-gradient(135deg, #1e3a5f, #15803d); }
.art-thumb-4 { background: linear-gradient(135deg, #3f3f46, #15803d); }
.art-thumb-5 { background: linear-gradient(135deg, #7c2d12, #ca8a04); }
.art-thumb .ico { width: 46px; height: 46px; stroke-width: 1.2; opacity: .9; }
.art-cat { position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--hijau-tua); padding: 4px 10px; border-radius: 12px; backdrop-filter: blur(4px); }
.art-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.art-date { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.art-date .ico { width: 13px; height: 13px; }
.art-body h4 { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.art-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.art-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--hijau); margin-top: 14px; }
.art-foot .ico { width: 14px; height: 14px; }

/* ===== Alur permohonan ===== */
.alur { margin-top: 32px; }
.alur-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.alur-step { text-align: center; padding: 0 12px; position: relative; }
.alur-step::after { content: ""; position: absolute; top: 22px; left: 60%; right: -40%; height: 2px; background: var(--hijau-border); z-index: 0; }
.alur-step:last-child::after { display: none; }
.alur-num { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; background: var(--surface); border: 2px solid var(--hijau); color: var(--hijau); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; position: relative; z-index: 1; box-shadow: var(--shadow-2); }
.alur-step h5 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.alur-step p { font-size: 12px; color: var(--ink-2); }

/* ===== Statistik chart ===== */
.statistik { margin-top: 36px; }
.chart-card { padding: 24px 28px 20px; }
.chart-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.chart-summary { display: flex; gap: 24px; flex-wrap: wrap; }
.csum-num { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.csum-label { font-size: 11.5px; color: var(--ink-2); }
.chart-wrap { width: 100%; overflow-x: auto; }
.line-chart { width: 100%; height: auto; display: block; min-width: 560px; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-axis-label { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.lc-dot { transition: r .15s; cursor: pointer; }
.lc-area-1 { fill: url(#grad1); }
.lc-area-2 { fill: url(#grad2); }

/* ===== Single / archive content ===== */
.content-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); padding: 32px 36px; }
.entry-header { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.entry-header h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 12px; color: var(--ink); }
.entry-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.entry-meta span { display: flex; align-items: center; gap: 5px; }
.entry-meta .ico { width: 14px; height: 14px; }
.entry-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.entry-content { font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.entry-content h2 { font-size: 20px; font-weight: 600; margin: 26px 0 12px; }
.entry-content h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--hijau); text-decoration: underline; }
.entry-content img { border-radius: 8px; margin: 12px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; font-size: 13px; }
.entry-content th { background: var(--hijau-soft); color: var(--hijau-tua); font-weight: 600; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.page-title-band { background: linear-gradient(120deg, var(--hijau-tua), var(--hijau)); border-radius: 12px; padding: 32px 36px; color: #fff; margin-bottom: 28px; box-shadow: var(--shadow-16); }
.page-title-band h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.page-title-band p { font-size: 13.5px; color: rgba(255,255,255,.88); margin-top: 6px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; transition: all .15s; }
.pagination .page-numbers:hover { background: var(--hijau-soft); border-color: var(--hijau-border); color: var(--hijau); }
.pagination .page-numbers.current { background: var(--hijau); border-color: var(--hijau); color: #fff; }

.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 36px; text-align: center; color: var(--ink-2); font-size: 14px; }

/* ===== Form Permohonan & Cek Status (Fluent) ===== */
.ppid-page-form { margin-top: 4px; }
.ppid-form-wrap { max-width: 760px; }
.ppid-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-8); padding: 28px 30px; }
.ppid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ppid-form .ppid-field { margin: 0; display: flex; flex-direction: column; }
.ppid-form .ppid-field.is-wide { grid-column: 1 / -1; }
.ppid-form .ppid-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.ppid-form .ppid-field > label .req { color: #b91c1c; margin-left: 2px; }
.ppid-form input[type="text"], .ppid-form input[type="email"], .ppid-form input[type="tel"], .ppid-form input[type="number"], .ppid-form input[type="date"], .ppid-form select, .ppid-form textarea {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  /* aksen bawah ala Fluent */
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,.06);
}
.ppid-form input::placeholder, .ppid-form textarea::placeholder { color: var(--ink-3); }
.ppid-form input:hover, .ppid-form select:hover, .ppid-form textarea:hover { border-color: var(--ink-3); background: #fff; }
.ppid-form input:focus, .ppid-form select:focus, .ppid-form textarea:focus { border-color: var(--hijau); box-shadow: inset 0 -2px 0 0 var(--hijau), 0 0 0 1px var(--hijau); background: #fff; }
.ppid-form textarea { resize: vertical; min-height: 96px; }

.ppid-form-foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ppid-btn-submit { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 600; padding: 11px 22px; border: none; border-radius: var(--radius); background: var(--hijau); color: #fff; cursor: pointer; box-shadow: var(--shadow-2); transition: background .15s, transform .1s; }
.ppid-btn-submit:hover { background: var(--hijau-tua); }
.ppid-btn-submit:active { transform: translateY(1px); }
.ppid-btn-submit .ico { width: 17px; height: 17px; }
.ppid-form-note { font-size: 12px; color: var(--ink-3); }
.ppid-form-note .req { color: #b91c1c; }

/* honeypot benar-benar tersembunyi */
.ppid-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* cek status */
.ppid-cek { display: flex; gap: 12px; align-items: flex-end; max-width: 560px; padding: 22px 24px; }
.ppid-cek .ppid-field { flex: 1; margin-bottom: 0; }
.ppid-cek .ppid-field { display: flex; flex-direction: column; }
.ppid-cek .ppid-field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ppid-cek button { white-space: nowrap; cursor: pointer; border: none; font-family: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: var(--radius); }

.ppid-alert { border-radius: 10px; padding: 14px 18px; font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; }
.ppid-alert-ok { background: var(--hijau-soft); border: 1px solid var(--hijau-border); color: var(--hijau-tua); }
.ppid-alert-ok code { background: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: var(--hijau); }
.ppid-alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.ppid-status-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-8); padding: 22px 24px; max-width: 560px; margin-top: 18px; }
.ppid-status-card p { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; margin: 0; }
.ppid-status-card p:last-child { border-bottom: none; }
.ppid-status-card p span { min-width: 160px; color: var(--ink-2); font-size: 12.5px; }
.ppid-status-card code { background: var(--bg); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.ppid-badge-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 14px; }
.ppid-badge-status.st-baru { background: #eff6ff; color: #1e40af; }
.ppid-badge-status.st-diproses { background: #fefce8; color: #854d0e; }
.ppid-badge-status.st-selesai { background: var(--hijau-soft); color: var(--hijau-tua); }
.ppid-badge-status.st-ditolak { background: #fef2f2; color: #991b1b; }

@media (max-width: 560px) {
  .ppid-fields { grid-template-columns: 1fr; }
  .ppid-cek { flex-direction: column; align-items: stretch; }
  .ppid-status-card p { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ===== Live Chat widget ===== */
.ppid-lc { position: fixed; bottom: 22px; z-index: 9999; }
.ppid-lc-kanan { right: 22px; }
.ppid-lc-kiri { left: 22px; }

.ppid-lc-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--hijau); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .2s, background .2s;
  animation: ppid-lc-bob 3.2s ease-in-out infinite;
}
.ppid-lc-fab:hover { background: var(--hijau-tua); transform: scale(1.06); }
.ppid-lc-fab:active { transform: scale(.96); }
.ppid-lc-ping { position: absolute; inset: 0; border-radius: 50%; animation: ppid-lc-ping 2.2s cubic-bezier(0,0,.2,1) infinite; }

@keyframes ppid-lc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ppid-lc-ping { 0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 70% { box-shadow: 0 0 0 16px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }

.ppid-lc-panel {
  position: absolute; bottom: 72px; width: 300px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-16); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}
.ppid-lc-kanan .ppid-lc-panel { right: 0; transform-origin: bottom right; }
.ppid-lc-kiri .ppid-lc-panel { left: 0; transform-origin: bottom left; }
.ppid-lc-panel.open { opacity: 1; transform: translateY(0) scale(1); }

.ppid-lc-header { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, var(--hijau), var(--hijau-tua)); color: #fff; }
.ppid-lc-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ppid-lc-id { flex: 1; min-width: 0; line-height: 1.3; }
.ppid-lc-id strong { display: block; font-size: 14px; font-weight: 600; }
.ppid-lc-id span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.85); }
.ppid-lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: ppid-lc-dot 1.8s infinite; }
@keyframes ppid-lc-dot { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ppid-lc-close { margin-left: auto; background: rgba(255,255,255,.15); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.ppid-lc-close:hover { background: rgba(255,255,255,.28); }

.ppid-lc-body { padding: 18px 16px; background: var(--bg); }
.ppid-lc-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow-2); animation: ppid-lc-in .35s ease both .1s; }
@keyframes ppid-lc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ppid-lc-cta { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px; background: var(--hijau); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.ppid-lc-cta:hover { background: var(--hijau-tua); }

@media (max-width: 480px) { .ppid-lc-panel { width: calc(100vw - 44px); } }
@media (prefers-reduced-motion: reduce) { .ppid-lc-fab, .ppid-lc-ping, .ppid-lc-dot, .ppid-lc-bubble { animation: none; } }

/* ===== Footer ===== */
.site-footer { background: var(--hijau-tua); color: rgba(255,255,255,.85); margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.footer-brand p { font-size: 12.5px; line-height: 1.6; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: 12.5px; margin-bottom: 9px; transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; margin-bottom: 10px; }
.footer-contact .ico { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; color: var(--hijau-terang); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .alur-track { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .alur-step::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .art-card { flex: 0 0 calc((100% - 18px) / 2); }
  .tentang-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .entry { padding: 24px; }

  .menu-toggle { display: flex; }
  .nav-inner > .menu-wrap { display: none; width: 100%; }
  .nav-inner > .menu-wrap.open { display: block; }
  .nav-inner ul { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-inner ul li ul { position: static; box-shadow: none; background: rgba(0,0,0,.12); border-radius: 0; padding: 0; }
  .nav-inner ul li:hover > ul { display: flex; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .slider { height: 420px; }
  .slide-inner { padding: 28px 22px; }
  .slide h2 { font-size: 22px; }
  .slider-dots { left: 22px; bottom: 14px; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .art-card { flex: 0 0 100%; }
  .tentang-points { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}

/* WP core alignment helpers */
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin: 0 0 12px 16px; }
.alignleft { float: left; margin: 0 16px 12px 0; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
