/* ==========================================================================
   PPs IIQ Theme — gaya utama
   Skema warna: hijau tua (ilmu & ketenangan) + emas (kehormatan) di atas krem hangat.
   Tipografi: Plus Jakarta Sans (isi, sangat mudah dibaca) + Playfair Display (judul).
   ========================================================================== */

:root {
	--green-950: #062a20;
	--green-900: #0a3d2e;
	--green-800: #0f5a43;
	--green-700: #14724f;
	--green-100: #e3f1ea;
	--gold-600: #a8832e;
	--gold-500: #c9a24b;
	--gold-300: #e6cf94;
	--ivory: #faf8f2;
	--paper: #ffffff;
	--ink: #14201b;
	--ink-soft: #33443c;
	--muted: #5b6b63;
	--line: #e5e1d3;
	--shadow-sm: 0 1px 2px rgba(10, 61, 46, .06), 0 2px 8px rgba(10, 61, 46, .05);
	--shadow-md: 0 6px 24px rgba(10, 61, 46, .10);
	--shadow-lg: 0 18px 50px rgba(6, 42, 32, .18);
	--radius: 14px;
	--radius-lg: 22px;
	--font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-ar: "Amiri", "Traditional Arabic", serif;
	--header-h: 76px;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;      /* 17px: nyaman dibaca */
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }
.screen-reader-text {
	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: -9999px; top: 8px; z-index: 1000; background: var(--gold-500); color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 2.5rem); }

/* ---------- Tombol ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
	font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-gold { background: var(--gold-500); color: #1a1405; box-shadow: 0 6px 18px rgba(201, 162, 75, .35); }
.btn-gold:hover { background: var(--gold-300); color: #1a1405; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-primary { background: var(--green-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--green-700); }
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header & navigasi ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 242, .92);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--green-900); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: var(--gold-300); box-shadow: var(--shadow-sm); }
.brand-mark .icon { width: 26px; height: 26px; }
.brand-logo, .brand .custom-logo { display: block; height: 54px; width: auto; max-width: none; object-fit: contain; }
.brand-badge { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); flex: none; }
.brand-badge .brand-logo { height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: 700 1.05rem/1.2 var(--font-head); color: var(--green-900); }
.brand-sub { font-size: .76rem; letter-spacing: .02em; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 1.2rem; }
.primary-nav .menu, .primary-nav .menu ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: .15rem; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: .55rem .8rem; font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none; border-radius: 10px; }
.primary-nav .menu > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--green-800); background: var(--green-100); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .45rem; width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0;
	padding: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 20;
}
/* Jembatan hover: mencegah submenu menutup saat kursor melewati celah kecil */
.primary-nav .menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu, .primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu li { position: relative; }
.primary-nav .sub-menu a { font-weight: 500; padding: .55rem .75rem; white-space: normal; }
.primary-nav .sub-menu a:hover { background: var(--green-100); color: var(--green-800); }
/* Tingkat ke-3 dst.: tertutup, terbuka ke samping saat hover/fokus/klik */
.primary-nav .sub-menu .sub-menu { top: -.5rem; left: calc(100% - .2rem); }
.primary-nav .sub-menu > li:hover > .sub-menu, .primary-nav .sub-menu > li:focus-within > .sub-menu, .primary-nav .sub-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu .menu-item-has-children > a { padding-right: 2rem; }
.primary-nav .sub-menu .menu-item-has-children > a::after { content: ""; position: absolute; right: .9rem; top: 50%; width: .42em; height: .42em; margin: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-50%) rotate(-45deg); }
.primary-nav .sub-menu a { position: relative; }
/* Dropdown yang mendekati tepi kanan layar dibuka ke kiri */
.primary-nav .menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.primary-nav .menu > li:nth-last-child(-n+3) .sub-menu .sub-menu { left: auto; right: calc(100% - .2rem); }

/* Tombol buka/tutup submenu (dibuat oleh JS): tersembunyi di desktop berkursor */
.submenu-toggle { display: none; align-items: center; justify-content: center; width: 44px; border: 0; background: transparent; color: var(--green-800); cursor: pointer; border-radius: 10px; }
.submenu-toggle:hover { background: var(--green-100); }
.submenu-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.menu-item.is-open > .submenu-toggle svg { transform: rotate(180deg); }
@media (hover: none) and (min-width: 961px) {
	/* Layar sentuh lebar (tablet): hover tidak ada, pakai tombol */
	.primary-nav .menu > li:hover > .sub-menu { opacity: 0; visibility: hidden; }
	.primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .menu-item-has-children { display: flex; align-items: center; }
	.submenu-toggle { display: inline-flex; width: 30px; height: 36px; margin-left: -.5rem; }
	.primary-nav .sub-menu .menu-item-has-children { display: block; }
	.primary-nav .sub-menu .submenu-toggle { position: absolute; right: .25rem; top: .3rem; margin: 0; }
}
.nav-cta { margin-left: .4rem; padding: .65rem 1.2rem; }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; color: var(--green-900); cursor: pointer; }
.nav-toggle:hover { background: var(--green-100); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
	background-color: var(--green-900);
	background-image:
		radial-gradient(1000px 480px at 88% -8%, rgba(201, 162, 75, .28), transparent 62%),
		linear-gradient(105deg, rgba(6, 42, 32, .95) 0%, rgba(10, 61, 46, .88) 46%, rgba(15, 90, 67, .60) 100%),
		var(--hero-image, none);
	background-size: auto, auto, cover;
	background-position: center, center, center 35%;
	background-repeat: no-repeat;
}
.hero-pattern {
	position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M44 4l12 12 17-5-5 17 12 12-12 12 5 17-17-5-12 12-12-12-17 5 5-17L4 44l12-12-5-17 17 5z'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/g%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.bismillah { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.6 var(--font-ar); color: var(--gold-300); margin: 0 0 .6rem; text-align: left; direction: rtl; }
.eyebrow { display: inline-block; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.eyebrow-dark { color: var(--gold-600); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: .45em; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .86); max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-card { background: rgba(6, 42, 32, .55); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); padding: 1.6rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.hero-card h2 { display: flex; align-items: center; gap: .55rem; font: 700 1.1rem/1.3 var(--font-body); color: #fff; margin-bottom: 1rem; }
.hero-card h2 .icon { color: var(--gold-300); }
.hero-card .link-arrow { color: var(--gold-300); margin-top: .6rem; }
.hero-card .muted { color: rgba(255, 255, 255, .7); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.mini-list a { display: block; padding: .8rem 0; color: #fff; text-decoration: none; }
.mini-list a:hover .mini-title { text-decoration: underline; }
.mini-date { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-300); }
.mini-title { display: block; font-weight: 600; line-height: 1.45; }

/* ---------- Statistik ---------- */
.stats { position: relative; margin-top: calc(-1 * clamp(2.2rem, 4vw, 3.2rem)); z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 1.6rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { display: block; font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1.1 var(--font-head); color: var(--green-800); }
.stat-label { display: block; margin-top: .3rem; font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ---------- Seksi ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-tint { background: linear-gradient(180deg, #f3efe2, #f6f2e7); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-wrap: balance; }
.section-title-sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.2rem; }
.prose-lead { font-size: 1.14rem; color: var(--ink-soft); }

/* ---------- Grid & kartu ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--green-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 8rem; color: var(--green-700); background: linear-gradient(135deg, var(--green-100), #f3efe2); }
.thumb-fallback .icon { width: 2.6rem; height: 2.6rem; opacity: .55; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: var(--muted); }
.chip { display: inline-block; padding: .22rem .65rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .74rem; letter-spacing: .03em; }
.chip-gold { background: #f6ecd0; color: #7a5d12; }
.card-title { font-size: 1.2rem; margin: 0; }
.card-title a { color: var(--green-900); text-decoration: none; }
.card-title a:hover { color: var(--green-700); text-decoration: underline; }
.card-excerpt { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }

.program-card, .award-card, .quick-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.program-card:hover, .award-card:hover, .quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.program-card h3, .award-card h3 { font-size: 1.28rem; margin: .1rem 0 .2rem; }
.award-card h3 { font-size: 1.05rem; line-height: 1.4; }
.award-card h3 a { color: var(--green-900); text-decoration: none; }
.program-icon, .award-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: var(--gold-300); }
.award-icon { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; }
.quick-card { color: var(--ink); }
.quick-card strong { font: 700 1.1rem/1.3 var(--font-head); color: var(--green-900); }

.person-card { text-align: center; }
.person-photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-100); margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.person-card:hover .person-photo img { transform: scale(1.04); }
.person-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.person-card h3 a { color: var(--green-900); text-decoration: none; }
.person-card .muted { font-size: .88rem; line-height: 1.5; margin: 0; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-list .icon { width: 1.9rem; height: 1.9rem; color: var(--gold-600); margin-top: .15rem; }
.feature-list strong { display: block; color: var(--green-900); font-size: 1.02rem; }
.feature-list span { display: block; color: var(--muted); font-size: .94rem; }

/* ---------- Info: pengumuman & agenda ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { border-bottom: 1px solid var(--line); }
.list-clean a { display: block; padding: .95rem 0; text-decoration: none; color: var(--ink); }
.list-clean a:hover .list-title { color: var(--green-700); text-decoration: underline; }
.list-clean .mini-date { color: var(--gold-600); }
.list-title { font-weight: 600; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.agenda-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda-date { display: grid; place-items: center; min-width: 58px; padding: .5rem .3rem; border-radius: 12px; background: var(--green-800); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.agenda-date strong { font: 800 1.5rem/1 var(--font-head); }
.agenda-list a { display: block; font-weight: 600; color: var(--green-900); text-decoration: none; }
.agenda-list .muted { display: block; font-size: .88rem; }

/* ---------- Ajakan ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-950), var(--green-800)); color: #fff; padding: clamp(2.6rem, 5vw, 3.8rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, .35), transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; max-width: 30ch; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }

/* ---------- Halaman dalam ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-950), var(--green-800)); color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M44 4l12 12 17-5-5 17 12 12-12 12 5 17-17-5-12 12-12-12-17 5 5-17L4 44l12-12-5-17 17 5z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; text-wrap: balance; }
.page-title-dark { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-desc { margin-top: .6rem; color: rgba(255, 255, 255, .8); }
.article-meta { margin: .9rem 0 0; color: rgba(255, 255, 255, .78); font-size: .92rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.page-search { margin-top: 1.2rem; max-width: 520px; }
.article-body { padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(3rem, 6vw, 4.5rem); }
.article-figure { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article-figure-portrait { max-width: 320px; }
.article-figure img { display: block; width: 100%; }
.detail-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 1.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius); }
.detail-box dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.detail-box dd { margin: .15rem 0 0; font-weight: 600; color: var(--green-900); }

/* Isi artikel (tipografi membaca) */
.entry-content { font-size: 1.1rem; line-height: 1.85; color: var(--ink); max-width: 70ch; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold-500); background: #f6f1e2; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.18rem; color: var(--green-900); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--green-100); color: var(--green-900); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .3em; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--green-950); color: #e8f5ee; border-radius: var(--radius); font-size: .9rem; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content [dir="rtl"], .entry-content .arab { font-family: var(--font-ar); font-size: 1.5em; line-height: 2; }
.tag-list { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag-list a { padding: .25rem .8rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .85rem; font-weight: 600; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav div:last-child { text-align: right; }
.post-nav a { text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumbs { margin: 0 0 1rem; font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .78); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .4); }
.breadcrumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); text-decoration: underline; }
.breadcrumbs [aria-current] span { color: var(--gold-300); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Formulir ---------- */
.search-form { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); }
.search-field { flex: 1; min-width: 0; padding: .85rem 1.2rem; border: 0; background: transparent; font: inherit; color: var(--ink); }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 75, .25); }
.search-submit { border: 0; background: var(--green-800); color: #fff; padding: 0 1.3rem; cursor: pointer; }
.search-submit:hover { background: var(--green-900); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select { font: inherit; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.comment-respond .submit { background: var(--green-800); color: #fff; border: 0; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; cursor: pointer; }
.comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-list .children { list-style: none; padding-left: 1rem; margin-top: 1rem; }

/* ---------- Pagination ---------- */
.navigation.pagination { margin-top: 2.6rem; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--green-800); font-weight: 600; text-decoration: none; }
.page-numbers:hover { border-color: var(--gold-500); }
.page-numbers.current { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.page-numbers.dots { border: 0; background: transparent; }

.not-found .big-404 { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--gold-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .78); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2.6rem, 5vw, 4rem) 0; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .62); }
.footer-brand p { margin-top: 1.1rem; font-size: .96rem; max-width: 34ch; }
.footer-title { font: 700 .86rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1rem; }
.footer-menu, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.contact-list .icon { margin-top: .25rem; color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }

/* ---------- Animasi muncul ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: inline-grid; place-items: center; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: .6rem;
		padding: 1rem 1.25rem 1.5rem; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none;
	}
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav a { padding: .8rem .9rem; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu .menu-item-has-children > a::after { display: none; }
	.primary-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
	.primary-nav .menu-item-has-children > a { flex: 1 1 0; min-width: 0; }
	.submenu-toggle { display: inline-flex; width: 48px; flex: none; border-radius: 12px; }
	/* Submenu tertutup sampai tombol panahnya diklik */
	.primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu {
		display: none; flex-basis: 100%; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent;
		margin: 0 0 .3rem; padding: 0 0 0 1rem; min-width: 0; max-height: none; border-left: 2px solid var(--line); margin-left: .9rem;
	}
	.primary-nav .menu > li > .sub-menu::before { display: none; }
	.primary-nav .menu-item.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { position: static; }
	.primary-nav .sub-menu .menu-item-has-children { display: flex; }
	.primary-nav .menu > li:nth-last-child(-n+3) > .sub-menu, .primary-nav .menu > li:nth-last-child(-n+3) .sub-menu .sub-menu { left: auto; right: auto; }
	.nav-cta { margin: .3rem 0 0; }
	.hero-grid { grid-template-columns: 1fr; }
	.about-grid { grid-template-columns: 1fr; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
	body { font-size: 1.03rem; }
	.grid-3, .grid-4 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-cta .btn { width: 100%; }
	.brand-sub { display: none; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav div:last-child { text-align: left; }
	.section-head-row { align-items: flex-start; }
}
