/* ==========================================================================
   TOKEN SHEET
   Extracted from justayah.com :root (GeneralStyles.css) + Logo.svg
   ========================================================================== */

:root {
  /* Brand */
  --brand-500: #86A614;                 /* --PrimaryBGColor · logo lime */
  --brand-600: #7A9613;                 /* --PrimaryBGColorHover */
  --brand-400: #A1C21A;                 /* --PrimaryColorLightBG */
  --brand-100: rgba(134, 166, 20, 0.08); /* --PrimaryColorLightBG2 */
  --brand-200: rgba(134, 166, 20, 0.18);
  --teal-500: #335259;                  /* --SecondaryBGColor · logo teal */
  --teal-600: #28454C;                  /* --SecondaryBGColorHover */
  --teal-700: #1F373D;
  --teal-800: #16282D;
  --teal-100: rgba(51, 82, 89, 0.10);
  --navy-500: #324F76;                  /* Live h2 colour */

  /* Ink / Typography Colors */
  --ink-900: #151A20;                   /* --DarkTxtColor */
  --ink-800: #2B2B2B;
  --ink-700: #325259;                   /* --TextPrimary (headings) */
  --ink-600: #4A4A4A;
  --ink-500: #727272;
  --ink-400: #9A9A9A;
  --ink-inverse: #FFFFFF;

  /* Surfaces & Lines */
  --surface-0: #FFFFFF;
  --surface-1: #F5F3F1;                 /* --B1GreyBGColor */
  --surface-2: #E4DDCD;                 /* --B2GreyBGColor */
  --surface-page: #EEEEEE;              /* Live body bg */
  --pale-1: #FFF1E7;                    /* --PalePrimaryBGColor */
  --pale-3: #FFCFB0;
  --line-200: #DFE4EA;                  /* Live border */
  --line-300: #CFD6DD;

  /* Status (Live) */
  --success: #1B993C;
  --warning: #E1A428;
  --danger: #DC3D43;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-500) 62%, #3E6A5E 100%);
  --grad-soft: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%); /* Live card gradient */

  /* Shapes & Shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 2px 8px rgba(21, 26, 32, 0.06);
  --shadow-2: 0 10px 30px rgba(51, 82, 89, 0.14);
  --shadow-3: 0 20px 50px rgba(21, 26, 32, 0.22);

  /* Typography & Scale */
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-h3: 1.2rem;

  /* Accents & Specific Tokens */
  --star: #F6C344;
  --wa: #25D366;
  --wa-600: #1EBE5A;
  --cat-tafseer: #8E6C3A;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-800);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-500);
}

a:hover {
  color: var(--brand-600);
}

h1,
h2,
h3,
h4 {
  color: var(--ink-700);
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  background: var(--teal-500);
  color: var(--ink-inverse);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 1000;
}

.skip:focus {
  top: 8px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  padding-block: clamp(48px, 7vw, 88px);
}

.sec--alt {
  background: var(--surface-1);
}

.sec--dark {
  background: var(--teal-700);
  color: var(--ink-inverse);
}

.sec--dark h2,
.sec--dark h3 {
  color: var(--ink-inverse);
}

.sec-head {
  max-width: 720px;
  margin-block-end: 32px;
}

.sec-head .eyebrow {
  display: inline-block;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-block-end: 6px;
}

.sec-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
}

.sec--dark .sec-head p {
  color: rgba(255, 255, 255, 0.75);
}

.sec--dark .sec-head .eyebrow {
  color: var(--brand-400);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.more::after {
  content: "←";
}

[dir="ltr"] .more::after {
  content: "→";
}

/* ==========================================================================
   LAYOUT & GRID
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
}

.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1000px) {
  .g4,
  .g5,
  .g6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .g2,
  .g3,
  .g4,
  .g5,
  .g6 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .g2,
  .g3,
  .g4,
  .g5,
  .g6 {
    grid-template-columns: 1fr;
  }
}

/* Utility Helpers */
.n {
  font-variant-numeric: tabular-nums;
}

.ph {
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px dashed var(--brand-500);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  font-size: 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.muted {
  color: var(--ink-500);
}

.card {
  background: var(--surface-0);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.sec--alt .card {
  border-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-500);
  color: var(--ink-inverse);
}

.btn-primary:hover {
  background: var(--brand-600);
  color: var(--ink-inverse);
}

.btn-secondary {
  background: var(--teal-500);
  color: var(--ink-inverse);
}

.btn-secondary:hover {
  background: var(--teal-600);
  color: var(--ink-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--teal-500);
  border-color: var(--teal-500);
}

.btn-outline:hover {
  background: var(--teal-100);
  color: var(--teal-600);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink-inverse);
}

.btn-wa {
  background: var(--wa);
  color: var(--ink-inverse);
}

.btn-wa:hover {
  background: var(--wa-600);
  color: var(--ink-inverse);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.08rem;
}

.btn-sm {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line-200);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav > li > a,
.nav > li > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.nav > li > a:hover,
.nav > li > summary:hover {
  background: var(--brand-100);
  color: var(--teal-500);
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav details {
  position: relative;
}

.nav details[open] > summary {
  background: var(--brand-100);
}

.mega {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  width: min(760px, calc(100vw - 32px));
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  z-index: 60;
}

.mega h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.mega h4 a {
  text-decoration: none;
}

.mega li a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-600);
  text-decoration: none;
  font-size: 0.92rem;
}

.mega li a:hover {
  background: var(--surface-1);
  color: var(--teal-500);
}

.mega .all {
  grid-column: 1 / -1;
  border-block-start: 1px solid var(--line-200);
  padding-block-start: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-sm);
  background: var(--ink-inverse);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hdr-cta .btn-outline {
    display: none;
  }
}

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 26, 32, 0.5);
  display: none;
}

.drawer[data-open="1"] {
  display: block;
}

.drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(360px, 88vw);
  background: var(--ink-inverse);
  padding: 20px;
  overflow: auto;
}

.drawer-panel details {
  border-block-end: 1px solid var(--line-200);
}

.drawer-panel summary {
  list-style: none;
  padding: 12px 4px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-panel summary::-webkit-details-marker {
  display: none;
}

.drawer-panel a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink-700);
  min-height: 44px;
}

.drawer-panel .dl a {
  font-size: 0.95rem;
  color: var(--ink-600);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background: var(--grad-hero);
  color: var(--ink-inverse);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% 10%, rgba(134, 166, 20, 0.35), transparent 60%),
              radial-gradient(40% 60% at 5% 90%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(44px, 8vw, 44px);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero h1 {
  color: var(--ink-inverse);
  margin-block-end: 16px;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-block-end: 18px;
  color: var(--brand-400);
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 22px 20px;
}

.hero .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero .proof li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .proof li::before {
  content: "✓";
  color: var(--brand-400);
  font-weight: 900;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-block-end: 14px;
}

.crumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.crumb li + li::before {
  content: "/";
  margin-inline-end: 6px;
  opacity: 0.5;
}

/* ==========================================================================
   DEMO: CLASS SESSION (Live Lesson Card)
   ========================================================================== */

.demo {
  background: var(--ink-inverse);
  color: var(--ink-800);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface-1);
  border-block-end: 1px solid var(--line-200);
}

.demo-top .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--danger);
}

.demo-top .live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.demo-people {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
}

.person {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border-radius: var(--r-md);
  padding: 10px 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--ink-inverse);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
  font-size: 0.95rem;
}

.avatar.f {
  background: var(--brand-500);
}

.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}

.avatar.xl {
  width: 96px;
  height: 96px;
  font-size: 1.8rem;
}

.person b {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.person small {
  color: var(--ink-500);
  font-size: 0.78rem;
}

.ayah {
  padding: 6px 18px 14px;
  text-align: center;
}

.ayah .q {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink-700);
  line-height: 2;
  margin: 0;
}

.ayah .q mark {
  background: var(--pale-3);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--danger);
}

.ayah .q mark.ok {
  background: var(--brand-200);
  color: var(--brand-600);
}

.ayah small {
  color: var(--ink-500);
}

.fb {
  margin: 0 18px 14px;
  border: 1px solid var(--line-200);
  border-inline-start: 4px solid var(--brand-500);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  background: var(--brand-100);
}

.fb b {
  color: var(--teal-500);
}

.demo-prog {
  padding: 0 18px 18px;
}

.demo-prog .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-block-end: 6px;
}

.bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand-500);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats {
  background: var(--ink-inverse);
  border-block-end: 1px solid var(--line-200);
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats li {
  padding: 22px 16px;
  text-align: center;
  border-inline-start: 1px solid var(--line-200);
}

.stats li:first-child {
  border-inline-start: 0;
}

.stats b {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal-500);
  line-height: 1.2;
}

.stats span {
  color: var(--ink-500);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .stats ul {
    grid-template-columns: 1fr 1fr;
  }

  .stats li:nth-child(3) {
    border-inline-start: 0;
  }

  .stats li {
    border-block-start: 1px solid var(--line-200);
  }

  .stats li:nth-child(-n+2) {
    border-block-start: 0;
  }
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.trust {
  background: var(--teal-800);
  color: var(--ink-inverse);
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding-block: 14px;
  font-size: 0.92rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "✓";
  color: var(--brand-400);
  font-weight: 900;
}

.trust .stars {
  color: var(--star);
  letter-spacing: 1px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.about .facts {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: 24px;
}

.about .facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
}

.about .facts dt {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.about .facts dd {
  margin: 0;
  font-weight: 700;
}

.icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-100);
  color: var(--teal-500);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 36px;
}

a.chip:hover {
  background: var(--brand-200);
}

.chip.on {
  background: var(--teal-500);
  color: var(--ink-inverse);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
	flex-direction: row;
}

.feat .ic {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 22px;
}

.feat h3 {
  margin-block-end: 4px;
}

.feat p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* ==========================================================================
   CATEGORY TILES (Services Map)
   ========================================================================== */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cats {
    grid-template-columns: 1fr;
  }
}

.cat {
  display: flex;
  flex-direction: column;
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.cat.last-cat {
    grid-column: 1 / -1;
}

.cat-h {
  padding: 20px 22px 14px;
  border-block-start: 5px solid var(--brand-500);
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-h .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--ink-inverse);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.cat-h h3 {
  margin: 0;
}

.cat-h h3 a {
  text-decoration: none;
}

.cat-h small {
  display: block;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.cat ul {
  padding: 0 22px;
  flex: 1;
}

.cat li a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-block-start: 1px solid var(--line-200);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.cat li a:hover {
  color: var(--brand-600);
}

.cat li a span {
  color: var(--ink-400);
  font-size: 0.8rem;
  white-space: nowrap;
}

.cat-f {
  padding: 14px 22px 20px;
}

.cat--hifz .cat-h { border-color: var(--teal-500); }
.cat--reading .cat-h { border-color: var(--warning); }
.cat--recitation .cat-h { border-color: var(--navy-500); }
.cat--tafseer .cat-h { border-color: var(--cat-tafseer); }

/* ==========================================================================
   PIPELINE
   ========================================================================== */

.pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}

@media (max-width: 900px) {
  .pipe {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pipe li {
  position: relative;
  padding: 18px 16px 18px;
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  margin-inline-start: -1px;
}

.pipe li:first-child {
  border-start-start-radius: var(--r-lg);
  border-end-start-radius: var(--r-lg);
}

.pipe li:last-child {
  border-start-end-radius: var(--r-lg);
  border-end-end-radius: var(--r-lg);
}

@media (max-width: 900px) {
  .pipe li {
    border-radius: var(--r-md) !important;
    margin: 0;
  }
}

.pipe li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--teal-500);
  font-weight: 800;
  margin-block-end: 8px;
}

.pipe li.cur {
  background: var(--teal-500);
  color: var(--ink-inverse);
  border-color: var(--teal-500);
}

.pipe li.cur::before {
  background: var(--brand-500);
  color: var(--ink-inverse);
}

.pipe li a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  display: block;
}

.pipe li small {
  display: block;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.pipe li.cur small {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   AUDIENCE LANES
   ========================================================================== */

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .lanes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .lanes {
    grid-template-columns: 1fr;
  }
}

.lane {
  background: var(--ink-inverse);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid var(--line-200);
}

.lane h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lane h3 span {
  font-size: 1.4rem;
}

.lane li a {
  display: block;
  padding: 6px 0;
  border-block-start: 1px dashed var(--line-200);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.93rem;
}

.lane li a:hover {
  color: var(--brand-600);
}

/* ==========================================================================
   VIDEO FACADE
   ========================================================================== */

.vid {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  display: grid;
  place-items: center;
  color: var(--ink-inverse);
  text-decoration: none;
}

.vid::after {
  content: "▶";
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-2);
	z-index: 2;
}

.vid .dur {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.vid .lbl {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  background: rgb(133 166 21);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
}

.vcard .vid {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
	color: #fff;
}

/* طبقة عتامة فوق الصورة ليبقى النص وزر التشغيل مقروءاً */
.vcard .vid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

/* رفع الشارات والأزرار فوق طبقة العتامة */
.vcard .vid > * {
  z-index: 2;
}

.vcard h3 {
  margin: 14px 0 4px;
  font-size: 1.05rem;
}

.vcard .meta {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-block-end: 6px;
}

.vcard p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS
   ========================================================================== */

.quote {
  position: relative;
}

.quote .stars {
  color: var(--star);
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.quote blockquote {
  margin: 10px 0 14px;
  font-size: 1rem;
  color: var(--ink-800);
}

.quote .who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote .who b {
  display: block;
  font-size: 0.92rem;
}

.quote .who small {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.quote .src {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  font-size: 0.75rem;
  color: var(--ink-400);
}

.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-block-end: 22px;
}

.rating-strip .big {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--teal-500);
}

.rating-strip .stars {
  color: var(--star);
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-end: 22px;
}

.tabs button {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-300);
  background: var(--ink-inverse);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-700);
}

.tabs button[aria-selected="true"] {
  background: var(--teal-500);
  color: var(--ink-inverse);
  border-color: var(--teal-500);
}

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */

.case .ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-block: 12px;
  font-size: 0.92rem;
}

.case .ba div {
  background: var(--surface-1);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.case .ba div b {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.case .ba .arr {
  color: var(--brand-600);
  font-size: 1.4rem;
}

[dir="rtl"] .case .ba .arr {
  transform: scaleX(-1);
}

.case .dur {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-600);
  border-radius: var(--r-pill);
  padding: 2px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.case blockquote {
  margin: 12px 0;
  color: var(--ink-600);
  font-size: 0.95rem;
  border-inline-start: 3px solid var(--brand-500);
  padding-inline-start: 12px;
}

/* ==========================================================================
   TEACHERS
   ========================================================================== */

.teacher {
  text-align: center;
}

.teacher .avatar {
  margin-inline: auto;
  margin-block-end: 12px;
}

.teacher h3 {
  font-size: 1rem;
  margin-block-end: 2px;
}

.teacher p {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tags span,
.tags a {
  font-size: 0.75rem;
  background: var(--surface-1);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  color: var(--ink-600);
  text-decoration: none;
}

/* ==========================================================================
   CTA BANDS
   ========================================================================== */

.cta-band {
  background: var(--grad-hero);
  color: var(--ink-inverse);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 90% at 90% 20%, rgba(134, 166, 20, 0.4), transparent 60%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

.cta-band h2 {
  color: var(--ink-inverse);
  margin-block-end: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.cta-band .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .cta-band .acts {
    justify-content: flex-start;
  }
}

.cta-inline {
  background: var(--pale-1);
  border: 1px solid var(--pale-3);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-inline h3 {
  margin: 0 0 4px;
}

.cta-inline p {
  margin: 0;
  color: var(--ink-600);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq {
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  background: var(--ink-inverse);
  margin-block-end: 10px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 56px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-600);
  flex: none;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .a {
  padding: 0 20px 18px;
  color: var(--ink-600);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .form-wrap {
    grid-template-columns: 1fr;
  }
}

.form {
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block-end: 14px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-300);
  border-radius: var(--r-sm);
  background: var(--ink-inverse);
  min-height: 48px;
  color: var(--ink-800);
	width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-200);
  outline: none;
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.req {
  color: var(--danger);
}

.form .priv {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-block-start: 10px;
}

.side-proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-proof .step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.side-proof .step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--ink-inverse);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.side-proof .step b {
  display: block;
}

.side-proof .step small {
  color: var(--ink-500);
}

.field [aria-invalid="true"],
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 61, 67, 0.15);
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.post {
  display: flex;
  flex-direction: column;
}

.post .thumb {
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1px solid var(--line-200);
  margin-block-end: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  font-size: 0.85rem;
}

.post .thumb {
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1px solid var(--line-200);
  margin-block-end: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  font-size: 0.85rem;
	overflow: hidden;
}

.post .thumb img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.post h3 {
  font-size: 1.05rem;
}

.post h3 a {
  text-decoration: none;
}

.post .meta {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.post .rel {
  margin-block-start: auto;
  padding-block-start: 10px;
  font-size: 0.85rem;
}

/* ==========================================================================
   COURSE SINGLE SPECIFICS
   ========================================================================== */

.course-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-block-start: 22px;
}

@media (max-width: 560px) {
  .course-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.course-facts li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 0.85rem;
}

.course-facts b {
  display: block;
  font-size: 1rem;
  color: var(--ink-inverse);
}

.prose {
  max-width: 760px;
  font-size: 1.05rem;
}

.prose p {
  color: var(--ink-700);
}

.overview {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .overview {
    grid-template-columns: 1fr;
  }
}

.sticky-card {
  position: sticky;
  top: 96px;
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-2);
}

.sticky-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-block-end: 1px solid var(--line-200);
  font-size: 0.92rem;
}

.sticky-card ul li span {
  color: var(--ink-500);
}

.learn {
  counter-reset: ax;
}

.learn li {
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.learn li::before {
  counter-increment: ax;
  content: counter(ax);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--ink-inverse);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.learn b {
  display: block;
  margin-block-end: 2px;
  color: var(--ink-700);
}

.learn p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.outc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: oc;
}

@media (max-width: 900px) {
  .outc {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .outc {
    grid-template-columns: 1fr;
  }
}

.outc li {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.outc li::before {
  counter-increment: oc;
  content: counter(oc, arabic-indic);
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 20px;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand-200);
  line-height: 1;
}

.outc .ck {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-500);
  display: grid;
  place-items: center;
  flex: none;
}

.outc .ck svg {
  width: 22px;
  height: 22px;
}

.outc h3 {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.outc p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.outc li.how {
  background: var(--teal-500);
  color: var(--ink-inverse);
}

.outc li.how::before {
  content: "";
}

.outc li.how h3 {
  color: var(--ink-inverse);
}

.outc li.how p {
  color: rgba(255, 255, 255, 0.8);
}

.outc li.how .ck {
  background: var(--brand-400);
}

.outc li.how .steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 4px;
  font-size: 0.9rem;
}

.outc li.how .steps span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.outc li.how .steps span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  flex: none;
}

.explore {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .explore {
    grid-template-columns: 1fr;
  }
}

.explore h3 {
  font-size: 1rem;
  color: var(--ink-500);
  font-weight: 700;
  margin-block-end: 10px;
}

.explore .list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink-inverse);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-700);
  margin-block-end: 8px;
  min-height: 48px;
}

.explore .list a:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.explore .list a small {
  color: var(--ink-400);
  font-size: 0.8rem;
}

.aud-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-social a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    min-height: unset;
    min-width: unset;
    padding: 0;
    background: #ffffff12;
}

.footer, .copyright  {
    font-size: 14px;
}

.footer h4 {
    font-size: 15px;
}

/* ==========================================================================
   CROSS-TREE STRIP
   ========================================================================== */

.xtree {
  background: var(--surface-1);
  border-block: 1px solid var(--line-200);
}

.xtree ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 16px;
  align-items: center;
}

.xtree li:first-child {
  font-weight: 700;
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-inline-end: 8px;
}

/* ==========================================================================
   VIDEO DIALOG (Modal / Dialog)
   ========================================================================== */

.vdlg {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, 92vw);
  width: 100%;
}

.vdlg::backdrop {
  background: rgba(21, 26, 32, 0.85);
}

.vdlg-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
}

.vdlg-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.vdlg-close {
  position: absolute;
  inset-block-start: -48px;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-0);
  color: var(--ink-800);
  font-size: 18px;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
	.btn {
    gap: 5px;
    min-height: 43px;
    padding: 7px 19px;
    font-size: 0.8rem;
}
	.hero {
    padding: 20px;
}
	.hero h1 {
    font-size: 1.6rem;
}
	.hero .eyebrow {
    font-size: 0.8rem;
}
}