/* ==========================================================
   Halaman dalam (Profil, Pendidikan, Pendaftaran, Donasi, dst.)
   Dimuat di semua halaman kecuali beranda (lihat functions.php).
   Kadence membungkus isi grup dalam .wp-block-group__inner-container,
   jadi tata letak grid/flex diterapkan pada pembungkus itu.
   ========================================================== */
html { scroll-padding-top: 24px; }

/* Jarak tepi bagian selebar layar */
.entry-content .wp-block-group.alignfull.af-ph,
.entry-content .wp-block-group.alignfull.af-jump,
.entry-content .wp-block-group.alignfull.af-end {
	padding-left: clamp(20px, 4vw, 40px);
	padding-right: clamp(20px, 4vw, 40px);
}

/* ---------- Judul halaman ---------- */
.af-ph { background: var(--af-tint); padding-block: 48px 44px; }
.af-ph .af-ph-cols { gap: 40px; margin: 0; }
.af-ph h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 10px; }
.af-crumb { font-size: 0.82rem; color: var(--af-muted); margin: 0 0 12px; }
.af-crumb a { color: var(--af-muted); text-decoration: none; }
.af-crumb a:hover { color: var(--af-green); }
.af-crumb strong { color: var(--af-green); font-weight: 600; }
.af-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--af-green-dark);
	margin: 0 0 16px;
}
.af-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a325; }
.af-lead { font-size: 1.06rem; color: var(--af-muted); margin: 0; }
.af-ph > .wp-block-group__inner-container > .af-lead,
.af-ph .af-lead { max-width: 62ch !important; margin-left: 0 !important; }

/* Kartu ajakan di kanan judul */
.af-cta-card {
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: 12px;
	padding: 22px !important;
	box-shadow: 0 10px 30px rgba(15, 61, 38, 0.08);
}
.af-cta-card .wp-block-buttons { margin: 0 0 10px; }
.af-cta-main .wp-block-button,
.af-cta-main .wp-block-button__link { width: 100%; }
.af-cta-main .wp-block-button__link { padding-block: 0.85em; font-size: 1rem; text-align: center; }
.af-cta-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.af-cta-row .wp-block-button { width: 100%; margin: 0; }
.af-cta-row .wp-block-button__link { width: 100%; font-size: 0.9rem; text-align: center; }
.wp-block-button.af-btn-outline .wp-block-button__link {
	background: #fff;
	color: var(--af-green);
	border: 1.5px solid var(--af-green);
}
.wp-block-button.af-btn-outline .wp-block-button__link:hover { background: var(--af-tint); }
.af-cta-note { font-size: 0.8rem; color: var(--af-muted); text-align: center; margin: 0; }
.af-cta-note a { color: var(--af-green); }

/* ---------- Ajakan penutup ---------- */
.af-end { background: var(--af-green-dark); padding-block: 48px; }
.af-end .wp-block-columns { margin: 0; gap: 30px; }
.af-end h2 { color: #fff; margin: 0 0 8px; }
.af-end p { color: #c7dbcf; margin: 0; }
.af-end-btns { justify-content: flex-end; }

/* ---------- Teks panjang ---------- */
.af-section.af-tight { padding-block: 56px; }
.af-prose { max-width: 72ch; }
.af-prose p { font-size: 1.03rem; }
.af-prose p:first-child::first-letter { font-family: var(--af-font-head); }
.af-split { gap: clamp(28px, 5vw, 64px); margin: 0; }
.af-split h2 { margin-top: 0; }

/* ---------- Kartu ---------- */
.af-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-cards.af-cards-1 > .wp-block-group__inner-container { grid-template-columns: 1fr; }
.af-card {
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	padding: 20px 22px !important;
	margin: 0 !important;
}
.af-tint .af-card { border-color: #d6e4db; }
.af-card > .wp-block-group__inner-container > * { margin: 0 0 6px; }
.af-card > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.af-card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.af-card p { font-size: 0.92rem; color: var(--af-muted); }
.af-card .af-k {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--af-green);
}
.af-card .af-v {
	font-family: var(--af-font-head);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--af-green-dark);
	line-height: 1.3;
}
.af-card ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 0.92rem; color: var(--af-muted); }
.af-card ul li { margin-bottom: 4px; }
.af-card ul li strong { color: var(--global-palette3, #18231e); }

.af-card .af-ar { font-size: 1.1em; line-height: 1.4; unicode-bidi: isolate; }

/* ---------- Visi & misi ---------- */
.af-visi {
	background: var(--af-green-dark);
	border-radius: 14px;
	padding: clamp(28px, 5vw, 48px) !important;
	margin: 0 0 40px !important;
	position: relative;
	overflow: hidden;
}
.af-visi::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	border: 36px solid rgba(255, 255, 255, 0.05);
}
.af-visi .af-eyebrow { color: #9fd0b2; }
.af-visi .af-visi-text {
	font-family: var(--af-font-head);
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
	line-height: 1.45;
	color: #fff;
	margin: 0;
	max-width: 34ch;
}
.entry-content .af-misi, .af-misi { list-style: none; padding: 0 !important; margin: 0 !important; counter-reset: misi; display: grid; gap: 14px; }
.af-misi li {
	counter-increment: misi;
	position: relative;
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	padding: 20px 22px 20px 74px;
	font-size: 1.02rem;
}
.af-misi li::before {
	content: counter(misi);
	position: absolute;
	left: 22px;
	top: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--af-tint);
	color: var(--af-green-dark);
	font-family: var(--af-font-head);
	font-weight: 700;
	display: grid;
	place-items: center;
}

/* ---------- Dokumen & gambar berbingkai ---------- */
.af-docs { gap: 24px; margin: 0; }
.af-doc { margin: 0 !important; }
.af-doc img,
.af-frame img {
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 61, 38, 0.08);
}
.af-doc img { padding: 10px; }
.af-doc figcaption,
.af-frame figcaption { font-size: 0.85rem; color: var(--af-muted); text-align: center; margin-top: 10px; }
.af-frame { margin: 0 !important; }
.af-note { font-size: 0.85rem; color: var(--af-muted); }

/* ---------- Daftar centang (fasilitas) ---------- */
.entry-content .af-checks,
.af-checks {
	list-style: none;
	padding: 0 !important;
	margin: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}
.af-checks li {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	padding: 12px 14px 12px 44px;
	position: relative;
	font-size: 0.93rem;
	font-weight: 500;
	color: var(--global-palette3, #18231e);
	margin: 0;
}
.af-checks li::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--af-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Galeri ---------- */
.af-gal.wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 12px !important; gap: 12px !important; }
.af-gal.wp-block-gallery .wp-block-image img { border-radius: var(--af-radius); width: 100% !important; aspect-ratio: 4 / 3 !important; height: auto !important; flex: none !important; object-fit: cover !important; }
.af-gal.wp-block-gallery .wp-block-image a { flex: none !important; height: auto !important; }
.af-gal.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0 !important; }
.af-gal.wp-block-gallery .wp-block-image figcaption {
	border-radius: 0 0 var(--af-radius) var(--af-radius);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 28px 12px 10px;
}

/* ---------- Tabel ---------- */
.af-table { margin: 0; overflow-x: auto; border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; }
.af-table table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.af-table th,
.af-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--af-line); text-align: left; vertical-align: top; }
.af-table thead { border: 0; }
.af-table thead th { background: var(--af-green-dark); color: #fff; font-weight: 600; font-size: 0.82rem; }
.af-table tbody tr:nth-child(even) { background: #f7faf8; }
.af-table tbody tr:last-child td { border-bottom: 0; }
.af-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--af-green-dark); font-variant-numeric: tabular-nums; width: 1%; }
.af-table figcaption { font-size: 0.82rem; color: var(--af-muted); padding: 10px 16px; margin: 0; }

/* ---------- Kotak keterangan ---------- */
.af-info {
	background: #fff8e8;
	border: 1px solid #f1dfb3;
	border-radius: var(--af-radius);
	padding: 16px 20px !important;
	margin-top: 22px !important;
}
.af-info > .wp-block-group__inner-container > * { margin: 0 0 4px; }
.af-info p,
.af-info li { font-size: 0.9rem; color: #5b4a1e; }
.af-info ul,
.af-info ol { margin: 0; padding-left: 1.2em; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
	.af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.af-end-btns { justify-content: flex-start; }
	.af-section.af-tight { padding-block: 44px; }
}
@media (max-width: 600px) {
	.af-cta-row { grid-template-columns: 1fr; }
	.af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.af-misi li { padding-left: 64px; }
	.af-misi li::before { left: 16px; }
	.af-table th,
	.af-table td { padding: 10px 12px; }
}

/* Label kecil langsung diikuti judul: rapatkan */
.af-section-head .af-eyebrow + h2,
.af-split .af-eyebrow + h2 { margin-top: 0; }
.af-checks + .af-note { margin-top: 18px; }

/* Fakta singkat (Sejarah) di layar kecil: 2 × 2 */
@media (max-width: 781px) {
	.af-ph + .af-facts .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.af-ph + .af-facts .wp-block-column { border-left: 0 !important; border-top: 1px solid var(--af-line); padding: 16px 12px; }
	.af-ph + .af-facts .wp-block-column:nth-child(-n+2) { border-top: 0; }
	.af-ph + .af-facts .wp-block-column:nth-child(even) { border-left: 1px solid var(--af-line) !important; }
	.af-ph + .af-facts .af-fact-num { font-size: 1.15rem; }
}

/* ==========================================================
   Opsi C: pita judul hijau tua + menu samping
   (.af-ph-c dan .af-layout dipasang otomatis oleh functions.php)
   ========================================================== */
.af-ph.af-ph-c { background: var(--af-green-dark); padding-block: 34px 36px; }
.af-ph.af-ph-c > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 44ch);
	column-gap: 48px;
	align-items: end;
}
.af-ph.af-ph-c > .wp-block-group__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.af-ph.af-ph-c .af-crumb { grid-column: 1; color: #a9c6b5; margin-bottom: 6px; }
.af-ph.af-ph-c .af-crumb a { color: #a9c6b5; }
.af-ph.af-ph-c .af-crumb a:hover { color: #fff; }
.af-ph.af-ph-c .af-crumb strong { color: #fff; }
.af-ph.af-ph-c h1 { grid-column: 1; color: #fff; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.af-ph.af-ph-c .af-lead {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	color: #c3d8cb;
	font-size: 0.95rem;
	text-align: right;
	margin: 0 !important;
}

/* Kerangka dua kolom */
.af-layout {
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 44px clamp(20px, 4vw, 40px) 64px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.af-layout > * { min-width: 0; }

/* Menu samping */
.af-side { position: sticky; top: 24px; }
.af-side-box { border: 1px solid var(--af-line); border-radius: 12px; overflow: hidden; background: #fff; }
.af-side-title {
	margin: 0;
	padding: 13px 18px;
	background: var(--af-tint);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--af-green);
}
.af-side .af-side-box ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.af-side .af-side-title { margin: 0 !important; }
.af-side li { margin: 0; border-top: 1px solid var(--af-line); }
.af-side li a {
	display: block;
	padding: 11px 18px;
	color: var(--global-palette4, #2b3833);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}
.af-side li a:hover { background: #f7faf8; color: var(--af-green); }
.af-side li a.is-active { color: var(--af-green-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--af-red); background: #fff; }
.af-side-cta { margin-top: 16px; background: var(--af-tint); border-radius: 12px; padding: 18px; }
.af-side-cta p { margin: 0 0 10px; font-size: 0.85rem; color: var(--af-muted); }
.af-side-cta a {
	display: block;
	background: var(--af-red);
	color: #fff;
	text-align: center;
	border-radius: 8px;
	padding: 9px;
	font-weight: 700;
	font-size: 0.86rem;
	text-decoration: none;
}
.af-side-cta a:hover { background: var(--af-red-dark); color: #fff; }

/* Isi di kolom kanan: bagian "selebar layar" menjadi blok biasa */
.af-main > * + * { margin-top: 40px; }
.entry-content .af-main .wp-block-group.alignfull,
.af-main .alignfull {
	width: auto !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
}
.af-main .af-section,
.af-main .af-section.af-tight { padding-block: 0 !important; }
.af-main .wp-block-group.alignfull > .wp-block-group__inner-container,
.af-main .is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.entry-content .af-main .af-section.af-tint { background: var(--af-tint); border-radius: 14px; padding: 28px !important; }
.af-main .af-section-head { margin-bottom: 20px; }
.af-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

/* Judul kiri + teks kanan → bertumpuk */
.af-main .af-split { flex-direction: column; gap: 6px !important; }
.af-main .af-split > .wp-block-column { flex-basis: auto !important; width: 100%; }
.af-main .af-prose { max-width: none; }

/* Fakta singkat → kartu bergaris atas */
.af-main .af-facts { border: 0; background: none; }
.af-main .af-facts .wp-block-columns { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.af-main .af-facts .wp-block-column {
	border: 1px solid var(--af-line) !important;
	border-top: 3px solid var(--af-green) !important;
	border-radius: 10px;
	padding: 16px 18px !important;
}
.af-main .af-facts .af-fact-num { font-size: 1.25rem; }
.af-main .af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-main .af-visi { margin-bottom: 28px !important; }

/* Tablet & HP: menu samping pindah ke atas isi sebagai deretan tombol */
@media (max-width: 1024px) {
	.af-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
	.af-side { position: static; }
	.af-side-box { border: 0; border-radius: 0; background: none; overflow: visible; }
	.af-side-title { display: none; }
	.af-side .af-side-box ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.af-side li { border: 0; flex: none; }
	.af-side li a { border: 1px solid var(--af-line); border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; white-space: nowrap; }
	.af-side li a.is-active { box-shadow: none; background: var(--af-green-dark); border-color: var(--af-green-dark); color: #fff; }
	.af-side-cta { display: none; }
	.af-main .af-facts .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.af-ph.af-ph-c > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.af-ph.af-ph-c .af-lead { grid-column: 1; grid-row: auto; text-align: left; margin-top: 10px !important; }
	.af-main .af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.entry-content .af-main .af-section.af-tint { padding: 20px !important; }
}
.af-main .af-docs { max-width: 620px; margin-inline: auto !important; }
.af-addr p:not(.af-k) { font-size: 0.98rem; color: var(--global-palette4, #2b3833); }
.af-addr .wp-block-buttons { margin-top: 14px !important; gap: 10px; }
.af-addr { border-left: 3px solid var(--af-green) !important; }
.af-main > .af-card + * { margin-top: 40px !important; }
.af-addr .wp-block-button__link { font-size: 0.92rem; padding: 0.7em 1.2em; }

/* ==========================================================
   Komponen halaman Pendidikan
   ========================================================== */
/* Jalur jenjang: lingkaran bernomor dengan panah */
.entry-content .af-path,
.af-path {
	list-style: none;
	counter-reset: path;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 6px 0 0 !important;
	padding: 0 !important;
}
.af-path li { counter-increment: path; position: relative; margin: 0; text-align: center; }
.af-path li::before {
	content: counter(path);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: var(--af-green-dark);
	color: #fff;
	font-family: var(--af-font-head);
	font-weight: 700;
	position: relative;
	z-index: 1;
}
.af-path li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(50% + 24px);
	right: calc(-50% + 24px);
	border-top: 2px dashed #a9c6b5;
}
.af-path a { font-size: 0.86rem; font-weight: 700; color: var(--af-green-dark); text-decoration: none; }
.af-path a:hover { color: var(--af-green); text-decoration: underline; }

/* Kartu satu jenjang */
.af-lvl {
	border: 1px solid var(--af-line);
	border-top: 4px solid var(--af-green);
	border-radius: 14px;
	padding: 28px 30px !important;
	scroll-margin-top: 24px;
}
.af-lvl > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 12px; }
.af-lvl > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.af-lvl .af-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--af-green); margin-bottom: 4px; }
.af-lvl h2 { margin-bottom: 2px; }
.af-sub { font-family: var(--af-font-head); font-style: italic; font-size: 1.08rem; color: var(--af-muted); }
.af-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.af-meta span {
	background: var(--af-tint);
	color: var(--af-green-dark);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 600;
}
.af-list-title { font-weight: 700; font-size: 0.9rem; color: var(--global-palette3, #18231e); margin-bottom: 6px !important; }
.entry-content .af-cols2,
.af-cols2 {
	columns: 2;
	column-gap: 32px;
	padding-left: 1.1em !important;
	margin: 0 0 12px !important;
}
.af-cols2 li { break-inside: avoid; margin-bottom: 5px; font-size: 0.95rem; }
.af-cols2 li::marker { color: var(--af-green); }
.af-prog {
	background: #fff8e8;
	border: 1px solid #f1dfb3;
	border-radius: var(--af-radius);
	padding: 16px 20px !important;
	margin-top: 16px !important;
}
.af-prog > .wp-block-group__inner-container > * { margin: 0 0 4px; }
.af-prog p { font-size: 0.93rem; color: #4d3f17; }
.af-prog p:last-child { margin-bottom: 0; }
.af-lvl .af-cards { margin-top: 6px !important; }
.af-lvl .af-card h3 { font-size: 1.02rem; }

@media (max-width: 1024px) {
	.af-path { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
	.af-path li:nth-child(3n)::after { display: none; }
}
@media (max-width: 600px) {
	.af-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-path li::after { display: none; }
	.af-cols2 { columns: 1; }
	.af-lvl { padding: 22px 20px !important; }
}

/* Dua kolom berdampingan di kolom kanan (teks + gambar) */
.af-main .af-two { gap: 32px !important; align-items: flex-start; margin-left: 0; margin-right: 0; }
.af-main .af-two .af-eyebrow:not(:first-child) { margin-top: 28px !important; }
.af-main .af-two .af-misi li { font-size: 0.95rem; }

/* Kurikulum: daftar kitab */
.af-cards .af-card-wide { grid-column: 1 / -1; }
.af-kitab > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-kitab .af-card ul { list-style: none; padding: 0 !important; margin: 8px 0 0 !important; }
.af-kitab .af-card li {
	padding: 9px 0 9px 14px;
	border-top: 1px solid var(--af-line);
	position: relative;
	color: var(--af-muted);
	font-size: 0.84rem;
	line-height: 1.5;
	margin: 0;
	break-inside: avoid;
}
.af-kitab .af-card li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--af-green); }
.af-kitab .af-card li strong { color: var(--global-palette3, #18231e); font-size: 0.95rem; }
.af-kitab .af-card .af-cols2 { columns: 2; column-gap: 28px; }
.af-main .af-meta + .af-cards { margin-top: 24px; }
@media (max-width: 781px) {
	.af-kitab > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.af-kitab .af-card .af-cols2 { columns: 1; }
}
.af-card + .af-note { margin-top: 14px !important; }
@media (min-width: 1025px) {
	.af-main .af-lvl .af-cards.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================
   Komponen halaman Pendaftaran & Donasi
   ========================================================== */
.af-tbl-title { font-size: 1.1rem !important; margin: 28px 0 10px !important; }
.af-meta + .af-tbl-title { margin-top: 22px !important; }
.af-money table { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.af-money th:not(:first-child),
.af-money td:not(:first-child) { text-align: right; white-space: nowrap; }
.af-money td:last-child { font-weight: 700; color: var(--af-green-dark); background: var(--af-tint); }
.af-money thead th:last-child { background: #0b2c1c; }

.af-visi .af-visi-small { color: #b9d3c3; font-size: 0.9rem; margin: 14px 0 0; max-width: 60ch; position: relative; }

.af-posters .af-card { padding: 14px !important; }
.af-posters .wp-block-image { margin: 0 0 12px !important; }
.af-posters .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--af-line); }
.af-posters h3 { font-size: 1rem !important; }

.af-gal.af-gal-tall.wp-block-gallery .wp-block-image img { aspect-ratio: 3 / 4 !important; object-position: top; }

.af-video video { width: 100%; max-height: 560px; background: #000; border-radius: var(--af-radius); }
.af-video figcaption { font-size: 0.85rem; color: var(--af-muted); text-align: center; }
.af-main .af-two .af-checks { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 20px !important; }
.af-main .af-two .af-addr { margin-top: 20px !important; }
.af-main .af-two > .wp-block-column > p { font-size: 1rem; }
.af-money th { white-space: normal !important; line-height: 1.3; vertical-align: bottom; }
.af-money th,
.af-money td { padding: 10px 10px !important; }
.af-money td:first-child,
.af-money th:first-child { padding-left: 14px !important; }
@media (min-width: 1025px) {
	.af-main .af-posters.af-cards-3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.af-scroll-hint { display: none; font-size: 0.8rem; color: var(--af-muted); margin: 10px 0 0 !important; }
@media (max-width: 900px) { .af-scroll-hint { display: block; } }

/* ==========================================================
   Berita: daftar, kategori, isi (templat home/archive/single)
   ========================================================== */
.af-ph-tpl { padding-inline: clamp(20px, 4vw, 40px); }
.af-ph-tpl > .wp-block-group__inner-container { max-width: var(--global-content-width, 1290px); margin-inline: auto; }
.af-tpl .af-ph h1 { margin: 0; }

/* Daftar berita */
.af-posts { display: grid; gap: 16px; }
.af-post {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 22px;
	border: 1px solid var(--af-line);
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	transition: box-shadow 0.15s, border-color 0.15s;
}
.af-post:hover { border-color: #c9d8cf; box-shadow: 0 8px 24px rgba(15, 61, 38, 0.08); }
.af-post-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--af-tint); }
.af-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.af-post-noimg { display: grid; place-items: center; width: 100%; height: 100%; }
.af-post-noimg img.af-post-logo { width: 72px; height: auto; object-fit: contain; opacity: 0.55; filter: grayscale(0.3); }
.af-post-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 4px 0; min-width: 0; }
.af-post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.8rem; color: var(--af-muted); margin: 0; }
.af-post-cat {
	background: var(--af-tint);
	color: var(--af-green-dark);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 3px 10px;
	text-decoration: none;
}
.af-post-cat:hover { background: var(--af-green-dark); color: #fff; }
.af-post-title { font-size: 1.22rem !important; line-height: 1.35; margin: 2px 0 0 !important; }
.af-post-title a { color: var(--af-green-dark); text-decoration: none; }
.af-post-title a:hover { color: var(--af-green); text-decoration: underline; }
.af-post-excerpt { font-size: 0.9rem; color: var(--af-muted); margin: 0; line-height: 1.6; }
.af-post-more { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--af-green); text-decoration: none; }
.af-post-more:hover { text-decoration: underline; }

/* Nomor halaman */
.af-pages { margin-top: 28px; }
.af-pages ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.af-pages .page-numbers li { margin: 0; }
.af-pages a.page-numbers,
.af-pages span.page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 8px 12px;
	border: 1px solid var(--af-line);
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--af-green-dark);
	text-decoration: none;
}
.af-pages a.page-numbers:hover { border-color: var(--af-green); background: var(--af-tint); }
.af-pages span.current { background: var(--af-green-dark); border-color: var(--af-green-dark); color: #fff; }
.af-pages span.dots { border: 0; }

/* Isi berita */
.af-article-img { margin: 0 0 26px; background: var(--af-tint); border-radius: 12px; overflow: hidden; text-align: center; }
.af-article-img img { max-height: 640px; width: auto; max-width: 100%; height: auto; display: inline-block; vertical-align: top; }
.af-article-body { font-size: 1.02rem; }
.af-article-body > *:first-child { margin-top: 0; }
.af-article-body img { border-radius: 10px; }
.af-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--af-line); }
.af-postnav a {
	display: block;
	border: 1px solid var(--af-line);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--af-green-dark);
	font-family: var(--af-font-head);
	font-weight: 600;
	line-height: 1.35;
}
.af-postnav a:hover { border-color: var(--af-green); background: #f7faf8; }
.af-postnav span { display: block; font-family: var(--af-font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--af-green); margin-bottom: 4px; }
.af-postnav-next { text-align: right; }
.af-article > .af-note { margin-top: 18px; }

@media (max-width: 781px) {
	.af-post { grid-template-columns: 1fr; gap: 12px; }
	.af-post-thumb { aspect-ratio: 16 / 9; }
	.af-postnav { grid-template-columns: 1fr; }
	.af-postnav-next { text-align: left; }
}
/* Templat berita: tanpa jarak atas bawaan Kadence, latar putih */
.content-area.af-tpl { margin-top: 0 !important; margin-bottom: 0 !important; }
body.blog,
body.archive,
body.single-post,
body.blog .site,
body.archive .site,
body.single-post .site,
body.blog #inner-wrap,
body.archive #inner-wrap,
body.single-post #inner-wrap { background: #fff; }
