/*
Theme Name: Dr. Mahdy El Zein
Author: Brand Victory
Author URI: https://samtrabulsi.com
Description: Bilingual (EN/AR) site for Dr. Mahdy El Zein — R2P physiotherapy, courses and bookings. Forms, bookings and checkout run on GHL.
Version: 1.0.0
Text Domain: dme
License: GNU General Public License v2 or later
*/

:root{
	--navy:#13263b; --navy-2:#1c3550; --red:#d7262e; --red-d:#b51d24;
	--cream:#f6f3ee; --sand:#ece5da; --ink:#1b2430; --muted:#5d6876; --line:#dcd4c7; --white:#fff;
	--radius:18px; --shadow:0 10px 30px rgba(19,38,59,.08);
	--f-head:"Fraunces", Georgia, serif; --f-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-lang="ar"]{ --f-head:"IBM Plex Sans Arabic", "Inter", sans-serif; --f-body:"IBM Plex Sans Arabic", "Inter", sans-serif; }
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{ margin:0; font-family:var(--f-body); color:var(--ink); background:var(--cream); font-size:17px; line-height:1.65; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--f-head); color:var(--navy); line-height:1.15; margin:0 0 .5em; font-weight:600; letter-spacing:-.01em; }
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3{ letter-spacing:0; line-height:1.35; font-weight:700; }
h1{ font-size:clamp(2.3rem,5.2vw,4rem); }
h2{ font-size:clamp(1.8rem,3.4vw,2.7rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; }
em{ font-style:italic; color:var(--red); }
html[data-lang="ar"] em{ font-style:normal; }

/* language */
html[data-lang="en"] [data-l="ar"], html[data-lang="ar"] [data-l="en"]{ display:none !important; }

.wrap{ width:min(1180px, 92vw); margin-inline:auto; }
.section{ padding:clamp(64px,9vw,112px) 0; }
.section.tight{ padding:56px 0; }
.bg-white{ background:var(--white); }
.bg-sand{ background:var(--sand); }
.bg-navy{ background:var(--navy); color:#dfe6ee; }
.bg-navy h2,.bg-navy h3{ color:#fff; }
.eyebrow{ display:inline-block; font-family:var(--f-body); font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--red); margin-bottom:14px; }
html[data-lang="ar"] .eyebrow{ letter-spacing:0; font-size:.9rem; }
.lead{ font-size:1.15rem; color:var(--muted); max-width:640px; }
.center{ text-align:center; } .center .lead{ margin-inline:auto; }
.muted{ color:var(--muted); }
.skip{ position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip:focus{ width:auto; height:auto; clip:auto; top:12px; left:12px; z-index:99; background:#fff; padding:8px 12px; }
html,body{ overflow-x:clip; }

/* buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 24px; border-radius:999px; font-weight:600; font-size:.98rem; text-decoration:none; border:2px solid transparent; transition:.2s; cursor:pointer; font-family:var(--f-body); line-height:1.2; text-align:center; }
.btn-red{ background:var(--red); color:#fff; } .btn-red:hover{ background:var(--red-d); }
.btn-navy{ background:var(--navy); color:#fff; } .btn-navy:hover{ background:var(--navy-2); }
.btn-ghost{ border-color:var(--navy); color:var(--navy); background:transparent; } .btn-ghost:hover{ background:var(--navy); color:#fff; }
.btn-light{ background:#fff; color:var(--navy); }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.ico{ width:22px; height:22px; flex:none; }
html[dir="rtl"] .ico-flip{ transform:scaleX(-1); }

/* header */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(246,243,238,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.admin-bar .site-header{ top:32px; }
.nav{ display:flex; align-items:center; gap:24px; min-height:76px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{ display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--navy); color:#fff; font-weight:800; font-size:.85rem; letter-spacing:.04em; font-family:var(--f-body); }
.brand-mark{ background:linear-gradient(135deg,var(--navy) 60%,var(--red) 60%); }
.brand-name{ font-family:var(--f-head); font-weight:600; color:var(--navy); font-size:1.12rem; line-height:1.1; display:flex; flex-direction:column; }
.brand-name small{ font-family:var(--f-body); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-top:3px; }
html[data-lang="ar"] .brand-name small{ letter-spacing:0; font-size:.75rem; }
.menu{ display:flex; gap:26px; margin-inline-start:auto; }
.menu a{ text-decoration:none; font-weight:500; color:var(--ink); font-size:.96rem; }
.menu a:hover{ color:var(--red); }
.menu .menu-cta-m{ display:none; }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.lang{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:8px 14px; font:600 .88rem var(--f-body); cursor:pointer; color:var(--navy); }
.lang [data-l="en"]{ font-family:"IBM Plex Sans Arabic",sans-serif; }
.login{ font-size:.9rem; font-weight:600; text-decoration:none; color:var(--navy); }
.nav-cta{ padding:11px 20px; }
.burger{ display:none; width:44px; height:44px; border:0; background:transparent; flex-direction:column; justify-content:center; gap:5px; cursor:pointer; }
.burger span{ display:block; height:2px; width:24px; background:var(--navy); margin-inline:auto; }

/* hero */
.hero{ padding:clamp(40px,6vw,80px) 0 0; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:end; }
.hero-copy{ padding-bottom:clamp(40px,6vw,90px); align-self:center; }
.hero h1 em{ display:block; }
.hero-photo{ position:relative; align-self:end; }
.hero-photo::before{ content:""; position:absolute; inset:18% 4% 0; background:var(--navy); border-radius:240px 240px 0 0; }
.hero-photo img{ position:relative; width:100%; max-width:440px; margin-inline:auto; }
.badge-float{ position:absolute; z-index:2; background:#fff; border-radius:14px; padding:12px 16px; box-shadow:var(--shadow); font-size:.86rem; line-height:1.3; }
.badge-float strong{ display:block; font-size:1.25rem; color:var(--navy); font-family:var(--f-head); }
.badge-1{ inset-inline-start:-6%; top:34%; } .badge-2{ inset-inline-end:-2%; bottom:14%; }
.trust{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:34px; color:var(--muted); font-size:.92rem; }
.trust b{ color:var(--navy); font-size:1.05rem; }

/* problem / iceberg */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ background:var(--cream); border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:.92rem; }
.under li{ margin-bottom:14px; }
.under{ list-style:none; padding:0; margin:0; counter-reset:u; }
.under li{ counter-increment:u; display:grid; grid-template-columns:40px 1fr; gap:12px; }
.under li::before{ content:"0" counter(u); font:700 .9rem var(--f-body); color:var(--red); padding-top:3px; }
.under b{ display:block; color:var(--navy); }
.callout{ margin-top:28px; padding:20px 24px; border-inline-start:4px solid var(--red); background:#fff; border-radius:0 12px 12px 0; font-weight:600; color:var(--navy); }
html[dir="rtl"] .callout{ border-radius:12px 0 0 12px; }

/* method */
.method{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:48px; }
.step{ background:var(--navy-2); border-radius:var(--radius); padding:28px 24px; position:relative; }
.step .n{ font:700 .8rem var(--f-body); letter-spacing:.14em; color:#ff8a8f; }
.step h3{ margin:10px 0 8px; font-size:1.22rem; }
.step p{ font-size:.95rem; color:#c5d0dc; margin:0; }

/* services */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.svc{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.svc .ico{ width:40px; height:40px; color:var(--red); margin-bottom:16px; }
.price{ font-family:var(--f-head); font-size:2.2rem; color:var(--navy); line-height:1; margin:6px 0 2px; }
.price small{ font-family:var(--f-body); font-size:.85rem; color:var(--muted); display:block; margin-top:8px; }
.ticks{ list-style:none; padding:0; margin:18px 0 24px; }
.ticks li{ display:flex; gap:10px; align-items:flex-start; margin-bottom:8px; font-size:.95rem; }
.ticks .ico{ width:18px; height:18px; color:var(--red); margin-top:4px; }
.svc .btn{ margin-top:auto; }
.svc .btn + .btn{ margin-top:10px; }

/* quiz */
.quiz{ background:#fff; border-radius:24px; box-shadow:var(--shadow); padding:clamp(24px,4vw,44px); max-width:760px; margin:40px auto 0; border:1px solid var(--line); }
.q-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; font-size:.9rem; color:var(--muted); }
.q-bar{ height:6px; background:var(--sand); border-radius:6px; overflow:hidden; margin-bottom:26px; }
.q-bar i{ display:block; height:100%; width:0; background:var(--red); transition:width .3s; }
.q-title{ font-size:1.45rem; margin-bottom:20px; }
.q-opts{ display:grid; gap:10px; }
.q-opt{ text-align:start; padding:16px 18px; border:1.5px solid var(--line); border-radius:14px; background:var(--cream); font:500 1rem var(--f-body); color:var(--ink); cursor:pointer; transition:.15s; }
.q-opt:hover,.q-opt:focus-visible{ border-color:var(--navy); background:#fff; outline:none; }
.q-back{ margin-top:16px; background:none; border:0; color:var(--muted); cursor:pointer; font:500 .92rem var(--f-body); padding:0; }
.q-step{ display:none; } .q-step.on{ display:block; }
.q-result .score{ font-family:var(--f-head); font-size:3rem; color:var(--red); line-height:1; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0 12px; }
.form-row input,.full{ width:100%; padding:14px 16px; border:1.5px solid var(--line); border-radius:12px; font:400 1rem var(--f-body); background:var(--cream); }
.full{ margin-bottom:12px; }
.hp{ position:absolute; left:-9999px; }
.q-note{ font-size:.88rem; color:var(--muted); margin-top:10px; }
.q-ok{ padding:16px; background:#eaf6ee; border-radius:12px; color:#1d5a33; margin-top:14px; display:none; }

/* courses */
.course-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.course{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.course-cover{ aspect-ratio:16/10; background:var(--navy); position:relative; overflow:hidden; }
.course-cover img{ width:100%; height:100%; object-fit:cover; }
.course-cover.type{ display:flex; align-items:flex-end; padding:22px; background:radial-gradient(circle at 85% 15%, rgba(215,38,46,.85) 0 22%, transparent 23%), linear-gradient(140deg,var(--navy) 0%,var(--navy-2) 100%); }
.course-cover.type span{ font-family:var(--f-head); color:#fff; font-size:1.35rem; line-height:1.2; font-weight:600; }
.course-cover.type::after{ content:"R2P"; position:absolute; top:18px; inset-inline-start:22px; font:800 .8rem var(--f-body); letter-spacing:.14em; color:rgba(255,255,255,.7); }
.course-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.tag{ align-self:flex-start; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--red); background:#fbe9ea; padding:5px 10px; border-radius:999px; margin-bottom:12px; }
html[data-lang="ar"] .tag{ letter-spacing:0; }
.course h3{ font-size:1.18rem; }
.course p{ font-size:.95rem; color:var(--muted); }
.meta{ font-size:.85rem; color:var(--muted); margin-bottom:16px; }
.course-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.course-price{ font-family:var(--f-head); font-size:1.6rem; color:var(--navy); }
.course-price s{ font-size:1rem; color:var(--muted); margin-inline-start:6px; }
.course-foot .btn{ padding:12px 18px; font-size:.92rem; }

/* about strip */
.about-photo{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.about-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; object-position:top; }
.creds{ list-style:none; padding:0; margin:20px 0; display:grid; gap:8px; }
.creds li{ display:flex; gap:10px; } .creds .ico{ color:var(--red); width:18px; height:18px; margin-top:4px; }
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:24px; }
.stat{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; }
.stat b{ display:block; font-family:var(--f-head); font-size:1.8rem; color:var(--navy); line-height:1.1; }
.stat span{ font-size:.85rem; color:var(--muted); }

/* testimonials */
.quotes{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:40px; }
.quote{ background:#fff; border-radius:var(--radius); padding:28px; border:1px solid var(--line); }
.quote .stars{ color:#e8a317; letter-spacing:2px; margin-bottom:10px; }
.quote p{ font-size:1rem; }
.quote footer{ font-weight:600; color:var(--navy); } .quote footer span{ display:block; font-weight:400; font-size:.88rem; color:var(--muted); }

/* steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:s; margin-top:40px; }
.steps li{ list-style:none; counter-increment:s; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.steps li::before{ content:counter(s); display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--red); color:#fff; font-weight:700; margin-bottom:14px; }
.steps b{ display:block; color:var(--navy); margin-bottom:6px; }
.steps span{ font-size:.94rem; color:var(--muted); }
.steps{ padding:0; }

/* CTA band */
.cta-band{ background:var(--navy); border-radius:28px; padding:clamp(36px,6vw,64px); display:grid; grid-template-columns:1.4fr 1fr; gap:30px; align-items:center; color:#d6dee8; }
.cta-band h2{ color:#fff; }
.cta-band .btn-row{ justify-content:flex-end; margin:0; }

/* page hero */
.page-hero{ padding:clamp(48px,7vw,90px) 0 clamp(32px,4vw,48px); }
.anchor{ scroll-margin-top:100px; }

/* booking embed */
.embed{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.embed iframe{ width:100%; border:0; min-height:720px; display:block; }
.tabs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.tabs button{ border:1.5px solid var(--line); background:#fff; border-radius:999px; padding:10px 16px; font:600 .92rem var(--f-body); cursor:pointer; color:var(--navy); }
.tabs button[aria-selected="true"]{ background:var(--navy); color:#fff; border-color:var(--navy); }

/* faq */
.faq details{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 22px; margin-bottom:10px; }
.faq summary{ cursor:pointer; font-weight:600; color:var(--navy); list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faq summary::after{ content:"+"; font-size:1.3rem; color:var(--red); line-height:1; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ margin:12px 0 0; color:var(--muted); }

/* generic content pages */
.prose{ max-width:780px; }
.prose h2{ font-size:1.6rem; margin-top:1.6em; } .prose h3{ margin-top:1.4em; }
.prose a{ color:var(--red); }

/* link in bio */
.bio{ max-width:520px; margin:0 auto; padding:48px 0 80px; text-align:center; }
.bio-photo{ width:112px; height:112px; border-radius:50%; object-fit:cover; object-position:top; margin:0 auto 14px; border:4px solid #fff; box-shadow:var(--shadow); background:var(--sand); }
.bio-links{ display:grid; gap:12px; margin-top:26px; text-align:start; }
.bio-link{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 20px; background:#fff; border:1px solid var(--line); border-radius:16px; text-decoration:none; font-weight:600; color:var(--navy); transition:.15s; }
.bio-link:hover{ border-color:var(--navy); transform:translateY(-1px); }
.bio-link small{ display:block; font-weight:400; color:var(--muted); font-size:.85rem; }
.bio-link.primary{ background:var(--red); color:#fff; border-color:var(--red); } .bio-link.primary small{ color:#ffe0e1; }
.bio-head{ font-size:.8rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:22px 0 0; }
html[data-lang="ar"] .bio-head{ letter-spacing:0; }
.is-bio .site-header,.is-bio .site-footer,.is-bio .wa-float{ display:none; }
html[dir="rtl"] .bio-link .ico{ transform:scaleX(-1); }

/* footer */
.site-footer{ background:#0e1d2e; color:#a9b6c4; padding:64px 0 24px; font-size:.95rem; }
.foot-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; }
.site-footer h4{ color:#fff; font-family:var(--f-body); font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:14px; }
html[data-lang="ar"] .site-footer h4{ letter-spacing:0; }
.site-footer a{ display:block; text-decoration:none; color:#d4dde6; margin-bottom:8px; }
.site-footer a:hover{ color:#fff; }
.brand-light .brand-name{ color:#fff; } .brand-light .brand-name small{ color:#8fa0b2; }
.foot-about{ margin-top:16px; max-width:360px; }
.foot-bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; border-top:1px solid #23364b; margin-top:40px; padding-top:20px; font-size:.86rem; }
.foot-bottom .legal{ display:flex; gap:18px; } .foot-bottom .legal a{ display:inline; margin:0; }
.disclaimer{ font-size:.8rem; color:#7d8c9c; margin-top:14px; }
.wa-float{ position:fixed; inset-inline-end:20px; bottom:20px; width:58px; height:58px; border-radius:50%; background:#25d366; display:grid; place-items:center; box-shadow:0 8px 24px rgba(0,0,0,.2); z-index:60; }

/* responsive */
@media (max-width:1024px){
	.menu{ gap:18px; } .login{ display:none; }
	.method,.steps{ grid-template-columns:repeat(2,1fr); }
	.course-grid,.grid-3,.quotes{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:860px){
	body{ font-size:16px; }
	.burger{ display:flex; }
	.nav-cta{ display:none; }
	.menu{ position:fixed; inset:76px 0 auto 0; flex-direction:column; gap:0; background:var(--cream); border-bottom:1px solid var(--line); padding:8px 4vw 20px; display:none; margin:0; }
	.admin-bar .menu{ top:122px; }
	.menu.open{ display:flex; }
	.menu a{ padding:14px 0; border-bottom:1px solid var(--line); font-size:1.05rem; }
	.menu .menu-cta-m{ display:flex; margin-top:16px; border:0; }
	.nav{ gap:12px; } .nav-actions{ margin-inline-start:auto; }
	.hero-grid,.split,.cta-band,.foot-grid{ grid-template-columns:1fr; }
	.hero-copy{ padding-bottom:0; }
	.hero-photo img{ max-width:340px; }
	.badge-1{ inset-inline-start:0; } .badge-2{ inset-inline-end:0; }
	.cta-band .btn-row{ justify-content:flex-start; }
	.form-row{ grid-template-columns:1fr; }
	.stats{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:620px){
	.method,.steps,.course-grid,.grid-3,.quotes{ grid-template-columns:1fr; }
	.brand-name small{ display:none; }
	.brand-name{ font-size:1rem; }
	.btn-row .btn{ width:100%; }
	.stats{ grid-template-columns:1fr 1fr 1fr; gap:8px; } .stat{ padding:12px; } .stat b{ font-size:1.35rem; }
	.embed iframe{ min-height:820px; }
}
@media (max-width:782px){ .admin-bar .site-header{ top:46px; } }
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; scroll-behavior:auto !important; } }

/* v1.1 — student login, recovery map result, motion concept */
.login{ display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.login .ico{ width:18px; height:18px; }
.login:hover{ border-color:var(--navy); }
.menu .menu-login-m{ display:none; }
@media (max-width:1024px){ .login{ display:inline-flex; } }
@media (max-width:860px){ .menu .menu-login-m{ display:block; } }
@media (max-width:620px){ .login{ padding:0; width:40px; height:40px; justify-content:center; } .login-txt{ display:none; } .lang{ padding:8px 11px; } }

.res-stage{ display:inline-block; margin:6px 0 0; padding:6px 12px; border-radius:999px; background:#fde8e9; color:var(--red); font-weight:700; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; }
html[data-lang="ar"] .res-stage{ letter-spacing:0; }
.res-title{ font-size:1.7rem; margin:12px 0 6px; }
.map{ position:relative; margin:46px 0 8px; }
.map-track{ height:12px; border-radius:12px; background:linear-gradient(90deg,#f2c4c6 0 33.3%,#f6e2c8 33.3% 66.6%,#cfe6d6 66.6%); overflow:hidden; }
.map-fill{ display:block; height:100%; width:var(--pos); background:linear-gradient(90deg,var(--red),#e8812f 55%,#2f9e5b); border-radius:12px; animation:mapgrow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.map-pin{ position:absolute; top:-40px; inset-inline-start:var(--pos); transform:translateX(-50%); animation:pin 1.4s cubic-bezier(.2,.8,.2,1) both; }
html[dir="rtl"] .map-pin{ transform:translateX(50%); }
.map-pin b{ display:block; background:var(--navy); color:#fff; font-size:.75rem; padding:5px 10px; border-radius:8px; white-space:nowrap; position:relative; }
.map-pin b::after{ content:""; position:absolute; left:50%; bottom:-5px; margin-left:-5px; border:5px solid transparent; border-bottom:0; border-top-color:var(--navy); }
html[dir="rtl"] .map-fill{ background:linear-gradient(270deg,var(--red),#e8812f 55%,#2f9e5b); }
.map-labels{ display:grid; grid-template-columns:repeat(3,1fr); margin-top:10px; font-size:.85rem; color:var(--muted); text-align:center; }
.map-labels .on{ color:var(--navy); font-weight:700; }
@keyframes mapgrow{ from{ width:0; } }
@keyframes pin{ from{ inset-inline-start:0; opacity:0; } }
.res-text{ margin-top:18px; }
.res-h{ font-weight:700; color:var(--navy); margin:22px 0 10px; font-size:.95rem; }
.gaps{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.gap{ background:var(--cream); border:1px solid var(--line); border-radius:14px; padding:14px 16px; font-size:.92rem; color:var(--muted); }
.gap b{ display:block; color:var(--navy); font-size:1rem; margin-bottom:4px; }
.call{ margin-top:26px; background:var(--navy); color:#fff; border-radius:20px; padding:clamp(20px,3vw,30px); }
.call h3{ color:#fff; font-size:1.35rem; } .call p{ color:#c5d0dc; }
.call .form-row input,.call .full{ background:#fff; border-color:#fff; }
.call .btn{ width:100%; justify-content:center; }
@media (max-width:620px){ .gaps{ grid-template-columns:1fr; } .res-title{ font-size:1.4rem; } }

.rr-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.rr{ background:var(--navy); color:#fff; border-radius:24px; padding:clamp(20px,3vw,30px); box-shadow:var(--shadow); text-align:start; }
.rr-kicker{ margin:0; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#f3a3a6; }
html[data-lang="ar"] .rr-kicker{ letter-spacing:0; }
.rr-title{ color:#fff; font-size:1.3rem; margin:6px 0 14px; }
.rr-toggle{ display:inline-flex; background:#22384f; border-radius:999px; padding:4px; gap:4px; }
.rr-toggle button{ border:0; background:transparent; color:#c5d0dc; font:600 .9rem var(--f-body); padding:8px 16px; border-radius:999px; cursor:pointer; transition:.25s; }
.rr-toggle button[aria-selected="true"]{ background:#fff; color:var(--navy); }
.rr[data-mode="r2p"] .rr-toggle button[aria-selected="true"]{ background:var(--red); color:#fff; }
.rr-chart{ margin-top:16px; background:#0f1f31; border-radius:16px; padding:14px 12px 8px; }
.rr-chart svg{ width:100%; height:170px; display:block; overflow:visible; }
html[dir="rtl"] .rr-chart svg{ transform:scaleX(-1); }
.rr-axis{ stroke:#3a5068; stroke-width:1; } .rr-grid{ stroke:#22384f; stroke-width:1; stroke-dasharray:3 4; }
.rr path{ fill:none; stroke-width:3.5; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:0; }
.rr .rr-pain{ stroke:#ff5a61; } .rr .rr-str{ stroke:#7fd1a4; }
.rr-set{ opacity:0; transition:opacity .4s; }
.rr[data-mode="guess"] .rr-guess,.rr[data-mode="r2p"] .rr-r2p{ opacity:1; }
.rr.play[data-mode="guess"] .rr-guess path,.rr.play[data-mode="r2p"] .rr-r2p path{ animation:rrdraw 1.8s ease-out both; }
.rr.play[data-mode="guess"] .rr-guess .rr-str,.rr.play[data-mode="r2p"] .rr-r2p .rr-str{ animation-delay:.25s; }
.rr-flare{ fill:#ff5a61; opacity:0; } .rr-dot{ fill:#7fd1a4; stroke:#0f1f31; stroke-width:3; opacity:0; }
.rr.play[data-mode="guess"] .rr-flare{ animation:rrpop .5s ease-out both, rrpulse 1.6s 2s ease-in-out infinite; }
.rr.play[data-mode="guess"] .rr-flare:nth-of-type(1){ animation-delay:1s, 1.6s; } .rr.play[data-mode="guess"] .rr-flare:nth-of-type(2){ animation-delay:1.7s, 2.3s; }
.rr.play[data-mode="r2p"] .rr-dot{ animation:rrpop .5s ease-out both; }
.rr.play[data-mode="r2p"] .rr-dot:nth-of-type(1){ animation-delay:.6s; } .rr.play[data-mode="r2p"] .rr-dot:nth-of-type(2){ animation-delay:1.1s; } .rr.play[data-mode="r2p"] .rr-dot:nth-of-type(3){ animation-delay:1.7s; }
@keyframes rrdraw{ from{ stroke-dashoffset:1; } to{ stroke-dashoffset:0; } }
@keyframes rrpop{ from{ opacity:0; transform:scale(0); } to{ opacity:1; transform:scale(1); } }
@keyframes rrpulse{ 50%{ opacity:.35; } }
.rr circle{ transform-box:fill-box; transform-origin:center; }
.rr-weeks{ display:flex; justify-content:space-between; font-size:.75rem; color:#8fa0b2; margin-top:6px; }
.rr-legend{ display:flex; gap:18px; margin:12px 0 4px; font-size:.85rem; color:#c5d0dc; }
.rr-legend span::before{ content:""; display:inline-block; width:18px; height:4px; border-radius:4px; margin-inline-end:7px; vertical-align:middle; }
.lg-pain::before{ background:#ff5a61; } .lg-str::before{ background:#7fd1a4; }
.rr-cap{ display:none; min-height:92px; margin:10px 0 0; color:#dde5ec; font-size:.95rem; }
.rr[data-mode="guess"] .rr-cap-guess,.rr[data-mode="r2p"] .rr-cap-r2p{ display:block; }
.rr.play .rr-cap{ animation:rrfade .6s ease-out both; }
@keyframes rrfade{ from{ opacity:0; transform:translateY(6px); } }
.rr-miles{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.rr-miles li{ display:flex; gap:10px; align-items:baseline; }
.rr-miles b{ color:#7fd1a4; min-width:66px; font-size:.85rem; }
.rr.play[data-mode="r2p"] .rr-miles li{ animation:rrfade .5s ease-out both; }
.rr.play[data-mode="r2p"] .rr-miles li:nth-child(1){ animation-delay:.6s; } .rr.play[data-mode="r2p"] .rr-miles li:nth-child(2){ animation-delay:1.1s; } .rr.play[data-mode="r2p"] .rr-miles li:nth-child(3){ animation-delay:1.7s; }
.rr-note{ font-size:.75rem; color:#8fa0b2; margin:10px 0 0; }
.rr-compact{ margin:6px 0; } .rr-compact .rr-chart svg{ height:140px; }
.bio-link.navy{ background:var(--navy); color:#fff; border-color:var(--navy); } .bio-link.navy small{ color:#c5d0dc; }
@media (max-width:860px){ .rr-wrap{ grid-template-columns:1fr; gap:28px; } }
@media (prefers-reduced-motion:reduce){ .rr *, .map *{ animation:none !important; } }

/* v1.2 — courses dropdown, course pages, grant form */
.has-sub{ position:relative; display:flex; align-items:center; }
.sub-parent{ display:inline-flex; align-items:center; gap:4px; }
.chev{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.sub-toggle{ display:none; border:0; background:none; padding:8px; cursor:pointer; color:var(--navy); }
.sub{ position:absolute; top:100%; inset-inline-start:-18px; min-width:340px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:10px; display:none; flex-direction:column; z-index:60; margin-top:14px; }
.sub::before{ content:""; position:absolute; top:-16px; left:0; right:0; height:16px; }
.has-sub:hover .sub,.has-sub:focus-within .sub{ display:flex; }
.menu .sub a{ display:flex; justify-content:space-between; gap:14px; padding:10px 12px; border-radius:10px; font-size:.92rem; line-height:1.3; }
.menu .sub a:hover{ background:var(--cream); }
.sub small{ color:var(--muted); font-weight:600; white-space:nowrap; }
.menu .sub .sub-all{ border-top:1px solid var(--line); border-radius:0 0 10px 10px; margin-top:6px; padding-top:12px; color:var(--red); font-weight:600; }
@media (max-width:860px){
	.menu{ max-height:calc(100vh - 76px); overflow-y:auto; }
	.has-sub{ flex-wrap:wrap; }
	.has-sub .sub-parent{ flex:1; }
	.has-sub .sub-parent .chev{ display:none; }
	.sub-toggle{ display:block; border-bottom:1px solid var(--line); align-self:stretch; padding:0 6px; }
	.has-sub:hover .sub,.has-sub:focus-within .sub{ display:none; }
	.sub{ position:static; min-width:0; width:100%; box-shadow:none; border:0; border-radius:0; padding:0 0 0 12px; margin:0; background:transparent; }
	.has-sub.open .sub{ display:flex; }
	.has-sub.open .sub-toggle .chev{ transform:rotate(180deg); }
	.menu .sub a{ border-bottom:1px solid var(--line); border-radius:0; padding:12px 0; font-size:.98rem; }
}

.course-hero{ padding-top:clamp(28px,4vw,56px); }
.course-hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.course-hero h1{ font-size:clamp(1.9rem,4vw,2.9rem); }
.crumb{ display:inline-block; margin-bottom:14px; color:var(--muted); text-decoration:none; font-size:.92rem; }
.crumb:hover{ color:var(--red); }
.course-stats{ display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.course-stats span{ background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 14px; font-size:.88rem; font-weight:600; color:var(--navy); }
.buy-row{ display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.course-price.big{ font-size:2rem; }
.course-hero-img img{ width:100%; border-radius:var(--radius); box-shadow:var(--shadow); }
.course-hero-img .course-cover{ border-radius:var(--radius); aspect-ratio:3/2; }
.modules{ list-style:none; padding:0; margin:32px 0 0; display:grid; grid-template-columns:repeat(2,1fr); gap:16px; counter-reset:m; }
.modules li{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.mod-n{ font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--red); }
html[data-lang="ar"] .mod-n{ letter-spacing:0; }
.modules h3{ margin:6px 0 6px; font-size:1.15rem; } .modules p{ margin:0; color:var(--muted); font-size:.95rem; }
.course-link{ color:inherit; text-decoration:none; } .course-link:hover{ color:var(--red); }
.course .meta a{ color:var(--red); font-weight:600; text-decoration:none; }
@media (max-width:860px){ .course-hero-grid,.modules{ grid-template-columns:1fr; } }

.grant{ display:grid; gap:14px; margin-top:24px; }
.grant label{ display:grid; gap:6px; font-weight:600; color:var(--navy); font-size:.92rem; }
.grant input,.grant select{ width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:12px; font:400 1rem var(--f-body); background:var(--cream); }
.grant .btn{ justify-content:center; }
