:root {
  --brand-navy: #102A43;
  --brand-navy-soft: #163b5c;
  --brand-gold: #F2A93B;
  --brand-gold-soft: #ffd88d;
  --brand-warm-white: #FBF8F1;
  --brand-slate: #334E68;

  --font-heading: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-latin: "Inter", system-ui, sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --ease-out: cubic-bezier(.2,.8,.2,1);
}


:root {
  --color-primary: var(--brand-navy);
  --color-accent: var(--brand-gold);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand-gold) 38%, transparent);
}


:root,
:root[data-theme="light"] {
  color-scheme: light;

  --surface-page: #f7f9fc;
  --surface-card: rgba(255,255,255,.88);
  --surface-elevated: #ffffff;
  --surface-muted: #eef3f7;
  --surface-soft-navy: #edf4f9;
  --surface-soft-gold: #fff7e8;

  --text-primary: #102A43;
  --text-secondary: #536b80;
  --text-tertiary: #7890a3;

  --border-subtle: rgba(16,42,67,.10);
  --border-strong: rgba(16,42,67,.18);

  --shadow-card: 0 18px 52px rgba(30, 58, 82, .07);
  --shadow-floating: 0 24px 70px rgba(24, 52, 76, .13);
  --header-glass: rgba(247,249,252,.76);
}


:root[data-theme="dark"] {
  color-scheme: dark;

  --surface-page: #071522;
  --surface-card: rgba(15, 40, 62, .82);
  --surface-elevated: #102a43;
  --surface-muted: #173b5d;
  --surface-soft-navy: #102c45;
  --surface-soft-gold: #302516;

  --text-primary: #f7fafc;
  --text-secondary: #c3d0db;
  --text-tertiary: #8fa5b7;

  --border-subtle: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --shadow-card: 0 18px 52px rgba(0,0,0,.20);
  --shadow-floating: 0 28px 80px rgba(0,0,0,.36);
  --header-glass: rgba(7,21,34,.78);
}


* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface-page);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--brand-gold) 8%, transparent) 0, transparent 28%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--brand-navy) 8%, transparent) 0, transparent 30%),
    var(--surface-page);
  color: var(--text-primary);
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: color-mix(in srgb, var(--brand-gold) 28%, transparent);
}


body {
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
p { margin: 0; color: var(--text-secondary); }
[dir="ltr"] { font-family: var(--font-latin); }


.container {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.app-main {
  min-height: calc(100vh - 118px);
}

@media (min-width: 1500px) {
  .container {
    width: min(1360px, calc(100% - 4rem));
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.2rem, 1240px);
  }
}


.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    background .18s var(--ease-out);
}

.button svg { width: 18px; height: 18px; }

.button-primary {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-soft));
  color: white;
  box-shadow: 0 14px 34px rgba(16,42,67,.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16,42,67,.24);
}

.button-secondary {
  border-color: var(--border-subtle);
  background: var(--surface-elevated);
}

.button-quiet {
  color: var(--text-secondary);
  background: transparent;
}

.button-quiet:hover {
  color: var(--text-primary);
  background: var(--surface-card);
}


.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-main {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--surface-page) 90%, transparent);
}

.header-main-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto minmax(250px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: .3rem;
  border-radius: 12px;
}

.brand-lockup img {
  width: 138px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.header-nav a {
  padding: .6rem .72rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 800;
  transition: color .16s var(--ease-out), background .16s var(--ease-out);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.router-link-active {
  color: var(--text-primary);
  background: var(--surface-card);
}

.header-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .28rem .35rem .28rem .72rem;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-card);
  box-shadow: 0 5px 18px rgba(16,42,67,.035);
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}

[dir="rtl"] .header-search {
  padding: .28rem .72rem .28rem .35rem;
}

.header-search:focus-within {
  border-color: color-mix(in srgb, var(--brand-gold) 42%, var(--border-strong));
  box-shadow: 0 8px 24px rgba(16,42,67,.065);
}

.header-search > svg {
  width: 17px;
  height: 17px;
  color: var(--text-tertiary);
  stroke-width: 1.7;
}

.header-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: .78rem;
}

.header-search input::placeholder {
  color: var(--text-tertiary);
}

.header-search button {
  min-height: 32px;
  padding: .35rem .62rem;
  border: 0;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.icon-tool,
.mobile-menu-button {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.icon-tool svg,
.mobile-menu-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.login-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .5rem .72rem;
  border: 0;
  border-radius: 11px;
  background: var(--brand-navy);
  color: white;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(16,42,67,.12);
}

.login-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

/* Brand dropdowns */
.brand-dropdown {
  position: relative;
}

.utility-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .45rem .58rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: pointer;
}

.utility-button:hover {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

.utility-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.utility-button-label {
  min-width: 27px;
  color: var(--text-primary);
  font-family: var(--font-latin);
  font-size: .68rem;
  font-weight: 850;
}

.chevron {
  color: var(--text-tertiary);
  line-height: 1;
  transition: transform .16s var(--ease-out);
}

.chevron.is-open {
  transform: rotate(180deg);
}

.brand-menu {
  position: absolute;
  inset-block-start: calc(100% + .6rem);
  inset-inline-end: 0;
  width: 258px;
  padding: .5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-floating);
  z-index: 160;
}

.brand-menu::before {
  content: "";
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: 20px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--surface-elevated);
  border-inline-start: 1px solid var(--border-subtle);
  border-block-start: 1px solid var(--border-subtle);
}

.brand-menu-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: .6rem;
  padding: .55rem .62rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
}

.brand-menu-item:hover,
.brand-menu-item.is-active {
  background: var(--surface-muted);
}

.brand-menu-leading {
  display: grid;
  place-items: center;
}

.brand-menu-copy {
  display: grid;
  gap: .05rem;
}

.brand-menu-copy strong {
  font-size: .78rem;
  font-weight: 850;
}

.brand-menu-copy small {
  color: var(--text-tertiary);
  font-size: .66rem;
}

.menu-check {
  color: var(--brand-gold);
  font-weight: 900;
  text-align: center;
}

.language-badge {
  width: 32px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft-navy);
  color: var(--brand-navy);
  font-family: var(--font-latin);
  font-size: .65rem;
  font-weight: 900;
}

.theme-dot {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: linear-gradient(145deg,#fff 50%,#102a43 50%);
}

.theme-dot[data-theme-option="light"] {
  background: #fff;
}

.theme-dot[data-theme-option="dark"] {
  background: #102a43;
}

/* Seasonal strip */
.campaign-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface-soft-gold) 58%, var(--surface-page)),
    color-mix(in srgb, var(--surface-page) 94%, var(--surface-soft-navy))
  );
}

.campaign-strip-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: .65rem;
}

.campaign-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand-gold) 16%, transparent);
  color: #97620b;
}

.campaign-mark svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.65;
}

.campaign-strip p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-secondary);
  font-size: .69rem;
}

.campaign-strip p strong {
  color: var(--text-primary);
  white-space: nowrap;
}

.campaign-strip p span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.campaign-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-primary);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

[dir="ltr"] .campaign-link span {
  transform: scaleX(-1);
}

/* Mobile search and nav */
.header-search-panel,
.mobile-nav-panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  box-shadow: 0 20px 48px rgba(16,42,67,.10);
}

.header-search-panel-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 20px 1fr auto 38px;
  align-items: center;
  gap: .5rem;
}

.header-search-panel-inner > svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.header-search-panel-inner input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
}

.search-submit-mobile {
  min-height: 38px;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 10px;
  background: var(--brand-navy);
  color: white;
  font-weight: 850;
}

.search-close-mobile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-primary);
}

.search-close-mobile svg {
  width: 16px;
  height: 16px;
}

.mobile-nav-panel-inner {
  padding-block: .7rem;
}

.mobile-nav-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}

.mobile-nav-panel a {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: .78rem;
  font-weight: 800;
}

.mobile-nav-panel a > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--brand-navy);
}

.mobile-nav-panel svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.header-panel-enter-active,
.header-panel-leave-active,
.menu-pop-enter-active,
.menu-pop-leave-active {
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}

.header-panel-enter-from,
.header-panel-leave-to,
.menu-pop-enter-from,
.menu-pop-leave-to {
  opacity: 0;
  transform: translateY(-5px);
}

@media (max-width: 1180px) {
  .header-main-row {
    grid-template-columns: auto auto 1fr auto;
    gap: .7rem;
  }

  .header-nav a {
    padding-inline: .5rem;
    font-size: .73rem;
  }

  .header-search {
    max-width: 330px;
  }

  .utility-button-label,
  .login-button span {
    display: none;
  }

  .utility-button,
  .login-button {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .utility-button .chevron {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-main-row {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .brand-lockup img {
    width: 122px;
  }

  .header-nav,
  .header-search {
    display: none;
  }

  .search-tool-mobile,
  .mobile-menu-button {
    display: grid;
  }

  .campaign-strip-row {
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  .header-tools {
    gap: .28rem;
  }

  .icon-tool,
  .mobile-menu-button,
  .utility-button,
  .login-button {
    width: 37px;
    height: 37px;
    min-height: 37px;
  }

  .brand-lockup img {
    width: 108px;
  }

  .campaign-strip-row {
    grid-template-columns: 25px 1fr auto;
    gap: .42rem;
  }

  .campaign-strip p strong {
    display: none;
  }

  .campaign-strip p span {
    font-size: .62rem;
  }

  .campaign-link {
    font-size: 0;
  }

  .campaign-link span {
    font-size: .9rem;
  }

  .mobile-nav-panel nav {
    grid-template-columns: 1fr;
  }

  .brand-menu {
    width: min(260px, calc(100vw - 1rem));
  }
}


.app-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, color-mix(in srgb,var(--surface-muted) 55%,transparent), transparent),
    var(--surface-page);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(140px, .7fr));
  gap: 2rem;
  padding-block: 3.2rem 2.2rem;
}

.footer-brand {
  max-width: 390px;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  width: 148px;
}

.footer-brand p {
  margin-top: .9rem;
  line-height: 1.8;
  font-size: .82rem;
}

.footer-brand > span {
  display: inline-block;
  margin-top: .7rem;
  color: var(--brand-gold);
  font-size: .75rem;
  font-weight: 900;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: .58rem;
}

.footer-column h3 {
  margin-bottom: .25rem;
  color: var(--text-primary);
  font-size: .82rem;
}

.footer-column a,
.footer-column > span {
  display: flex;
  align-items: center;
  gap: .38rem;
  color: var(--text-secondary);
  font-size: .73rem;
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-column svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: .66rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1rem;
    padding-block: 2.4rem 1.8rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}


.video-rail,
.teacher-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: .15rem .05rem 1rem;
}

.video-rail::-webkit-scrollbar,
.teacher-rail::-webkit-scrollbar {
  display: none;
}

.video-card {
  width: 318px;
  flex: 0 0 318px;
  scroll-snap-align: start;
}

.video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 7%, transparent);
  border-radius: 17px;
  color: white;
  box-shadow: 0 12px 32px rgba(16,42,67,.08);
  isolation: isolate;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.video-thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 48px rgba(16,42,67,.14);
}

.video-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 21%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, transparent 25%, rgba(0,0,0,.18));
}

.video-thumbnail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2,13,23,.52), transparent);
}

.video-thumb-navy { background: linear-gradient(135deg,#163b5c,#0a1d2c); }
.video-thumb-teal { background: linear-gradient(135deg,#17666b,#0b3035); }
.video-thumb-green { background: linear-gradient(135deg,#1c6654,#0a3027); }
.video-thumb-plum { background: linear-gradient(135deg,#6b425b,#31202b); }
.video-thumb-rose { background: linear-gradient(135deg,#8a535a,#41272d); }
.video-thumb-gold { background: linear-gradient(135deg,#72521d,#2d2617); }

.video-free-badge,
.video-stage-badge,
.video-duration {
  position: absolute;
  z-index: 2;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .46rem;
  border-radius: 8px;
  font-size: .59rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.video-free-badge {
  inset-block-start: .65rem;
  inset-inline-start: .65rem;
  background: rgba(255,255,255,.92);
  color: #102a43;
}

.video-stage-badge {
  inset-block-start: .65rem;
  inset-inline-end: .65rem;
  background: rgba(5,17,29,.48);
  color: white;
  font-family: var(--font-latin);
}

.video-duration {
  inset-block-end: .65rem;
  inset-inline-end: .65rem;
  background: rgba(5,17,29,.68);
  color: white;
  font-family: var(--font-latin);
}

.video-duration svg {
  width: 12px;
  height: 12px;
}

.video-symbol {
  position: absolute;
  inset-inline-start: 8%;
  inset-block-end: 8%;
  color: rgba(255,255,255,.11);
  font-family: var(--font-latin);
  font-size: clamp(3.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.video-play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--brand-navy);
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
  transform: scale(.92);
  transition: transform .18s var(--ease-out);
}

.video-thumbnail:hover .video-play-button {
  transform: scale(1);
}

.video-play-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.video-card-body {
  padding: .75rem .08rem 0;
}

.video-title-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  align-items: start;
}

.video-title-line h3 {
  font-size: .91rem;
  line-height: 1.5;
}

.series-count {
  min-width: max-content;
  padding: .28rem .4rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-size: .58rem;
  font-weight: 800;
}

.video-teacher-line {
  display: flex;
  align-items: center;
  gap: .48rem;
  margin-top: .62rem;
}

.teacher-mini-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: .7rem;
  font-weight: 900;
}

.video-teacher-line > div {
  min-width: 0;
  display: grid;
  gap: .02rem;
}

.video-teacher-line strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .67rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-teacher-line small {
  color: var(--text-tertiary);
  font-size: .59rem;
}

.video-series-status {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .55rem;
  color: var(--text-tertiary);
  font-size: .59rem;
  font-weight: 750;
}

.video-series-status span {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
}

.video-series-status svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
}

@media (max-width: 560px) {
  .video-card {
    width: 278px;
    flex-basis: 278px;
  }

  .video-title-line {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .series-count {
    width: fit-content;
  }
}


.teacher-card {
  width: 252px;
  flex: 0 0 252px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 10px 30px rgba(16,42,67,.055);
  scroll-snap-align: start;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(16,42,67,.11);
}

.teacher-portrait {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.teacher-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(16,42,67,.16), transparent);
}

.teacher-portrait-navy { background: linear-gradient(145deg,#e7f0f5,#c7dae6); }
.teacher-portrait-teal { background: linear-gradient(145deg,#e6f3f2,#c7dfdd); }
.teacher-portrait-green { background: linear-gradient(145deg,#ebf5ed,#cee2d3); }
.teacher-portrait-plum { background: linear-gradient(145deg,#f4ebf0,#ddccd6); }
.teacher-portrait-rose { background: linear-gradient(145deg,#f7eded,#e2d0d3); }
.teacher-portrait-gold { background: linear-gradient(145deg,#fff4dc,#e9d9b7); }

.teacher-demo-label {
  position: absolute;
  inset-block-start: .7rem;
  inset-inline-start: .7rem;
  z-index: 2;
  padding: .26rem .42rem;
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #6d7f90;
  font-size: .55rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.teacher-silhouette {
  position: relative;
  width: 140px;
  height: 185px;
  display: block;
}

.teacher-head {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 12px;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(16,42,67,.16);
}

[dir="rtl"] .teacher-head {
  transform: translateX(50%);
}

.teacher-body-shape {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 0;
  width: 134px;
  height: 122px;
  transform: translateX(-50%);
  border-radius: 62px 62px 24px 24px;
  background: linear-gradient(180deg,var(--brand-navy),#183e5e);
  box-shadow: 0 18px 38px rgba(16,42,67,.17);
}

[dir="rtl"] .teacher-body-shape {
  transform: translateX(50%);
}

.teacher-verified {
  position: absolute;
  inset-inline-end: .7rem;
  inset-block-end: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem .45rem;
  border-radius: 999px;
  background: rgba(239,250,246,.90);
  color: #13795b;
  font-size: .57rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.teacher-verified svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
}

.teacher-card-content {
  padding: .9rem;
}

.teacher-subject {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}

.teacher-card-content h3 {
  margin-top: .2rem;
  font-size: .9rem;
}

.teacher-location {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .35rem;
  color: var(--text-tertiary);
  font-size: .61rem;
}

.teacher-location svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}

.teacher-free-link {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: .64rem;
  font-weight: 850;
}

.teacher-free-link:hover {
  border-color: color-mix(in srgb,var(--brand-gold) 34%,var(--border-strong));
  background: var(--surface-soft-gold);
}

.teacher-free-link svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.empty-filter-card {
  width: 252px;
  min-height: 300px;
  flex: 0 0 252px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .7rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  background: var(--surface-muted);
  text-align: center;
}

.empty-filter-card svg {
  width: 28px;
  height: 28px;
  color: var(--text-tertiary);
}

.empty-filter-card strong {
  font-size: .76rem;
}

.empty-filter-card button {
  padding: .45rem .65rem;
  border: 0;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-size: .65rem;
  font-weight: 850;
}


.quick-finder-wrap {
  position: relative;
  z-index: 3;
  margin-top: -1rem;
}

.quick-finder {
  display: grid;
  grid-template-columns: minmax(260px,.75fr) minmax(0,1.75fr);
  gap: 1.5rem;
  padding: 1.3rem;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: color-mix(in srgb,var(--surface-elevated) 93%,transparent);
  box-shadow: 0 22px 60px rgba(16,42,67,.08);
  backdrop-filter: blur(16px);
}

.quick-finder-intro {
  padding: .4rem .35rem;
}

.quick-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-gold);
  font-size: .65rem;
  font-weight: 900;
}

.quick-kicker svg {
  width: 14px;
  height: 14px;
}

.quick-finder-intro h2 {
  margin-top: .4rem;
  font-size: clamp(1.2rem,2.4vw,1.65rem);
}

.quick-finder-intro p {
  margin-top: .5rem;
  max-width: 420px;
  font-size: .76rem;
  line-height: 1.75;
}

.quick-filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: stretch;
}

.quick-filter-group {
  padding: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  background: var(--surface-card);
}

.quick-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}

.quick-filter-heading strong {
  font-size: .72rem;
}

.quick-filter-heading span {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .62rem;
  font-weight: 900;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.quick-chips button {
  min-height: 31px;
  padding: .33rem .5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}

.quick-chips button:hover {
  color: var(--text-primary);
}

.quick-chips button.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 35%,transparent);
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}

.quick-show-button {
  min-width: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  border: 0;
  border-radius: 15px;
  background: var(--brand-navy);
  color: white;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16,42,67,.15);
}

.quick-show-button svg {
  width: 20px;
  height: 20px;
}

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

  .quick-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .quick-show-button {
    min-height: 54px;
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 580px) {
  .quick-finder {
    padding: .9rem;
    border-radius: 18px;
  }

  .quick-filter-panel {
    grid-template-columns: 1fr;
  }

  .quick-show-button {
    grid-column: auto;
  }
}


.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-floating);
}

.course-card h2 { margin-block: 1rem .55rem; }

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.course-meta,
.subject-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .6rem;
  border-radius: 9px;
  font-weight: 850;
  font-size: .78rem;
}

.course-meta {
  color: var(--brand-navy);
  background: var(--surface-soft-navy);
}

.subject-pill {
  color: #8b5a08;
  background: var(--surface-soft-gold);
}

.course-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  padding: .65rem 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 850;
  cursor: pointer;
}

.course-link svg { width: 17px; height: 17px; }

.state-card {
  max-width: 620px;
  margin-inline: auto;
  display: grid;
  gap: .8rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.course-skeleton {
  height: 250px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--surface-muted) 20%, var(--surface-card) 40%, var(--surface-muted) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

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

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

[dir="rtl"] .course-link svg { transform: scaleX(-1); }


.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem,7vw,6.5rem) 2.8rem;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb,var(--brand-gold) 8%,transparent), transparent 29%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb,var(--brand-navy) 7%,transparent), transparent 31%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(420px,1.12fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}

.home-hero-copy {
  max-width: 650px;
}

.home-eyebrow {
  display: inline-block;
  color: var(--brand-gold);
  font-size: .7rem;
  font-weight: 900;
}

.home-hero h1 {
  margin-top: .55rem;
  font-size: clamp(2.6rem,5.3vw,4.9rem);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--brand-navy);
  position: relative;
}

:root[data-theme="dark"] .home-hero h1 span {
  color: white;
}

.home-hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  inset-block-end: .06em;
  height: .16em;
  border-radius: 999px;
  background: color-mix(in srgb,var(--brand-gold) 52%,transparent);
}

.home-hero-copy > p {
  max-width: 610px;
  margin-top: 1rem;
  font-size: .98rem;
  line-height: 1.9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.home-hero-actions .button {
  min-height: 47px;
}

[dir="rtl"] .home-hero-actions .button-primary svg,
[dir="rtl"] .section-link svg {
  transform: scaleX(-1);
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: .65rem;
  font-weight: 750;
}

.home-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.home-trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.hero-featured-video {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--surface-elevated);
  box-shadow: 0 28px 78px rgba(16,42,67,.13);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.hero-featured-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(16,42,67,.17);
}

.hero-video-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-video-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(145deg, transparent 28%, rgba(0,0,0,.18));
}

.hero-video-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4,15,25,.52), transparent);
}

.hero-video-free,
.hero-video-stage,
.hero-video-duration {
  position: absolute;
  z-index: 2;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: .28rem .5rem;
  border-radius: 9px;
  font-size: .62rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.hero-video-free {
  inset-block-start: .8rem;
  inset-inline-start: .8rem;
  background: rgba(255,255,255,.92);
  color: #102a43;
}

.hero-video-stage {
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  background: rgba(5,17,29,.48);
  color: white;
  font-family: var(--font-latin);
}

.hero-video-duration {
  inset-block-end: .8rem;
  inset-inline-end: .8rem;
  background: rgba(5,17,29,.66);
  color: white;
  font-family: var(--font-latin);
}

.hero-video-symbol {
  position: absolute;
  inset-inline-start: 7%;
  inset-block-end: 3%;
  color: rgba(255,255,255,.10);
  font-family: var(--font-latin);
  font-size: clamp(6rem,12vw,10rem);
  font-weight: 900;
  line-height: 1;
}

.hero-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--brand-navy);
  box-shadow: 0 18px 44px rgba(0,0,0,.23);
}

.hero-video-play svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.hero-video-meta {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: .65rem;
  padding: .8rem .95rem;
}

.hero-video-meta .teacher-mini-avatar {
  width: 38px;
  height: 38px;
}

.hero-video-meta > div {
  min-width: 0;
  display: grid;
  gap: .06rem;
}

.hero-video-meta small {
  color: var(--brand-gold);
  font-size: .59rem;
  font-weight: 900;
}

.hero-video-meta strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: .84rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-video-meta span {
  color: var(--text-tertiary);
  font-size: .62rem;
}

.home-section {
  padding-block: clamp(3.5rem,6vw,5.5rem);
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-title-row.compact {
  margin-bottom: 1rem;
}

.section-title-row h2 {
  margin-top: .2rem;
  font-size: clamp(1.45rem,2.7vw,2.15rem);
}

.section-title-row p {
  max-width: 720px;
  margin-top: .45rem;
  font-size: .8rem;
  line-height: 1.7;
}

.section-kicker {
  color: var(--brand-gold);
  font-size: .66rem;
  font-weight: 900;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .55rem;
  color: var(--text-primary);
  font-size: .67rem;
  font-weight: 900;
  white-space: nowrap;
}

.section-link svg {
  width: 14px;
  height: 14px;
}

.section-icon-hint {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-card);
  color: var(--brand-navy);
}

.section-icon-hint svg {
  width: 19px;
  height: 19px;
}

.video-discovery-section {
  scroll-margin-top: 130px;
}

.video-discovery-note {
  max-width: 690px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .65rem;
  align-items: center;
  margin-top: .55rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-muted);
}

.video-discovery-note > svg {
  width: 18px;
  height: 18px;
  color: var(--brand-gold);
}

.video-discovery-note p {
  display: grid;
  gap: .04rem;
}

.video-discovery-note strong {
  color: var(--text-primary);
  font-size: .68rem;
}

.video-discovery-note span {
  color: var(--text-secondary);
  font-size: .63rem;
  line-height: 1.55;
}

.teachers-section {
  scroll-margin-top: 130px;
  border-block: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--surface-muted) 55%,transparent),transparent);
}

.wilaya-filter {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: .15rem;
  scrollbar-width: none;
}

.wilaya-filter::-webkit-scrollbar {
  display: none;
}

.wilaya-filter button {
  min-width: max-content;
  min-height: 34px;
  padding: .38rem .58rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}

.wilaya-filter button.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: white;
}

.pathway-section {
  padding-block-end: 2rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .85rem;
}

.pathway-card {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(16,42,67,.05);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(16,42,67,.10);
}

.pathway-bem {
  background: linear-gradient(145deg,#fff7e7,var(--surface-elevated));
}

.pathway-bac {
  background: linear-gradient(145deg,#eaf2f7,var(--surface-elevated));
}

.pathway-level {
  background: linear-gradient(145deg,#edf7f2,var(--surface-elevated));
}

:root[data-theme="dark"] .pathway-bem,
:root[data-theme="dark"] .pathway-bac,
:root[data-theme="dark"] .pathway-level {
  background: var(--surface-card);
}

.pathway-card > span {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: .8rem;
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .7rem;
  font-weight: 900;
}

.pathway-card small {
  color: var(--brand-gold);
  font-family: var(--font-latin);
  font-size: .63rem;
  font-weight: 900;
}

.pathway-card h3 {
  margin-top: 1rem;
  font-size: 1.12rem;
}

.pathway-card p {
  max-width: 350px;
  margin-top: .5rem;
  font-size: .73rem;
  line-height: 1.7;
}

.pathway-card > strong {
  position: absolute;
  inset-inline-start: 1.15rem;
  inset-block-end: 1rem;
  font-size: .66rem;
}

@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .hero-featured-video {
    max-width: 760px;
  }

  .pathway-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .home-hero {
    padding-block-start: 2.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem,11vw,3.35rem);
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-actions .button {
    width: 100%;
  }

  .home-trust-row {
    display: grid;
    gap: .45rem;
  }

  .hero-featured-video {
    border-radius: 18px;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    gap: .6rem;
    align-items: start;
  }

  .section-link,
  .section-icon-hint {
    justify-self: start;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }
}


.watch-page {
  padding-block: 1.2rem 4rem;
}

.watch-breadcrumb {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: .62rem;
  white-space: nowrap;
}

.watch-breadcrumb a {
  color: var(--text-secondary);
}

.watch-breadcrumb strong {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 1.15rem;
  align-items: start;
}

.watch-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 19px;
  background:
    radial-gradient(circle at 70% 20%,rgba(255,255,255,.07),transparent 28%),
    #07121d;
  box-shadow: 0 22px 60px rgba(16,42,67,.12);
}

.lesson-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #07121d;
}

.player-top-status {
  position: absolute;
  inset-block-start: .7rem;
  inset-inline-end: .7rem;
  z-index: 4;
  display: flex;
  gap: .35rem;
  align-items: center;
}

.player-top-status > span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .28rem .45rem;
  border-radius: 8px;
  background: rgba(5,17,29,.68);
  color: white;
  font-family: var(--font-latin);
  font-size: .59rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.player-top-status .player-free {
  background: rgba(242,169,59,.92);
  color: #2d1c00;
  font-family: var(--font-body);
}

.player-top-status .player-paid {
  font-family: var(--font-body);
}

.player-top-status svg {
  width: 12px;
  height: 12px;
}

.player-locked-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(145deg,rgba(6,20,32,.92),rgba(14,39,58,.96));
}

.subscription-prompt {
  width: min(520px,100%);
  text-align: center;
  color: white;
}

.subscription-lock {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.subscription-lock svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.subscription-kicker {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  color: var(--brand-gold-soft);
  font-size: .62rem;
  font-weight: 900;
}

.subscription-kicker svg {
  width: 13px;
  height: 13px;
}

.subscription-prompt h2 {
  margin-top: .35rem;
  color: white;
  font-size: clamp(1.35rem,3vw,2rem);
}

.subscription-prompt p {
  max-width: 470px;
  margin: .55rem auto 0;
  color: #c8d4de;
  font-size: .75rem;
  line-height: 1.75;
}

.subscription-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.subscription-actions .button {
  min-height: 42px;
  font-size: .68rem;
}

.subscription-actions .button-secondary {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
}

.subscription-prompt > small {
  display: block;
  margin-top: .6rem;
  color: #9eb0bf;
  font-size: .58rem;
}

.lesson-primary-info {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: .95rem;
}

.lesson-heading > span {
  color: var(--brand-gold);
  font-family: var(--font-latin);
  font-size: .63rem;
  font-weight: 900;
}

.lesson-heading h1 {
  margin-top: .25rem;
  font-size: clamp(1.2rem,2.5vw,1.75rem);
  line-height: 1.4;
}

.next-lesson-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: .66rem;
  font-weight: 850;
  cursor: pointer;
}

.next-lesson-button svg {
  width: 15px;
  height: 15px;
}

[dir="rtl"] .next-lesson-button svg {
  transform: scaleX(-1);
}

.watch-teacher-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .7rem;
  align-items: center;
  margin-top: .8rem;
  padding: .75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-card);
}

.watch-teacher-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-weight: 900;
}

.watch-teacher-card > div {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.watch-teacher-card small {
  color: var(--text-tertiary);
  font-size: .56rem;
}

.watch-teacher-card strong {
  font-size: .78rem;
}

.watch-teacher-card div > span {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--text-tertiary);
  font-size: .58rem;
}

.watch-teacher-card div > span svg {
  width: 12px;
  height: 12px;
  color: #13795b;
}

.watch-teacher-free {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: .6rem;
  font-weight: 850;
}

.watch-teacher-free svg {
  width: 13px;
  height: 13px;
  color: var(--brand-gold);
}

.lesson-detail-card {
  margin-top: .8rem;
  padding: .85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-card);
}

.lesson-tabs {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.lesson-tabs button {
  min-height: 34px;
  min-width: max-content;
  padding: .35rem .55rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: .62rem;
  font-weight: 850;
  cursor: pointer;
}

.lesson-tabs button.is-active {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.lesson-detail-card > p {
  margin-top: .7rem;
  max-width: 760px;
  font-size: .72rem;
  line-height: 1.75;
}

.lesson-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .7rem;
  color: var(--text-tertiary);
  font-size: .58rem;
}

.lesson-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.lesson-detail-meta svg {
  width: 12px;
  height: 12px;
}

/* Series sidebar */
.series-panel {
  position: sticky;
  top: 130px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: 0 14px 38px rgba(16,42,67,.06);
}

.series-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  align-items: start;
  padding: .85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.series-panel-header > div {
  min-width: 0;
}

.series-panel-header span {
  color: var(--text-tertiary);
  font-size: .56rem;
  font-weight: 750;
}

.series-panel-header h2 {
  margin-top: .2rem;
  overflow: hidden;
  font-size: .86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.series-free-counter {
  min-width: max-content;
  padding: .28rem .42rem;
  border-radius: 8px;
  background: var(--surface-soft-gold);
  color: #8e5b08 !important;
  font-size: .57rem !important;
  font-weight: 900 !important;
}

.series-list {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.series-lesson {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: .55rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: background .15s var(--ease-out);
}

.series-lesson:hover {
  background: var(--surface-muted);
}

.series-lesson.is-active {
  background: color-mix(in srgb,var(--surface-soft-gold) 55%,var(--surface-card));
  box-shadow: inset 3px 0 0 var(--brand-gold);
}

[dir="rtl"] .series-lesson.is-active {
  box-shadow: inset -3px 0 0 var(--brand-gold);
}

.series-lesson.is-locked {
  color: var(--text-secondary);
}

.series-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .61rem;
  font-weight: 900;
}

.series-lesson.is-active .series-number {
  background: var(--brand-navy);
  color: white;
}

.series-lesson-copy {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.series-lesson-copy strong {
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.series-lesson-copy small {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .55rem;
}

.series-access {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .54rem;
  font-weight: 850;
}

.series-access svg {
  width: 12px;
  height: 12px;
}

.series-access.free {
  color: #13795b;
}

.series-access.locked {
  width: 28px;
  height: 28px;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
}

.series-subscribe-card {
  margin: .7rem;
  padding: .75rem;
  border-radius: 13px;
  background: var(--brand-navy);
  color: white;
}

.series-subscribe-card > strong {
  font-size: .72rem;
}

.series-subscribe-card > p {
  margin-top: .25rem;
  color: #c4d1dc;
  font-size: .59rem;
  line-height: 1.55;
}

.series-subscribe-card > button {
  width: 100%;
  min-height: 37px;
  margin-top: .6rem;
  border: 0;
  border-radius: 10px;
  background: var(--brand-gold);
  color: #392500;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
}

.inline-plans {
  display: grid;
  gap: .35rem;
  margin-top: .5rem;
}

.inline-plans > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .45rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
}

.inline-plans span {
  color: white;
  font-size: .57rem;
}

.inline-plans strong {
  color: #c7d5df;
  font-size: .53rem;
  font-weight: 750;
}

.plans-expand-enter-active,
.plans-expand-leave-active {
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}

.plans-expand-enter-from,
.plans-expand-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

@media (max-width: 1050px) {
  .watch-layout {
    grid-template-columns: minmax(0,1fr) 320px;
  }
}

@media (max-width: 880px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .series-panel {
    position: static;
  }

  .series-list {
    max-height: none;
  }
}

@media (max-width: 580px) {
  .watch-page {
    padding-block-start: .5rem;
  }

  .watch-breadcrumb {
    min-height: 36px;
  }

  .player-shell {
    margin-inline: -.6rem;
    border-inline: 0;
    border-radius: 0;
  }

  .lesson-primary-info {
    grid-template-columns: 1fr;
  }

  .next-lesson-button {
    justify-self: start;
  }

  .watch-teacher-card {
    grid-template-columns: 40px 1fr;
  }

  .watch-teacher-free {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .series-panel {
    border-radius: 14px;
  }

  .series-lesson {
    grid-template-columns: 32px 1fr auto;
  }

  .subscription-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subscription-actions .button {
    width: 100%;
  }
}


/* Runtime release glue */
.app-shell { min-height: 100vh; }
.runtime-toast {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  z-index: 220;
  max-width: min(360px, calc(100vw - 2rem));
  padding: .75rem .9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating);
  font-size: .7rem;
  font-weight: 800;
}
.subscription-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: 1rem;
}
.subscription-checkout-grid button {
  min-height: 86px;
  display: grid;
  gap: .22rem;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: white;
  cursor: pointer;
  text-align: start;
}
.subscription-checkout-grid span { font-size: .7rem; font-weight: 900; }
.subscription-checkout-grid strong { color: #bfcdd8; font-size: .58rem; font-weight: 750; }
.subscription-back {
  width: 38px;
  height: 38px;
  margin-top: .65rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: white;
  cursor: pointer;
}
[dir="rtl"] .subscription-back { transform: scaleX(-1); }

.page-hero {
  padding-block: clamp(3.4rem,7vw,5.7rem) 1.6rem;
}
.page-hero h1 { margin-top: .25rem; }
.page-hero p { max-width: 650px; margin-top: .75rem; line-height: 1.75; font-size: .82rem; }
.courses-section { padding-block-start: 1.5rem; }

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


/* ===== v0.3.6 release overrides ===== */
/* DOROUS DZ v0.3.6 — study-focus polish */

/* Brand lockup is assembled from approved source assets so dark mode never loses the wordmark. */
.brand-lockup,
.footer-logo {
  text-decoration: none;
}
.brand-composite {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
}
.brand-wordmark {
  width: 92px;
  height: auto;
  object-fit: contain;
}
.brand-mark-shell {
  width: 35px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.brand-mark-image {
  width: 28px;
  max-height: 34px;
  object-fit: contain;
}
:root[data-theme="dark"] .brand-wordmark {
  filter: brightness(0) invert(1);
  opacity: .96;
}
:root[data-theme="dark"] .brand-mark-shell {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
:root[data-theme="dark"] .footer-logo .brand-mark-shell {
  background: rgba(255,255,255,.90);
}

/* Dark mode refinement across the product. */
:root[data-theme="dark"] {
  --surface-page: #081722;
  --surface-card: rgba(17, 42, 59, .88);
  --surface-elevated: #102a3c;
  --surface-muted: #17384b;
  --surface-soft-navy: #123149;
  --surface-soft-gold: #332817;
  --text-primary: #f5f8fb;
  --text-secondary: #c6d2dc;
  --text-tertiary: #91a7b7;
  --border-subtle: rgba(226,238,246,.10);
  --border-strong: rgba(226,238,246,.18);
  --shadow-card: 0 16px 46px rgba(0,0,0,.20);
  --shadow-floating: 0 28px 80px rgba(0,0,0,.34);
  --header-glass: rgba(8,23,34,.88);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(242,169,59,.055), transparent 27rem),
    radial-gradient(circle at 88% 7%, rgba(74,127,164,.08), transparent 30rem),
    var(--surface-page);
}
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .header-main {
  background: color-mix(in srgb,var(--surface-page) 92%,transparent);
}
:root[data-theme="dark"] .hero-featured-video,
:root[data-theme="dark"] .quick-finder,
:root[data-theme="dark"] .video-card,
:root[data-theme="dark"] .teacher-card,
:root[data-theme="dark"] .lesson-detail-card,
:root[data-theme="dark"] .watch-teacher-card,
:root[data-theme="dark"] .series-panel,
:root[data-theme="dark"] .app-footer {
  border-color: var(--border-subtle);
}
:root[data-theme="dark"] .section-icon-hint {
  color: var(--brand-gold-soft);
}

/* Header: icon-led, alive on hover, but not noisy. */
.header-main-row {
  grid-template-columns: auto auto minmax(260px,1fr) auto;
  gap: .85rem;
}
.header-nav {
  gap: .24rem;
}
.header-nav-link {
  position: relative;
  min-height: 43px;
  display: inline-flex !important;
  align-items: center;
  gap: .38rem;
  padding: .38rem .55rem !important;
  border: 1px solid transparent;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
  overflow: hidden;
  isolation: isolate;
}
.header-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 20%;
  inset-block-end: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gold);
  transform: scaleX(0);
  opacity: 0;
  transition: transform .18s var(--ease-out), opacity .18s var(--ease-out);
}
.header-nav-link:hover,
.header-nav-link.router-link-active {
  color: var(--text-primary) !important;
  border-color: var(--border-subtle);
  background: color-mix(in srgb,var(--surface-card) 78%,transparent) !important;
  box-shadow: 0 7px 20px rgba(16,42,67,.055);
  transform: translateY(-1px);
}
.header-nav-link:hover::after,
.header-nav-link.router-link-active::after {
  transform: scaleX(1);
  opacity: 1;
}
.header-nav-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-secondary);
  background: color-mix(in srgb,var(--surface-muted) 72%,transparent);
  transition: color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}
.header-nav-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.65;
}
.header-nav-link:hover .header-nav-icon,
.header-nav-link.router-link-active .header-nav-icon {
  color: var(--brand-navy);
  background: var(--surface-soft-gold);
  transform: scale(1.04);
}
:root[data-theme="dark"] .header-nav-link:hover .header-nav-icon,
:root[data-theme="dark"] .header-nav-link.router-link-active .header-nav-icon {
  color: var(--brand-gold-soft);
}
.header-nav-link.is-featured {
  color: var(--text-primary) !important;
  border-color: color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  background: color-mix(in srgb,var(--surface-soft-gold) 55%,transparent) !important;
}
.header-nav-link.is-featured small {
  position: absolute;
  inset-inline-end: 3px;
  inset-block-start: 1px;
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  padding: 0 .26rem;
  border-radius: 5px;
  background: var(--brand-gold);
  color: #392600;
  font-size: .46rem;
  font-weight: 950;
  line-height: 1;
}
.header-search {
  box-shadow: 0 8px 26px rgba(16,42,67,.045);
}
.header-search:focus-within {
  border-color: color-mix(in srgb,var(--brand-gold) 55%,var(--border-strong));
  box-shadow: 0 10px 32px rgba(16,42,67,.09), 0 0 0 3px color-mix(in srgb,var(--brand-gold) 9%,transparent);
}
.utility-button,
.login-button,
.icon-tool,
.mobile-menu-button {
  transition: transform .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .16s var(--ease-out), background .16s var(--ease-out);
}
.utility-button:hover,
.icon-tool:hover,
.mobile-menu-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 7px 18px rgba(16,42,67,.06);
}
.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16,42,67,.18);
}

/* Seasonal strip: compact but active. */
.campaign-strip {
  background:
    radial-gradient(circle at 14% 50%, color-mix(in srgb,var(--brand-gold) 8%,transparent), transparent 15rem),
    linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 50%,var(--surface-page)),var(--surface-page));
}
.campaign-mark {
  border: 1px solid color-mix(in srgb,var(--brand-gold) 24%,transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb,var(--brand-gold) 4%,transparent);
}
.campaign-link {
  min-height: 29px;
  padding: .3rem .52rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 9px;
  background: color-mix(in srgb,var(--surface-soft-gold) 64%,transparent);
}

/* First glance: stronger study motivation, still calm. */
.home-hero {
  padding-block-start: clamp(3.2rem,6.4vw,5.8rem);
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .55rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 18%,var(--border-subtle));
  border-radius: 999px;
  background: color-mix(in srgb,var(--surface-soft-gold) 48%,transparent);
}
.home-eyebrow svg {
  width: 14px;
  height: 14px;
}
.study-motivation-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  color: var(--text-secondary);
  font-size: .72rem;
}
.study-motivation-line > span {
  width: 31px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-gold);
}
.study-motivation-line strong {
  font-weight: 850;
}
.button-assessment {
  border-color: color-mix(in srgb,var(--brand-gold) 32%,var(--border-subtle));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.button-assessment svg {
  color: var(--brand-gold);
}
.button-assessment:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb,var(--brand-gold) 60%,var(--border-strong));
}

/* High-salience study navigator. */
.quick-finder-wrap {
  margin-top: -.65rem;
}
.quick-finder {
  grid-template-columns: minmax(220px,.58fr) minmax(0,1.75fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  border-color: color-mix(in srgb,var(--brand-gold) 18%,var(--border-subtle));
  box-shadow: 0 26px 70px rgba(16,42,67,.105);
}
.quick-finder-intro {
  position: relative;
  padding: .7rem .65rem;
}
.quick-finder-intro::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: .4rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--brand-gold),color-mix(in srgb,var(--brand-gold) 14%,transparent));
}
.quick-finder-intro h2 {
  font-size: clamp(1.28rem,2.4vw,1.75rem);
}
.quick-progress-text {
  display: inline-flex;
  margin-top: .75rem;
  padding: .32rem .48rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .59rem;
  font-weight: 850;
}
.quick-filter-panel {
  grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) 132px;
  gap: .65rem;
}
.quick-filter-group {
  position: relative;
  overflow: hidden;
  padding: .7rem;
  border-radius: 17px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s;
}
.quick-filter-group.needs-choice {
  border-color: color-mix(in srgb,var(--brand-gold) 52%,var(--border-subtle));
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand-gold) 7%,transparent), 0 12px 34px rgba(16,42,67,.07);
}
.quick-filter-group.needs-choice::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  inset-inline-end: -80px;
  inset-block-start: -100px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--brand-gold) 10%,transparent);
  pointer-events: none;
}
.quick-filter-group.is-muted {
  opacity: .58;
}
.quick-filter-heading {
  justify-content: flex-start;
  gap: .55rem;
}
.quick-filter-heading > div {
  min-width: 0;
  display: grid;
  gap: .02rem;
}
.quick-filter-heading strong {
  font-size: .72rem;
}
.quick-filter-heading small {
  color: var(--text-tertiary);
  font-size: .55rem;
}
.step-orb {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white !important;
  font-family: var(--font-latin);
  font-size: .58rem !important;
}
.step-check {
  margin-inline-start: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f7f1;
  color: #13795b !important;
}
.step-check svg {
  width: 14px;
  height: 14px;
}
.stage-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .38rem;
}
.stage-choice {
  min-height: 55px;
  display: grid;
  align-content: center;
  gap: .05rem;
  padding: .45rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background .16s, border-color .16s, box-shadow .16s;
}
.stage-choice strong {
  font-size: .69rem;
}
.stage-choice small {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .53rem;
}
.stage-choice:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stage-choice.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: white;
  box-shadow: 0 10px 24px rgba(16,42,67,.18);
}
.stage-choice.is-active small {
  color: #d7e3ec;
}
.subject-choice-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .38rem;
}
.subject-choice {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: .35rem;
  padding: .42rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s var(--ease-out), border-color .16s, background .16s;
}
.subject-choice:disabled {
  cursor: not-allowed;
}
.subject-choice:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.subject-choice-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  color: var(--brand-navy);
}
.subject-choice-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.65;
}
.subject-choice strong {
  font-size: .59rem;
}
.subject-choice.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 58%,var(--border-strong));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.subject-choice.is-active .subject-choice-icon {
  background: var(--brand-gold);
  color: #3c2700;
}
.quick-show-button {
  min-width: 0;
  padding: .7rem;
  opacity: .56;
  transform: none;
}
.quick-show-button:disabled {
  cursor: not-allowed;
}
.quick-show-button.is-ready {
  opacity: 1;
  background: linear-gradient(145deg,var(--brand-navy),#173f62);
  box-shadow: 0 14px 32px rgba(16,42,67,.20);
}
.quick-show-button span {
  font-size: .66rem;
}
.quick-show-button small {
  max-width: 100px;
  color: #d9e5ed;
  font-size: .52rem;
  line-height: 1.35;
  text-align: center;
}

/* Assessment teaser on home. */
.home-assessment-section {
  padding-block: 2.2rem 1rem;
}
.home-assessment-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 21px;
  background:
    radial-gradient(circle at 10% 50%,color-mix(in srgb,var(--brand-gold) 9%,transparent),transparent 18rem),
    var(--surface-card);
  box-shadow: 0 16px 44px rgba(16,42,67,.065);
  overflow: hidden;
}
.home-assessment-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-navy);
  color: white;
}
.home-assessment-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.55;
}
.home-assessment-card > div:nth-child(2) > span {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}
.home-assessment-card h2 {
  margin-top: .15rem;
  font-size: clamp(1.05rem,2vw,1.45rem);
}
.home-assessment-card p {
  margin-top: .35rem;
  max-width: 800px;
  font-size: .72rem;
  line-height: 1.6;
}
.assessment-mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.assessment-mini-flow span {
  padding: .28rem .42rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .54rem;
  font-weight: 800;
}
.home-assessment-cta {
  min-width: 150px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .1rem .35rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  background: var(--brand-gold);
  color: #352300;
  font-size: .68rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(242,169,59,.18);
}
.home-assessment-cta svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 16px;
  height: 16px;
}
[dir="rtl"] .home-assessment-cta svg {
  transform: scaleX(-1);
}
.home-assessment-cta small {
  font-size: .52rem;
  opacity: .72;
}

/* Assessment page */
.assessment-page {
  min-height: calc(100vh - 170px);
  padding-block: clamp(2rem,5vw,4.5rem) 5rem;
}
.assessment-shell {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}
.assessment-setup-copy {
  max-width: 620px;
}
.assessment-kicker {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--brand-gold);
  font-size: .68rem;
  font-weight: 900;
}
.assessment-kicker svg {
  width: 15px;
  height: 15px;
}
.assessment-setup-copy h1,
.assessment-result-shell h1 {
  margin-top: .55rem;
  font-size: clamp(2rem,4.6vw,4rem);
  line-height: 1.12;
}
.assessment-setup-copy > p {
  margin-top: 1rem;
  max-width: 590px;
  font-size: .88rem;
  line-height: 1.85;
}
.assessment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.assessment-badges span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: .62rem;
  font-weight: 800;
}
.assessment-badges svg {
  width: 13px;
  height: 13px;
  color: var(--brand-gold);
}
.assessment-setup-card {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--surface-card);
  box-shadow: var(--shadow-floating);
}
.assessment-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.assessment-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: .58rem;
  font-weight: 900;
}
.assessment-step strong {
  font-size: .72rem;
}
.assessment-stage-grid,
.assessment-subject-grid {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.assessment-stage-grid {
  grid-template-columns: repeat(4,1fr);
}
.assessment-subject-grid {
  grid-template-columns: repeat(5,1fr);
}
.assessment-stage-grid button,
.assessment-subject-grid button {
  min-height: 62px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}
.assessment-stage-grid button:hover,
.assessment-subject-grid button:hover {
  transform: translateY(-2px);
}
.assessment-stage-grid button.is-active,
.assessment-subject-grid button.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 48%,var(--border-strong));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.assessment-stage-grid strong,
.assessment-subject-grid strong {
  font-size: .62rem;
}
.assessment-stage-grid small {
  display: block;
  margin-top: .12rem;
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .5rem;
}
.assessment-subject-grid button {
  display: grid;
  place-items: center;
  gap: .2rem;
  padding: .45rem;
}
.assessment-subject-grid button > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  color: var(--brand-navy);
}
.assessment-subject-grid svg {
  width: 14px;
  height: 14px;
}
.assessment-start-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .05rem .5rem;
  padding: .6rem .8rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg,var(--brand-navy),#173f62);
  color: white;
  text-align: start;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(16,42,67,.18);
}
.assessment-start-button svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: var(--brand-gold);
}
.assessment-start-button small {
  color: #cbd8e1;
  font-size: .52rem;
}
.assessment-quiz-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 1rem;
  align-items: start;
}
.assessment-side,
.assessment-question-card,
.assessment-score-card,
.assessment-recommendation {
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.assessment-side {
  position: sticky;
  top: 142px;
  padding: 1rem;
}
.assessment-side h2 {
  margin-top: .45rem;
  font-size: 1rem;
}
.assessment-side p {
  margin-top: .55rem;
  font-size: .64rem;
}
.assessment-side > button {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: .58rem;
  font-weight: 800;
  cursor: pointer;
}
.assessment-progress {
  height: 6px;
  margin-top: .7rem;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}
.assessment-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--brand-gold),#ffd782);
  transition: width .25s var(--ease-out);
}
.assessment-question-card {
  padding: clamp(1rem,3vw,2rem);
}
.question-skill {
  display: inline-flex;
  padding: .32rem .48rem;
  border-radius: 8px;
  background: var(--surface-soft-gold);
  color: #8f5c06;
  font-size: .58rem;
  font-weight: 900;
}
.assessment-question-card h1 {
  max-width: 860px;
  margin-top: .7rem;
  font-size: clamp(1.25rem,2.7vw,2rem);
  line-height: 1.55;
}
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.2rem;
}
.answer-grid button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: .55rem;
  padding: .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}
.answer-grid button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.answer-grid button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  font-family: var(--font-latin);
  font-size: .62rem;
  font-weight: 900;
}
.answer-grid button strong {
  font-size: .72rem;
}
.answer-grid button.is-correct {
  border-color: rgba(19,121,91,.38);
  background: rgba(19,121,91,.10);
}
.answer-grid button.is-wrong {
  border-color: rgba(180,70,70,.38);
  background: rgba(180,70,70,.10);
}
.answer-feedback {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: 1rem;
  padding: .8rem;
  border-radius: 14px;
}
.answer-feedback.is-correct {
  background: rgba(19,121,91,.09);
}
.answer-feedback.is-wrong {
  background: color-mix(in srgb,var(--surface-soft-gold) 70%,transparent);
}
.answer-feedback > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--brand-gold);
}
.answer-feedback svg {
  width: 19px;
  height: 19px;
}
.answer-feedback strong {
  font-size: .72rem;
}
.answer-feedback p {
  margin-top: .25rem;
  font-size: .65rem;
  line-height: 1.6;
}
.answer-feedback a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  padding: .4rem .55rem;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-size: .59rem;
  font-weight: 900;
}
.answer-feedback a svg {
  width: 13px;
  height: 13px;
}
.assessment-next-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  padding: .5rem .7rem;
  border: 0;
  border-radius: 11px;
  background: var(--brand-navy);
  color: white;
  font-size: .63rem;
  font-weight: 900;
  cursor: pointer;
}
.assessment-next-button svg {
  width: 14px;
  height: 14px;
}
[dir="rtl"] .assessment-next-button svg {
  transform: scaleX(-1);
}
.assessment-result-shell {
  max-width: 1020px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 1rem;
}
.assessment-score-card,
.assessment-recommendation {
  padding: 1.2rem;
}
.score-ring {
  --score: 0deg;
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  margin: 1rem auto;
  border-radius: 50%;
  background: conic-gradient(var(--brand-gold) var(--score), var(--surface-muted) 0);
}
.score-ring::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--surface-card);
}
.score-ring strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-latin);
  font-size: 1.3rem;
}
.assessment-score-card h1 {
  font-size: 1.4rem;
  text-align: center;
}
.assessment-score-card > p {
  margin-top: .55rem;
  font-size: .68rem;
  line-height: 1.6;
  text-align: center;
}
.assessment-score-card > button {
  width: 100%;
  min-height: 40px;
  margin-top: .9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-primary);
  cursor: pointer;
}
.assessment-recommendation > span {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}
.assessment-recommendation h2 {
  margin-top: .25rem;
  font-size: 1.25rem;
}
.assessment-recommendation > p {
  margin-top: .45rem;
  font-size: .7rem;
  line-height: 1.65;
}
.assessment-recommendation > a {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: var(--brand-navy);
  color: white;
  font-size: .62rem;
  font-weight: 900;
}
.assessment-recommendation > a svg {
  width: 14px;
  height: 14px;
}
.deep-diagnostic {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 13px;
  background: var(--surface-soft-gold);
}
.deep-diagnostic strong {
  font-size: .68rem;
}
.deep-diagnostic p {
  margin-top: .25rem;
  font-size: .6rem;
  line-height: 1.55;
}
.deep-diagnostic button {
  margin-top: .5rem;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: .58rem;
  font-weight: 900;
  cursor: pointer;
}

/* Mobile header becomes a discovery drawer instead of a plain list. */
.mobile-nav-hero {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .65rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .7rem;
  border-radius: 14px;
  background: var(--surface-soft-gold);
}
.mobile-nav-hero > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-navy);
  color: white;
}
.mobile-nav-hero svg {
  width: 18px;
  height: 18px;
}
.mobile-nav-hero div {
  display: grid;
  gap: .1rem;
}
.mobile-nav-hero strong {
  font-size: .7rem;
}
.mobile-nav-hero small {
  color: var(--text-secondary);
  font-size: .55rem;
}
.mobile-nav-panel .header-nav-link {
  min-height: 58px;
  width: 100%;
  justify-content: flex-start;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
}
.mobile-nav-panel .header-nav-link.is-featured {
  border-color: color-mix(in srgb,var(--brand-gold) 30%,var(--border-subtle));
  background: var(--surface-soft-gold) !important;
}
.mobile-utilities {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45rem;
  margin-top: .75rem;
}
.mobile-utilities button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
}
.mobile-utilities svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1180px) {
  .header-nav-link {
    padding-inline: .42rem !important;
  }
  .header-nav-link > span:nth-child(2) {
    font-size: .69rem;
  }
  .header-nav-icon {
    width: 27px;
    height: 27px;
  }
}
@media (max-width: 920px) {
  .brand-wordmark { width: 84px; }
  .brand-mark-shell { width: 33px;height:37px; }
  .quick-finder { grid-template-columns: 1fr; }
  .quick-filter-panel { grid-template-columns: 1fr 1.25fr; }
  .quick-show-button { grid-column: 1 / -1; min-height: 58px; flex-direction: row; display:flex; }
  .quick-show-button small { max-width:none; }
  .assessment-shell { grid-template-columns: 1fr; }
  .assessment-setup-copy { max-width: 760px; }
  .assessment-quiz-layout { grid-template-columns: 1fr; }
  .assessment-side { position: static; }
  .assessment-result-shell { grid-template-columns: 1fr; }
  .home-assessment-card { grid-template-columns: 50px 1fr; }
  .home-assessment-cta { grid-column: 1 / -1; width:100%; }
}
@media (max-width: 560px) {
  .brand-wordmark { width: 74px; }
  .brand-mark-shell { width:30px;height:34px; }
  .brand-mark-image { width:24px;max-height:29px; }
  .header-tools .brand-dropdown,
  .header-tools .login-button { display:none; }
  .header-tools { gap:.3rem; }
  .campaign-strip p strong { display:none; }
  .campaign-link { font-size:0;min-width:30px;justify-content:center; }
  .campaign-link span { font-size:.9rem; }
  .home-hero { padding-block-start:2.5rem; }
  .home-hero h1 { font-size:clamp(2.2rem,11vw,3.25rem); }
  .study-motivation-line { font-size:.65rem; }
  .quick-finder-wrap { margin-top:-.25rem; }
  .quick-finder { padding:.75rem;border-radius:20px; }
  .quick-filter-panel { grid-template-columns:1fr; }
  .subject-choice-grid { grid-template-columns:1fr 1fr; }
  .stage-choice-grid { grid-template-columns:1fr 1fr; }
  .quick-show-button { grid-column:auto; }
  .home-assessment-card { grid-template-columns:44px 1fr;padding:.8rem; }
  .home-assessment-icon { width:44px;height:44px;border-radius:13px; }
  .assessment-mini-flow { display:none; }
  .assessment-stage-grid { grid-template-columns:1fr 1fr; }
  .assessment-subject-grid { grid-template-columns:1fr 1fr; }
  .answer-grid { grid-template-columns:1fr; }
  .assessment-question-card { padding:.9rem; }
  .assessment-question-card h1 { font-size:1.18rem; }
  .answer-feedback { grid-template-columns:34px 1fr;padding:.7rem; }
  .answer-feedback > span { width:32px;height:32px; }
  .mobile-nav-panel nav { grid-template-columns:1fr 1fr;gap:.45rem; }
}
