/* ==========================================================================
   Tabarak Academy — redesign
   Design tokens kept from the live theme (Hamt / SkillGro base):
   primary #5751E1 · heading #161439 · body #6D6C80 · secondary #56F3FF
   Fonts: Poppins (headings) · Inter (body) · Amiri (Arabic accents)
   ========================================================================== */

:root {
  --primary: #5751E1;
  --primary-600: #4b45d4;
  --primary-700: #3d37b8;
  --primary-50: #F7F7FE;
  --primary-100: #EFEEFE;
  --primary-200: #DCDAFB;
  --navy: #161439;
  --dark: #1C1A4A;
  --black: #06042E;
  --shadow-blue: #050071;
  --cyan: #56F3FF;
  --sky: #1E9BFF;
  --logo-grad: linear-gradient(135deg, #56D8F7 0%, #1E90FF 100%);
  --yellow: #FFC224;
  --yellow-600: #F5B000;
  --green: #12BB6A;
  --wa: #25D366;
  --wa-dark: #128C4B;
  --pink: #FF429D;
  --body: #6D6C80;
  --muted: #8A89A0;
  --line: #E6E6F0;
  --line-2: #D7D7E6;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F9;
  --bg-lav: #F3F2FE;

  --font-h: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Amiri', 'Scheherazade New', serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --sh-1: 0 1px 2px rgba(22,20,57,.05), 0 1px 3px rgba(22,20,57,.06);
  --sh-2: 0 4px 10px -2px rgba(22,20,57,.08), 0 2px 6px -2px rgba(22,20,57,.05);
  --sh-3: 0 18px 40px -12px rgba(22,20,57,.18), 0 6px 14px -6px rgba(22,20,57,.08);
  --sh-brand: 0 12px 28px -10px rgba(87,81,225,.45);
  --header-h: 84px;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.75; color: var(--body);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); color: var(--navy); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 110px; position: relative; }
.section--sm { padding-block: 72px; }
.section--soft { background: var(--bg-soft); }
.section--lav { background: var(--bg-lav); }
.section--dark { background: var(--navy); color: #C9C8DD; }
.section--dark h2, .section--dark h3 { color: #fff; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; margin-bottom: 16px;
  border-radius: var(--r-full); background: var(--primary-100); color: var(--primary);
  font: 500 14px/1.6 var(--font-h); letter-spacing: .01em;
}
.eyebrow i { font-size: 13px; }
.section--dark .eyebrow { background: rgba(255,255,255,.08); color: var(--cyan); }
.h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
.h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 600; letter-spacing: -.005em; }
.h3 { font-size: 22px; }
.lead { font-size: 18px; line-height: 1.75; }
.hl { position: relative; color: var(--primary); white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .42em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 12C40 4 110 2 198 9' stroke='%23FFC224' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.section--dark .hl { color: var(--cyan); }
.ar { font-family: var(--font-ar); direction: rtl; }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 17px; margin: 14px 0 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- Buttons (SkillGro signature offset shadow) ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-sh: var(--shadow-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-full); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1.2 var(--font-h); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 4px 6px 0 0 var(--btn-sh); border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translate(2px, 3px); box-shadow: 2px 3px 0 0 var(--btn-sh); color: var(--btn-fg); }
.btn:active { transform: translate(4px, 6px); box-shadow: 0 0 0 0 var(--btn-sh); }
.btn i { font-size: .95em; transition: transform .2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--navy); --btn-sh: #3D3D3D; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-sh: var(--shadow-blue); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-sh: var(--wa-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-sh: transparent; border-color: var(--line-2); box-shadow: none; }
.btn--outline:hover { border-color: var(--primary); --btn-fg: var(--primary); transform: none; box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: 14px; box-shadow: 3px 4px 0 0 var(--btn-sh); }
.btn--sm:hover { box-shadow: 1px 2px 0 0 var(--btn-sh); transform: translate(2px, 2px); }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-h); color: var(--primary); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px 20px; align-items: center; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-full);
  background: var(--bg-soft); color: var(--navy); font: 500 13px/1.6 var(--font-h); border: 1px solid var(--line);
}
.chip--primary { background: var(--primary-100); color: var(--primary); border-color: transparent; }
.chip--pink { background: #FFE8F3; color: #C2185B; border-color: transparent; }
.chip--green { background: #E3F8EE; color: #0B7A45; border-color: transparent; }
.chip--yellow { background: #FFF4D6; color: #8A5A00; border-color: transparent; }
.tick-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--navy); font-weight: 500; }
.tick-list li::before {
  content: "\f00c"; font: 900 11px/22px "Font Awesome 6 Free"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; text-align: center;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #C9C8DD; font-size: 14px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.topbar__info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info a:hover { color: #fff; }
.topbar__info i { color: var(--cyan); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__note { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.topbar__note i { color: var(--yellow); }
.social { display: flex; gap: 8px; }
.social a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--primary); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-stuck { box-shadow: 0 6px 24px -12px rgba(22,20,57,.18); border-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 52px; height: 52px; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font: 700 22px/1.05 var(--font-h); color: var(--navy); letter-spacing: -.01em; }
.logo__sub { font: 600 11px/1.4 var(--font-h); letter-spacing: .32em; color: var(--sky); text-transform: uppercase; margin-top: 3px; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__sub { color: var(--cyan); }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font: 500 15.5px/1 var(--font-h); color: var(--navy); white-space: nowrap;
}
.nav__link i { font-size: 11px; color: var(--muted); transition: transform .25s; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link.is-active { color: var(--primary); }
.nav__link.is-active { background: var(--primary-100); }
.nav__item:hover > .nav__link i, .nav__item:focus-within > .nav__link i { transform: rotate(180deg); color: var(--primary); }

.dropdown, .mega {
  position: absolute; top: calc(100% + 14px); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
.dropdown::before, .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown,
.nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.dropdown { left: -6px; min-width: 300px; padding: 10px; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--navy); font: 500 14.5px/1.4 var(--font-h); }
.dropdown a i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); font-size: 14px; }
.dropdown a small { display: block; font: 400 12.5px/1.4 var(--font-b); color: var(--muted); margin-top: 2px; }
.dropdown a:hover { background: var(--primary-50); color: var(--primary); }

.header .container { position: relative; }
.nav__item--mega { position: static; }
.mega { left: 50%; width: min(1160px, 94vw); transform: translate(-50%, 8px); padding: 28px; top: calc(100% - 4px); }
.nav__item:hover > .mega, .nav__item:focus-within > .mega { transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 24px; }
.mega__col h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 10px; }
.mega__col h4 a:hover { color: var(--primary); }
.mega__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.mega__col li a { display: block; padding: 4px 0; font-size: 14px; line-height: 1.45; color: var(--body); }
.mega__col li a:hover { color: var(--primary); }
.mega__all { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font: 600 13px var(--font-h); color: var(--primary); }
.mega__foot {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--r); background: var(--bg-lav);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mega__foot p { margin: 0; color: var(--navy); font: 500 15px var(--font-h); }
.mega__foot p span { color: var(--body); font: 400 14px var(--font-b); display: block; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__wa { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E8FBEF; color: var(--wa-dark); font-size: 20px; transition: background .2s; }
.header__wa:hover { background: var(--wa); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-100); color: var(--primary); font-size: 20px; place-items: center; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(6,4,46,.55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__close { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-soft); font-size: 18px; }
.drawer__nav { padding: 10px 12px; flex: 1; }
.drawer__nav > li { border-bottom: 1px solid var(--line); }
.drawer__nav a, .drawer__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 10px; font: 500 16px var(--font-h); color: var(--navy); text-align: left; }
.drawer__toggle i { transition: transform .25s; font-size: 13px; color: var(--muted); }
.drawer__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.drawer__sub { display: none; padding: 0 10px 12px 14px; }
.drawer__sub.is-open { display: block; }
.drawer__sub a { padding: 8px 6px; font: 400 15px var(--font-b); color: var(--body); }
.drawer__sub a:hover { color: var(--primary); }
.drawer__foot { padding: 20px; display: grid; gap: 12px; background: var(--bg-soft); }
.drawer__foot .btn { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-lav) 0%, #fff 100%); padding: 70px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(87,81,225,.22) 1.2px, transparent 1.2px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 60%);
}
.hero__watermark { position: absolute; right: -40px; bottom: -60px; font: 700 300px/1 var(--font-ar); color: rgba(87,81,225,.05); pointer-events: none; user-select: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: var(--r-full); background: #fff; box-shadow: var(--sh-2); font: 500 14px var(--font-h); color: var(--navy); margin-bottom: 22px; }
.hero__kicker b { background: var(--primary); color: #fff; padding: 3px 12px; border-radius: var(--r-full); font-weight: 600; font-size: 13px; }
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 18px; max-width: 590px; margin-bottom: 30px; }
.hero__lead strong { color: var(--navy); font-weight: 600; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14.5px; color: var(--navy); }
.hero__assure span { display: inline-flex; align-items: center; gap: 8px; }
.hero__assure i { color: var(--green); }
.hero__trust { display: flex; align-items: center; gap: 22px; margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img, .avatars span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin-left: -12px; background: var(--primary-100); }
.avatars > :first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; font: 600 12px var(--font-h); color: #fff; background: var(--primary); }
.hero__trust-text strong { display: block; font: 700 20px/1.2 var(--font-h); color: var(--navy); }
.hero__trust-text span { font-size: 14px; }
.tp-badge { display: flex; align-items: center; gap: 12px; }
.tp-badge .tp-stars { display: flex; }
.tp-badge strong { font: 700 20px/1 var(--font-h); color: var(--navy); display: block; }
.tp-badge__txt span { display: block; font-size: 13px; }

.hero__media { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero__blob { position: absolute; width: 470px; height: 470px; border-radius: 50%; background: var(--logo-grad); opacity: .95; }
.hero__blob::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed rgba(87,81,225,.35); animation: spin 60s linear infinite; }
.hero__img { position: relative; width: min(520px, 100%); z-index: 1; filter: drop-shadow(0 30px 40px rgba(22,20,57,.18)); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; box-shadow: var(--sh-3); font: 600 14px/1.3 var(--font-h); color: var(--navy); animation: bob 5s ease-in-out infinite;
}
.float-card small { display: block; font: 400 12.5px var(--font-b); color: var(--muted); }
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--primary); }
.float-card--1 { top: 40px; left: -10px; }
.float-card--2 { bottom: 70px; right: -14px; animation-delay: -2.5s; }
.float-card--3 { bottom: 10px; left: 30px; animation-delay: -1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats strip ---------- */
.stats-strip { margin-top: -46px; position: relative; z-index: 3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 30px 28px; display: flex; gap: 16px; align-items: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); font-size: 22px; flex-shrink: 0; }
.stat__num { font: 700 30px/1.1 var(--font-h); color: var(--navy); }
.stat__label { font-size: 14.5px; line-height: 1.4; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--bg-lav); padding: 72px 0 80px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: radial-gradient(rgba(87,81,225,.2) 1.2px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.page-hero__shape { position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero__shape--1 { width: 340px; height: 340px; right: -80px; top: -120px; background: var(--logo-grad); opacity: .16; }
.page-hero__shape--2 { width: 120px; height: 120px; right: 22%; bottom: -50px; border: 18px solid rgba(87,81,225,.1); }
.page-hero__ar { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font: 700 150px/1 var(--font-ar); color: rgba(87,81,225,.07); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 14px; max-width: 820px; }
.page-hero p { max-width: 680px; font-size: 17.5px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px var(--font-h); margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--navy); }
.crumbs a:hover { color: var(--primary); }
.crumbs i { font-size: 10px; }
.crumbs span[aria-current] { color: var(--primary); }
.page-hero .btn-row { margin-top: 28px; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }

/* ---------- About block ---------- */
.about-media { position: relative; }
.about-media__img { border-radius: 50%; position: relative; z-index: 1; }
.about-media__badge {
  position: absolute; z-index: 2; left: 0; bottom: 40px; background: var(--primary); color: #fff; border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: 6px 8px 0 0 var(--shadow-blue); display: flex; align-items: center; gap: 14px;
}
.about-media__badge strong { font: 700 40px/1 var(--font-h); }
.about-media__badge span { font: 500 14px/1.35 var(--font-h); }
.about-media__ring { position: absolute; width: 140px; height: 140px; right: 10px; top: 0; border-radius: 50%; background: radial-gradient(var(--yellow) 2px, transparent 2.5px) 0 0 / 14px 14px; opacity: .8; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.feature {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.feature__ico { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 21px; color: var(--primary); background: var(--primary-100); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.65; }

/* ---------- Why cards ---------- */
.why-card {
  position: relative; padding: 34px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.why-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: var(--primary-100); opacity: 0; transition: opacity .3s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.why-card:hover::after { opacity: 1; }
.why-card__num { position: absolute; right: 24px; top: 18px; font: 700 44px/1 var(--font-h); color: var(--bg-lav); }
.why-card__ico { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--primary); box-shadow: var(--sh-brand); margin-bottom: 22px; }
.why-card h3 { position: relative; z-index: 1; font-size: 19px; margin-bottom: 10px; }
.why-card p { position: relative; z-index: 1; margin: 0; font-size: 15px; }
.section--dark .why-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.section--dark .why-card p { color: #B9B8D0; }
.section--dark .why-card__num { color: rgba(255,255,255,.06); }
.section--dark .why-card::after { background: rgba(87,81,225,.25); }

/* ---------- Category cards ---------- */
.cat-card {
  --tint: var(--primary);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden;
}
.cat-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card__ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 25px; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, white); transition: background .3s, color .3s; }
.cat-card:hover .cat-card__ico { background: var(--tint); color: #fff; }
.cat-card h3 { font-size: 18px; margin: 0; }
.cat-card p { font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }
.cat-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 600 14px var(--font-h); color: var(--navy); }
.cat-card__foot i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); transition: background .2s, color .2s, transform .2s; font-size: 13px; }
.cat-card:hover .cat-card__foot i { background: var(--tint); color: #fff; transform: rotate(-45deg); }

/* ---------- Course cards ---------- */
.course-card {
  --tint: var(--primary);
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.course-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-lav); margin: 12px 12px 0; border-radius: 14px; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__cat { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--r-full); background: #fff; color: var(--tint); font: 600 12.5px/1.4 var(--font-h); box-shadow: var(--sh-2); display: inline-flex; gap: 6px; align-items: center; }
.course-card__body { padding: 20px 22px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta i { color: var(--primary); }
.course-card h3 { font-size: 18px; line-height: 1.4; margin: 0; }
.course-card h3 a:hover { color: var(--primary); }
.course-card p { font-size: 14.5px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 22px; margin-top: auto; }
.course-card__foot .link-arrow { font-size: 14px; }
.course-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-card__tags .chip { font-size: 12px; padding: 2px 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 40px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-200) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__ico { position: relative; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--primary); background: #fff; border: 2px solid var(--primary-200); box-shadow: 0 0 0 8px var(--bg-soft); transition: background .3s, color .3s; }
.step:hover .step__ico { background: var(--primary); color: #fff; }
.step__ico::after { counter-increment: step; content: counter(step); position: absolute; right: -4px; top: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 700 13px/28px var(--font-h); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }
.section--lav .step__ico { box-shadow: 0 0 0 8px var(--bg-lav); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--primary); color: #E9E8FF; padding: 56px 60px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band::after { content: "تبارك"; position: absolute; right: 30%; bottom: -60px; font: 700 180px/1 var(--font-ar); color: rgba(255,255,255,.06); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 17px; max-width: 640px; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band--dark { background: var(--navy); }

/* ---------- Video cards ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tab { padding: 10px 20px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line); font: 500 14.5px var(--font-h); color: var(--navy); transition: all .2s; }
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--sh-brand); }
.tab .count { margin-left: 6px; opacity: .65; font-size: 12.5px; }
.video-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.video-card__thumb { position: relative; display: block; padding: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); width: 100%; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s var(--ease), opacity .3s; }
.video-card:hover .video-card__thumb img { transform: scale(1.06); opacity: .75; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 10px rgba(255,255,255,.25); transition: transform .3s; }
.play i { margin-left: 4px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-card__body { padding: 18px 22px 22px; }
.video-card__body h3 { font-size: 16.5px; line-height: 1.45; margin: 10px 0 6px; }
.video-card__body p { font-size: 14px; margin: 0; line-height: 1.6; }
[data-filter-item].is-hidden, [data-teacher].is-hidden { display: none !important; }
@media (max-width: 1199px) { .archive .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .archive .course-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews / testimonials ---------- */
.reviews-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.reviews-layout > *, .split > *, .archive > *, .course-layout > *, .post-layout > *, .profile > *, .faq-layout > * { min-width: 0; }
.tp-summary { border-radius: var(--r-xl); background: var(--navy); color: #C9C8DD; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.tp-summary::after { content: "\f005"; font: 900 220px/1 "Font Awesome 6 Free"; position: absolute; right: -50px; bottom: -60px; color: rgba(255,255,255,.04); }
.tp-summary__score { font: 700 64px/1 var(--font-h); color: #fff; }
.tp-summary__score small { font-size: 22px; color: #9C9BB8; }
.tp-stars { display: flex; gap: 4px; }
.tp-stars i { width: 28px; height: 28px; display: grid; place-items: center; background: #00B67A; color: #fff; font-size: 14px; }
.tp-stars--sm i { width: 20px; height: 20px; font-size: 11px; }
.tp-summary h3 { color: #fff; font-size: 22px; margin: 0; }
.tp-logo { display: inline-flex; align-items: center; gap: 8px; font: 700 18px var(--font-h); color: #fff; }
.tp-logo i { color: #00B67A; }
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel--2 .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: grid; place-items: center; transition: all .2s; }
.carousel__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.review-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); height: 100%; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-card__date { font-size: 13px; color: var(--muted); }
.review-card p { margin: 0; font-size: 15px; line-height: 1.7; color: #4D4C63; flex: 1; }
.person { display: flex; align-items: center; gap: 12px; }
.person__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--font-h); color: #fff; background: var(--primary); flex-shrink: 0; }
.person strong { display: block; font: 600 15.5px/1.3 var(--font-h); color: var(--navy); }
.person span { font-size: 13.5px; color: var(--muted); }
.review-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-card__foot a { font: 600 13px var(--font-h); color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.quote-card { position: relative; padding: 34px 30px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote-card__mark { position: absolute; right: 26px; top: 20px; font-size: 40px; color: var(--primary-100); }
.quote-card .stars { color: var(--yellow); font-size: 14px; letter-spacing: 2px; }
.quote-card p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--navy); flex: 1; }
.quote-card .chip { align-self: flex-start; }

/* Stories (before / after) */
.story { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); overflow: hidden; height: 100%; }
.story__head { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-lav); }
.story__ba { padding: 24px 26px; display: grid; gap: 14px; position: relative; }
.story__box { padding: 16px 18px; border-radius: 14px; }
.story__box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.story__box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--navy); }
.story__box--before { background: #FFF4F2; }
.story__box--before h4 { color: #D14343; }
.story__box--after { background: #EAFBF2; }
.story__box--after h4 { color: #0B7A45; }
.story__time { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: var(--navy); color: #fff; font: 600 13px var(--font-h); }
.story__quote { padding: 0 26px 26px; font-style: italic; color: var(--body); font-size: 15px; margin: 0; }

/* ---------- Teachers ---------- */
.teacher-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.teacher-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(160deg, var(--primary-100), #fff); margin: 12px 12px 0; border-radius: 16px; }
.teacher-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.teacher-card:hover .teacher-card__media img { transform: scale(1.05); }
.teacher-card__badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--r-full); background: #fff; font: 600 12px var(--font-h); color: #C2185B; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--sh-2); }
.teacher-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.teacher-card h3 { font-size: 17px; margin: 0; }
.teacher-card h3 a:hover { color: var(--primary); }
.teacher-card__role { font-size: 14px; line-height: 1.5; color: var(--primary); font-weight: 500; margin: 0; }
.teacher-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.teacher-card__tags .chip { font-size: 12px; padding: 2px 10px; }
.teacher-card__foot { margin-top: auto; padding-top: 14px; }

/* ---------- Countries ---------- */
.countries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.country { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.country:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.country img { width: 40px; height: 28px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.country strong { display: block; font: 600 15px/1.3 var(--font-h); color: var(--navy); }
.country span { font-size: 13px; color: var(--muted); }
.country--more { background: var(--primary); border-color: var(--primary); color: #fff; }
.country--more strong, .country--more span { color: #fff; }
.country--more .fc { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 18px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; height: 100%; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.post-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; margin: 12px 12px 0; border-radius: 14px; background: var(--bg-lav); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__media .chip { position: absolute; left: 12px; top: 12px; background: #fff; border: 0; box-shadow: var(--sh-2); }
.post-card__body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta i { color: var(--primary); }
.post-card h3 { font-size: 18px; line-height: 1.45; margin: 0; }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: 14.5px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14px; }
.post-card--featured { display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; margin: 12px; }
.post-card--featured .post-card__body { padding: 36px 36px 36px 20px; justify-content: center; }
.post-card--featured h3 { font-size: 26px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.help-card { margin-top: 30px; border-radius: var(--r-lg); padding: 26px; background: var(--navy); color: #C9C8DD; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.help-card::after { content: "\f232"; font: 400 160px/1 "Font Awesome 6 Brands"; position: absolute; right: -24px; bottom: -40px; color: rgba(255,255,255,.05); }
.help-card h3 { color: #fff; font-size: 20px; margin: 0; }
.help-card p { margin: 0; }
.help-card .btn { align-self: flex-start; position: relative; z-index: 1; }
.faq { display: grid; gap: 14px; }
.faq details { border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--primary-200); box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 600 16.5px/1.45 var(--font-h); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font: 900 13px "Font Awesome 6 Free"; content: "\f067"; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { content: "\f068"; background: var(--primary); color: #fff; }
.faq details[open] summary { color: var(--primary); }
.faq__a { padding: 0 22px 22px; margin-top: -4px; font-size: 15.5px; }
.faq__a p { margin: 0; }

/* ---------- Booking / Forms ---------- */
.book { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.book__aside { background: var(--navy); color: #C9C8DD; padding: 48px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; }
.book__aside::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -140px; bottom: -140px; background: var(--logo-grad); opacity: .18; }
.book__aside h2 { color: #fff; font-size: 30px; margin: 0; }
.book__aside p { margin: 0; }
.contact-list { display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background .2s; }
a.contact-item:hover { background: rgba(255,255,255,.1); }
.contact-item__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(86,243,255,.12); color: var(--cyan); flex-shrink: 0; }
.contact-item__ico--wa { background: rgba(37,211,102,.15); color: var(--wa); }
.contact-item small { display: block; font-size: 12.5px; color: #9C9BB8; }
.contact-item strong { font: 600 15.5px var(--font-h); color: #fff; }
.book__assure { display: flex; flex-wrap: wrap; gap: 10px 20px; position: relative; z-index: 1; font-size: 14px; color: #fff; margin-top: auto; }
.book__assure span { display: inline-flex; align-items: center; gap: 8px; }
.book__assure i { color: var(--green); }
.book__form { padding: 44px 44px 40px; }
.form-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.form-progress__step { display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-h); color: var(--muted); }
.form-progress__step b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 13px; }
.form-progress__step.is-active { color: var(--navy); }
.form-progress__step.is-active b { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-progress__step.is-done b { background: var(--green); color: #fff; border-color: var(--green); }
.form-progress__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.form-progress__bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s var(--ease); }
.form-step { display: none; }
.form-step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px var(--font-h); color: var(--navy); }
.field label .req { color: #E11B24; }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.input, .select, .textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; color: var(--navy); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236D6C80' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(87,81,225,.12); }
.input::placeholder, .textarea::placeholder { color: #A8A7BC; }
.field__hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: flex; gap: 6px; align-items: flex-start; }
.field__hint i { color: var(--wa-dark); margin-top: 2px; }
.field.has-error .input, .field.has-error .select { border-color: #E11B24; box-shadow: 0 0 0 4px rgba(225,27,36,.08); }
.field__error { display: none; font-size: 12.5px; color: #E11B24; }
.field.has-error .field__error { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); font: 500 14px var(--font-h); color: var(--navy); cursor: pointer; transition: all .2s; }
.choice span:hover { border-color: var(--primary); }
.choice input:checked + span { background: var(--primary-100); border-color: var(--primary); color: var(--primary); }
.choice input:focus-visible + span { outline: 3px solid rgba(87,81,225,.4); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.form-back { font: 600 14px var(--font-h); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.form-back:hover { color: var(--navy); }
.form-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 18px 0 0; }
.form-note i { color: var(--green); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-active { display: block; animation: fadeUp .4s var(--ease); }
.form-success__ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 34px; color: #fff; background: var(--green); box-shadow: 0 0 0 12px #E3F8EE; }
.form-success h3 { font-size: 24px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6,4,46,.6); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); color: var(--navy); font-size: 17px; transition: background .2s; }
.modal__close:hover { background: var(--primary-100); color: var(--primary); }
.modal__head { padding: 36px 40px 0; }
.modal__head h2 { font-size: 26px; margin-bottom: 6px; }
.modal__head p { margin: 0; font-size: 15px; }
.modal .book__form { padding: 26px 40px 36px; }
.modal--media .modal__dialog { width: min(980px, 100%); background: #000; border-radius: var(--r-lg); overflow: hidden; }
.modal--media .modal__close { background: rgba(255,255,255,.15); color: #fff; }
.modal__media { aspect-ratio: 16/9; width: 100%; }
.modal__media iframe { width: 100%; height: 100%; border: 0; }
.modal--image .modal__dialog { width: auto; max-width: min(900px, 100%); background: transparent; box-shadow: none; }
.modal--image .modal__dialog img { max-height: calc(100vh - 60px); border-radius: var(--r); margin: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #A9A8C4; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.footer .container { position: relative; }
.footer__cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 6px; }
.footer__cta p { margin: 0; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding: 64px 0 48px; }
.footer__brand p { margin: 20px 0 22px; font-size: 15px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer__links li { margin-bottom: 11px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; transition: color .2s, transform .2s; }
.footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .7; }
.footer__links a:hover { color: #fff; transform: translateX(3px); }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; align-items: flex-start; }
.footer__contact i { color: var(--cyan); margin-top: 6px; width: 16px; }
.footer__contact a:hover { color: #fff; }
.footer__contact small { display: block; font-size: 12.5px; color: #7E7D9C; }
.footer .social a { width: 38px; height: 38px; font-size: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Floating actions ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 24px -6px rgba(18,140,75,.6); transition: transform .2s; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.2s ease-out infinite; }
.fab-wa:hover { transform: scale(1.07); color: #fff; }
.fab-wa__tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--navy); font: 600 13.5px var(--font-h); padding: 8px 14px; border-radius: 10px; box-shadow: var(--sh-3); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-wa:hover .fab-wa__tip { opacity: 1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); }
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .jr-map__line { stroke-dashoffset: 0; }
  .jr-map__node { opacity: 1; }
}

/* ==========================================================================
   Page-specific
   ========================================================================== */

/* About */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value { position: relative; padding: 30px 22px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.value__letter { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; font: 700 34px var(--font-h); color: #fff; background: var(--primary); box-shadow: 5px 6px 0 0 var(--shadow-blue); transform: rotate(-4deg); transition: transform .3s; }
.value:nth-child(2) .value__letter { background: var(--sky); }
.value:nth-child(3) .value__letter { background: #8C3FF3; }
.value:nth-child(4) .value__letter { background: #12A87E; }
.value:nth-child(5) .value__letter { background: #F59E0B; }
.value:hover .value__letter { transform: rotate(0); }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.spark-word { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.spark-word b { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--primary); color: #fff; font-size: 20px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .25s, transform .25s; }
.offer:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.offer__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(86,243,255,.12); color: var(--cyan); font-size: 19px; flex-shrink: 0; }
.offer h3 { font-size: 16.5px; margin-bottom: 4px; color: #fff; }
.offer p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #B9B8D0; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--primary-200); }
.tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--primary); color: var(--primary); font-size: 17px; position: relative; z-index: 1; }
.tl-item h3 { font-size: 17px; margin: 10px 0 4px; }
.tl-item p { margin: 0; font-size: 15px; }
.accred { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 34px 40px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.accred__seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff; background: var(--logo-grad); box-shadow: 0 0 0 10px var(--primary-100); }
.accred h3 { font-size: 22px; margin-bottom: 6px; }
.accred p { margin: 0; }

/* Courses archive */
.archive { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.filter-box { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.filter-box h4 { font-size: 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.filter-box h4 button { font: 500 13px var(--font-b); color: var(--primary); }
.search { position: relative; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 44px; }
.check { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--navy); transition: background .2s; }
.check:hover { background: var(--bg-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.check .count { margin-left: auto; font-size: 12.5px; padding: 1px 9px; border-radius: var(--r-full); background: var(--bg-soft); color: var(--muted); }
.check__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.archive__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.archive__bar p { margin: 0; color: var(--navy); font-weight: 500; }
.archive__bar .select { width: auto; min-width: 200px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters .chip button { margin-left: 2px; color: inherit; opacity: .7; }
.empty { display: none; text-align: center; padding: 60px 20px; border-radius: var(--r-lg); border: 2px dashed var(--line-2); }
.empty.is-visible { display: block; }
.empty i { font-size: 40px; color: var(--primary-200); margin-bottom: 14px; }
.filter-toggle { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* Category landing */
.cat-hero__ico { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 32px; color: #fff; margin-bottom: 20px; box-shadow: 5px 6px 0 0 var(--shadow-blue); }
.cat-nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat-nav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line); font: 500 14px var(--font-h); color: var(--navy); transition: all .2s; }
.cat-nav a:hover { border-color: var(--primary); color: var(--primary); }
.cat-nav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Course single */
.course-hero { background: var(--navy); color: #C9C8DD; padding: 60px 0 0; position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.course-hero .container { position: relative; }
.course-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.course-hero .crumbs, .course-hero .crumbs a { color: #A9A8C4; }
.course-hero .crumbs span[aria-current] { color: var(--cyan); }
.course-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); margin-bottom: 18px; }
.course-hero__lead { font-size: 17.5px; max-width: 640px; margin-bottom: 26px; }
.course-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.course-hero__chips .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.course-hero__chips .chip i { color: var(--yellow); }
.course-hero__assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; color: #fff; }
.course-hero__assure span { display: inline-flex; gap: 8px; align-items: center; }
.course-hero__assure i { color: var(--green); }
.course-hero__media { position: relative; align-self: end; }
.course-hero__media img { width: 100%; max-height: 460px; object-fit: contain; object-position: bottom; position: relative; z-index: 1; }
.course-hero__media::before { content: ""; position: absolute; left: 9%; right: 9%; bottom: 4%; aspect-ratio: 1; border-radius: 50%; background: var(--logo-grad); opacity: .9; }
.maqraa-hero .crumbs, .maqraa-hero .crumbs a { color: #A9A8C4; }
.maqraa-hero .crumbs span[aria-current] { color: var(--cyan); }
.maqraa-hero .ar-title, .journey__surah { text-align: left; }
.course-hero__stats { position: relative; z-index: 2; margin-top: 50px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.course-hero__stats div { padding: 22px 20px; text-align: center; border-right: 1px solid var(--line); }
.course-hero__stats div:last-child { border-right: 0; }
.course-hero__stats strong { display: block; font: 700 24px/1.2 var(--font-h); color: var(--navy); }
.course-hero__stats span { font-size: 13.5px; color: var(--body); }
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.course-main > section { scroll-margin-top: calc(var(--header-h) + 80px); }
.course-main > section + section { margin-top: 70px; }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 16px; font: 500 14.5px var(--font-h); color: var(--body); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { color: var(--primary); border-color: var(--primary); }
.prose h2 { font-size: clamp(24px, 2.5vw, 32px); margin-bottom: 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; }
.prose p { font-size: 16.5px; line-height: 1.8; }
.prose ul:not(.tick-list) { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.prose ul:not(.tick-list) li { margin-bottom: 8px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy); }
.prose img { border-radius: var(--r); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 15px; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font: 600 14px var(--font-h); }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--navy); }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.track { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.track:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.track__num { font: 700 30px/1 var(--font-h); color: var(--primary-200); flex-shrink: 0; min-width: 44px; }
.track h3 { font-size: 17px; margin: 0 0 6px; }
.track p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.outcomes { display: grid; gap: 14px; margin-top: 26px; }
.outcome { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg-soft); }
.outcome__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 16px; }
.outcome h3 { font-size: 17px; margin: 6px 0 6px; }
.outcome p { margin: 0 0 6px; font-size: 15px; line-height: 1.65; }
.outcome p:last-child { margin: 0; }
.trial-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: var(--r-xl); background: var(--bg-lav); border: 2px dashed var(--primary-200); flex-wrap: wrap; }
.trial-box__ico { width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.trial-box h3 { margin: 0 0 4px; font-size: 21px; }
.trial-box p { margin: 0; }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 76px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.sidebar-card__media { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.sidebar-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-card__body { padding: 24px; }
.sidebar-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-from { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price-from strong { font: 700 30px var(--font-h); color: var(--navy); }
.price-from span { font-size: 14px; }
.facts { display: grid; margin-bottom: 22px; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts li:last-child { border-bottom: 0; }
.facts i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); font-size: 13px; flex-shrink: 0; }
.facts span { color: var(--body); }
.facts strong { margin-left: auto; font: 600 14px var(--font-h); color: var(--navy); text-align: right; }
.sidebar-card .btn { width: 100%; }
.sidebar-card .btn + .btn { margin-top: 14px; }
.sidebar-card__note { font-size: 13px; text-align: center; margin: 14px 0 0; color: var(--muted); }
.related-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.related-cats .chip { padding: 8px 14px; background: #fff; transition: border-color .2s, color .2s; }
.related-cats .chip:hover { border-color: var(--primary); color: var(--primary); }
.compact-videos .video-card__body { padding: 14px 16px 18px; }
.compact-videos .video-card__body h3 { font-size: 15px; }
.compact-videos .video-card__body p { display: none; }
.compact-videos .play { width: 52px; height: 52px; font-size: 16px; }
.course-main .eyebrow { margin-bottom: 12px; }
.course-main > section > p { font-size: 16.5px; }

/* Teachers page */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.toolbar .search { flex: 1; min-width: 240px; max-width: 420px; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-full); background: var(--bg-soft); gap: 4px; flex-wrap: wrap; }
.seg button { padding: 9px 18px; border-radius: var(--r-full); font: 500 14px var(--font-h); color: var(--body); transition: all .2s; }
.seg button.is-active { background: #fff; color: var(--primary); box-shadow: var(--sh-2); }

/* Teacher profile */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: start; }
.profile__card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.profile__photo { aspect-ratio: 1; background: linear-gradient(160deg, var(--primary-100), #fff); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__card-body { padding: 26px; }
.profile__card-body h1 { font-size: 24px; margin-bottom: 4px; }
.profile__role { color: var(--primary); font-weight: 500; margin-bottom: 18px; }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 36px; }
.cred { padding: 20px; border-radius: var(--r-lg); background: var(--bg-lav); }
.cred i { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
.cred strong { display: block; font: 600 16px/1.35 var(--font-h); color: var(--navy); }
.cred span { font-size: 13.5px; }

/* Fees */
.pricing-toggle { display: inline-flex; padding: 6px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); gap: 4px; }
.pricing-toggle button { padding: 12px 26px; border-radius: var(--r-full); font: 600 15px var(--font-h); color: var(--body); transition: all .25s; }
.pricing-toggle button.is-active { background: var(--primary); color: #fff; box-shadow: var(--sh-brand); }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 20px 26px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--primary-200); }
.plan__freq { font: 700 46px/1 var(--font-h); color: var(--navy); }
.plan__freq-label { font: 500 14px var(--font-h); color: var(--body); margin: 6px 0 20px; }
.plan__price { font: 700 34px/1 var(--font-h); color: var(--primary); }
.plan__price sup { font-size: 18px; vertical-align: top; position: relative; top: 4px; margin-right: 2px; }
.plan__per { font-size: 13.5px; margin: 6px 0 4px; }
.plan__dur { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--dark { background: var(--navy); border-color: var(--navy); }
.plan--dark .plan__freq, .plan--dark .plan__price { color: #fff; }
.plan--dark .plan__freq-label, .plan--dark .plan__per, .plan--dark .plan__dur { color: #B9B8D0; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.calc__controls { padding: 40px; display: grid; gap: 28px; }
.calc__controls h3 { font-size: 16px; margin-bottom: 12px; }
.calc__result { background: var(--primary); color: #E9E8FF; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc__result::after { content: ""; position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 20px 20px; }
.calc__result > * { position: relative; z-index: 1; }
.calc__total { font: 700 64px/1 var(--font-h); color: #fff; margin: 10px 0; }
.calc__total small { font-size: 20px; font-weight: 500; color: #CFCDFF; }
.calc__summary { font-size: 15.5px; margin-bottom: 26px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.price-table th, .price-table td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font: 600 15px var(--font-h); }
.price-table tbody th { text-align: left; font: 600 15px var(--font-h); color: var(--navy); }
.price-table td { font: 600 17px var(--font-h); color: var(--navy); }
.price-table td small { display: block; font: 400 12.5px var(--font-b); color: var(--muted); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td, .price-table tbody tr:hover th { background: var(--primary-50); }
.price-table .is-col { background: var(--primary-50); color: var(--primary); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.included li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font: 500 15px var(--font-h); color: var(--navy); }
.included i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #E3F8EE; color: var(--green); flex-shrink: 0; }

/* Maqra'a */
.maqraa-hero { background: var(--navy); color: #C9C8DD; position: relative; overflow: hidden; padding: 90px 0 100px; }
.maqraa-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(87,81,225,.45), transparent 50%), radial-gradient(circle at 10% 90%, rgba(86,243,255,.18), transparent 45%); }
.maqraa-hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.maqraa-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; margin-bottom: 10px; }
.maqraa-hero .tagline { font: 600 18px var(--font-h); color: var(--cyan); letter-spacing: .04em; margin-bottom: 20px; }
.maqraa-hero .ar-title { font: 700 44px/1.3 var(--font-ar); color: rgba(255,255,255,.9); margin-bottom: 4px; }
.when { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.when div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font: 500 15px var(--font-h); }
.when i { color: var(--yellow); font-size: 18px; width: 22px; text-align: center; }
.journey { border-radius: var(--r-xl); padding: 34px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.journey__label { font: 600 13px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.journey__surah { font: 700 54px/1.2 var(--font-ar); color: #fff; margin: 14px 0 0; }
.journey__en { font: 600 20px var(--font-h); color: #fff; }
.journey__bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); margin: 24px 0 10px; overflow: hidden; }
.journey__bar span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--cyan), var(--yellow)); }
.journey__meta { display: flex; justify-content: space-between; font-size: 13.5px; }
.join-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: js; }
.join-step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.join-step::before { counter-increment: js; content: "0" counter(js); font: 700 40px/1 var(--font-h); color: var(--primary-100); position: absolute; right: 20px; top: 18px; }
.join-step i { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.join-step h3 { font-size: 17px; margin-bottom: 6px; }
.join-step p { margin: 0; font-size: 14.5px; }
.quote-banner { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-banner blockquote { margin: 0 0 18px; font: 500 clamp(22px, 2.6vw, 30px)/1.5 var(--font-h); color: var(--navy); }
.sheikh { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.sheikh__img { border-radius: var(--r-xl); overflow: hidden; position: relative; box-shadow: 10px 12px 0 0 var(--primary); }
.sheikh__img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }

/* Certifications */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery__item { position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-lav); border: 1px solid var(--line); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item::after { content: "\f00e"; font: 900 18px "Font Awesome 6 Free"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(22,20,57,.45); opacity: 0; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }

/* Blog single */
.post-hero { padding: 60px 0 0; background: var(--bg-lav); }
.post-hero h1 { font-size: clamp(30px, 3.6vw, 46px); max-width: 900px; margin-bottom: 18px; }
.post-hero__cover { margin-top: 40px; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; max-height: 460px; }
.post-hero__cover img { width: 100%; height: 460px; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 260px 1fr 300px; gap: 44px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--body); transition: all .2s; }
.toc a:hover, .toc a.is-active { color: var(--primary); border-color: var(--primary); }
.toc a.sub { padding-left: 26px; font-size: 13.5px; }
.callout { margin: 30px 0; padding: 26px 28px; border-radius: var(--r-lg); background: var(--navy); color: #C9C8DD; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.callout h4 { color: #fff; font-size: 19px; margin: 0 0 4px; }
.callout p { margin: 0 !important; font-size: 15px !important; color: #C9C8DD; }
.note { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--primary); background: var(--primary-50); border-radius: 0 var(--r) var(--r) 0; }
.note p { margin: 0 !important; }
.author-box { display: flex; gap: 20px; padding: 26px; border-radius: var(--r-lg); background: var(--bg-soft); margin-top: 40px; align-items: center; }
.author-box .person__av { width: 64px; height: 64px; font-size: 20px; }
.widget { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); margin-bottom: 22px; }
.widget h4 { font-size: 17px; margin-bottom: 16px; }
.mini-post { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.mini-post:last-child { margin-bottom: 0; }
.mini-post img { width: 76px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini-post a { font: 600 14px/1.4 var(--font-h); color: var(--navy); }
.mini-post a:hover { color: var(--primary); }
.mini-post span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); transition: all .2s; }
.share a:hover { background: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 600 15px var(--font-h); color: var(--navy); background: #fff; }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 2; }
.contact-card { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 10px; transition: transform .25s; }
a.contact-card:hover { transform: translateY(-4px); }
.contact-card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--primary-100); color: var(--primary); }
.contact-card__ico--wa { background: #E3F8EE; color: var(--wa-dark); }
.contact-card h3 { font-size: 17px; margin: 6px 0 0; }
.contact-card p { margin: 0; font-size: 14.5px; }
.contact-card strong { font: 600 16px var(--font-h); color: var(--navy); word-break: break-word; }

/* Legal */
.legal { max-width: 860px; margin: 0 auto; }
.legal .prose h2 { font-size: 24px; margin-top: 40px; padding-top: 6px; }
.placeholder { background: #FFF4D6; color: #8A5A00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ---------- Learner's journey (playlist-videos) ---------- */
.jr-hero { position: relative; overflow: hidden; background: var(--navy); color: #C9C8DD; padding: 64px 0 80px; }
.jr-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(87,81,225,.5), transparent 50%), radial-gradient(circle at 5% 95%, rgba(86,243,255,.16), transparent 45%); }
.jr-hero::after { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.jr-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.jr-hero .crumbs, .jr-hero .crumbs a { color: #A9A8C4; }
.jr-hero .crumbs span[aria-current] { color: var(--cyan); }
.jr-hero .eyebrow { background: rgba(255,255,255,.08); color: var(--cyan); }
.jr-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.jr-hero h1 .hl { color: var(--cyan); }
.jr-hero__lead { font-size: 18px; max-width: 600px; margin-bottom: 30px; }
.jr-hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; max-width: 620px; }
.jr-hero__stats div { padding: 14px 14px 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.jr-hero__stats strong { display: block; font: 700 28px/1.1 var(--font-h); color: #fff; }
.jr-hero__stats span { font-size: 13px; line-height: 1.35; display: block; margin-top: 4px; }
.jr-hero__map { display: grid; place-items: center; }
.jr-map { width: 100%; max-width: 520px; overflow: visible; }
.jr-map__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 18; stroke-linecap: round; }
.jr-map__line { fill: none; stroke: url(#jr-grad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: jrDraw 2.4s .2s var(--ease) forwards; }
.jr-map__node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: jrPop .6s var(--d, .4s) var(--ease) forwards; cursor: pointer; }
.jr-map__halo { opacity: .22; transition: opacity .25s; }
.jr-map__node:hover .jr-map__halo, .jr-map__node:focus .jr-map__halo { opacity: .5; }
.jr-map__num { fill: #fff; font: 700 21px var(--font-h); }
.jr-map__kicker { fill: #9C9BB8; font: 600 11px var(--font-h); letter-spacing: .16em; }
.jr-map__label { fill: #fff; font: 600 19px var(--font-h); }
@keyframes jrDraw { to { stroke-dashoffset: 0; } }
@keyframes jrPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.jr-steps { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -16px rgba(22,20,57,.25); }
.jr-steps ol { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.jr-steps ol::-webkit-scrollbar { display: none; }
.jr-steps li { flex: 1; min-width: max-content; }
.jr-steps a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; border-bottom: 3px solid transparent; font: 500 14.5px var(--font-h); color: var(--body); transition: color .2s, border-color .2s; }
.jr-steps__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-h); color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, white); transition: all .2s; flex-shrink: 0; }
.jr-steps a:hover, .jr-steps a.is-active { color: var(--navy); border-color: var(--tint); }
.jr-steps a.is-active .jr-steps__n { background: var(--tint); color: #fff; }

.jr-stage { position: relative; padding: 100px 0 40px; scroll-margin-top: calc(var(--header-h) + 50px); }
.jr-stage--alt { background: var(--bg-soft); }
.jr-stage__grid { display: grid; grid-template-columns: 410px 1fr; gap: 64px; align-items: start; }
.jr-stage__grid > * { min-width: 0; }
.jr-stage__intro { position: sticky; top: calc(var(--header-h) + 90px); }
.jr-stage__num { position: absolute; right: 0; top: -36px; font: 800 130px/1 var(--font-h); color: color-mix(in srgb, var(--tint) 13%, transparent); pointer-events: none; user-select: none; }
.jr-stage__ico { position: relative; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--tint); box-shadow: 5px 6px 0 0 var(--navy); }
.jr-stage__kicker { display: block; margin: 22px 0 8px; font: 600 13px var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--tint); }
.jr-stage__intro h2 { position: relative; margin-bottom: 14px; }
.jr-stage__intro h2 span { color: var(--tint); }
.jr-stage__intro > p { font-size: 16.5px; margin-bottom: 22px; }
.jr-stage .tick-list li::before { background: var(--tint); }
.jr-stage__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.jr-stage__meta .link-arrow { font-size: 14px; }
.jr-feature { display: block; width: 100%; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); transition: transform .3s var(--ease), box-shadow .3s; }
.jr-feature:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.jr-feature__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.jr-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.jr-feature:hover .jr-feature__media img { transform: scale(1.04); }
.jr-feature .play { width: 76px; height: 76px; font-size: 22px; color: var(--tint); }
.jr-feature__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: var(--tint); color: #fff; font: 600 13px var(--font-h); box-shadow: var(--sh-2); }
.jr-feature__t { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px 20px; font: 600 18px/1.45 var(--font-h); color: var(--navy); }
.jr-clip__idx { flex-shrink: 0; padding: 2px 9px; border-radius: 8px; font: 700 12.5px/1.6 var(--font-h); color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, white); align-self: flex-start; }
.jr-feature__t .jr-clip__idx { margin-top: 3px; }
.jr-clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.jr-clips:not(.is-expanded) > .jr-clip:nth-child(n+5) { display: none; }
.jr-clip { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; padding: 10px; text-align: left; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.jr-clip:hover { border-color: var(--tint); box-shadow: var(--sh-2); transform: translateY(-2px); }
.jr-clip__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy); }
.jr-clip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.jr-clip__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--tint, var(--primary)); display: grid; place-items: center; font-size: 11px; transition: transform .2s; }
.jr-clip__play i { margin-left: 2px; }
.jr-clip:hover .jr-clip__play, .jr-chapter__card:hover .jr-clip__play { transform: translate(-50%, -50%) scale(1.12); }
.jr-clip__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jr-clip__t { font: 600 14px/1.42 var(--font-h); color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jr-more { margin-top: 18px; }
.jr-next { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 64px auto 0; padding: 12px 24px; border-radius: var(--r-full); border: 1.5px dashed var(--line-2); background: #fff; font: 500 14px var(--font-h); color: var(--muted); transition: border-color .2s, color .2s; }
.jr-next strong { color: var(--navy); font-weight: 600; }
.jr-next i { color: var(--primary); animation: jrBounce 1.8s ease-in-out infinite; }
.jr-next:hover { border-color: var(--primary); }
@keyframes jrBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.jr-report { margin-top: 24px; padding: 24px 26px; border-radius: var(--r-xl); background: var(--navy); color: #C9C8DD; }
.jr-report__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font: 600 16px var(--font-h); color: #fff; }
.jr-report__head i { color: var(--cyan); margin-right: 6px; }
.jr-report ul li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 15px var(--font-h); color: #fff; }
.jr-report ul li > i:first-child { width: 22px; color: var(--cyan); text-align: center; }
.jr-report__ok { margin-left: auto; color: var(--green); }
.jr-report__hl { display: flex; width: 100%; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; text-align: left; background: rgba(255,255,255,.05); border: 1px dashed rgba(86,243,255,.4); color: #C9C8DD; font-size: 14.5px; transition: background .2s; }
.jr-report__hl:hover { background: rgba(255,255,255,.1); }
.jr-report__hl strong { font: 700 32px/1 var(--font-h); color: var(--yellow); }
.jr-report__hl i { color: var(--cyan); }
.section--dark .tab { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.section--dark .tab:hover { border-color: var(--cyan); color: var(--cyan); }
.section--dark .tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.jr-spot .tab i { margin-right: 6px; }
.jr-chapters { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 20px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.jr-chapters::before { content: ""; position: absolute; left: 24px; right: 24px; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(86,243,255,.5) 0 8px, transparent 8px 16px); }
.jr-chapter { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jr-chapter__dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--font-h); color: #fff; background: var(--primary); border: 4px solid var(--navy); box-shadow: 0 0 0 2px rgba(86,243,255,.45); }
.jr-chapter:last-child .jr-chapter__dot { background: var(--yellow); color: var(--navy); }
.jr-chapter__label { font: 600 12.5px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.jr-chapter__card { display: flex; flex-direction: column; gap: 10px; padding: 10px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s, transform .2s; height: 100%; }
.jr-chapter__card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.jr-chapter__cap { padding: 0 4px 6px; font: 500 14.5px/1.45 var(--font-h); color: #fff; }
.jr-series { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.jr-series:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.jr-series__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--primary); background: var(--primary-100); margin-bottom: 6px; }
.jr-series h3 { font-size: 18px; margin: 0; }
.jr-series p { font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }
.jr-series__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 600 13.5px var(--font-h); color: var(--navy); }
.jr-series__yt { color: #E62117; display: inline-flex; gap: 6px; align-items: center; }
.jr-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--primary) 0%, #3D37B8 100%); color: #E9E8FF; }
.jr-banner h3 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.jr-banner p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .jr-hero__grid, .jr-stage__grid { grid-template-columns: 1fr; }
  .jr-hero__map { max-width: 460px; margin: 0 auto; width: 100%; }
  .jr-stage__intro { position: relative; top: 0; }
  .jr-stage__grid { gap: 36px; }
}
@media (max-width: 767px) {
  .jr-hero { padding: 44px 0 56px; }
  .jr-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .jr-stage { padding: 64px 0 24px; }
  .jr-stage__num { font-size: 86px; top: -20px; }
  .jr-clips { grid-template-columns: 1fr; }
  .jr-clip { grid-template-columns: 128px 1fr; }
  .jr-feature__t { font-size: 16px; padding: 16px; }
  .jr-steps a { padding: 12px 10px; font-size: 13.5px; }
  .jr-chapters { grid-auto-columns: 74%; }
  .jr-next { margin-top: 44px; }
}
@media (max-width: 1199px) {
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .header__wa { display: none; }
  .countries { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: 1fr 300px; }
  .post-layout .toc-col { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 74px; }
  .section { padding-block: 80px; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
  .header__wa { display: grid; }
  .topbar__note { display: none; }
  .hero .container, .split, .split--wide-left, .faq-layout, .book, .course-hero__grid, .course-layout, .profile, .maqraa-hero .container, .sheikh, .calc, .reviews-layout, .archive { grid-template-columns: 1fr; }
  .hero__media { min-height: 440px; }
  .hero__blob { width: 380px; height: 380px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .feature-row, .offer-grid, .included { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .faq-aside { position: static; }
  .cta-band, .footer__cta { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .course-hero__stats { grid-template-columns: repeat(3, 1fr); }
  .course-hero__stats div:nth-child(3) { border-right: 0; }
  .course-hero__media { display: none; }
  .sidebar-card, .profile__card, .filters { position: static; }
  .filters { display: none; }
  .filters.is-open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .join-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-height: 260px; }
  .post-card--featured .post-card__body { padding: 10px 26px 30px; }
  .accred { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .section--sm { padding-block: 52px; }
  .sec-head { margin-bottom: 36px; }
  .topbar__info a:not(:first-child) { display: none; }
  .topbar .social { display: none; }
  .logo img { width: 44px; height: 44px; }
  .logo__name { font-size: 19px; }
  .logo__sub { font-size: 10px; letter-spacing: .26em; }
  .hero { padding: 44px 0 80px; }
  .hero__lead { font-size: 16.5px; }
  .hero__media { min-height: 360px; }
  .hero__blob { width: 300px; height: 300px; }
  .float-card { font-size: 12.5px; padding: 9px 12px; }
  .float-card .fc-ico { width: 32px; height: 32px; font-size: 14px; }
  .float-card--1 { left: 0; top: 10px; }
  .float-card--2 { right: 0; bottom: 40px; }
  .float-card--3 { display: none; }
  .grid-2, .grid-3, .grid-4, .feature-row, .offer-grid, .included, .track-grid, .cred-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat__num { font-size: 24px; }
  .stat__ico { width: 44px; height: 44px; font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .country { padding: 12px; gap: 10px; }
  .carousel__track, .carousel--2 .carousel__track { grid-auto-columns: 88%; }
  .cta-band { padding: 40px 26px; }
  .cta-band .btn-row .btn { width: 100%; }
  .book__aside, .book__form { padding: 32px 22px; }
  .fields { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
  .modal__head { padding: 30px 22px 0; }
  .modal .book__form { padding: 22px 22px 30px; }
  .modal--media, .modal--image { align-items: center; padding: 12px; }
  .modal--media .modal__dialog { border-radius: var(--r); }
  .footer__main { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values .value:last-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans .plan:last-child { grid-column: 1 / -1; }
  .pricing-toggle button { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .calc__controls, .calc__result { padding: 28px 22px; }
  .calc__total { font-size: 50px; }
  .course-hero__stats { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .course-hero__stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .course-hero__stats div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .join-steps { grid-template-columns: 1fr; }
  .when { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; margin-top: -40px; }
  .post-hero__cover img { height: 260px; }
  .profile__card-body h1 { font-size: 22px; }
  .page-hero { padding: 52px 0 60px; }
  .page-hero__ar { display: none; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .tab { flex-shrink: 0; }
  .toolbar .seg { width: 100%; justify-content: space-between; }
  .archive__bar .select { width: 100%; }
  .fab-wa { right: 16px; bottom: 80px; width: 54px; height: 54px; font-size: 27px; }
  .to-top { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px -8px rgba(22,20,57,.2); gap: 10px; }
  .mobile-cta .btn { flex: 1; padding: 13px 16px; font-size: 14.5px; box-shadow: 3px 4px 0 0 var(--btn-sh); }
  body { padding-bottom: 72px; }
}


/* ========================================
   TRIAL POPUP - MODERN RESPONSIVE DESIGN
======================================== */

/* Overlay */
.trial-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 20, 35, 0.75);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    box-sizing: border-box;
}

/* Active popup */
.trial-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal */
.trial-popup-modal {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
    transform: translateY(30px) scale(.96);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    box-sizing: border-box;
    scrollbar-width: thin;
}

/* Modal entrance */
.trial-popup-overlay.active .trial-popup-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close Button */
.trial-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 2;
}

.trial-popup-close:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Header */
.trial-popup-header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 8px;
}

.trial-popup-header h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.trial-popup-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.trial-popup-header .required {
    color: #ef4444;
    font-weight: 700;
}

/* Contact Form 7 */
.trial-popup-form {
    width: 100%;
}

.trial-popup-form .wpcf7 {
    width: 100%;
}

.trial-popup-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trial-popup-form .wpcf7 form p {
    margin: 0;
}

.trial-popup-form .wpcf7 form label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

/* Input fields */
.trial-popup-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.trial-popup-form select,
.trial-popup-form textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 15px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: all .25s ease;
}

.trial-popup-form textarea {
    min-height: 100px;
    resize: vertical;
}

.trial-popup-form input:focus,
.trial-popup-form select:focus,
.trial-popup-form textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.trial-popup-form input::placeholder,
.trial-popup-form textarea::placeholder {
    color: #94a3b8;
}

/* Submit Button */
.trial-popup-form input[type="submit"],
.trial-popup-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
}

.trial-popup-form input[type="submit"]:hover,
.trial-popup-form button[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

/* CF7 Validation */
.trial-popup-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
}

.trial-popup-form .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px !important;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* Checkbox & Radio */
.trial-popup-form input[type="checkbox"],
.trial-popup-form input[type="radio"] {
    accent-color: #2563eb;
    cursor: pointer;
}

.trial-popup-form .wpcf7-list-item {
    margin: 0 12px 0 0;
}

/* Tablet */
@media (max-width: 768px) {
    .trial-popup-modal {
        max-width: 500px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .trial-popup-header h2 {
        font-size: 23px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .trial-popup-overlay {
        padding: 12px;
    }

    .trial-popup-modal {
        max-width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        padding: 28px 20px;
        border-radius: 15px;
    }

    .trial-popup-header {
        margin-bottom: 22px;
        padding-top: 15px;
    }

    .trial-popup-header h2 {
        font-size: 21px;
    }

    .trial-popup-header p {
        font-size: 13px;
    }

    .trial-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .trial-popup-form input,
    .trial-popup-form select,
    .trial-popup-form textarea {
        font-size: 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .trial-popup-overlay,
    .trial-popup-modal,
    .trial-popup-close {
        transition: none;
    }
}
fieldset.hidden-fields-container {
    display: none;
}
