/* ==========================================================================
   Skillora design system
   --------------------------------------------------------------------------
   Hand-written re-creation of the Skillora template visual language:
   white pages over a faint wavy-line texture, one teal accent (#05675A),
   flat 1px-border cards (radius 12), restrained shadows, Nunito everywhere,
   playful pre-composed collage imagery. No dark sections.

   Sections:
     01 Tokens
     02 Base / reset glue
     03 Typography
     04 Buttons
     05 Navigation
     06 Breadcrumb
     07 Hero + stats
     08 Logo marquee
     09 Section scaffolding + splits
     10 Checklist
     11 Numbered steps
     12 Feature cards
     13 Benefit lists
     14 Course cards + carousel
     15 Course detail layout + sidebar
     16 Pricing
     17 Testimonials
     18 FAQ accordion
     19 CTA panel
     20 Forms
     21 Checkout
     22 Dashboard
     23 Footer
     24 Utilities / reveal
     25 Breakpoints (1280 / 1024 / 768 / 480)
   ========================================================================== */

/* ==========================================================================
   01 Tokens
   ========================================================================== */
:root {
  /* color */
  --teal: #05675A;
  --teal-dark: #044F45;          /* hover darken */
  --teal-10: rgba(5, 103, 90, 0.10);
  --teal-06: rgba(5, 103, 90, 0.06);
  --ink: #010605;                /* nav links, breadcrumb */
  --heading: #000000;
  --body: #444444;               /* 18px body gray */
  --muted: #555555;              /* card descriptions, meta */
  --faint: #767676;              /* captions */
  --link-blue: #0099FF;          /* inline rich-text links only */
  --hairline: #EFEFEF;
  --border: #ECECEC;
  --input-border: #E0E0E0;
  --surface: #FFFFFF;

  /* radius */
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-input: 10px;
  --radius-pill: 9999px;

  /* shadow */
  --shadow-card: 0 0 4px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.08);

  /* layout */
  --container: 1440px;
  --gutter: 24px;
  --section-gap: 120px;

  /* type */
  --font: "Nunito", "Segoe UI", sans-serif;
}

/* ==========================================================================
   02 Base / reset glue
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

/* The hidden attribute must always win, even over display:grid/flex rules
   (e.g. the register/login form panels toggled by auth.js). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keep anchor targets clear of the sticky nav */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--body);
  background-color: #FFFFFF;
}

/* Faint wavy-line page texture: the tile's strokes are solid black, so it is
   laid under the page at very low opacity (reads as a soft paper pattern). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/N9GeBa0CRBIhhvb9pYLnIeWF4gQ.svg");
  background-repeat: repeat;
  background-size: 200px 120px;
  opacity: 0.045;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }
p a,
.rich-text a { color: var(--link-blue); }
p a:hover,
.rich-text a:hover { text-decoration: underline; }

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-btn) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   03 Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-family: var(--font);
}

.h-display,
.h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
}

.h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}

.h-card {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
}

/* Skillora has no tracked-out kicker; .eyebrow kept for the class contract
   as a modest teal lead-in line above headings. */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: normal;
  text-transform: none;
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
}

.small,
.caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
}

.text-center { text-align: center; }

.section-head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .h2 { margin-bottom: 16px; }
.section-head p { margin: 0; }

.section-head-left {
  text-align: left;
  margin-inline: 0;
}

/* ==========================================================================
   04 Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 16px rgba(5, 103, 90, 0.22);
}
.btn-primary:active { box-shadow: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-secondary:hover { background: var(--teal-10); }

/* On a solid teal surface (featured pricing card) */
.btn-inverse {
  background: #fff;
  color: var(--teal);
}
.btn-inverse:hover { background: #F2F7F6; }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
  padding-inline: 12px;
}
.btn-ghost:hover { background: var(--teal-10); }

/* Outline pill ("Call Us") */
.btn-pill {
  border-radius: var(--radius-pill);
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
  min-height: 46px;
  font-size: 15px;
}
.btn-pill:hover { background: var(--teal-10); }

.btn-sm {
  min-height: 40px;
  padding: 10px 20px;
}

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   05 Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo img { height: 42px; width: auto; }

/* SpainClass logo mark (teal book badge, inline SVG in nav + footer) */
.logo-mark {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(5, 103, 90, 0.28);
  transition: transform 0.18s ease;
}
.nav-logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }

/* inline stroke icons inside nav links (inherit currentColor) */
.nav-ic {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* desktop: teal underline grows under the label on hover / active page */
@media (min-width: 769px) {
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 25px; /* starts under the label, after the icon */
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
}

.nav-cta { flex-shrink: 0; }

/* EN | ES language switch (injected into the nav by assets/js/i18n.js) */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  background: var(--teal-06);
  border: 1px solid var(--teal-10);
  border-radius: 999px;
}
.lang-switch__opt {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 5px 11px;
  min-width: 38px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang-switch__opt:hover { color: var(--teal); }
.lang-switch__opt.is-active {
  color: #fff;
  background: var(--teal);
}

/* "Log in" link in the right-hand nav cluster (next to Register) */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: color 0.18s ease;
}
.nav-login:hover { color: var(--teal); }
.nav-login .nav-ic { width: 17px; height: 17px; flex-shrink: 0; }

/* Shared auth form styles (used by register.html AND the login modal) */
.auth-card { max-width: 640px; margin: 0 auto; }
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 5px;
}
.auth-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-tab.is-active { background: var(--teal); color: #fff; }
.auth-error { grid-column: 1 / -1; margin: 0; font-size: 15px; color: #D23B3B; }
.auth-ok { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--teal); }
.forgot-link { font-size: 15px; color: var(--teal); font-weight: 600; }

/* Login / register popup */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.auth-modal.open { opacity: 1; visibility: visible; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(1, 6, 5, 0.55); }
.auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 34px 32px 32px;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.25s ease;
}
.auth-modal.open .auth-modal__dialog { transform: none; }
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-modal__close:hover { background: var(--teal-06); color: var(--teal); }
.auth-modal__head { text-align: center; margin-bottom: 22px; }
.auth-modal__title { font-size: 24px; font-weight: 800; color: var(--heading); margin: 0 0 6px; }
.auth-modal__sub { font-size: 15px; color: var(--muted); margin: 0; }
.auth-modal .auth-card { max-width: none; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .auth-modal, .auth-modal__dialog { transition: none; }
  .auth-modal__dialog { transform: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-btn);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* .nav-panel wraps links (+ optional cta) for the mobile overlay */
.nav-panel { display: contents; }

/* ==========================================================================
   06 Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 0;
  font-size: 16px;
  color: var(--ink);
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb li + li::before {
  content: "";
  width: 7px;
  height: 14px;
  background-image: url("../img/ipOUy92Hta2s4rpZ4Bc0kbGrOdo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.breadcrumb [aria-current="page"] { font-weight: 600; }

/* ==========================================================================
   07 Hero + stats
   ========================================================================== */
.hero {
  padding: 56px 0 var(--section-gap);
}

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

.hero h1,
.hero .h-display {
  margin-bottom: 20px;
}

.hero .lead {
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-media img {
  width: 100%;
  max-width: 670px;
  margin-left: auto;
}

/* Hero entrance: copy column rises in, image fades in with a soft scale */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-media-in {
  from { opacity: 0; transform: translateY(16px) scale(0.975); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow    { animation: hero-rise 0.5s ease-out 0.05s backwards; }
.hero .h-display,
.hero h1          { animation: hero-rise 0.55s ease-out 0.12s backwards; }
.hero .lead       { animation: hero-rise 0.55s ease-out 0.22s backwards; }
.hero .btn-row    { animation: hero-rise 0.55s ease-out 0.32s backwards; }
.hero .stats-row  { animation: hero-rise 0.55s ease-out 0.44s backwards; }
.hero .hero-media { animation: hero-media-in 0.65s ease-out 0.25s backwards; }

/* Stats row — numbers divided by hairlines */
.stats-row {
  display: flex;
  margin-top: 56px;
}

.stat-card {
  padding: 0 40px;
  border-left: 1px solid var(--hairline);
  background: none;
  text-align: left;
}
.stat-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-card .stat-number {
  display: block;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums; /* steady width while counters run */
}

.stat-card .stat-label {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--heading);
}

/* ==========================================================================
   08 Logo marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding: 8px 0;
  display: grid;
  gap: 40px;
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 100px;
  align-items: center;
  animation: marquee-scroll 42s linear infinite;
}

.marquee-row.reverse { animation-direction: reverse; }

.marquee-row img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none; flex-wrap: wrap; width: auto; }
}

/* ==========================================================================
   09 Section scaffolding + splits
   ========================================================================== */
.section {
  padding: calc(var(--section-gap) / 2) 0;
}
.section-lg { padding: var(--section-gap) 0; }

/* Pale teal full-width-ish inner panel (testimonial band, CTA) */
.section-panel {
  background: var(--teal-10);
  padding: 72px 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-media img {
  width: 100%;
}

.split-copy .h2 { margin-bottom: 20px; }
.split-copy > p { margin: 0 0 28px; }

/* ==========================================================================
   10 Checklist (teal checkmark + text, optional two columns)
   ========================================================================== */
.check-list {
  display: grid;
  gap: 14px;
}
.check-list.two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: var(--teal);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* ==========================================================================
   11 Numbered steps (How It Works)
   ========================================================================== */
.steps {
  display: grid;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
}
.step-card:first-child { border-top: 1px solid var(--hairline); }

.step-num {
  flex-shrink: 0;
  width: 72px;
}
.step-num img { width: 100%; }

/* CSS fallback when numeral images are not used */
.step-num-text {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
}

.step-card .h-card {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
}
.step-card p:not(.h-card) {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   12 Feature cards (staggered row)
   ========================================================================== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

/* stagger: even cards sit lower */
.cards-row > :nth-child(even) { margin-top: 56px; }

.card,
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 22px;
}

.feature-card {
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-card .tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: var(--teal);
  border-radius: 10px;
}
.feature-card .tile img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.feature-card .h-card {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-card p:not(.h-card) {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   13 Benefit lists (outline icon + title + text)
   ========================================================================== */
.benefit-list {
  display: grid;
  gap: 36px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.benefit-item .benefit-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}
.benefit-item .benefit-icon img { width: 100%; height: 100%; object-fit: contain; }

.benefit-item .h-card {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
}
.benefit-item p:not(.h-card) {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   14 Course cards + carousel
   ========================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 14px 22px;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.course-card .course-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 459 / 340;
}
.course-card .course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-media img { transform: scale(1.045); }

.course-card .h-card {
  margin: 0 8px 8px;
}

.course-card .course-desc {
  margin: 0 8px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* small teal-tint pill (kept from the class contract; used for tags) */
.course-label,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-10);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-solid { background: var(--teal); color: #fff; }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 0 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.course-meta li,
.course-meta span.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.course-meta img,
.course-meta .meta-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.course-level { font-weight: 600; color: var(--teal); }

/* star rating glyphs (text fallback) */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--teal);
  font-size: 15px;
  letter-spacing: 2px;
}
.stars img { height: 18px; width: auto; }

.course-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.course-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Carousel (horizontal scroll of cards) */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 min(459px, 85%);
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.carousel-nav button:hover {
  background: var(--teal);
  color: #fff;
}

/* ==========================================================================
   15 Course detail layout + sticky sidebar
   ========================================================================== */
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 435px;
  gap: 48px;
  align-items: start;
  padding: 32px 0 var(--section-gap);
}

.course-main .h2 { margin-bottom: 10px; }
.course-main > .lead { margin: 0 0 28px; }

.course-hero-img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 36px;
  overflow: hidden;
}
.course-hero-img img { width: 100%; }

/* white hairline content card (Overview / What You'll Learn / Requirements) */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  margin-bottom: 28px;
}
.content-card .h3 { margin-bottom: 14px; }
.content-card p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.content-card p:last-child { margin-bottom: 0; }

.course-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 28px;
}

/* sidebar price card + generic order summary share chrome */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.summary-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 18px;
}

.summary-card .btn { margin-bottom: 8px; }

.summary-rows { margin: 10px 0 4px; }
.summary-rows li,
.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.summary-rows li:last-child,
.summary-row:last-child { border-bottom: 0; }

.summary-rows img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.summary-rows .value,
.summary-row .value {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 10px;
}

.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-circle:hover { transform: translateY(-2px); }
.social-circle img {
  max-width: 17px;
  max-height: 17px;
  object-fit: contain;
}
.social-circle:hover { background: var(--teal-10); }

.sidebar-caption {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 16px;
}

/* instructor mini-card rows */
.instructor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.instructor-row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.instructor-row .value {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted);
}

/* ==========================================================================
   16 Pricing
   ========================================================================== */
/* Monthly / Yearly toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -32px 0 48px;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}

.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--teal);
  padding: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.toggle[aria-pressed="true"]::after { transform: translateX(20px); }

.pricing-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.price-card .plan-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 10px;
}

.price-card .plan-desc {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.price-card .price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
  margin: 0 0 24px;
}
.price-card .price-amount .per {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}

.price-card .features-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
}

.price-card .check-list { margin-bottom: 28px; }
.price-card .check-list li { font-size: 15px; }
.price-card .btn { margin-top: auto; }

/* Featured (solid teal) card */
.price-card.featured {
  background: var(--teal);
  border-color: var(--teal);
}
.price-card.featured .plan-name,
.price-card.featured .plan-desc,
.price-card.featured .price-amount,
.price-card.featured .features-label,
.price-card.featured .check-list li { color: #fff; }
.price-card.featured .price-amount .per { color: rgba(255, 255, 255, 0.75); }
.price-card.featured .check-list li::before { background-color: #fff; }

.price-card .popular-badge {
  position: absolute;
  top: 26px;
  right: 24px;
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   17 Testimonials (pale teal band + slider)
   ========================================================================== */
.testimonial-band {
  background: var(--teal-10);
  padding: 80px 24px;
}

.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial .t-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 22px;
}

.testimonial .stars {
  justify-content: center;
  margin-bottom: 22px;
  font-size: 22px;
  letter-spacing: 4px;
}
.testimonial .stars img { height: 24px; }

.testimonial blockquote {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.55;
  color: #222;
}

.testimonial .t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
}

.testimonial .t-name {
  font-size: 14px;
  color: var(--ink);
}

/* slider mechanics: slides stacked in one grid cell, crossfade + slight
   rise between them; the band keeps the height of the tallest slide. */
.testimonial-slider { display: grid; }
.testimonial-slider .testimonial {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease,
              visibility 0s linear 0.45s;
}
.testimonial-slider .testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s,
              visibility 0s;
}
.testimonial-slider .slider-dots {
  grid-row: 2;
  grid-column: 1;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 103, 90, 0.45);
  transition: background-color 0.15s ease;
}
.slider-dots button.is-active,
.slider-dots button[aria-selected="true"] { background: var(--teal-dark); }

/* avatar stack + rating (kept from contract; hero-style social proof) */
.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.avatar-stack {
  display: inline-flex;
}
.avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.avatar-stack img + img { margin-left: -10px; }

/* ==========================================================================
   18 FAQ accordion (native details/summary)
   ========================================================================== */
.faq {
  max-width: 1190px;
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  font-size: 22px;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--ink);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M12 4v16M4 12h16"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M12 4v16M4 12h16"/></svg>') center / contain no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] {
  background: var(--teal);
  border-color: var(--teal);
}
.faq details[open] summary { color: #fff; }
.faq details[open] summary::after {
  background-color: #fff;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M4 12h16"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M4 12h16"/></svg>');
}

.faq .faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}
.faq .faq-answer p { margin: 0 0 10px; }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   19 CTA panel
   ========================================================================== */
.cta-panel {
  background: var(--teal-10);
  border-radius: var(--radius-card);
  padding: 72px 48px;
  text-align: center;
}
.cta-panel .h2 { margin-bottom: 14px; }
.cta-panel p {
  max-width: 640px;
  margin: 0 auto 30px;
}
.cta-panel .btn-row { justify-content: center; }

.cta-split {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  background: var(--teal-10);
  border-radius: var(--radius-card);
  padding: 56px 56px;
  text-align: left;
}
.cta-split .h2 { margin-bottom: 10px; }
.cta-split p { margin: 0; }

/* ==========================================================================
   20 Forms
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.form-grid .field-full { grid-column: 1 / -1; }

.field { display: block; }

.field .label,
.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.field .req { color: #D23B3B; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.textarea {
  min-height: 162px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: #9A9A9A; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--faint);
}

/* ==========================================================================
   21 Checkout
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

.checkout-grid .summary-card { position: sticky; top: 96px; }

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--muted);
}
.summary-line .amount { color: var(--ink); font-weight: 600; }

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

/* ==========================================================================
   22 Dashboard
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 40px 0 var(--section-gap);
}

.dashboard-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.dashboard-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dashboard-nav a:hover { background: var(--teal-06); color: var(--teal); }
.dashboard-nav a.is-active,
.dashboard-nav a[aria-current="page"] {
  background: var(--teal);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.table tbody tr:last-child td { border-bottom: 0; }

.table th {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  background: var(--teal-06);
}

.table td { color: var(--muted); }

/* ==========================================================================
   23 Footer
   ========================================================================== */
.footer {
  margin-top: var(--section-gap);
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 72px 0 64px;
}

.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 260px;
}

.footer h4,
.footer .footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin: 4px 0 20px;
}

.footer-links {
  display: grid;
  gap: 14px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--teal); }

/* small teal stroke icons next to footer links */
.foot-ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--teal);
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer-links a:hover .foot-ic { opacity: 1; transform: translateX(1px); }

.newsletter { display: grid; gap: 14px; }
.newsletter form { display: grid; gap: 14px; }
.newsletter p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.newsletter .input { min-height: 48px; }
.newsletter .btn {
  min-height: 48px;
  border-radius: var(--radius-input);
  font-size: 15px;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom a { color: var(--link-blue); }

/* ==========================================================================
   24 Utilities / reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* stagger helpers */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Back-to-top button (created by main.js) */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 103, 90, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease,
              visibility 0.25s, background-color 0.18s ease;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-top:hover { background: var(--teal-dark); }
.back-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* 404 helper */
.error-page {
  text-align: center;
  padding: 64px 0 var(--section-gap);
}
.error-page img {
  max-width: 420px;
  margin: 0 auto 32px;
}
.error-page .h2 { font-size: 32px; margin-bottom: 10px; }
.error-page p { margin: 0 0 28px; font-size: 16px; }

/* ==========================================================================
   25 Breakpoints
   ========================================================================== */

/* ---- ≤1280 ------------------------------------------------------------- */
@media (max-width: 1280px) {
  :root { --section-gap: 96px; }

  .h-display, .h2 { font-size: 36px; }
  .stat-card .stat-number { font-size: 42px; }
  .stat-card { padding: 0 28px; }

  .cards-row { grid-template-columns: repeat(3, 1fr); }
  .cards-row > :nth-child(even) { margin-top: 0; }

  .course-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid .newsletter { grid-column: 2 / -1; }
}

/* ---- ≤1024 ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }

  .hero-grid,
  .split { gap: 40px; }

  .course-grid,
  .pricing-panel { grid-template-columns: repeat(2, 1fr); }

  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }

  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-grid .summary-card { position: static; }

  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .faq summary { font-size: 19px; }
}

/* ---- ≤768 -------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --section-gap: 72px; }

  .h-display, .h2 { font-size: 28px; }
  .h3 { font-size: 24px; }
  .h-card { font-size: 22px; }
  body { font-size: 16px; line-height: 26px; }

  /* nav collapses to hamburger overlay; top bar = logo · EN|ES · burger */
  .nav-inner { gap: 10px; }
  .nav-toggle { display: inline-flex; margin-left: 0; order: 3; }
  .lang-switch { padding: 2px; margin-left: auto; order: 2; }
  .lang-switch__opt { min-width: 32px; padding: 5px 8px; font-size: 12px; }
  .auth-modal__dialog { padding: 30px 20px 24px; }

  /* Log in + Register relocate into the dropdown panel (main.js) */
  .nav-panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }
  .nav-panel-actions .nav-login {
    flex: 1;
    justify-content: center;
    padding: 13px 16px;
    border: 1.5px solid var(--teal);
    border-radius: 12px;
    color: var(--teal);
    font-weight: 700;
  }
  .nav-panel-actions .nav-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
    padding: 12px 24px 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-panel.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav-panel .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* mobile menu items as tappable cards: icon + label */
  .nav-panel .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--surface);
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease;
  }
  .nav-panel .nav-links a .nav-ic {
    width: 18px;
    height: 18px;
    color: var(--teal);
  }
  .nav-panel .nav-links a:hover,
  .nav-panel .nav-links a:active {
    background: var(--teal-06);
    border-color: var(--teal);
    color: var(--teal);
  }
  .nav-panel .nav-links a[aria-current="page"] {
    background: var(--teal-10);
    border-color: var(--teal);
    color: var(--teal);
  }

  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }

  .stats-row { margin-top: 36px; }
  .stat-card { padding: 0 18px; }
  .stat-card .stat-number { font-size: 34px; }
  .stat-card .stat-label { font-size: 15px; }

  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }

  .check-list.two-col { grid-template-columns: 1fr; }

  .cards-row { grid-template-columns: repeat(2, 1fr); }

  .course-grid,
  .pricing-panel { grid-template-columns: 1fr; }

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

  .step-card { gap: 20px; padding: 24px 0; }
  .step-num { width: 56px; }

  .section-panel { padding: 48px 24px; }
  .testimonial-band { padding: 56px 20px; }
  .cta-panel { padding: 48px 24px; }
  .cta-split {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
  }
  .cta-split .btn-row { justify-content: center; }

  .faq summary { font-size: 17px; padding: 18px 18px; }
  .faq .faq-answer { padding: 0 18px 18px; }

  .marquee-row { gap: 56px; }
  .marquee-row img { height: 40px; }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 48px 0 40px;
    gap: 32px 20px;
  }
  .footer-grid .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .nav-logo { justify-content: center; width: 100%; }
  .footer-brand p { margin-inline: auto; }
  .footer-grid .newsletter { grid-column: 1 / -1; }
  .newsletter form {
    display: flex;
    gap: 10px;
  }
  .newsletter form .input { flex: 1; }
}

/* ---- ≤480 -------------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --gutter: 18px; }

  .h-display, .h2 { font-size: 26px; }

  .btn { min-height: 48px; padding: 12px 20px; }
  .btn-row { gap: 10px; }

  .stats-row { flex-wrap: nowrap; }
  .stat-card { padding: 0 12px; }
  .stat-card .stat-number { font-size: 28px; }
  .stat-card .stat-label { font-size: 13px; }

  .cards-row { grid-template-columns: 1fr; }

  .course-card .course-media { aspect-ratio: 400 / 300; }

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

  .testimonial blockquote { font-size: 17px; }

  .newsletter form { flex-direction: column; }
}
