/* ============================================
   EQUATION STATION SA — Main Stylesheet
   Brand: Navy #1a2a3a | Gold #b08d57 | White #fff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2a3a;
  --navy-light: #243649;
  --navy-dark: #111e2b;
  --gold: #b08d57;
  --gold-light: #c9a96e;
  --gold-pale: #f5efe6;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --text-muted: #6b7a8d;
  --border: rgba(26,42,58,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(26,42,58,0.08);
  --shadow-md: 0 6px 24px rgba(26,42,58,0.12);
  --shadow-lg: 0 16px 48px rgba(26,42,58,0.16);
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { font-size: 1rem; line-height: 1.75; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* ── Gold Accent Line ── */
.accent-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.accent-line.center { margin: 1rem auto 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-primary:hover {
  background: #c9a24e;
  border-color: #c9a24e;
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,141,87,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,42,58,0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176,141,87,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--gold);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(176,141,87,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(176,141,87,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,141,87,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,141,87,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(176,141,87,0.12);
  border: 1px solid rgba(176,141,87,0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero math illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(176,141,87,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(176,141,87,0.15);
}
.hero-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-card-title { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.formula-block {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 2.2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.formula-block .label { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.75rem; }
.formula-block .eq { color: var(--white); }
.formula-block .eq span { color: var(--gold); }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy);
  border-bottom: 1px solid rgba(176,141,87,0.15);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── TOPICS SECTION ── */
.topics-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.topics-intro .section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.topics-intro h2 { margin-bottom: 0.75rem; }
.topics-intro p { color: var(--text-muted); }

.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.paper-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.paper-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.paper-header.p1 { background: var(--navy); }
.paper-header.p2 { background: var(--navy-light); }
.paper-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.paper-header-text { color: var(--white); }
.paper-header-text h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.1rem; }
.paper-header-text p { font-size: 0.75rem; color: rgba(255,255,255,0.55); line-height: 1; }

.topic-list { padding: 0.75rem 0; }
.topic-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(26,42,58,0.06);
  transition: all var(--transition);
  cursor: pointer;
}
.topic-item:last-child { border-bottom: none; }
.topic-item:hover {
  background: var(--gold-pale);
  padding-left: 2rem;
}
.topic-item:hover .topic-arrow { transform: translateX(4px); color: var(--gold); }
.topic-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--gold-pale);
  border: 1px solid rgba(176,141,87,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.topic-item:hover .topic-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.topic-item:hover .topic-icon svg { color: var(--white); }
.topic-icon svg { width: 15px; height: 15px; color: var(--gold); transition: color var(--transition); }
.topic-name {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.topic-arrow {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

/* ── HOW IT WORKS ── */
.how-it-works-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.how-it-works-content {
  display: flex;
  flex-direction: column;
}

.how-it-works-intro {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.step-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.3);
  transform: translateY(-2px);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── INLINE STYLE REPLACEMENTS ── */
.how-it-works-bg {
  background: var(--navy-dark);
  padding: 3rem 0;
  overflow: hidden;
}

.how-it-works-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.step-image {
  height: 240px;
  border: 1px solid rgba(176,141,87,0.18);
  border-radius: 4px;
  object-fit: cover;
}

.about-photo-img {
  object-position: center top;
}

.resources-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.resources-note a {
  color: var(--gold);
  font-weight: 600;
}

.section-tag {
  color: var(--gold);
  background: rgba(176,141,87,0.12);
  border: 1px solid rgba(176,141,87,0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── INLINE STYLE REPLACEMENTS ── */
.btn-whatsapp-inline {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.youtube-link {
  color: var(--gold);
  font-weight: 600;
}

.sidebar-block-body-padded {
  padding: 0.75rem;
}

.footer-bottom-no-border {
  border-top: none;
  padding-top: 0;
}

.how-it-works-cta {
  display: flex;
  justify-content: flex-start;
}

.how-it-works-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.3);
}
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}
.step-icon {
  width: 56px; height: 56px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(176,141,87,0.2);
}
.step-icon svg { width: 24px; height: 24px; color: var(--gold); }
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-image-placeholder .placeholder-text {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  text-align: center;
}
.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--gold);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge .years {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.about-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}
.about-section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }
.about-quals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.about-qual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.about-qual svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ── BOOKING / CTA ── */
.booking-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.booking-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(176,141,87,0.08) 0%, transparent 70%);
}
.booking-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.booking-inner .section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.booking-inner h2 { color: var(--white); margin-bottom: 1rem; }
.booking-inner p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.booking-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn-whatsapp:hover {
  background: #c9a24e;
  border-color: #c9a24e;
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,141,87,0.35);
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(176,141,87,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand-text { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--gold); }

/* ── TOPIC DETAIL PAGE ── */
.topic-hero {
  background: var(--navy);
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.topic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(176,141,87,0.07) 0%, transparent 60%);
}
.topic-hero-inner { position: relative; z-index: 2; }
.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topic-breadcrumb a { color: var(--gold); transition: opacity var(--transition); }
.topic-breadcrumb a:hover { opacity: 0.7; }
.topic-breadcrumb svg { width: 12px; height: 12px; }
.topic-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.topic-hero p { color: rgba(255,255,255,0.6); max-width: 540px; }
.topic-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(176,141,87,0.12);
  border: 1px solid rgba(176,141,87,0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

/* Topic content layout */
.topic-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.topic-sidebar {
  position: sticky;
  top: 84px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.sidebar-card-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar-card-body { padding: 1.25rem; }
.sidebar-book-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.sidebar-book-btn:hover {
  background: #c9a24e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(176,141,87,0.3);
}
.sidebar-info { font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.sidebar-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--navy);
  border-radius: var(--radius);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-nav-list a:hover {
  background: var(--gold-pale);
  border-left-color: var(--gold);
  padding-left: 1rem;
}

/* Topic content sections */
.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 84px;
}
.content-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.content-section-title svg { width: 20px; height: 20px; color: var(--gold); }
.content-section-title h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
.concept-list { display: flex; flex-direction: column; gap: 0.75rem; }
.concept-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  line-height: 1.6;
}
.concept-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* Formulas */
.formula-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.formula-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(176,141,87,0.15);
}
.formula-card-label {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.formula-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.formula-display .var { color: var(--gold); }
.formula-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* Mistakes */
.mistake-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mistake-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff8f8;
  border-radius: var(--radius);
  border-left: 3px solid #e74c3c;
  font-size: 0.92rem;
  line-height: 1.6;
}
.mistake-item svg { width: 16px; height: 16px; color: #e74c3c; flex-shrink: 0; margin-top: 3px; }

/* Video placeholders */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-thumb .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,42,58,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.video-thumb:hover .play-overlay { background: rgba(26,42,58,0.3); }
.play-btn {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(176,141,87,0.4);
}
.play-btn svg { width: 22px; height: 22px; color: var(--white); margin-left: 3px; }
.video-info { padding: 1rem; background: var(--white); }
.video-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.video-info p { font-size: 0.78rem; color: var(--text-muted); }

/* After lesson / skills */
.outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.outcome-card {
  padding: 1.25rem;
  background: var(--gold-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(176,141,87,0.2);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.outcome-card svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .topics-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: block; max-width: 360px; margin: 0 auto 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .topic-content-wrap { grid-template-columns: 1fr; }
  .topic-sidebar { position: static; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .booking-actions { flex-direction: column; align-items: center; }
  .formula-cards { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--navy-dark);
  padding: 1.5rem 2rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(176,141,87,0.15);
  z-index: 99;
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── INSTRUCTOR IMAGE ── */
.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}
.about-image-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  border: 2px solid rgba(176,141,87,0.2);
  box-shadow: var(--shadow-lg);
}

/* ── AD CONTAINER ── */
.ad-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  min-height: 10px;
  text-align: center;
}

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.3);
}
.blog-card-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(176,141,87,0.2);
}
.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── RESOURCE CARDS (topic pages) ── */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.3);
}
.resource-card-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-card-icon svg { width: 20px; height: 20px; color: var(--gold); }
.resource-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.resource-card .btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  align-self: flex-start;
}

/* Trust pages */
.trust-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}
.trust-page-content h1 { margin-bottom: 0.5rem; }
.trust-page-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.trust-page-content p { margin-bottom: 1rem; color: var(--text-muted); }
.trust-page-content a { color: var(--gold); }

@media (max-width: 640px) {
  .about-image-placeholder { height: 300px; }
  .blog-grid { grid-template-columns: 1fr; }
  .resource-cards { grid-template-columns: 1fr; }
}

/* ── IMPROVED RESOURCE CARDS ── */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.35);
}
.resource-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.resource-pdf-icon {
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  background: #e74c3c;
  border-radius: 6px 6px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.resource-pdf-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent rgba(255,255,255,0.25) transparent transparent;
}
.resource-pdf-icon span {
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.resource-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.resource-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.resource-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}
.resource-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-pale);
  border: 1px solid rgba(176,141,87,0.25);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}
.resource-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.btn-preview {
  display: none;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: var(--gold);
  color: var(--navy-dark);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-download:hover {
  background: #c9a24e;
  border-color: #c9a24e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176,141,87,0.3);
}
.btn-download svg, .btn-preview svg {
  width: 13px; height: 13px;
}

/* ── HERO IMAGE STRIP ── */
.hero-image-strip {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── STUDY IMAGE SECTION ── */
.study-image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}
.study-image-block img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.study-image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.study-image-duo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* ── ABOUT SECTION IMAGE FIX ── */
.about-photo-frame {
  position: relative;
}
.about-photo-frame .about-photo-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(176,141,87,0.2);
}
.about-photo-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--gold);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-photo-badge .badge-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.about-photo-badge .badge-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
}

/* ── FEATURED RESOURCES ON HOMEPAGE ── */
.featured-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.featured-resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.featured-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176,141,87,0.35);
}
.featured-resource-card .topic-tag-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(176,141,87,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}
.frc-icon-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  margin-top: 0.2rem;
}
.frc-pdf-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(176,141,87,0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.featured-resource-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-dark);
  margin: 0;
}
.featured-resource-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.featured-resource-card .res-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}
.resource-weighting-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.resource-weighting-group {
  border: 1px solid var(--border);
  background: rgba(176,141,87,0.05);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.resource-weighting-group strong {
  display: block;
  color: var(--navy-dark);
  font-size: 0.78rem;
  margin-bottom: 0.18rem;
}
.resource-weighting-group span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.frc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.65rem 1.1rem;
  background: var(--gold);
  color: var(--navy-dark) !important;
  border-radius: var(--radius);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all var(--transition);
  align-self: flex-start;
}
.frc-download-btn:hover {
  background: #c9a24e !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(176,141,87,0.3);
  text-decoration: none !important;
}

/* ── YOUTUBE SECTION ── */
.youtube-strip {
  background: var(--navy);
  padding: 4.5rem 0;
}
.youtube-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}
.youtube-text h2 { color: var(--white); }
.youtube-text p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.8; margin-top: 0.75rem; }
.youtube-text .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.75rem;
  background: #e74c3c;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.youtube-text .btn-gold:hover { background: #c0392b; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(231,76,60,0.4); }
.youtube-thumb {
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(176,141,87,0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
.youtube-embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #0f1722;
  }
.youtube-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.youtube-play-icon {
  width: 64px; height: 64px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(231,76,60,0.4);
}
.youtube-play-icon svg { width: 26px; height: 26px; color: #fff; margin-left: 4px; }

/* FAQ */
.faq-section {
  margin-top: 4rem;
}
.faq-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.9rem;
  color: var(--navy);
}
.faq-section p {
  color: var(--text-muted);
}
.faq-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  padding: 1.1rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}
.faq-section .section-tag {
  margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
  .youtube-strip-inner { grid-template-columns: 1fr; }
  .study-image-section { grid-template-columns: 1fr; }
  .how-it-works-wrapper { grid-template-columns: 1fr; }
  .about-photo-frame .about-photo-img { height: 340px; }
}
@media (max-width: 640px) {
  .study-image-duo { grid-template-columns: 1fr; }
  .resource-actions { flex-direction: column; }
  .featured-resources-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .featured-resources-grid { grid-template-columns: 1fr; }
}

/* ── NAV ACTIVE STATE ── */
.nav-links a.active {
  color: var(--gold) !important;
}

/* ── GLOBAL FORMULA OVERFLOW FIX ── */
.MathJax_Display, mjx-container[display="true"] {
  overflow-x: auto !important;
  max-width: 100% !important;
}

/* ── SECTION SPACING CONSISTENCY ── */
.section {
  padding: 5rem 0;
}
.section-alt {
  padding: 5rem 0;
}

/* Mobile polish overrides */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-links.open {
    padding: 1rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-logo svg {
    width: 32px;
    height: 32px;
  }

  .nav-logo-name {
    font-size: 0.92rem;
  }

  .nav-logo-sub {
    font-size: 0.56rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 3.5rem 1rem;
    gap: 2rem;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .booking-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .paper-header {
    padding: 1rem;
  }

  .topic-item {
    padding: 0.95rem 1rem;
  }

  .topic-name {
    font-size: 0.94rem;
  }

  .stat-item {
    padding: 1rem 0.75rem;
  }

  .how-it-works-wrapper {
    gap: 2rem;
    padding: 2rem 0;
  }

  .step-item {
    align-items: flex-start;
  }

  .about-qual {
    font-size: 0.92rem;
  }

  .youtube-strip-inner {
    padding: 0 1rem;
    gap: 2rem;
  }

  .featured-resources-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .featured-resource-card,
  .blog-card {
    padding: 1.35rem;
  }

  .booking-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-bottom {
    text-align: center;
  }
}

.no-break {
  white-space: nowrap;
}

