/* ============================================================
   USMLE Legends — Premium stylesheet (v7)
   Palette: midnight navy + champagne gold + warm ivory
   Fonts:   Playfair Display (headings) + Inter (body)

   v7 RESPONSIVE SYSTEM — the site FILLS the screen on every
   device. The root font size grows with the viewport width, the
   container stretches to 94% of the screen on laptops, and all
   breakpoints were re-tuned so text never overlaps on tablets.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F7F5F0;
  --bg-soft: #F1EDE4;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --ink: #16233B;
  --ink-soft: #4A5568;
  --line: #E5DFD2;
  --navy: #10233F;
  --navy-2: #1A345C;
  --gold: #C9A227;
  --gold-2: #E4C46A;
  --gold-soft: #F4E9CB;
  --green: #25D366;
  --shadow-sm: 0 2px 10px rgba(16, 35, 63, .07);
  --shadow-md: 0 14px 34px rgba(16, 35, 63, .12);
  --shadow-lg: 0 26px 60px rgba(16, 35, 63, .18);
  --radius: 18px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0A1120;
  --bg-soft: #0D1526;
  --surface: #121C30;
  --surface-2: #16223A;
  --ink: #EAE6DC;
  --ink-soft: #A7B0C2;
  --line: #24314C;
  --navy: #0C1830;
  --navy-2: #152744;
  --gold: #D9B455;
  --gold-2: #F0D58B;
  --gold-soft: #2A2415;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* THE SCALING ENGINE (v7): stronger growth so even small laptops
     get large, full-screen text. 1366px laptop -> ~17px, 1920px ->
     ~20px, 2560px and up -> 23px. Phones stay at 16px minimum. */
  font-size: clamp(16px, 0.62vw + 8px, 23px);
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(88rem, 94%); margin: 0 auto; }
.hidden { display: none !important; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.9rem; border-radius: 999px; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; transition: all .25s ease; position: relative; overflow: hidden;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 60%, var(--gold) 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(201, 162, 39, .35);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 162, 39, .45); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.6px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
/* Bright royal-blue call-to-action — stands out next to the gold button */
.btn-cta {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 60%, #1D4ED8 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .4);
}
.btn-cta::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-cta:hover::after { left: 130%; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, .5); }
.btn-sm { padding: .55rem 1.3rem; font-size: .85rem; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: #C0392B; color: #fff; border: none; }
.btn-danger:hover { background: #A93226; }

/* ---------- Animated brand logo (pure code — SVG + CSS) ---------- */
.logo-svg { display: block; width: 100%; height: 100%; }
.logo-disc { fill: var(--navy); }
[data-theme="dark"] .logo-disc { fill: #0C1830; }
.logo-ring {
  fill: none; stroke: var(--gold); stroke-width: 2.6;
  stroke-dasharray: 10 7; transform-origin: center;
  animation: logoSpin 12s linear infinite;
}
.logo-ring-inner {
  fill: none; stroke: var(--gold-2); stroke-width: 1; opacity: .8;
  transform-origin: center;
  animation: logoSpinReverse 9s linear infinite;
}
.logo-star { fill: var(--gold-2); transform-origin: 32px 17px; animation: logoPulse 2.2s ease-in-out infinite; }
.logo-ua {
  font-family: var(--font-head), Georgia, serif; font-weight: 800;
  fill: var(--gold-2);
  animation: logoShimmer 3.2s ease-in-out infinite;
}
/* a small gold comet orbiting the whole badge */
.logo-orbit { transform-origin: 32px 32px; animation: logoSpin 5.5s linear infinite; }
.logo-orbit-dot { fill: var(--gold-2); filter: drop-shadow(0 0 3px rgba(228,196,106,.9)); }
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoSpinReverse { to { transform: rotate(-360deg); } }
@keyframes logoPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.22); opacity: .8; } }
@keyframes logoShimmer { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .logo-ring, .logo-star, .logo-ring-inner, .logo-orbit, .portrait-ring, .portrait-ring img { animation: none !important; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand-logo-box { width: 3.25rem; height: 3.25rem; flex: 0 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 14px rgba(201,162,39,.35); }
.brand-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.1;
  background: linear-gradient(120deg, var(--ink) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; padding: .35rem 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .25s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }
.nav-links a.current { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.icon-btn {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.6px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  transition: all .25s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: rotate(15deg); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-btn { background: var(--surface-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .5rem; }
.nav-toggle span { width: 1.5rem; height: 2.4px; background: var(--ink); border-radius: 2px; transition: all .3s ease; }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; animation: viewIn .45s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
/* pulled close to the top header: small top gap, heading sits right under it */
.hero {
  position: relative; padding: 1.6rem 0 2.75rem; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(201,162,39,.16), transparent 65%),
    radial-gradient(600px 420px at 8% 90%, rgba(26,52,92,.14), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 40%, black, transparent);
          mask-image: radial-gradient(closest-side at 70% 40%, black, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: center; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(120deg, var(--gold-soft), transparent);
  border: 1px solid var(--gold); color: var(--ink);
  font-size: .82rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
[data-theme="dark"] .hero-chip { color: var(--gold-2); }
.hero-rotor {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.3rem, 3.4vw, 4rem); line-height: 1.14; letter-spacing: -.01em;
  overflow: hidden;
}
.rotor-text { display: block; }
.rotor-text::after {
  content: ""; display: block; width: 84px; height: 4px; margin-top: 1rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px;
}
.hero-rotor.rotor-out .rotor-text { animation: rotorOut .42s ease forwards; }
.hero-rotor.rotor-in .rotor-text { animation: rotorIn .5s ease; }
@keyframes rotorOut { to { opacity: 0; transform: translateY(-18px); } }
@keyframes rotorIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 35rem; }
.hero-actions { margin-top: 1.9rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }

/* Hero picture slider: portrait + name, then the score report */
.hero-slider { width: min(21rem, 100%); margin: 0 auto; }
.hero-slider-frame { overflow: hidden; border-radius: 22px; }
.hero-slider-track { display: flex; transition: transform .6s cubic-bezier(.22,.8,.28,1); }
.hero-slide {
  flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-slide-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  text-align: center; color: var(--ink); letter-spacing: .01em;
}
.hero-slide-name.gold { color: var(--gold); font-size: .96rem; letter-spacing: .04em; }
.score-mini {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: .6rem; box-shadow: var(--shadow-md); transform: rotate(-1.2deg);
}
.score-mini img { width: 100%; border-radius: 12px; }
.hero-slider-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .25rem; padding: 0 .5rem;
}
.hero-slider-dots { display: flex; gap: .5rem; }
.hero-slider-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--line);
  transition: all .3s ease; padding: 0;
}
.hero-slider-dots button.active { width: 26px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.hero-slide-btn {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.6px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: all .25s ease;
}
.hero-slide-btn:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }

.portrait-ring {
  position: relative; width: min(20rem, 80%); aspect-ratio: 1; border-radius: 50%;
  padding: 10px;
  background: conic-gradient(from 210deg, var(--gold), transparent 30%, var(--gold-2) 50%, transparent 72%, var(--gold));
  animation: spin 14s linear infinite;
  box-shadow: var(--shadow-md);
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-ring img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--bg); animation: spin 14s linear infinite reverse;
}

/* ---------- Section headers ---------- */
.section { padding: 5.25rem 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.section-tag::before, .section-tag.center::after { content: ""; width: 34px; height: 1.6px; background: var(--gold); }
.section-tag.center::before { display: none; }
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 800; margin-top: .6rem; line-height: 1.15; }
.section-sub { color: var(--ink-soft); margin-top: .75rem; max-width: 38rem; }
.center { display: block; text-align: center; }
.section-sub.center { margin-left: auto; margin-right: auto; }
.section-title.center { margin-bottom: 0; }

/* ---------- Course carousel ---------- */
.courses.section { padding: 1.6rem 0 2.5rem; }
.courses .container { position: relative; }
/* the free-first-hour note sits in the corner of the courses area */
.free-hour-badge {
  position: absolute; top: 0; right: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold-soft); border: 1.5px solid var(--gold);
  color: var(--ink); font-size: .8rem; font-weight: 700;
  padding: .5rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.free-hour-badge::before { content: "\2605"; color: var(--gold); font-size: .9rem; }
/* the whole carousel is capped so the card is compact but the
   sliding math stays exact (no neighbor cards peeking in) */
.course-carousel {
  display: flex; align-items: center; gap: .9rem;
  max-width: 80rem; margin-left: auto; margin-right: auto;
  margin-top: 1.1rem;
}
.course-viewport { flex: 1; overflow: hidden; border-radius: 20px; }
.course-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.28,1); align-items: stretch; }
/* v5: text-only card — no picture block. If the admin uploads an
   image for a course it shows as a slim banner on top of the card. */
.course-card {
  flex: 0 0 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,.4) inset;
  transition: transform .4s ease, box-shadow .4s ease; position: relative;
}
.course-card:hover { box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(201,162,39,.45), 0 0 30px rgba(201,162,39,.2); }
.course-card.has-img .course-image { height: 9.4rem; }
.course-image { position: relative; height: 0; background: var(--navy); }
.course-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.course-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16,35,63,.32), transparent 55%);
  pointer-events: none;
}
.course-body { padding: 1.1rem 1.75rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.course-batch {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); padding: .3rem .8rem; border-radius: 999px;
  align-self: flex-start;
}
/* the price pops as a solid gold pill */
.course-price {
  font-weight: 800; color: #fff; font-size: .88rem; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  padding: .35rem 1rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(201,162,39,.35);
}
.course-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.course-desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.course-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; margin: .1rem 0;
}
.course-features li {
  position: relative; padding-left: 1.2rem; font-size: .83rem; color: var(--ink-soft);
}
.course-features li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold-soft); border: 1.6px solid var(--gold);
}
.course-features li::after {
  content: ""; position: absolute; left: 3px; top: calc(.4em + 3px); width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.course-meta { font-size: .83rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
/* the date pops as a highlighted chip */
.course-date {
  display: inline-block; font-weight: 700; font-size: .85rem; color: var(--ink);
  background: var(--gold-soft); border: 1.4px solid var(--gold);
  padding: .25rem .9rem; border-radius: 999px;
}
.course-seats { font-size: .8rem; font-weight: 600; color: var(--gold); }
.course-body .btn { margin-top: auto; padding: .6rem 1.4rem; font-size: .88rem; }

/* ---------- FAQs accordion ---------- */
.faq-list { max-width: 56rem; margin: 2rem auto 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item.open { border-color: var(--gold); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  background: none; border: none; text-align: left; padding: 1.05rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-icon {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold);
  font-weight: 800; font-size: 1.1rem; line-height: 1; transition: transform .3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 1.4rem 1.1rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Country search box (combobox) ---------- */
.combo { position: relative; }
.combo input { width: 100%; }
.combo-list {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1.6px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); max-height: 15rem; overflow-y: auto; padding: .3rem;
}
.combo-item {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; padding: .55rem .8rem; border: none; background: none; text-align: left;
  border-radius: 8px; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.combo-item:hover, .combo-item.highlight { background: var(--gold-soft); }
.combo-item .dial { color: var(--gold); font-weight: 700; white-space: nowrap; }
.combo-empty { padding: .7rem .9rem; color: var(--ink-soft); font-style: italic; font-size: .9rem; }

/* ---------- Floating WhatsApp chat button ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
body.admin-open .wa-float { display: none; }
.wa-float-tip {
  position: absolute; right: 4.25rem; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.wa-float:hover .wa-float-tip { opacity: 1; }

/* demo video fallback link */
.demo-fallback { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.demo-fallback a { color: var(--gold); font-weight: 600; text-decoration: underline; }

/* carousel arrows */
.car-arrow {
  flex: 0 0 auto; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1.6px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: all .25s ease; z-index: 2;
}
.car-arrow:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); box-shadow: 0 8px 20px rgba(201,162,39,.3); }
.car-arrow:active { transform: scale(.94); }

/* dots */
.car-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.4rem; }
.car-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: none; background: var(--line);
  transition: all .3s ease; padding: 0;
}
.car-dots button.active { width: 30px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* ---------- Reviews / Success Stories ---------- */
.reviews { background: var(--bg-soft); }
.review-carousel { position: relative; max-width: 62rem; margin: 2.9rem auto 0; }
.review-viewport { overflow: hidden; border-radius: 26px; }
.review-track { display: flex; transition: transform .6s cubic-bezier(.22,.8,.28,1); }
.review-card {
  flex: 0 0 100%; display: grid; grid-template-columns: 19rem 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.review-shot { position: relative; background: var(--navy); min-height: 20rem; }
.review-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-shot.no-img { display: grid; place-items: center; color: var(--gold); font-family: var(--font-head); font-size: 3.4rem; opacity: .8; }
.review-body { padding: 2.1rem 2.25rem; display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.review-quote {
  font-family: var(--font-head); font-style: italic; font-size: 1.14rem; line-height: 1.55; color: var(--ink);
  animation: quoteUp .6s ease both;
}
.review-quote::before { content: "\201C"; color: var(--gold); font-size: 1.8em; line-height: 0; margin-right: 4px; vertical-align: -.28em; }
@keyframes quoteUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.review-who { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.review-name { font-weight: 700; font-size: 1.02rem; }
.review-score {
  font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  padding: .35rem 1rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(201,162,39,.35);
}
.review-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--surface); width: 3rem; height: 3rem;
}
.review-arrow.left { left: -1.6rem; }
.review-arrow.right { right: -1.6rem; }
.review-arrow.left:hover { transform: translateY(-50%) scale(1.08); }
.review-arrow.right:hover { transform: translateY(-50%) scale(1.08); }
.reviews-empty { text-align: center; color: var(--ink-soft); margin-top: 2.1rem; font-style: italic; }

/* ---------- Enroll ---------- */
.enroll { position: relative; }
.enroll::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 12% 20%, rgba(201,162,39,.1), transparent 60%);
}
.enroll-inner {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 3.4rem; box-shadow: var(--shadow-md);
}
.enroll-text p { margin-top: .9rem; color: var(--ink-soft); }
.enroll-text strong { color: var(--gold); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.req { color: var(--gold); }
.optional { color: var(--ink-soft); font-weight: 400; font-size: .82rem; }
.field input, .field select, .editor-forms input, .editor-forms textarea,
.editor-grid input, .editor-grid textarea, .admin-login input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1.6px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field .combo input:focus,
.editor-grid input:focus, .editor-grid textarea:focus, .admin-login input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3.5px rgba(201,162,39,.18);
}
.field input.invalid, .field select.invalid, .field .combo input.invalid { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: .82rem; margin-top: .35rem; min-height: 1em; font-weight: 500; }
.field-hint { color: var(--ink-soft); font-size: .8rem; margin-top: .35rem; }
/* country + phone always on ONE line, both inputs on the same baseline */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; margin-bottom: 1.1rem; }
.field-row .field { margin-bottom: 0; }
.field-row .field-hint { min-height: 1.2em; }
/* privacy consent line above the submit button */
.consent-row {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: .35rem 0 .1rem; font-size: .84rem; color: var(--ink-soft);
  line-height: 1.5; cursor: pointer;
}
.consent-row input {
  width: 1.05rem !important; height: 1.05rem; margin: .18rem 0 0;
  padding: 0 !important; accent-color: var(--gold); flex: 0 0 auto;
}
/* admin: student-data tabs */
.data-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 .9rem; }
.data-tab {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1.6px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: .85rem;
  transition: all .2s ease;
}
.data-tab:hover { border-color: var(--gold); color: var(--gold); }
.data-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
  border-color: transparent; box-shadow: 0 6px 16px rgba(201,162,39,.3);
}
.demo-prompt {
  display: flex; align-items: center; gap: .6rem; margin-top: .6rem;
  background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 12px; padding: .6rem 1rem;
  font-size: .9rem; font-weight: 500;
}
.link-btn { background: none; border: none; color: var(--gold); font-weight: 700; font-size: .9rem; text-decoration: underline; padding: 0; }
.demo-player { margin-top: .9rem; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); }
.demo-player iframe { width: 100%; height: 100%; border: 0; }

.form-success {
  margin-top: 1.25rem; padding: 1.4rem 1.6rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,162,39,.14), rgba(201,162,39,.04));
  border: 1.5px solid var(--gold); text-align: center;
  animation: successPop .45s cubic-bezier(.3,1.4,.5,1) both;
}
@keyframes successPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.form-success strong { color: var(--ink); font-size: 1.05rem; }
.form-success p { color: var(--ink-soft); font-size: .93rem; margin-top: .5rem; }
.form-success .success-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto .6rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 20px rgba(201,162,39,.4);
}

@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.shake { animation: shake .4s ease; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 24rem 1fr; gap: 3.75rem; align-items: start; }
.about-photo { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; position: sticky; top: 6.9rem; }
.about-ring { width: min(16rem, 100%); }
.about-caption { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; text-align: center; }
.score-report {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem; box-shadow: var(--shadow-md); text-align: center;
}
.score-report img { border-radius: 10px; width: 100%; }
.score-report figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; font-weight: 500; }
.about-text p { margin-top: 1rem; color: var(--ink-soft); }
.about-text p strong, .about-text > p strong { color: var(--ink); }
#about-paragraphs p { margin-top: 1rem; color: var(--ink-soft); }
.about-offer {
  margin-top: 1.6rem; padding: 1.5rem 1.75rem; border-radius: 16px;
  background: linear-gradient(120deg, var(--gold-soft), transparent);
  border-left: 4px solid var(--gold);
}
.about-offer h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .35rem; }
.about-offer p { margin: 0; color: var(--ink-soft); }

/* ---------- Step 1 tutoring page ---------- */
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.point-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: all .25s ease;
}
.point-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.point-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .4rem; }
.point-card p { color: var(--ink-soft); font-size: .92rem; }
.point-card .point-big {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.point-card.price { border-color: var(--gold); background: linear-gradient(150deg, var(--surface), var(--gold-soft)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.75rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2.1rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: all .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.contact-icon {
  width: 3.9rem; height: 3.9rem; border-radius: 18px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: .35rem;
}
.contact-icon.wa { background: rgba(37, 211, 102, .14); color: #25D366; }
.contact-icon.yt { background: rgba(255, 0, 0, .1); color: #FF0000; }
.contact-label { font-weight: 600; }
.contact-note { color: var(--ink-soft); font-weight: 400; font-size: .82rem; }
.contact-value { color: var(--ink-soft); font-size: .95rem; }
.contact-card.whatsapp:hover { border-color: #25D366; }

/* ---------- Footer (v7: clear organized columns, one link per line) ---------- */
.footer { background: var(--navy); color: #D9E0EC; padding: 3rem 0 1.6rem; margin-top: 2.5rem; }
[data-theme="dark"] .footer { background: #060B16; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr;
  gap: 2.4rem; align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; min-width: 0; }
.footer-col h4 {
  font-family: var(--font-head); color: #fff; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem;
  padding-bottom: .3rem; border-bottom: 2px solid var(--gold);
}
.footer-col a { color: #C7D0DF; font-size: .92rem; line-height: 1.5; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-2); }
.footer-brand { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand-row { display: flex; align-items: center; gap: .75rem; }
.footer-logo-box { width: 2.9rem; height: 2.9rem; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.footer-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.footer-brand .brand-name { font-size: 1.3rem; background: linear-gradient(120deg, #fff 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; }
.footer-brand p { color: #9AA6BC; font-size: .88rem; margin: 0; line-height: 1.55; }
.footer-site { color: var(--gold-2) !important; font-weight: 700; letter-spacing: .05em; }
.footer-whatsapp { color: #7EE2A8 !important; }
.footer-copy { text-align: center; color: #7A879D; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; margin-top: 1.8rem; line-height: 1.6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ---------- Admin gesture hint ---------- */
.gesture-hint {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 14px;
  font-size: .88rem; box-shadow: var(--shadow-lg); border: 1px solid var(--gold);
  animation: hintIn .3s ease;
}
.gesture-hint strong { color: var(--gold-2); letter-spacing: .08em; }
@keyframes hintIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Admin overlay ---------- */
.admin-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(10, 17, 32, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 1.25rem;
}
.admin-modal { width: min(62rem, 100%); max-height: 92vh; }

.admin-login {
  background: var(--surface); border-radius: 24px; padding: 2.4rem 2.5rem;
  box-shadow: var(--shadow-lg); max-width: 27rem; margin: 0 auto;
}
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.admin-head h2 { font-family: var(--font-head); font-size: 1.6rem; }
.admin-close {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.6px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: 1.3rem; line-height: 1;
  transition: all .2s ease;
}
.admin-close:hover { border-color: #C0392B; color: #C0392B; transform: rotate(90deg); }
.admin-note { color: var(--ink-soft); font-size: .88rem; margin: .6rem 0 1.1rem; }
.admin-error { color: #C0392B; font-weight: 600; font-size: .88rem; margin-bottom: .75rem; }

.admin-panel {
  background: var(--surface); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 16rem 1fr;
  height: min(42.5rem, 86vh);
}
.admin-sidebar {
  background: var(--navy); color: #D9E0EC; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .35rem;
  overflow-y: auto;
}
.admin-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem .9rem; }
.admin-sidebar-head h3 { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.admin-sidebar .admin-close { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; width: 2.1rem; height: 2.1rem; }
.admin-sidebar .admin-close:hover { border-color: var(--gold); color: var(--gold); }
.admin-menu-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  background: none; border: none; color: #B9C4D6; text-align: left;
  padding: .75rem .9rem; border-radius: 12px; font-size: .9rem; font-weight: 500;
  transition: all .2s ease;
}
.admin-menu-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-menu-btn.active { background: linear-gradient(120deg, rgba(201,162,39,.28), rgba(201,162,39,.12)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.admin-menu-btn.logout { color: #E58F85; }
.admin-menu-btn.logout:hover { background: rgba(192,57,43,.15); }
.admin-sidebar-sep { height: 1px; background: rgba(255,255,255,.1); margin: .6rem .5rem; }

.admin-main { padding: 1.9rem 2.1rem; overflow-y: auto; background: var(--surface-2); }
.admin-view { display: none; }
.admin-view.active { display: block; animation: viewIn .35s ease; }
.admin-view h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: .25rem; }

/* metric cards */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; margin-top: 1.25rem; }
.metric-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.1rem; cursor: pointer; transition: all .25s ease; display: flex; flex-direction: column; gap: .25rem;
}
.metric-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.metric-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.metric-label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.metric-more { font-size: .74rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

.admin-details { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.details-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; gap: .75rem; }
.details-head h3 { font-family: var(--font-head); font-size: 1.15rem; }
.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.dash-table th {
  text-align: left; padding: .55rem .75rem; background: var(--bg-soft); color: var(--ink);
  font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.dash-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.dash-table tr:last-child td { border-bottom: none; }
.table-empty { text-align: center; font-style: italic; padding: 1.1rem !important; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
  background: var(--gold-soft); color: var(--ink); white-space: nowrap;
}
.tag.yes { background: rgba(37, 211, 102, .16); color: #1D9A50; }
.tag.no { background: rgba(192, 57, 43, .12); color: #C0392B; }

/* editor */
.editor-section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; }
.editor-section h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: .9rem; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
.editor-grid .full { grid-column: 1 / -1; }
.editor-label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; color: var(--ink); }
.editor-grid textarea, .editor-forms textarea { min-height: 5.75rem; resize: vertical; }
.editor-course { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: var(--surface); }
.editor-course-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.editor-course-head strong { font-family: var(--font-head); font-size: 1.05rem; }
.editor-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .35rem; }
.editor-review { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: var(--surface); }
.editor-review-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.editor-review-head strong { font-family: var(--font-head); font-size: 1.05rem; }

/* image picker (plus button upload) */
.img-picker { display: flex; flex-direction: column; gap: .5rem; }
.img-picker-box {
  display: flex; align-items: center; gap: 1rem; padding: .75rem;
  border: 1.6px dashed var(--line); border-radius: 14px; background: var(--surface-2);
}
.img-picker-box img {
  width: 4.6rem; height: 4.6rem; object-fit: cover; border-radius: 10px;
  border: 1.6px solid var(--line); background: var(--bg); flex: 0 0 auto;
}
.img-picker-empty {
  width: 4.6rem; height: 4.6rem; border-radius: 10px; border: 1.6px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft); font-size: 1.6rem; background: var(--bg); flex: 0 0 auto;
}
.img-plus {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: none; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
  font-size: 1.5rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(201,162,39,.35); transition: all .25s ease; line-height: 1;
}
.img-plus:hover { transform: scale(1.1) rotate(90deg); }
.img-picker-hint { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Responsive (v7: no overlapping text on ANY device) ---------- */
/* Medium laptops and small desktops: tighten the navbar so nothing
   collides, but keep the full menu visible */
@media (max-width: 1180px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .88rem; }
  .nav-actions { gap: .5rem; }
  .nav-actions .btn-sm { padding: .5rem 1rem; font-size: .8rem; }
  .brand-name { font-size: 1.4rem; }
  .brand-logo-box { width: 2.9rem; height: 2.9rem; }
  .free-hour-badge { position: static; display: flex; width: fit-content; margin: 0 auto 1rem; }
  /* keep the review arrows INSIDE the card so they never cover text */
  .review-arrow.left { left: .5rem; }
  .review-arrow.right { right: .5rem; }
}
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { min-width: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .rotor-text::after { margin-left: auto; margin-right: auto; }
  .course-body { padding: 1rem 1.4rem 1.1rem; }
  .enroll-inner { grid-template-columns: 1fr; padding: 2.25rem 1.75rem; gap: 1.9rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; }
  .about-text { min-width: 0; }
  .contact-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
  .points-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .admin-panel { grid-template-columns: 1fr; height: min(47.5rem, 90vh); }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .9rem; gap: .35rem; }
  .admin-sidebar-head { width: 100%; padding-bottom: .35rem; }
  .admin-menu-btn { width: auto; padding: .55rem .75rem; font-size: .82rem; }
  .admin-sidebar-sep, #admin-reload { display: none; }
  .admin-main { padding: 1.4rem 1.1rem; }
}
/* Tablets and phones: full hamburger menu — nothing can overlap */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow-md);
  }
  .navbar.menu-open .nav-links { max-height: 26rem; }
  .nav-links a { padding: .9rem 6%; border-top: 1px solid var(--line); font-size: .95rem; }
  .nav-toggle { display: flex; }
  .brand-name { font-size: 1.28rem; }
  .brand-logo-box { width: 2.75rem; height: 2.75rem; }
  .navbar-inner { gap: .6rem; }
  .nav-actions { gap: .5rem; }
  .icon-btn { width: 2.4rem; height: 2.4rem; }
  .hero { padding: 1.1rem 0 2.25rem; }
  .section { padding: 3.75rem 0; }
  .courses.section { padding: 1.4rem 0 2.25rem; }
  .car-arrow { display: none; }
  .course-carousel { margin-top: 1rem; }
  .wa-float { right: .9rem; bottom: .9rem; width: 3.25rem; height: 3.25rem; }
  .wa-float-tip { display: none; }
  .review-card { grid-template-columns: 1fr; }
  .review-shot { min-height: 13rem; }
  .review-arrow { position: static; transform: none; }
  .review-arrow.left:hover, .review-arrow.right:hover { transform: scale(1.08); }
  .review-carousel { display: flex; flex-direction: column; gap: .9rem; align-items: center; }
  .review-arrow { display: inline-grid; }
  .review-track { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-modal { max-height: 96vh; }
  .admin-login { padding: 1.6rem 1.4rem; }
  .enroll-inner { padding: 1.75rem 1.25rem; }
  .course-features { grid-template-columns: 1fr; }
  .course-title { font-size: 1.2rem; }
  .course-body { padding: 1rem 1.1rem 1.1rem; }
  .course-card.has-img .course-image { height: 7.5rem; }
  .hero-rotor { font-size: 2rem; }
}
/* Phones: footer stacks in one clean column */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-col { align-items: flex-start; }
}
@media (max-width: 480px) {
  /* keep the big brand name visible: drop the Enroll pill on tiny
     screens and shorten the button to just "Step 1" */
  .nav-actions .btn-gold { display: none; }
  .nav-actions .btn-cta { padding: .35rem .7rem; font-size: .75rem; white-space: nowrap; }
  .nav-actions .btn-cta .cta-long { display: none; }
  .brand-name { font-size: 1rem; }
  .brand-logo-box { width: 2.4rem; height: 2.4rem; }
  .navbar-inner { gap: .45rem; }
  .nav-actions { gap: .4rem; }
  .icon-btn { width: 2.2rem; height: 2.2rem; }
}
