/**
 * dr-page-les-1.css
 * Darja Rihla — Nederlandse les 1: Jezelf voorstellen
 * Thema: Lente · Spring Green · Nieuw Begin
 */

/* ─────────────────────────────────────────────────────────────────────
   1. BODY OVERRIDE — scoped op de les-1 body class + :has() fallback
   ───────────────────────────────────────────────────────────────────── */
/* Achtergrond */
html:has(.dr-les1-page),
body:has(.dr-les1-page) {
  background: #080f0d !important;
}

/* Hide hero + rail */
body.dr-page-les-1-active .dr-single-hero-wrap,
body:has(.dr-les1-page) .dr-single-hero-wrap {
  display: none !important;
}
body.dr-page-les-1-active .dr-post-rail,
body:has(.dr-les1-page) .dr-post-rail {
  display: none !important;
}

/* Shell — omzetten naar block zodat grid/flex niet meer beperkt */
body.dr-page-les-1-active .dr-single-shell,
body:has(.dr-les1-page) .dr-single-shell {
  display: block !important;
}

/* Volledige breedte voor ALLE lagen in de container-keten */
body.dr-page-les-1-active .dr-single-template-main,
body.dr-page-les-1-active .dr-single-body-wrap,
body.dr-page-les-1-active .dr-single-shell,
body.dr-page-les-1-active .dr-single-content-wrap,
body.dr-page-les-1-active .dr-single-content-wrap > .wp-block-post-content,
body:has(.dr-les1-page) .dr-single-template-main,
body:has(.dr-les1-page) .dr-single-body-wrap,
body:has(.dr-les1-page) .dr-single-shell,
body:has(.dr-les1-page) .dr-single-content-wrap,
body:has(.dr-les1-page) .dr-single-content-wrap > .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  padding-block: 0 !important;
  box-shadow: none !important;
  background: #080f0d !important;
  color: #e4f0e8 !important;
}

/* Gutenberg wp:html wrapper + de les-root zelf */
body:has(.dr-les1-page) .wp-block-html,
body:has(.dr-les1-page) .wp-block-html > .dr-les1-page,
body:has(.dr-les1-page) .dr-les1-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   2. Design tokens
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-page {
  --l1-bg:       #080f0d;
  --l1-cream:    #101a16;
  --l1-cream2:   #0c1410;
  --l1-card:     rgba(16, 26, 22, 0.98);
  --l1-card-solid: #101a16;
  --l1-ink:      #e4f0e8;
  --l1-muted:    #5a8a72;
  --l1-border:   rgba(80, 200, 140, 0.13);
  --l1-shadow:   rgba(0, 0, 0, 0.55);

  --l1-green:    #2ec880;
  --l1-green-s:  rgba(46, 200, 128, 0.16);
  --l1-teal:     #1ab0c0;
  --l1-teal-s:   rgba(26, 176, 192, 0.16);
  --l1-gold:     #d0a828;
  --l1-gold-s:   rgba(208, 168, 40, 0.16);
  --l1-rose:     #e04060;
  --l1-rose-s:   rgba(224, 64, 96, 0.16);
  --l1-blue:     #3888e0;
  --l1-blue-s:   rgba(56, 136, 224, 0.16);

  --l1-glass-bg: rgba(8, 12, 10, 0.97);
  --l1-glass-blur: 18px;
  --l1-r:        8px;
  --l1-r-lg:     14px;
  --l1-speed:    0.22s;

  font-family: var(--dr-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--l1-ink);
  background: var(--l1-bg);
  position: relative;
  min-height: 100vh;

  /* Kleur-CONTRACT voor de gedeelde basis-laag (dr-lesson-base) */
  --les-accent:   var(--l1-green);
  --les-accent-2: var(--l1-teal);
  --les-bg:       var(--l1-bg);
  --les-ink:      var(--l1-ink);
  --les-muted:    var(--l1-muted);
}

/* ─────────────────────────────────────────────────────────────────────
   2b. LICHT THEMA — dark/light-knop (gedeelde basis-laag, data-lesson-theme)
   Componenten lezen allemaal --l1-*; we overschrijven enkel die tokens +
   de WP-container-keten. Geen component-CSS aangeraakt → toggle werkt overal.
   ───────────────────────────────────────────────────────────────────── */
html[data-lesson-theme="light"] body:has(.dr-les1-page),
html[data-lesson-theme="light"] .dr-single-template-main,
html[data-lesson-theme="light"] .dr-single-body-wrap,
html[data-lesson-theme="light"] .dr-single-shell,
html[data-lesson-theme="light"] .dr-single-content-wrap,
html[data-lesson-theme="light"] .dr-single-content-wrap > .wp-block-post-content {
  background: #eef5f0 !important;
  color: #15271e !important;
}
html[data-lesson-theme="light"] .dr-les1-page {
  --l1-bg:        #eef5f0;
  --l1-cream:     #ffffff;
  --l1-cream2:    #f5faf7;
  --l1-card:      rgba(255, 255, 255, 0.98);
  --l1-card-solid:#ffffff;
  --l1-ink:       #15271e;
  --l1-muted:     #3d6651;
  --l1-border:    rgba(18, 138, 82, 0.22);
  --l1-shadow:    rgba(20, 60, 40, 0.10);
  --l1-green:     #0f7a47;
  --l1-green-s:   rgba(18, 138, 82, 0.12);
  --l1-glass-bg:  rgba(255, 255, 255, 0.95);
  background: #eef5f0;
  color: #15271e;
}
html[data-lesson-theme="light"] body.dr-page-les-1-active::before { opacity: 0.4; }
html[data-lesson-theme="light"] .dr-les1-spring-bg { opacity: 0.35; }

/* ── Breadcrumb (premium-standaard, Fase B) ── */
.dr-les1-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--l1-muted);
  margin-bottom: 14px;
}
.dr-les1-breadcrumb a { color: var(--l1-green); text-decoration: none; }
.dr-les1-breadcrumb a:hover { text-decoration: underline; }

/* ── Completion-touch op de afsluiting (Fase B) ── */
.dr-les1-completion-badge {
  font-size: 18px;
  font-weight: 800;
  color: var(--l1-green);
  margin-bottom: 8px;
}
.dr-les1-completion-text {
  font-size: 14px;
  color: var(--l1-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   3. ANIMATIES
   ───────────────────────────────────────────────────────────────────── */
@keyframes les1FadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes les1Shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes les1Spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────
   4. ACHTERGROND
   ───────────────────────────────────────────────────────────────────── */
body.dr-page-les-1-active::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(rgba(46, 200, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 200, 128, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.dr-les1-spring-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-content: start; gap: 60px;
  padding: 40px;
  opacity: 0.04;
  font-size: 28px;
  user-select: none;
}

/* ─────────────────────────────────────────────────────────────────────
   5. SCROLL PROGRESS BAR
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, var(--l1-green), var(--l1-teal));
  transform-origin: left center;
  transform: scaleX(0);
  animation: les1ProgressGrow linear both;
  animation-timeline: scroll(root block);
}
@keyframes les1ProgressGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─────────────────────────────────────────────────────────────────────
   6. NAVIGATIE
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8, 12, 10, 0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(46, 200, 128, 0.2);
  border-top: 3px solid var(--l1-green);
  padding: 0 clamp(16px, 4vw, 40px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

body.admin-bar .dr-les1-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .dr-les1-nav { top: 46px; }
}

.dr-les1-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; gap: 16px;
}

.dr-les1-nav-brand {
  font-weight: 800; font-size: 14px; letter-spacing: 0.04em;
  color: #2ec880 !important; white-space: nowrap;
  text-decoration: none !important;
}

.dr-les1-nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.dr-les1-nav-links a {
  display: block; padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(46, 200, 128, 0.28) !important;
  font-size: 12px; font-weight: 600;
  color: #e4f0e8 !important;
  text-decoration: none !important;
  background: rgba(16, 26, 22, 0.9) !important;
  transition: background var(--l1-speed), color var(--l1-speed), border-color var(--l1-speed);
  touch-action: manipulation;
}

.dr-les1-nav-links a:hover,
.dr-les1-nav-links a:focus-visible {
  background: var(--l1-green-s) !important;
  border-color: var(--l1-green) !important;
  color: var(--l1-green) !important;
  outline: none;
}

.dr-les1-nav-links a.is-done::after {
  content: " ✓";
  color: var(--l1-green);
}

/* ─────────────────────────────────────────────────────────────────────
   7. CONTAINER
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-container {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative; z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────
   8. HERO
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-hero-section {
  padding: clamp(60px, 10vw, 110px) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden; z-index: 1;
}

.dr-les1-hero-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
}

.dr-les1-hero-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--l1-green); text-transform: uppercase;
  margin-bottom: 16px;
}

.dr-les1-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.08;
  color: var(--l1-ink); margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.dr-les1-hero-em {
  font-style: italic;
  background: linear-gradient(120deg, var(--l1-green), var(--l1-teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dr-les1-hero-subtitle {
  font-size: 16px; color: var(--l1-muted); margin: 0 0 16px;
  font-weight: 500;
}

.dr-les1-hero-ar {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
  color: var(--l1-green); font-weight: 700;
}

.dr-les1-hero-desc {
  font-size: 15px; color: var(--l1-muted); max-width: 560px;
  line-height: 1.7; margin: 0 0 24px;
}

.dr-les1-hero-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.dr-les1-hero-stat {
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px;
  background: var(--l1-green-s);
  border: 1px solid var(--l1-green);
  color: var(--l1-green);
}

.dr-les1-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; min-width: 220px;
}

.dr-les1-hero-card {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: 18px 14px;
  text-decoration: none !important;
  color: var(--l1-ink) !important;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 600;
  transition: background var(--l1-speed), border-color var(--l1-speed), transform var(--l1-speed);
  text-align: center;
}
.dr-les1-hero-card:hover {
  background: var(--l1-green-s);
  border-color: var(--l1-green);
  transform: translateY(-2px);
}
.dr-les1-hero-card-num {
  font-size: 18px; font-weight: 900; color: var(--l1-green);
  display: block;
}

@media (max-width: 680px) {
  .dr-les1-hero-inner { grid-template-columns: 1fr; }
  .dr-les1-hero-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────
   9. VOORTGANG
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-voortgang-section {
  padding: 0 0 clamp(32px, 4vw, 56px);
  position: relative; z-index: 1;
}

.dr-les1-voortgang-card {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: clamp(20px, 3vw, 32px);
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 16px 32px;
}

.dr-les1-voortgang-title {
  font-size: 14px; font-weight: 700; color: var(--l1-green);
  letter-spacing: 0.04em; width: 100%;
}

.dr-les1-voortgang-rows {
  display: flex; gap: 24px; flex-wrap: wrap; flex: 1;
}

.dr-les1-voortgang-row {
  display: flex; flex-direction: column; gap: 2px;
}

.dr-les1-voortgang-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--l1-muted);
}

.dr-les1-voortgang-row strong {
  font-size: 22px; font-weight: 900; color: var(--l1-ink);
}

.dr-les1-voortgang-reset {
  background: transparent;
  border: 1px solid var(--l1-border);
  border-radius: 99px;
  color: var(--l1-muted);
  font-size: 12px; cursor: pointer;
  padding: 8px 18px;
  transition: border-color var(--l1-speed), color var(--l1-speed);
  font-family: inherit;
}
.dr-les1-voortgang-reset:hover {
  border-color: var(--l1-rose);
  color: var(--l1-rose);
}

/* ─────────────────────────────────────────────────────────────────────
   10. SECTIE HEADERS
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-section {
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative; z-index: 1;
}

.dr-les1-section--alt {
  background: rgba(16, 26, 22, 0.4);
}

.dr-les1-section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.dr-les1-section-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--l1-green); text-transform: uppercase;
  margin-bottom: 14px;
}

.dr-les1-section-icon {
  font-size: 18px;
}

.dr-les1-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--l1-ink);
  margin: 0 0 12px; line-height: 1.18;
}

.dr-les1-section-ar {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
  color: var(--l1-gold); font-weight: 700;
  font-size: 0.85em;
}

.dr-les1-section-intro {
  font-size: 14px; color: var(--l1-muted); max-width: 600px;
  line-height: 1.7; margin: 0 0 4px;
}

/* ─────────────────────────────────────────────────────────────────────
   11. FLIP CARDS (WOORDENSCHAT)
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-carousel-wrap {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}

.dr-les1-fliptrack {
  flex: 1; overflow-x: auto; overflow-y: hidden;
  display: flex; gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.dr-les1-fliptrack::-webkit-scrollbar { display: none; }

.dr-les1-flipcard {
  flex: 0 0 220px; height: 260px;
  perspective: 900px;
  cursor: pointer;
  scroll-snap-align: start;
  outline: none;
}
.dr-les1-flipcard:focus-visible .dr-les1-flipcard-inner {
  box-shadow: 0 0 0 3px var(--l1-green);
}

.dr-les1-flipcard-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  border-radius: var(--l1-r-lg);
}
.dr-les1-flipcard.is-flipped .dr-les1-flipcard-inner {
  transform: rotateY(180deg);
}

.dr-les1-flipcard-front,
.dr-les1-flipcard-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--l1-r-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 20px;
  text-align: center;
}

.dr-les1-flipcard-front {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dr-les1-flipcard-back {
  background: #0c1e18;
  border: 1px solid rgba(46, 200, 128, 0.22);
  transform: rotateY(180deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dr-les1-flipcard-emoji {
  font-size: 36px; display: block;
}

.dr-les1-flipcard-nl {
  font-size: 20px; font-weight: 800; color: var(--l1-ink);
}

.dr-les1-flipcard-en {
  font-size: 12px; color: var(--l1-muted);
}

.dr-les1-flipcard-ar {
  font-size: 22px; font-weight: 700;
  color: var(--l1-green);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
  display: block;
}

.dr-les1-flipcard-dj {
  font-size: 15px; color: var(--l1-teal); font-style: italic;
}

.dr-les1-flipcard-ex {
  font-size: 11px; color: var(--l1-muted); line-height: 1.5;
  margin-top: 4px;
}

.dr-les1-audio-btn {
  background: var(--l1-green-s);
  border: 1px solid var(--l1-green);
  border-radius: 99px; padding: 4px 12px;
  color: var(--l1-green); font-size: 12px;
  cursor: pointer; font-family: inherit;
  transition: background var(--l1-speed);
  margin-top: 4px;
}
.dr-les1-audio-btn:hover { background: var(--l1-green); color: var(--l1-bg); }

.dr-les1-prev,
.dr-les1-next {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: 50%; width: 40px; height: 40px;
  color: var(--l1-ink); font-size: 18px;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--l1-speed), border-color var(--l1-speed);
  font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.dr-les1-prev:hover, .dr-les1-next:hover {
  background: var(--l1-green-s); border-color: var(--l1-green);
  color: var(--l1-green);
}

.dr-les1-carousel-dots {
  display: flex; gap: 6px; justify-content: center;
}
.dr-les1-carousel-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--l1-border);
  transition: background var(--l1-speed), transform var(--l1-speed);
}
.dr-les1-carousel-dots .dot.is-active {
  background: var(--l1-green); transform: scale(1.4);
}

/* ─────────────────────────────────────────────────────────────────────
   12. ZINNEN
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-phrase-list {
  display: flex; flex-direction: column; gap: 16px;
}

.dr-les1-phrase-item {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 6px 16px;
  align-items: center;
}

.dr-les1-phrase-nl {
  font-size: 17px; font-weight: 700; color: var(--l1-ink);
  grid-column: 1;
}

.dr-les1-phrase-item .dr-les1-audio-btn {
  grid-column: 2; grid-row: 1 / span 3;
  align-self: center;
}

.dr-les1-phrase-tounsi {
  font-size: 13px; color: var(--l1-teal); font-style: italic;
  grid-column: 1;
}

.dr-les1-phrase-ar {
  font-size: 15px; font-weight: 700;
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
  color: var(--l1-green); grid-column: 1;
}

/* ─────────────────────────────────────────────────────────────────────
   13. DIALOOG
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-dialogue {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 760px; margin: 0 auto;
}

.dr-les1-turn {
  display: flex; gap: 14px; align-items: flex-end;
}

.dr-les1-turn--b {
  flex-direction: row-reverse;
}

.dr-les1-turn-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  flex-shrink: 0;
}

.dr-les1-turn--a .dr-les1-turn-avatar {
  background: var(--l1-teal-s); border: 1px solid var(--l1-teal);
  color: var(--l1-teal);
}

.dr-les1-turn--b .dr-les1-turn-avatar {
  background: var(--l1-green-s); border: 1px solid var(--l1-green);
  color: var(--l1-green);
}

.dr-les1-turn-bubble {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: 14px 18px;
  max-width: 72%;
  display: flex; flex-direction: column; gap: 4px;
}

.dr-les1-turn--b .dr-les1-turn-bubble {
  border-color: rgba(46, 200, 128, 0.2);
}

.dr-les1-turn-nl {
  font-size: 15px; font-weight: 700; color: var(--l1-ink);
}

.dr-les1-turn-dj {
  font-size: 12px; color: var(--l1-muted); font-style: italic;
}

.dr-les1-turn-bubble .dr-les1-audio-btn {
  align-self: flex-start; margin-top: 6px;
  font-size: 11px; padding: 3px 10px;
}

/* ─────────────────────────────────────────────────────────────────────
   14. SCHRIJFOEFENING
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-typo-wrap {
  overflow: hidden; margin-bottom: 12px;
}

.dr-les1-typo-track {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dr-les1-typo-track::-webkit-scrollbar { display: none; }
.dr-les1-typo-track::-webkit-scrollbar { display: none; }

.dr-les1-typo-card {
  flex: 0 0 100%; scroll-snap-align: start;
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; text-align: center;
}

.dr-les1-typo-ar {
  font-size: 32px; font-weight: 700;
  color: var(--l1-green);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
}

.dr-les1-typo-hint {
  font-size: 13px; color: var(--l1-muted); font-style: italic;
}

.dr-les1-typo-input {
  background: rgba(8, 12, 10, 0.7);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r);
  padding: 12px 20px; font-size: 16px;
  color: var(--l1-ink); font-family: inherit;
  width: 100%; max-width: 400px;
  transition: border-color var(--l1-speed);
  text-align: center;
}
.dr-les1-typo-input:focus {
  outline: none; border-color: var(--l1-green);
}
.dr-les1-typo-input.is-correct { border-color: var(--l1-green); color: var(--l1-green); }
.dr-les1-typo-input.is-wrong   { border-color: var(--l1-rose); color: var(--l1-rose); }

.dr-les1-typo-submit {
  background: var(--l1-green);
  border: none; border-radius: 99px;
  padding: 10px 28px; font-size: 14px; font-weight: 700;
  color: var(--l1-bg); cursor: pointer;
  font-family: inherit;
  transition: opacity var(--l1-speed);
}
.dr-les1-typo-submit:hover { opacity: 0.88; }
.dr-les1-typo-submit:disabled { opacity: 0.4; cursor: default; }

.dr-les1-typo-feedback {
  font-size: 14px; font-weight: 700; min-height: 20px;
}
.dr-les1-typo-feedback.is-correct { color: var(--l1-green); }
.dr-les1-typo-feedback.is-wrong   { color: var(--l1-rose); }

.dr-les1-typo-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   15. QUIZ
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-quiz-wrap {
  max-width: 780px; margin: 0 auto;
}

.dr-les1-quiz-progress-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}

.dr-les1-quiz-progress-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--l1-muted);
  white-space: nowrap;
}

.dr-les1-quiz-progress-track {
  flex: 1; height: 4px; border-radius: 99px;
  background: var(--l1-border); overflow: hidden;
}

.dr-les1-quiz-progress-fill {
  height: 100%; background: var(--l1-green);
  border-radius: 99px; width: 0%;
  transition: width 0.4s ease;
}

.dr-les1-quiz-progress-count {
  font-size: 13px; font-weight: 700; color: var(--l1-green);
  white-space: nowrap;
}

.dr-les1-quiz-card {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: clamp(24px, 4vw, 40px);
  min-height: 280px;
}

.dr-les1-quiz-q-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--l1-green); text-transform: uppercase;
  margin-bottom: 12px;
}

.dr-les1-quiz-question {
  font-size: clamp(16px, 2.2vw, 20px); font-weight: 700;
  color: var(--l1-ink); margin-bottom: 8px; line-height: 1.4;
}

.dr-les1-quiz-hint {
  font-size: 13px; color: var(--l1-muted); font-style: italic;
  margin-bottom: 20px; min-height: 18px;
}

.dr-les1-quiz-options {
  display: flex; flex-direction: column; gap: 10px;
}

.dr-les1-quiz-opt {
  background: rgba(8, 12, 10, 0.6);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r);
  padding: 12px 18px;
  color: var(--l1-ink) !important;
  text-align: left; cursor: pointer;
  font-size: 14px; font-weight: 500;
  font-family: inherit;
  transition: background var(--l1-speed), border-color var(--l1-speed);
}
.dr-les1-quiz-opt:hover:not(:disabled) {
  background: var(--l1-green-s); border-color: var(--l1-green);
}
.dr-les1-quiz-opt.is-correct {
  background: var(--l1-green-s) !important;
  border-color: var(--l1-green) !important;
  color: var(--l1-green) !important;
}
.dr-les1-quiz-opt.is-wrong {
  background: var(--l1-rose-s) !important;
  border-color: var(--l1-rose) !important;
  color: var(--l1-rose) !important;
}
.dr-les1-quiz-opt:disabled { cursor: default; }

.dr-les1-quiz-feedback {
  font-size: 14px; font-weight: 700; margin-top: 16px;
  min-height: 20px;
}
.dr-les1-quiz-feedback.is-correct { color: var(--l1-green); }
.dr-les1-quiz-feedback.is-wrong   { color: var(--l1-rose); }

/* ─────────────────────────────────────────────────────────────────────
   16. HERHALING
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 40px;
}

.dr-les1-recap-card {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r);
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--l1-speed);
}
.dr-les1-recap-card:hover { border-color: var(--l1-green); }

.dr-les1-recap-emoji { font-size: 22px; }
.dr-les1-recap-nl { font-size: 15px; font-weight: 800; color: var(--l1-ink); }
.dr-les1-recap-ar {
  font-size: 14px; font-weight: 700; color: var(--l1-green);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl; unicode-bidi: isolate;
}
.dr-les1-recap-dj { font-size: 11px; color: var(--l1-muted); font-style: italic; }

.dr-les1-phrase-recap {
  background: var(--l1-card);
  border: 1px solid var(--l1-border);
  border-radius: var(--l1-r-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.dr-les1-phrase-recap-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--l1-green); text-transform: uppercase;
  margin-bottom: 16px;
}

.dr-les1-phrase-recap-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--l1-border);
}
.dr-les1-phrase-recap-item:last-child { border-bottom: none; }

.dr-les1-phrase-recap-nl {
  font-size: 14px; font-weight: 700; color: var(--l1-ink);
}

.dr-les1-phrase-recap-dj {
  font-size: 13px; color: var(--l1-muted); font-style: italic;
  text-align: right;
}

.dr-les1-next-lesson {
  text-align: center;
}

.dr-les1-next-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--l1-green);
  color: var(--l1-bg) !important;
  text-decoration: none !important;
  padding: 16px 32px; border-radius: 99px;
  font-size: 15px; font-weight: 800;
  transition: opacity var(--l1-speed);
}
.dr-les1-next-btn small {
  font-size: 11px; font-weight: 500; opacity: 0.75;
}
.dr-les1-next-btn:hover { opacity: 0.88; }

/* ─────────────────────────────────────────────────────────────────────
   17. POPUP
   ───────────────────────────────────────────────────────────────────── */
.dr-les1-popup-overlay {
  position: fixed; inset: 0; z-index: 9800;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
  backdrop-filter: blur(4px);
}
.dr-les1-popup-overlay.is-open {
  opacity: 1; pointer-events: all;
}

.dr-les1-popup {
  background: #0e1a14;
  border: 1px solid rgba(46, 200, 128, 0.28);
  border-radius: var(--l1-r-lg);
  padding: clamp(24px, 4vw, 40px);
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: 0 20px 64px rgba(0,0,0,0.7);
  animation: les1FadeUp 0.28s ease both;
}

.dr-les1-popup-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 22px;
  color: var(--l1-muted); cursor: pointer;
  line-height: 1; font-family: inherit;
  transition: color var(--l1-speed);
}
.dr-les1-popup-close:hover { color: var(--l1-rose); }

.dr-les1-popup-kicker {
  font-size: 13px; color: var(--l1-green); font-weight: 700;
  display: block; margin-bottom: 8px;
}

.dr-les1-popup-title {
  font-size: 22px; font-weight: 900; color: var(--l1-ink);
  margin: 0 0 16px;
}

.dr-les1-popup-body {
  font-size: 14px; color: var(--l1-muted); line-height: 1.7;
}
.dr-les1-popup-body p { margin: 0 0 10px; }
.dr-les1-popup-body strong { color: var(--l1-ink); }
.dr-les1-popup-body .dr-les1-tounsi {
  color: var(--l1-teal); font-style: italic; font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────────────
   18. RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .dr-les1-flipcard { flex: 0 0 180px; height: 240px; }
  .dr-les1-phrase-item { grid-template-columns: 1fr; }
  .dr-les1-phrase-item .dr-les1-audio-btn { grid-column: 1; grid-row: auto; }
  .dr-les1-turn-bubble { max-width: 90%; }
  .dr-les1-recap-grid { grid-template-columns: repeat(2, 1fr); }
  .dr-les1-nav-links { gap: 4px; }
  .dr-les1-nav-links a { padding: 4px 8px; font-size: 11px; }
  .dr-les1-phrase-recap-item { flex-direction: column; gap: 4px; }
  .dr-les1-phrase-recap-dj { text-align: left; }
}
