@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('../fonts/cairo-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('../fonts/cairo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/tajawal-400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/tajawal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/tajawal-500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/tajawal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/tajawal-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/tajawal-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design: the site borrows the YouTube channel's look -- deep green bands, bright gold
   highlights, Noor's face and real lesson thumbnails, white cards with depth on a cream page.
   --paper is the card surface (white); the page itself is --cream. */
:root {
  --ink: #14161d;
  --ink-soft: #5a6070;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --paper-soft: #f3ecdf;
  --accent: #1f7a5c;
  --accent-dark: #145a43;
  --accent-light: #e3f1eb;
  --green-900: #0c3a2c;
  --green-950: #082a20;
  --gold: #f4b82e;
  --gold-dark: #b87c0c;
  --gold-light: #fff3d4;
  --on-gold: #2a1c00;
  --terracotta: #c9522a;
  --terracotta-light: #fbe6dc;
  --plum: #6b3f8c;
  --plum-light: #eee4f5;
  --blue: #2c5d8f;
  --blue-light: #e2ecf6;
  --yt: #e62117;
  --border: #ebe3d4;
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --font-head: "Cairo", "Segoe UI", sans-serif;
  --font-body: "Tajawal", "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(12, 40, 30, .06), 0 4px 14px rgba(12, 40, 30, .06);
  --shadow: 0 2px 4px rgba(12, 40, 30, .06), 0 18px 40px -12px rgba(12, 40, 30, .24);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .45);
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #e09a12 100%);
  --dots: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
.eyebrow .ic { color: var(--gold-dark); }
.eyebrow.center { display: flex; width: fit-content; margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }

.icon { width: 20px; height: 20px; }
/* Inline SVG icons (site-audit/icons.py): sized to the text around them */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -10px rgba(12, 40, 30, .18); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-shrink: 0; }
.brand-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name-ar { color: var(--accent); font-size: 12.5px; }

.main-nav { display: flex; gap: 24px; font-size: 15.5px; font-weight: 500; margin-inline-start: 6px; white-space: nowrap; }
.main-nav a { color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 3px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-dark); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.hdr-search {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-soft); background: var(--cream); font-size: 19px; flex-shrink: 0;
}
.hdr-search:hover { color: var(--accent-dark); background: var(--accent-light); }
.btn-nav { flex-shrink: 0; padding: 11px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; white-space: nowrap;
  font-weight: 800; font-family: var(--font-head); font-size: 15.5px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(31, 122, 92, .75); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 24px -10px rgba(31, 122, 92, .8); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -10px rgba(244, 184, 46, .9); }
.btn-gold:hover { background: #ffc53d; }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-ghost { color: var(--ink); border: 2px solid var(--border); background: var(--paper); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-line { border: 1.5px solid var(--border); color: var(--ink); background: var(--paper); padding: 9px 18px; font-size: 14.5px; }
.btn-line:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Dark bands (heroes, video strip, footer): white type, gold accents */
.on-dark, .hero, .page-hero, .article-hero, .band-dark { color: #fff; }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) .eyebrow { color: var(--gold); }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) :is(.btn-outline, .btn-ghost) { color: #fff; border-color: rgba(255, 255, 255, .38); background: transparent; }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) :is(.btn-outline, .btn-ghost):hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) .btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -10px rgba(244, 184, 46, .9); }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) .btn-primary:hover { background: #ffc53d; }
:is(.on-dark, .hero, .page-hero, .article-hero, .band-dark) .en-note { color: rgba(255, 255, 255, .62); }

/* Hero */
.hero {
  position: relative;
  padding: 70px 0 140px;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
}
.hero::before, .page-hero::before, .article-hero::before, .band-dark::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; left: -160px; top: -220px; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 184, 46, .2), transparent 62%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.hero-pill .ic { color: var(--gold); }
.hero h1 { font-size: clamp(34px, 3.9vw, 52px); font-weight: 900; margin: 22px 0 18px; line-height: 1.25; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--gold); white-space: nowrap; }
.hero-sub { color: var(--ink-soft); font-size: 18px; max-width: 540px; margin: 0 0 30px; }
.hero .hero-sub { color: rgba(255, 255, 255, .82); font-size: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-cta .btn-lg { padding: 14px 24px; font-size: 16px; }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.hero-trust a { color: var(--gold); font-weight: 700; }
.faces { display: flex; flex-shrink: 0; }
.faces span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green-900); margin-inline-start: -10px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: #fff;
}
.faces span:first-child { margin-inline-start: 0; }

.hero-visual { position: relative; height: 470px; }
.hero-portrait {
  position: absolute; inset-inline-end: 70px; top: 10px; width: 340px; height: 420px; margin: 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid rgba(255, 255, 255, .95);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-ring { position: absolute; inset-inline-end: 44px; top: 36px; width: 340px; height: 420px; border-radius: 28px; border: 3px solid var(--gold); }
.hero-thumb {
  position: absolute; width: 230px; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-lg); border: 3px solid #fff; transition: transform .2s ease;
}
.hero-thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.hero-thumb span {
  position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, .82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px;
}
.hero-thumb.t1 { inset-inline-start: 0; top: 40px; transform: rotate(-5deg); }
.hero-thumb.t2 { inset-inline-start: 30px; top: 250px; width: 210px; transform: rotate(4deg); }
.hero-thumb:hover { transform: rotate(0) scale(1.04); }
.yt-badge {
  position: absolute; inset-inline-end: 20px; bottom: 6px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 800;
}
.yt-badge > span:first-child { background: var(--yt); color: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.yt-badge small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--ink-soft); line-height: 1.2; }

/* White stats card overlapping the bottom of the hero */
.stats-card {
  position: relative; z-index: 2; margin-top: -76px; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px;
}
.stats-card .stat { flex-direction: row; align-items: center; gap: 14px; padding: 0 24px; border-inline-start: 1px solid var(--border); }
.stats-card .stat:first-child { border: 0; }
.stat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; flex-shrink: 0; }
.stats-card .stat strong { display: block; font-weight: 900; font-size: 26px; line-height: 1.2; color: var(--ink); }
.stats-card .stat span { font-size: 14.5px; }
.stats-card .stat:nth-child(1) .stat-ic { background: #fde8e6; color: var(--yt); }
.stats-card .stat:nth-child(2) .stat-ic { background: var(--accent-light); color: var(--accent); }
.stats-card .stat:nth-child(3) .stat-ic { background: var(--gold-light); color: var(--gold-dark); }
.stats-card .stat:nth-child(4) .stat-ic { background: var(--plum-light); color: var(--plum); }

/* Short, genuine English-language summary for AI/search crawlers that query in
   English even when the visitor's own question was in Arabic -- see
   deferred-improvements.md's GEO recheck notes. Visible, not hidden/cloaked,
   just small and secondary to the Arabic-first design. */
.en-note { color: var(--ink-soft); font-size: 13.5px; direction: ltr; text-align: left; max-width: 520px; margin: -20px 0 28px; line-height: 1.6; }

.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 26px; color: var(--accent-dark); }
.stat span { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 1180px) and (min-width: 901px) {
  .hero-visual { height: 420px; }
  .hero-portrait, .hero-ring { width: 290px; height: 370px; }
  .hero-portrait { inset-inline-end: 40px; }
  .hero-ring { inset-inline-end: 16px; top: 34px; }
  .hero-thumb { width: 180px; }
  .hero-thumb.t1 { top: 30px; }
  .hero-thumb.t2 { width: 170px; top: 220px; }
  .yt-badge { inset-inline-end: 0; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero .hero-sub { font-size: 17px; }
  .hero-cta .btn { width: 100%; white-space: normal; }
  .hero-visual { height: 330px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-portrait, .hero-ring { width: 230px; height: 290px; inset-inline-end: 24px; }
  .hero-ring { inset-inline-end: 8px; top: 26px; }
  .hero-thumb { width: 160px; }
  .hero-thumb.t1 { top: 20px; }
  .hero-thumb.t2 { width: 150px; top: 180px; }
  .yt-badge { inset-inline-end: 0; bottom: 0; }
  .stats-card { grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 20px 4px; }
  .stats-card .stat { padding: 0 12px; gap: 10px; }
  .stats-card .stat:nth-child(3) { border: 0; }
  .stat-ic { width: 42px; height: 42px; font-size: 21px; }
  .stats-card .stat strong { font-size: 20px; }
  .stats-card .stat span { font-size: 13px; }
}

/* About */
.about { padding: 96px 0 20px; }
.about-text { max-width: 760px; margin: 0 auto; }
.about-text h2 { font-size: 32px; margin-top: 0; margin-bottom: 18px; }
.about-lead { font-size: 20px; color: var(--ink); font-weight: 500; }
.skills-list {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.skills-list li { color: var(--ink-soft); display: flex; align-items: flex-start; gap: 8px; }
.check {
  color: var(--accent); font-weight: 800; flex-shrink: 0;
  background: var(--accent-light); border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
@media (max-width: 640px) { .skills-list { grid-template-columns: 1fr; } }

/* Courses */
.courses-teaser { padding: 90px 0; }
.courses-teaser h2, .section-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 900; margin: 0 0 10px; line-height: 1.3; }
.section-sub { color: var(--ink-soft); margin-bottom: 50px; }

/* Section heading row: title on one side, "see all" link on the other */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }
.see-all { font-family: var(--font-head); font-weight: 800; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.see-all:hover { color: var(--accent-dark); }
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* Course cards: colored cover (icon + price), white body */
.course-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px;
}
.course-card {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-cover {
  position: relative; overflow: hidden; height: 140px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #2a9170, var(--green-900));
}
.course-cover::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); inset-inline-end: -80px; top: -95px;
}
.course-cover .card-icon { position: relative; z-index: 1; font-size: 58px; line-height: 1; color: rgba(255, 255, 255, .96); }
.course-cover .card-icon .ic { stroke-width: 1.6; }
.course-card .price {
  position: relative; z-index: 1; background: #fff; color: var(--accent-dark);
  font-family: var(--font-head); font-weight: 900; font-size: 19px; padding: 3px 16px; border-radius: 999px; direction: ltr;
}
.course-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.ribbon {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: var(--gold); color: var(--on-gold);
  font-family: var(--font-head); font-weight: 900; font-size: 12.5px;
  padding: 3px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-icon { font-size: 32px; }
.course-card h3 { margin: 0; font-size: 20px; font-weight: 800; }
.course-card p { margin: 0; color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.card-cta { font-family: var(--font-head); font-weight: 800; color: var(--accent-dark); font-size: 14.5px; }
.cc-gold .course-cover { background: linear-gradient(135deg, #f4b82e, #c27f08); }
.cc-gold .price, .cc-gold .card-cta { color: var(--gold-dark); }
.cc-plum .course-cover { background: linear-gradient(135deg, #8a58ad, #4b2766); }
.cc-plum .price, .cc-plum .card-cta { color: var(--plum); }
.cc-terra .course-cover { background: linear-gradient(135deg, #e0703f, #9c3515); }
.cc-terra .price, .cc-terra .card-cta { color: #9c3515; }
.cc-blue .course-cover { background: linear-gradient(135deg, #3d78b3, #1c3f63); }
.cc-blue .price, .cc-blue .card-cta { color: var(--blue); }
.cc-ink .course-cover { background: linear-gradient(135deg, #3a3f4d, #14161d); }
.cc-ink .price, .cc-ink .card-cta { color: var(--ink); }
.cc-night .course-cover { background: linear-gradient(135deg, #34437a, #141c3d); }
.cc-night .price, .cc-night .card-cta { color: #2b3a6e; }

/* Testimonials */
.testimonials { padding: 90px 0; background: var(--paper-soft); }
.testimonials h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 900; margin: 0 0 50px; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.testimonial {
  margin: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 30px; border-top: 4px solid var(--accent);
}
.testimonial::after {
  content: "\201D"; position: absolute; top: 4px; inset-inline-end: 22px;
  font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--gold); opacity: .45;
}
.testimonial p { margin: 0 0 16px; font-size: 15.5px; color: var(--ink); }
.testimonial cite { font-family: var(--font-head); font-weight: 700; font-style: normal; color: var(--accent-dark); font-size: 14px; }
.testimonial-grid .testimonial:nth-child(3n+2) { border-top-color: var(--terracotta); }
.testimonial-grid .testimonial:nth-child(3n+2) cite { color: var(--terracotta); }
.testimonial-grid .testimonial:nth-child(3n+3) { border-top-color: var(--plum); }
.testimonial-grid .testimonial:nth-child(3n+3) cite { color: var(--plum); }

/* YouTube promo */
.youtube-promo { padding: 90px 0; }
.yt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.youtube-promo h2 { font-size: 28px; margin: 0 0 18px; }
.youtube-promo p { color: var(--ink-soft); margin: 0 0 30px; }
.yt-visual {
  aspect-ratio: 16/10; border-radius: var(--radius);
  background-color: var(--ink);
  background-image: linear-gradient(160deg, rgba(26,20,15,0.35) 0%, rgba(51,38,26,0.55) 100%), var(--yt-thumb, none);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s ease;
}
.yt-visual:hover { transform: scale(1.015); }
.yt-play {
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(255,255,255,0.12);
}
.yt-play-icon { width: 30px; height: 30px; color: var(--accent-dark); margin-inline-start: 4px; }
@media (max-width: 860px) { .yt-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: 80px 0 100px; text-align: center; }
.contact h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; margin: 0 0 34px; }
.contact-methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; max-width: 780px; margin: 0 auto 50px;
}
.contact-method {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon {
  font-size: 24px; margin-bottom: 4px; width: 52px; height: 52px; border-radius: 16px;
  background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.contact-methods .contact-method:nth-child(3n+2) .contact-icon { background: var(--terracotta-light); color: var(--terracotta); }
.contact-methods .contact-method:nth-child(3n+3) .contact-icon { background: var(--blue-light); color: var(--blue); }
.contact-method strong { font-family: var(--font-head); font-size: 16px; }
.contact-method span { color: var(--ink-soft); font-size: 14px; direction: ltr; }

.social-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-family: var(--font-head); background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.social-link:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { position: relative; background: var(--green-950); padding: 60px 0 40px; text-align: center; color: rgba(255, 255, 255, .66); font-size: 14px; }
.site-footer > .wrap { position: relative; }
.footer-links { margin-top: 10px; }
.footer-links a:hover { color: var(--gold); }

/* Page hero (index pages: videos, articles, courses, paths...) -- dark green band */
.page-hero { position: relative; padding: 64px 0 60px; text-align: center; background: var(--green-900); overflow: hidden; }
.page-hero::after, .article-hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; left: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 184, 46, .16), transparent 62%);
}
.page-hero > .wrap, .article-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; margin: 6px 0 16px; line-height: 1.3; }
.page-hero .eyebrow.center, .page-hero .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
.page-hero .hero-sub { margin-inline: auto; color: rgba(255, 255, 255, .8); }
.page-hero .btn { margin-top: 10px; }

/* Video grid */
.video-grid-section { padding: 70px 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.video-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 16px; margin: 0; padding: 16px 18px; line-height: 1.6; }
.video-more { text-align: center; margin-top: 60px; }
.video-more p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 20px; }
.alt-bg { background: var(--paper-soft); }

/* Footer sitemap */
.footer-sitemap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px;
  max-width: 900px; margin: 0 auto 40px; text-align: right;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-family: var(--font-head); color: #fff; margin-bottom: 4px; }
.footer-col strong::after { content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 6px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.site-footer .btn-yt { background: var(--yt); }

/* Article / prose pages: title on a dark band, reading area on cream */
.article-hero { position: relative; padding: 48px 0 44px; background: var(--green-900); overflow: hidden; }
.article-hero .breadcrumb { font-size: 14px; color: rgba(255, 255, 255, .62); margin: 0 0 16px; }
.article-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.article-hero .breadcrumb a:hover { color: var(--gold); }
.article-hero h1 { font-size: clamp(27px, 3.6vw, 42px); font-weight: 900; margin: 0 0 18px; line-height: 1.4; max-width: 900px; }
.article-hero .hero-sub, .article-hero > .wrap > p:not([class]) { color: rgba(255, 255, 255, .8); }
.article-hero [google-add-preferred-source-btn] { margin-top: 14px; }
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero .article-meta > span {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88);
  padding: 4px 13px; border-radius: 999px;
}
.article-hero .article-meta .ic { color: var(--gold); }
.article-hero .trust-line { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.article-hero .trust-line strong { color: #fff; }

.article-body { padding: 44px 0 70px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose .lead { font-size: 19px; font-weight: 500; color: var(--ink); background: var(--paper); border-inline-start: 5px solid var(--accent); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 22px 26px; margin: 0 0 36px; }
.prose h2 { font-size: 24px; margin: 44px 0 16px; }
.prose h3 { font-size: 19px; margin: 30px 0 12px; }
.prose p { color: var(--ink); margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 24px; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose .video-embed { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose .callout {
  background: var(--paper); border-inline-start: 5px solid var(--gold); box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 30px 0;
}
.prose .callout strong { font-family: var(--font-head); display: block; margin-bottom: 6px; }

/* Standalone price line — keeps Western-numeral prices off an Arabic prose line */
.price-line {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
}
.price-line.price-line-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  background: none;
  padding: 0;
}
.price-line-compare .price-was {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--gold);
}
.price-line-compare .price-now {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 6px 18px;
  border-radius: var(--radius-sm);
}

.faq-block { margin-top: 0; }
.faq-block h2 { margin-top: 0; }
.faq-item {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq-item h3 { margin: 0 0 10px; font-size: 17px; display: flex; gap: 10px; align-items: flex-start; }
.faq-item h3::before {
  content: "؟"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--gold-light); color: var(--gold-dark); font-size: 15px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.faq-item p { margin: 0; color: var(--ink-soft); }

.article-cta {
  position: relative; overflow: hidden; background: var(--green-900); background-image: var(--dots); background-size: 22px 22px;
  color: #fff; border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow);
  text-align: center; margin-top: 50px;
}
.prose .article-cta h3 { margin: 0 0 10px; font-size: 22px; color: #fff; }
.prose .article-cta p { color: rgba(255, 255, 255, .8); margin: 0 0 20px; }
/* The price badge keeps dark text on its light background inside the dark box (the rule above
   was turning it white-on-mint). The crossed-out "was" price stays light on the dark box. */
.prose .article-cta .price-line, .prose .article-cta .price-line-compare .price-now { color: var(--accent-dark); margin: 4px 0 20px; }
.prose .article-cta .price-line-compare { justify-content: center; }
.prose .article-cta .price-line-compare .price-was { color: rgba(255, 255, 255, .75); }
/* Light variant (inline background:transparent, e.g. "تصفح باقي الكورسات"): dark text, not white. */
.prose .article-cta[style*="background:transparent"] { color: var(--ink); background-image: none; box-shadow: none; }
.prose .article-cta[style*="background:transparent"] h3 { color: var(--ink); }
.prose .article-cta[style*="background:transparent"] p { color: var(--ink-soft); }
.prose .article-cta[style*="background:transparent"] .btn-outline { color: var(--accent-dark); border: 1.5px solid var(--accent); background: transparent; }
.article-cta .btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -10px rgba(244, 184, 46, .9); }
.article-cta .btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); margin: 8px 6px 0; }
.article-cta .btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.article-cta .btn-primary:hover { background: #ffc53d; }
.article-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.article-cta a:not(.btn) { color: var(--gold); }

.related-links { margin-top: 50px; }
.related-links h2 { font-size: 20px; margin-bottom: 18px; }
.related-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-links a { color: var(--accent-dark); font-weight: 600; }
.related-links a:hover { text-decoration: underline; }

/* Full-bleed alternating section bands (product/article pages) — replaces the old
   flat single-background prose flow with the color-blocked rhythm real course
   landing pages use, without introducing new colors (reuses the existing tint tokens). */
.content-section { padding: 46px 0; }
.content-section > .wrap { max-width: 760px; }
.content-section.tint-accent { background: var(--accent-light); }
.content-section.tint-terracotta { background: var(--terracotta-light); }
.content-section.tint-plum { background: var(--plum-light); }
.content-section.tint-blue { background: var(--blue-light); }
.content-section .prose { max-width: none; }
.content-section:first-of-type { padding-top: 40px; }

/* Instructor trust line — short credibility badge near the hero */
.trust-line {
  display: inline-flex; align-items: center; gap: 10px; background: var(--paper-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px 8px 8px;
  font-size: 13.5px; color: var(--ink-soft); margin-top: 6px;
}
.trust-line img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.trust-line strong { color: var(--ink); font-weight: 700; }

/* Quick-facts strip — duration/level/lessons/access at a glance, before the sales copy */
.quick-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin: 24px 0;
}
.quick-facts .fact { background: var(--paper); padding: 16px 14px; text-align: center; }
.quick-facts .fact .fact-icon { font-size: 20px; display: block; margin-bottom: 6px; }
.quick-facts .fact .fact-label { font-size: 12px; color: var(--ink-soft); display: block; }
.quick-facts .fact .fact-value { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--ink); }

/* Itemized "what's included" list — icon-led, replaces a dense paragraph */
.included-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.included-list li {
  display: flex; align-items: flex-start; gap: 12px; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.included-list .item-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Fit / not-fit two-column comparison block */
.fit-check {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0;
}
@media (max-width: 640px) { .fit-check { grid-template-columns: 1fr; } }
.fit-check .fit-col { border-radius: var(--radius-sm); padding: 20px 22px; }
.fit-check .fit-yes { background: var(--accent-light); border-inline-start: 4px solid var(--accent); }
.fit-check .fit-no { background: var(--paper-soft); border-inline-start: 4px solid var(--ink-soft); }
.fit-check h4 { margin: 0 0 12px; font-family: var(--font-head); font-size: 15.5px; }
.fit-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fit-check li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--ink); }
.fit-check .fit-yes li::before { content: "✓"; color: var(--accent-dark); font-weight: 800; flex-shrink: 0; }
.fit-check .fit-no li::before { content: "✕"; color: var(--ink-soft); font-weight: 800; flex-shrink: 0; }

/* Testimonial cards with avatar initials */
.testimonial { position: relative; padding-top: 44px; }
.testimonial .avatar {
  position: absolute; top: 20px; inset-inline-start: 20px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-grid .testimonial:nth-child(3n+2) .avatar { background: var(--terracotta); }
.testimonial-grid .testimonial:nth-child(3n+3) .avatar { background: var(--plum); }

/* Real-comment style card — lightly framed to read as an authentic screenshot,
   distinct from the polished written testimonials above. */
.real-comment-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14px; color: var(--ink);
}
.real-comment-card .rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-soft); }
.real-comment-card .rc-platform { font-size: 14px; }

/* Article index / hub grid */
.article-index-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
.article-index-card {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-index-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* Lesson thumbnail on top of the card (the article's own YouTube video) */
.article-index-card .aic-thumb { margin: -24px -24px 6px; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--paper-soft); }
.article-index-card .aic-play {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(230, 33, 23, .92); color: #fff; display: grid; place-items: center; font-size: 15px;
}
.article-index-card .aic-cover {
  margin: -24px -24px 6px; aspect-ratio: 16/9; display: grid; place-items: center; font-size: 64px;
  color: rgba(255, 255, 255, .92); background: linear-gradient(135deg, #1f7a5c, var(--green-900));
}
.article-index-card .aic-cover .ic { stroke-width: 1.5; }
.article-index-card:nth-child(4n+2) .aic-cover { background: linear-gradient(135deg, #e0703f, #9c3515); }
.article-index-card:nth-child(4n+3) .aic-cover { background: linear-gradient(135deg, #3d78b3, #1c3f63); }
.article-index-card:nth-child(4n+4) .aic-cover { background: linear-gradient(135deg, #8a58ad, #4b2766); }
.article-index-card span.cat {
  align-self: flex-start; font-size: 12.5px; color: var(--accent-dark); background: var(--accent-light);
  padding: 2px 11px; border-radius: 999px; font-weight: 800; font-family: var(--font-head);
}
.article-index-card h3 { margin: 0; font-size: 18px; line-height: 1.55; }
.article-index-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* The full menu needs ~1080px; below that it folds into the menu button */
.nav-cta-mobile, .nav-mobile-only { display: none; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--paper); padding: 16px 24px 22px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); gap: 4px; margin: 0; font-size: 16.5px;
  }
  .main-nav.open a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .main-nav.open a::after { display: none; }
  .main-nav.open .nav-mobile-only { display: block; }
  .main-nav.open .nav-cta-mobile { display: block; margin-top: 10px; border: 0; text-align: center; background: var(--accent); color: #fff; border-radius: 999px; font-family: var(--font-head); font-weight: 800; }
}
@media (max-width: 640px) {
  .btn-nav { display: none; }
  .header-inner { height: 62px; }
}

/* Header login widget */
#meAuthBtn {
  background: var(--paper); border: 1.5px solid var(--border); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
#meAuthBtn:hover { border-color: var(--accent); color: var(--accent-dark); }
/* Phones: brand + login + menu toggle must fit in one row (the menu toggle was being pushed off-screen) */
@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .header-end { gap: 6px; }
  .brand { flex-shrink: 1; min-width: 0; gap: 8px; }
  .brand-avatar { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; line-height: 1.2; }
  .brand-name-ar { font-size: 12px; }
  .hdr-search { width: 36px; height: 36px; font-size: 17px; }
  #meAuthBtn { padding: 6px 12px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .hdr-search { display: none; }
  .brand-name { white-space: nowrap; }
}
@media (max-width: 350px) {
  #meAuthBtn { display: none; }
}
#meAuthBtn.me-auth-logged-in { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }

#meAuthPanel {
  position: fixed; z-index: 1000; top: 74px; inset-inline-end: 20px;
  width: min(300px, calc(100vw - 32px)); background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: none;
}
#meAuthPanel.open { display: block; }
.me-auth-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.me-auth-head strong { font-family: var(--font-head); font-size: 14.5px; }
.me-auth-head button { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
#meAuthGoogleBtn { display: flex; justify-content: center; min-height: 40px; margin-bottom: 12px; }
.me-auth-divider { text-align: center; color: var(--ink-soft); font-size: 12px; margin: 4px 0 12px; }
#meAuthEmailForm input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; font-family: var(--font-body); font-size: 13.5px; background: var(--paper-soft); color: var(--ink);
}
#meAuthEmailForm button {
  width: 100%; background: var(--gold); color: var(--ink); border: none; border-radius: 999px;
  padding: 10px; font-weight: 800; cursor: pointer; font-family: var(--font-head); font-size: 13.5px;
}
#meAuthEmailForm button:disabled { opacity: 0.65; cursor: default; }
#meAuthStatus { font-size: 12.5px; margin-top: 10px; min-height: 15px; }
.me-auth-success { color: var(--accent-dark); }
.me-auth-error { color: #b23b3b; }
.me-auth-menu { display: none; }
.me-auth-menu.open { display: block; }
.me-auth-menu button { width: 100%; text-align: right; background: none; border: none; padding: 8px 4px; font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.me-auth-menu button:hover { color: #b23b3b; }

/* Floating contact widget */
#meContactBtn {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
#meContactBtn:hover { transform: scale(1.06); background: var(--accent-dark); }

.me-fab-tooltip {
  position: fixed; bottom: 34px; left: 90px; z-index: 998;
  background: var(--ink); color: #fff; font-size: 12.5px; font-family: var(--font-body);
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
#meContactBtn:hover + .me-fab-tooltip,
#meContactBtn.tooltip-active + .me-fab-tooltip { opacity: 1; }

#meContactPanel {
  position: fixed; bottom: 92px; left: 24px; z-index: 999;
  width: min(340px, calc(100vw - 48px)); background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: none; flex-direction: column;
}
#meContactPanel.open { display: flex; }

.me-contact-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: #fff; padding: 14px 18px;
  font-family: var(--font-head); font-weight: 700;
}
.me-contact-head button {
  background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.me-contact-body { padding: 16px 18px 18px; }
.me-contact-hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
#meContactForm { display: flex; flex-direction: column; gap: 8px; }
#meContactForm label { font-size: 13px; font-weight: 700; color: var(--ink); }
#meContactForm input, #meContactForm textarea {
  font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); resize: vertical;
  background: var(--paper-soft); color: var(--ink);
}
#meContactSubmit {
  margin-top: 6px; background: var(--gold); color: var(--ink); border: none;
  border-radius: 999px; padding: 11px; font-weight: 800; cursor: pointer; font-family: var(--font-head);
}
#meContactSubmit:disabled { opacity: 0.6; cursor: default; }
#meContactStatus { font-size: 13px; margin: 6px 0 0; min-height: 16px; }
.me-contact-success { color: var(--accent-dark); }
.me-contact-error { color: #b23b3b; }

/* Share buttons */
.me-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 28px 0; padding: 16px 20px; background: var(--paper-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.me-share span { font-weight: 700; font-family: var(--font-head); font-size: 14px; }
.me-share button {
  border: 1px solid var(--border); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-family: var(--font-body);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.me-share button:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Testimonial wall page */
.wall-section { padding: 50px 0 90px; }
.wall-intro { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.wall-intro h1 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 16px; }
.wall-intro p { color: var(--ink-soft); font-size: 17px; }
.wall-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.wall-filters button {
  border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 20px; font-size: 14px; font-family: var(--font-head);
  font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.wall-filters button:hover { border-color: var(--accent); color: var(--accent-dark); }
.wall-filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.wall-grid {
  column-count: 3; column-gap: 22px;
}
@media (max-width: 900px) { .wall-grid { column-count: 2; } }
@media (max-width: 620px) { .wall-grid { column-count: 1; } }

.wall-card {
  break-inside: avoid; margin-bottom: 22px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 24px; border-inline-start: 4px solid var(--accent);
}
.wall-card p { margin: 0 0 12px; color: var(--ink); font-size: 15px; line-height: 1.75; }
.wall-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wall-card cite { font-family: var(--font-head); font-weight: 700; font-style: normal; color: var(--accent-dark); font-size: 13.5px; }
.wall-card .wall-source {
  font-size: 12px; color: var(--ink-soft); background: var(--paper-soft);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.wall-grid .wall-card:nth-child(3n+2) { border-inline-start-color: var(--terracotta); }
.wall-grid .wall-card:nth-child(3n+2) cite { color: var(--terracotta); }
.wall-grid .wall-card:nth-child(3n+3) { border-inline-start-color: var(--plum); }
.wall-grid .wall-card:nth-child(3n+3) cite { color: var(--plum); }
.wall-grid .wall-card:nth-child(4n+4) { border-inline-start-color: var(--gold); }
.wall-grid .wall-card:nth-child(4n+4) cite { color: var(--gold-dark); }

.wall-cta { text-align: center; margin-top: 60px; padding-top: 50px; border-top: 1px solid var(--border); }
.wall-cta h2 { font-size: 24px; margin: 0 0 12px; }
.wall-cta p { color: var(--ink-soft); margin: 0 0 24px; }

/* Newsletter signup */
.me-newsletter {
  background: var(--gradient-primary); color: #fff; border-radius: var(--radius);
  padding: 32px 34px; margin: 40px 0; text-align: center;
}
.me-newsletter h3 { margin: 0 0 8px; font-size: 21px; }
.me-newsletter p { margin: 0 0 20px; color: rgba(255,255,255,0.88); font-size: 14.5px; }
.me-newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.me-newsletter-form input {
  flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-size: 14.5px;
}
.me-newsletter-form button {
  background: var(--gold); color: #fff; border: none; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; cursor: pointer;
}
.me-newsletter-form button:disabled { opacity: 0.7; cursor: default; }
#meNewsletterStatus { font-size: 13.5px; margin: 12px 0 0; min-height: 16px; color: #fff; }
.me-newsletter-error { color: #ffd7d7 !important; }

/* Floating AI help bot widget (bottom-right) */
#meHelpBotBtn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--gradient-primary); color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
#meHelpBotBtn:hover { transform: scale(1.06); }

.me-fab-tooltip-right {
  position: fixed; bottom: 34px; right: 90px; z-index: 998;
  background: var(--ink); color: #fff; font-size: 12.5px; font-family: var(--font-body);
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
#meHelpBotBtn:hover + .me-fab-tooltip-right { opacity: 1; }

.me-helpbot-nudge {
  position: fixed; bottom: 92px; right: 24px; z-index: 998;
  max-width: 220px; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 13.5px; font-family: var(--font-body); color: var(--ink);
  display: none; align-items: center; gap: 8px; cursor: pointer;
}
.me-helpbot-nudge.show { display: flex; animation: meNudgeIn 0.25s ease; }
.me-helpbot-nudge .me-nudge-close {
  background: none; border: none; color: var(--ink-soft); font-size: 16px; cursor: pointer; line-height: 1; padding: 0 0 0 4px;
}
@keyframes meNudgeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .me-helpbot-nudge.show { display: none; }
}

.me-helpbot-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.me-helpbot-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft);
  animation: meTypingBounce 1.2s infinite ease-in-out;
}
.me-helpbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.me-helpbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes meTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#meHelpBotPanel {
  position: fixed; bottom: 92px; right: 24px; z-index: 999;
  width: min(360px, calc(100vw - 48px)); height: min(480px, calc(100vh - 140px));
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: none; flex-direction: column;
}
#meHelpBotPanel.open { display: flex; }

.me-helpbot-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gradient-primary); color: #fff; padding: 14px 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.me-helpbot-head button {
  background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.me-helpbot-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.me-helpbot-hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
#meHelpBotEmailStep { display: flex; flex-direction: column; gap: 10px; }
#meHelpBotEmail {
  font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper-soft);
}
#meHelpBotStart {
  background: var(--gold); color: #fff; border: none; border-radius: 999px;
  padding: 11px; font-weight: 800; cursor: pointer; font-family: var(--font-head);
}
#meHelpBotChatStep { flex-direction: column; flex: 1; min-height: 0; }
#meHelpBotMessages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.me-helpbot-msg { max-width: 85%; padding: 9px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.me-helpbot-msg-bot { align-self: flex-start; background: var(--paper-soft); color: var(--ink); }
.me-helpbot-msg-bot a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.me-helpbot-msg-user { align-self: flex-end; background: var(--accent-light); color: var(--accent-dark); }
.me-helpbot-escalate {
  background: var(--paper-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px;
}
.me-helpbot-escalate p { margin: 0 0 8px; color: var(--ink-soft); }
.me-helpbot-escalate-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: var(--font-head);
}
.me-helpbot-suggestions {
  background: var(--paper-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px;
}
.me-helpbot-suggestions p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.me-helpbot-suggestion-chip {
  background: #fff; color: var(--accent-dark); border: 1px solid var(--accent);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; text-align: start;
  cursor: pointer; font-family: var(--font-body);
}
.me-helpbot-suggestion-chip:hover { background: var(--accent-light); }
#meHelpBotForm { display: flex; gap: 8px; }
#meHelpBotQuestion {
  flex: 1; font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--paper-soft);
}
#meHelpBotForm button[type="submit"] {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-family: var(--font-head); font-size: 13px;
}

/* Bold color CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--accent); background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 0 0 14px; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 580px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.cta-band .btn-primary:hover { background: #ffc53d; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* On pages that are intentionally one long uninterrupted scroll (e.g. the
   testimonials wall), the fixed-position floating buttons stay pinned to
   the same screen spot through the whole scroll and end up visually
   sitting on top of content the entire way down -- hide them there only. */
body.hide-floating-widgets #meContactBtn,
body.hide-floating-widgets #meHelpBotBtn,
body.hide-floating-widgets .me-fab-tooltip,
body.hide-floating-widgets .me-fab-tooltip-right,
body.hide-floating-widgets .me-helpbot-nudge { display: none !important; }

/* Google-sign-in gate for free lesson PDFs (assets/js/pdf-gate.js) */
.me-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 24, 30, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.me-gate[hidden] { display: none; }
.me-gate-card { position: relative; width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px 22px; text-align: center; }
.me-gate-close { position: absolute; top: 10px; left: 12px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.me-gate-eyebrow { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--accent-dark); }
.me-gate-card h3 { margin: 0 0 10px; font-size: 20px; }
.me-gate-text { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.me-gate-google { display: flex; justify-content: center; min-height: 44px; }
.me-gate-status { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.me-gate-status.error { color: #b23b3b; }
.me-gate-status.ok { color: var(--accent-dark); }
.me-gate-legal { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }
[data-gated-pdf][aria-busy="true"] { opacity: .7; pointer-events: none; }

/* YouTube loop: caption under lesson videos, author box, subscribe button */
.prose .video-embed + .video-caption { margin: -18px 0 30px; font-size: 14px; color: var(--ink-soft); }
.video-caption a { font-weight: 700; }
.btn-yt { background: #d62f2f; color: #fff; box-shadow: var(--shadow-sm); }
.btn-yt:hover { background: #b82323; color: #fff; transform: translateY(-2px); }
.author-box {
  display: flex; gap: 18px; align-items: flex-start; margin: 50px 0 0; padding: 22px 24px;
  background: var(--paper-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.prose .author-box p { margin: 0 0 10px; font-size: 15px; }
.prose .author-box .author-name { font-family: var(--font-head); font-weight: 800; font-size: 16.5px; margin-bottom: 6px; }
.author-box .author-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.author-box .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 520px) { .author-box { flex-direction: column; padding: 20px; } }
.footer-yt { margin: 0 0 18px; }

/* Phones: one floating button instead of two covering the text on both sides.
   The help bot also forwards questions to Noor by email, so the separate contact
   button is hidden. */
@media (max-width: 600px) {
  #meContactBtn, #meContactBtn + .me-fab-tooltip, #meContactPanel { display: none !important; }
  #meHelpBotBtn { bottom: 18px; right: 16px; width: 52px; height: 52px; font-size: 22px; }
  .me-fab-tooltip-right { display: none; }
}

/* Listen-to-English buttons (assets/js/learner.js) */
.me-say { unicode-bidi: isolate; white-space: normal; }
.me-say-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 3px;
  width: 22px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 50%;
  background: var(--paper); font-size: 11px; line-height: 1; cursor: pointer; vertical-align: 2px;
  opacity: .75; transition: opacity .15s ease, border-color .15s ease;
}
.me-say-btn:hover, .me-say-btn:focus-visible { opacity: 1; border-color: var(--accent); }
.me-say-toast {
  position: fixed; bottom: 86px; left: 50%; transform: translate(-50%, 20px); z-index: 1001;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 32px); background: var(--ink); color: #fff; border-radius: 14px;
  padding: 10px 16px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.me-say-toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.me-say-toast button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 5px 12px; font-family: var(--font-body); cursor: pointer; }
.me-say-toast button:disabled { background: #3f8a5c; cursor: default; }
.me-say-toast a { color: #ffd98a; font-weight: 700; }

/* Shared quiz look (article quizzes rendered by assets/js/quiz.js, lesson pages, placement test) */
.lesson-quiz { margin: 20px 0; }
.quiz-q { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.quiz-q-text { margin: 0 0 14px; font-weight: 700; unicode-bidi: plaintext; text-align: right; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice {
  display: block; width: 100%; text-align: start; background: var(--paper-soft);
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); cursor: pointer;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--accent); }
.quiz-choice.correct { background: #e5f3ea; border-color: #3f8a5c; color: #1f5c37; font-weight: 700; }
.quiz-choice.incorrect { background: #fbeaea; border-color: #c15353; color: #8a2f2f; text-decoration: line-through; }
.quiz-choice:disabled { cursor: default; }
.quiz-feedback { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); unicode-bidi: plaintext; text-align: right; }
.quiz-result { background: var(--paper); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; text-align: center; }
.quiz-result strong { font-family: var(--font-head); font-size: 20px; display: block; margin-bottom: 6px; }
.quiz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* Chapters under embedded lesson videos */
.video-chapters { margin: -14px 0 30px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; }
.video-chapters summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.video-chapters ol { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 6px; }
.video-chapters a { display: flex; gap: 10px; color: var(--ink); }
.video-chapters a b { direction: ltr; color: var(--accent-dark); min-width: 44px; font-variant-numeric: tabular-nums; }

/* Learning-path cards (homepage + paths index): color per path, stacked lesson thumbnails */
.path-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.path-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path-top { position: relative; height: 190px; padding: 18px 20px; overflow: hidden; background: linear-gradient(135deg, #1f7a5c, #0c3a2c); }
.path-top .lvl {
  position: relative; z-index: 2; display: inline-block; background: rgba(255, 255, 255, .95); color: var(--accent-dark);
  font-family: var(--font-head); font-weight: 900; font-size: 13.5px; padding: 3px 12px; border-radius: 999px;
}
.path-top .big {
  position: absolute; inset-inline-start: 16px; bottom: -20px; direction: ltr;
  font-family: var(--font-head); font-weight: 900; font-size: 108px; line-height: 1; color: rgba(255, 255, 255, .16);
}
.thumb-stack { position: absolute; inset-inline-end: 22px; top: 46px; width: 210px; height: 130px; }
.thumb-stack img {
  position: absolute; width: 176px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px;
  border: 3px solid #fff; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .45); background: #111;
}
.thumb-stack img:nth-child(1) { inset-inline-end: 34px; top: 16px; transform: rotate(-7deg); }
.thumb-stack img:nth-child(2) { inset-inline-end: 16px; top: 8px; transform: rotate(-2deg); }
.thumb-stack img:nth-child(3) { inset-inline-end: 0; top: 0; transform: rotate(4deg); }
.path-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.path-body h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.45; }
.path-body p { margin: 8px 0 16px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.path-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-soft); }
.path-meta span { display: inline-flex; align-items: center; gap: 5px; }
.path-go {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border); font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent-dark);
}
.path-go > span:last-child { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 19px; }
.pc-terra .path-top { background: linear-gradient(135deg, #e0703f, #9c3515); }
.pc-terra .lvl, .pc-terra .path-go { color: #9c3515; } .pc-terra .path-go > span:last-child { background: var(--terracotta); }
.pc-blue .path-top { background: linear-gradient(135deg, #3d78b3, #1c3f63); }
.pc-blue .lvl, .pc-blue .path-go { color: var(--blue); } .pc-blue .path-go > span:last-child { background: var(--blue); }
.pc-plum .path-top { background: linear-gradient(135deg, #8a58ad, #4b2766); }
.pc-plum .lvl, .pc-plum .path-go { color: var(--plum); } .pc-plum .path-go > span:last-child { background: var(--plum); }
.pc-gold .path-top { background: linear-gradient(135deg, #f0a92a, #b36f06); }
.pc-gold .lvl, .pc-gold .path-go { color: var(--gold-dark); } .pc-gold .path-go > span:last-child { background: var(--gold-dark); }

/* Dark video strip (homepage "latest lessons") */
.band-dark { position: relative; overflow: hidden; background: var(--green-950); padding: 76px 0; }
.band-dark > .wrap { position: relative; }
.band-dark .section-head h2 { color: #fff; }
.band-dark .section-head p { color: rgba(255, 255, 255, .7); }
.band-dark .see-all { color: var(--gold); }
.vid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vid-card {
  border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; transition: transform .2s ease, background .2s ease;
}
.vid-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); }
.vid-card .vid-im { position: relative; display: block; }
.vid-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.vid-card .vid-dur { position: absolute; bottom: 8px; left: 8px; background: rgba(0, 0, 0, .82); font-size: 12.5px; padding: 1px 8px; border-radius: 6px; direction: ltr; }
.vid-card .vid-new { position: absolute; top: 8px; right: 8px; background: var(--gold); color: var(--on-gold); font-family: var(--font-head); font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.vid-card .vid-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(230, 33, 23, .92); display: grid; place-items: center; font-size: 22px; opacity: 0; transition: opacity .2s ease;
}
.vid-card:hover .vid-play { opacity: 1; }
.vid-card strong { display: block; padding: 12px 14px 4px; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.6; }
.vid-card small { display: block; padding: 0 14px 14px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.band-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
@media (max-width: 900px) {
  .vid-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .vid-card { scroll-snap-align: start; }
}

.home-section { padding: 84px 0 20px; }

/* Phones: long button labels wrap instead of pushing the page sideways */
@media (max-width: 600px) {
  .stats-card .stat strong { font-size: 17px; }
  .stats-card .stat span { font-size: 12.5px; line-height: 1.5; }
  .stats-card .stat { padding: 0 10px; gap: 8px; }
  .stat-ic { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .btn { white-space: normal; text-align: center; }
  .page-hero, .article-hero { padding: 36px 0 34px; }
}

/* ---------- Personal layer (assets/js/personal.js) ---------- */
/* Phone tab bar */
.me-tabbar { display: none; }
@media (max-width: 760px) {
  .me-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 1001;
    background: var(--paper); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.25);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .me-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 4px 2px; border-radius: 12px; }
  .me-tabbar svg { width: 22px; height: 22px; }
  .me-tabbar a.on { color: var(--accent-dark); }
  .me-tabbar a.star { color: var(--on-gold); background: var(--gold); margin: -2px 2px; }
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-tabbar #meContactBtn, body.has-tabbar #meHelpBotBtn { bottom: calc(80px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  body.has-tabbar .me-fab-tooltip, body.has-tabbar .me-fab-tooltip-right { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.has-tabbar #meContactPanel, body.has-tabbar .me-helpbot-nudge { bottom: calc(140px + env(safe-area-inset-bottom)); }
}

/* "Your next step" at the end of reading pages */
.me-next { margin: 40px 0 10px; padding: 22px 24px; border-radius: var(--radius); background: var(--green-900, #0c3a2c); color: #fff; }
.me-next h2 { color: #fff; margin: 4px 0 8px; font-size: 21px; }
.me-next p { color: #d6e8df; margin: 0 0 14px; }
.me-next a:not(.btn) { color: var(--gold); font-weight: 700; }
.me-next-label { color: var(--gold); font-weight: 800; font-size: 13px; }
.me-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.me-next .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.me-next .btn-ghost:hover { background: rgba(255,255,255,.1); }
.me-next .btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: none; }

/* Homepage greeting + today's 10 minutes */
.me-home { padding: 22px 0 24px; background: var(--cream, var(--paper-soft)); }
.me-home-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 24px; border: 1px solid var(--border); }
.me-home-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.me-home-hello { margin: 0; font-size: 24px; }
.me-home-type { margin: 4px 0 0; color: var(--ink-soft); }
.me-streak { text-align: center; background: var(--gold-light, #fdf1d6); border-radius: 16px; padding: 8px 14px; min-width: 82px; }
.me-streak strong { display: block; font-size: 26px; line-height: 1.1; color: var(--gold-dark, #8a6a1c); }
.me-streak span { font-size: 12px; color: var(--ink-soft); }
.me-streak.zero strong { color: var(--ink-soft); }
.me-home-card h3 { margin: 18px 0 8px; font-size: 18px; }
.me-today { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 8px; list-style: arabic-indic; }
.me-today a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.me-phrase { font-weight: 800; color: var(--accent-dark); }
.me-say-today { border: 1px solid var(--border); background: var(--paper-soft); border-radius: 999px; padding: 0 8px; cursor: pointer; }
.me-link { background: none; border: 0; padding: 0; color: var(--accent-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.me-home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.me-home-actions .btn[disabled] { opacity: .65; cursor: default; }

/* Personal list page: the next lesson to do */
.me-next-here { outline: 3px solid var(--gold); outline-offset: 3px; position: relative; }
.me-next-flag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* One help button (help-hub.js) replaces the separate floating buttons: the help bot,
   the contact form and WhatsApp open from its menu. The widgets' own buttons are hidden. */
body.me-hub #meContactBtn, body.me-hub #meHelpBotBtn,
body.me-hub .me-fab-tooltip, body.me-hub .me-fab-tooltip-right,
body.me-hub .me-helpbot-nudge { display: none !important; }
body.me-hub #meContactPanel { left: auto; right: 24px; }
#meHelpHub { position: fixed; bottom: 22px; right: 22px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.me-hub-btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; padding: 12px 18px; border-radius: 999px;
  background: var(--gradient-primary); color: #fff; font: 700 15px var(--font-body); box-shadow: var(--shadow); }
.me-hub-btn:hover { transform: translateY(-1px); }
.me-hub-menu { background: var(--paper, #fff); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; width: 270px; }
.me-hub-menu[hidden] { display: none; }
.me-hub-menu button, .me-hub-menu a { display: block; width: 100%; text-align: right; background: none; border: none; cursor: pointer; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font: inherit; }
.me-hub-menu button:hover, .me-hub-menu a:hover { background: var(--paper-soft, #f6f1e7); }
.me-hub-menu b { display: block; font-size: 15px; }
.me-hub-menu span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 600px) {
  #meHelpHub { bottom: 16px; right: 14px; }
  .me-hub-btn { padding: 11px 15px; font-size: 14px; }
  body.me-hub #meContactPanel { left: 12px; right: 12px; width: auto; }
  body.me-hub #meContactPanel.open { display: flex !important; }
}
@media (max-width: 760px) {
  body.has-tabbar #meHelpHub { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
