/*
Theme Name: رياض القرآن
Theme URI: https://riadalquran.top/
Author: رياض القرآن
Author URI: https://riadalquran.top/
Description: ثيم عربي متجاوب لمنصة تحفيظ القرآن ومتجرها، مع ملفات المعلمين والمعلمات وطلبات التحفيظ وتكامل WooCommerce.
Version: 1.5.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: riad-al-quran
Tags: rtl-language-support, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
	--navy: #0b2a4a;
	--navy-2: #124a77;
	--blue: #0757aa;
	--orange: #e85d04;
	--orange-2: #ff7a18;
	--gold: #ffb703;
	--green: #168466;
	--red: #c92a2a;
	--ink: #13263a;
	--muted: #66798b;
	--canvas: #f5f7fa;
	--cream: #fff8ef;
	--line: #dfe7ee;
	--white: #fff;
	--shadow-sm: 0 10px 30px rgba(11, 42, 74, .08);
	--shadow-lg: 0 24px 70px rgba(11, 42, 74, .16);
	--radius-sm: 14px;
	--radius: 22px;
	--radius-lg: 32px;
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	direction: rtl;
	background: var(--canvas);
	color: var(--ink);
	font-family: Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.25rem; }
::selection { background: var(--gold); color: var(--navy); }
.riad-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-content { max-width: 820px; }
.section { padding: 96px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 10px; right: 10px; padding: 10px 16px; transform: translateY(-160%); background: var(--white); border-radius: 10px; color: var(--navy); }
.skip-link:focus { transform: none; }
.riad-icon { width: 21px; height: 21px; flex: 0 0 auto; }

.button,
button.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 11px 23px;
	border: 1px solid transparent;
	border-radius: 13px;
	cursor: pointer;
	font-weight: 800;
	line-height: 1.2;
	transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: var(--white); box-shadow: 0 10px 25px rgba(232, 93, 4, .22); }
.button-primary:hover { color: var(--white); box-shadow: 0 14px 32px rgba(232, 93, 4, .32); }
.button-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.42); color: var(--white); backdrop-filter: blur(12px); }
.button-white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.button-outline-dark { border-color: var(--line); background: var(--white); color: var(--navy); }
.button-outline-dark:hover { border-color: var(--orange); color: var(--orange); }
.button-large { min-height: 57px; padding-inline: 28px; border-radius: 16px; }
.button.is-disabled { pointer-events: none; filter: grayscale(1); opacity: .65; }
.text-link, .card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); font-weight: 800; }
.text-link .riad-icon, .card-link .riad-icon { width: 18px; transition: transform .2s ease; }
.text-link:hover .riad-icon, .card-link:hover .riad-icon { transform: translateX(-4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--orange); font-size: .86rem; font-weight: 900; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.compact-heading { margin-bottom: 26px; }
.compact-heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }

.topbar { background: #071e35; color: #cad7e3; font-size: .78rem; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar p, .topbar div { margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar i { width: 3px; height: 3px; border-radius: 50%; background: #7890a6; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fd99f; box-shadow: 0 0 0 4px rgba(63,217,159,.14); }
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(11,42,74,.08); box-shadow: 0 5px 24px rgba(11,42,74,.055); backdrop-filter: blur(18px); transition: box-shadow .25s ease, background .25s ease; }
.site-header::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(7,87,170,.24),rgba(232,93,4,.38),transparent); }
.site-header.is-scrolled { background: rgba(255,255,255,.985); box-shadow: 0 10px 35px rgba(11,42,74,.12); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: 132px minmax(0,1fr) auto; align-items: center; gap: 18px; }
.site-brand { display: block; width: 126px; background: transparent; }
.site-brand img { display: block; width: 100%; height: 80px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 4px rgba(7,87,170,.08)); }
.custom-logo-link { display: block; }
.custom-logo { max-height: 68px; width: auto; }
.primary-nav { min-width: 0; }
.primary-nav ul { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 1px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { flex: 0 0 auto; }
.primary-nav a { position: relative; display: block; padding: 12px 10px; border-radius: 10px; color: #384e62; font-size: clamp(.78rem,1vw,.9rem); font-weight: 800; line-height: 1.25; white-space: nowrap; transition: color .2s ease, background .2s ease, transform .2s ease; }
.primary-nav a::after { content: ""; position: absolute; right: 13px; bottom: 5px; width: 0; height: 2px; background: var(--orange); transition: width .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: linear-gradient(135deg,rgba(7,87,170,.06),rgba(232,93,4,.055)); color: var(--navy); transform: translateY(-1px); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: calc(100% - 26px); }
.header-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; white-space: nowrap; }
.header-cart { display: flex; align-items: center; gap: 5px; color: var(--navy); font-size: .86rem; font-weight: 800; }
.header-cart .riad-icon { width: 23px; }
.cart-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; background: var(--orange); color: var(--white); font-size: .68rem; }
.header-apply { position: relative; overflow: hidden; min-height: 44px; padding: 9px 17px; border: 0; background: linear-gradient(135deg,var(--orange),var(--orange-2)); box-shadow: 0 9px 24px rgba(232,93,4,.24); }
.header-apply::after { content: ""; position: absolute; top: -80%; bottom: -80%; left: -45%; width: 28px; transform: rotate(22deg); background: rgba(255,255,255,.34); filter: blur(2px); animation: headerShine 4.8s ease-in-out infinite; }
.header-apply:hover { box-shadow: 0 12px 30px rgba(232,93,4,.34); transform: translateY(-2px); }
@keyframes headerShine { 0%,68% { left: -45%; } 88%,100% { left: 125%; } }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 11px; background: #edf3f8; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--navy); transition: .25s ease; }

.home-hero { position: relative; min-height: 700px; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-media { position: absolute; inset: 0; background: url('assets/images/hero-quran.png') center/cover no-repeat; transform: scale(1.02); animation: heroZoom 16s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,24,43,.12) 0%, rgba(6,24,43,.46) 42%, rgba(6,24,43,.96) 78%, #06182b 100%); }
.hero-content { position: relative; z-index: 2; padding: 105px 0 125px; }
.hero-content > * { max-width: 650px; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.09); color: #dbe8f3; font-size: .82rem; backdrop-filter: blur(8px); }
.hero-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,183,3,.16); }
.hero-content h1 { margin-bottom: 20px; color: var(--white); font-size: clamp(3rem, 6vw, 5.5rem); }
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content > p { margin-bottom: 28px; color: #d3e0eb; font-size: clamp(1rem, 1.8vw, 1.22rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-trust { display: flex; align-items: center; gap: 15px; margin-top: 37px; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { display: grid; place-items: center; width: 39px; height: 39px; margin-left: -10px; border: 2px solid var(--navy); border-radius: 50%; background: linear-gradient(135deg,#fff1dd,#ffc98c); color: var(--navy); font-weight: 900; }
.hero-trust > div:last-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; }
.hero-trust small { grid-column: 1 / -1; color: #aebfd0; }
.scroll-hint { position: absolute; z-index: 2; right: 50%; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #aebfd0; font-size: .7rem; transform: translateX(50%); }
.scroll-hint span { width: 23px; height: 35px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; }
.scroll-hint span::after { content: ""; display: block; width: 3px; height: 6px; margin: 7px auto; border-radius: 5px; background: var(--gold); animation: scrollDot 1.6s infinite; }

.stats-strip { position: relative; z-index: 3; margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stats-grid > div { position: relative; padding: 27px 20px; text-align: center; }
.stats-grid > div + div::before { content: ""; position: absolute; top: 25%; right: 0; width: 1px; height: 50%; background: var(--line); }
.stats-grid b { display: block; color: var(--navy); font-size: 1.8rem; line-height: 1.2; }
.stats-grid span { color: var(--muted); font-size: .85rem; }

.why-section { background: var(--canvas); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature-card { padding: 30px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 26px rgba(11,42,74,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover { transform: translateY(-7px); border-color: rgba(232,93,4,.24); box-shadow: var(--shadow-lg); }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 16px; background: rgba(7,87,170,.09); color: var(--blue); }
.feature-icon.orange { background: rgba(232,93,4,.1); color: var(--orange); }
.feature-icon.gold { background: rgba(255,183,3,.14); color: #b37b00; }
.feature-icon.green { background: rgba(22,132,102,.1); color: var(--green); }
.feature-card h3 { margin-bottom: 9px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.teacher-paths { background: var(--white); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card { position: relative; min-height: 430px; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); box-shadow: var(--shadow-lg); }
.path-photo, .path-shade { position: absolute; inset: 0; }
.path-photo { background-repeat: no-repeat; background-size: 500% 100%; transition: transform .6s ease; }
.male-photo { background-image: url('assets/images/teachers-men.png'); background-position: 50% center; }
.female-photo { background-image: url('assets/images/teachers-women.png'); background-position: 75% center; }
.path-shade { background: linear-gradient(0deg, rgba(5,25,44,.96), rgba(5,25,44,.06) 72%); }
.female-path .path-shade { background: linear-gradient(0deg, rgba(50,20,10,.94), rgba(50,20,10,.04) 72%); }
.path-content { position: absolute; z-index: 2; right: 35px; bottom: 30px; left: 35px; }
.path-content span { color: var(--gold); font-size: .8rem; font-weight: 900; }
.path-content h3 { margin: 3px 0 4px; color: var(--white); font-size: 2rem; }
.path-content p { margin-bottom: 12px; color: #dae5ed; }
.path-content b { display: flex; align-items: center; gap: 7px; }
.path-card:hover .path-photo { transform: scale(1.04); }

.featured-teachers { background: var(--canvas); }
.teachers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 21px; }
.teacher-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 9px 30px rgba(11,42,74,.06); transition: transform .25s ease, box-shadow .25s ease; }
.teacher-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.teacher-image { position: relative; display: block; overflow: hidden; aspect-ratio: .87; background: #ecdfcc; }
.teacher-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.teacher-sprite { background-repeat: no-repeat; background-size: 500% 100%; background-position: calc(var(--sprite-index) * 25%) center; }
.teacher-card:hover .teacher-photo { transform: scale(1.035); }
.teacher-gender, .availability { position: absolute; top: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; backdrop-filter: blur(10px); }
.teacher-gender { right: 13px; background: rgba(11,42,74,.83); color: var(--white); }
.availability { left: 13px; background: rgba(255,255,255,.9); color: var(--green); }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.availability.is-full { color: var(--red); }
.teacher-card-body { padding: 20px; }
.teacher-rating { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.teacher-rating small { color: var(--muted); font-size: .7rem; }
.rating-stars { display: inline-flex; direction: ltr; align-items: center; gap: 1px; color: #ccd5dd; font-size: .86rem; }
.rating-stars .is-filled { color: var(--gold); }
.rating-stars b { margin-left: 5px; color: var(--ink); font-size: .78rem; }
.teacher-card h3 { margin: 9px 0 2px; }
.teacher-card h3 a:hover { color: var(--orange); }
.teacher-specialty { min-height: 27px; margin-bottom: 14px; color: var(--muted); font-size: .82rem; }
.teacher-meta { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 11px 0; border-block: 1px solid #edf1f5; color: var(--muted); font-size: .68rem; }
.teacher-meta span + span { border-right: 1px solid #edf1f5; padding-right: 12px; }
.teacher-meta b { display: block; color: var(--navy); font-size: .86rem; }
.teacher-card .card-link { font-size: .78rem; }

.journey-section { background: var(--white); }
.journey-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.journey-image { position: relative; }
.journey-image img { width: 100%; min-height: 490px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.journey-image > span { position: absolute; right: 25px; bottom: 25px; display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 15px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.journey-image small { color: var(--muted); }
.journey-content h2 { margin-bottom: 25px; }
.steps-list { display: grid; gap: 20px; margin-bottom: 28px; }
.steps-list > div { display: flex; gap: 16px; }
.steps-list > div > b { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 14px; background: var(--navy); color: var(--gold); }
.steps-list span { display: flex; flex-direction: column; }
.steps-list strong { color: var(--ink); }
.steps-list small { color: var(--muted); }

.home-shop { overflow: hidden; background: var(--cream); }
.product-rail { position: relative; }
.product-rail-controls { display: flex; justify-content: flex-end; gap: 9px; margin: -17px 0 18px; }
.product-rail-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #e7d7c6; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 8px 22px rgba(11,42,74,.08); transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.product-rail-button:hover { border-color: var(--orange); background: var(--orange); color: var(--white); transform: translateY(-2px); }
.product-rail-button .riad-icon { width: 20px; }
.product-rail-prev .riad-icon { transform: rotate(180deg); }
.product-rail-viewport { overflow-x: auto; padding: 5px 4px 22px; cursor: grab; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.product-rail-viewport::-webkit-scrollbar { display: none; }
.product-rail-viewport:active { cursor: grabbing; }
.product-rail-viewport:focus-visible { border-radius: var(--radius); outline: 3px solid rgba(7,87,170,.2); outline-offset: 5px; }
.product-rail-track { display: flex; gap: 20px; width: max-content; }
.home-product-card { position: relative; flex: 0 0 270px; overflow: hidden; border: 1px solid #eadfD3; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 35px rgba(11,42,74,.09); scroll-snap-align: start; transition: transform .28s ease, box-shadow .28s ease; }
.home-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.home-product-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / .92; background: #f1eee8; }
.home-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.home-product-card:hover .home-product-image img { transform: scale(1.045); }
.home-sale-badge { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: .7rem; font-weight: 900; box-shadow: 0 6px 18px rgba(232,93,4,.23); }
.home-product-body { padding: 17px; }
.home-product-category { display: block; overflow: hidden; margin-bottom: 4px; color: var(--orange); font-size: .68rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-product-card h3 { min-height: 52px; margin: 0 0 15px; font-size: 1rem; }
.home-product-card h3 a:hover { color: var(--orange); }
.home-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid #edf1f4; }
.home-product-price { display: flex; flex-direction: column; color: var(--orange); font-size: .96rem; font-weight: 900; line-height: 1.35; }
.home-product-price del { color: var(--muted); font-size: .68rem; font-weight: 500; }
.home-product-price ins { text-decoration: none; }
.home-add-cart.button { min-height: 41px; padding: 8px 11px; border-radius: 11px; background: var(--navy); color: var(--white); font-size: .7rem; white-space: nowrap; }
.home-add-cart.button:hover { background: var(--orange); color: var(--white); }
.home-add-cart .riad-icon { width: 17px; }
.product-rail-progress { overflow: hidden; height: 4px; margin-top: 8px; border-radius: 999px; background: rgba(11,42,74,.1); }
.product-rail-progress span { display: block; width: 5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--orange),var(--gold)); transition: width .35s ease; }
.testimonials-section { overflow: hidden; background: var(--canvas); }
.testimonials-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-card { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.testimonial-card > p { min-height: 90px; margin: 15px 0 20px; color: #40576b; }
.testimonial-card footer { display: flex; align-items: center; gap: 12px; }
.testimonial-card footer > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--blue)); color: var(--white); font-weight: 900; }
.testimonial-card footer div { display: flex; flex-direction: column; }
.testimonial-card footer small { color: var(--muted); }
.final-cta { position: relative; overflow: hidden; padding: 85px 0; text-align: center; background: linear-gradient(135deg,#061a2e,var(--navy),var(--blue)); color: var(--white); }
.final-cta::before, .final-cta::after { content: ""; position: absolute; width: 280px; height: 280px; border: 50px solid rgba(255,255,255,.025); border-radius: 50%; }
.final-cta::before { top: -160px; right: -70px; }.final-cta::after { bottom: -180px; left: -50px; }
.final-cta .riad-container { position: relative; z-index: 2; }
.final-cta h2 { margin-bottom: 9px; color: var(--white); }
.final-cta p { margin-bottom: 25px; color: #c6d6e4; }

.page-hero { position: relative; overflow: hidden; padding: 95px 0 80px; text-align: center; background: linear-gradient(145deg,#eef5fb,#fff8ef); }
.page-hero::before { content: ""; position: absolute; top: -120px; left: -70px; width: 330px; height: 330px; border-radius: 50%; background: rgba(7,87,170,.06); }
.page-hero::after { content: ""; position: absolute; right: -130px; bottom: -190px; width: 370px; height: 370px; border-radius: 50%; background: rgba(232,93,4,.07); }
.page-hero .riad-container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2.4rem,5vw,4rem); }
.page-hero p { max-width: 680px; margin-inline: auto; color: var(--muted); font-size: 1.05rem; }
.compact-hero { padding: 70px 0 55px; }
.directory-tabs { display: inline-flex; gap: 5px; margin-top: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.directory-tabs a { padding: 8px 18px; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.directory-tabs a.active { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.directory-section { min-height: 500px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.directory-toolbar b { color: var(--orange); font-size: 1.35rem; }
.directory-toolbar p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: .82rem; }
.directory-grid { grid-template-columns: repeat(3,1fr); }
.directory-cta { padding: 55px 0; background: var(--navy); color: var(--white); }
.directory-cta .riad-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.directory-cta h2 { margin: 0; color: var(--white); }
.empty-state { padding: 70px 25px; border: 1px dashed #cbd7e1; border-radius: var(--radius); text-align: center; background: var(--white); }

.profile-hero { padding: 70px 0; background: linear-gradient(145deg,#edf5fb,#fff9f1); }
.profile-grid { display: grid; grid-template-columns: 390px 1fr; align-items: center; gap: 65px; }
.profile-photo-wrap { position: relative; overflow: hidden; aspect-ratio: .88; border: 8px solid var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.profile-photo-wrap .profile-photo { height: 100%; }
.profile-photo-wrap .availability { top: auto; right: 20px; bottom: 20px; left: auto; padding: 8px 13px; }
.back-link { display: inline-block; margin-bottom: 17px; color: var(--muted); font-size: .8rem; }
.profile-intro h1 { margin-bottom: 3px; font-size: clamp(2.4rem,5vw,4.3rem); }
.profile-specialty { color: var(--muted); font-size: 1.08rem; }
.profile-rating { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.profile-rating .rating-stars { font-size: 1.1rem; }
.profile-rating > span { color: var(--muted); font-size: .78rem; }
.profile-numbers { display: flex; gap: 36px; margin: 25px 0; }
.profile-numbers div { display: flex; flex-direction: column; }
.profile-numbers b { color: var(--navy); font-size: 1.35rem; }
.profile-numbers span { color: var(--muted); font-size: .75rem; }
.profile-content-grid { display: grid; grid-template-columns: 1fr 350px; align-items: start; gap: 60px; }
.profile-content { padding: 35px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.profile-content h2 { font-size: 2rem; }
.entry-content { color: #40576b; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content a { color: var(--orange); text-decoration: underline; }
.profile-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.profile-features span { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 11px; background: #f3f8f6; color: var(--green); font-size: .82rem; font-weight: 800; }
.booking-card { position: sticky; top: 110px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.booking-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; border-radius: 15px; background: rgba(232,93,4,.1); color: var(--orange); }
.booking-card p, .booking-card li { color: var(--muted); font-size: .84rem; }
.booking-card ul { padding-right: 19px; }
.booking-card .button { width: 100%; }
.reviews-section { padding-top: 0; }
.comments-area { max-width: 900px; }
.comment-list { display: grid; gap: 15px; margin: 0 0 45px; padding: 0; list-style: none; }
.comment-list .comment-body { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: -20px 65px 14px 0; color: var(--muted); font-size: .7rem; }
.comment-content .rating-stars { display: flex; margin-bottom: 5px; }
.comment-reply-title { font-size: 1.6rem; }
.comment-form { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 800; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 8px); }
.comment-form-author { margin-left: 11px; }
.comment-rating { margin: 0 0 18px; padding: 0; border: 0; }
.comment-rating legend { margin-bottom: 5px; font-weight: 800; }
.star-picker { display: inline-flex; direction: ltr; flex-direction: row-reverse; }
.star-picker input { position: absolute; opacity: 0; }
.star-picker label { cursor: pointer; color: #ccd5dd; font-size: 1.8rem; line-height: 1; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: var(--gold); }

.apply-hero { padding-bottom: 100px; }
.privacy-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.privacy-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.78); color: var(--navy); font-size: .76rem; font-weight: 800; }
.application-section { padding-top: 0; margin-top: -45px; position: relative; z-index: 3; }
.application-grid { display: grid; grid-template-columns: 1fr 350px; align-items: start; gap: 25px; }
.form-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); }
.form-step-title { display: flex; align-items: center; gap: 13px; margin: 32px 0 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-step-title:first-of-type { margin-top: 0; }
.form-step-title > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--navy); color: var(--gold); font-weight: 900; }
.form-step-title div { display: flex; flex-direction: column; }
.form-step-title small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.riad-form label > span, .riad-form legend { display: block; margin-bottom: 6px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.riad-form input:not([type="radio"]):not([type="checkbox"]), .riad-form select, .riad-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #f9fbfc; color: var(--ink); transition: border .2s ease, box-shadow .2s ease; }
.riad-form input:focus, .riad-form select:focus, .riad-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.1); }
.form-wide, .gender-field { grid-column: 1 / -1; }
.gender-field { margin: 0; padding: 0; border: 0; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-cards input { position: absolute; opacity: 0; }
.choice-cards label > span { display: flex; flex-direction: column; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfc; cursor: pointer; }
.choice-cards small, .form-wide > small { color: var(--muted); font-weight: 400; }
.choice-cards input:checked + span { border-color: var(--orange); background: #fff4eb; box-shadow: 0 0 0 2px rgba(232,93,4,.08); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 22px 0; color: var(--muted); }
.consent input { margin-top: 7px; accent-color: var(--orange); }
.consent > span { font-weight: 400 !important; }
.hp-field { position: absolute !important; right: -10000px !important; }
.form-notice { display: flex; flex-direction: column; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; }
.form-notice.is-success { background: #eaf8f3; color: #086f52; }.form-notice.is-error { background: #fff0f0; color: #a41d1d; }
.application-aside { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.application-aside img { width: 100%; height: 230px; object-fit: cover; }
.application-aside > div { padding: 25px; }
.application-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.application-aside li { position: relative; display: flex; flex-direction: column; margin-top: 17px; padding-right: 35px; }
.application-aside li::before { content: counter(steps); counter-increment: steps; position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--navy); color: var(--gold); font-size: .72rem; font-weight: 900; }
.application-aside li span { color: var(--muted); font-size: .78rem; }

.content-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.single-cover { width: 100%; margin-bottom: 30px; border-radius: var(--radius); }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-card > div { padding: 22px; }
.post-image { display: block; aspect-ratio: 16/10; overflow: hidden; }.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card time { color: var(--orange); font-size: .74rem; }.post-card h2 { margin: 7px 0; font-size: 1.25rem; }.post-card p { color: var(--muted); font-size: .84rem; }
.not-found { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.not-found b { color: var(--orange); font-size: clamp(6rem,20vw,13rem); line-height: 1; opacity: .13; }.not-found h1 { margin-top: -45px; }

/* About page */
.about-hero { position: relative; overflow: hidden; padding: 105px 0; background: linear-gradient(145deg,#f2f7fb,#fff8ef); }
.about-hero::before { content: ""; position: absolute; top: -160px; right: -100px; width: 470px; height: 470px; border: 90px solid rgba(7,87,170,.035); border-radius: 50%; }
.about-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.about-hero h1 { margin-bottom: 20px; }
.about-hero h1 em { color: var(--orange); font-style: normal; }
.about-hero p { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.about-logo-card { position: relative; display: grid; place-items: center; min-height: 430px; overflow: hidden; border: 1px solid rgba(11,42,74,.08); border-radius: 48% 52% 43% 57% / 48% 42% 58% 52%; background: var(--white); box-shadow: var(--shadow-lg); animation: organicFloat 7s ease-in-out infinite; }
.about-logo-card img { position: relative; z-index: 2; width: 74%; }
.about-logo-card p { position: relative; z-index: 2; margin: -45px 0 0; color: var(--navy); font-weight: 900; }
.brand-orbit { position: absolute; border: 1px dashed rgba(7,87,170,.16); border-radius: 50%; }
.orbit-one { width: 310px; height: 310px; }.orbit-two { width: 420px; height: 420px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.story-image { position: relative; }
.story-image img { width: 100%; min-height: 500px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story-image span { position: absolute; right: 25px; bottom: 25px; display: flex; flex-direction: column; padding: 13px 17px; border-radius: 13px; background: rgba(255,255,255,.92); }
.story-image small { color: var(--muted); }
.about-story article > p { color: var(--muted); }
.about-quote { margin-top: 25px; padding: 20px 24px; border-right: 4px solid var(--orange); border-radius: 12px 0 0 12px; background: var(--cream); color: var(--navy); font-weight: 800; }
.values-section { background: var(--navy); }
.values-section .section-heading h2 { color: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.value-card { padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.06); color: #c6d5e1; transition: transform .25s ease, background .25s ease; }
.value-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.value-card > span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; background: rgba(255,183,3,.12); color: var(--gold); }
.value-card h3 { color: var(--white); }
.value-card p { margin: 0; font-size: .86rem; }
.serve-section { background: var(--canvas); }
.serve-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.serve-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.serve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.serve-card > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 16px; background: rgba(7,87,170,.09); color: var(--blue); }
.serve-card p { min-height: 82px; color: var(--muted); }
.serve-card b { display: flex; align-items: center; gap: 7px; color: var(--orange); font-size: .84rem; }
.serve-card.featured { border-color: transparent; background: linear-gradient(145deg,var(--navy),var(--navy-2)); color: #c6d5e1; }
.serve-card.featured h3 { color: var(--white); }.serve-card.featured > span { background: rgba(255,183,3,.14); color: var(--gold); }
.centered-actions { justify-content: center; }

/* Academy and nursery solution */
.academy-hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg,#06182b 0%,var(--navy) 55%,#0a4776 100%); color: var(--white); }
.academy-hero-shape { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at 15% 20%,rgba(255,183,3,.3),transparent 18%), radial-gradient(circle at 88% 80%,rgba(232,93,4,.34),transparent 20%); }
.academy-hero::before { content: ""; position: absolute; left: -160px; bottom: -250px; width: 600px; height: 600px; border: 100px solid rgba(255,255,255,.025); border-radius: 50%; }
.academy-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; padding-block: 90px; }
.academy-hero h1 { margin: 20px 0; color: var(--white); font-size: clamp(3rem,5.8vw,5.2rem); }
.academy-hero h1 em { color: var(--gold); font-style: normal; }
.academy-hero p { color: #cad9e5; font-size: 1.08rem; }
.academy-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; color: #c9d8e4; font-size: .78rem; }
.academy-trust span { display: flex; align-items: center; gap: 6px; }
.academy-dashboard-mockup { padding: 19px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 35px 90px rgba(0,0,0,.28); transform: perspective(1200px) rotateY(5deg) rotateX(2deg); }
.mockup-top { display: flex; direction: ltr; align-items: center; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mockup-top > span { width: 8px; height: 8px; border-radius: 50%; background: #ccd5dd; }.mockup-top > span:first-child { background: var(--orange); }.mockup-top > span:nth-child(2) { background: var(--gold); }.mockup-top > span:nth-child(3) { background: var(--green); }
.mockup-top b { margin-left: auto; color: var(--navy); font-size: .78rem; }
.mockup-welcome { display: flex; flex-direction: column; padding: 18px 3px 13px; }.mockup-welcome small { color: var(--orange); }.mockup-welcome strong { font-size: 1.15rem; }
.mockup-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mockup-stats > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 7px; padding: 12px; border-radius: 13px; background: #f2f6f9; }
.mockup-stats span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(7,87,170,.09); color: var(--blue); }.mockup-stats b { font-size: 1rem; }.mockup-stats small { color: var(--muted); font-size: .62rem; }
.mockup-chart { height: 165px; display: flex; align-items: end; gap: 9px; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; }
.mockup-chart > div { align-self: start; display: flex; flex-direction: column; width: 120px; }.mockup-chart small { color: var(--muted); font-size: .62rem; }
.mockup-chart > span { flex: 1; height: var(--h); min-width: 11px; border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg,var(--blue),#4f9ee0); animation: chartGrow 1.1s ease both; transform-origin: bottom; }
.mockup-chart > span:nth-last-child(2), .mockup-chart > span:last-child { background: linear-gradient(0deg,var(--orange),var(--gold)); }
.mockup-ranking { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding: 11px; border-radius: 13px; background: #fff6e8; }
.mockup-ranking > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--gold); color: var(--navy); font-style: normal; font-weight: 900; }.mockup-ranking span { display: flex; flex: 1; flex-direction: column; }.mockup-ranking small { color: var(--muted); font-size: .6rem; }.mockup-ranking strong { color: var(--green); }
.org-types { position: relative; z-index: 3; margin-top: -1px; background: var(--white); box-shadow: var(--shadow-sm); }
.org-types-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.org-types article { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 27px 20px; }
.org-types article + article { border-right: 1px solid var(--line); }
.org-types article > span { color: var(--orange); }.org-types article div { display: flex; flex-direction: column; }.org-types article small { color: var(--muted); }
.academy-features { background: var(--canvas); }
.academy-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.academy-feature-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 9px 28px rgba(11,42,74,.04); transition: transform .25s ease, box-shadow .25s ease; }
.academy-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.academy-feature-card > span { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 18px; border-radius: 14px; background: rgba(232,93,4,.09); color: var(--orange); }
.academy-feature-card h3 { margin-bottom: 8px; }.academy-feature-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.connected-apps { background: var(--white); }
.connected-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; }
.connected-copy > p { color: var(--muted); }
.connected-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 25px 0 0; padding: 0; list-style: none; }
.connected-copy li { display: flex; align-items: center; gap: 7px; color: #425b70; font-size: .82rem; }.connected-copy li .riad-icon { color: var(--green); }
.apps-visual { min-height: 500px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 35px; border-radius: var(--radius-lg); background: linear-gradient(145deg,#eef5fb,#fff6e9); }
.app-phone { width: 210px; min-height: 410px; padding: 17px; border: 7px solid var(--navy); border-radius: 32px; background: var(--white); box-shadow: var(--shadow-lg); }
.app-phone > span { display: block; padding: 5px 0 12px; text-align: center; color: var(--navy); font-size: .74rem; font-weight: 900; }
.phone-logo { display: grid; place-items: center; height: 95px; border-radius: 16px; background: transparent; }.phone-logo img { width: 80%; background: transparent; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }.phone-grid i { height: 58px; border-radius: 11px; background: linear-gradient(135deg,#eef3f7,#dce9f3); }.phone-grid i:nth-child(3n) { background: linear-gradient(135deg,#fff1e5,#ffd9bb); }
.phone-list { display: grid; gap: 9px; margin-top: 12px; }.phone-list i { height: 48px; border-radius: 11px; background: linear-gradient(90deg,#edf3f7 70%,#ffead8 70%); }
.student-phone { transform: translateY(28px); border-color: var(--orange); }
.connection-line { display: flex; align-items: center; flex-direction: column; gap: 8px; color: var(--muted); font-size: .65rem; }.connection-line span { width: 55px; height: 1px; background: linear-gradient(90deg,transparent,var(--orange),transparent); }.connection-line b { writing-mode: vertical-rl; color: var(--orange); }
.academy-course { background: var(--cream); }
.course-timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 50px; }
.course-timeline::before { content: ""; position: absolute; top: 5%; right: 50%; bottom: 5%; width: 2px; background: linear-gradient(var(--orange),var(--gold),var(--blue)); transform: translateX(50%); }
.course-module { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 15px; padding: 25px; border: 1px solid #f0dfcd; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.course-module:nth-child(even) { transform: translateY(35px); }
.course-module > b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--navy); color: var(--gold); }.course-module span { color: var(--orange); font-size: .72rem; font-weight: 900; }.course-module h3 { margin: 3px 0 5px; }.course-module p { margin: 0; color: var(--muted); font-size: .82rem; }
.academy-apply-banner { padding: 68px 0; background: linear-gradient(135deg,var(--navy),var(--blue)); color: var(--white); }
.academy-apply-banner .riad-container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }.academy-apply-banner h2 { margin-bottom: 5px; color: var(--white); }.academy-apply-banner p { margin: 0; color: #c9d9e6; }
.org-application-section { background: var(--canvas); }
.org-application-aside { overflow: hidden; padding: 27px; border-radius: var(--radius); background: linear-gradient(145deg,var(--navy),#0d416c); color: #c7d5e0; box-shadow: var(--shadow-lg); }
.aside-brand { margin: -27px -27px 25px; padding: 22px; background: transparent; text-align: center; }.aside-brand img { width: 80%; margin: auto; background: transparent; filter: brightness(0) invert(1) drop-shadow(0 3px 7px rgba(0,0,0,.16)); }.aside-brand span { color: #c7d5e0; font-size: .74rem; }
.org-application-aside h3 { color: var(--white); }.org-application-aside ul { display: grid; gap: 13px; padding: 0; list-style: none; }.org-application-aside li { display: flex; align-items: center; gap: 8px; font-size: .83rem; }.org-application-aside li .riad-icon { color: var(--gold); }.aside-note { margin: 24px 0 0; padding: 13px; border-radius: 11px; background: rgba(255,255,255,.07); font-size: .75rem; }

.site-footer { position: relative; overflow: hidden; padding-top: 70px; background: #071d32; color: #b9c9d6; }
.footer-pattern { position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg,var(--orange),var(--gold),var(--blue)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 55px; }
.site-footer .site-brand { display: inline-block; width: 150px; padding: 0; border-radius: 0; background: transparent; }
.site-footer .site-brand img { height: 92px; filter: brightness(0) invert(1) drop-shadow(0 3px 7px rgba(0,0,0,.2)); }
.footer-about p { max-width: 420px; margin-top: 18px; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; color: #d7e2eb; font-size: .75rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.09); font-size: .73rem; }
.footer-bottom p { margin: 0; }

/* Private learning rooms */
.learning-hero { background: radial-gradient(circle at 15% 25%,rgba(255,183,3,.16),transparent 28%),linear-gradient(135deg,#071d32,#0b3d68); color: var(--white); }
.learning-hero h1 { color: var(--white); }
.learning-hero p { max-width: 700px; color: #cad9e5; }
.room-login-card { max-width: 680px; margin: auto; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-align: center; box-shadow: var(--shadow-lg); }
.room-login-card > span { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px; background: linear-gradient(135deg,var(--navy),var(--blue)); color: var(--gold); }
.room-login-card .riad-icon { width: 35px; height: 35px; }
.room-user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: .8rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.room-user-chip img { border-radius: 50%; }
.room-user-chip a { padding-right: 9px; border-right: 1px solid var(--line); color: var(--orange); font-size: .7rem; }
.learning-room-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.learning-room-card { position: relative; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 17px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease,box-shadow .25s ease; }
.learning-room-card::before { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: linear-gradient(var(--orange),var(--gold)); }
.learning-room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room-card-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #edf5fb; color: var(--blue); }
.room-card-icon .riad-icon { width: 29px; height: 29px; }
.learning-room-card h3 { margin: 2px 0 4px; }
.learning-room-card p,.learning-room-card > div > span { margin: 0; color: var(--muted); font-size: .75rem; }
.learning-room-card > i { position: absolute; top: 9px; left: 12px; color: var(--muted); font-size: .64rem; font-style: normal; }
.learning-room-card > i.room-ready { color: var(--green); }
.classroom-hero { padding: 70px 0 80px; background: radial-gradient(circle at 12% 35%,rgba(255,183,3,.14),transparent 25%),linear-gradient(135deg,#071d32,#0d416c); color: #cad9e5; }
.classroom-hero h1 { margin: 8px 0 19px; color: var(--white); font-size: clamp(2rem,4.5vw,3.8rem); }
.classroom-hero .back-link { color: #b8cadd; }
.classroom-people { display: flex; flex-wrap: wrap; gap: 10px; }
.classroom-people > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .76rem; }
.classroom-people .riad-icon { width: 17px; color: var(--gold); }
.classroom-content { padding-top: 55px; }
.classroom-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 24px; }
.meeting-panel { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; margin-bottom: 24px; padding: 25px; border: 1px solid rgba(7,87,170,.13); border-radius: var(--radius); background: linear-gradient(135deg,#fff,#f3f8fc); box-shadow: var(--shadow-sm); }
.meeting-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: linear-gradient(135deg,var(--blue),var(--navy)); color: var(--white); box-shadow: 0 12px 25px rgba(7,87,170,.2); }
.meeting-icon .riad-icon { width: 33px; height: 33px; }
.meeting-panel span,.meeting-panel p { color: var(--muted); font-size: .78rem; }
.meeting-panel h2 { margin: 2px 0 3px; font-size: clamp(1.25rem,2.4vw,1.8rem); }
.meeting-panel p { margin: 0; }
.meeting-waiting { padding: 8px 13px; border-radius: 999px; background: #eef2f5; white-space: nowrap; }
.classroom-chat,.schedule-card,.participants-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.classroom-chat { overflow: hidden; }
.classroom-chat > .section-heading { padding: 27px 27px 0; }
.chat-messages { display: flex; flex-direction: column; gap: 13px; max-height: 600px; overflow-y: auto; padding: 5px 27px 27px; scroll-behavior: smooth; }
.chat-message { display: flex; align-items: flex-start; gap: 10px; max-width: 82%; }
.chat-message > img { flex: 0 0 auto; border-radius: 50%; }
.chat-message > div { padding: 11px 14px; border-radius: 5px 16px 16px 16px; background: #eef3f7; }
.chat-message.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.is-mine > div { border-radius: 16px 5px 16px 16px; background: #e9f4ff; }
.chat-message header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 3px; }
.chat-message header b { color: var(--navy); font-size: .74rem; }
.chat-message time { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.chat-message p { margin: 0; color: #31475a; font-size: .82rem; line-height: 1.7; }
.chat-empty { padding: 32px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 18px; border-top: 1px solid var(--line); background: #f7f9fb; }
.chat-compose textarea { width: 100%; min-height: 62px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--white); }
.chat-compose textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,87,170,.09); }
.classroom-sidebar { display: grid; gap: 18px; }
.schedule-card,.participants-card { padding: 24px; }
.schedule-icon { display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 14px; border-radius: 17px; background: #fff3e8; color: var(--orange); }
.schedule-card p { color: var(--muted); font-size: .76rem; }
.schedule-card form,.schedule-card label { display: grid; gap: 7px; }
.schedule-card form { gap: 14px; }
.schedule-card label span { color: var(--ink); font-size: .75rem; font-weight: 800; }
.schedule-card input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfd; }
.participants-card h3 { margin-bottom: 16px; }
.participants-card > div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f4; }
.participants-card > div:last-child { border-bottom: 0; }
.participants-card img { border-radius: 50%; }
.participants-card span { display: flex; flex-direction: column; }
.participants-card b { font-size: .78rem; }
.participants-card small { color: var(--muted); font-size: .66rem; }

/* WooCommerce */
.shop-main { background: var(--canvas); }
.shop-shell { padding-block: 55px 95px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 25px; color: var(--muted); }
.breadcrumb-separator { margin: 0 7px; color: #aab7c2; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; margin-bottom: 16px; border-radius: 15px; background: #eff3f6; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; color: var(--ink); font-size: 1.04rem; }
.woocommerce ul.products li.product .price { color: var(--orange); font-weight: 900; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-size: .78rem; }
.woocommerce span.onsale { right: 27px; left: auto; min-width: auto; min-height: auto; padding: 5px 10px; border-radius: 999px; background: var(--orange); line-height: 1.4; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 11px; background: var(--navy); color: var(--white); }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--orange); color: var(--white); }
.woocommerce div.product { padding: 35px; border-radius: var(--radius); background: var(--white); }
.woocommerce div.product div.images img { border-radius: 16px; }
.woocommerce div.product .product_title { color: var(--ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--orange); }
.woocommerce table.shop_table { overflow: hidden; border-color: var(--line); border-radius: 15px; background: var(--white); }
.woocommerce .cart_totals, .woocommerce-checkout-review-order, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single { min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green); background: var(--white); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.075); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes organicFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes chartGrow { from { transform: scaleY(.05); } to { transform: scaleY(1); } }

@media (max-width: 1080px) {
	.header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
	.site-brand { width: 108px; }
	.menu-toggle { display: block; order: -1; }
	.primary-nav { position: fixed; z-index: 999; top: 123px; right: 16px; left: 16px; display: none; max-height: calc(100vh - 140px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg); }
	.primary-nav.is-open { display: block; animation: menuIn .22s ease; }
	.primary-nav ul { align-items: stretch; flex-direction: column; }
	.primary-nav a { padding: 12px; border-bottom: 1px solid #eef2f5; font-size: .9rem; }
	.header-cart span { display: none; }
	.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.feature-grid, .teachers-grid { grid-template-columns: repeat(2,1fr); }
	.profile-grid { grid-template-columns: 340px 1fr; gap: 40px; }
	.application-grid, .profile-content-grid { grid-template-columns: 1fr 310px; gap: 25px; }
	.about-hero-grid, .story-grid { gap: 45px; }
	.values-grid { grid-template-columns: repeat(2,1fr); }
	.academy-hero-grid { gap: 30px; }
	.connected-grid { gap: 35px; }
}

@media (max-width: 860px) {
	.topbar-inner > div { display: none; }
	.topbar-inner { justify-content: center; }
	.header-inner { grid-template-columns: 1fr auto auto; min-height: 72px; }
	.menu-toggle { display: block; order: -1; }
	.primary-nav { position: fixed; z-index: 999; top: 107px; right: 16px; left: 16px; display: none; max-height: calc(100vh - 125px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg); }
	.primary-nav.is-open { display: block; animation: menuIn .22s ease; }
	.primary-nav ul { align-items: stretch; flex-direction: column; }
	.primary-nav a { padding: 12px; border-bottom: 1px solid #eef2f5; }
	.header-cart span { display: none; }
	.header-apply { display: none; }
	.header-apply.header-room { display: inline-flex; min-height: 40px; padding: 7px 11px; font-size: .75rem; }
	.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.home-hero { min-height: 650px; }
	.hero-overlay { background: linear-gradient(90deg,rgba(6,24,43,.38),rgba(6,24,43,.94)); }
	.hero-content { padding-block: 80px 105px; }
	.journey-grid { grid-template-columns: 1fr; gap: 40px; }
	.journey-image img { min-height: 380px; }
	.testimonials-track { grid-template-columns: repeat(6,minmax(280px,1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; }
	.testimonial-card { scroll-snap-align: start; }
	.application-grid, .profile-content-grid { grid-template-columns: 1fr; }
	.application-aside { display: grid; grid-template-columns: 280px 1fr; }
	.application-aside img { height: 100%; }
	.booking-card { position: static; }
	.profile-grid { grid-template-columns: 300px 1fr; gap: 30px; }
	.about-hero-grid, .story-grid, .academy-hero-grid, .connected-grid { grid-template-columns: 1fr; }
	.about-logo-card { min-height: 390px; }
	.academy-hero { min-height: auto; }
	.academy-dashboard-mockup { max-width: 570px; width: 100%; margin-inline: auto; transform: none; }
	.academy-feature-grid { grid-template-columns: repeat(2,1fr); }
	.connected-copy { order: 1; }
	.apps-visual { order: 2; }
	.footer-grid { grid-template-columns: 1.5fr 1fr; }
	.classroom-layout { grid-template-columns: 1fr; }
	.classroom-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.learning-room-grid { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
	:root { --radius: 18px; --radius-lg: 24px; }
	.riad-container { width: min(calc(100% - 28px),var(--container)); }
	.section { padding: 68px 0; }
	.topbar { display: none; }
	.primary-nav { top: 82px; }
	.site-brand { width: 90px; }
	.site-brand img { height: 64px; }
	.logged-in .header-actions .header-cart { display: none; }
	.home-hero { min-height: 660px; text-align: center; }
	.hero-media { background-position: 32% center; }
	.hero-overlay { background: linear-gradient(0deg,rgba(6,24,43,.97) 20%,rgba(6,24,43,.55) 100%); }
	.hero-content { padding-block: 160px 90px; }
	.hero-content h1 { font-size: clamp(2.55rem,12vw,3.7rem); }
	.hero-actions { justify-content: center; }
	.hero-actions .button { width: 100%; }
	.hero-trust { justify-content: center; }
	.scroll-hint { display: none; }
	.stats-grid { grid-template-columns: repeat(2,1fr); }
	.stats-grid > div:nth-child(3)::before { display: none; }
	.stats-grid > div { padding: 20px 10px; }
	.stats-grid b { font-size: 1.45rem; }
	.feature-grid, .teachers-grid, .directory-grid, .path-grid, .posts-grid { grid-template-columns: 1fr; }
	.split-heading { align-items: flex-start; flex-direction: column; }
	.path-card { min-height: 400px; }
	.journey-image img { min-height: 300px; }
	.product-rail-controls { justify-content: flex-start; margin-top: -8px; }
	.home-product-card { flex-basis: min(79vw, 285px); }
	.home-add-cart.button span { display: none; }
	.home-add-cart.button { width: 42px; padding: 8px; }
	.testimonials-track { margin-left: -14px; }
	.page-hero { padding: 70px 0 60px; }
	.directory-tabs { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
	.directory-tabs a { padding-inline: 7px; }
	.directory-toolbar { align-items: flex-start; flex-direction: column; }
	.directory-cta .riad-container { align-items: flex-start; flex-direction: column; }
	.profile-grid { grid-template-columns: 1fr; }
	.profile-photo-wrap { max-width: 360px; width: 100%; margin-inline: auto; }
	.profile-intro { text-align: center; }
	.profile-rating, .profile-numbers { justify-content: center; }
	.profile-numbers { gap: 22px; }
	.profile-features, .form-grid { grid-template-columns: 1fr; }
	.profile-features span, .form-wide, .gender-field { grid-column: auto; }
	.form-card { padding: 25px 18px; }
	.application-aside { display: block; }
	.application-aside img { height: 230px; }
	.about-hero { padding: 75px 0; }
	.about-hero-grid { text-align: center; }
	.about-hero .hero-actions { justify-content: center; }
	.about-logo-card { min-height: 320px; border-radius: var(--radius-lg); }
	.story-grid { grid-template-columns: 1fr; }
	.story-image img { min-height: 330px; }
	.values-grid, .serve-grid, .academy-feature-grid { grid-template-columns: 1fr; }
	.serve-card p { min-height: auto; }
	.academy-hero-grid { padding-block: 75px; text-align: center; }
	.academy-hero .hero-actions, .academy-trust { justify-content: center; }
	.academy-dashboard-mockup { padding: 13px; text-align: right; }
	.mockup-stats > div { padding: 8px; }
	.org-types-grid { grid-template-columns: 1fr; }
	.org-types article { justify-content: flex-start; }.org-types article + article { border-top: 1px solid var(--line); border-right: 0; }
	.connected-copy ul { grid-template-columns: 1fr; }
	.apps-visual { min-height: 390px; gap: 6px; padding: 18px 8px; }
	.app-phone { width: 145px; min-height: 315px; padding: 10px; border-width: 5px; border-radius: 24px; }
	.phone-logo { height: 68px; }.phone-grid i { height: 40px; }.phone-list i { height: 36px; }
	.connection-line span { width: 24px; }.connection-line b { display: none; }
	.course-timeline { grid-template-columns: 1fr; gap: 14px; }.course-timeline::before { display: none; }.course-module:nth-child(even) { transform: none; }
	.academy-apply-banner .riad-container { align-items: flex-start; flex-direction: column; }
	.choice-cards { grid-template-columns: 1fr 1fr; }
	.comment-form-author, .comment-form-email { display: block; width: 100%; margin-left: 0; }
	.content-card { padding: 25px 18px; }
	.footer-grid { grid-template-columns: 1fr; gap: 35px; }
	.learning-room-card { grid-template-columns: 50px 1fr; padding: 20px; }
	.learning-room-card > .button { grid-column: 1 / -1; width: 100%; }
	.meeting-panel { grid-template-columns: 55px 1fr; padding: 20px; }
	.meeting-icon { width: 55px; height: 55px; border-radius: 17px; }
	.meeting-panel > .button,.meeting-panel > .meeting-waiting { grid-column: 1 / -1; width: 100%; }
	.classroom-sidebar { grid-template-columns: 1fr; }
	.chat-message { max-width: 95%; }
	.chat-compose { grid-template-columns: 1fr; }
	.chat-compose .button { width: 100%; }
	.footer-bottom { align-items: flex-start; flex-direction: column; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.woocommerce div.product { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
}

@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
