/*
Theme Name: SDP — Scholars Development Program
Theme URI: https://example.com/
Author: Shaoor Institute
Description: Dynamic bilingual (Urdu + English) theme for Hafiz Muhammad Shariq / Scholars Development Program. Manage What's New, Courses, Books, Videos, Testimonials, Institute logos and Khutbaat from the Dashboard; change logo, hero banner/video, texts, colors and the Urdu font (Jameel Noori Nastaleeq) from Appearance → Customize.
Version: 2.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sdp
*/

/* ===================================================================
   1. Tokens
   =================================================================== */
:root {
	--c-primary: #3A1C6E;
	--c-secondary: #7A3FD0;
	--c-accent: #F7931E;
	--c-deep: color-mix(in srgb, var(--c-primary) 72%, #000);
	--c-on-accent: #fff;
	--c-gold-light: color-mix(in srgb, var(--c-accent) 55%, #fff);
	--c-ink: #161B33;
	--c-muted: #5F6480;
	--c-soft: #F7F4FC;
	--c-line: #E9E3F4;
	--c-white: #fff;
	--f-en: 'Poppins';
	--font: 'SDP Urdu', var(--f-en), 'Noto Nastaliq Urdu', system-ui, sans-serif;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px -12px color-mix(in srgb, var(--c-primary) 25%, transparent);
	--shadow-lg: 0 24px 60px -20px color-mix(in srgb, var(--c-primary) 35%, transparent);
	--container: 1200px;
	--header-h: 84px;
}

/* ===================================================================
   2. Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--c-primary); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

/* Urdu / RTL text: Nastaleeq needs extra line height */
[dir="rtl"], [lang="ur"] { line-height: 2.15; }
h1[dir="rtl"], h2[dir="rtl"], h3[dir="rtl"], h4[dir="rtl"],
h1[lang="ur"], h2[lang="ur"], h3[lang="ur"] { line-height: 1.9; letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] { text-align: right; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.center[dir="rtl"] { text-align: center; }
.muted { color: var(--c-muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--c-primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.section { padding: 64px 0; position: relative; }
.section.soft { background: var(--c-soft); }
.section.dark { background: var(--c-primary); color: #fff; }

/* Section heading */
.section-head { text-align: center; margin: 0 auto 34px; max-width: 760px; }
.section-head .eyebrow { display: inline-block; }
.eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--c-accent); margin-bottom: 6px;
}
.eyebrow[dir="rtl"] { font-size: 18px; letter-spacing: 0; }
.eyebrow.light { color: var(--c-gold-light); }
.section-title { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-title::after {
	content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
	background: var(--c-accent); margin: 14px auto 0;
}
.section.dark .section-title { color: #fff; }
.section-head[dir="rtl"], .section-head [dir="rtl"] { text-align: center; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
	border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
	line-height: 1.4; text-align: center;
}
.btn[dir="rtl"] { font-size: 18px; padding-top: 8px; padding-bottom: 10px; line-height: 1.9; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 10px 24px -12px var(--c-accent); }
.btn-accent:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.hero .btn-accent:hover, .section.dark .btn-accent:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-secondary); color: #fff; }
.btn-outline { border-color: var(--c-secondary); color: var(--c-secondary); background: transparent; }
.btn-outline:hover { background: var(--c-secondary); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: #fff; color: var(--c-primary); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.more-row { margin-top: 30px; }

.badge {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 600; line-height: 1.6;
}
.badge-accent { background: color-mix(in srgb, var(--c-accent) 14%, transparent); color: var(--c-accent); margin-bottom: 10px; }
.badge-accent[dir="rtl"] { font-size: 15px; }

.media-placeholder {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	min-height: 180px; color: rgba(255,255,255,.85);
	background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
}

.admin-hint {
	border: 2px dashed var(--c-accent); background: color-mix(in srgb, var(--c-accent) 6%, transparent); padding: 16px 20px;
	border-radius: var(--radius-sm); text-align: center; color: var(--c-ink); font-size: 14px;
}
.admin-hint a { font-weight: 700; color: var(--c-accent); }


/* ===================================================================
   3. Header
   =================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
	backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--c-line);
	transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--c-primary) 40%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { max-height: 70px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 8px 14px; border-radius: 10px; color: var(--c-ink);
	font-weight: 500; font-size: 15px; line-height: 1.5;
}
.main-nav .menu a[dir="rtl"], .main-nav .menu a[lang="ur"] { font-size: 19px; line-height: 1.6; padding-top: 2px; padding-bottom: 6px; }
.main-nav .menu a:hover, .main-nav .menu .current-menu-item > a { color: var(--c-secondary); background: var(--c-soft); }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 210px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-cta { padding: 10px 22px; }
.nav-toggle {
	display: none; background: var(--c-soft); border: 0; color: var(--c-primary);
	width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: inline; }

/* ===================================================================
   4. Hero
   =================================================================== */
.hero {
	position: relative; min-height: min(86vh, 760px); display: flex; align-items: center;
	color: #fff; overflow: hidden; padding: 90px 0 140px;
	background: radial-gradient(120% 120% at 85% 10%, var(--c-secondary) 0%, var(--c-primary) 55%, var(--c-deep) 100%);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .hero-yt { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, color-mix(in srgb, var(--c-deep) calc(var(--overlay, .75) * 100%), transparent) 0%, color-mix(in srgb, var(--c-primary) calc(var(--overlay, .75) * 85%), transparent) 55%, color-mix(in srgb, var(--c-secondary) calc(var(--overlay, .75) * 60%), transparent) 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero.has-photo .hero-inner { grid-template-columns: 1.25fr .9fr; }
.hero-kicker {
	display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .22em;
	text-transform: uppercase; color: var(--c-gold-light); font-weight: 600; margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--c-accent); }
.hero-name {
	font-size: clamp(36px, 6.4vw, 76px); line-height: 1.05; color: #fff; font-weight: 800;
	letter-spacing: -.01em; margin: 0 0 18px; max-width: 14ch;
}
.hero-roles {
	font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .3em; text-transform: uppercase;
	color: rgba(255,255,255,.82); font-weight: 500; margin-bottom: 10px;
}
.hero-tagline { font-size: clamp(26px, 3.6vw, 40px); color: var(--c-accent); margin: 0 0 30px; text-align: left; }
.hero-tagline[dir="rtl"] { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { align-self: end; margin-bottom: -140px; }
.hero-photo img { max-height: 620px; width: auto; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* Quick links */
.quick-links { position: relative; z-index: 5; margin: 48px 0; }
.hero + .quick-links { margin: -72px 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
	display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius);
	padding: 22px 22px; box-shadow: var(--shadow-lg); color: var(--c-ink);
	border-bottom: 4px solid transparent; transition: transform .25s, border-color .25s;
}
.quick-card:hover { transform: translateY(-6px); border-color: var(--c-accent); color: var(--c-ink); }
.quick-icon {
	flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff;
	transition: background .25s;
}
.quick-card:hover .quick-icon { background: var(--c-accent); }
.quick-text { display: flex; flex-direction: column; line-height: 1.3; }
.quick-text strong { font-size: 16px; color: var(--c-primary); }
.quick-text small { font-size: 17px; color: var(--c-muted); line-height: 1.9; text-align: left; }

/* ===================================================================
   5. About SDP
   =================================================================== */
.about-sdp { padding-top: 80px; padding-bottom: 72px; }
.about-title {
	font-size: clamp(22px, 3vw, 32px); letter-spacing: .14em; font-weight: 800; margin-bottom: 22px;
	background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); -webkit-background-clip: text;
	background-clip: text; color: transparent;
}
.about-text p { font-size: clamp(19px, 2vw, 23px); color: #33414F; text-align: center; }

/* ===================================================================
   6. What's New slider
   =================================================================== */
.slider { position: relative; }
.slider-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	border-radius: var(--radius); scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
	flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr;
	background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	min-height: 380px;
}
.slide-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.slide-text[dir="rtl"] { align-items: flex-start; }
.slide-text h3 { font-size: clamp(22px, 2.6vw, 32px); }
.slide-text p { color: var(--c-muted); margin-bottom: 24px; }
.slide-media { position: relative; background: var(--c-soft); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.slider-nav button {
	width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--c-line); background: #fff;
	color: var(--c-primary); display: grid; place-items: center; transition: .2s;
}
.slider-nav button:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: var(--c-line); transition: .25s; }
.slider-dots button.active { width: 28px; background: var(--c-primary); }

/* ===================================================================
   7. Speaking engagements
   =================================================================== */
.speaking { padding-bottom: 70px; }
.speak-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.speak-head .section-head { text-align: left; margin: 0 0 10px; }
.speak-head .section-head .section-title::after { margin-left: 0; }
.speak-head .section-head [dir="rtl"] { text-align: left; }
.speak-head p { max-width: 560px; }
.invite-btn {
	display: inline-flex; align-items: center; gap: 14px; padding: 14px 28px 14px 18px;
	background: var(--c-accent); color: var(--c-on-accent); border-radius: 999px; box-shadow: 0 14px 30px -12px var(--c-accent);
	flex-shrink: 0; transition: transform .2s, background .2s;
}
.invite-btn:hover { transform: translateY(-3px); background: var(--c-primary); color: #fff; }
.invite-btn .icon { background: rgba(255,255,255,.35); border-radius: 50%; padding: 8px; width: 44px; height: 44px; }
.invite-btn > span { display: flex; flex-direction: column; line-height: 1.3; }
.ib-ur { font-size: 20px; line-height: 1.8; }
.ib-en { font-size: 12px; letter-spacing: .2em; font-weight: 700; }
.marquee {
	overflow: hidden; position: relative; padding: 10px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee var(--marquee-time, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-item {
	display: flex; align-items: center; justify-content: center; width: 190px; height: 104px; flex-shrink: 0;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 16px 20px;
	transition: border-color .2s, box-shadow .2s;
}
.logo-item:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.logo-item img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: .3s; }
.logo-item:hover img { filter: none; opacity: 1; }
.logo-name { font-weight: 600; color: var(--c-primary); text-align: center; font-size: 14px; line-height: 1.4; }
.logo-name[dir="rtl"] { font-size: 17px; line-height: 1.9; text-align: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   8. Problem
   =================================================================== */
.problem { overflow: hidden; }
.problem .container { position: relative; }
.problem .eyebrow { color: var(--c-accent); }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.problem-card {
	position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius); padding: 34px 32px 30px; transition: background .25s, transform .25s;
	text-align: right;
}
.problem-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.problem-card h3 { color: #fff; font-size: 25px; margin-bottom: 4px; }
.problem-card p { color: rgba(255,255,255,.82); font-size: 19px; }
.problem-num { position: absolute; top: 22px; left: 26px; font-size: 44px; font-weight: 800; color: rgba(255,255,255,.1); line-height: 1; font-family: var(--f-en), sans-serif; }
.problem-icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--c-accent); color: var(--c-primary); margin-bottom: 12px;
}

/* ===================================================================
   9. Cards (courses, generic)
   =================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--c-line); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; top: 14px; }
.badge-lang { left: 14px; background: #fff; color: var(--c-primary); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.badge-lang [lang="ur"], .badge-lang:lang(ur) { font-size: 15px; line-height: 1.7; }
.badge-status { right: 14px; background: var(--c-primary); color: #fff; }
.badge-status.status-open { background: #16a34a; }
.badge-status.status-soon { background: var(--c-accent); color: var(--c-primary); }
.badge-status.status-closed { background: #6b7280; }
.card-body { padding: 22px 22px 8px; flex: 1; }
.card-title { font-size: 20px; margin-bottom: 8px; }
.card-body[dir="rtl"] .card-title { font-size: 23px; }
.card-title a { color: var(--c-primary); }
.card-title a:hover { color: var(--c-accent); }
.card-text { color: var(--c-muted); font-size: 15px; }
.card-body[dir="rtl"] .card-text { font-size: 17px; }
.card-meta { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--c-muted); }
.card-meta li { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { color: var(--c-accent); }
.card-meta [dir="rtl"] { font-size: 15px; line-height: 1.8; }
.card-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 16px 22px 20px; border-top: 1px dashed var(--c-line); margin-top: 14px;
}
.price { display: flex; flex-direction: column; line-height: 1.3; }
.price strong { font-size: 19px; color: var(--c-primary); }
.refund-tag { display: inline-flex; align-items: center; gap: 4px; color: #16a34a; font-weight: 600; font-size: 12px; }

.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-tabs a {
	padding: 8px 22px; border-radius: 999px; border: 2px solid var(--c-line); color: var(--c-ink); font-weight: 600;
}
.filter-tabs a[lang="ur"] { font-size: 18px; padding-top: 2px; padding-bottom: 6px; line-height: 1.9; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ===================================================================
   10. Books
   =================================================================== */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.book-card { padding: 10px 26px 20px; border-right: 1px solid var(--c-line); display: flex; flex-direction: column; }
.book-card:nth-child(4n) { border-right: 0; }
.book-cover {
	display: block; aspect-ratio: 7 / 10; margin: 0 12px 22px; border-radius: 4px; overflow: hidden;
	box-shadow: 0 22px 34px -14px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.12);
	transition: transform .3s;
}
.book-card:hover .book-cover { transform: translateY(-8px) rotate(-1deg); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-title { font-size: 17px; margin-bottom: 8px; font-weight: 600; flex: 1; }
.book-title[dir="rtl"] { font-size: 21px; }
.book-title a { color: var(--c-ink); }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book-price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.book-price del { color: #9AA3AD; font-size: 15px; }
.book-price strong { font-size: 19px; color: var(--c-ink); }
.book-price.big strong { font-size: 30px; color: var(--c-primary); }
.round-btn {
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
	background: var(--c-primary); color: #fff; transition: background .2s, transform .2s;
}
.round-btn:hover { background: var(--c-accent); color: var(--c-primary); transform: rotate(45deg); }

.book-single { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.book-single-cover img { border-radius: 6px; box-shadow: var(--shadow-lg); }

/* ===================================================================
   11. Author
   =================================================================== */
.author-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.author-grid.no-image { grid-template-columns: 1fr; max-width: 900px; }
.author-photo { position: relative; }
.author-photo::before {
	content: ""; position: absolute; inset: 26px -18px -18px 26px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--c-accent), var(--c-gold-light)); z-index: 0;
}
.author-photo img { position: relative; z-index: 1; border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.author-body .section-head { text-align: left; margin: 0 0 22px; }
.author-body .section-head [dir="rtl"] { text-align: left; }
.author-grid.no-image .author-body .section-head, .author-grid.no-image .author-body .section-head [dir="rtl"] { text-align: center; margin-left: auto; margin-right: auto; }
.author-body .section-title::after { margin-left: 0; }
.author-grid.no-image .section-title::after { margin-left: auto; }
.author-text p { font-size: 20px; color: #33414F; }
.author-grid.no-image .author-text p { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stat { background: var(--c-soft); border-radius: var(--radius-sm); padding: 18px; text-align: center; border-top: 3px solid var(--c-accent); }
.stat strong { display: block; font-size: 26px; color: var(--c-primary); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--c-muted); }
.stat [dir="rtl"] { text-align: center; }
.author-grid.no-image .btn { display: flex; width: max-content; margin: 0 auto; }

/* ===================================================================
   12. Why SDP
   =================================================================== */
.why-layout.has-image { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-layout.has-image .why-grid { grid-template-columns: repeat(2, 1fr); }
.why-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why-card {
	background: #fff; border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--c-line);
	transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-card.highlight { background: linear-gradient(160deg, var(--c-primary), var(--c-secondary)); border: 0; color: #fff; }
.why-card.highlight h3 { color: #fff; }
.why-card.highlight p { color: rgba(255,255,255,.88); }
.why-icon {
	display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
	background: color-mix(in srgb, var(--c-accent) 12%, transparent); color: var(--c-accent); margin-bottom: 16px;
}
.why-card.highlight .why-icon { background: var(--c-accent); color: var(--c-primary); }
.why-card h3 { font-size: 19px; }
.why-card p { font-size: 15px; color: var(--c-muted); }
.why-card p[dir="rtl"] { font-size: 18px; }

/* ===================================================================
   13. Videos
   =================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-primary); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, color-mix(in srgb, var(--c-deep) 60%, transparent)); }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play {
	position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 60px; height: 60px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary);
	display: grid; place-items: center; box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-accent) 30%, transparent); transition: transform .25s;
}
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-title { font-size: 16px; margin: 14px 0 0; color: var(--c-ink); font-weight: 600; }
.video-title[dir="rtl"] { font-size: 19px; }
.video-modal { position: fixed; inset: 0; z-index: 1000; background: color-mix(in srgb, var(--c-deep) 92%, transparent); display: grid; place-items: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-inner { position: relative; width: min(1000px, 100%); }
.video-frame { aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -50px; right: 0; background: none; border: 0; color: #fff; }
.embed { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 28px; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }

/* ===================================================================
   14. Social band
   =================================================================== */
.social-band { background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); padding: 70px 0; }
.social-band .section-title { color: #fff; }
.social-band .section-head { margin-bottom: 34px; }
.social-band .eyebrow { color: var(--c-gold-light); }
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social-card {
	display: flex; align-items: center; gap: 12px; padding: 16px 28px; min-width: 220px; justify-content: center;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
	color: #fff; font-weight: 600; transition: .25s;
}
.social-card:hover { background: #fff; color: var(--c-primary); transform: translateY(-4px); }
.social-facebook:hover { color: #1877F2; }
.social-whatsapp:hover { color: #25D366; }
.social-instagram:hover { color: #E1306C; }
.social-youtube:hover { color: #FF0000; }

/* ===================================================================
   15. Testimonials
   =================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
	background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--c-line);
	display: flex; flex-direction: column; gap: 14px; position: relative;
}
.testi-quote { color: var(--c-accent); }
.testi-text { color: #33414F; font-size: 15px; }
.testi-text[dir="rtl"] { font-size: 18px; }
.testi-shot img { border-radius: var(--radius-sm); max-height: 340px; width: 100%; object-fit: cover; object-position: top; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-avatar.initials { display: grid; place-items: center; background: var(--c-secondary); color: #fff; font-weight: 700; font-size: 18px; }
.testi-person strong { display: block; color: var(--c-primary); line-height: 1.4; }
.testi-person small { color: var(--c-muted); }
.live-feedback {
	margin-top: 44px; background: #fff; border: 2px solid var(--c-line); border-radius: var(--radius);
	padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.live-feedback strong { color: var(--c-primary); letter-spacing: .08em; }
.live-feedback p { color: var(--c-muted); font-size: 19px; }
.live-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-fb { background: #0F5FC8; color: #fff; }
.btn-fb:hover { background: #0d5fd0; color: #fff; }
.btn-ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.btn-ig:hover { color: #fff; }

/* ===================================================================
   16. Inner pages
   =================================================================== */
.page-hero {
	position: relative; overflow: hidden; color: #fff; padding: 72px 0 64px; text-align: center;
	background: radial-gradient(120% 140% at 85% 0%, var(--c-secondary), var(--c-primary) 60%, var(--c-deep));
}
.page-hero .container { position: relative; }
.page-title { color: #fff; font-size: clamp(28px, 4.4vw, 48px); margin: 0; }
.page-title[dir="rtl"] { text-align: center; }
.page-sub { color: rgba(255,255,255,.8); margin: 10px auto 0; max-width: 720px; font-size: 18px; }
.page-sub[dir="rtl"] { text-align: center; font-size: 20px; }
.course-hero .container { text-align: inherit; }
.course-hero .container[dir="rtl"] { text-align: right; }
.course-hero .container[dir="ltr"] { text-align: left; }
.course-hero .page-title, .course-hero .page-sub { text-align: inherit; margin-left: 0; margin-right: 0; }
.crumb { color: var(--c-gold-light); font-size: 14px; display: inline-block; margin-bottom: 8px; }
.badge-lang.big { position: static; margin-top: 16px; font-size: 14px; padding: 4px 16px; }

.entry-content { font-size: 17px; }
.entry-content[dir="rtl"], .entry-content [dir="rtl"] { font-size: 20px; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--c-soft); border-inline-start: 4px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }

.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.course-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; border-top: 5px solid var(--c-accent); display: flex; flex-direction: column; gap: 14px; }
.side-fee { display: flex; align-items: baseline; justify-content: space-between; }
.side-fee span { color: var(--c-muted); }
.side-fee strong { font-size: 30px; color: var(--c-primary); line-height: 1.2; }
.refund-box { display: flex; gap: 10px; align-items: flex-start; background: #ecfdf3; color: #157a3d; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.refund-box .icon { flex-shrink: 0; margin-top: 2px; }
[dir="rtl"] .refund-box { font-size: 17px; }
.side-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-meta li { display: flex; gap: 12px; align-items: center; }
.side-meta .icon { color: var(--c-accent); flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: color-mix(in srgb, var(--c-accent) 10%, transparent); }
.side-meta span { display: flex; flex-direction: column; line-height: 1.4; }
.side-meta small { color: var(--c-muted); font-size: 13px; }
.side-meta strong { color: var(--c-ink); font-weight: 600; }
.outline { counter-reset: o; list-style: none; padding: 0 !important; }
.outline li {
	counter-increment: o; position: relative; padding: 14px 18px; padding-inline-start: 62px; margin-bottom: 10px;
	background: var(--c-soft); border-radius: var(--radius-sm);
}
.outline li::before {
	content: counter(o); position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff;
	display: grid; place-items: center; font-weight: 700; font-size: 14px; font-family: var(--f-en), sans-serif; line-height: 1;
}

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--c-line); color: var(--c-ink); }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ===================================================================
   17. Footer
   =================================================================== */
.site-footer { background: var(--c-deep); color: rgba(255,255,255,.75); padding-top: 70px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { max-height: 76px; width: auto; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer-brand p[dir="rtl"] { font-size: 18px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: .08em; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer .menu a[dir="rtl"], .site-footer .menu [lang="ur"] { font-size: 18px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .icon { color: var(--c-accent); flex-shrink: 0; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.social-row a:hover { background: var(--c-accent); color: var(--c-primary); }
.footer-bottom { margin-top: 56px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; text-align: center; }


/* ===================================================================
   17b. v1.1 — patterns, carousels, video player, compact sections
   =================================================================== */
/* Islamic geometric pattern on solid colour backgrounds */
.has-pattern { position: relative; isolation: isolate; }
.has-pattern::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 80px 80px;
}
.has-pattern.pattern-dark::before { opacity: .05; filter: invert(1); }

/* Hero — compact */
.hero { min-height: min(78vh, 680px); padding: 70px 0 120px; }
.hero-name { font-size: clamp(34px, 5.4vw, 64px); }
.hero-tagline { font-size: clamp(24px, 3vw, 36px); margin-bottom: 26px; }

/* Quick topic boxes — Urdu only */
.quick-card { padding: 18px 20px; }
.quick-text strong[dir="rtl"] { font-size: 21px; line-height: 1.9; color: var(--c-primary); }
.quick-card .quick-text { flex: 0 1 auto; }

/* Generic auto-scrolling carousel */
.carousel { position: relative; }
.carousel-track {
	display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 2px 14px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-btn {
	position: absolute; top: 40%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: #fff; color: var(--c-primary); box-shadow: var(--shadow);
	display: grid; place-items: center; transition: .2s;
}
.carousel-btn:hover { background: var(--c-accent); color: #fff; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }

/* Smaller course cards in carousel */
.course-carousel .course-card { width: 290px; }
.course-card .card-body { padding: 16px 18px 4px; }
.course-card .card-title { font-size: 17px; }
.course-card .card-body[dir="rtl"] .card-title { font-size: 20px; }
.course-card .card-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .card-body[dir="rtl"] .card-text { font-size: 16px; }
.course-card .card-foot { padding: 12px 18px 16px; margin-top: 8px; }
.course-card .price strong { font-size: 17px; }

/* Smaller books in carousel */
.book-carousel .book-card { width: 180px; border: 0; padding: 4px 6px 10px; }
.book-carousel .book-cover { margin: 0 0 14px; }
.book-carousel .book-title { font-size: 14px; }
.book-carousel .book-title[dir="rtl"] { font-size: 17px; }
.book-carousel .book-price strong { font-size: 15px; }
.book-carousel .book-price del { font-size: 12px; }
.book-carousel .round-btn { width: 34px; height: 34px; }

/* Problem — compact */
.problem { padding: 56px 0; }
.problem-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem-card { padding: 22px 20px 20px; }
.problem-card h3 { font-size: 20px; }
.problem-card p { font-size: 16px; }
.problem-num { font-size: 30px; top: 16px; left: 18px; }
.problem-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px; }
.problem-icon .icon { width: 22px; height: 22px; }

/* Why SDP — compact */
.why-card { padding: 22px 18px; }
.why-icon { width: 46px; height: 46px; margin-bottom: 10px; }
.why-card h3 { font-size: 16px; }
.why-card p { font-size: 14px; }
.why-card p[dir="rtl"] { font-size: 16px; }

/* About SDP — split with image */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.about-grid .about-title, .about-grid .about-text p { text-align: left; }
.about-grid .about-text p[dir="rtl"] { text-align: right; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-sdp { padding: 64px 0; }

/* Author — photo + text */
.author-grid { grid-template-columns: 380px 1fr; gap: 56px; }
.author-photo { max-width: 380px; }
.author-photo img { aspect-ratio: 4/5; }
.author-photo::before { inset: 20px -14px -14px 20px; background: var(--c-accent); }
.author-photo .photo-badge {
	position: absolute; z-index: 2; left: -14px; bottom: 26px; background: var(--c-primary); color: #fff;
	padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.author-text p { font-size: 19px; }
.author-quals { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.author-quals li { background: var(--c-soft); border: 1px solid var(--c-line); padding: 4px 14px; border-radius: 999px; font-size: 14px; color: var(--c-primary); font-weight: 500; }
.author-quals li[dir="rtl"] { font-size: 16px; }

/* Speaking — compact */
.speaking { padding: 56px 0 48px; }
.speak-head { margin-bottom: 26px; }
.logo-item { width: 160px; height: 86px; }

/* YouTube-style video player */
.video-feature { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.vf-main { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.vf-screen { position: relative; aspect-ratio: 16/9; background: var(--c-deep); cursor: pointer; }
.vf-screen img { width: 100%; height: 100%; object-fit: cover; }
.vf-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-screen .play { width: 76px; height: 76px; }
.vf-caption { background: #fff; padding: 14px 18px; }
.vf-caption h3 { margin: 0; font-size: 18px; }
.vf-caption h3[dir="rtl"] { font-size: 21px; }
.vf-list {
	display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 6px;
	scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent;
}
.vf-item {
	display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 8px;
	border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--c-line); cursor: pointer;
	text-align: left; color: var(--c-ink); transition: .2s; width: 100%;
}
.vf-item:hover, .vf-item.active { border-color: var(--c-accent); box-shadow: var(--shadow); }
.vf-item.active { background: color-mix(in srgb, var(--c-accent) 7%, #fff); }
.vf-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--c-primary); }
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-thumb .mini-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.vf-item-title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.vf-item-title[dir="rtl"] { font-size: 16px; line-height: 1.9; text-align: right; }

/* Final CTA band */
.cta-band { padding: 56px 0; }
.cta-band .cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 30px; }
.cta-band .cta-inner [dir="rtl"] { text-align: center; }
.cta-band .cta-inner .eyebrow { margin-bottom: 0; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* Testimonials — compact */
.testi-card { padding: 22px; }
.testimonials .testi-grid { gap: 18px; }

.page-hero { padding: 56px 0 50px; }

/* ===================================================================
   18. Responsive
   =================================================================== */
@media (max-width: 1100px) {
	.main-nav .menu a { padding: 8px 10px; font-size: 14px; }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.video-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.brand-logo { max-height: 52px; }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
		padding: 16px 20px 24px; gap: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav .menu a { font-size: 16px; padding: 12px 14px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.hero.has-photo .hero-inner { grid-template-columns: 1fr; }
	.hero-photo { display: none; }
	.quick-grid { grid-template-columns: repeat(2, 1fr); }
	.slide { grid-template-columns: 1fr; }
	.slide-media { min-height: 240px; order: -1; }
	.slide-text { padding: 30px 26px; }
	.speak-head { flex-direction: column; align-items: flex-start; }
	.problem-grid, .testi-grid { grid-template-columns: 1fr; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.book-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
	.book-card:nth-child(2n) { border-right: 0; }
	.author-grid, .course-layout, .book-single, .why-layout.has-image { grid-template-columns: 1fr; }
	.author-photo { max-width: 420px; }
	.course-side { position: static; }
	.book-single-cover { max-width: 320px; }
	.section { padding: 64px 0; }
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.container { padding: 0 16px; }
	.hero { padding: 64px 0 120px; min-height: auto; }
	.hero-roles { letter-spacing: .14em; }
	.hero-actions .btn { flex: 1 1 100%; }
	.quick-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.quick-card { flex-direction: column; align-items: flex-start; padding: 18px 16px; gap: 10px; }
	.quick-icon { width: 46px; height: 46px; }
	.card-grid, .video-grid, .why-grid, .why-layout.has-image .why-grid { grid-template-columns: 1fr; }
	.book-grid { grid-template-columns: 1fr 1fr; }
	.book-card { padding: 6px 10px 16px; }
	.book-cover { margin: 0 4px 16px; }
	.book-foot { flex-direction: column; align-items: flex-start; }
	.stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.stat { padding: 12px 6px; }
	.stat strong { font-size: 19px; }
	.footer-grid { grid-template-columns: 1fr; }
	.live-feedback { padding: 22px; }
	.social-card { min-width: 0; flex: 1 1 calc(50% - 16px); padding: 14px; }
	.problem-card { padding: 28px 22px 24px; }
	.speak-head .invite-btn { width: 100%; justify-content: center; }
	.logo-item { width: 150px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1100px) {
	.problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.video-feature, .about-grid { grid-template-columns: 1fr; }
	.vf-list { max-height: 360px; }
	.author-grid { grid-template-columns: 1fr; }
	.carousel-prev { left: 0; } .carousel-next { right: 0; }
}
@media (max-width: 600px) {
	.problem-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.problem-card { padding: 16px 14px; }
	.problem-card h3 { font-size: 17px; }
	.problem-card p { font-size: 14px; }
	.problem-num { display: none; }
	.course-carousel .course-card { width: 260px; }
	.book-carousel .book-card { width: 140px; }
	.vf-item { grid-template-columns: 120px 1fr; }
	.why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.why-card { padding: 16px 14px; }
	.quick-card { align-items: center; }
	.carousel-btn { display: none; }
}

/* v1.2 — simpler course & book cards */
.course-card .card-foot { justify-content: flex-end; }
.book-foot .btn-read { width: 100%; justify-content: center; padding: 6px 12px; font-size: 16px; line-height: 1.9; }
.book-carousel .book-foot .btn-read { font-size: 15px; }

/* v1.2.1 — bigger, full-colour institute logos */
.logo-item, .speaking .logo-item { width: 220px; height: 120px; padding: 12px 18px; }
.logo-item img { max-height: 96px; max-width: 100%; width: auto; filter: none; opacity: 1; }
.marquee-track { gap: 18px; }
@media (max-width: 600px) { .logo-item, .speaking .logo-item { width: 170px; height: 96px; } .logo-item img { max-height: 74px; } }

/* v1.2.2 — speaking: centered bilingual heading only */
.speak-head.only-title { justify-content: center; text-align: center; }
.speak-head.only-title .section-head { text-align: center; margin: 0 auto; max-width: 900px; }
.speak-head.only-title .section-head [dir="rtl"] { text-align: center; }
.speak-head.only-title .section-title::after { margin-left: auto; margin-right: auto; }
.speaking .section-head .eyebrow { letter-spacing: .12em; }

/* v1.3 — uniform Why cards, centered course button, video list, new sections */
.why-card, .why-card.highlight { background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-accent); color: var(--c-ink); }
.why-card.highlight h3 { color: var(--c-primary); }
.why-card.highlight p { color: var(--c-muted); }
.why-card .why-icon, .why-card.highlight .why-icon { background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff; }

.course-card .card-foot { justify-content: center; border-top: 0; padding-top: 4px; }
.course-card .btn-details { min-width: 150px; }
.course-card .card-meta { justify-content: center; }
.course-card .card-body { text-align: center; }
.course-card .card-body[dir="rtl"] { text-align: center; }

.vf-item { grid-template-columns: 168px 1fr; }
.vf-item-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.shaoor-strip { background: linear-gradient(90deg, var(--c-soft), #fff); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 18px 0; }
.shaoor-inner { display: flex; align-items: center; gap: 22px; }
.shaoor-logo { flex-shrink: 0; width: 86px; height: 64px; display: grid; place-items: center; }
.shaoor-logo img { max-height: 64px; width: auto; }
.shaoor-word { font-size: 34px; color: var(--c-primary); line-height: 1.6; font-weight: 700; }
.shaoor-text { flex: 1; margin: 0; font-size: 18px; color: var(--c-ink); }
.shaoor-btn { flex-shrink: 0; }

.poster-carousel .poster-card { width: 230px; margin: 0; }
.poster-img { display: block; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--c-soft); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.poster-card:hover .poster-img img { transform: scale(1.04); }
.poster-card figcaption { padding: 10px 2px 0; display: flex; flex-direction: column; line-height: 1.4; }
.poster-card figcaption strong { font-size: 15px; color: var(--c-primary); }
.poster-card figcaption strong[dir="rtl"] { font-size: 18px; line-height: 1.9; }
.poster-card figcaption small { color: var(--c-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 12px; grid-auto-flow: dense; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-line); }
.photo-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-cap[dir="rtl"] { font-size: 16px; }

.fb-wrap { display: flex; justify-content: center; }
.fb-wrap iframe { width: 100%; max-width: 500px; height: 640px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

@media (max-width: 960px) {
	.shaoor-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
	.shaoor-text, .shaoor-text[dir="rtl"] { text-align: center; flex-basis: 100%; }
	.photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 600px) {
	.poster-carousel .poster-card { width: 200px; }
	.vf-item { grid-template-columns: 130px 1fr; }
	.why-grid { grid-template-columns: 1fr 1fr; }
}

/* Institute logos with name */
.logo-item, .speaking .logo-item { flex-direction: column; gap: 6px; height: 150px; }
.logo-item img { max-height: 84px; }
.logo-item .logo-name { font-size: 13px; line-height: 1.4; text-align: center; color: var(--c-primary); }
.logo-item .logo-name[dir="rtl"] { font-size: 16px; line-height: 1.8; }

/* v1.4 — Khutbaat table */
.khutbah-notice {
	display: flex; align-items: center; gap: 18px; padding: 22px 26px; margin-bottom: 30px; border-radius: var(--radius);
	background: linear-gradient(120deg, #128C4A, #25D366); color: #fff; box-shadow: var(--shadow-lg);
}
.khutbah-notice .kn-icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.khutbah-notice .kn-text { flex: 1; margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.9; }
.khutbah-notice .kn-btn { background: #fff; color: #128C4A; box-shadow: none; flex-shrink: 0; }
.khutbah-notice .kn-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.masjid-tabs { flex-wrap: wrap; }
.masjid-tabs a { font-size: 17px; padding-top: 2px; padding-bottom: 6px; line-height: 1.9; }
.ktable-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; border: 1px solid var(--c-line); }
.ktable { width: 100%; border-collapse: collapse; font-size: 18px; }
.ktable th { background: var(--c-primary); color: #fff; font-weight: 700; padding: 10px 18px; text-align: right; font-size: 19px; }
.ktable td { padding: 10px 18px; border-top: 1px solid var(--c-line); vertical-align: middle; }
.ktable tbody tr:nth-child(even) td { background: var(--c-soft); }
.ktable tbody tr:hover td { background: color-mix(in srgb, var(--c-accent) 8%, #fff); }
.ktable td a { color: var(--c-primary); font-weight: 600; }
.ktable td a:hover { color: var(--c-accent); }
@media (max-width: 700px) {
	.khutbah-notice { flex-direction: column; text-align: center; }
	.khutbah-notice .kn-text { text-align: center; }
	.ktable thead { display: none; }
	.ktable, .ktable tbody, .ktable tr, .ktable td { display: block; width: 100%; }
	.ktable tr { border-top: 1px solid var(--c-line); padding: 8px 0; }
	.ktable td { border: 0; padding: 4px 16px; display: flex; gap: 10px; }
	.ktable td::before { content: attr(data-label) ":"; font-weight: 700; color: var(--c-muted); min-width: 52px; }
}

/* v1.5 — books marquee, counter, audio, about pages, blog */
.marquee-clone { display: contents; }
.book-marquee .marquee-track { gap: 26px; padding: 6px 0 12px; }
.book-marquee .book-card { width: 170px; border: 0; padding: 0; flex-shrink: 0; }
.book-marquee .book-cover { margin: 0 0 12px; }
.book-marquee .book-title { font-size: 14px; }
.book-marquee .book-title[dir="rtl"] { font-size: 17px; }
.book-marquee .btn-read { font-size: 15px; }
.book-marquee:hover .marquee-track { animation-play-state: paused; }

.counter-band { background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.counter-item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 10px; }
.counter-item + .counter-item { border-inline-start: 1px solid rgba(255,255,255,.18); }
.counter-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--c-accent); flex-shrink: 0; }
.counter-body { display: flex; flex-direction: column; align-items: flex-start; }
.counter-num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; color: #fff; font-family: var(--f-en), sans-serif; }
.counter-check { color: var(--c-accent); line-height: 1; }
.counter-label { font-size: 19px; color: rgba(255,255,255,.9); line-height: 1.8; }
.quick-links + .counter-band { margin-top: 34px; }

.k-audio-cell { min-width: 230px; }
.k-audio { width: 100%; min-width: 210px; height: 36px; }
.k-audio-embed { min-width: 210px; border: 0; }
.k-audio-box { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.k-audio-box audio { width: 100%; }

.about-page-grid { display: grid; grid-template-columns: 340px 1fr; gap: 54px; align-items: start; }
.about-sdp-grid { display: grid; grid-template-columns: 1fr 360px; gap: 54px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.about-portrait img { aspect-ratio: 4/5; object-fit: cover; }
.about-aside-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.about-aside .about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.about-aside .about-img.small img { aspect-ratio: 16/9; }
.about-content { font-size: 21px; }
.about-content h2 { font-size: 28px; color: var(--c-primary); border-inline-start: 5px solid var(--c-accent); padding-inline-start: 14px; margin: 1.4em 0 .5em; line-height: 1.8; }
.about-content h2:first-child { margin-top: 0; }
.about-content p, .about-content li { color: #2c2442; }
.about-content strong { color: var(--c-secondary); }
.quote-box, .entry-content blockquote.quote-box {
	margin: 1.6em 0; padding: 26px 30px; border-radius: var(--radius); border: 0; text-align: center;
	background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); color: #fff; position: relative;
}
.quote-box p { color: #fff !important; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.9; margin: 0; text-align: center !important; }
.quote-box::before { content: "❝"; position: absolute; top: 6px; right: 18px; font-size: 44px; color: var(--c-accent); line-height: 1; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card .card-title { font-size: 20px; }
.article-card .card-body[dir="rtl"] .card-title { font-size: 24px; line-height: 1.8; }
.article-card .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .card-foot { justify-content: center; border-top: 0; }
.article-meta { font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.article-meta.light { color: rgba(255,255,255,.75); justify-content: inherit; }
.article-hero .container[dir="rtl"] { text-align: right; }
.article-hero .page-title { text-align: inherit; }
.article-body { font-size: 19px; }
.article-body[dir="rtl"] { font-size: 22px; line-height: 2.2; }
.article-body[dir="rtl"] p { margin-bottom: 1.1em; }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #128C4A; color: #fff; }

@media (max-width: 960px) {
	.about-page-grid, .about-sdp-grid { grid-template-columns: 1fr; }
	.about-aside { position: static; }
	.about-page-grid .about-aside { max-width: 380px; }
	.article-grid { grid-template-columns: 1fr 1fr; }
	.counter-grid { grid-template-columns: 1fr; gap: 6px; }
	.counter-item + .counter-item { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
	.counter-item { justify-content: flex-start; }
}
@media (max-width: 600px) {
	.article-grid { grid-template-columns: 1fr; }
	.book-marquee .book-card { width: 140px; }
	.about-content { font-size: 19px; }
	.k-audio-cell { min-width: 0; }
	.ktable td.k-audio-cell { flex-direction: column; }
}
.counter-band { background: #fff; color: var(--c-primary); padding: 30px 0 34px; border-bottom: 1px solid var(--c-line); }
.quick-links + .counter-band { margin-top: 0; padding-top: 44px; }
.counter-item { direction: rtl; justify-content: center; }
.counter-item + .counter-item { border-color: var(--c-line); }
.counter-body { flex-direction: row; align-items: center; gap: 10px; }
.counter-num { color: var(--c-primary); }
.counter-label { color: var(--c-ink); font-size: 22px; font-weight: 700; }
.counter-icon { background: color-mix(in srgb, var(--c-accent) 14%, #fff); color: var(--c-accent); }
.counter-check { color: #16a34a; }
@media (min-width: 961px) { .counter-item + .counter-item { border-inline-start: 0; border-right: 0; border-left: 1px solid var(--c-line); } }

/* ===================================================================
   v1.6 — dynamic feel, compact layout
   =================================================================== */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover, .why-card.reveal.in:hover, .course-card.reveal.in:hover { transform: translateY(-6px); }

/* Hero entrance */
.hero-text > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hero-text > *:nth-child(5) { animation-delay: .32s; }
.quick-card { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: .4s; }
.quick-card:nth-child(2) { animation-delay: .48s; } .quick-card:nth-child(3) { animation-delay: .56s; } .quick-card:nth-child(4) { animation-delay: .64s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-tagline { background: linear-gradient(90deg, var(--c-accent), #FFD08A, var(--c-accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: heroIn .9s .24s both, shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }

/* Header shrinks on scroll */
.site-header { transition: box-shadow .25s, background .25s; }
.header-inner { transition: min-height .25s; }
.brand-logo { transition: max-height .25s; }
.is-scrolled .header-inner { min-height: 64px; }
.is-scrolled .brand-logo { max-height: 50px; }

/* Card glow on hover */
.quick-card:hover .quick-icon, .why-card:hover .why-icon { box-shadow: 0 10px 24px -8px var(--c-secondary); }
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-accent:hover::after { transform: translateX(120%); }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-secondary)); transform: scaleX(0); transform-origin: left; }
.admin-bar .scroll-progress { top: 32px; }

/* Back to top */
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 250; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
.to-top .icon { transform: rotate(90deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--c-accent); }

/* Floating WhatsApp */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 250; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); animation: waPulse 2.6s infinite; }
.float-wa:hover { color: #fff; transform: scale(1.06); }
.float-wa-tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--c-ink); padding: 2px 14px 6px; border-radius: 10px; font-size: 17px; line-height: 1.9; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .25s; pointer-events: none; }
.float-wa:hover .float-wa-tip { opacity: 1; transform: none; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 60% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

/* One-picture slideshow (Photo Gallery) */
.fade-slider { max-width: 860px; margin: 0 auto; }
.fs-stage { position: relative; aspect-ratio: 16 / 9; max-height: 470px; border-radius: var(--radius); overflow: hidden; background: var(--c-primary); box-shadow: var(--shadow-lg); }
.fs-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.fs-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease; }
.fs-slide.active { opacity: 1; }
.fs-slide.active img { transform: scale(1); }
.fs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--c-primary); display: grid; place-items: center; opacity: 0; transition: .25s; }
.fs-prev { left: 14px; } .fs-next { right: 14px; }
.fade-slider:hover .fs-nav { opacity: 1; }
.fs-nav:hover { background: var(--c-accent); color: #fff; }
.fs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); z-index: 2; }
.fs-progress span { display: block; height: 100%; width: 0; background: var(--c-accent); }
.fs-caption { position: relative; min-height: 44px; margin-top: 12px; text-align: center; }
.fs-cap { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; color: var(--c-primary); font-weight: 600; font-size: 16px; text-align: center !important; }
.fs-cap[dir="rtl"] { font-size: 20px; line-height: 1.9; }
.fs-cap.active { opacity: 1; }
.fs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.fs-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--c-line); transition: .25s; }
.fs-dots button.active { width: 26px; background: var(--c-accent); }

/* Testimonials carousel */
.testi-carousel .testi-card { width: 380px; }
.testi-carousel .testi-text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 960px) {
	.admin-bar .scroll-progress { top: 46px; }
}
@media (max-width: 600px) {
	.section { padding: 46px 0; }
	.testi-carousel .testi-card { width: 300px; }
	.fs-nav { opacity: 1; width: 36px; height: 36px; }
	.float-wa { width: 52px; height: 52px; right: 14px; bottom: 14px; }
	.to-top { left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.hero-tagline { animation: none; color: var(--c-accent); background: none; }
}

/* Hero name on one line (desktop) */
.hero-name { max-width: none; }
@media (min-width: 900px) { .hero-name { white-space: nowrap; font-size: clamp(36px, 4.4vw, 50px); } }


/* v1.6.1 — Moments: photo slider + poster slider side by side */
.moments { padding: 46px 0; }
.moments-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: 34px; align-items: start; max-width: 1080px; margin: 0 auto; }
.moments-grid.one-col { grid-template-columns: 1fr; max-width: 720px; }
.moments-col .section-head { margin-bottom: 18px; }
.moments-col .section-title { font-size: clamp(22px, 2.4vw, 28px); }
.moments-col .fade-slider { max-width: none; }
.fs-photos .fs-stage { aspect-ratio: 16 / 10; max-height: none; }
.fs-posters .fs-stage { aspect-ratio: 4 / 5; max-height: none; background: var(--c-soft); }
.fs-posters .fs-slide img { object-fit: contain; background: var(--c-primary); }
.fs-posters .fs-cap { font-size: 14px; }
.fs-posters .fs-cap[dir="rtl"] { font-size: 17px; }
.moments-btn { margin-top: 10px; }
@media (max-width: 860px) {
	.moments-grid { grid-template-columns: 1fr; gap: 40px; }
	.moments-posters { max-width: 300px; margin: 0 auto; width: 100%; }
}

/* v1.7 — accessibility: readable colours, motion, focus */
:root { --c-accent-text: #A65200; }
.eyebrow { color: var(--c-accent-text); }
.section.dark .eyebrow, .has-pattern .eyebrow, .counter-band .eyebrow, .eyebrow.light, .page-hero .eyebrow { color: var(--c-gold-light); }
.problem .eyebrow { color: var(--c-accent); }
.btn-accent { color: var(--c-on-accent); font-weight: 700; }
.btn-accent:hover { color: #fff; }
.refund-tag { color: #15803d; }
.card-meta .icon, .side-meta .icon { color: var(--c-accent-text); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 3px; }
.fade-slider:focus-within .fs-nav { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
	.marquee-track .marquee-clone, .marquee-track [aria-hidden="true"] { display: none; }
	.fs-slide img { transition: none; transform: none; }
	.float-wa { animation: none; }
}


/* v1.7.1 — menu dropdown, Shaoor line, moments equal height */
.main-nav .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.main-nav .menu { direction: rtl; }
.main-nav .sub-menu { min-width: 250px; left: auto; right: 0; }
@media (max-width: 960px) { .main-nav .sub-menu { padding: 0 16px 0 0; } }
.main-nav .sub-menu a[dir="rtl"] { text-align: right; }
.shaoor-text, .shaoor-text[dir="rtl"] { font-size: 23px; line-height: 2; }
@media (min-width: 861px) {
	.moments-grid { align-items: stretch; }
	.moments-col { display: flex; flex-direction: column; }
	.moments-col > .fade-slider { width: 100%; margin: 0; }
	.moments-photos .fade-slider { flex: 1; display: flex; flex-direction: column; }
	.moments-photos .fs-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
}
@media (max-width: 600px) {
	.shaoor-text, .shaoor-text[dir="rtl"] { font-size: 20px; }
}

/* v1.7.2 — smaller sub-menu text, equal photo/poster height */
.main-nav .sub-menu a, .main-nav .sub-menu a[dir="rtl"] { font-size: 16px; line-height: 1.7; padding: 4px 14px 7px; }
.main-nav .menu { gap: 0; }
@media (min-width: 861px) {
	.moments-posters .fs-stage { flex: none; }
}
.main-nav .menu .current-menu-item > a[href*="#"]:not(:hover) { background: none; color: var(--c-ink); }

/* v1.7.3 — compact moments + blog sections */
.moments { padding: 36px 0; }
.moments-grid { max-width: 840px; gap: 26px; }
.moments-col .section-head { margin-bottom: 12px; }
.moments-col .section-title { font-size: clamp(19px, 2vw, 23px); }
.moments-col .fs-caption { min-height: 34px; margin-top: 8px; }
.moments-col .fs-cap[dir="rtl"] { font-size: 17px; }
.moments-btn .btn { padding: 9px 22px; font-size: 14px; }
.blog-home { padding: 44px 0; }
.blog-home .article-grid { max-width: 920px; margin: 0 auto; gap: 18px; }
.blog-home .article-card .card-title { font-size: 17px; }
.blog-home .article-card .card-body[dir="rtl"] .card-title { font-size: 20px; line-height: 1.75; }
.blog-home .article-card .card-text { font-size: 14px; -webkit-line-clamp: 2; }
.blog-home .article-card .card-text[dir="rtl"] { font-size: 17px; }
.blog-home .article-card .card-body { padding: 16px 18px; }
.blog-home .card-body[dir="rtl"] .card-text { font-size: 16px; }
.blog-home .article-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.blog-home .article-card { flex: 0 1 280px; }
.blog-home .article-card .card-media { aspect-ratio: 16 / 8; }
.blog-home .article-card .card-foot { padding-top: 4px; padding-bottom: 16px; }
@media (max-width: 600px) { .blog-home .article-card { flex-basis: 100%; } }

/* v1.7.4 — Search */
.search-toggle { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-soft); color: var(--c-primary); display: inline-grid; place-items: center; cursor: pointer; transition: .2s; }
@media (min-width: 961px) { .main-nav { margin-inline-start: auto; } }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--c-primary); color: #fff; }
.header-inner { gap: 16px; }
.site-search { border-top: 1px solid var(--c-line); background: #fff; padding: 14px 0; box-shadow: 0 14px 24px -18px rgba(0,0,0,.35); }
.sdp-search { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.sdp-search input { flex: 1; min-width: 0; width: 0; border: 2px solid var(--c-line); border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 16px; background: #fff; color: var(--c-ink); }
.sdp-search input:focus { outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-secondary) 18%, transparent); }
.sdp-search input::placeholder { color: #8a83a0; }
.sdp-search .btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 22px 10px; font-size: 18px; }
.sdp-search .btn svg { margin-top: 4px; }
.sdp-search.big { margin-bottom: 26px; }
.search-page .narrow { max-width: 820px; }
.search-count { color: var(--c-muted, #6b6480); margin: 0 0 14px; font-size: 17px; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sr-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px; transition: .2s; }
.sr-item:hover { border-color: var(--c-secondary); box-shadow: var(--shadow); }
.sr-thumb { flex-shrink: 0; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-body { flex: 1; min-width: 0; }
.sr-type { display: inline-block; font-size: 13px; line-height: 1.9; padding: 0 10px 2px; border-radius: 99px; background: var(--c-soft); color: var(--c-secondary); }
.sr-title { font-size: 18px; margin: 4px 0; }
.sr-body[dir="rtl"] .sr-title { font-size: 22px; line-height: 1.8; }
.sr-title a { color: var(--c-primary); }
.sr-text { margin: 0; font-size: 14px; color: #5c5670; }
.sr-text[dir="rtl"] { font-size: 17px; line-height: 1.9; }
.sr-empty { text-align: center; font-size: 19px; padding: 20px 0; }
@media (max-width: 960px) { .search-toggle { margin-inline-start: auto; } .nav-toggle { margin-inline-start: 0; } }
@media (max-width: 600px) {
	.sdp-search .btn span { display: none; }
	.sdp-search .btn { padding: 10px 16px; }
	.sr-thumb { width: 60px; height: 60px; }
}

/* v1.8.0 — "This week's khutbah" block (top of Khutbaat page) */
.khutbah-week { background: var(--c-soft); padding: 48px 0 40px; }
.khutbah-week .section-head { margin-bottom: 26px; }
.khutbah-week .kw-poster { margin: 0 auto; max-width: 560px; }
.khutbah-week .kw-poster a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--c-line); }
.khutbah-week .kw-poster img { display: block; width: 100%; height: auto; }
.khutbah-week .kw-actions { text-align: center; margin: 26px 0 0; }
.khutbah-week + .khutbaat-page { padding-top: 48px; }
@media (max-width: 600px) {
	.khutbah-week { padding: 34px 0 28px; }
	.khutbah-week .kw-actions .btn { width: 100%; max-width: 360px; }
}

/* v1.8.1 — PDF column in Khutbaat table */
.ktable .k-pdf-cell { white-space: nowrap; }
.ktable .k-pdf { padding: 6px 16px 8px; font-size: 16px; }
.ktable .k-pdf .icon { flex-shrink: 0; }

/* v1.8.4 — This week's khutbah: poster | text (2 columns) */
.khutbah-week .kw-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: center; direction: rtl; }
.khutbah-week .kw-grid.kw-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.khutbah-week .kw-media { min-width: 0; }
.khutbah-week .kw-grid .kw-poster { max-width: 100%; margin: 0; }
.khutbah-week .kw-info { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.khutbah-week .kw-text { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); }
.khutbah-week .kw-text p { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 26px); line-height: 2.2; color: var(--c-text); }
.khutbah-week .kw-link { color: #128C4A; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.khutbah-week .kw-link:hover { color: var(--c-accent); }
.khutbah-week .kw-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
	.khutbah-week .kw-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.khutbah-week .kw-media { max-width: 480px; margin: 0 auto; width: 100%; }
}


/* ===================================================================
   v1.8.8 — Panel Psychologists (ماہرینِ نفسیات)
   =================================================================== */
.psy-home { background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%); border-top: 1px solid var(--c-line); }
.section-head .section-sub { color: var(--c-muted); font-size: 19px; margin: 16px auto 0; max-width: 720px; text-align: center; }

.psy-disclaimer {
	display: flex; gap: 16px; align-items: flex-start; max-width: 1100px; margin: 0 auto 36px;
	background: #fff; border: 1px solid var(--c-line); border-inline-start: 5px solid var(--c-accent);
	border-radius: var(--radius-sm); padding: 18px 24px; box-shadow: var(--shadow);
}
.psy-disclaimer .psy-disc-icon {
	flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
	color: var(--c-accent-text, var(--c-accent)); background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}
.psy-disclaimer .psy-disc-main { font-size: 19px; color: var(--c-ink); margin: 0 0 6px; }
.psy-disclaimer .psy-disc-main strong { color: var(--c-primary); }
.psy-disclaimer .psy-disc-note { font-size: 15px; color: var(--c-muted); margin: 0; line-height: 2; }
.psy-disclaimer.compact { margin-bottom: 30px; }
.entry-content .psy-disclaimer .psy-disc-main { font-size: 18px; }

.psy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.psy-card {
	display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--c-line);
	border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s;
}
.psy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.psy-card.is-full { opacity: .92; }
.psy-top { display: flex; gap: 16px; align-items: center; }
.psy-photo { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid color-mix(in srgb, var(--c-accent) 35%, #fff); }
.psy-photo img { width: 100%; height: 100%; object-fit: cover; }
.psy-initial { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
.psy-head { min-width: 0; }
.psy-name { font-size: 19px; margin: 0 0 2px; }
.psy-name[dir="rtl"] { font-size: 23px; }
.psy-card .psy-name[dir="ltr"], .psy-card .psy-desig[dir="ltr"], .psy-card .psy-intro[dir="ltr"] { text-align: right; }
.psy-name a { color: var(--c-primary); }
.psy-name a:hover { color: var(--c-accent); }
.psy-desig { color: var(--c-secondary); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.psy-desig[dir="rtl"] { font-size: 17px; }
.psy-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.psy-badges.center { justify-content: center; margin-top: 14px; }
.psy-badge { background: var(--c-soft); color: var(--c-primary); font-size: 14px; padding: 0 10px; line-height: 2; }
.psy-badge.open { background: #e7f6ec; color: #166534; }
.psy-badge.full { background: #f1f1f4; color: #4b5563; }
.page-hero .psy-badge { background: rgba(255,255,255,.14); color: #fff; }
.page-hero .psy-badge.open { background: #16a34a; color: #fff; }
.psy-intro { color: var(--c-muted); font-size: 15px; margin: 0; }
.psy-intro[dir="rtl"] { font-size: 17px; }
.psy-specs { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.psy-specs li {
	font-size: 13px; padding: 3px 12px; border-radius: 999px; line-height: 1.7;
	background: color-mix(in srgb, var(--c-secondary) 9%, #fff); color: var(--c-primary); border: 1px solid color-mix(in srgb, var(--c-secondary) 20%, #fff);
}
.psy-specs li[dir="rtl"] { font-size: 15px; line-height: 1.9; }
.psy-specs.big li { font-size: 15px; padding: 5px 16px; }
.psy-specs.big li[dir="rtl"] { font-size: 18px; }
.psy-meta { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--c-line); display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--c-ink); }
.psy-meta li { display: flex; align-items: center; gap: 6px; line-height: 2; }
.psy-meta .icon { color: var(--c-accent-text, var(--c-accent)); flex-shrink: 0; }
.psy-meta small { color: var(--c-muted); font-size: 14px; }
.psy-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.psy-foot .btn [lang="ur"], .side-card .btn [lang="ur"] { font-size: 16px; line-height: 1.9; }
.btn-wa { background: #128C4A; color: #fff; }
.btn-wa:hover { background: #0e6f3a; color: #fff; }

.psy-empty { text-align: center; max-width: 640px; margin: 0 auto 30px; color: var(--c-muted); font-size: 19px; }
.psy-empty .icon { margin: 0 auto 8px; color: var(--c-secondary); }
.psy-empty p { text-align: center; }

.psy-help-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.psy-help-box {
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff;
	border: 2px solid var(--c-line); border-radius: var(--radius); padding: 24px 26px;
}
.psy-help-box.join { background: color-mix(in srgb, var(--c-secondary) 5%, #fff); border-style: dashed; }
.psy-help-box h3 { font-size: 22px; margin: 0; }
.psy-help-box p { color: var(--c-muted); font-size: 17px; margin: 0; }
.psy-help-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--c-soft); color: var(--c-secondary); }

.psy-hero-photo { width: 140px; height: 140px; margin: 6px auto 16px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.35); }
.psy-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.psy-lead { font-size: 21px; color: var(--c-ink); }
.psy-side-note { font-size: 14px; color: var(--c-muted); margin: 0; text-align: center; }
.side-card .btn-wa, .side-card .btn-outline { gap: 8px; }

@media (max-width: 960px) {
	.psy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psy-help-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.psy-grid { grid-template-columns: 1fr; }
	.psy-disclaimer { padding: 16px; gap: 12px; }
	.psy-disclaimer .psy-disc-icon { width: 38px; height: 38px; }
	.psy-disclaimer .psy-disc-main { font-size: 17px; }
	.psy-foot .btn { flex: 1 1 auto; }
	.psy-help-box .btn { width: 100%; }
}

/* ===================================================================
   v1.9.0 — Home page: compact psychologists band (2 columns)
   =================================================================== */
.psy-home { padding: 52px 0; }
.psy-band {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.psy-band.no-show { grid-template-columns: 1fr; }
.psy-band-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 28px 40px; }
.psy-band-text .eyebrow { margin: 0; }
.psy-band-title { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.psy-band-disc { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 19px; color: var(--c-ink); line-height: 2.1; }
.psy-band-disc .icon { flex-shrink: 0; margin-top: 10px; color: var(--c-accent-text, var(--c-accent)); }
.psy-band-note { margin: 0; font-size: 15px; color: var(--c-muted); line-height: 2; }
.psy-band-text .btn { margin-top: 6px; gap: 8px; }

.psy-show {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 20px;
	color: #fff; text-align: center;
	background: radial-gradient(120% 90% at 50% 0%, var(--c-secondary) 0%, var(--c-primary) 70%);
}
.psy-show-stage { display: grid; width: 100%; }
.psy-show-slide {
	grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s, transform .6s, visibility .6s;
}
.psy-show-slide.active { opacity: 1; visibility: visible; transform: none; }
.psy-show-slide:hover { color: #fff; }
.psy-show-photo {
	width: 172px; height: 172px; border-radius: 50%; overflow: hidden; margin-bottom: 10px;
	border: 4px solid color-mix(in srgb, var(--c-accent) 70%, #fff); box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); background: rgba(255,255,255,.12);
}
.psy-show-photo img { width: 100%; height: 100%; object-fit: cover; }
.psy-show-photo .psy-initial { background: rgba(255,255,255,.12); }
.psy-show-name { font-weight: 700; font-size: 18px; line-height: 1.5; }
.psy-show-name[dir="rtl"] { font-size: 23px; line-height: 1.9; }
.psy-show-desig { color: var(--c-gold-light); font-size: 14px; line-height: 1.5; }
.psy-show-desig[dir="rtl"] { font-size: 17px; line-height: 1.9; }
.psy-show [dir] { text-align: center; }
.psy-show-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.psy-show-thumb {
	width: 38px; height: 38px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid transparent;
	background: rgba(255,255,255,.15); color: #fff; opacity: .55; transition: opacity .25s, border-color .25s, transform .25s;
}
.psy-show-thumb img { width: 100%; height: 100%; object-fit: cover; }
.psy-show-thumb .psy-initial { background: none; }
.psy-show-thumb:hover { opacity: .9; }
.psy-show-thumb.active { opacity: 1; border-color: var(--c-accent); transform: scale(1.08); }

@media (max-width: 820px) {
	.psy-band { grid-template-columns: 1fr; }
	.psy-band-text { padding: 26px 22px; }
	.psy-band-text .btn { width: 100%; justify-content: center; }
	.psy-show { padding: 24px 16px; }
	.psy-show-photo { width: 150px; height: 150px; }
}
@media (max-width: 600px) {
	.psy-home { padding: 40px 0; }
	.psy-band-disc { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.psy-show-slide { transition: none; transform: none; }
}

/* ===================================================================
   v1.9.1 — Panel page: bigger photos, popup, equal help boxes
   =================================================================== */
.psy-card { align-items: center; text-align: center; }
.psy-card .psy-photo { width: 136px; height: 136px; border-width: 4px; box-shadow: var(--shadow); display: block; }
.psy-card .psy-photo .psy-initial { width: 100%; height: 100%; }
.psy-card .psy-head { display: flex; flex-direction: column; align-items: center; }
.psy-card .psy-name, .psy-card .psy-desig, .psy-card .psy-intro,
.psy-card .psy-name[dir="ltr"], .psy-card .psy-desig[dir="ltr"], .psy-card .psy-intro[dir="ltr"] { text-align: center; }
.psy-card .psy-specs { justify-content: center; }
.psy-card .psy-meta { align-self: stretch; text-align: left; }
.psy-card .psy-meta [dir="rtl"] { text-align: right; }
.psy-card .psy-foot { justify-content: center; align-self: stretch; }
.psy-card .psy-foot .btn { flex: 1 1 0; justify-content: center; gap: 6px; }
.psy-meta small { font-size: 13px; font-weight: 600; }

/* Popup */
.psy-modal {
	width: min(860px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 0; border: 0;
	border-radius: var(--radius); background: #fff; color: var(--c-ink); box-shadow: 0 40px 90px -30px rgba(20, 8, 50, .55); overflow: auto;
}
.psy-modal::backdrop { background: color-mix(in srgb, var(--c-deep) 72%, transparent); backdrop-filter: blur(3px); }
.psy-modal[open] { animation: psyPop .28s ease-out; }
@keyframes psyPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.psy-modal-box { position: relative; }
.psy-modal-close {
	position: absolute; top: 14px; left: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; transition: background .2s;
}
.psy-modal-close:hover { background: rgba(255,255,255,.3); }
.psy-modal-head {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 30px 24px 22px; color: #fff;
	background: radial-gradient(120% 100% at 50% 0%, var(--c-secondary) 0%, var(--c-primary) 75%);
}
.psy-modal-photo {
	width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin-bottom: 10px;
	border: 4px solid color-mix(in srgb, var(--c-accent) 70%, #fff); box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); background: rgba(255,255,255,.12);
}
.psy-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.psy-modal-photo .psy-initial { width: 100%; height: 100%; background: rgba(255,255,255,.1); }
.psy-modal-name { color: #fff; font-size: 24px; margin: 0; text-align: center; }
.psy-modal-name[dir="rtl"] { font-size: 28px; }
.psy-modal-desig { color: var(--c-gold-light); margin: 0 0 8px; font-weight: 600; text-align: center; }
.psy-modal-desig[dir="rtl"] { font-size: 18px; }
.psy-modal-head [dir] { text-align: center; }
.psy-modal-head .psy-badge { background: rgba(255,255,255,.14); color: #fff; }
.psy-modal-head .psy-badge.open { background: #16a34a; }
.psy-modal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 26px; padding: 26px 28px 8px; }
.psy-modal-info { order: 2; display: flex; flex-direction: column; gap: 14px; }
.psy-modal-about { order: 1; }
.psy-modal-fee {
	display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--c-accent) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c-accent) 35%, #fff);
}
.psy-modal-fee small { color: var(--c-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.psy-modal-fee strong { color: var(--c-primary); font-size: 24px; }
.psy-modal-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.psy-modal-meta li { display: flex; gap: 10px; align-items: flex-start; }
.psy-modal-meta li > span { flex: 1 1 auto; min-width: 0; }
.psy-modal-info, .psy-modal-info small, .psy-modal-info strong, .psy-modal-info [dir] { text-align: left; }
.psy-modal-meta .icon { flex-shrink: 0; margin-top: 3px; color: var(--c-accent-text, var(--c-accent)); }
.psy-modal-meta small { display: block; color: var(--c-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1.4; }
.psy-modal-meta strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.6; }
.psy-modal-meta strong[dir="rtl"] { font-size: 17px; line-height: 1.9; text-align: left; }
.psy-modal-about h4 { font-size: 19px; margin: 16px 0 8px; }
.psy-modal-about h4:first-child { margin-top: 0; }
.psy-modal-lead { font-size: 19px; color: var(--c-ink); margin: 0; }
.psy-modal-content { font-size: 17px; color: var(--c-muted); }
.psy-modal-foot {
	display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 28px 20px; position: sticky; bottom: 0; z-index: 1;
	background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -10px 24px -18px rgba(20, 8, 50, .35);
}
.psy-modal-foot .btn { flex: 1 1 200px; width: auto; justify-content: center; gap: 8px; }
.psy-modal-foot .btn-wa { font-size: 16px; padding-top: 12px; padding-bottom: 12px; }
body.psy-modal-open { overflow: hidden; }

/* Help boxes: same shape, button at the bottom */
.psy-help-row { align-items: stretch; }
.psy-help-box, .psy-help-box.join { border: 2px solid var(--c-line); border-style: solid; background: #fff; height: 100%; }
.psy-help-box.join { background: color-mix(in srgb, var(--c-secondary) 4%, #fff); }
.psy-help-box > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.psy-help-box .btn { margin-top: auto; min-width: 210px; justify-content: center; }

@media (max-width: 720px) {
	.psy-modal-body { grid-template-columns: 1fr; padding: 20px 18px 6px; }
	.psy-modal-info { order: 1; }
	.psy-modal-about { order: 2; }
	.psy-modal-foot { padding: 12px 16px 14px; }
	.psy-modal-foot { gap: 8px; }
	.psy-modal-foot .btn { flex: 1 1 0; padding: 9px 10px; font-size: 14px; }
	.psy-modal-foot .btn-wa { flex-basis: 100%; }
	.psy-modal-photo { width: 124px; height: 124px; }
	.psy-card .psy-photo { width: 124px; height: 124px; }
}

/* ===================================================================
   v1.9.2 — Hero: "Contact Psychologist" button (right side)
   =================================================================== */
.hero-psy-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 999px;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff;
	font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 16px 36px -18px rgba(0,0,0,.6);
	transition: background .25s, color .25s, transform .25s;
}
.hero-psy-btn:hover { background: #fff; color: var(--c-primary); transform: translateY(-2px); }
.hero-psy-btn[dir="rtl"] { letter-spacing: 0; font-size: 18px; text-transform: none; }
.hero-psy-icon {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
	background: var(--c-accent); color: var(--c-on-accent, #fff); animation: heroPsyPulse 2.4s ease-out infinite;
}
@keyframes heroPsyPulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 60%, transparent); }
	70%, 100% { box-shadow: 0 0 0 14px transparent; }
}
.hero-psy-wrap { position: absolute; left: 0; right: 0; bottom: 100px; z-index: 3; display: flex; justify-content: flex-end; pointer-events: none; }
.hero-psy-wrap .hero-psy-btn { pointer-events: auto; }
@media (max-width: 900px) {
	.hero.has-psy-btn { padding-bottom: 196px; }
	.hero-psy-wrap { bottom: 100px; justify-content: flex-start; }
	.hero-psy-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-psy-icon { animation: none; }
}

/* ===================================================================
   v2.0 — Videos page (YouTube channel)
   =================================================================== */
.yt-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; padding: 14px 16px; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: var(--radius); }
.yt-count { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primary); font-size: 19px; white-space: nowrap; }
.yt-count .icon { color: var(--c-accent); }
.yt-search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.yt-search .icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.yt-search input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--c-ink); }
.yt-search input:focus { outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-secondary) 18%, transparent); }
.btn-yt { background: #E62117; color: #fff; }
.btn-yt:hover { background: #b9150d; color: #fff; }
.yt-grid { row-gap: 30px; }
.yt-card[hidden] { display: none; }
.yt-card .video-title { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-card .video-title[dir="rtl"] { font-size: 18px; line-height: 2; }
.video-date { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; color: var(--c-muted); }
.video-date .icon { color: var(--c-accent); }
.more-row[hidden] { display: none; }
.yt-page .admin-hint { margin-top: 26px; }

/* ===================================================================
   v2.0 — Recommendations (یہ بھی دیکھیں)
   =================================================================== */
.rec-band { background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%); border-top: 1px solid var(--c-line); }
.rec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.rec-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; }
.rec-box { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 18px 16px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.rec-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--c-soft); }
.rec-icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c-secondary), var(--c-primary)); }
.rec-khutbaat .rec-icon, .rec-books .rec-icon { background: linear-gradient(135deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 60%, var(--c-primary))); }
.rec-head small { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--c-accent); line-height: 1.4; text-align: right; }
.rec-head h3 { margin: 0; font-size: 22px; line-height: 1.8; }
.rec-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.rec-list li + li { border-top: 1px dashed var(--c-line); }
.rec-list a { display: flex; align-items: center; gap: 12px; padding: 9px 2px; color: var(--c-ink); }
.rec-list a:hover .rec-title { color: var(--c-accent); }
.rec-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--c-soft); display: grid; place-items: center; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec-thumb.is-icon { color: var(--c-secondary); background: color-mix(in srgb, var(--c-secondary) 10%, #fff); }
.rec-t { min-width: 0; display: flex; flex-direction: column; }
.rec-title { font-size: 16.5px; line-height: 1.85; color: var(--c-primary); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.rec-title[dir="ltr"] { font-size: 14.5px; line-height: 1.45; }
.rec-t small { font-size: 13px; color: var(--c-muted); line-height: 1.7; }
.rec-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--c-soft); font-weight: 700; color: var(--c-secondary); font-size: 16px; }
.rec-all:hover { color: var(--c-accent); }

/* ===================================================================
   v2.0 — Team page (ہماری ٹیم)
   =================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.team-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: var(--radius); padding: 30px 22px 20px; box-shadow: var(--shadow); border: 1px solid var(--c-line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 92px; background: radial-gradient(120% 140% at 85% 0%, var(--c-secondary), var(--c-primary) 70%); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { position: relative; z-index: 1; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 14px 30px -14px rgba(20, 8, 50, .5); background: var(--c-soft); display: block; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-initial { width: 100%; height: 100%; display: grid; place-items: center; font-size: 52px; font-weight: 700; color: var(--c-secondary); background: color-mix(in srgb, var(--c-secondary) 10%, #fff); }
.team-body { padding-top: 14px; flex: 1; width: 100%; }
.team-name { font-size: 21px; margin: 0; text-align: center !important; }
.team-name[dir="rtl"] { font-size: 25px; }
.team-name a { color: var(--c-primary); }
.team-name a:hover { color: var(--c-accent); }
.team-role { display: inline-block; margin: 6px 0 0; padding: 2px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 16%, #fff); color: color-mix(in srgb, var(--c-accent) 55%, var(--c-primary)); font-weight: 700; font-size: 14px; text-align: center !important; }
.team-role[dir="rtl"] { font-size: 17px; line-height: 1.9; }
.team-role-en { margin: 4px 0 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; text-align: center !important; }
.team-intro { margin: 12px 0 0; color: var(--c-muted); font-size: 15px; text-align: center !important; }
.team-intro[dir="rtl"] { font-size: 17px; }
.team-foot { width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.team-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c-primary); transition: .2s; }
.team-social a:hover { color: #fff; transform: translateY(-2px); }
.ts-facebook:hover { background: #1877F2 !important; }
.ts-instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF) !important; }
.ts-youtube:hover { background: #E62117 !important; }
.ts-x:hover, .ts-tiktok:hover { background: #111 !important; }
.ts-linkedin:hover { background: #0A66C2 !important; }
.ts-whatsapp:hover { background: #25D366 !important; }
.ts-mail:hover, .ts-globe:hover { background: var(--c-secondary) !important; }
.team-more { font-weight: 700; color: var(--c-secondary); font-size: 16px; }
.team-more:hover { color: var(--c-accent); }
.team-social.big a { width: 44px; height: 44px; }
.team-modal { width: min(720px, calc(100% - 24px)); }
.team-modal-qual { margin: 0; color: rgba(255,255,255,.8); font-size: 15px; }
.team-modal-body { padding: 24px 28px 10px; font-size: 17px; }
.team-modal-foot { display: flex; justify-content: center; padding: 14px 20px 24px; }
.team-join { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 26px 30px; border-radius: var(--radius); background: #fff; border: 1px dashed color-mix(in srgb, var(--c-secondary) 40%, #fff); }
.team-join h3 { margin: 0 0 4px; font-size: 23px; }
.team-join p { margin: 0; color: var(--c-muted); font-size: 17px; }

/* ===================================================================
   v2.0 — Contact page (رابطہ)
   =================================================================== */
.contact-lead { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 30px; align-items: start; }
.contact-h { font-size: 26px; margin: 0 0 14px; }
.contact-h.small { font-size: 19px; margin: 26px 0 0; }
.contact-info { background: radial-gradient(120% 120% at 100% 0%, var(--c-secondary), var(--c-primary) 65%, var(--c-deep)); color: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-lg); }
.contact-info .contact-h { color: #fff; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-cards li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.cc-icon { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); }
.cc-icon.cc-whatsapp { background: #25D366; color: #fff; }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-text small { color: var(--c-gold-light); font-size: 14px; line-height: 1.6; }
.cc-text a, .cc-text strong { color: #fff; font-weight: 600; font-size: 16px; word-break: break-word; line-height: 1.7; }
.cc-text [dir="rtl"] { font-size: 18px; }
.cc-text a:hover { color: var(--c-gold-light); }
.contact-community { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: #25D366; color: #fff; transition: transform .2s; }
.contact-community:hover { color: #fff; transform: translateY(-2px); }
.contact-community span { display: flex; flex-direction: column; }
.contact-community strong { font-size: 18px; line-height: 1.8; }
.contact-community small { opacity: .9; font-size: 14px; line-height: 1.7; }
.contact-social { margin-top: 12px; justify-content: flex-end; }
.contact-form-wrap { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-form-text { margin-top: -6px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; }
.contact-form label span { font-weight: 600; color: var(--c-primary); font-size: 16px; }
.contact-form label b { color: var(--c-accent); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-soft); font: inherit; font-size: 16px; color: var(--c-ink); line-height: 1.6; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-form select { line-height: 2; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; background: #fff; border-color: var(--c-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-secondary) 18%, transparent); }
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 2; }
.contact-form .btn { align-self: flex-start; }
.cf-note { font-size: 14px; margin: -4px 0 0; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-error { padding: 10px 14px; border-radius: var(--radius-sm); background: #FDECEC; color: #A61B1B; border: 1px solid #F5C2C2; }
.contact-done { text-align: center; padding: 30px 10px; }
.contact-done h2, .contact-done p { text-align: center; }
.cd-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, #16a34a 18%, transparent); }
.contact-map { margin-top: 34px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 8; background: var(--c-soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
	.rec-grid, .rec-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
	.rec-grid, .rec-grid.cols-3, .rec-grid.cols-2 { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: 1fr; }
	.cf-row { grid-template-columns: 1fr; }
	.contact-form-wrap, .contact-info { padding: 24px 18px; }
	.contact-form .btn { align-self: stretch; }
	.team-join { flex-direction: column; align-items: stretch; text-align: center; }
	.team-join h3, .team-join p { text-align: center; }
	.yt-bar { padding: 12px; }
	.yt-bar .btn-yt { flex: 1 1 100%; }
}

/* ===================================================================
   v2.1 — Additional CSS moved into the theme
   (Appearance → Customize → Additional CSS se ye code ab hata dein)
   =================================================================== */
.ktable th:nth-child(4),
.ktable td:nth-child(4) { display: none; }

/* Contact Psychologist button: left side, under the two hero buttons */
.hero.has-psy-btn { flex-wrap: wrap; align-content: center; }
.hero.has-psy-btn .hero-psy-wrap {
	position: relative; left: auto; right: auto; bottom: auto;
	width: 100%; justify-content: flex-start; margin-top: 18px;
}
@media (max-width: 900px) {
	.hero.has-psy-btn { padding-bottom: 120px; }
}

/* SDP mandala — slowly turning in the corner (Customize → Colors & Fonts → Show mandala) */
body.has-mandala::after {
	content: ""; position: fixed; width: 640px; height: 640px; right: -260px; bottom: -260px;
	pointer-events: none; z-index: 1; opacity: .14;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%235B3BA0' stroke-width='.4'%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Cg id='p'%3E%3Cpath d='M50 44q8-16 0-30q-8 14 0 30z'/%3E%3Cpath d='M50 18q5-8 0-14q-5 6 0 14z'/%3E%3Ccircle cx='50' cy='38' r='1.5'/%3E%3C/g%3E%3Cuse href='%23p' transform='rotate(45 50 50)'/%3E%3Cuse href='%23p' transform='rotate(90 50 50)'/%3E%3Cuse href='%23p' transform='rotate(135 50 50)'/%3E%3Cuse href='%23p' transform='rotate(180 50 50)'/%3E%3Cuse href='%23p' transform='rotate(225 50 50)'/%3E%3Cuse href='%23p' transform='rotate(270 50 50)'/%3E%3Cuse href='%23p' transform='rotate(315 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='3' fill='none' stroke='%23F39A2B' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: sdpSpin 120s linear infinite;
}
@keyframes sdpSpin { to { transform: rotate(360deg); } }
.site-header { z-index: 1000; }
@media (max-width: 767px) {
	body.has-mandala::after { width: 380px; height: 380px; right: -170px; bottom: -170px; }
}
@media (prefers-reduced-motion: reduce) {
	body.has-mandala::after { animation: none; }
}

/* ===================================================================
   v2.1 — Volunteer form (رضاکار فارم)
   =================================================================== */
.vol-modal { width: min(820px, calc(100% - 20px)); }
.vol-modal-box { position: relative; }
.vol-modal .vol-wrap { padding: 0 0 26px; }
.vol-modal .vol-form, .vol-modal .vol-intro, .vol-modal .vol-done { margin-inline: 28px; }
.vol-modal .vol-close { top: 16px; left: 16px; }
.vol-head {
	display: flex; align-items: center; gap: 16px; padding: 26px 28px 24px; color: #fff; position: relative; overflow: hidden;
	background: radial-gradient(120% 140% at 100% 0%, var(--c-secondary) 0%, var(--c-primary) 62%, var(--c-deep) 100%);
}
.vol-head::after {
	content: ""; position: absolute; width: 220px; height: 220px; left: -60px; top: -90px; border-radius: 50%;
	border: 26px solid color-mix(in srgb, var(--c-accent) 35%, transparent); opacity: .5;
}
.vol-inline .vol-head { margin: -30px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; }
.vol-modal .vol-head { margin-bottom: 18px; padding-inline-end: 70px; }
.vol-badge { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); position: relative; z-index: 1; }
.vol-head > div { position: relative; z-index: 1; }
.vol-title { color: #fff; margin: 0; font-size: 27px; line-height: 1.9; }
.vol-sub { margin: 0; color: var(--c-gold-light); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-align: right; }
.vol-intro { color: var(--c-muted); font-size: 17px; margin-bottom: 6px; }
.vol-progress { height: 6px; border-radius: 6px; background: var(--c-soft); overflow: hidden; margin: 14px 0 4px; }
.vol-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-accent), var(--c-secondary)); transition: width .35s ease; }
.vol-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.vol-field { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vol-wide { grid-column: 1 / -1; }
.vol-field > label, .vol-field legend { font-weight: 700; color: var(--c-primary); font-size: 17px; line-height: 1.9; padding: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vol-field b { color: var(--c-accent); }
.vol-field em { font-style: normal; color: var(--c-muted); font-weight: 400; font-size: 14px; }
.vol-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: var(--c-soft); color: var(--c-secondary); font-family: var(--f-en), sans-serif; font-size: 13px; font-weight: 700; line-height: 1; }
.vol-help { color: var(--c-muted); font-size: 14px; margin-top: -4px; }
.vol-field input[type="text"], .vol-field input[type="tel"], .vol-field input[type="number"], .vol-field textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-soft);
	font: inherit; font-size: 16px; color: var(--c-ink); line-height: 1.6; transition: border-color .2s, box-shadow .2s, background .2s;
}
.vol-field textarea { line-height: 2; resize: vertical; min-height: 110px; }
.vol-field input:focus, .vol-field textarea:focus { outline: none; background: #fff; border-color: var(--c-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-secondary) 18%, transparent); }
.vol-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vol-chip { position: relative; cursor: pointer; }
.vol-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vol-chip span {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--c-line);
	background: #fff; color: var(--c-ink); font-size: 15px; line-height: 1.9; transition: .18s;
}
.vol-chip span[dir="rtl"] { font-size: 17px; }
.vol-chip span::before {
	content: ""; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid color-mix(in srgb, var(--c-secondary) 45%, #fff); background: #fff; transition: .18s;
	border-radius: 5px;
}
.vol-opts-radio .vol-chip span::before { border-radius: 50%; }
.vol-chip:hover span { border-color: var(--c-secondary); }
.vol-chip input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-secondary) 25%, transparent); }
.vol-chip input:checked + span { background: color-mix(in srgb, var(--c-secondary) 9%, #fff); border-color: var(--c-secondary); color: var(--c-primary); font-weight: 600; }
.vol-chip input:checked + span::before { background: var(--c-accent); border-color: var(--c-accent); box-shadow: inset 0 0 0 3px #fff; }
.vol-field.is-invalid input, .vol-field.is-invalid textarea { border-color: #DC2626; background: #FEF6F6; }
.vol-field.is-invalid > label, .vol-field.is-invalid legend { color: #B91C1C; }
.vol-field.is-invalid .vol-chip span { border-color: #F3B4B4; }
.vol-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vol-submit[disabled] { opacity: .7; cursor: wait; }
.vol-done { text-align: center; padding: 26px 10px 10px; }
.vol-done h3 { font-size: 30px; text-align: center; }
.vol-done p { text-align: center; color: var(--c-muted); font-size: 18px; }
.vol-done .cd-icon { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #E8F7EE; color: #15803d; margin-bottom: 10px; animation: psyPop .4s ease-out; }
.contact-form-wrap.show-vol { border-top: 0; }
@media (max-width: 700px) {
	.vol-grid { grid-template-columns: 1fr; }
	.vol-modal .vol-form, .vol-modal .vol-intro, .vol-modal .vol-done { margin-inline: 18px; }
	.vol-head { padding: 22px 18px; }
	.vol-modal .vol-head { padding-inline-end: 62px; }
	.vol-inline .vol-head { margin: -24px -18px 16px; }
	.vol-title { font-size: 22px; }
	.vol-actions .btn { width: 100%; justify-content: center; }
}
.team-join-btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
@media (max-width: 760px) { .team-join-btns { justify-content: center; } }

/* ===================================================================
   v2.1 — About pages (interactive)
   =================================================================== */
.ab-hero {
	position: relative; overflow: hidden; color: #fff; padding: 70px 0 54px;
	background: radial-gradient(110% 120% at 0% 0%, var(--c-secondary) 0%, var(--c-primary) 48%, var(--c-deep) 100%);
}
.ab-hero-glow { position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.ab-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 54px; align-items: center; direction: rtl; }
.ab-hero.no-img .ab-hero-grid { grid-template-columns: 1fr; text-align: center; }
.ab-hero-text { direction: rtl; }
.ab-hero-text .eyebrow { display: inline-block; margin-bottom: 8px; }
.ab-hero-title { color: #fff; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.7; margin: 0 0 6px; }
.ab-hero-title[dir="ltr"] { line-height: 1.2; }
.ab-hero-sub { color: var(--c-gold-light); font-size: 17px; font-weight: 600; letter-spacing: .06em; margin: 0 0 4px; }
.ab-hero-sub[dir="rtl"] { font-size: 22px; letter-spacing: 0; }
.ab-hero-tag { color: rgba(255,255,255,.88); font-size: 23px; margin: 0; }
.ab-hero-btns { margin-top: 24px; }
.ab-hero.no-img .ab-hero-btns { justify-content: center; }
.ab-hero-media { position: relative; justify-self: center; width: min(420px, 100%); }
.ab-hero-media.has-collage { width: min(470px, 100%); padding: 0 0 40px 40px; }
.ab-hero-frame { position: relative; border-radius: 26px; }
.ab-hero-frame::before {
	content: ""; position: absolute; inset: 0; transform: translate(-16px, 16px); border-radius: inherit;
	border: 2px solid var(--c-accent); z-index: 0; transition: transform .5s ease;
}
.ab-hero-media:hover .ab-hero-frame::before { transform: translate(-8px, 8px); }
.ab-hero-frame img { position: relative; z-index: 1; width: 100%; border-radius: inherit; object-fit: cover; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -28px rgba(0,0,0,.65); }
.ab-hero-sdp .ab-hero-frame img { aspect-ratio: 4 / 3.4; }
.ab-hero-mini { position: absolute; z-index: 2; width: 44%; border-radius: 18px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); animation: abFloat 7s ease-in-out infinite; }
.ab-hero-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ab-hero-mini-1 { left: 0; bottom: 0; }
.ab-hero-mini-2 { right: -18px; top: -22px; width: 34%; animation-delay: -3.5s; }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ab-hero-badge { position: absolute; z-index: 3; left: -14px; top: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; font-size: 14px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.ab-hero-stats { position: relative; z-index: 2; margin-top: 46px; }
.ab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.ab-stat {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 14px; border-radius: var(--radius);
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); transition: transform .25s, background .25s;
}
.ab-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.ab-stat strong { font-family: var(--f-en), sans-serif; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; color: #fff; }
.ab-stat strong::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; margin: 8px auto 0; background: var(--c-accent); }
.ab-stat span { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.8; }

.ab-body { padding-top: 64px; }
.ab-body-grid { display: block; max-width: 900px; }
.ab-body-grid.has-toc.toc-on { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 46px; max-width: var(--container); direction: rtl; align-items: start; }
.ab-toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px 16px; border-radius: var(--radius); background: var(--c-soft); border: 1px solid var(--c-line); }
.ab-toc-title { display: block; font-weight: 700; color: var(--c-primary); font-size: 18px; margin-bottom: 6px; }
.ab-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: abt; display: flex; flex-direction: column; gap: 2px; }
.ab-toc li { counter-increment: abt; }
.ab-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; color: var(--c-ink); font-size: 17px; line-height: 1.8; border-inline-start: 3px solid transparent; transition: .2s; }
.ab-toc a::before { content: counter(abt); font-family: var(--f-en), sans-serif; font-size: 12px; font-weight: 700; color: var(--c-muted); }
.ab-toc a:hover { background: #fff; color: var(--c-secondary); }
.ab-toc a.active { background: #fff; color: var(--c-primary); font-weight: 700; border-inline-start-color: var(--c-accent); box-shadow: var(--shadow); }
.ab-content > :first-child { margin-top: 0; }
.ab-content h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.ab-content img { border-radius: var(--radius); box-shadow: var(--shadow); }

.ab-quote { position: relative; overflow: hidden; padding: 70px 0; background: linear-gradient(120deg, var(--c-primary), var(--c-secondary)); color: #fff; text-align: center; }
.ab-quote .container { position: relative; z-index: 1; max-width: 900px; }
.ab-quote-mark { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); margin-bottom: 18px; }
.ab-quote blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 32px); line-height: 2; color: #fff; }
.ab-quote blockquote[dir="ltr"] { line-height: 1.5; font-style: italic; }
.ab-quote cite { display: block; margin-top: 14px; font-style: normal; color: var(--c-gold-light); font-size: 20px; font-weight: 600; }

.ab-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ab-focus-card {
	position: relative; overflow: hidden; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line);
	box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; outline: none;
}
.ab-focus-card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-secondary)); transform: scaleX(0); transform-origin: right; transition: transform .4s; }
.ab-focus-card:hover, .ab-focus-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-secondary) 30%, #fff); }
.ab-focus-card:hover::before, .ab-focus-card:focus-visible::before { transform: scaleX(1); }
.ab-focus-n { position: absolute; top: 14px; left: 18px; font-family: var(--f-en), sans-serif; font-size: 40px; font-weight: 800; line-height: 1; color: var(--c-soft); transition: color .3s; }
.ab-focus-card:hover .ab-focus-n { color: color-mix(in srgb, var(--c-accent) 30%, #fff); }
.ab-focus-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--c-secondary) 10%, #fff); color: var(--c-secondary); margin-bottom: 12px; transition: .3s; }
.ab-focus-card:hover .ab-focus-icon { background: var(--c-primary); color: var(--c-accent); transform: rotate(-6deg); }
.ab-focus-card h3 { font-size: 22px; line-height: 1.8; margin: 0 0 4px; }
.ab-focus-card p { margin: 0; color: var(--c-muted); font-size: 17px; line-height: 1.9; }

.ab-timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 980px; }
.ab-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 3px; margin-right: -1.5px; border-radius: 3px; background: linear-gradient(var(--c-accent), var(--c-secondary)); }
.ab-tl-item { position: relative; width: 50%; padding: 0 0 26px 40px; }
.ab-tl-item:nth-child(even) { margin-right: 50%; padding: 0 40px 26px 0; }
.ab-tl-dot { position: absolute; top: 22px; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-accent) 20%, transparent); z-index: 1; }
.ab-tl-item:nth-child(even) .ab-tl-dot { left: auto; right: -9px; }
.ab-tl-card { padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); transition: transform .3s; }
.ab-tl-card:hover { transform: translateY(-4px); }
.ab-tl-year { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 700; font-family: var(--f-en), sans-serif; font-size: 15px; margin-bottom: 6px; }
.ab-tl-year[dir="rtl"] { font-family: inherit; font-size: 17px; }
.ab-tl-card h3 { font-size: 21px; line-height: 1.8; margin: 0 0 2px; }
.ab-tl-card p { margin: 0; color: var(--c-muted); font-size: 17px; line-height: 1.9; }
.ab-tl-item.reveal { transform: translateX(30px); }
.ab-tl-item:nth-child(even).reveal { transform: translateX(-30px); }
.ab-tl-item.reveal.in { transform: none; }

.ab-gallery { columns: 3 260px; column-gap: 14px; }
.ab-gal-item { position: relative; display: block; margin: 0 0 14px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; box-shadow: var(--shadow); cursor: zoom-in; }
.ab-gal-item img { width: 100%; transition: transform .6s ease, filter .4s; }
.ab-gal-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.ab-gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--c-deep) 80%, transparent)); opacity: 0; transition: opacity .35s; }
.ab-gal-item:hover::after, .ab-gal-item:focus-visible::after { opacity: 1; }
.ab-gal-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 10px; color: #fff; font-size: 16px; line-height: 1.8; opacity: 0; transform: translateY(8px); transition: .35s; }
.ab-gal-item:hover .ab-gal-cap, .ab-gal-item:focus-visible .ab-gal-cap { opacity: 1; transform: none; }
.ab-gal-zoom { position: absolute; z-index: 1; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--c-primary); opacity: 0; transform: scale(.7); transition: .3s; }
.ab-gal-item:hover .ab-gal-zoom { opacity: 1; transform: none; }

.sdp-lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 6, 30, .94); color: #fff; }
.sdp-lb::backdrop { background: rgba(12, 6, 30, .9); }
.sdp-lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.sdp-lb figure { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 60px 70px 10px; }
.sdp-lb img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 30px 80px -20px #000; animation: psyPop .3s ease-out; }
.sdp-lb-cap { padding: 6px 20px 22px; text-align: center; font-size: 18px; line-height: 1.8; min-height: 40px; }
.sdp-lb-cap small { display: block; opacity: .6; font-family: var(--f-en), sans-serif; font-size: 13px; letter-spacing: .1em; }
.sdp-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .2s; }
.sdp-lb button:hover { background: var(--c-accent); color: var(--c-on-accent); }
.sdp-lb-close { top: 16px; right: 16px; }
.sdp-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.sdp-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .sdp-lb figure { padding: 64px 10px 10px; } .sdp-lb-prev, .sdp-lb-next { top: auto; bottom: 16px; transform: none; } }

.ab-video { position: relative; display: block; width: min(900px, 100%); margin: 0 auto; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-lg); }
.ab-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s, opacity .3s; }
.ab-video:hover img { transform: scale(1.04); opacity: 1; }
.ab-video iframe { width: 100%; height: 100%; border: 0; }
.ab-video-play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 60%, transparent); animation: abPulse 2.2s infinite; }
@keyframes abPulse { 70% { box-shadow: 0 0 0 22px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ab-cta { margin-top: 0; }

@media (max-width: 960px) {
	.ab-hero { padding: 48px 0 40px; }
	.ab-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
	.ab-hero-btns { justify-content: center; }
	.ab-hero-media { width: min(360px, 88%); order: -1; }
	.ab-hero-media.has-collage { width: min(420px, 92%); }
	.ab-body-grid.has-toc.toc-on { grid-template-columns: 1fr; gap: 20px; }
	.ab-toc { position: static; }
	.ab-timeline::before { right: 9px; margin: 0; }
	.ab-tl-item, .ab-tl-item:nth-child(even) { width: 100%; margin: 0; padding: 0 38px 20px 0; }
	.ab-tl-dot, .ab-tl-item:nth-child(even) .ab-tl-dot { left: auto; right: 0; }
	.ab-tl-item.reveal, .ab-tl-item:nth-child(even).reveal { transform: translateY(20px); }
}
@media (max-width: 600px) {
	.ab-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ab-stat span { font-size: 16px; }
	.ab-hero-badge { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ab-hero-mini, .ab-video-play { animation: none; }
}

.ab-stat-x { font-style: normal; color: var(--c-accent); font-family: var(--f-en), sans-serif; font-size: .8em; margin-inline-start: 2px; }
.ab-hero-text [dir="ltr"]:not(.eyebrow):not(.btn) { text-align: right; }
.ab-hero.no-img .ab-hero-text [dir] { text-align: center; }

/* ===================================================================
   v2.1.1 — Book page layout, contact form lock, Elementor layering
   =================================================================== */
.book-single { grid-template-columns: minmax(240px, 360px) 1fr; }
.book-single-cover img { width: 100%; height: auto; display: block; }
.book-single-body .book-price.big { margin-bottom: 14px; }
.book-single-body .side-meta { flex-direction: row; flex-wrap: wrap; gap: 14px 32px; margin: 0 0 22px; }
.book-single-body .entry-content { margin-bottom: 26px; line-height: 2; }
.book-single[dir="rtl"] .entry-content { font-size: 21px; line-height: 2.1; }
.book-single-body .btn { margin-top: 4px; }

.contact-form textarea:disabled { background: var(--c-line); cursor: not-allowed; opacity: .65; resize: none; }
.contact-form select:invalid { color: var(--c-muted); }
.contact-form select option { color: var(--c-ink); }

/* Elementor pages: content above the mandala, header above everything */
.elementor-widget { position: relative; z-index: 2; }
.elementor-location-header { position: relative; z-index: 1000; }
