/* ==========================================================================
   آکادمی احمدانی — استایل اصلی
   طراحی و برنامه‌نویسی: mnr
   ========================================================================== */

:root {
	--em-950: #031a14;
	--em-900: #06291f;
	--em-800: #0a3a2c;
	--em-700: #0d4a38;
	--em-600: #11604a;
	--em-500: #1a7a5e;
	--gold: #c9a24a;
	--gold-2: #e3c67a;
	--gold-3: #f6e8bd;
	--gold-d: #957325;
	--crimson: #a8282f;

	--bg: #fbf7ee;
	--surface: #ffffff;
	--surface-2: #f4ecd9;
	--text: #17211e;
	--text-2: #4a5a53;
	--muted: #75847d;
	--line: rgba(10, 58, 44, .12);
	--line-gold: rgba(201, 162, 74, .35);
	--header-bg: rgba(251, 247, 238, .86);

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 18px 40px -22px rgba(6, 41, 31, .45);
	--shadow-lg: 0 30px 70px -30px rgba(6, 41, 31, .55);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--f-body: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
	--f-kufi: 'Reem Kufi', 'Vazirmatn', sans-serif;
	--f-ruqaa: 'Aref Ruqaa', 'Amiri', serif;
	--f-quran: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;

	--gold-grad: linear-gradient(135deg, #f6e3a4 0%, #d9b45c 38%, #b8902f 70%, #e8cd85 100%);
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-width='1'%3E%3Crect x='25' y='25' width='38' height='38'/%3E%3Crect x='25' y='25' width='38' height='38' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l25 25M88 0L63 25M0 88l25-25M88 88L63 63M44 0v17M44 88V71M0 44h17M88 44H71'/%3E%3C/g%3E%3C/svg%3E");

	--container: 1240px;
	--header-h: 84px;
}

[data-mode="dark"] {
	--bg: #051d17;
	--surface: #0a2c23;
	--surface-2: #072319;
	--text: #ecf3ef;
	--text-2: #b6c8bf;
	--muted: #8aa196;
	--line: rgba(227, 198, 122, .14);
	--line-gold: rgba(227, 198, 122, .3);
	--header-bg: rgba(5, 29, 23, .86);
	--shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
	--shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
	color-scheme: dark;
}

/* ---------- پایه ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .4s, color .4s;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--em-600); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-d); }
[data-mode="dark"] a { color: var(--gold-2); }
[data-mode="dark"] a:hover { color: #fff; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-body);
	font-weight: 700;
	line-height: 1.45;
	color: var(--text);
	margin: 0 0 .6em;
}

h1, h2, .sec-title, .page-hero__title, .hero__title, .cta h2, .prose h2 { font-family: var(--f-kufi); }
h3, h4, h5, h6 { font-weight: 800; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="ar"] { font-family: var(--f-quran); }
::selection { background: var(--gold-2); color: var(--em-900); }

[hidden] { display: none !important; }
[data-recite] .rw { display: inline !important; }

/* خنثی‌سازی استایل‌های Bootstrap افزونه‌های قالب قبلی (edubin-core) */
a:hover, a:focus { text-decoration: none; }
label { margin-bottom: 0; }
.site-header *, .site-footer *, .hero * { box-sizing: border-box; }
/* محافظ در برابر Bootstrap/افزونه‌ها: ویژگی‌های پایه body با اولویت بالاتر */
html body {
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background-color: var(--bg);
	text-align: right;
}
html body .mainnav, html body .topbar, html body .site-footer, html body .search-pop { font-family: var(--f-body); }

.sr-only {
	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 {
	clip: auto; width: auto; height: auto;
	z-index: 9999; top: 10px; right: 10px;
	padding: 10px 18px; background: var(--gold); color: var(--em-900);
	border-radius: 10px;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.ahm-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.ahm-container--narrow { max-width: 900px; }

.ahm-ico { width: 1.25em; height: 1.25em; flex: none; }
.ahm-ico.flip { transform: scaleX(-1); }
.ahm-star { fill: currentColor; }

/* ---------- دکمه‌ها ---------- */
.ahm-btn {
	--b: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .78em 1.5em;
	border-radius: 999px;
	border: 1.5px solid var(--b);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
	white-space: nowrap;
}
.ahm-btn .ahm-ico { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.ahm-btn:hover .ahm-ico:last-child:not(:first-child) { transform: translateX(-4px); }
.ahm-btn:hover { transform: translateY(-2px); }
.ahm-btn--sm { padding: .55em 1.1em; font-size: 14px; }
.ahm-btn--lg { padding: .95em 1.9em; font-size: 16px; }
.ahm-btn--block { display: flex; width: 100%; }

.ahm-btn--gold { background: var(--gold-grad); background-size: 200% 200%; color: var(--em-900) !important; box-shadow: 0 10px 26px -12px rgba(201, 162, 74, .9); }
.ahm-btn--gold::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
	transform: translateX(120%); transition: transform .8s var(--ease);
}
.ahm-btn--gold:hover::after { transform: translateX(-120%); }
.ahm-btn--gold:hover { box-shadow: 0 16px 34px -14px rgba(201, 162, 74, 1); }

.ahm-btn--glass { --b: rgba(246, 232, 189, .45); background: rgba(255, 255, 255, .07); color: #fff !important; backdrop-filter: blur(8px); }
.ahm-btn--glass:hover { background: rgba(255, 255, 255, .16); --b: var(--gold-2); }

.ahm-btn--emerald { background: var(--em-800); color: #fff !important; box-shadow: var(--shadow); }
.ahm-btn--emerald:hover { background: var(--em-600); }
[data-mode="dark"] .ahm-btn--emerald { background: var(--gold); color: var(--em-900) !important; }

.ahm-btn--outline { --b: var(--em-600); color: var(--em-700) !important; background: transparent; }
.ahm-btn--outline:hover { background: var(--em-700); color: #fff !important; --b: var(--em-700); }
[data-mode="dark"] .ahm-btn--outline { --b: var(--gold); color: var(--gold-2) !important; }
[data-mode="dark"] .ahm-btn--outline:hover { background: var(--gold); color: var(--em-900) !important; }

.ahm-btn--outline-gold { --b: var(--gold); color: var(--em-800) !important; background: transparent; }
.ahm-btn--outline-gold:hover { background: var(--gold); }
[data-mode="dark"] .ahm-btn--outline-gold { color: var(--gold-2) !important; }
[data-mode="dark"] .ahm-btn--outline-gold:hover { color: var(--em-900) !important; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	position: relative;
	transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.icon-btn:hover { background: var(--em-800); color: var(--gold-2); border-color: var(--em-800); }
.icon-btn .ahm-ico { width: 20px; height: 20px; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0464e; box-shadow: 0 0 0 0 rgba(224, 70, 78, .7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224, 70, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 70, 78, 0); } }

.chip { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1.1em; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip--glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(246, 232, 189, .25); color: var(--gold-3); backdrop-filter: blur(6px); }

/* ---------- نوار پیشرفت خواندن ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* ---------- هدر ---------- */
.topbar { background: var(--em-900); color: rgba(255, 255, 255, .78); font-size: 13px; position: relative; z-index: 60; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-2); }
.topbar .ahm-ico { width: 15px; height: 15px; color: var(--gold); }
.topbar__contact, .topbar__side { display: flex; align-items: center; gap: 20px; }
.topbar__bism { font-family: var(--f-quran); color: var(--gold-2); font-size: 17px; line-height: 1; letter-spacing: 0; }
.topbar__sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); }
.topbar__muted { opacity: .7; }

.socials { display: flex; align-items: center; gap: 8px; }
.socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-gold); color: var(--gold); transition: all .3s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--em-900); transform: translateY(-3px) rotate(-8deg); }
.socials .ahm-ico { width: 18px; height: 18px; }
.socials--top a { width: auto; height: auto; border: 0; }
.socials--top a:hover { background: none; transform: none; }

.site-header { position: sticky; top: calc(var(--adminbar, 0px) - 42px); z-index: 50; }
.ahm-navbar {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
/* پس‌زمینه شیشه‌ای روی شبه‌عنصر تا منوی کشویی (fixed) محدود به نوار نشود */
.ahm-navbar::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--header-bg);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	transition: background .3s;
}
.nav-open .site-header { z-index: 1002; }
.nav-open .ahm-navbar { z-index: 70; }
.is-stuck .ahm-navbar { box-shadow: 0 12px 30px -20px rgba(6, 41, 31, .5); }
.ahm-navbar__in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); transition: min-height .3s; }
.is-stuck .ahm-navbar__in { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text) !important; flex: none; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; transition: width .3s, height .3s; }
.is-stuck .brand--header .brand__logo { width: 46px; height: 46px; }
.brand__mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; color: var(--em-800); }
.brand__mark .ahm-star { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--em-800); animation: spin 40s linear infinite; }
.brand__mark b { position: relative; font-family: var(--f-quran); color: var(--gold-2); font-size: 24px; line-height: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__text strong { font-family: var(--f-kufi); font-size: 20px; font-weight: 700; }
.brand__text small { font-size: 11.5px; color: var(--muted); }
[data-mode="dark"] .brand__mark .ahm-star { color: var(--gold-d); }

.mainnav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.mainnav__head, .mainnav__foot { display: none; }
.mainnav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mainnav .menu > li { position: relative; }
.mainnav .menu a {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px;
	color: var(--text);
	font-weight: 500;
	font-size: 15px;
	border-radius: 10px;
	position: relative;
	white-space: nowrap;
}
.mainnav .menu > li > a::after {
	content: ""; position: absolute; bottom: 2px; right: 50%; width: 7px; height: 7px;
	background: var(--gold); transform: translateX(50%) rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.mainnav .menu > li:hover > a::after,
.mainnav .menu > .current-menu-item > a::after,
.mainnav .menu > .current-menu-ancestor > a::after { transform: translateX(50%) rotate(45deg) scale(1); }
.mainnav .menu > .current-menu-item > a,
.mainnav .menu a:hover { color: var(--em-600); }
[data-mode="dark"] .mainnav .menu > .current-menu-item > a,
[data-mode="dark"] .mainnav .menu a:hover { color: var(--gold-2); }

.mainnav .menu-item-has-children > a::before {
	content: ""; order: 2; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-2px); opacity: .6;
}
.mainnav .sub-menu {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; top: 100%; right: 0; min-width: 230px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: 0 0 16px 16px;
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .3s var(--ease);
	z-index: 10;
}
.mainnav .sub-menu .sub-menu { top: 0; right: 100%; border-radius: 16px; }
.mainnav li:hover > .sub-menu,
.mainnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainnav .sub-menu a { padding: 9px 12px; font-size: 14.5px; }
.mainnav .sub-menu a:hover { background: var(--surface-2); padding-right: 18px; }

.ahm-navbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ahm-navbar__cta { margin-right: 6px; }
.burger { display: none; }
.cart-btn .cart-count {
	position: absolute; top: -3px; left: -3px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px; background: var(--gold); color: var(--em-900);
	font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.cart-btn .cart-count.is-empty { display: none; }
.mode-toggle .i-sun { display: none; }
[data-mode="dark"] .mode-toggle .i-sun { display: block; }
[data-mode="dark"] .mode-toggle .i-moon { display: none; }

/* جستجو */
.search-pop {
	position: fixed; inset: 0; z-index: 2000;
	background: rgba(3, 26, 20, .94);
	backdrop-filter: blur(10px);
	display: grid; place-items: center;
	padding: 24px;
	opacity: 0; transition: opacity .35s;
}
.search-pop::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .07; }
.search-pop.is-open { opacity: 1; }
.search-pop__in { position: relative; width: min(720px, 100%); text-align: center; }
.search-pop__ayah { display: block; font-size: clamp(28px, 5vw, 46px); color: var(--gold-2); margin-bottom: 26px; }
.search-pop__close { position: absolute; top: 24px; left: 24px; color: #fff; border-color: rgba(255, 255, 255, .25); }
.search-pop .search-form__input { font-size: 18px; padding: 20px 26px; background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--line-gold); }
.search-pop .search-form__btn { width: 54px; height: 54px; }

.search-form { position: relative; display: flex; }
.search-form__input {
	width: 100%; padding: 14px 20px 14px 64px;
	border-radius: 999px; border: 1.5px solid var(--line);
	background: var(--surface); outline: none;
	transition: border-color .25s, box-shadow .25s;
}
.search-form__input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }
.search-form__btn {
	position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--gold-grad); color: var(--em-900); display: grid; place-items: center;
}

/* ---------- هیرو ---------- */
.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(900px 600px at 15% 30%, rgba(26, 122, 94, .55), transparent 60%),
		radial-gradient(700px 500px at 90% 90%, rgba(201, 162, 74, .16), transparent 60%),
		linear-gradient(160deg, var(--em-800) 0%, var(--em-900) 55%, var(--em-950) 100%);
	padding: 90px 0 150px;
	isolation: isolate;
}
.hero__pattern {
	position: absolute; inset: -88px; z-index: -2;
	background: var(--pattern); background-size: 88px;
	opacity: .1;
	animation: drift 60s linear infinite;
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
@keyframes drift { to { transform: translate(88px, 88px); } }
.hero__glow {
	position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
	left: 8%; top: 12%;
	background: radial-gradient(circle, rgba(246, 232, 189, .28), transparent 65%);
	filter: blur(20px);
	animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.hero__lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__lights i {
	position: absolute; bottom: -10px;
	width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
	background: var(--gold-2);
	box-shadow: 0 0 12px 2px rgba(246, 232, 189, .7);
	opacity: 0;
	animation: rise var(--t, 14s) linear var(--dl, 0s) infinite;
}
@keyframes rise {
	10% { opacity: .9; }
	90% { opacity: .6; }
	100% { transform: translate(var(--x, 30px), -110vh); opacity: 0; }
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero__bism {
	font-family: var(--f-quran);
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.9;
	margin: 14px 0 0;
	background: var(--gold-grad);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 18px rgba(201, 162, 74, .35));
}
.hero__title { color: #fff; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.3; margin-bottom: 18px; }
.hero__title span { display: block; }
.hero__title em {
	display: block; font-style: normal;
	font-size: .52em; font-weight: 500;
	color: var(--gold-2);
	margin-top: 6px;
}
.hero__lead { font-size: 17px; color: rgba(255, 255, 255, .8); max-width: 580px; line-height: 2.1; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(246, 232, 189, .18);
	font-size: 14px; color: var(--gold-3);
}
.hero__chips .ahm-ico { color: var(--gold); width: 18px; height: 18px; }

/* محراب */
.hero__visual { perspective: 1100px; width: 100%; }
.mihrab {
	position: relative;
	width: min(430px, 100%);
	aspect-ratio: 400 / 520;
	margin-inline: auto;
	transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .6s var(--ease);
}
.mihrab__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mihrab__frame path { fill: none; stroke: url(#ahmGold); }
.mihrab__outer { stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s var(--ease) .3s forwards; filter: drop-shadow(0 0 10px rgba(201, 162, 74, .5)); }
.mihrab__inner { stroke-width: 1; opacity: .6; stroke-dasharray: 4 6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mihrab__core {
	position: absolute; inset: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 520' preserveAspectRatio='none'%3E%3Cpath d='M44 520V236C44 140 122 86 200 40c78 46 156 100 156 196v284z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 520' preserveAspectRatio='none'%3E%3Cpath d='M44 520V236C44 140 122 86 200 40c78 46 156 100 156 196v284z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	background:
		radial-gradient(circle at 50% 42%, rgba(246, 232, 189, .22), transparent 55%),
		linear-gradient(180deg, rgba(17, 96, 74, .9), rgba(3, 26, 20, .95));
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	padding: 0 16% 12%;
	text-align: center;
	transform: translateZ(20px);
}
.mihrab__core::before { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 60px; opacity: .12; }
.rosette { position: relative; width: 74%; aspect-ratio: 1; margin-bottom: 8%; }
.rosette__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.rosette__ring--a { animation: spin 70s linear infinite; }
.rosette__ring--b { inset: 14%; width: 72%; height: 72%; animation: spin 45s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.rosette__center { position: absolute; inset: 31%; display: grid; place-items: center; }
.rosette__center .ahm-star { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--gold); opacity: .95; filter: drop-shadow(0 0 16px rgba(246, 232, 189, .6)); animation: spin 30s linear infinite; }
.rosette__center--logo { inset: 24%; }
.rosette__center--logo .ahm-star { animation-duration: 60s; }
.rosette__logo { position: absolute !important; inset: 17%; display: grid; place-items: center; border-radius: 50%; background: #fff; padding: 12%; box-shadow: 0 0 0 3px var(--gold), 0 10px 30px -8px rgba(0, 0, 0, .6); margin: 0 !important; }
.rosette__logo img { width: 100%; height: 100%; object-fit: contain; }
.rosette__center span { position: relative; font-size: clamp(16px, 2vw, 22px); color: var(--em-900); line-height: 1; margin-top: 6px; }
.mihrab__ayah { position: relative; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.6; color: var(--gold-3); margin: 0 0 6px; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.mihrab__ref { position: relative; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.float-card {
	position: absolute;
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(246, 232, 189, .25);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
	line-height: 1.5;
	white-space: nowrap;
	transform: translateZ(70px);
	animation: bob 6s ease-in-out infinite;
}
.float-card .ahm-ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--gold-grad); color: var(--em-900); }
.float-card b { display: block; font-size: 14px; }
.float-card small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.float-card--a { top: 30%; right: -9%; }
.float-card--b { bottom: 18%; left: -10%; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -12px; } }

.hero__scroll { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(246, 232, 189, .5); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } }
.hero__arch, .page-hero__arch { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--bg); transition: fill .4s; }

/* ---------- نوار آیات ---------- */
.marquee-wrap { position: relative; z-index: 3; overflow: hidden; margin-top: -60px; padding: 18px 0 30px; }
.marquee {
	direction: ltr;
	overflow: hidden;
	background: var(--gold-grad);
	color: var(--em-900);
	padding: 14px 0;
	position: relative;
	margin-inline: -20px;
	transform: rotate(-1.2deg);
	box-shadow: 0 20px 40px -24px rgba(149, 115, 37, .9);
}
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marq 90s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { direction: rtl; font-size: 26px; line-height: 1.5; white-space: nowrap; }
.marquee i { font-style: normal; font-family: var(--f-quran); font-size: 24px; color: var(--em-700); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- بخش‌ها ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0 90px; }
.parchment { background: var(--surface-2); }
.parchment::before { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 88px; opacity: .07; pointer-events: none; }
.parchment > .ahm-container { position: relative; }

.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head--start { margin-inline: 0; text-align: right; }
.sec-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-d); font-size: 14.5px; letter-spacing: 0; margin-bottom: 8px; }
[data-mode="dark"] .sec-kicker { color: var(--gold-2); }
.sec-kicker__star { width: 16px; height: 16px; animation: spin 12s linear infinite; }
.sec-title { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; }
.sec-orn { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); margin-bottom: 14px; }
.sec-orn i { width: 64px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-orn i:last-child { transform: scaleX(-1); }
.sec-orn .ahm-star { width: 20px; height: 20px; }
.sec-desc { color: var(--text-2); font-size: 16.5px; margin: 0; }
.sec-more { text-align: center; margin-top: 48px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px; border: 1.5px dashed var(--line-gold); border-radius: var(--radius); }

/* مسیرها */
.tracks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.track {
	position: relative;
	padding: 64px 26px 30px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 200px 200px var(--radius) var(--radius) / 130px 130px var(--radius) var(--radius);
	text-align: center;
	transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
	overflow: hidden;
}
.track::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(201, 162, 74, .14), transparent 45%);
	opacity: 0; transition: opacity .5s;
}
.track:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.track:hover::before { opacity: 1; }
.track__num { position: absolute; top: 18px; right: 50%; transform: translateX(50%); width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); }
.track__num .ahm-star { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; transition: transform 1s var(--ease); }
.track:hover .track__num .ahm-star { transform: rotate(180deg); opacity: .5; }
.track__num b { position: relative; font-family: var(--f-kufi); font-size: 15px; color: var(--gold-d); }
.track__ico {
	position: relative;
	display: inline-grid; place-items: center;
	width: 76px; height: 76px; margin: 14px auto 18px;
	border-radius: 24px;
	background: var(--em-800);
	color: var(--gold-2);
	transform: rotate(45deg);
	box-shadow: 0 16px 30px -16px rgba(6, 41, 31, .8);
	transition: transform .6s var(--ease), background .4s;
}
.track__ico .ahm-ico { width: 32px; height: 32px; transform: rotate(-45deg); transition: transform .6s var(--ease); }
.track:hover .track__ico { transform: rotate(225deg); background: var(--gold); color: var(--em-900); }
.track:hover .track__ico .ahm-ico { transform: rotate(-225deg); }
.track__title { font-size: 21px; margin-bottom: 10px; }
.track p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 2; }

/* دوره‌ها */
.courses__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.course, .ahm-card {
	display: flex; flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	overflow: hidden;
	box-shadow: 0 10px 30px -26px rgba(6, 41, 31, .5);
	transition: transform .5s var(--ease), box-shadow .5s;
}
.course:hover, .ahm-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course__media, .ahm-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--em-800); }
.course__media img, .ahm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.course__media { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 45%, rgba(201, 162, 74, .25), transparent 65%), var(--em-800); }
.course__media img.course__img { object-fit: contain; padding: 14px; }
.course:hover .course__media img, .ahm-card:hover .ahm-card__media img { transform: scale(1.07); }
.course__media::after, .ahm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 26, 20, .55), transparent 50%); }
.course__img--ph, .ahm-card__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--em-800); position: relative; }
.course__img--ph::before, .ahm-card__ph::before { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 60px; opacity: .2; }
.course__img--ph .ahm-star, .ahm-card__ph .ahm-star { width: 30%; color: var(--gold); opacity: .8; animation: spin 40s linear infinite; }
.course__badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 4px 12px; border-radius: 8px; background: var(--crimson); color: #fff; font-size: 12.5px; font-weight: 700; }
.course__body, .ahm-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course__cat, .ahm-card__cat { font-size: 13px; font-weight: 700; color: var(--gold-d); margin-bottom: 6px; }
.course__cat a { color: inherit; }
[data-mode="dark"] .course__cat, [data-mode="dark"] .ahm-card__cat { color: var(--gold-2); }
.course__title, .ahm-card__title { font-size: 20px; margin-bottom: 8px; line-height: 1.55; }
.course__title a, .ahm-card__title a { color: var(--text); background: linear-gradient(var(--gold), var(--gold)) right bottom / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.course__title a:hover, .ahm-card__title a:hover { background-size: 100% 2px; color: var(--text); }
.course__desc, .ahm-card__excerpt { font-size: 14.5px; color: var(--text-2); line-height: 2; margin-bottom: 14px; }
.course__meta { list-style: none; margin: auto 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.course__meta li { display: inline-flex; align-items: center; gap: 6px; }
.course__meta .ahm-ico { width: 17px; height: 17px; color: var(--gold); }
.course__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.course__price { font-size: 18px; font-weight: 800; color: var(--em-600); }
[data-mode="dark"] .course__price { color: var(--gold-2); }
.course__price del { font-size: 14px; color: var(--muted); opacity: .8; margin-left: 6px; }
.course__price ins { text-decoration: none; }
.ahm-card__date { position: absolute; bottom: 14px; right: 14px; z-index: 1; padding: 4px 12px; border-radius: 8px; background: rgba(3, 26, 20, .6); backdrop-filter: blur(6px); color: var(--gold-3); font-size: 12.5px; }
.ahm-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; font-size: 14px; }
.ahm-card__more .ahm-ico { width: 16px; transition: transform .3s; }
.ahm-card__more:hover .ahm-ico { transform: translateX(-5px); }

/* مراحل */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; counter-reset: s; }
.steps__list::before { content: ""; position: absolute; top: 46px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .6; }
.step { text-align: center; position: relative; }
.step__badge { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 18px; color: var(--gold-2); }
.step__badge .ahm-star { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--em-800); transition: transform 1s var(--ease); filter: drop-shadow(0 12px 18px rgba(6, 41, 31, .35)); }
[data-mode="dark"] .step__badge .ahm-star { color: var(--em-600); }
.step:hover .step__badge .ahm-star { transform: rotate(135deg) scale(1.06); }
.step__badge .ahm-ico { position: relative; width: 32px; height: 32px; }
.step__n { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold-d); background: rgba(201, 162, 74, .14); padding: 2px 12px; border-radius: 99px; margin-bottom: 8px; }
[data-mode="dark"] .step__n { color: var(--gold-2); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* آمار */
.stats { position: relative; padding: 70px 0; background: linear-gradient(135deg, var(--em-800), var(--em-950)); color: #fff; overflow: hidden; }
.stats__pattern { position: absolute; inset: 0; background: var(--pattern); background-size: 88px; opacity: .08; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; right: -12px; top: 20%; height: 60%; width: 1px; background: linear-gradient(transparent, var(--line-gold), transparent); }
.stat__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; color: var(--gold-2); background: rgba(201, 162, 74, .12); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); margin-bottom: 10px; }
.stat__ico .ahm-ico { width: 26px; height: 26px; }
.stat__num { display: block; font-family: var(--f-kufi); font-size: clamp(36px, 4vw, 52px); line-height: 1.2; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: rgba(255, 255, 255, .78); font-size: 15px; }

/* اساتید */
.teachers__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 20px; }
.teachers--page .teachers__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.teacher { text-align: center; color: var(--text) !important; display: flex; flex-direction: column; align-items: center; }
.teacher__frame { position: relative; display: block; width: 100%; max-width: 180px; aspect-ratio: 1; margin-bottom: 14px; }
.teacher__frame--lg { max-width: 220px; flex: none; }
.teacher__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--surface-2); stroke: var(--gold); stroke-width: 1.2; transition: transform 1.4s var(--ease), fill .4s; }
.teacher:hover .teacher__ring { transform: rotate(90deg); fill: rgba(201, 162, 74, .2); }
.teacher__photo { position: absolute; inset: 19%; border-radius: 50%; overflow: hidden; background: var(--em-800); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--gold), 0 16px 30px -14px rgba(6, 41, 31, .7); transition: transform .6s var(--ease); }
.teacher:hover .teacher__photo { transform: scale(1.06); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher__initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--f-ruqaa); font-size: 44px; color: var(--gold-2); background: radial-gradient(circle at 50% 35%, var(--em-600), var(--em-900)); padding-bottom: 8px; }
.teacher__name { font-size: 16.5px; margin-bottom: 2px; }
.teacher__role { font-size: 13px; color: var(--muted); }
.teacher__tags { display: block; font-size: 12.5px; color: var(--gold-d); margin-top: 4px; }

/* آیه روز */
.daily__card {
	position: relative;
	max-width: 960px; margin: 0 auto;
	padding: 64px clamp(22px, 6vw, 80px) 48px;
	text-align: center;
	background: var(--surface);
	border-radius: 28px;
	box-shadow: var(--shadow-lg);
	outline: 1.5px solid var(--line-gold);
	outline-offset: -14px;
}
.corner { position: absolute; width: 42px; height: 42px; background: var(--gold); -webkit-mask: var(--corner) center / contain no-repeat; mask: var(--corner) center / contain no-repeat; --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h24c0 9-6 15-15 15 0 5 3 9 9 9H0z M28 0h4v4h-4zM0 28h4v4H0z'/%3E%3C/svg%3E"); }
.corner--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.corner--tl { top: 22px; left: 22px; }
.corner--br { bottom: 22px; right: 22px; transform: scale(-1); }
.corner--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.daily__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-kufi); font-size: 17px; color: var(--gold-d); margin-bottom: 18px; }
.daily__kicker .ahm-star { width: 18px; height: 18px; color: var(--gold); }
[data-mode="dark"] .daily__kicker { color: var(--gold-2); }
.daily__ayah { font-size: clamp(30px, 4.6vw, 54px); line-height: 2; color: var(--em-700); margin: 0 0 14px; transition: opacity .4s, transform .4s; }
[data-mode="dark"] .daily__ayah { color: var(--gold-3); }
.daily__tr { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0 auto 14px; transition: opacity .4s .05s; }
.daily__ref { display: inline-block; padding: 4px 16px; border-radius: 99px; background: rgba(201, 162, 74, .14); color: var(--gold-d); font-size: 13.5px; font-weight: 700; }
[data-mode="dark"] .daily__ref { color: var(--gold-2); }
.daily__nav { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.daily__card.is-swapping .daily__ayah, .daily__card.is-swapping .daily__tr { opacity: 0; transform: translateY(10px); }

/* اخبار */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.posts-grid--archive { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* CTA */
.cta-wrap { padding-top: 0; }
.cta {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 30px;
	padding: 56px clamp(26px, 5vw, 70px);
	border-radius: 32px;
	background: linear-gradient(120deg, var(--em-700), var(--em-950));
	color: #fff;
	box-shadow: var(--shadow-lg);
}
.cta__pattern { position: absolute; inset: 0; z-index: -1; background: var(--pattern); background-size: 70px; opacity: .1; }
.cta__star { position: absolute; z-index: -1; width: 380px; height: 380px; left: -90px; top: 50%; margin-top: -190px; color: var(--gold); opacity: .12; animation: spin 50s linear infinite; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.cta p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-self: end; }
.cta__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-3); }
.cta__phone .ahm-ico { color: var(--gold); }

/* ---------- سربرگ صفحات ---------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: 70px 0 110px;
	text-align: center;
	color: #fff;
	background: radial-gradient(600px 300px at 50% 0%, rgba(26, 122, 94, .6), transparent 70%), linear-gradient(160deg, var(--em-800), var(--em-950));
}
.page-hero__pattern { position: absolute; inset: 0; z-index: -1; background: var(--pattern); background-size: 76px; opacity: .1; -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); }
.page-hero__star { position: absolute; z-index: -1; width: 260px; height: 260px; right: -60px; top: -60px; color: var(--gold); opacity: .1; animation: spin 60s linear infinite; }
.page-hero__title { color: #fff; font-size: clamp(28px, 4vw, 46px); margin-bottom: 8px; }
.page-hero__sub { color: rgba(255, 255, 255, .75); max-width: 680px; margin: 0 auto 10px; }
.page-hero__arch { height: 60px; }
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 14px; padding: 6px 18px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(246, 232, 189, .18); color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--gold-2) !important; }
.crumbs i { display: inline-flex; opacity: .5; }
.crumbs .ahm-ico { width: 14px; height: 14px; }

/* ---------- چیدمان و محتوا ---------- */
.layout { display: block; }
.layout--side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget-title { font-size: 17px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-gold); }
.widget-title::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }

.entry { background: var(--surface); border-radius: 26px; padding: clamp(22px, 4vw, 48px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.entry__thumb { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }
.entry__thumb img { width: 100%; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .ahm-ico { width: 17px; height: 17px; color: var(--gold); }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.entry__tags a { padding: 4px 14px; border-radius: 99px; background: var(--surface-2); font-size: 13.5px; }
.entry__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; padding-top: 26px; border-top: 1px dashed var(--line-gold); }
.entry__nav div:last-child { text-align: left; }
.entry__nav a { display: block; color: var(--text); }
.entry__nav small { display: block; color: var(--gold-d); font-weight: 700; }

.prose { font-size: 17px; line-height: 2.1; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; padding-right: 18px; position: relative; }
.prose h2::before { content: ""; position: absolute; right: 0; top: .55em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); }
.prose a { text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 5px; }
.prose ul, .prose ol { padding-right: 1.4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.8em 0; padding: 22px 28px; border-right: 4px solid var(--gold); background: var(--surface-2); border-radius: 14px; font-size: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); }
.prose th { background: var(--surface-2); }
.prose pre { direction: ltr; text-align: left; overflow: auto; padding: 18px; border-radius: 12px; background: var(--em-950); color: #e6f0ea; }

/* آیات در محتوا */
.is-style-ahm-ayah,
.prose .is-style-ahm-ayah {
	font-family: var(--f-quran) !important;
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 2.1;
	text-align: center;
	color: var(--em-700);
}
[data-mode="dark"] .is-style-ahm-ayah { color: var(--gold-3); }
blockquote.is-style-ahm-ayah,
.wp-block-quote.is-style-ahm-ayah { border: 1.5px solid var(--line-gold) !important; outline: 1px solid var(--line-gold); outline-offset: -10px; border-radius: 20px; padding: 34px 28px; background: var(--surface-2); }
.wp-block-quote.is-style-ahm-ayah cite { display: block; font-family: var(--f-body); font-size: 14px; font-style: normal; color: var(--gold-d); margin-top: 10px; }
.is-style-ahm-kufi { font-family: var(--f-kufi); text-align: center; }
.is-style-ahm-kufi::after { content: "۞"; display: block; font-family: var(--f-quran); color: var(--gold); font-size: .7em; margin-top: 4px; }
.is-style-ahm-parchment { background: var(--surface-2); border: 1px solid var(--line-gold); border-radius: 22px; padding: 30px; }
.is-style-ahm-arch img { border-radius: 999px 999px 18px 18px / 260px 260px 18px 18px !important; border: 3px solid var(--gold); padding: 6px; }

.ayah-block { margin: 2em 0; padding: 40px 30px 30px; text-align: center; background: var(--surface-2); border-radius: 22px; border: 1.5px solid var(--line-gold); position: relative; }
.ayah-block__orn { position: absolute; top: -20px; right: 50%; transform: translateX(50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--gold); font-family: var(--f-quran); font-size: 22px; border: 1.5px solid var(--line-gold); }
.ayah-text { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-family: var(--f-quran); font-size: clamp(26px, 3.4vw, 38px); line-height: 2; color: var(--em-700); }
[data-mode="dark"] .ayah-text { color: var(--gold-3); }
.ayah-tr { color: var(--text-2); margin: 10px 0 6px; }
.ayah-ref { font-size: 13.5px; font-weight: 700; color: var(--gold-d); }

/* بلوک‌های وردپرس */
.alignwide { margin-inline: calc(-1 * clamp(0px, 4vw, 60px)); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-block-button__link { border-radius: 999px !important; background: var(--gold-grad); color: var(--em-900) !important; font-weight: 700; padding: .8em 1.6em; }
.wp-block-image figcaption, .wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 0 1em 1.5em; }
.alignright { float: right; margin: 0 1.5em 1em 0; }

/* صفحه‌بندی */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 50px; }
.pager .page-numbers, .pager > a, .pager > span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; }
.pager .current { background: var(--em-800); color: var(--gold-2); border-color: var(--em-800); }
.pager a:hover { border-color: var(--gold); color: var(--gold-d); }

/* فرم‌ها */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
	width: 100%; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); outline: none; transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }
input[type="submit"], button[type="submit"]:not(.search-form__btn) { cursor: pointer; }
.wpcf7-submit, .comment-form .submit { display: inline-flex; padding: .8em 1.8em; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--em-900); font-weight: 700; }
label { font-weight: 500; font-size: 14.5px; }

/* دیدگاه‌ها */
.comments { margin-top: 44px; padding-top: 30px; border-top: 1px dashed var(--line-gold); }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-right: 30px; }
.comment-body { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; position: relative; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12.5px; color: var(--muted); }
.comment-reply-link { font-size: 13px; font-weight: 700; }
.comment-form p { margin-bottom: 14px; }

/* هیچ / ۴۰۴ */
.nothing { text-align: center; padding: 40px 0; max-width: 620px; margin: 0 auto; }
.nothing__star { width: 70px; color: var(--gold); margin: 0 auto 14px; animation: spin 20s linear infinite; }
.nothing__num { position: relative; width: 200px; height: 200px; margin: 0 auto 20px; display: grid; place-items: center; }
.nothing__num .ahm-star { position: absolute; inset: 0; color: var(--em-800); animation: spin 40s linear infinite; }
.nothing__num b { position: relative; font-family: var(--f-kufi); font-size: 56px; color: var(--gold-2); }
.nothing__ayah { font-size: 34px; color: var(--em-700); }
[data-mode="dark"] .nothing__ayah { color: var(--gold-3); }
.nothing .search-form { margin: 24px 0; }

.teacher-profile__head { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.teacher-profile__head h2 { margin-bottom: 4px; }

/* عرض کامل / المنتور */
.fullwidth { width: 100%; }
.fullwidth--padded { padding: 60px 0 90px; }
.prose--wide { max-width: var(--container); }

/* ---------- فوتر ---------- */
.site-footer { position: relative; margin-top: 40px; background: var(--em-950); color: rgba(255, 255, 255, .72); padding-top: 70px; overflow: hidden; isolation: isolate; }
.footer__border { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 0h28L14 14z' fill='%23c9a24a'/%3E%3Ccircle cx='14' cy='4' r='2' fill='%23031a14'/%3E%3C/svg%3E") repeat-x; background-size: 28px 14px; }
.footer__pattern { position: absolute; inset: 0; z-index: -1; background: var(--pattern); background-size: 88px; opacity: .05; }
.footer__ayah { text-align: center; padding-bottom: 40px; margin-bottom: 50px; border-bottom: 1px solid rgba(201, 162, 74, .18); }
.footer__ayah > span { display: block; white-space: nowrap; font-size: clamp(19px, 5vw, 40px); color: var(--gold-2); line-height: 1.8; }
.footer__ayah small { font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__col p { font-size: 14.5px; line-height: 2.1; margin: 18px 0 20px; }
.site-footer .brand { color: #fff !important; }
.site-footer .brand__text small { color: rgba(255, 255, 255, .5); }
.site-footer .brand__mark .ahm-star { color: var(--em-700); }
.footer__title { color: #fff; font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.footer__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, rgba(201, 162, 74, .5), transparent); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { padding: 5px 0; }
.footer__links a { color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .25s; }
.footer__links a::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: .6; transition: opacity .25s; }
.footer__links a:hover { color: var(--gold-2); transform: translateX(-4px); }
.footer__links a:hover::before { opacity: 1; }
.footer__contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ahm-ico { color: var(--gold); margin-top: 5px; width: 18px; height: 18px; }
.footer__contact a { color: inherit; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget-title { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(201, 162, 74, .15); padding: 18px 0; font-size: 13.5px; background: rgba(0, 0, 0, .2); }
.footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer__bottom p { margin: 0; }
.credit a { color: var(--gold-2) !important; font-weight: 800; font-family: var(--f-body); letter-spacing: .5px; }

/* نشان (Emblem) لوگو در فوتر — هم‌خوان با گل‌نقش محراب */
.brand--footer { gap: 16px; }
.emblem { position: relative; display: grid; place-items: center; width: 96px; height: 96px; flex: none; }
.emblem__star { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(201, 162, 74, .1); stroke: var(--gold); stroke-width: 1.2; animation: spin 40s linear infinite; }
.emblem__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(201, 162, 74, .5); animation: spin 22s linear infinite reverse; }
.emblem__orbit { position: absolute; inset: 12%; border-radius: 50%; animation: spin 6s linear infinite; }
.emblem__orbit::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff6d6; box-shadow: 0 0 10px 3px rgba(246, 227, 164, .85); }
.site-footer .emblem__logo { position: relative; width: 60px; height: 60px; padding: 8px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 7px rgba(201, 162, 74, .14), 0 14px 30px -10px rgba(0, 0, 0, .8); }
.site-footer .brand--footer .brand__text strong { font-size: 22px; }

/* ابزارک‌های فوتر (از جمله ابزارک‌های قالب قبلی) */
.site-footer .widget + .widget { margin-top: 18px; }
.site-footer .widget_media_image { position: relative; display: grid; place-items: center; padding: 34px 0; }
.site-footer .widget_media_image::before {
	content: ""; position: absolute; width: 200px; height: 200px; top: 50%; left: 50%; margin: -100px 0 0 -100px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2 61.5 22.3 84 16 77.7 38.5 98 50 77.7 61.5 84 84 61.5 77.7 50 98 38.5 77.7 16 84 22.3 61.5 2 50 22.3 38.5 16 16 38.5 22.3Z' fill='%23c9a24a' fill-opacity='.08' stroke='%23c9a24a' stroke-width='.8'/%3E%3Ccircle cx='50' cy='50' r='34' fill='none' stroke='%23c9a24a' stroke-width='.5' stroke-dasharray='1.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: spin 45s linear infinite;
}
.site-footer .widget_media_image a, .site-footer .widget_media_image > img { position: relative; display: block; }
.site-footer .widget_media_image img {
	position: relative;
	width: 132px !important; height: 132px !important; max-width: none;
	padding: 18px; border-radius: 50%; background: #fff; object-fit: contain;
	box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(201, 162, 74, .14), 0 24px 44px -14px rgba(0, 0, 0, .85);
	transition: transform .6s var(--ease);
}
.site-footer .widget_media_image:hover img { transform: scale(1.06) rotate(-4deg); }
.site-footer .widget_text { text-align: center; font-size: 14.5px; }
.site-footer .widget_text a { color: var(--gold-2); }
.site-footer .edubin-social { display: none; }

/* بازگشت به بالا */
.to-top {
	position: fixed; left: 24px; bottom: 24px; z-index: 40;
	width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center;
	background: var(--em-800); color: var(--gold-2);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(20px);
	transition: all .4s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--em-900); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 150.8; stroke-dashoffset: calc(150.8 - 150.8 * var(--p, 0)); }

/* ---------- انیمیشن ورود ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1520px) {
	.ahm-navbar__cta { display: none; }
	.mainnav .menu a { padding: 10px 11px; }
}

@media (max-width: 1180px) {
	.burger { display: inline-grid; }
	.mainnav {
		position: fixed; top: 0; bottom: 0; right: 0; z-index: 1001;
		width: min(340px, 88vw);
		flex-direction: column; justify-content: flex-start;
		background: var(--surface);
		padding: 20px;
		overflow-y: auto;
		transform: translateX(105%);
		transition: transform .45s var(--ease);
		box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .5);
	}
	.mainnav.is-open { transform: none; }
	.mainnav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px dashed var(--line-gold); }
	.mainnav__foot { display: grid; gap: 18px; margin-top: auto; padding-top: 20px; }
	.mainnav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.mainnav .menu a { padding: 12px 10px; font-size: 16px; }
	.mainnav .menu > li > a::after { display: none; }
	.mainnav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-right: 2px solid var(--line-gold); border-radius: 0; padding: 0 12px 0 0; margin: 0 10px 6px 0; display: none; min-width: 0; background: transparent; }
	.mainnav li.is-open > .sub-menu { display: block; }
	.nav-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 26, 20, .55); backdrop-filter: blur(3px); }
	.ahm-navbar__in { gap: 14px; justify-content: space-between; }
	.hero__grid { gap: 30px; }
	.teachers__grid { grid-template-columns: repeat(3, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.layout--side { grid-template-columns: 1fr; }
	.sidebar { position: static; }
}

@media (max-width: 960px) {
	.topbar__bism { display: none; }
	.hero { padding: 50px 0 130px; text-align: center; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__lead { margin-inline: auto; }
	.hero__btns, .hero__chips { justify-content: center; }
	.hero__visual { max-width: 380px; margin: 10px auto 0; }
	.float-card--a { right: -4%; }
	.float-card--b { left: -4%; }
	.tracks__grid { grid-template-columns: repeat(2, 1fr); }
	.steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
	.steps__list::before { display: none; }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.cta { grid-template-columns: 1fr; text-align: center; }
	.cta__btns { justify-self: center; align-items: center; }
	.stat + .stat::before { display: none; }
}

@media (max-width: 640px) {
	:root { --header-h: 70px; }
	.ahm-container { padding-inline: 16px; }
	.topbar__contact a:first-child span { display: none; }
	.topbar__contact { gap: 12px; }
	.topbar__side { gap: 12px; }
	.topbar .socials--top { display: none; }
	.topbar__sep { display: none; }
	.brand__text small { display: none; }
	.brand__text strong { font-size: 17px; }
	.brand__logo { width: 46px; height: 46px; }
	.ahm-navbar__actions { gap: 4px; }
	.icon-btn { width: 40px; height: 40px; }
	.ahm-navbar__actions [data-open-search] { display: none; }
	.section { padding: 76px 0; }
	.sec-head { margin-bottom: 40px; }
	.hero__btns .ahm-btn { width: 100%; }
	.hero__scroll { display: none; }
	.hero__visual { max-width: 330px; }
	.track { padding-top: 54px; border-radius: 160px 160px var(--radius) var(--radius) / 80px 80px var(--radius) var(--radius); }
	.float-card { padding: 9px 12px; }
	.float-card .ahm-ico { width: 32px; height: 32px; padding: 7px; }
	.float-card--a { top: 24%; right: -2%; }
	.float-card--b { left: -2%; bottom: 2%; }
	.tracks__grid, .posts-grid { grid-template-columns: 1fr; }
	.courses__grid { grid-template-columns: 1fr; }
	.steps__list { grid-template-columns: 1fr; }
	.teachers__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
	.footer__grid { grid-template-columns: 1fr; gap: 34px; }
	.footer__bottom-in { justify-content: center; text-align: center; }
	.marquee span { font-size: 22px; }
	.entry__nav { grid-template-columns: 1fr; }
	.entry__nav div:last-child { text-align: right; }
	.teacher-profile__head { flex-direction: column; text-align: center; }
	.daily__card { outline-offset: -8px; }
	.corner { width: 28px; height: 28px; }
	.to-top { left: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.mihrab__outer { stroke-dashoffset: 0; }
}

/* مدیر وردپرس */
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: -42px; } }

@media print {
	.topbar, .ahm-navbar, .site-footer, .to-top, .read-progress, .marquee { display: none !important; }
	body { background: #fff; color: #000; }
}
