/*
Theme Name: Nurush Shobah
Author: Yayasan Nurush Shobah Asiki
Description: Tema WordPress untuk website profil Yayasan Nurush Shobah Asiki. Bernuansa Islami hijau, dengan beranda, halaman unit pendidikan (PAUD, RA, MI, MTs, MA, BLK), dan blog berita. Semua teks dapat diubah dari menu Penyesuaian (Customizer) dan editor WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nurush-shobah
*/

/* ==========================================================================
   Token warna, huruf, dan pola
   ========================================================================== */
:root {
	--g-950: #072a20;
	--g-900: #0b3b2c;
	--g-800: #0f4c39;
	--g-700: #14583f;
	--g-600: #1b7050;
	--g-300: #9cc4ae;
	--g-100: #e3efe7;
	--g-50: #f3f8f4;
	--gold: #c9a24b;
	--gold-soft: #e2c87f;
	--ink: #14231c;
	--muted: #4b6156;
	--line: #d3e2d8;
	--radius: 14px;
	--wrap: 1180px;
	--font-display: "Amiri", "Noto Naskh Arabic", Georgia, serif;
	--font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Pola bintang delapan sudut (khatam), versi putih untuk latar hijau tua */
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M20 20h56v56H20z M48 8.4 87.6 48 48 87.6 8.4 48z'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='96' cy='0' r='3'/%3E%3Ccircle cx='0' cy='96' r='3'/%3E%3Ccircle cx='96' cy='96' r='3'/%3E%3C/svg%3E");
	/* Versi hijau untuk latar terang */
	--pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%2314583f' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M20 20h56v56H20z M48 8.4 87.6 48 48 87.6 8.4 48z'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='96' cy='0' r='3'/%3E%3Ccircle cx='0' cy='96' r='3'/%3E%3Ccircle cx='96' cy='96' r='3'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--g-700); text-underline-offset: 3px; }
a:hover { color: var(--g-900); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--g-900);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto; clip-path: none; color: var(--g-900); display: block;
	height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000;
	font-weight: 700; border-radius: 8px;
}

.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 100001;
	background: var(--g-900); color: #fff; padding: 10px 16px; border-radius: 8px;
	text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }

.container { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }

/* ==========================================================================
   Tombol
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-body); font-weight: 700; font-size: .98rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold-soft); color: var(--g-950); }
.btn-gold:hover { background: #f0dba0; color: var(--g-950); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-green { background: var(--g-700); color: #fff; }
.btn-green:hover { background: var(--g-800); color: #fff; }
.btn-outline { border-color: var(--g-700); color: var(--g-700); }
.btn-outline:hover { background: var(--g-100); color: var(--g-900); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--g-800), var(--g-600) 60%, var(--gold)); }
.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g-900); min-width: 0; }
.brand:hover { color: var(--g-900); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--g-800); color: var(--gold-soft); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }

.nav-toggle {
	display: none; align-items: center; gap: 10px;
	background: var(--g-700); color: #fff; border: 0; border-radius: 999px;
	padding: 10px 18px; font: 700 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu li { position: relative; }
.menu a {
	display: block; padding: 9px 16px; border-radius: 999px; color: var(--ink);
	font-weight: 600; font-size: .97rem; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.menu a:hover { background: var(--g-100); color: var(--g-900); }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a { background: var(--g-700); color: #fff; }

.menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 230px; display: none; z-index: 60;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
	box-shadow: 0 14px 32px rgba(7, 42, 32, .16);
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { border-radius: 8px; }

/* ==========================================================================
   Hero beranda
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: var(--g-900) var(--pattern);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(55% 75% at 80% 70%, rgba(201, 162, 75, .30), transparent 70%),
		linear-gradient(180deg, rgba(7, 42, 32, 0) 55%, rgba(7, 42, 32, .5));
}
.hero-inner {
	position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end;
}
.hero-copy { align-self: center; padding-block: 72px; }

.bismillah {
	font-family: var(--font-display); font-size: 2rem; line-height: 1.5; color: var(--gold-soft);
	margin: 0 0 14px; text-align: left;
}
.hero-title {
	color: #fff; font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.08; margin: 0 0 20px;
}
.hero-text { font-size: 1.15rem; max-width: 34em; color: #e1eee6; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-arch {
	justify-self: center; width: 100%; max-width: 430px; aspect-ratio: 5 / 6.3;
	border-radius: 999px 999px 0 0; overflow: hidden;
	border: 2px solid var(--gold); border-bottom: 0;
	box-shadow: 0 0 0 10px rgba(201, 162, 75, .13);
	animation: arch-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch-art {
	height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	background:
		radial-gradient(circle at 50% 36%, rgba(226, 200, 127, .38), transparent 56%),
		linear-gradient(180deg, var(--g-600), var(--g-800));
	color: var(--gold-soft);
}
.art-star { width: 150px; height: 150px; }
.art-name { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.4; margin: 0; }

@keyframes arch-rise {
	from { transform: translateY(48px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* ==========================================================================
   Bagian umum
   ========================================================================== */
.section { padding: 88px 0; }
.section--tint { background: var(--g-50) var(--pattern-light); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-foot { margin-top: 40px; }
.empty { color: var(--muted); padding: 24px; background: var(--g-50); border-radius: var(--radius); border: 1px dashed var(--g-300); }

/* ==========================================================================
   Unit pendidikan: lengkung mihrab dengan tinggi bertingkat
   ========================================================================== */
.units {
	display: grid;
	grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
	grid-template-rows: auto auto;
	column-gap: 20px;
}
.unit {
	display: grid; grid-row: span 2;
	grid-template-rows: auto auto;
	grid-template-rows: subgrid;
	color: inherit; text-decoration: none;
}
.unit-arch {
	--h: 210px;
	align-self: end; height: var(--h);
	display: grid; place-items: center; position: relative; overflow: hidden;
	border-radius: 999px 999px 0 0; border-bottom: 4px solid var(--gold);
	background: linear-gradient(180deg, var(--g-600), var(--g-800));
	color: #fff; transition: filter .25s;
}
.unit:nth-child(1) .unit-arch { --h: 150px; }
.unit:nth-child(2) .unit-arch { --h: 180px; }
.unit:nth-child(3) .unit-arch { --h: 210px; }
.unit:nth-child(4) .unit-arch { --h: 240px; }
.unit:nth-child(5) .unit-arch { --h: 270px; }
.unit--skill .unit-arch { background: linear-gradient(180deg, #dcb961, #b98b2e); color: var(--g-950); border-bottom-color: var(--g-800); }
.unit-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unit-abbr { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1; }
.unit:hover .unit-arch { filter: brightness(1.1); }

.unit-body { display: block; padding-top: 18px; }
.unit-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--g-800); margin-bottom: 4px; }
.unit:hover .unit-name { text-decoration: underline; text-underline-offset: 4px; }
.unit-age { display: block; font-size: .86rem; font-weight: 600; color: var(--g-600); margin-bottom: 8px; }
.unit-desc { display: block; font-size: .93rem; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Tentang yayasan
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-copy p { color: #2c4036; }
.about-copy .btn { margin-top: 12px; }
.about-img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

.quote-panel {
	margin: 0; padding: 48px 40px; border-radius: var(--radius); color: #fff;
	background: var(--g-800) var(--pattern); border-top: 4px solid var(--gold);
}
.quote-panel blockquote { margin: 0; }
.quote-ar { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.8; color: var(--gold-soft); margin: 0 0 14px; }
.quote-id { font-size: 1.08rem; color: #e1eee6; margin: 0; }
.quote-panel figcaption { margin-top: 18px; font-size: .92rem; color: var(--g-300); }

/* ==========================================================================
   Berita di beranda
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.news-lead-thumb { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; aspect-ratio: 16 / 10; }
.news-lead-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-lead-thumb:hover img { transform: scale(1.03); }
.news-lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.news-lead h3 a, .news-row h3 a, .post-item-title a { color: var(--g-900); text-decoration: none; }
.news-lead h3 a:hover, .news-row h3 a:hover, .post-item-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-lead p:last-child { color: var(--muted); margin: 0; }

.news-side { border-bottom: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; border-top: 0; }
.news-row-thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { font-size: 1.28rem; margin: 4px 0 0; }

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.post-meta span + span { padding-left: 12px; border-left: 1px solid var(--g-300); }
.post-meta a { color: var(--g-700); font-weight: 700; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }

.thumb-fallback {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	background: var(--g-700) var(--pattern); color: var(--gold-soft);
}
.thumb-fallback svg { width: 44px; height: 44px; }
a > .thumb-fallback { aspect-ratio: inherit; }

/* ==========================================================================
   Ajakan bergabung
   ========================================================================== */
.cta { background: var(--g-800) var(--pattern); color: #fff; padding: 64px 0; border-top: 4px solid var(--gold); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 8px; }
.cta p { margin: 0; color: #e1eee6; max-width: 36em; }

/* ==========================================================================
   Halaman dalam
   ========================================================================== */
.page-hero {
	background: var(--g-800) var(--pattern); color: #fff; padding: 60px 0 52px;
	border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 6px; }
.page-hero-sub { color: #dcebe2; font-size: 1.1rem; max-width: 40em; margin: 0; }
.page-hero .post-meta { color: #cfe0d6; }
.page-hero .post-meta a { color: var(--gold-soft); }
.page-hero .post-meta span + span { border-left-color: rgba(255, 255, 255, .35); }

.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cat-filter a {
	padding: 7px 18px; border: 1.5px solid var(--line); border-radius: 999px;
	text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--g-800);
}
.cat-filter a:hover { background: var(--g-100); }
.cat-filter a.is-active { background: var(--g-700); border-color: var(--g-700); color: #fff; }

.post-list .post-item { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list .post-item:first-child { padding-top: 0; }
.post-item-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; align-self: start; }
.post-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item-title { font-size: 1.6rem; margin-bottom: 8px; }
.post-item-excerpt { color: var(--muted); }
.post-item-excerpt p { margin-bottom: .6em; }
.read-more { font-weight: 700; color: var(--g-700); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
	text-decoration: none; font-weight: 600; color: var(--g-800);
}
.pagination a.page-numbers:hover { background: var(--g-100); }
.pagination .current { background: var(--g-700); border-color: var(--g-700); color: #fff; }

/* Sidebar */
.sidebar .widget { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.sidebar .widget:last-child { border-bottom: 0; }
.widget-title { font-size: 1.35rem; margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--g-100); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; font-weight: 600; }
.widget a:hover { text-decoration: underline; }

/* Formulir pencarian */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
	width: 100%; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px;
	font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.search-field:focus { border-color: var(--g-600); outline: none; box-shadow: 0 0 0 3px rgba(27, 112, 80, .2); }
.search-submit {
	padding: 11px 22px; border: 0; border-radius: 999px; background: var(--g-700); color: #fff;
	font: 700 .95rem var(--font-body); cursor: pointer;
}
.search-submit:hover { background: var(--g-800); }

/* ==========================================================================
   Isi tulisan dan halaman
   ========================================================================== */
.entry-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.55rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.25rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--g-600); font-weight: 700; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--gold);
	font-family: var(--font-display); font-size: 1.4rem; line-height: 1.6; color: var(--g-800);
}
.entry-content blockquote p { margin-bottom: .5em; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--g-50); color: var(--g-900); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--g-700); color: #fff; font-weight: 700; padding: 13px 26px; }
.entry-content .wp-block-button__link:hover { background: var(--g-800); }
.entry-content .wp-block-separator { border: 0; border-top: 2px solid var(--line); margin: 2em auto; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.single-media { margin: -28px auto 0; position: relative; }
.single-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 16px 40px rgba(7, 42, 32, .18); }
.single-body { padding: 48px 0 80px; }

.entry-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { padding: 4px 14px; border-radius: 999px; background: var(--g-100); color: var(--g-800); font-size: .88rem; font-weight: 600; text-decoration: none; }
.entry-tags a:hover { background: var(--g-300); }

.share { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share-label { font-weight: 700; color: var(--g-800); margin-right: 4px; }
.share .btn { padding: 9px 20px; font-size: .9rem; }

.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--g-600); background: var(--g-50); }
.post-navigation .nav-next { text-align: right; }
.nav-sub { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.nav-title { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--g-900); line-height: 1.3; }

/* Komentar */
.comments-area { margin-top: 56px; }
.comments-title, .comment-reply-title { font-size: 1.7rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .85rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
}
.comment-form .submit { padding: 12px 26px; border: 0; border-radius: 999px; background: var(--g-700); color: #fff; font: 700 1rem var(--font-body); cursor: pointer; }
.comment-form .submit:hover { background: var(--g-800); }

/* ==========================================================================
   Halaman unit pendidikan (tunggal)
   ========================================================================== */
.unit-hero { display: flex; align-items: flex-end; gap: 32px; }
.unit-badge {
	flex: none; width: 112px; height: 140px; display: grid; place-items: center;
	border-radius: 999px 999px 0 0; border: 2px solid var(--gold); border-bottom: 0;
	background: linear-gradient(180deg, var(--g-600), var(--g-900));
	font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold-soft);
}
.unit-hero h1 { margin-bottom: 4px; }
.unit-hero .page-hero-sub { font-weight: 600; }
.info-box { background: var(--g-50); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.info-box h2 { font-size: 1.35rem; }
.info-box dl { margin: 0; }
.info-box dt { font-size: .85rem; font-weight: 700; color: var(--g-600); margin-top: 14px; }
.info-box dd { margin: 0; font-weight: 600; color: var(--ink); }
.info-box .btn { width: 100%; margin-top: 22px; }
.unit-feature { margin: 0 0 32px; }
.unit-feature img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================================================================
   Kontak
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--g-700); border-radius: var(--radius); background: #fff; }
.contact-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--g-950) var(--pattern); color: #cfe0d6; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 48px; padding: 64px 0 48px; }
.footer-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.2; margin: 0 0 12px; }
.footer-title { font-size: 1.25rem; color: var(--gold-soft); margin-bottom: 14px; }
.site-footer p { font-size: .96rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e8f2ec; text-decoration: none; font-size: .96rem; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a { padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-weight: 600; font-size: .88rem; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.footer-contact li { margin-bottom: 12px; }
.footer-contact strong { display: block; color: #fff; font-size: .86rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1100px) {
	.units { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; row-gap: 40px; }
	.unit { display: flex; flex-direction: column; grid-row: auto; }
	.unit .unit-arch, .unit:nth-child(n) .unit-arch { --h: 190px; align-self: stretch; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 0; }
	.hero-copy { padding-block: 56px 40px; }
	.hero-arch { max-width: 320px; }
	.about-grid, .news-grid { grid-template-columns: 1fr; gap: 40px; }
	.content-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 22px;
		box-shadow: 0 16px 28px rgba(7, 42, 32, .14);
	}
	.primary-nav.is-open { display: block; }
	.menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.menu a { padding: 12px 16px; }
	.menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.section { padding: 64px 0; }
	.brand-name { font-size: 1.2rem; }
	.bismillah { font-size: 1.6rem; }
	.units { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.unit .unit-arch, .unit:nth-child(n) .unit-arch { --h: 150px; }
	.news-row { grid-template-columns: 110px 1fr; gap: 14px; }
	.post-list .post-item { grid-template-columns: 1fr; gap: 16px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
	.quote-panel { padding: 36px 24px; }
	.unit-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
