/* ==========================================================================
   أكاديمية مشروع ناطق | NATIQ ARABIC PHONETICS ACADEMY & LMS
   Refined Sapphire Blue, Alabaster White & Multi-Tier Cool Slate Design System
   ========================================================================== */

:root {
  --blue:        #1D58B8;
  --blue-dark:   #154391;
  --blue-bright: #2563EB;
  --navy:        #13294B;
  --navy-deep:   #0F213C;
  --sky:         #EBF3FD;
  --sky-border:  #C9DDF8;
  --orange:      #1D58B8;
  --rust:        #154391;
  --peach:       #EBF3FD;
  --gold:        #1D58B8;
  --green:       #0D9488;
  --green-bg:    #F0FDFA;
  --ink:         #293548;
  --muted:       #5B6B82;
  --dim:         #8C9BB0;
  --paper:       #F1F5F9;
  --ground:      #E6ECF4;
  --card:        #FFFFFF;
  --line:        #DCE4F0;
  --line-2:      #C5D2E3;

  --f-ar:        'IBM Plex Sans Arabic', 'Noto Sans', sans-serif;
  --f-en:        'Noto Sans', 'IBM Plex Sans Arabic', sans-serif;
  --f-disp:      'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --f-ipa:       'Noto Sans', monospace;

  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        16px;
  --r-xl:        20px;
  --sh-sm:       0 1px 3px rgba(19, 41, 75, 0.04), 0 4px 12px -2px rgba(19, 41, 75, 0.04);
  --sh-md:       0 4px 10px -2px rgba(19, 41, 75, 0.05), 0 14px 28px -8px rgba(19, 41, 75, 0.08);
  --sh-lg:       0 8px 18px -4px rgba(19, 41, 75, 0.06), 0 22px 44px -12px rgba(19, 41, 75, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ar);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--f-en);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   CRITICAL CONTRAST OVERRIDES FOR ASTRA THEME HEADINGS ON DARK BACKGROUNDS
   Prevents blue-on-blue text when Astra sets h1..h6 color globally
   ========================================================================== */
.auth-gate-info,
.auth-gate-info h1,
.auth-gate-info h2,
.auth-gate-info h3,
.auth-gate-info h4,
.auth-gate-info p,
.auth-gate-info span,
.auth-gate-info div,
.group-header,
.group-header h2,
.group-header h3,
.group-header h4,
.group-header span,
.lms-sidebar-head,
.lms-sidebar-head h3,
.lms-sidebar-head h4,
.lms-sidebar-head span,
.lms-sidebar-head strong,
.dark-banner,
.dark-banner h1,
.dark-banner h2,
.dark-banner h3,
.dark-banner p,
.site-footer,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer strong {
  color: #FFFFFF !important;
}

/* ==========================================================================
   1. ULTRA-CLEAN SINGLE-ROW TOP NAVIGATION HEADER
   ========================================================================== */
header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px -4px rgba(19, 41, 75, 0.05);
}

.top-in {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

nav.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  background: #EAF0F7;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid #D7E1EE;
  box-shadow: inset 0 1px 2px rgba(19, 41, 75, 0.04);
}

nav.nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 600;
  color: #4E5E74;
  white-space: nowrap;
  transition: all 0.18s ease;
}

nav.nav a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.65);
}

nav.nav a.active {
  color: var(--blue) !important;
  background: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(19, 41, 75, 0.08), 0 0 0 1px rgba(29, 88, 184, 0.12);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.lang-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid var(--sky-border);
  color: var(--navy) !important;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.user-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF !important;
}

/* ==========================================================================
   2. BUTTONS, BADGES & TAGS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.84rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(180deg, #2563EB 0%, #1D58B8 100%);
  border: 1px solid #194EA6;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 16px -3px rgba(29, 88, 184, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1D58B8 0%, #154391 100%);
  border-color: #133B80;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px -4px rgba(19, 41, 75, 0.28);
  transform: translateY(-1px);
}

.btn-orange {
  background: linear-gradient(180deg, #2563EB 0%, #1D58B8 100%);
  border: 1px solid #194EA6;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 16px -3px rgba(29, 88, 184, 0.28);
}

.btn-orange:hover {
  background: linear-gradient(180deg, #1D58B8 0%, #154391 100%);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(19, 41, 75, 0.04);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--sky);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid var(--sky-border);
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}

.ipa-badge {
  font-family: var(--f-ipa);
  font-size: 0.81rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: #F4F7FB;
  color: var(--navy);
  border: 1px solid #D5E0EE;
  direction: ltr;
  display: inline-block;
}

.tag-free {
  background: var(--sky);
  color: var(--blue);
  border: 1px solid var(--sky-border);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-orange {
  background: var(--ground);
  color: var(--navy);
  border: 1px solid var(--line-2);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* ==========================================================================
   3. CLEAN HERO SECTION & PAGE BANNERS
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 62px;
  background:
    radial-gradient(880px 440px at 85% 12%, rgba(37, 99, 235, 0.08), transparent 68%),
    radial-gradient(640px 380px at 10% 88%, rgba(29, 88, 184, 0.05), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F7FC 100%);
  border-bottom: 1px solid var(--line);
}

/* Editorial 48x48 Square Grid Overlay (Matching coming-soon.html .bg-grid) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(19, 41, 75, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 41, 75, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--f-disp);
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-lead {
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 24px;
  line-height: 1.8;
}

.instructor-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 26px;
  box-shadow: var(--sh-sm);
}

.instructor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue-bright));
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--sky);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 8px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--sh-sm);
}

.metric-item strong {
  display: block;
  font-family: var(--f-ipa);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 3px;
}

.metric-item span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
  border: 1px solid #D5E0F0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--sh-lg);
}

.page-banner-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  margin-bottom: 36px;
  display: block;
}

/* ==========================================================================
   4. SECTIONS & COURSE CARDS WITH HD THUMBNAILS
   ========================================================================== */
.sec {
  padding: 56px 0;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.sec-title {
  font-family: var(--f-disp);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--navy);
  line-height: 1.25;
}

.sec-sub {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 68ch;
  margin-top: 6px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #EAF0F7;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid #D7E1EE;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.18s ease;
}

.filter-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.filter-btn.active {
  background: var(--blue);
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(29, 88, 184, 0.22);
}

/* HD Course Cards Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--sh-sm);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: #B4CCEF;
}

.course-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #EDF4FC;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.course-card:hover .course-img-wrap img {
  transform: scale(1.025);
}

.course-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.38;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.course-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #F8FAFD;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.group-block {
  margin-bottom: 36px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  background: linear-gradient(135deg, #13294B 0%, #1B3E73 60%, #1E5099 100%);
  border: 1px solid #1E427A;
  color: #FFFFFF !important;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--sh-sm);
}

.group-header h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
}

/* ==========================================================================
   5. MEMBERS-ONLY STUDENT AUTHENTICATION GATE (SIGN IN / SIGN UP)
   ========================================================================== */
.auth-gate-sec {
  padding: 48px 0 72px;
}

.auth-gate-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.auth-gate-info {
  background:
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(145deg, #0F213C 0%, #16335E 58%, #1D4D91 100%);
  border-top: 4px solid var(--blue-bright);
  color: #FFFFFF !important;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-gate-form-wrap {
  padding: 44px;
  background: #FFFFFF;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--ground);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  padding: 10px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: var(--sh-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  height: auto !important;
  line-height: 1.5 !important;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 0.94rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: #FFFFFF;
}

/* ==========================================================================
   6. UNIFIED COURSE & SOUND LABORATORY PAGE (#course/:id)
   ========================================================================== */
.detail-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 24px 0 28px;
}

.detail-Strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.strip-chip {
  min-width: 37px;
  height: 37px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-disp);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.strip-chip:hover,
.strip-chip.active {
  background: var(--blue);
  color: #FFFFFF !important;
  border-color: var(--blue);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.giant-glyph {
  width: 116px;
  height: 116px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #FFFFFF !important;
  font-family: var(--f-disp);
  font-size: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.spec-pill {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

.spec-pill small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.spec-pill strong {
  color: var(--navy);
}

.syllables-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.syl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid var(--sky-border);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.syl-chip:hover {
  background: var(--blue);
  color: #FFFFFF !important;
}

.lms-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 26px;
  align-items: start;
}

.lms-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 96px;
  box-shadow: var(--sh-md);
}

.lms-sidebar-head {
  padding: 18px 20px;
  background: linear-gradient(135deg, #13294B 0%, #1D58B8 100%);
  color: #FFFFFF !important;
}

.lms-lesson-btn {
  width: 100%;
  text-align: inherit;
  padding: 15px 18px !important;
  background: #FFFFFF !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink) !important;
  transition: all 0.15s ease;
}

.lms-lesson-btn span:first-child {
  color: inherit !important;
  text-align: start;
  line-height: 1.45;
}

.lms-lesson-btn:hover,
.lms-lesson-btn:focus {
  background: #F4F8FE !important;
  color: var(--blue) !important;
}

.lms-lesson-btn:hover span:first-child,
.lms-lesson-btn:focus span:first-child {
  color: var(--blue) !important;
}

.lms-lesson-btn.active,
.lms-lesson-btn.active:hover,
.lms-lesson-btn.active:focus {
  background: var(--sky) !important;
  color: var(--blue) !important;
  font-weight: 700;
  border-inline-start: 4px solid var(--blue) !important;
}

.lms-lesson-btn.active span:first-child {
  color: var(--blue) !important;
}

.lms-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.lms-check.done {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF !important;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.studio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.studio-card-head h3 {
  font-size: 1.18rem;
  color: var(--navy);
  font-weight: 700;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0F213C;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v-tab {
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.v-tab.active,
.v-tab:hover {
  background: var(--blue);
  color: #FFFFFF !important;
  border-color: var(--blue);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.step-row.active {
  border-color: var(--blue);
  background: var(--sky);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.65;
}

/* Audio Matrix */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cat-tab {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--ground);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--muted);
}

.cat-tab.active {
  background: var(--navy);
  color: #FFFFFF !important;
}

.subgroups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.subgroup-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.subgroup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.word-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.word-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.word-item:hover,
.word-item.playing {
  border-color: var(--blue);
  background: var(--sky);
}

.word-info {
  display: flex;
  flex-direction: column;
}

.word-ar {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.word-en {
  font-size: 0.76rem;
  color: var(--muted);
}

.play-wav-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #2563EB 0%, #1D58B8 100%) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(29, 88, 184, 0.24);
  transition: all 0.16s ease;
  cursor: pointer;
}

.play-wav-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  stroke: currentColor;
  display: block !important;
  flex-shrink: 0 !important;
}

.play-wav-btn:hover,
.play-wav-btn:focus {
  background: var(--navy) !important;
  color: #FFFFFF !important;
  transform: scale(1.06);
}

.sentence-banner {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EBF3FD, #FFFFFF);
  border: 1px solid var(--sky-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sentence-ar {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
}

.sentence-en {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   7. ENHANCED STUDENT DASHBOARD & CERTIFICATE CARD
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--sh-sm);
}

.kpi-card strong {
  direction: ltr;
  unicode-bidi: embed;
}

.kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 3px double var(--gold);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--sh-lg);
  position: relative;
}

/* ==========================================================================
   8. MINIMAL PAIRS, TEAM & PROFESSIONAL MULTI-COLUMN FOOTER
   ========================================================================== */
.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.pair-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--sh-sm);
}

.pair-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.pair-word-btn {
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.pair-word-btn:hover {
  border-color: var(--blue);
  background: var(--sky);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-sm);
}

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #FFFFFF !important;
  font-family: var(--f-disp);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Multi-Column Academic Footer */
footer.site-footer {
  background: linear-gradient(180deg, #13294B 0%, #0E1E38 100%);
  color: #FFFFFF !important;
  padding: 64px 0 32px;
  margin-top: 72px;
  border-top: 3px solid var(--blue-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  font-family: var(--f-disp);
  font-size: 1.15rem;
  color: #FFFFFF !important;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF !important;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 1024px) {
  .hero-grid,
  .studio-grid,
  .lms-layout,
  .detail-hero-grid,
  .auth-gate-grid,
  .kpi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  nav.nav {
    display: none;
  }
}


/* ==========================================================================
   9. LIVE SEARCH COMMAND BAR, MULTI-FILTERS & COURSE BUNDLE BANNER
   ========================================================================== */
.search-command-bar {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 26px;
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-top-row {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 12px;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 40px 12px 42px !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--line-2) !important;
  background: var(--paper) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  transition: all 0.18s ease;
}

.search-input-wrap input:focus {
  border-color: var(--blue) !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(29, 88, 184, 0.12) !important;
}

.search-icon-prefix {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  inset-inline-end: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: var(--orange);
  color: #FFFFFF !important;
}

.filter-select {
  width: 100%;
  height: 46px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-inline-start: 14px !important;
  padding-inline-end: 32px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--line-2) !important;
  background-color: var(--paper) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--blue) !important;
  background: #FFFFFF !important;
}

.search-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.results-counter {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tutor LMS Pro Course Bundle Banner Card */
.bundle-banner-card {
  background: linear-gradient(135deg, #070C3A 0%, #0A1170 55%, #1F2BE6 100%);
  color: #FFFFFF !important;
  border-radius: 22px;
  padding: 28px 34px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 200, 87, 0.35);
  position: relative;
  overflow: hidden;
}

.bundle-banner-card *,
.bundle-banner-card h2,
.bundle-banner-card h3,
.bundle-banner-card p,
.bundle-banner-card span {
  color: #FFFFFF !important;
}

.bundle-price-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   10. TUTOR LMS PRO CHECKOUT & PAYMENT MODAL + QUICK PREVIEW MODAL
   ========================================================================== */
.natiq-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 33, 60, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.natiq-modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 940px;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15, 33, 60, 0.28);
  border: 1px solid var(--line);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.natiq-modal-head {
  background: linear-gradient(135deg, #13294B 0%, #1B3E73 60%, #1E5099 100%);
  border-bottom: 3px solid var(--blue-bright);
  color: #FFFFFF !important;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.natiq-modal-head *,
.natiq-modal-head h3,
.natiq-modal-head span {
  color: #FFFFFF !important;
}

.natiq-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.natiq-modal-close:hover {
  background: var(--orange);
}

.natiq-modal-body {
  padding: 28px;
  overflow-y: auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.payment-methods-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pm-tab {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pm-tab.active {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 43, 230, 0.1);
}

.order-summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row input {
  flex: 1;
  padding: 10px 12px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line-2) !important;
  background: #FFFFFF !important;
  font-size: 0.86rem !important;
  text-transform: uppercase;
}

/* ==========================================================================
   11. INTERACTIVE QUIZ, EAR-TRAINING GAME & FAQ ACCORDION
   ========================================================================== */
.quiz-container {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF5FD 100%);
  border: 1.5px solid var(--sky-border);
  border-radius: 18px;
  padding: 24px;
  margin-top: 20px;
}

.quiz-q-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quiz-opt-btn {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  text-align: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-opt-btn:hover {
  border-color: var(--blue);
  background: var(--sky);
}

.quiz-opt-btn.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #FFFFFF !important;
}

.quiz-opt-btn.correct {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green) !important;
  font-weight: 700;
}

.quiz-opt-btn.wrong {
  border-color: #DC2626;
  background: #FEE2E2;
  color: #DC2626 !important;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
}

.faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Orders & Invoices Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th {
  background: var(--ground);
  color: var(--navy);
  font-weight: 700;
  text-align: inherit;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .search-top-row,
  .bundle-banner-card,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. ASTRA GLOBAL BUTTON OVERRIDE, HERO BANNERS & LUXURY CERTIFICATE
   ========================================================================== */
.lang-btn,
.lang-btn:hover,
.lang-btn:focus {
  padding: 8px 14px !important;
  background: #FFFFFF !important;
  color: var(--navy) !important;
  border: 1px solid var(--line-2) !important;
}
.lang-btn:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  background: var(--sky) !important;
}

.btn-ghost,
.btn-ghost:focus {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  border: 1px solid var(--line-2) !important;
}
.btn-ghost:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  background: var(--sky) !important;
}

.filter-btn {
  padding: 9px 18px !important;
  background: transparent !important;
  color: var(--muted) !important;
}
.filter-btn:hover,
.filter-btn:focus {
  color: var(--navy) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}
.filter-btn.active,
.filter-btn.active:hover,
.filter-btn.active:focus {
  background: var(--blue) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(29, 88, 184, 0.22) !important;
}

.cat-tab {
  padding: 9px 18px !important;
  background: var(--ground) !important;
  color: var(--muted) !important;
}
.cat-tab:hover,
.cat-tab:focus {
  background: #DCE5F2 !important;
  color: var(--navy) !important;
}
.cat-tab.active,
.cat-tab.active:hover,
.cat-tab.active:focus {
  background: var(--blue) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(29, 88, 184, 0.2) !important;
}

.auth-tab {
  padding: 10px !important;
  background: transparent !important;
  color: var(--muted) !important;
}
.auth-tab:hover,
.auth-tab:focus {
  color: var(--navy) !important;
}
.auth-tab.active,
.auth-tab.active:hover,
.auth-tab.active:focus {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  box-shadow: var(--sh-sm);
}

.syl-chip {
  padding: 7px 14px !important;
  background: var(--sky) !important;
  color: var(--navy) !important;
  border: 1px solid rgba(31, 43, 230, 0.22) !important;
  cursor: pointer;
}
.syl-chip svg {
  width: 15px !important;
  height: 15px !important;
  fill: var(--blue);
  flex-shrink: 0;
}
.syl-chip:hover,
.syl-chip:focus {
  background: var(--blue) !important;
  color: #FFFFFF !important;
}
.syl-chip:hover svg,
.syl-chip:focus svg {
  fill: #FFFFFF !important;
}

.pair-word-btn {
  padding: 12px !important;
  background: var(--paper) !important;
  color: var(--navy) !important;
  border: 1px solid var(--line) !important;
}
.pair-word-btn:hover,
.pair-word-btn:focus {
  border-color: var(--blue) !important;
  background: var(--sky) !important;
  color: var(--navy) !important;
}

.quiz-opt-btn {
  padding: 11px 14px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}
.quiz-opt-btn:hover,
.quiz-opt-btn:focus {
  border-color: var(--blue) !important;
  background: var(--sky) !important;
  color: var(--navy) !important;
}
.quiz-opt-btn.selected,
.quiz-opt-btn.selected:hover {
  background: var(--blue) !important;
  color: #FFFFFF !important;
}

.faq-q,
.faq-q:hover,
.faq-q:focus {
  padding: 18px 22px !important;
  background: #FFFFFF !important;
  color: var(--navy) !important;
}

.pm-tab {
  padding: 12px 10px !important;
  background: var(--paper) !important;
  color: var(--navy) !important;
}
.pm-tab:hover,
.pm-tab:focus {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  background: var(--sky) !important;
}
.pm-tab.active,
.pm-tab.active:hover {
  border-color: var(--blue) !important;
  background: var(--sky) !important;
  color: var(--blue) !important;
}

/* Widescreen Bilingual Hero Banner Card (Uses AI Artwork Background + Live Bilingual Text) */
.page-hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 250px;
  margin-bottom: 36px;
  background-color: #13294B;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(19, 41, 75, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
}

.page-hero-overlay {
  width: 100%;
  min-height: 250px;
  padding: 36px 44px;
  background: linear-gradient(90deg, rgba(19, 41, 75, 0.56) 0%, rgba(19, 41, 75, 0.88) 55%, rgba(15, 33, 60, 0.95) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

html[dir="ltr"] .page-hero-overlay {
  background: linear-gradient(270deg, rgba(19, 41, 75, 0.56) 0%, rgba(19, 41, 75, 0.88) 55%, rgba(15, 33, 60, 0.95) 100%);
}

.page-hero-content {
  max-width: 720px;
  color: #FFFFFF !important;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.26);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #FFFFFF !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.page-hero-title {
  font-family: var(--f-disp);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.25;
  margin-bottom: 10px;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.75;
}

.page-hero-logo-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.page-hero-logo-card img {
  height: 48px;
  width: auto;
}

.page-hero-logo-card span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy) !important;
}

/* Official Academic Certificate Card in Dashboard */
.cert-luxury-card {
  background: #FFFFFF;
  border: 2px solid #C5D4E8;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--sh-lg);
  position: relative;
}

.cert-luxury-inner {
  border: 1.5px solid var(--blue);
  border-radius: 14px;
  padding: 32px 36px;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(29, 88, 184, 0.05), transparent 70%);
}

.cert-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--line);
}

.cert-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1.5px solid var(--line);
}

@media (max-width: 768px) {
  .cert-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-hero-overlay {
    padding: 26px 22px;
  }
}

/* ==========================================================================
   13. INTERACTIVE ANATOMICAL SAGITTAL VOCAL TRACT CARD & CONTROLS
   ========================================================================== */
.vt-interactive-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-sm);
}

.vt-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vt-organ-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vt-organ-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.vt-pill-primary {
  background: var(--sky);
  color: var(--navy) !important;
  border: 1px solid rgba(31, 43, 230, 0.2);
}

.vt-pill-voiced {
  background: var(--green-bg);
  color: var(--green) !important;
  border: 1px solid rgba(14, 159, 110, 0.25);
}

.vt-pill-voiceless {
  background: var(--ground);
  color: var(--muted) !important;
  border: 1px solid var(--line-2);
}

.vt-pill-nasal {
  background: #E0F2FE;
  color: #0369A1 !important;
  border: 1px solid #7DD3FC;
}

.vt-pill-emph {
  background: var(--peach);
  color: var(--rust) !important;
  border: 1px solid rgba(242, 92, 31, 0.35);
}

.vt-autoplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: var(--blue) !important;
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 10px rgba(31, 43, 230, 0.22);
}

.vt-autoplay-btn:hover,
.vt-autoplay-btn.playing {
  background: var(--orange) !important;
  color: #FFFFFF !important;
}

.vt-svg-stage {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #F8FAFC;
}

.vt-anatomical-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-pin-group:hover circle {
  filter: brightness(1.08);
}

.vt-active-step-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EBF3FD 0%, #F8FAFD 100%);
  border: 1px solid var(--sky-border);
}

.vt-step-badge-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(29, 88, 184, 0.25);
}

.vt-step-banner-body {
  flex: 1;
  min-width: 0;
}

.vt-step-pin-title {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.vt-step-pin-title strong {
  color: var(--navy);
}

.vt-step-pin-desc {
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
}

.vt-step-nav-btns {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.vt-step-arrow {
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--line-2) !important;
  color: var(--navy) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vt-step-arrow:hover {
  background: var(--blue) !important;
  color: #FFFFFF !important;
  border-color: var(--blue) !important;
}

/* ==========================================================================
   14. MOBILE DRAWER, BOTTOM TAB BAR & FULL RESPONSIVE SYSTEM
   ========================================================================== */

/* Desktop medium screens (1025px–1380px): prevent header right-edge clipping */
@media (max-width: 1380px) {
  .top-in {
    padding: 0 18px;
    gap: 10px;
  }
  nav.nav a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }
  .brand-title {
    font-size: 1.08rem;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .top-actions {
    gap: 7px;
  }
  .lang-btn,
  .user-pill {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* Mobile Menu Button & Drawer (Hidden on Desktop > 1024px) */
.mobile-menu-btn {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: var(--ground) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--navy) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--sky) !important;
  color: var(--blue) !important;
  border-color: var(--blue) !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(7, 12, 58, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-start;
}

.mobile-nav-drawer {
  width: min(350px, 88vw);
  height: 100%;
  background: #FFFFFF;
  box-shadow: 0 20px 50px rgba(7, 12, 58, 0.35);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mobile-drawer-close {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--ground) !important;
  color: var(--navy) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-drawer-user {
  padding: 16px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-drawer-links {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mobile-drawer-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink) !important;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: var(--sky);
  color: var(--blue) !important;
  border-color: var(--blue);
}

.mobile-drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #FFFFFF;
}

/* Mobile Bottom Fixed Navigation Bar (Hidden on Desktop/Tablet > 768px) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  height: 66px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
}

.mb-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: 54px !important;
  padding: 4px 2px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mb-nav-item .mb-nav-ico {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mb-nav-item .mb-nav-ico svg {
  display: block;
}

.mb-nav-item .mb-nav-lbl {
  color: inherit !important;
  white-space: nowrap;
}

.mb-nav-item.active,
.mb-nav-item:hover {
  color: var(--blue) !important;
  background: var(--sky) !important;
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .hide-mobile-nav {
    display: none !important;
  }

  .hero-grid,
  .studio-grid,
  .lms-layout,
  .detail-hero-grid,
  .auth-gate-grid,
  .footer-grid,
  .search-top-row,
  .bundle-banner-card,
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-grid > *,
  .studio-grid > *,
  .lms-layout > *,
  .detail-hero-grid > *,
  .auth-gate-grid > *,
  .footer-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Critical fix: prevent course sidebar from sticking and overlapping lessons on stacked layout */
  .lms-sidebar {
    position: static !important;
    top: auto !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Phones & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  html,
  body,
  #app,
  main#mainContent {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 74px !important;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .wrap {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  header.top {
    height: 68px;
  }

  .top-in {
    padding: 0 14px;
    gap: 8px;
  }

  .brand img {
    height: 36px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-sub {
    display: none;
  }

  .hide-xs {
    display: none !important;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .eyebrow {
    white-space: normal;
    max-width: 100%;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-lead {
    font-size: 0.94rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-card {
    padding: 16px;
  }

  .sec {
    padding: 36px 0;
  }

  .sec-title {
    font-size: 1.5rem;
  }

  .courses-grid,
  .pairs-grid,
  .team-grid,
  .subgroups-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Horizontal touch-scroll for the 28-letter strip on course pages */
  .detail-Strip {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    gap: 6px;
  }

  .detail-Strip .strip-chip {
    flex-shrink: 0;
  }

  .detail-hero-grid {
    text-align: center;
    justify-items: center;
    gap: 14px;
  }

  .detail-hero-grid > div:not(.giant-glyph) {
    width: 100%;
  }

  .detail-hero-grid > .giant-glyph {
    width: 78px !important;
    height: 78px !important;
    font-size: 2.85rem;
    border-radius: 18px;
    margin: 0 auto;
  }

  .lms-sidebar > .course-img-wrap {
    display: none;
  }

  .spec-pills {
    justify-content: center;
  }

  .studio-card {
    padding: 18px 14px;
  }

  .studio-card-head {
    flex-wrap: wrap;
  }

  .vowel-pair-row,
  .ear-game-card,
  .ear-game-opts {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ear-game-play-btn {
    width: 100%;
  }

  .auth-gate-info,
  .auth-gate-form-wrap {
    padding: 24px 18px;
  }

  .bundle-banner-card {
    padding: 22px 16px;
  }

  .vt-active-step-banner {
    flex-wrap: wrap;
  }

  .natiq-modal-backdrop {
    padding: 10px;
  }

  .natiq-modal-head,
  .natiq-modal-body {
    padding: 18px 16px;
  }

  .cert-luxury-inner {
    padding: 20px 14px;
  }
}

/* Compact Mobile Phones (<= 540px) */
@media (max-width: 540px) {
  .kpi-grid,
  .payment-methods-tabs {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-search-form {
    flex-direction: column;
  }

  .hero-search-form .btn {
    width: 100%;
    height: 44px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .user-pill span:last-child {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   13. NATIQ PHONETICS WORKSPACE (#dashboard) — LUMINOUS SAPPHIRE, ALABASTER & SLATE
   High-Craft Executive E-Learning Analytics & Phonetics Studio
   ========================================================================== */
.natiq-ws-sec {
  padding: 32px 0 68px;
  background:
    radial-gradient(920px 380px at 88% 0%, rgba(37, 99, 235, 0.06), transparent 68%),
    var(--paper);
  overflow-x: clip;
}

/* Astra dark-surface heading contrast protection ONLY on Royal Oxford spotlight card */
.dash-continue-card,
.dash-continue-card h2,
.dash-continue-card h3 {
  color: #FFFFFF !important;
}

/* Luminous Executive Multi-Layered Identity Card */
.dash-exec-header {
  position: relative;
  background:
    radial-gradient(540px 220px at 92% 0%, rgba(37, 99, 235, 0.09), transparent 72%),
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFE 58%, #EEF4FC 100%);
  border-radius: 20px;
  border: 1px solid #D3E1F2;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 12px 30px -10px rgba(19, 41, 75, 0.08),
    0 2px 6px rgba(19, 41, 75, 0.03);
}

.dash-exec-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-exec-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #13294B 0%, #1D58B8 65%, #2563EB 100%);
  color: #FFFFFF !important;
  font-family: var(--f-disp);
  font-size: 1.38rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 4px #E6EFFC, 0 8px 18px -4px rgba(29, 88, 184, 0.28);
  flex-shrink: 0;
}

.dash-exec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--blue) !important;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kufic-diamond {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 2px;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

.dash-exec-title {
  font-family: var(--f-disp);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy) !important;
  margin: 0 0 8px;
  line-height: 1.22;
}

.dash-exec-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted) !important;
}

.dash-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EDF2F8;
  border: 1px solid #D9E3F0;
  color: #415167 !important;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.dash-meta-chip.is-accent {
  background: var(--sky);
  border-color: var(--sky-border);
  color: var(--blue) !important;
  font-weight: 700;
}

.dash-exec-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-brand-seal {
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #D8E3F0;
  box-shadow: 0 2px 8px rgba(19, 41, 75, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.dash-brand-seal img {
  height: 25px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Architectural 2-Column Workspace Layout */
.dash-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dash-sidebar-rail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Precision Mastery Gauge Card */
.dash-rail-mastery {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: var(--sh-sm);
}

.dash-rail-eyebrow {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.dash-ring-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
}

.dash-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-ring-center strong {
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
}

.dash-ring-center small {
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}

.dash-rail-summary {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dash-rail-summary strong {
  display: block;
  font-size: 0.91rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.dash-rail-summary span {
  font-size: 0.76rem;
  color: var(--muted);
}

.dash-mini-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dash-mc-item {
  padding: 10px 6px !important;
  border-radius: 11px !important;
  background: #F4F7FB !important;
  border: 1px solid #DCE5F1 !important;
  color: var(--navy) !important;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

.dash-mc-item:hover {
  border-color: #B4CEF2 !important;
  background: var(--sky) !important;
}

.dash-mc-item.is-selected {
  background: linear-gradient(180deg, #2563EB 0%, #1D58B8 100%) !important;
  border-color: #1A4DA3 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(29, 88, 184, 0.22);
}

.dash-mc-item strong {
  display: block;
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
  font-weight: 800;
  color: inherit !important;
  line-height: 1.15;
}

.dash-mc-item small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted) !important;
  margin-top: 2px;
}

.dash-mc-item.is-selected small {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Clean Sculpted Sidebar Navigation */
.dash-rail-nav {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--sh-sm);
}

.dash-nav-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--dim);
  letter-spacing: 0.75px;
  padding: 6px 10px 6px;
  text-transform: uppercase;
}

.dash-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: start;
}

.dash-nav-btn .dn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-nav-btn .dn-left span {
  color: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-svg-ico {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.16s ease;
}

.dash-nav-btn:hover {
  background: #F4F7FB !important;
  color: var(--blue) !important;
}

.dash-nav-btn:hover .dash-svg-ico {
  color: var(--blue);
}

.dash-nav-btn.active,
.dash-nav-btn.active:hover {
  background: var(--sky) !important;
  color: var(--blue-dark) !important;
  font-weight: 700 !important;
  border: 1px solid var(--sky-border) !important;
  border-inline-start: 3.5px solid var(--blue) !important;
  box-shadow: 0 2px 6px rgba(29, 88, 184, 0.06);
}

.dash-nav-btn.active .dn-left span,
.dash-nav-btn.active .dash-svg-ico {
  color: var(--blue) !important;
}

.dn-badge {
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #EDF2F8;
  color: var(--muted);
  flex-shrink: 0;
}

.dash-nav-btn.active .dn-badge {
  background: var(--blue);
  color: #FFFFFF !important;
}

/* 4 Sculpted Executive Analytics Cards (.natiq-ledger-strip) */
.natiq-ledger-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nls-cell {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.nls-cell:hover {
  transform: translateY(-3px);
  border-color: #B4CEF2;
  box-shadow: var(--sh-md);
}

.nls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.nls-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sky);
  border: 1px solid #D3E4FA;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nls-val {
  display: block;
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 1.88rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 4px;
  direction: ltr;
  unicode-bidi: embed;
}

.nls-kicker {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.nls-tag {
  font-family: var(--f-ipa);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #EDF2F8;
  color: var(--muted);
  border: 1px solid #DCE5F0;
  white-space: nowrap;
}

.nls-tag.cobalt {
  background: var(--sky);
  color: var(--blue);
  border-color: var(--sky-border);
}

.nls-tag.dark {
  background: #E4ECF7;
  color: var(--navy) !important;
  border-color: #C7D6EA;
}

.nls-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.nls-bar {
  height: 5px;
  background: #E8EEF6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.nls-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1D58B8 0%, #3B82F6 100%);
  transition: width 0.3s ease;
}

/* Active Phoneme Studio Spotlight Card (.dash-continue-card) */
.dash-continue-card {
  background:
    radial-gradient(580px 260px at 88% 12%, rgba(96, 165, 250, 0.24), transparent 68%),
    linear-gradient(135deg, #13294B 0%, #1B3E73 55%, #22549E 100%);
  border: 1px solid #224985;
  border-radius: 20px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  box-shadow: 0 16px 36px -10px rgba(19, 41, 75, 0.24);
}

.dcc-glyph-pedestal {
  width: 88px;
  height: 100px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FE 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 4px solid #3B82F6;
  box-shadow: 0 10px 24px rgba(10, 25, 48, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.dcc-glyph-pedestal:hover {
  transform: translateY(-2px);
}

.dcc-glyph-ar {
  font-family: var(--f-disp);
  font-size: 2.55rem;
  font-weight: 800;
  color: var(--navy) !important;
  line-height: 1;
}

.dcc-glyph-ipa {
  font-family: var(--f-ipa);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue) !important;
  background: var(--sky);
  padding: 2px 8px;
  border-radius: 6px;
  direction: ltr;
}

.dcc-info {
  min-width: 0;
}

.dcc-kicker {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 800;
  color: #BFDBFE !important;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.dcc-title {
  font-family: var(--f-disp);
  font-size: 1.42rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 6px;
  line-height: 1.25;
}

.dcc-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.84) !important;
  margin: 0 0 14px;
}

.dcc-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dcc-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.16s ease;
  backdrop-filter: blur(6px);
}

.dcc-step-chip:hover {
  border-color: #93C5FD !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.dcc-step-num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  font-family: var(--f-ipa);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dcc-step-chip.done {
  background: rgba(59, 130, 246, 0.28) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #FFFFFF !important;
}

.dcc-step-chip.done .dcc-step-num {
  background: #3B82F6;
}

.dcc-step-chip.current {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  border-color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(10, 25, 48, 0.18);
}

.dcc-step-chip.current span {
  color: var(--navy) !important;
}

.dcc-step-chip.current .dcc-step-num {
  background: var(--blue);
  color: #FFFFFF !important;
}

.dcc-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.dash-continue-card .dcc-cta .btn-primary {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  border: 1px solid #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(9, 22, 44, 0.24) !important;
}

.dash-continue-card .dcc-cta .btn-primary:hover {
  background: #EFF6FF !important;
  color: var(--blue) !important;
}

.dcc-pct-box {
  text-align: end;
}

.dcc-pct-box strong {
  display: block;
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1;
}

.dcc-pct-box span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Signature 28-Phoneme Mastery Matrix (.natiq-matrix-card) */
.natiq-matrix-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--sh-sm);
}

.natiq-sec-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.natiq-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
}

.natiq-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nml-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.nml-swatch.mastered {
  background: var(--blue);
}

.nml-swatch.active {
  background: var(--sky);
  border: 1.5px solid var(--blue);
}

.nml-swatch.idle {
  background: #F4F7FB;
  border: 1px solid var(--line-2);
}

.natiq-phoneme-matrix {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.npm-tile {
  padding: 12px 6px 10px !important;
  border-radius: 12px !important;
  background: #F6F9FC !important;
  border: 1px solid #DCE5F1 !important;
  color: var(--navy) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer;
  transition: all 0.16s ease;
}

.npm-tile:hover {
  transform: translateY(-2px);
  border-color: var(--blue) !important;
  background: #FFFFFF !important;
  box-shadow: var(--sh-sm);
}

.npm-char {
  font-family: var(--f-disp);
  font-size: 1.45rem;
  font-weight: 700;
  color: inherit !important;
  line-height: 1.1;
}

.npm-ipa {
  font-family: var(--f-ipa);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted) !important;
  direction: ltr;
}

.npm-dots {
  display: inline-flex;
  gap: 3px;
  margin-top: 2px;
}

.npm-dots i {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--line-2);
  display: block;
}

.npm-dots i.on {
  background: var(--blue);
}

/* Studying Tile */
.npm-tile.is-studying {
  background: var(--sky) !important;
  border: 1.5px solid #8AB6F4 !important;
  color: var(--navy) !important;
}

.npm-tile.is-studying .npm-ipa {
  color: var(--blue) !important;
  font-weight: 700;
}

/* Mastered Tile */
.npm-tile.is-mastered,
.npm-tile.is-mastered:hover {
  background: linear-gradient(145deg, #184A9E 0%, #2563EB 100%) !important;
  border-color: #184A9E !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 14px rgba(29, 88, 184, 0.22);
}

.npm-tile.is-mastered .npm-char,
.npm-tile.is-mastered .npm-ipa {
  color: #FFFFFF !important;
}

.npm-tile.is-mastered .npm-dots i {
  background: rgba(255, 255, 255, 0.92);
}

/* Split Columns & Empty State */
.dash-split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.natiq-empty-inline {
  padding: 28px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: #F8FAFD;
  text-align: center;
}

.natiq-empty-inline p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.dash-progress-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Detailed Course Progress Card (.dash-progress-card) */
.dash-progress-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--sh-sm);
}

.dash-progress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: #B4CEF2;
}

.dash-progress-card.is-completed {
  border-top: 3px solid var(--blue);
}

.dash-progress-card.is-active {
  border-top: 3px solid #60A5FA;
}

.dash-pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-pc-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.dash-pc-glyph {
  width: 54px;
  height: 56px;
  border-radius: 13px;
  background: linear-gradient(145deg, #13294B 0%, #1D58B8 100%);
  border: 1px solid #1C478F;
  box-shadow: 0 4px 12px rgba(19, 41, 75, 0.15);
  color: #FFFFFF !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-pc-ar {
  font-family: var(--f-disp);
  font-size: 1.48rem;
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1;
}

.dash-pc-ipa {
  font-family: var(--f-ipa);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.85) !important;
  direction: ltr;
}

.dash-pc-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}

.dash-pc-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.dash-status-pill.completed {
  background: var(--blue);
  color: #FFFFFF !important;
}

.dash-status-pill.in-progress {
  background: var(--sky);
  color: var(--blue);
  border: 1px solid var(--sky-border);
}

.dash-status-pill.not-started {
  background: #EDF2F8;
  color: var(--muted);
  border: 1px solid #DCE5F0;
}

.dash-pc-pct-ring {
  text-align: end;
  flex-shrink: 0;
}

.dash-pc-pct-ring strong {
  display: block;
  font-family: var(--f-ipa);
  font-variant-numeric: tabular-nums;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.dash-pc-pct-ring small {
  font-family: var(--f-ipa);
  font-size: 0.69rem;
  color: var(--muted);
}

.dash-pc-bar-track {
  height: 6px;
  background: #E8EEF6;
  border-radius: 99px;
  overflow: hidden;
}

.dash-pc-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--line-2);
  transition: width 0.25s ease;
}

.dash-pc-bar-fill.is-prog,
.dash-pc-bar-fill.is-done {
  background: linear-gradient(90deg, #1D58B8 0%, #3B82F6 100%);
}

.dash-lesson-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dash-lesson-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #F6F9FC;
  border: 1px solid #E1E8F2;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
}

.dash-lesson-pill.done {
  background: var(--sky);
  border-color: var(--sky-border);
  color: var(--navy);
}

.dash-lp-check {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  border: 1px solid var(--line-2) !important;
  background: #FFFFFF !important;
  color: var(--muted) !important;
  font-family: var(--f-ipa);
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.dash-lesson-pill.done .dash-lp-check {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #FFFFFF !important;
}

.dash-lp-text {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.dash-meta-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-pc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Responsive Workspace Breakpoints */
@media (max-width: 1120px) {
  .dash-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-sidebar-rail {
    position: static;
  }

  .natiq-ledger-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .natiq-phoneme-matrix {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .dash-split-columns,
  .dash-progress-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .dash-continue-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .dcc-cta {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .dcc-pct-box {
    text-align: start;
  }

  .natiq-phoneme-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dash-exec-header {
    padding: 18px 16px;
  }

  .dash-brand-seal {
    display: none;
  }

  .natiq-ledger-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-lesson-checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .dcc-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   15. WORDPRESS / TUTOR LMS CUSTOM COURSE CARDS, COVERS & VIDEO EMBEDS
   ========================================================================== */
.wp-custom-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0A1170 0%, #1D58B8 58%, #0F2557 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  color: #FFFFFF;
  overflow: hidden;
}

.wp-custom-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.22), transparent 50%);
  pointer-events: none;
}

.wp-custom-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.wp-custom-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  color: #FDE68A !important;
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.wp-custom-cover-title {
  position: relative;
  z-index: 1;
  font-family: var(--f-disp);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 18px;
}

.wp-video-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0D19;
}

.wp-video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.wp-rich-html {
  color: var(--ink);
  line-height: 1.85;
  font-size: 0.96rem;
}

.wp-rich-html h1,
.wp-rich-html h2,
.wp-rich-html h3,
.wp-rich-html h4 {
  color: var(--navy);
  margin: 16px 0 8px;
}

.wp-rich-html p {
  margin-bottom: 12px;
}

.wp-rich-html ul,
.wp-rich-html ol {
  margin: 8px 0 14px;
  padding-inline-start: 22px;
}

.tag-paid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFBEB;
  color: #B45309 !important;
  border: 1px solid #FCD34D;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
