/* ==========================================================================
   Tema Aqidah — hijau Islami modern
   ========================================================================== */

:root {
	--green-900: #082E1B;
	--green-800: #0B3D24;
	--green-700: #0D4F2C;
	--green-500: #1F7A4A;
	--green-line: #2C6B48;
	--mint: #EAF1EC;
	--mint-text: #CFE3D6;
	--gold: #E9C22B;
	--cream: #F6F4EC;
	--white: #FFFFFF;
	--ink: #12251A;
	--ink-2: #34463B;
	--muted: #4A5D52;
	--line: #E3E0D3;
	--line-soft: #EEEBDF;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 18px 40px rgba(8, 46, 27, 0.12);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ar: "Amiri", serif;
	--container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.2; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.arabic { font-family: var(--font-ar); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px;
	background: var(--gold); color: var(--green-800);
	padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100;
}
.skip-link:focus { top: 12px; }

.icon { flex: none; }

/* Pola khatam */
.pattern {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	opacity: 0.12;
	pointer-events: none;
}
.pattern--hero { opacity: 0.09; }

/* ---------- Tombol & chip ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	border: 1.5px solid transparent;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-500); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--green-800); }
.btn--gold:hover { background: #F2D04A; color: var(--green-800); }
.btn--dark { background: var(--green-800); color: var(--white); }
.btn--dark:hover { background: var(--green-700); color: var(--white); }
.btn--ghost { color: var(--white); border-color: #5E8F72; }
.btn--ghost:hover { color: var(--white); border-color: var(--gold); }

.chip {
	display: inline-block;
	font-size: 12px; font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	line-height: 1.3;
}
.chip--gold { background: var(--gold); color: var(--green-800); }
.chip--mint { background: var(--mint); color: var(--green-700); }

.eyebrow {
	display: block;
	font-size: 13px; font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--green-500);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--dark { color: var(--green-800); }

.section-title {
	margin: 12px 0 0;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	color: var(--green-800);
	letter-spacing: -0.01em;
}

.lead { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 16px 0 0; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px;
	font-weight: 700;
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.section { padding-top: 88px; padding-bottom: 88px; }
.section--tint { background: var(--mint); }
.section--dark { background: var(--green-800); color: var(--white); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .section-title { color: var(--white); font-size: clamp(26px, 2.8vw, 32px); }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

.section-head {
	display: flex; flex-wrap: wrap;
	gap: 16px 40px;
	justify-content: space-between; align-items: flex-end;
}
.section-head__copy { max-width: 640px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-900); color: var(--mint-text); font-size: 13px; }
.topbar__inner {
	display: flex; flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between; align-items: center;
	padding-top: 10px; padding-bottom: 10px;
}
.topbar__info, .topbar__links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.topbar__item { display: inline-flex; gap: 6px; align-items: center; }
.topbar a { color: var(--mint-text); }
.topbar a:hover, .topbar a.is-gold { color: var(--gold); }
.topbar a.is-gold { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px 32px;
	padding-top: 14px; padding-bottom: 14px;
}

.brand { display: flex; gap: 12px; align-items: center; color: inherit; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__kicker { font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: var(--muted); }
.brand__name { font-size: 18px; font-weight: 800; color: var(--green-700); }
.brand__city { font-size: 12px; color: var(--muted); }
.brand--light .brand__kicker { color: var(--mint-text); }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__logo { width: 56px; height: 56px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; align-items: center; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a { color: var(--ink); font-weight: 600; font-size: 15px; display: inline-block; padding: 10px 0; }
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--green-500); }
.site-nav__cta { color: var(--white) !important; }

.submenu-toggle {
	background: none; border: 0; color: var(--ink);
	width: 32px; height: 44px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: -12px;
	min-width: 240px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.site-nav .sub-menu a:hover { background: var(--mint); }
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}

.nav-toggle {
	display: none;
	width: 48px; height: 48px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--white); color: var(--green-700);
	align-items: center; justify-content: center;
	cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle__open, .nav-toggle__close { line-height: 0; }

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; flex: none; }
	.site-header__inner { flex-wrap: wrap; column-gap: 12px; }
	.brand { min-width: 0; flex: 1 1 0; }
	.site-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 8px 0 12px;
	}
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
	.site-nav .menu a { padding: 12px 0; }
	.site-nav .sub-menu {
		position: static; flex-basis: 100%;
		display: none; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0;
	}
	.site-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.site-nav .menu-item-has-children:hover > .sub-menu { display: none; }
	.site-nav .menu-item-has-children.is-open:hover > .sub-menu { display: block; }
	.site-nav__cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-800); color: var(--white); }
.hero__inner {
	position: relative;
	display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
	padding-top: 88px; padding-bottom: 112px;
}
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__basmalah { margin: 0; font-size: 30px; color: var(--gold); text-align: left; }
.hero__title {
	margin: 0;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.08; font-weight: 800; letter-spacing: -0.02em;
}
.hero__text { margin: 0; font-size: 19px; line-height: 1.65; color: #D6E7DC; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__emblem { flex: 1 1 300px; display: flex; justify-content: center; }
.hero__ring {
	width: 360px; max-width: 100%; aspect-ratio: 1;
	border-radius: 50%;
	background: var(--green-700);
	border: 1px solid var(--green-line);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 18px rgba(233, 194, 43, 0.08), 0 0 0 40px rgba(233, 194, 43, 0.04);
}
.hero__ring img { width: 74%; height: 74%; object-fit: contain; }
@media (max-width: 600px) {
	.hero__inner { padding-top: 56px; gap: 40px; }
	.hero__ring { width: 220px; }
	.brand__logo { width: 44px; height: 44px; }
	.brand__name { font-size: 16px; }
	.brand__kicker { font-size: 10px; }
}

/* ---------- Stats ---------- */
.stats-wrap { position: relative; margin-top: -56px; }
.stats {
	background: var(--white);
	border-radius: 20px;
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	overflow: hidden;
}
.stat { padding: 28px 30px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat__num { font-size: 40px; font-weight: 800; color: var(--green-700); line-height: 1.1; }
.stat__label { font-weight: 700; }
.stat__sub { font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 104px; }
.about__copy, .about__side { flex: 1 1 420px; min-width: 0; }
.about__side { display: flex; flex-direction: column; gap: 16px; }
.about__copy .link-arrow { margin-top: 12px; }
.visi { background: var(--green-700); color: var(--white); border-radius: 20px; padding: 32px; }
.visi p { margin: 12px 0 0; font-size: 19px; line-height: 1.6; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar {
	background: var(--white); border: 1px solid var(--line); border-radius: 16px;
	padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.pillar strong { color: var(--green-800); }
.pillar span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Faculties ---------- */
.faculties { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .faculties { grid-template-columns: 1fr; } }
.faculty { background: var(--white); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.faculty__head {
	position: relative; overflow: hidden;
	background: var(--green-700); color: var(--white);
	padding: 26px 28px;
	display: flex; gap: 16px; align-items: center;
}
.faculty__head > *:not(.pattern) { position: relative; }
.faculty__badge {
	width: 52px; height: 52px; flex: none;
	border-radius: 14px;
	background: var(--gold); color: var(--green-800);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 20px;
}
.faculty__name { margin: 2px 0 0; font-size: 22px; font-weight: 800; }
.prodi-list { list-style: none; margin: 0; padding: 10px 14px 16px; }
.prodi { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line-soft); }
.prodi:last-child { border-bottom: 0; }
.prodi__code {
	min-width: 64px; text-align: center;
	background: var(--mint); color: var(--green-700);
	font-weight: 800; font-size: 14px;
	padding: 8px 10px; border-radius: 10px;
}
.prodi__name { flex: 1 1 auto; min-width: 0; font-weight: 600; line-height: 1.4; }

.mahad {
	position: relative; overflow: hidden;
	background: var(--green-800); color: var(--white);
	border-radius: 20px;
	padding: 28px 32px;
	display: flex; flex-wrap: wrap; gap: 20px 32px;
	align-items: center; justify-content: space-between;
}
.mahad > *:not(.pattern) { position: relative; }
.mahad__copy { display: flex; gap: 18px; align-items: center; flex: 999 1 420px; min-width: 0; }
.mahad__arabic { font-size: 34px; color: var(--gold); flex: none; }
.mahad__title { margin: 0; font-size: 21px; font-weight: 800; }
.mahad p { margin: 4px 0 0; font-size: 15px; color: var(--mint-text); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.news-card__media {
	position: relative; aspect-ratio: 16 / 10;
	background: var(--green-700); overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__media .pattern { opacity: 0.14; }
.news-card__media .chip { position: absolute; left: 16px; bottom: 16px; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.news-card__date { font-size: 13px; color: var(--muted); font-weight: 600; }
.news-card__title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--green-800); }
.news-card__link:hover .news-card__title { color: var(--green-500); }

/* ---------- Services ---------- */
.services { display: flex; flex-wrap: wrap; gap: 48px; }
.services__col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.services__col .section-title { margin-bottom: 8px; }
.inst-card {
	background: var(--green-700); border: 1px solid var(--green-line);
	border-radius: 16px; padding: 20px 22px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	color: var(--white);
	transition: border-color .15s ease;
}
.inst-card:hover { color: var(--white); border-color: var(--gold); }
.inst-card > span { display: flex; flex-direction: column; gap: 4px; }
.inst-card strong { font-size: 17px; }
.inst-card span span { font-size: 14px; color: var(--mint-text); }
.inst-card .icon { color: var(--gold); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service {
	background: var(--green-700); border: 1px solid var(--green-line);
	color: var(--white);
	border-radius: 16px; padding: 20px;
	display: flex; flex-direction: column; gap: 4px;
	transition: border-color .15s ease;
}
.service:hover { color: var(--white); border-color: var(--gold); }
.service span { font-size: 13px; color: var(--mint-text); }
.service--featured { grid-column: 1 / -1; background: var(--gold); border-color: var(--gold); color: var(--green-800); padding: 22px; }
.service--featured:hover { color: var(--green-800); background: #F2D04A; }
.service--featured strong { font-size: 19px; font-weight: 800; }
.service--featured span { color: var(--green-800); font-size: 14px; }
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
	background: var(--gold);
	border-radius: var(--radius-lg);
	padding: 56px 48px;
	display: flex; flex-wrap: wrap; gap: 28px;
	justify-content: space-between; align-items: center;
}
.cta__copy { flex: 999 1 460px; min-width: 0; }
@media (max-width: 600px) { .cta { padding: 36px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--mint-text); padding: 64px 0 32px; }
.site-footer a { color: var(--mint-text); }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__about { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.site-footer__about p { margin: 0; font-size: 15px; line-height: 1.7; }
.site-footer__col { flex: 1 1 200px; }
.site-footer__title { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; color: var(--white); text-transform: uppercase; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.site-footer .menu a { display: inline-block; padding: 4px 0; }
.socials { display: flex; gap: 10px; }
.socials a {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--green-line);
	display: flex; align-items: center; justify-content: center;
}
.socials a:hover { border-color: var(--gold); }
.site-footer__bottom {
	margin-top: 40px; padding-top: 22px;
	border-top: 1px solid #1E5638;
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	font-size: 14px;
}
.site-footer__bottom .arabic { font-size: 18px; color: var(--gold); }

/* ---------- Halaman dalam ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--green-800); color: var(--white); }
.page-hero__inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.page-hero__title { margin: 12px 0 0; font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 900px; letter-spacing: -0.01em; }
.page-hero__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--mint-text); font-size: 15px; }
.page-hero__meta span { display: inline-flex; gap: 6px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mint-text); }
.crumbs a { color: var(--gold); }

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 32px; }
.toolbar--center { justify-content: center; margin: 24px 0; }
.search-form {
	display: flex; align-items: center;
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	padding: 4px 4px 4px 18px; width: 100%; max-width: 380px;
}
.search-form input {
	flex: 1; min-width: 0; border: 0; background: transparent;
	font: inherit; color: var(--ink); padding: 8px 0;
}
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-form button {
	width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: var(--green-700); color: var(--white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

.layout-sidebar { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.layout-sidebar .entry { flex: 999 1 560px; min-width: 0; }
.sidebar { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget-title { margin: 0 0 12px; font-size: 17px; color: var(--green-800); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.widget li:last-child { border-bottom: 0; }
.widget h2, .widget .wp-block-heading { margin: 0 0 12px; font-size: 17px; color: var(--green-800); }
.widget .wp-block-search__label { font-weight: 700; color: var(--green-800); }
.widget .wp-block-search__input { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; }
.widget .wp-block-search__button {
	background: var(--green-700); color: var(--white); border: 0;
	border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.widget--cta { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.widget--cta .widget-title { color: var(--white); }
.widget--cta p { color: var(--mint-text); margin: 0 0 16px; }

.entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.entry--page { max-width: 860px; margin: 0 auto; }
.entry__thumb { margin: 0 0 28px; }
.entry__thumb img { width: 100%; border-radius: 14px; display: block; }
.entry__content { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2, .entry__content h3 { color: var(--green-800); margin-top: 1.8em; }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; }
.entry__content img { border-radius: 12px; }
.entry__content blockquote {
	margin: 1.6em 0; padding: 20px 24px;
	background: var(--mint); border-radius: 14px;
	color: var(--green-800); font-weight: 500;
}
.entry__content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry__content th { background: var(--mint); }
.entry__content .wp-block-button__link { background: var(--green-700); color: var(--white); border-radius: 999px; text-decoration: none; }
.entry__tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { background: var(--mint); color: var(--green-700); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

.post-nav {
	margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.post-nav a { display: flex; flex-direction: column; gap: 4px; font-weight: 700; line-height: 1.4; }
.post-nav small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.post-nav__next { text-align: right; }

.pagination-wrap { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--white); border: 1px solid var(--line);
	font-weight: 700;
}
.nav-links .page-numbers.current { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.empty { text-align: center; max-width: 640px; margin: 0 auto; }
.empty h2 { color: var(--green-800); }
.empty__arabic { font-size: 30px; color: var(--green-500); margin: 0; }

.comments { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit;
}
.comment-form .submit {
	background: var(--green-700); color: var(--white); border: 0;
	padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px;
}

/* Kelas bawaan WP */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .news-card__title::before { content: "★ "; color: var(--gold); }

/* ==========================================================================
   v1.3 — foto, profil, ikon merek, kategori, tampilan baca
   ========================================================================== */

.section--flush-top { padding-top: 0; }
.section-head--stack { display: block; margin-bottom: 40px; }

/* Ikon merek */
.icon--brand { flex: none; }
.topbar__wa .brand-whatsapp { color: #25D366; }
.socials .social { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.socials .social--whatsapp { color: #25D366; border-color: rgba(37, 211, 102, .45); }
.socials .social--whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.socials .social--facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.socials .social--youtube:hover { background: #FF0000; border-color: #FF0000; color: #fff; }
.socials .social--instagram:hover { background: #E4405F; border-color: #E4405F; color: #fff; }

/* Hero dengan foto */
.hero__bg, .page-hero__bg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.hero--photo::after, .page-hero--photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(8, 46, 27, .94) 0%, rgba(8, 46, 27, .82) 45%, rgba(8, 46, 27, .55) 100%);
}
.hero--photo .pattern, .page-hero--photo .pattern { z-index: 1; }
.hero--photo .hero__inner, .page-hero--photo .page-hero__inner { z-index: 2; }
.page-hero__inner { z-index: 1; }
.page-hero--lg .page-hero__inner { padding-top: 96px; padding-bottom: 96px; }
.page-hero__lead { margin: 18px 0 0; max-width: 680px; font-size: 19px; line-height: 1.6; color: #D6E7DC; }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--green-700); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item a { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 28px 14px 12px; font-size: 13px; color: #fff; text-align: left; margin: 0;
	background: linear-gradient(transparent, rgba(8, 46, 27, .85));
	pointer-events: none;
}
/* Pola mosaik per jumlah foto, supaya tidak ada sel kosong. */
.gallery-grid--1 { grid-template-columns: 1fr; grid-auto-rows: 420px; }
.gallery-grid--1 .gallery-item:first-child { grid-column: auto; grid-row: auto; }
.gallery-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
.gallery-grid--2 .gallery-item:first-child { grid-column: auto; grid-row: auto; }
.gallery-grid--3, .gallery-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
.gallery-grid--4 .gallery-item:first-child { grid-column: auto; grid-row: auto; }
.gallery-grid--7 .gallery-item:nth-child(6), .gallery-grid--7 .gallery-item:nth-child(7),
.gallery-grid--8 .gallery-item:nth-child(8) { grid-column: span 2; }
@media (max-width: 760px) {
	.gallery-grid, .gallery-grid--3, .gallery-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
	.gallery-grid .gallery-item:first-child { grid-column: 1 / -1; grid-row: span 2; }
	.gallery-grid .gallery-item:nth-child(n+2) { grid-column: auto; }
	.gallery-grid--2 .gallery-item:last-child, .gallery-grid--4 .gallery-item:last-child,
	.gallery-grid--6 .gallery-item:last-child, .gallery-grid--8 .gallery-item:last-child { grid-column: 1 / -1; }
	.gallery-grid--1, .gallery-grid--2, .gallery-grid--4 { grid-auto-rows: 200px; }
	.gallery-grid--1 .gallery-item:first-child { grid-row: span 1; }
}

/* ---------- Profil ---------- */
.profile-nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 81px; z-index: 40; }
.admin-bar .profile-nav { top: 113px; }
@media (max-width: 1023px) { .profile-nav, .admin-bar .profile-nav { position: static; } }
.profile-nav__inner { display: flex; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; }
.profile-nav a { white-space: nowrap; display: inline-block; padding: 14px 0; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.profile-nav a:hover { color: var(--green-700); border-bottom-color: var(--gold); }
[id] { scroll-margin-top: 150px; }

.profile-intro { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.profile-intro__copy { flex: 999 1 520px; min-width: 0; }
.profile-intro__verse { margin: 0 0 28px; }
.profile-intro__verse p { margin: 0; font-size: 34px; line-height: 1.6; color: var(--green-500); }
.profile-intro__verse figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; text-align: left; }
.profile-intro__statement { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; font-weight: 700; color: var(--green-800); letter-spacing: -0.01em; }
.facts { flex: 1 1 320px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 8px 24px; }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green-500); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 8px; bottom: 8px; width: 2px; background: #C9DCCF; }
.timeline__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 40px; padding-bottom: 36px; position: relative; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: ""; position: absolute; left: 103px; top: 8px; width: 16px; height: 16px;
	border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--mint), 0 0 0 6px var(--green-700);
}
.timeline__year { font-size: 22px; font-weight: 800; color: var(--green-700); text-align: right; padding-right: 16px; line-height: 1.3; }
.timeline__body h3 { margin: 0; font-size: 19px; color: var(--green-800); }
.timeline__body p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 600px) {
	.timeline::before { left: 7px; }
	.timeline__item { grid-template-columns: 1fr; padding-left: 36px; }
	.timeline__item::before { left: 0; }
	.timeline__year { text-align: left; padding: 0; font-size: 18px; }
}

.vision { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.vision__visi {
	flex: 1 1 380px; position: relative; overflow: hidden;
	background: var(--green-700); color: #fff; border-radius: 24px; padding: 40px;
}
.vision__visi > *:not(.pattern) { position: relative; }
.vision__visi p { margin: 14px 0 0; font-size: 22px; line-height: 1.55; font-weight: 600; }
.vision__rest { flex: 999 1 460px; min-width: 0; }
.editor-hint { border: 2px dashed #C9DCCF; border-radius: 20px; padding: 28px; }
.editor-hint p { color: var(--muted); }

.rector { position: relative; overflow: hidden; }
.rector__inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rector__photo { flex: 1 1 260px; max-width: 360px; }
.rector__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; display: block; }
.rector__photo .rector__logo { object-fit: contain; background: var(--green-700); padding: 40px; }
.rector__copy { flex: 999 1 460px; min-width: 0; }
.rector__text { margin-top: 16px; font-size: 18px; line-height: 1.8; color: #E4EFE8; }
.rector__text p:first-child::before { content: "“"; display: block; font-size: 72px; line-height: .6; color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.rector__name { margin: 24px 0 0; font-weight: 800; font-size: 19px; color: #fff; }
.rector__role { margin: 2px 0 0; color: var(--gold); font-size: 15px; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.figure-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.figure-card__mono {
	width: 64px; height: 64px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--green-700); color: var(--gold); font-weight: 800; font-size: 20px; letter-spacing: .04em;
	box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--gold);
}
.figure-card__role { display: block; margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-500); }
.figure-card__name { margin: 4px 0 0; font-size: 20px; color: var(--green-800); }
.figure-card p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.65; }

.faculty-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.faculty-strip__item { background: var(--white); border-radius: 20px; padding: 28px; }
.faculty-strip__item h3 { margin: 0 0 14px; color: var(--green-800); font-size: 19px; }
.faculty-strip__item ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.faculty-strip__item li { display: flex; gap: 12px; align-items: center; line-height: 1.4; }
.faculty-strip__item .prodi__code { min-width: 58px; font-size: 13px; padding: 6px 8px; }
.faculty-strip__item--dark { background: var(--green-800); color: #fff; }
.faculty-strip__item--dark h3 { color: var(--gold); }
.faculty-strip__item--dark li { display: block; color: var(--mint-text); }
.faculty-strip__item--dark a { color: var(--mint-text); }
.faculty-strip__item--dark a:hover { color: var(--gold); }
.faculty-strip__item--dark strong { color: #fff; }

.location { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.location__info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.location__map { flex: 999 1 480px; min-height: 360px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--mint); }
.location__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.contact-list .icon { margin-top: 3px; color: var(--green-500); }
.contact-list__wa .brand-whatsapp { color: #1DA851; }

/* ---------- Kategori ---------- */
.toolbar--split { justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 999 1 480px; min-width: 0; }
.cat-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
	padding: 8px 16px; border-radius: 999px;
	background: var(--white); border: 1px solid var(--line);
	color: var(--ink); font-weight: 600; font-size: 14px;
}
.cat-chip span { font-size: 12px; color: var(--muted); font-weight: 700; }
.cat-chip:hover { border-color: var(--green-500); color: var(--green-700); }
.cat-chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.cat-chip.is-active span { color: var(--gold); }
.toolbar--split .search-form { flex: 1 1 280px; }

/* ---------- Tampilan baca ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }
.read-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }

.article__head { position: relative; overflow: hidden; background: var(--mint); padding: 56px 24px 40px; }
.pattern--soft { opacity: .05; }
.article__head .pattern rect { fill: url(#aqidah-khatam); }
.article__head-inner { position: relative; max-width: 760px; margin: 0 auto; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--green-500); }
.article__title { margin: 16px 0 0; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--green-800); }
.article__dek { margin: 16px 0 0; font-size: 20px; line-height: 1.6; color: var(--ink-2); }
.article__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 15px; color: var(--muted); }
.article__meta > span { display: inline-flex; gap: 6px; align-items: center; }
.article__meta .chip { font-size: 13px; padding: 6px 12px; background: var(--white); border: 1px solid #C9DCCF; }
.article__meta .chip:hover { background: var(--green-700); color: #fff; }

.share { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
	position: relative; width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--white); border: 1px solid var(--line); color: var(--green-700); cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.share__btn--whatsapp { color: #1DA851; }
.share__btn--whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share__btn--facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share__btn--x:hover { background: #000; border-color: #000; color: #fff; }
.share__btn--telegram:hover { background: #26A5E4; border-color: #26A5E4; color: #fff; }
.share__btn--copy:hover, .share__btn.is-copied { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.share__copied:not(:empty) {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: var(--green-800); color: #fff; font-size: 12px; font-weight: 600;
	padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}

.article__hero { max-width: 1040px; margin: 0 auto; padding: 0 24px; transform: translateY(0); }

.article__hero figcaption { text-align: left; max-width: 760px; margin: 10px auto 0; }

.article__body { max-width: 720px; margin: 0 auto; padding: 48px 24px 0; font-size: 19px; line-height: 1.85; color: #22352A; }
.article__body > p:first-child { font-size: 21px; line-height: 1.7; color: var(--ink); }
.article__body p { margin: 0 0 1.35em; }
.article__body h2 { font-size: 27px; line-height: 1.3; margin: 1.8em 0 .6em; }
.article__body h3 { font-size: 22px; line-height: 1.35; margin: 1.6em 0 .5em; }
.article__body ul, .article__body ol { padding-left: 1.4em; margin: 0 0 1.35em; }
.article__body li { margin-bottom: .45em; }
.article__body li::marker { color: var(--green-500); font-weight: 700; }
.article__body figure { margin: 2em 0; }
.article__body .wp-block-image img, .article__body img { height: auto; border-radius: 14px; }
.article__body .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.article__body .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.article__body .alignfull img { border-radius: 0; }
@media (max-width: 860px) { .article__body .alignwide { margin-left: 0; margin-right: 0; } }
.article__body blockquote, .article__body .wp-block-quote {
	margin: 2em 0; padding: 4px 0 4px 28px; background: none; border-radius: 0;
	border-left: 4px solid var(--gold); font-size: 22px; line-height: 1.55; font-weight: 600; color: var(--green-800);
}
.article__body blockquote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--muted); }
.article__body .wp-block-pullquote { border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 1.5em 0; text-align: center; }
.article__body .wp-block-gallery { gap: 10px; }
.article__body hr { border: 0; text-align: center; margin: 2.4em 0; }
.article__body hr::after { content: "✦ ✦ ✦"; color: var(--gold); letter-spacing: .6em; }
.article__body [lang="ar"], .article__body .arabic { font-family: var(--font-ar); font-size: 1.35em; line-height: 2; direction: rtl; }
.article__body .wp-block-embed iframe { width: 100%; border-radius: 14px; }
.article__body .wp-block-file { background: var(--mint); padding: 16px 20px; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.article__body .wp-block-file__button { background: var(--green-700); color: #fff; border-radius: 999px; padding: 8px 18px; text-decoration: none; }
.page-links { margin-top: 24px; display: flex; gap: 8px; align-items: center; }

.article__foot { max-width: 720px; margin: 0 auto; padding: 24px 24px 64px; }
.article__foot .share { padding-top: 24px; border-top: 1px solid var(--line); }

.related { background: var(--mint); padding: 72px 0; }
.related__title { margin: 0 0 28px; font-size: 26px; color: var(--green-800); }
.read-more { padding-top: 64px; }
.widget-row { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 600px) {
	.article__head { padding-top: 36px; }
	.article__body { font-size: 18px; padding-top: 32px; }
	.article__body > p:first-child { font-size: 19px; }
	.article__hero { padding: 0; }
	.article__hero figcaption { padding: 0 24px; }
}
@media print {
	.topbar, .site-header, .site-footer, .share, .related, .read-more, .read-progress, .post-nav, .comments { display: none !important; }
	.article__body { max-width: none; font-size: 12pt; }
}

/* ---------- v1.4: tombol topbar & nama penulis ---------- */
.topbar__inner { padding-top: 8px; padding-bottom: 8px; }
.topbar__links { gap: 8px; }
.topbar a.topbar__btn {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 34px; padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(207, 227, 214, .35);
	background: rgba(255, 255, 255, .06);
	color: var(--mint-text);
	font-weight: 600; font-size: 13px; line-height: 1;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.topbar a.topbar__btn:hover {
	background: rgba(255, 255, 255, .14);
	border-color: var(--gold);
	color: #fff;
	transform: translateY(-1px);
}
.topbar a.topbar__btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green-800); }
.topbar a.topbar__btn--gold:hover { background: #F2D04A; border-color: #F2D04A; color: var(--green-800); }
.topbar a.topbar__btn .icon { opacity: .9; }
@media (max-width: 600px) {
	.topbar__links { width: 100%; }
	.topbar__links { flex-wrap: nowrap; gap: 6px; }
	.topbar a.topbar__btn { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 40px; padding: 6px 8px; font-size: 12px; gap: 5px; white-space: nowrap; }
}

.article__author { color: var(--ink); }
.article__author strong { color: var(--green-800); font-weight: 700; }

/* ---------- v1.5: gambar utuh + penampil zoom ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
html.viewer-open { overflow: hidden; }

.article__hero { text-align: center; }
.article__zoom { position: relative; display: inline-block; max-width: 100%; margin-top: 40px; cursor: zoom-in; border-radius: 20px; overflow: hidden; vertical-align: top; }
.article__hero .article__zoom img {
	display: block; width: auto; max-width: 100%; height: auto;
	max-height: min(85vh, 980px); object-fit: contain;
	margin: 0; border-radius: 20px;
}
.zoom-hint {
	position: absolute; right: 12px; bottom: 12px;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border-radius: 999px;
	background: rgba(8, 46, 27, .82); color: #fff;
	font-size: 13px; font-weight: 600; line-height: 1;
	pointer-events: none; transition: background-color .15s ease;
}
.article__zoom:hover .zoom-hint, .article__zoom:focus-visible .zoom-hint { background: var(--green-700); }
.article__body img.is-zoomable, .entry__content img.is-zoomable { cursor: zoom-in; }
@media (max-width: 600px) {
	.article__zoom { margin-top: 0; border-radius: 0; display: block; }
	.article__hero .article__zoom img { width: 100%; max-height: none; border-radius: 0; }
	.zoom-hint { font-size: 12px; padding: 7px 10px; }
}

.viewer {
	position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: #04160D; color: #fff; overflow: hidden;
}
.viewer::backdrop { background: rgba(4, 22, 13, .96); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__stage {
	flex: 1 1 auto; min-height: 0; position: relative;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
	cursor: zoom-in; padding: 56px 12px 8px;
}
.viewer.is-zoomed .viewer__stage { cursor: grab; }
.viewer.is-zoomed .viewer__stage:active { cursor: grabbing; }
.viewer__img {
	max-width: 100%; max-height: 100%; width: auto; height: auto;
	transform-origin: center center; will-change: transform;
	-webkit-user-drag: none; pointer-events: none; border-radius: 4px;
}
.viewer__bar {
	flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.viewer__btn {
	width: 48px; height: 48px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
	color: #fff; cursor: pointer; text-decoration: none;
}
.viewer__btn:hover, .viewer__btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--green-800); }
.viewer__pct { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; color: var(--mint-text); }
.viewer__cap { flex: none; margin: 0; padding: 0 16px 6px; text-align: center; font-size: 14px; color: var(--mint-text); }
.viewer__tip { flex: none; margin: 0; padding: 0 16px 10px; text-align: center; font-size: 12px; color: rgba(207, 227, 214, .7); }
.viewer.is-zoomed .viewer__tip { visibility: hidden; }
.viewer__close {
	position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2;
	width: 48px; height: 48px; border-radius: 50%; border: 0;
	background: var(--gold); color: var(--green-800); font-size: 30px; line-height: 1; cursor: pointer;
}

/* ---------- v1.6: menu ponsel mudah dijangkau jempol ---------- */
.site-nav .submenu-toggle svg { transition: transform .2s ease; }
.site-nav .menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }
@media (max-width: 1023px) {
	.site-nav .menu > li { align-items: stretch; }
	.site-nav .menu > li > a {
		flex: 1 1 calc(100% - 56px); min-width: 0;
		display: flex; align-items: center;
		min-height: 54px; padding: 12px 0;
		font-size: 16px;
	}
	.site-nav .menu > li > a:active, .site-nav .sub-menu a:active { color: var(--green-500); background: var(--mint); }
	.site-nav .submenu-toggle {
		width: 56px; height: auto; min-height: 54px; align-self: stretch;
		justify-content: flex-end; padding-right: 4px;
	}
	/* Induk dropdown: tulisan + panah jadi satu area besar. */
	.site-nav .is-toggle-only > .submenu-toggle { pointer-events: none; }
	.site-nav .is-toggle-only > a { flex-basis: 100%; padding-right: 56px; margin-right: -56px; position: relative; z-index: 1; }
	.site-nav .sub-menu { padding: 0 0 8px; }
	.site-nav .sub-menu li { display: block; }
	.site-nav .sub-menu a {
		display: flex; align-items: center; width: 100%;
		min-height: 48px; padding: 10px 14px; border-radius: 10px;
		font-size: 15px;
	}
	.site-nav__cta { align-self: stretch; width: 100%; min-height: 52px; margin-top: 8px; font-size: 16px; }
}

/* ---------- v1.8: rata kiri-kanan isi berita ---------- */
.is-justify .article__body p,
.is-justify .article__body li,
.is-justify.justify-pages .entry--page .entry__content p,
.is-justify.justify-pages .entry--page .entry__content li {
	text-align: justify;
	text-justify: inter-word;
	text-align-last: left;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3; /* kata ≥7 huruf, sisa ≥3 huruf di tiap sisi */
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-after: 3;
	overflow-wrap: break-word;
}
@media (min-width: 761px) {
	.is-justify-wide .article__body p,
	.is-justify-wide .article__body li,
	.is-justify-wide.justify-pages .entry--page .entry__content p,
	.is-justify-wide.justify-pages .entry--page .entry__content li {
		text-align: justify;
		text-justify: inter-word;
		text-align-last: left;
		-webkit-hyphens: auto;
		hyphens: auto;
		hyphenate-limit-chars: 7 3 3;
		overflow-wrap: break-word;
	}
}
/* Paragraf yang sengaja diatur rata tengah/kanan di editor tetap dihormati. */
.article__body .has-text-align-center, .entry__content .has-text-align-center { text-align: center !important; text-align-last: center !important; }
.article__body .has-text-align-right, .entry__content .has-text-align-right { text-align: right !important; text-align-last: right !important; }
.article__body .has-text-align-left, .entry__content .has-text-align-left { text-align: left !important; }
/* Mode "laptop saja": di ponsel jangan tampilkan pemenggalan. */
@media (max-width: 760px) {
	.is-justify-wide .article__body p, .is-justify-wide .article__body li,
	.is-justify-wide .entry__content p, .is-justify-wide .entry__content li { -webkit-hyphens: none; hyphens: none; }
}
/* Tautan panjang (URL) jangan meregangkan baris. */
.article__body a { overflow-wrap: anywhere; }

/* ---------- v1.9: Visi & Misi berupa daftar ---------- */
.vm-list { margin: 14px 0 0; padding-left: 1.6em; list-style: lower-alpha; display: flex; flex-direction: column; gap: 10px; }
.vm-list li { padding-left: 4px; line-height: 1.6; }
.vm-list li::marker { font-weight: 800; }
.visi .vm-list { font-size: 16px; }
.visi .vm-list li::marker, .vision__visi .vm-list li::marker { color: var(--gold); }
.visi .vm-text { margin: 12px 0 0; font-size: 19px; line-height: 1.6; }
.visi__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; min-height: 44px; color: var(--gold); font-weight: 700; }
.visi__more:hover { color: #fff; }
.vision__visi .vm-list { font-size: 18px; font-weight: 500; }
.vision__visi .vm-text { margin: 14px 0 0; font-size: 22px; line-height: 1.55; font-weight: 600; }
.vision__misi { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; }
.vision__misi .vm-list { font-size: 17px; color: var(--ink-2); }
.vision__misi .vm-list li::marker { color: var(--green-500); }
.vision__rest { display: flex; flex-direction: column; gap: 24px; }
.editor-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
	.vision__visi, .vision__misi { padding: 28px 24px; }
	.vision__visi .vm-list { font-size: 17px; }
}
.vision { align-items: stretch; }
.vision__visi, .vision__rest { flex: 1 1 440px; }
.vision__misi { height: 100%; box-sizing: border-box; }
.vision__rest > .vision__misi:only-child, .vision__rest > .vision__misi:first-child:nth-last-child(2) { flex: 1 1 auto; }
