:root {
  --ink: #17202a;
  --muted: #65707c;
  --paper: #fbfaf7;
  --white: #ffffff;
  --navy: #10243e;
  --navy-2: #183653;
  --gold: #c79b52;
  --gold-light: #f0dfbe;
  --line: #e8e3da;
  --shadow: 0 18px 50px rgba(16, 36, 62, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.top-strip {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.top-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-links { display: flex; gap: 22px; }
.top-links a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,247,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23,32,42,.08);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(199,155,82,.65);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 13px;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(16,36,62,.15);
}

.brand strong {
  display: block;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #3d4650;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.nav-search {
  width: 180px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-search span { color: var(--gold); font-size: 21px; }
.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 24px;
}

.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(199,155,82,.17), transparent 28%),
    linear-gradient(135deg, #f8f3e9 0%, #fff 48%, #eef2f4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -260px;
  border: 1px solid rgba(199,155,82,.22);
  border-radius: 50%;
}

.hero-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 50px;
  padding-block: 52px;
}

.eyebrow {
  color: #9a7134;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 18px;
  max-width: 680px;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 74px);
  line-height: .98;
  letter-spacing: -.045em;
}

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

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 25px rgba(16,36,62,.18);
}

.btn-primary:hover { background: var(--navy-2); }

.btn-ghost {
  border: 1px solid #cfc9bd;
  background: rgba(255,255,255,.65);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 42px;
}

.hero-stats div {
  padding-right: 32px;
  border-right: 1px solid #ddd5c8;
}

.hero-stats div:last-child { border: 0; }

.hero-stats strong {
  display: block;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 27px;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.hero-art {
  min-height: 390px;
  position: relative;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(199,155,82,.16);
  filter: blur(3px);
}

.book-card {
  position: relative;
  width: min(360px, 78%);
  aspect-ratio: .76;
  padding: 44px 34px;
  border-radius: 10px 18px 18px 10px;
  background: linear-gradient(135deg, #173452, #0b1d32);
  box-shadow: 30px 30px 0 rgba(199,155,82,.20), 0 35px 60px rgba(16,36,62,.24);
  color: #fff;
  transform: rotate(-5deg);
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(240,223,190,.45);
  border-radius: 4px 12px 12px 4px;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(#c79b52, #8c672f);
  border-radius: 10px 0 0 10px;
}

.book-title {
  position: relative;
  margin-top: 95px;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: .95;
  letter-spacing: -.04em;
}

.book-title span { color: var(--gold); }

.book-sub {
  position: relative;
  margin-top: 24px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .2em;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(23,32,42,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.floating-card b,
.floating-card small { display: block; }

.floating-card b { font-size: 12px; }
.floating-card small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.floating-card .icon { color: var(--gold); font-size: 22px; }

.card-one { top: 75px; right: 0; }
.card-two { bottom: 65px; left: 0; }

.notice-section {
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 10px;
  position: relative;
  z-index: 2;
}

.notice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 23px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-light);
  color: #765523;
  font-weight: 800;
}

.notice-card strong { color: var(--navy); }
.notice-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

section { padding-block: 90px; }

.section-heading { max-width: 700px; margin-bottom: 36px; }
.section-heading h2,
.reach h2,
.about h2,
.disclaimer h2 {
  margin: 9px 0 10px;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-heading p { margin: 0; color: var(--muted); }

.services { background: #fff; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 315px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(23,32,42,.12);
  font-family: "Playfair Display", serif;
  font-size: 54px;
  font-weight: 700;
}

.featured .service-number { color: rgba(255,255,255,.12); }

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-light);
  color: var(--navy);
  font-size: 21px;
}

.service-card h3 {
  margin: 28px 0 9px;
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

.service-card p { color: var(--muted); font-size: 13px; }
.featured p { color: rgba(255,255,255,.72); }

.service-card a,
.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.pillars { background: #f2eee6; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #ddd4c5;
  border-radius: var(--radius);
  background: rgba(255,255,255,.48);
}

.pillar {
  padding: 30px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  border-right: 1px solid #ddd4c5;
}

.pillar:last-child { border-right: 0; }

.pillar-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
}

.pillar h3 { margin: 1px 0 6px; font-size: 16px; }
.pillar p { margin: 0; color: var(--muted); font-size: 12px; }

.reach { background: var(--navy); color: #fff; }
.reach-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.reach h2 { color: #fff; }
.reach p { max-width: 650px; color: rgba(255,255,255,.68); }
.reach p strong { color: var(--gold-light); }

.world-card {
  width: 220px;
  height: 220px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(240,223,190,.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,155,82,.18), transparent 62%);
  text-align: center;
}

.world-dots { color: rgba(240,223,190,.45); letter-spacing: 3px; font-size: 9px; margin-bottom: 8px; }
.world-card strong { color: var(--gold-light); font-family: "Playfair Display", serif; font-size: 60px; line-height: .9; }
.world-card span { color: rgba(255,255,255,.62); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}

.about-card,
.contact-card {
  padding: 45px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-card h2,
.contact-card h2 { font-size: 38px; }

.about-card p,
.contact-card p { color: var(--muted); font-size: 14px; }

.contact-card {
  background: #f5efe4;
  border-color: #eadfcf;
}

.contact-email {
  display: block;
  margin: 22px 0;
  color: var(--navy);
  font-weight: 700;
  word-break: break-word;
}

.disclaimer {
  padding-block: 46px;
  background: #f7f5f0;
  border-top: 1px solid var(--line);
}

.disclaimer-inner {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: center;
}

.disclaimer h2 { font-size: 32px; }
.disclaimer p { margin: 0; color: var(--muted); font-size: 12px; }

footer {
  padding-top: 55px;
  background: #0c1c2e;
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand .brand-mark { background: #fff; color: var(--navy); }
.footer-brand strong { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); }

.footer-grid > div:first-child > p {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  margin: 18px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 12px 24px;
  max-width: 500px;
}

.footer-links a {
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  min-height: 54px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.4);
  font-size: 10px;
}

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .nav-search { width: 145px; }
  .hero-grid { gap: 20px; }
}

@media (max-width: 900px) {

  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;

    display: none;
    padding: 14px;

    flex-direction: column;
    align-items: stretch;
    gap: 2px;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);

    /* IMPORTANT */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  /* Mobile dropdowns */
  .main-nav .nav-dropdown {
    display: block;
  }

  .main-nav .nav-dropdown-toggle {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    width: auto;

    /* IMPORTANT */
    max-height: none;
    overflow: visible;

    margin: 0 8px 6px;
    padding: 4px 8px;

    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: #f7f5f0;
  }

  .main-nav .nav-dropdown-menu a {
    padding: 8px 10px;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .top-inner { min-height: 32px; }
  .top-inner > span { display: none; }
  .top-inner { justify-content: flex-end; }
  .top-links { gap: 13px; }
  .nav-wrap { min-height: 72px; }
  .brand strong { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stats div { padding-right: 16px; }
  .book-card { width: 270px; }
  .floating-card { min-width: 165px; }
  .card-one { right: -4px; top: 40px; }
  .card-two { left: -4px; bottom: 35px; }
  section { padding-block: 65px; }
  .notice-card { padding: 18px; }
  .about-card, .contact-card { padding: 28px; }
  .about-card h2, .contact-card h2 { font-size: 31px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 15px; gap: 5px; }
}


/* Readability + tighter section rhythm */
.notice-card p {
  font-size: 15px;
  line-height: 1.7;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
}

.pillar p {
  font-size: 14px;
  line-height: 1.7;
}

.reach p,
.about-card p,
.contact-card p {
  font-size: 15px;
  line-height: 1.75;
}

.disclaimer p {
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .hero-grid {
    min-height: 0;
    padding-block: 42px;
  }

  .hero-art {
    min-height: 340px;
  }

  section {
    padding-block: 48px;
  }

  .notice-section {
    padding-top: 20px;
    padding-bottom: 4px;
  }

  .notice-card p {
    font-size: 14px;
  }
}


/* Supplied Lessons2All logo */
.brand-logo {
  width: 178px;
  display: block;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

/* Advertisement area */
.advertising {
  padding-block: 48px;
  background: #f6f3ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ad-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.ad-heading h2 {
  margin: 7px 0 5px;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ad-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ad-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,36,62,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ad-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(16,36,62,.12);
}

.ad-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ad-badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16,36,62,.88);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

@media (max-width: 1000px) {
  .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: 155px;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: 140px;
  }

  .ad-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .ad-card {
    aspect-ratio: 16 / 10;
  }

  .advertising {
    padding-block: 40px;
  }
}


/* FINAL DESKTOP NAV FIX
   The scroll wrapper exists only for mobile. On desktop it must not
   change the original horizontal navigation layout. */
.main-nav-scroll {
  display: contents;
}

/* Navigation dropdowns */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  z-index: 49;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-dropdown .caret {
  font-size: 10px;
  line-height: 1;
  color: var(--gold);
  transition: transform .2s ease;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 235px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret {
  transform: rotate(180deg);
}
.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 9px 11px;
  color: #3d4650;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 9px;
}
.main-nav .nav-dropdown-menu a::after { display: none; }
.main-nav .nav-dropdown-menu a:hover {
  background: #f5efe4;
  color: var(--navy);
}
@media (max-width: 900px) {
  .main-nav .nav-dropdown { display: block; }
  .main-nav .nav-dropdown-toggle { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0 8px 6px;
    padding: 4px 8px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: #f7f5f0;
  }
  .main-nav .nav-dropdown-menu a { padding: 8px 10px; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { transform: none; }
}


/* =========================================================
   LESSONS2ALL - FINAL MOBILE MENU SCROLL FIX
   ========================================================= */

@media (max-width: 900px) {

  .site-header {
    /* Prevent the header filter from interfering with the
       mobile menu's containing/scrolling behavior. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .menu-toggle {
    display: block !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 10002 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* The outer menu is only a fixed/absolute window. */
  .main-nav {
    position: absolute !important;
    top: 72px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;

    display: none !important;
    padding: 0 !important;
    margin: 0 !important;

    height: calc(100vh - 82px) !important;
    max-height: calc(100vh - 82px) !important;

    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;

    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(16,36,62,.18) !important;

    overflow: hidden !important;
    z-index: 10001 !important;
  }

  .main-nav.open {
    display: block !important;
  }

  /* THIS is the actual scrolling element. */
  .main-nav-scroll {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;

    padding: 12px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;

    scrollbar-width: auto;
  }

  /* Keep all menu content at its natural height. */
  .main-nav-scroll > a,
  .main-nav-scroll > .nav-dropdown {
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }

  .main-nav-scroll > a {
    display: block !important;
    padding: 10px 12px !important;
  }

  /* Mobile dropdown sections */
  .main-nav-scroll .nav-dropdown {
    position: static !important;
    display: block !important;
    width: 100% !important;
  }

  .main-nav-scroll .nav-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 12px !important;
  }

  .main-nav-scroll .nav-dropdown-menu {
    position: static !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;

    margin: 0 8px 6px !important;
    padding: 4px 8px !important;

    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #f7f5f0 !important;
  }

  .main-nav-scroll .nav-dropdown-menu a {
    display: block !important;
    padding: 8px 10px !important;
  }

  .main-nav-scroll .nav-dropdown:hover .nav-dropdown-menu,
  .main-nav-scroll .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .main-nav {
    top: 72px !important;
    left: 10px !important;
    right: 10px !important;
    height: calc(100vh - 82px) !important;
    max-height: calc(100vh - 82px) !important;
  }

  .main-nav-scroll {
    padding: 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }
}

/* FINAL MOBILE SCROLL CONTAINER */
@media (max-width: 900px) {
  .main-nav-scroll {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }
}


/* =========================================================
   LESSONS2ALL - FINAL RESPONSIVE PAGE LAYOUT
   This section fixes the content sections on tablets/phones.
   Navigation scrolling is preserved.
   ========================================================= */

/* Prevent accidental horizontal page overflow. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Allow grid/flex children to shrink instead of forcing
   the page wider than the viewport. */
.hero-grid > *,
.service-grid > *,
.pillar-grid > *,
.reach-inner > *,
.about-grid > *,
.disclaimer-inner > *,
.footer-grid > * {
  min-width: 0;
}

/* ---------- Tablets ---------- */
@media (max-width: 900px) {

  .container {
    width: min(100% - 32px, 1160px);
  }

  /* Header */
  .nav-wrap {
    min-height: 72px;
    gap: 14px;
  }

  .brand-logo {
    width: 145px;
    max-width: 70%;
  }

  /* Hero becomes one clean column */
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding-block: 46px 55px;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 8vw, 62px);
  }

  .hero-lead {
    max-width: 680px;
  }

  .hero-art {
    width: 100%;
    min-height: 360px;
    margin-inline: auto;
  }

  /* Three service cards -> one column */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: 0;
    padding: 28px;
  }

  /* Three pillars -> one column */
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    grid-template-columns: 50px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #ddd4c5;
  }

  .pillar:last-child {
    border-bottom: 0;
  }

  /* Reach section */
  .reach-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }

  .reach-inner > div:first-child {
    width: 100%;
  }

  .world-card {
    width: 190px;
    height: 190px;
    align-self: center;
  }

  .world-card strong {
    font-size: 52px;
  }

  /* About/contact -> one column */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card,
  .contact-card {
    padding: 32px;
  }

  /* Disclaimer -> one column */
  .disclaimer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    justify-content: flex-start;
    max-width: none;
  }
}


/* ---------- Phones ---------- */
@media (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
    max-width: none;
  }

  /* Top strip */
  .top-strip {
    font-size: 10px;
  }

  .top-inner {
    min-height: 32px;
  }

  .top-links {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
  }

  /* Header */
  .nav-wrap {
    min-height: 64px;
  }

  .brand-logo {
    width: 125px;
    max-width: 62%;
  }

  .menu-toggle {
    font-size: 22px;
    padding: 6px;
  }

  /* Hero */
  .hero-grid {
    padding-block: 34px 42px;
    gap: 18px;
  }

  .hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 0 10px;
  }

  .hero-stats div:first-child {
    padding-left: 0;
  }

  .hero-stats div:last-child {
    padding-right: 0;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 9px;
    line-height: 1.35;
  }

  /* Hero illustration */
  .hero-art {
    min-height: 300px;
    width: 100%;
    overflow: visible;
  }

  .glow {
    width: 260px;
    height: 260px;
  }

  .book-card {
    width: min(245px, 72vw);
    padding: 34px 25px;
  }

  .book-title {
    margin-top: 70px;
    font-size: 31px;
  }

  .book-sub {
    margin-top: 18px;
    font-size: 8px;
  }

  .book-card::before {
    inset: 14px;
  }

  .book-spine {
    width: 14px;
  }

  .floating-card {
    min-width: 0;
    width: 145px;
    padding: 10px 11px;
    gap: 7px;
  }

  .floating-card b {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 8px;
  }

  .floating-card .icon {
    font-size: 17px;
  }

  .card-one {
    top: 20px;
    right: -2px;
  }

  .card-two {
    bottom: 18px;
    left: -2px;
  }

  /* Notice */
  .notice-section {
    padding-top: 16px;
    padding-bottom: 0;
  }

  .notice-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    padding: 16px;
    border-radius: 15px;
  }

  .notice-icon {
    width: 32px;
    height: 32px;
  }

  .notice-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* All normal sections */
  section {
    padding-block: 48px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .reach h2,
  .about h2,
  .disclaimer h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  /* Services */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: 0;
    padding: 24px;
    border-radius: 18px;
  }

  .service-card h3 {
    margin-top: 20px;
    font-size: 23px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.65;
  }

  .service-number {
    font-size: 44px;
    top: 14px;
    right: 18px;
  }

  /* Pillars */
  .pillar-grid {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .pillar {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 18px;
  }

  .pillar-icon {
    width: 40px;
    height: 40px;
  }

  .pillar h3 {
    font-size: 15px;
  }

  .pillar p {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Reach */
  .reach-inner {
    gap: 28px;
  }

  .reach p {
    font-size: 14px;
    line-height: 1.7;
  }

  .world-card {
    width: 170px;
    height: 170px;
  }

  .world-card strong {
    font-size: 46px;
  }

  .world-card span {
    font-size: 10px;
  }

  /* About/contact */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-card,
  .contact-card {
    padding: 24px;
    border-radius: 18px;
  }

  .about-card h2,
  .contact-card h2 {
    font-size: 29px;
  }

  .about-card p,
  .contact-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-email {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  /* Disclaimer */
  .disclaimer {
    padding-block: 38px;
  }

  .disclaimer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .disclaimer h2 {
    font-size: 28px;
  }

  .disclaimer p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Advertisements */
  .advertising {
    padding-block: 38px;
  }

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

  .ad-card {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  /* Footer */
  footer {
    padding-top: 40px;
  }

  .footer-grid {
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .footer-bottom {
    min-height: 60px;
    padding-block: 14px;
  }
}


/* ---------- Very small phones ---------- */
@media (max-width: 380px) {

  .container {
    width: calc(100% - 20px);
  }

  .brand-logo {
    width: 112px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-stats strong {
    font-size: 19px;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .hero-art {
    min-height: 270px;
  }

  .book-card {
    width: 210px;
  }

  .floating-card {
    width: 125px;
  }

  .floating-card small {
    display: none;
  }

  .service-card,
  .about-card,
  .contact-card {
    padding: 20px;
  }
}
