/*
Theme Name: Madrasah Zeenat-ul-Islam
Theme URI: https://madrasahzeenatulislam.co.uk/
Author: Madrasah Zeenat-ul-Islam web admin
Description: A small, fast theme for the Madrasah website: home, notices, term dates and policies. Built from the approved design mockup. No page builder.
Version: 0.5.5
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary, for Madrasah Zeenat-ul-Islam
Text Domain: mzi
*/

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts/README.txt) ---------- */
@font-face {
	font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap;
	src: url("assets/fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap;
	src: url("assets/fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("assets/fonts/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/amiri-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
	font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/amiri-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/amiri-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "MZI Marks"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("assets/fonts/noto-sans-latin-ext.woff2") format("woff2");
	/* Only the letters Sora and Figtree lack: dot-below letters (Ḥ ẓ ṣ ṭ ḍ ...) and the ʾ ʿ marks. */
	unicode-range: U+02BE-02BF, U+1E00-1EFF;
}

/* ---------- Tokens ---------- */
:root {
	--mzi-bg: #F5F6F1;
	--mzi-surface: #FFFFFF;
	--mzi-ink: #13222E;
	--mzi-muted: #4E5D69;
	--mzi-line: #E1E5DD;
	--mzi-line-soft: #EEF0EA;
	--mzi-blue: #17608F;
	--mzi-blue-dark: #0E3F5F;
	--mzi-navy: #13222E;
	--mzi-lime: #A4B531;
	--mzi-olive: #6C7A1B;
	--mzi-tint: #EAF1F7;
	--mzi-radius: 18px;
	--mzi-font-head: "Sora", "MZI Marks", system-ui, sans-serif;
	--mzi-font-body: "Figtree", "MZI Marks", "Amiri", system-ui, sans-serif;
	--mzi-font-arabic: "Amiri", serif;
	--mzi-wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mzi-bg);
	color: var(--mzi-ink);
	font-family: var(--mzi-font-body);
	font-size: 17px;
	line-height: 1.55;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--mzi-blue); }
a:hover { color: var(--mzi-blue-dark); }
h1, h2, h3, h4 { font-family: var(--mzi-font-head); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mzi-blue); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	margin: 0; padding: 12px 18px; background: #fff; color: var(--mzi-ink); border-radius: 8px;
}
.container { max-width: var(--mzi-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ar { font-family: var(--mzi-font-arabic); }

/* ---------- Buttons and small pieces ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
	font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn-blue { background: var(--mzi-blue); color: #fff; }
.btn-blue:hover { background: var(--mzi-blue-dark); color: #fff; }
.btn-lime { background: var(--mzi-lime); color: #14240A; }
.btn-lime:hover { background: #B5C545; color: #14240A; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-outline { background: #fff; color: var(--mzi-blue); box-shadow: inset 0 0 0 1.5px var(--mzi-blue); }
.btn-outline:hover { background: var(--mzi-tint); color: var(--mzi-blue-dark); }
.btn-green { background: #1E7A4C; color: #fff; }
.btn-green:hover { background: #155C39; color: #fff; }
.btn-full { width: 100%; }
.text-link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-weight: 600; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.icon { flex: none; }
.eyebrow {
	margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--mzi-olive);
}
.pill {
	display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px;
	border-radius: 999px; line-height: 1.4;
}
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--mzi-muted); }
.meta-row .is-new { color: var(--mzi-blue); font-weight: 700; }

/* ---------- Header and navigation ---------- */
.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--mzi-line); z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	border-radius: 8px; color: var(--mzi-ink); text-decoration: none; font-weight: 500; font-size: 16px;
}
.nav-list a:hover { background: #F0F3EA; color: var(--mzi-ink); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--mzi-blue); font-weight: 700; }
.nav-pay { margin-left: 12px; }
.menu-btn {
	display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
	border: 1px solid var(--mzi-line); border-radius: 12px; background: #fff; color: var(--mzi-ink); cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
	.js .menu-btn { display: inline-flex; }
	.js .site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
		align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--mzi-line);
		box-shadow: 0 16px 28px rgba(19, 34, 46, 0.12);
	}
	.js .site-nav.is-open { display: flex; }
	.js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.js .nav-list a {
		min-height: 52px; padding: 0 24px; border-radius: 0; font-size: 18px; font-weight: 600;
		border-bottom: 1px solid var(--mzi-line-soft);
	}
	.js .nav-list .current-menu-item > a,
	.js .nav-list .current_page_item > a { background: var(--mzi-tint); }
	.js .nav-pay { margin: 20px 24px 24px; }
	.no-js .site-nav, .site-nav { flex-wrap: wrap; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--mzi-line); }
.page-hero .container { padding-top: 48px; padding-bottom: 40px; }
.page-hero h1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.page-hero .lead { margin: 12px 0 0; color: var(--mzi-muted); max-width: 680px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mzi-blue-dark); color: #fff; }
.hero-pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
	position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
	padding-top: 72px; padding-bottom: 80px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
.bismillah { font-family: var(--mzi-font-arabic); font-size: 30px; line-height: 1.4; color: #C9D66B; margin: 0 0 18px; text-align: left; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; line-height: 1.6; color: #D3E1EA; max-width: 560px; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.coming-up {
	flex: 1 1 340px; max-width: 420px; min-width: 0; background: #fff; color: var(--mzi-ink);
	border-radius: var(--mzi-radius); padding: 26px 26px 20px; box-shadow: 0 20px 50px rgba(5, 25, 40, 0.35);
}
.coming-up-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.coming-up h2 { font-size: 20px; font-weight: 600; }
.coming-up-head span { font-size: 14px; color: var(--mzi-muted); }
.coming-list { list-style: none; margin: 14px 0 0; padding: 0; }
.coming-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--mzi-line); }
.coming-badge { width: 54px; flex: none; text-align: center; border-radius: 10px; padding: 7px 0; }
.coming-badge b { display: block; font-family: var(--mzi-font-head); font-weight: 700; font-size: 20px; line-height: 1; }
.coming-badge span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.coming-title { font-weight: 600; }
.coming-when { font-size: 15px; color: var(--mzi-muted); }

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section-tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.section h2.title, .section-title {
	font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em;
}
.section-sub { margin: 14px 0 0; color: var(--mzi-muted); max-width: 640px; }
.band { background: #fff; border-top: 1px solid var(--mzi-line); border-bottom: 1px solid var(--mzi-line); margin-top: 72px; }
.band .container { padding-top: 72px; padding-bottom: 72px; }
.section-end { padding-bottom: 80px; }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Cards ---------- */
.card {
	background: #fff; border: 1px solid var(--mzi-line); border-radius: var(--mzi-radius);
	padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.card h2, .card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card h3 a { color: var(--mzi-ink); text-decoration: none; }
.card h3 a:hover { color: var(--mzi-blue); }
.card p { margin: 0; color: var(--mzi-muted); }
.card-accent { border-top: 4px solid var(--mzi-blue); }
.card .push { margin-top: auto; }
.icon-tile {
	width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none;
}
.tile-olive { background: #EEF2D4; color: #4F5A0E; }
.tile-blue { background: #DCE7F1; color: var(--mzi-blue); }
.tile-amber { background: #FEF6E7; color: #8A5A00; }
.tile-rose { background: #F6E1EE; color: #7A2457; }
.tile-purple { background: #EDE3F5; color: #4A2A73; }

/* Payment cards: never more than three across; fewer share the width; four make two rows of two. */
.fee-grid { display: grid; gap: 24px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 641px) and (max-width: 1000px) {
	.fee-grid-2, .fee-grid-3, .fee-grid-4, .fee-grid-5, .fee-grid-many { grid-template-columns: repeat(2, 1fr); }
	.fee-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1001px) {
	.fee-grid-2, .fee-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.fee-grid-3, .fee-grid-many { grid-template-columns: repeat(3, 1fr); }
	.fee-grid-5 { grid-template-columns: repeat(6, 1fr); }
	.fee-grid-5 > :nth-child(-n+3) { grid-column: span 2; }
	.fee-grid-5 > :nth-child(n+4) { grid-column: span 3; }
}
.fee-card { padding: 30px; gap: 18px; }
.fee-card h3 { font-size: 22px; }
.fee-rows {
	margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 16px;
	border-top: 1px solid var(--mzi-line); padding-top: 18px;
}
.fee-rows dt { color: var(--mzi-muted); }
.fee-rows dd { margin: 0; font-weight: 600; }
.note { font-size: 15px; color: var(--mzi-muted); }
.wa-btn { margin-top: 12px; }
.wa-btn svg { flex: none; }
.wa-note { margin: 6px 0 0; font-size: 14px; color: var(--mzi-muted); }

.time-card { background: var(--mzi-bg); border-radius: 16px; padding: 24px; }
.time-card .label { margin: 0; font-size: 15px; font-weight: 600; color: var(--mzi-muted); }
.time-card .time { margin: 8px 0 0; font-family: var(--mzi-font-head); font-size: 22px; font-weight: 600; }
.time-card .detail { margin: 4px 0 0; color: var(--mzi-muted); }
.time-card.is-warm { background: #FEF6E7; }
.time-card.is-warm .label { color: #6B4A08; }
.time-card.is-warm .detail { color: #5C4A2A; }

.contact-card { padding: 30px; gap: 20px; }
.contact-line { display: flex; gap: 14px; }
.contact-line svg { margin-top: 2px; }
.contact-line p { margin: 0; color: var(--mzi-ink); }
.contact-line .muted { color: var(--mzi-muted); }
/* The card's own paragraph rule is more specific than .wa-note, so these keep the WhatsApp note light and clear of the button, and the button's icon level. */
.contact-line .wa-note { margin: 10px 0 0; color: var(--mzi-muted); }
.contact-line .wa-btn svg { margin-top: 0; }
.safeguard { background: #EEF2D4; border-radius: var(--mzi-radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.safeguard h3 { font-size: 22px; font-weight: 600; }
.safeguard p { margin: 0; }
.safeguard a { color: #2F3A05; font-weight: 600; }
.safeguard .head { display: flex; align-items: center; gap: 12px; }
.safeguard .head .icon-tile { width: 44px; background: #fff; color: #4F5A0E; }

/* ---------- Notices ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid #D5DACF; background: #fff; color: var(--mzi-ink); font: inherit; font-size: 15px;
	font-weight: 600; text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--mzi-ink); color: var(--mzi-ink); }
.chip.is-on { background: var(--mzi-navy); border-color: var(--mzi-navy); color: #fff; }
.filter-help { margin: 0 0 12px; font-size: 15px; color: var(--mzi-muted); }
.chip-rows { display: grid; gap: 12px; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chip-group-label { min-width: 52px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mzi-muted); }
.result-count { margin: 16px 0 0; font-size: 15px; color: var(--mzi-muted); }
.featured {
	margin-top: 20px; background: #fff; border: 1px solid var(--mzi-line); border-top: 4px solid var(--mzi-blue);
	border-radius: var(--mzi-radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end;
}
.featured-body { flex: 1 1 480px; min-width: 0; }
.featured h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.015em; margin-top: 14px; }
.featured h2 a { color: var(--mzi-ink); text-decoration: none; }
.featured p { margin: 12px 0 0; color: var(--mzi-muted); }
.notice-rows { margin-top: 32px; border-bottom: 1px solid var(--mzi-line); }
.notice-row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--mzi-line); }
.notice-row .when { flex: 0 0 140px; font-size: 15px; color: var(--mzi-muted); padding-top: 2px; }
.notice-row .body { flex: 1 1 420px; min-width: 0; }
.notice-row .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.notice-row h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin-top: 8px; }
.notice-row h3 a { color: var(--mzi-ink); text-decoration: none; }
.notice-row h3 a:hover { color: var(--mzi-blue); }
/* The whole row is the link: the title's link stretches over it, so a tap anywhere opens the notice. */
.notice-row { position: relative; }
.notice-row h3 a::after { content: ""; position: absolute; inset: 0; }
.notice-row:hover h3 a { color: var(--mzi-blue); }
.notice-row h3 a:focus-visible { outline: 0; }
.notice-row h3 a:focus-visible::after { outline: 3px solid var(--mzi-blue); outline-offset: -3px; border-radius: 8px; }
.notice-row p { margin: 6px 0 0; color: var(--mzi-muted); }
.empty-state { margin-top: 24px; background: #fff; border: 1px solid var(--mzi-line); border-radius: 16px; padding: 24px; }
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	background: #fff; color: var(--mzi-blue); font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--mzi-blue);
}
.pagination .page-numbers.current { background: var(--mzi-navy); color: #fff; box-shadow: none; }

/* ---------- Single notice and page content ---------- */
.single-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.breadcrumb { font-size: 15px; color: var(--mzi-muted); }
.breadcrumb a { font-weight: 600; }
.single-title { font-weight: 700; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin-top: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.entry-content { margin-top: 32px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; font-weight: 600; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mzi-line); }
.entry-content img { border-radius: 12px; }
.entry-content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.entry-content .wp-block-file__button {
	background: var(--mzi-blue); color: #fff; border-radius: 999px; padding: 10px 20px; text-decoration: none; font-weight: 600;
}
.post-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--mzi-line); font-size: 16px; color: var(--mzi-muted); }
.page-content-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }

/* ---------- Policies ---------- */
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--mzi-line-soft); }
.rules li:first-child { border-top: 0; }
.rules li::before {
	content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 3px;
	background: var(--mzi-lime); transform: rotate(45deg);
}
.panel-card { background: #fff; border: 1px solid var(--mzi-line); border-radius: var(--mzi-radius); padding: 26px; }
.panel-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc-meta { margin: 0; font-size: 14px; color: var(--mzi-muted); }
.admin-hint {
	margin: 0; padding: 10px 14px; border-radius: 10px; background: #FEF6E7; color: #6B4A00; font-size: 14px;
}

/* ---------- Thank-you page ---------- */
.thanks-wrap { padding: 56px 24px 96px; }
.thanks-card {
	max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--mzi-line);
	border-top: 4px solid var(--mzi-olive); border-radius: var(--mzi-radius); padding: 48px 40px; text-align: center;
}
/* The vowel marks and the shadda above Allah rise well above the line box, so give them room and keep them clear of the "Thank you" label. */
.thanks-card .ar { font-size: clamp(52px, 9vw, 84px); line-height: 1.9; margin: 22px 0 0; padding-top: 0.2em; }
.thanks-card h1 { font-weight: 700; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin-top: 8px; }
.thanks-card .lede { margin: 14px auto 0; color: var(--mzi-muted); max-width: 460px; }
.countdown { margin: 36px auto 0; max-width: 460px; text-align: left; }
.countdown p { margin: 0; font-size: 15px; color: var(--mzi-muted); }
.countdown strong { color: var(--mzi-ink); }
.bar { margin-top: 10px; height: 8px; border-radius: 999px; background: #E6EAE0; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 100%; background: var(--mzi-blue); border-radius: 999px; transition: width 1s linear; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.thanks-help { margin: 32px 0 0; font-size: 15px; color: var(--mzi-muted); }
@media (max-width: 760px) {
	.thanks-card { padding: 32px 20px; }
	.thanks-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--mzi-navy); color: #C3CDD4; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 320px; }
.footer-name { margin: 0; font-family: var(--mzi-font-head); font-weight: 600; color: #fff; font-size: 18px; }
.footer-address { margin: 6px 0 0; font-size: 15px; }
.footer-legal { margin: 18px 0 0; font-size: 14px; color: #93A2AD; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-content: flex-start; font-size: 15px; }
.footer-nav a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Term dates placeholder ---------- */
.placeholder-card { max-width: 680px; }

/* ---------- Home sections that follow the hero ---------- */
.home-section-pad { padding-top: 80px; padding-bottom: 80px; }

/* 404 page: astaghfiru llāh */
.astaghfirullah { font-family: var(--mzi-font-arabic); font-size: 36px; line-height: 1.4; color: var(--mzi-blue); margin: 0; text-align: left; }
.astaghfirullah-latin { font-size: 16px; font-style: italic; color: var(--mzi-muted); margin: 0 0 14px; }
