/* =========================================================
   AMFAHHZ Cambridge Academy - main stylesheet
   Plain CSS, no framework.
   ========================================================= */

:root {
  /* Brand palette: burgundy + gold. Change these to re-theme the whole site. */
  --brand-900: #3a0f1d;
  --brand-800: #4a1426;
  --brand-700: #5e1a31;
  --brand-600: #7a2240;
  --accent-600: #85621c;   /* gold for text on light backgrounds */
  --accent-500: #c9a24a;
  --accent-400: #e3c47a;
  --accent-100: #f8efd9;
  --cream: #f8f3ec;
  --ink: #22161a;
  --muted: #6b5d62;
  --line: #ece4e1;
  --white: #ffffff;
  --green-wa: #1a9e4c;     /* WhatsApp green, darkened so the white icon stays visible */

  /* Same colors as RGB numbers, used for see-through shades */
  --brand-rgb: 58, 15, 29;
  --brand-mid-rgb: 122, 34, 64;
  --accent-rgb: 201, 162, 74;
  --accent-light-rgb: 227, 196, 122;

  --font-head: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(var(--brand-rgb), .06);
  --shadow: 0 12px 32px rgba(var(--brand-rgb), .10);
  --shadow-lg: 0 24px 60px rgba(var(--brand-rgb), .16);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-variant-numeric: lining-nums;
  font-synthesis: none;
  color: var(--brand-900);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); color: var(--brand-900); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .35); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(var(--accent-rgb), .45); }
.btn-brand { background: var(--brand-900); color: #fff; }
.btn-brand:hover { background: var(--brand-700); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--brand-900); color: var(--brand-900); background: transparent; }
.btn-outline:hover { background: var(--brand-900); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--brand-900); border-color: #fff; }
.btn-wa { background: #15803d; color: #fff; box-shadow: 0 10px 24px rgba(21, 128, 61, .28); }
.btn-wa:hover { background: #166534; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-900); color: rgba(255,255,255,.82); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar-links { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--accent-400); }
.topbar .ico { width: 15px; height: 15px; color: var(--accent-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; color: var(--brand-900); }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .28em; color: var(--accent-600); margin-top: 5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) {
  position: relative;
  padding: 10px 14px;
  font-weight: 600; font-size: .96rem; color: var(--ink);
  border-radius: 8px;
  transition: color .2s ease;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent-500); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--brand-700); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; cursor: pointer; color: var(--brand-900);
}
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-cream { background: var(--cream); }
.bg-brand { background: var(--brand-900); color: rgba(255,255,255,.82); }
.bg-brand h2, .bg-brand h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.bg-brand .eyebrow, .page-hero .eyebrow, .panel .eyebrow, .cta-band .eyebrow { color: var(--accent-400); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.bg-brand .section-head p { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 110px;
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(var(--accent-light-rgb), .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(var(--brand-mid-rgb), .10), transparent 60%),
    linear-gradient(180deg, #fcf9f5 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(var(--brand-rgb), .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 7px 16px 7px 8px; border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--brand-800);
  margin-bottom: 24px;
}
.hero-badge b { background: var(--brand-900); color: var(--accent-400); padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em; }
.hero h1 span {
  color: var(--brand-600);
  background: linear-gradient(rgba(var(--accent-light-rgb), .6), rgba(var(--accent-light-rgb), .6)) no-repeat 0 88% / 100% .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--brand-800); }
.hero-checks .ico { width: 18px; height: 18px; color: #fff; background: var(--accent-500); border-radius: 50%; padding: 3px; stroke-width: 3; }

/* Hero visual (photo + live class card) */
.hero-visual { position: relative; z-index: 0; padding: 20px 0 40px; }
.hero-photo {
  position: relative; margin: 0 0 0 14%;
  aspect-ratio: 5 / 6; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--brand-700);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--brand-rgb), .35)); }
.hero-visual::before {
  content: ""; position: absolute; top: 0; right: -18px; bottom: 60px; left: calc(14% + 26px);
  border: 2px solid var(--accent-400); border-radius: 30px; z-index: -1;
}
.live-card {
  position: absolute; left: 0; bottom: 0; width: 280px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 18px 20px 20px;
  animation: floaty 6s ease-in-out infinite; animation-delay: -3s;
}
.live-card .row { display: flex; align-items: center; justify-content: space-between; color: var(--brand-600); margin-bottom: 12px; }
.live-card strong { display: block; font-family: var(--font-head); color: var(--brand-900); font-size: 1.1rem; }
.live-card small { color: var(--muted); font-size: .85rem; }
.live-card .progress-wrap { margin-top: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; background: var(--accent-100); color: var(--brand-800); padding: 5px 12px; border-radius: 999px; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); } }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: var(--brand-900);
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
  flex-shrink: 0;
}
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.progress-label b { color: var(--brand-900); }
.progress { height: 8px; background: #f1e8e4; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 82%; background: linear-gradient(90deg, var(--brand-600), var(--accent-500)); border-radius: 99px; }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: .88rem; font-weight: 700; color: var(--brand-900);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.float-badge .ib { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.float-badge .ib .ico { width: 20px; height: 20px; }
.fb-1 { top: 64px; right: -28px; }
.fb-1 .ib { background: var(--accent-100); color: var(--accent-600); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero-shape { position: absolute; width: 180px; height: 180px; border-radius: 36px; background: var(--accent-400); opacity: .22; left: 2%; top: 8%; transform: rotate(18deg); z-index: -1; }

/* ---------- Curriculum marquee ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .container { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.strip-label { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); white-space: nowrap; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--brand-700);
  transition: background .2s ease, color .2s ease;
}
.marquee-toggle:hover { background: var(--brand-900); color: #fff; }
.marquee-toggle .ico { width: 14px; height: 14px; }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  position: relative; display: flex; align-items: center; white-space: nowrap;
  padding-right: 56px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--brand-800);
}
.marquee li::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  background: var(--accent-500); transform: rotate(45deg); border-radius: 1px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-100); color: var(--accent-500);
  transition: background .25s ease, color .25s ease;
}
.icon-box .ico { width: 26px; height: 26px; }
.card:hover .icon-box { background: var(--brand-900); color: var(--accent-400); }

/* ---------- Program cards ---------- */
.program {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-head { padding: 30px 28px 24px; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; position: relative; overflow: hidden; }
.program-head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 22px solid rgba(var(--accent-light-rgb), .14); }
.program-head .icon-box { background: rgba(255,255,255,.1); color: var(--accent-400); }
.program-head h3 { color: #fff; margin: 18px 0 6px; font-size: 1.45rem; }
.program-head p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }
.program-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--brand-800); border: 1px solid #ecdfca; }
.program-body .link { margin-top: auto; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-700); }
.link .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.link:hover .ico { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-400);
  display: block; line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: rgba(255,255,255,.7); font-size: .96rem; }
.bg-cream .step, .section:not(.bg-brand) .step { background: #fff; border-color: var(--line); }
.section:not(.bg-brand) .step::before { -webkit-text-stroke-color: var(--accent-500); }
.section:not(.bg-brand) .step p { color: var(--muted); }

/* ---------- Subjects ---------- */
.subject {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line);
  font-weight: 700; color: var(--brand-900);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.subject:hover { border-color: var(--accent-400); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.subject .ib { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-900); color: var(--accent-400); }

/* ---------- Split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list li { display: flex; gap: 14px; margin-bottom: 16px; }
.check-list .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent-100); color: var(--accent-500); stroke-width: 3; margin-top: 2px; }
.check-list strong { display: block; color: var(--brand-900); }
.check-list span { color: var(--muted); font-size: .96rem; }
.panel {
  position: relative; border-radius: var(--radius-lg); padding: 40px;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900)); color: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-light-rgb), .35), transparent 70%); right: -80px; top: -80px; }
.panel h3 { color: #fff; font-size: 1.6rem; position: relative; }
.panel p { color: rgba(255,255,255,.75); position: relative; }
.panel-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; position: relative; }
.panel-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.panel-stats .ico { color: var(--accent-400); width: 24px; height: 24px; margin-bottom: 10px; }
.panel-stats b { display: block; color: #fff; font-size: 1rem; }
.panel-stats span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Testimonials ---------- */
.testimonial {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px 28px;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.testimonial > .ico { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; color: var(--accent-100); }
.stars { display: flex; gap: 3px; color: #b07f22; margin-bottom: 18px; }
.stars .ico { width: 18px; height: 18px; }
.testimonial p { color: var(--ink); font-size: 1.02rem; flex: 1; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.person strong { display: block; color: var(--brand-900); }
.person small { color: var(--muted); }
.avatar.brand { background: var(--brand-900); color: var(--accent-400); }

/* ---------- Tutors ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.head-row .section-head { margin-bottom: 0; }
.head-row .btn { flex-shrink: 0; }
.tutor {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tutor:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tutor-photo {
  position: relative; aspect-ratio: 4 / 3.4;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(var(--accent-light-rgb), .28), transparent 45%),
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(150deg, var(--brand-700), var(--brand-900));
}
.tutor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tutor-initials {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--brand-900);
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
  box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 16px rgba(255,255,255,.04);
  transition: transform .3s ease;
}
.tutor:hover .tutor-initials { transform: scale(1.06); }
.tutor-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand-900);
  font-size: .74rem; font-weight: 800; letter-spacing: .02em;
  padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.tutor-badge .ico { width: 16px; height: 16px; color: var(--accent-500); }
.tutor-info { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tutor-info h3 { font-size: 1.2rem; margin: 0 0 2px; }
.tutor-subject { color: var(--accent-600); font-weight: 700; font-size: .92rem; margin: 0 0 14px; }
.tutor-meta { margin-bottom: 16px; }
.tutor-meta li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.tutor-meta .ico { width: 16px; height: 16px; color: var(--brand-600); }
.tutor-info .tags { margin-bottom: 18px; gap: 6px; }
.tutor-info .tag { font-size: .76rem; padding: 4px 10px; }
.tutor-info .link { margin-top: auto; font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 64px;
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-light-rgb), .3), transparent 70%); right: -120px; bottom: -160px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.76); font-size: 1.08rem; margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Join our team (tutor application) ---------- */
.section.flush-top { padding-top: 0; }
.join-team {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 64px;
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: rgba(255,255,255,.8);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
}
.join-team .eyebrow { color: var(--accent-400); }
.join-team h2 { color: #fff; margin-bottom: 16px; }
.join-intro p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.join-subtitle {
  font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-400); margin: 30px 0 14px;
}
.join-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.join-options li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 14px 16px; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.35;
}
.join-options .ico { width: 22px; height: 22px; color: var(--accent-400); }
.apply-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.join-team .apply-card .eyebrow { color: var(--accent-600); }
.apply-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.apply-card > p { color: var(--muted); }
.apply-steps { list-style: none; padding: 0; margin: 22px 0 26px; }
.apply-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); }
.apply-steps li:first-child { border-top: 0; padding-top: 0; }
.apply-steps b {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-900); color: var(--accent-400);
  font-family: var(--font-head); font-size: .95rem; font-variant-numeric: lining-nums;
}
.apply-steps strong { display: block; color: var(--brand-900); }
.apply-steps span { color: var(--muted); font-size: .92rem; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.apply-actions .btn { flex: 1 1 auto; padding: 13px 18px; }
.apply-actions .btn-wa { box-shadow: none; }
.apply-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; overflow-wrap: anywhere; }
.page-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.approach-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); background: var(--cream); }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; transition: box-shadow .2s ease, border-color .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #ead7a8; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 700; color: var(--brand-900); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--cream); color: var(--brand-700); transition: transform .25s ease, background .25s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); background: var(--accent-400); color: var(--brand-900); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 90px 0 96px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: rgba(255,255,255,.8);
  text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-light-rgb), .22), transparent 70%); right: -160px; top: -220px; }
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.page-hero p { font-size: 1.12rem; margin: 0 auto; max-width: 640px; }
.crumbs { display: inline-flex; gap: 10px; font-size: .88rem; font-weight: 600; margin-bottom: 18px; color: rgba(255,255,255,.6); }
.crumbs a { color: var(--accent-400); }

/* ---------- Program detail list ---------- */
.program-block { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.program-block:last-child { border-bottom: 0; }
.program-block .icon-box { width: 64px; height: 64px; margin-bottom: 20px; background: var(--brand-900); color: var(--accent-400); }
.program-block .icon-box .ico { width: 30px; height: 30px; }
.program-block aside p { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.course { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.course:hover { border-color: var(--accent-400); box-shadow: var(--shadow-sm); }
.course h3 { font-family: var(--font-body); font-size: 1.02rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.course h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); }
.course p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Format / pricing-like cards ---------- */
.format { text-align: left; }
.format.featured { background: var(--brand-900); color: rgba(255,255,255,.8); border-color: var(--brand-900); position: relative; }
.format.featured h3 { color: #fff; }
.format.featured p { color: rgba(255,255,255,.72); }
.format.featured .icon-box { background: rgba(255,255,255,.1); color: var(--accent-400); }
.format .ribbon { position: absolute; top: 20px; right: 20px; background: var(--accent-400); color: var(--brand-900); font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.format ul { margin-top: 20px; }
.format li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .95rem; }
.format li .ico { width: 18px; height: 18px; color: var(--accent-500); stroke-width: 3; margin-top: 3px; }

/* Note under the tuition services (what standard tuition includes) */
.note-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 32px; padding: 26px 30px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent-500); border-radius: var(--radius);
}
.note-box .icon-box { flex-shrink: 0; }
.note-box h3 { margin: 4px 0 8px; }
.note-box p { margin: 0; color: var(--muted); max-width: 820px; }

/* ---------- Subjects page ---------- */
[hidden] { display: none !important; }
.page-hero.has-overlap { padding-bottom: 130px; }
.subject-finder {
  position: relative; z-index: 2; margin-top: -64px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 30px 32px;
}
.finder-search { display: none; margin-bottom: 18px; }
.js .finder-search { display: block; }   /* the search box needs JavaScript; the lists below never do */
.finder-search label { display: block; font-weight: 700; font-size: .95rem; color: var(--brand-900); margin-bottom: 10px; }
.finder-input {
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fdfbf9;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.finder-input:focus-within { border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 4px rgba(var(--brand-mid-rgb), .12); }
.finder-input .ico { color: var(--brand-600); }
.finder-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 0; outline: none; }
.finder-input input::placeholder { color: #7b6b70; opacity: 1; }
.board-links { display: flex; flex-wrap: wrap; gap: 8px; }
.board-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--cream); color: var(--brand-800); border: 1px solid #ecdfca;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.board-links a:hover { background: var(--brand-900); color: #fff; border-color: var(--brand-900); }
.finder-status { margin: 16px 0 0; font-size: .94rem; font-weight: 600; color: var(--muted); }
.finder-status:empty { display: none; }
.finder-status a, .text-link { color: var(--brand-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.subjects-board { scroll-margin-top: calc(var(--header-h) + 16px); }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.board-head .section-head { margin-bottom: 0; }
.board-count { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; background: var(--accent-100); color: var(--brand-800); font-weight: 700; font-size: .88rem; }
.subject-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.subject-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; }
.subject-group h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-600); margin: 0 0 8px;
}
.subject-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-top: 1px dashed var(--line);
  font-weight: 600; font-size: .95rem; color: var(--brand-900); line-height: 1.4;
}
.subject-list li:first-child { border-top: 0; }
.subject-list code {
  flex-shrink: 0; font-family: var(--font-body); font-size: .8rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums;
  color: var(--brand-700); background: var(--cream); border: 1px solid #ecdfca; padding: 1px 8px; border-radius: 6px;
}
a.subject { color: var(--brand-900); }
.subjects-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.subjects-more small { color: var(--muted); font-size: .92rem; }
.aside-more { margin: 18px 0 0; }
.aside-more .link { font-size: .94rem; }

/* ---------- Faculty cards ---------- */
.dept { padding: 0; overflow: hidden; }
.dept-top { display: flex; align-items: center; gap: 16px; padding: 26px 26px 0; }
.dept-top .icon-box { flex-shrink: 0; }
.dept-top h3 { margin: 0; font-size: 1.22rem; }
.dept-top small { color: var(--muted); font-weight: 600; }
.dept-body { padding: 18px 26px 26px; }
.dept-body p { font-size: .96rem; margin-bottom: 16px; }
.dept-foot { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 2; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); text-align: center; transition: transform .25s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card .icon-box { margin: 0 auto 16px; }
.contact-card.wa .icon-box { background: #e7f9ee; color: #1a9e4c; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--brand-700); }

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--brand-900); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fdfbf9;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field ::placeholder { color: #7b6b70; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 4px rgba(var(--brand-mid-rgb), .12); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.hidden-field { display: none; }
.form-status { margin: 14px 0 0; font-size: .94rem; font-weight: 600; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-success { color: #15803d; }
.form-status.is-error { color: #b42318; }
.form-status a { text-decoration: underline; }
button[disabled] { opacity: .7; cursor: wait; transform: none; }
.hours { margin-top: 30px; padding: 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid #ecdfca; }
.hours h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.hours h3 .ico { color: var(--accent-500); }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e2d3bb; font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours li b { color: var(--brand-900); }

/* ---------- Simple message pages ---------- */
.message-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 100px 0; background: var(--cream); }
.message-page .icon-box { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; background: var(--brand-900); color: var(--accent-400); }
.message-page .icon-box .ico { width: 40px; height: 40px; }
.message-page p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 1.08rem; }
.message-page .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.7); padding-top: 80px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--accent-400); }
.site-footer .brand img { width: 52px; height: 52px; }
.footer-about { margin: 20px 0 24px; max-width: 320px; }
.footer-title { font-family: var(--font-body); color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: color .2s ease, padding .2s ease; }
.footer-links a:hover { color: var(--accent-400); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact .ico { color: var(--accent-400); width: 18px; height: 18px; margin-top: 3px; }
.footer-contact a:hover { color: var(--accent-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp sticky button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green-wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green-wa); z-index: -1; animation: wa-ring 2.2s ease-out infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float .ico { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
.wa-tip {
  position: absolute; right: 76px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: #fff; color: var(--brand-900); font-weight: 700; font-size: .88rem; white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Photo backgrounds (burgundy overlay over a photo set with --photo) ---------- */
.page-hero.photo-bg,
.cta-band.photo-bg,
.join-team.photo-bg,
.panel.photo-bg {
  background:
    linear-gradient(120deg, rgba(var(--brand-rgb), .94) 0%, rgba(var(--brand-rgb), .82) 55%, rgba(var(--brand-mid-rgb), .70) 100%),
    var(--photo) center / cover no-repeat;
}
.program-head.photo-bg {
  background:
    linear-gradient(160deg, rgba(var(--brand-rgb), .55) 0%, rgba(var(--brand-rgb), .92) 75%),
    var(--photo) center / cover no-repeat;
  padding-top: 90px;
}
.panel.photo-bg::before { display: none; }

/* Background photos (files live in assets/img/photos/) */
.photo-students-laptops  { --photo: url("../img/photos/students-laptops.jpg"); }
.photo-child-studying    { --photo: url("../img/photos/child-studying.jpg"); }
.photo-students-writing  { --photo: url("../img/photos/students-writing.jpg"); }
.photo-group-study       { --photo: url("../img/photos/group-study.jpg"); }
.photo-book-and-pen      { --photo: url("../img/photos/book-and-pen.jpg"); }
.photo-library           { --photo: url("../img/photos/library.jpg"); }
.photo-teacher-classroom { --photo: url("../img/photos/teacher-classroom.jpg"); }
.photo-writing-notes     { --photo: url("../img/photos/writing-notes.jpg"); }
.photo-books-stack       { --photo: url("../img/photos/books-stack.jpg"); }
.photo-online-learning   { --photo: url("../img/photos/online-learning.jpg"); }
.photo-classroom         { --photo: url("../img/photos/classroom.jpg"); }

.block-photo { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); background: var(--cream); }
.block-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program-block:hover .block-photo img { transform: scale(1.04); }

/* Tutor call / WhatsApp buttons */
.tutor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.btn-xs { padding: 9px 12px; font-size: .84rem; gap: 6px; }
.btn-xs .ico { width: 16px; height: 16px; }
.tutor-actions .btn-wa { box-shadow: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .tutor-photo { aspect-ratio: 16 / 9; }
  .subject-groups { grid-template-columns: repeat(2, 1fr); }
  .fb-1 { right: -8px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 84px; }
  .hero .container, .split, .contact-wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .program-block { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .join-team { grid-template-columns: 1fr; gap: 36px; padding: 48px 36px; }
  .strip .container { flex-direction: column; gap: 16px; }
  .marquee { width: 100%; }
  .head-row { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
  }
  .main-nav a:not(.btn) { padding: 16px 12px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin: 20px 0 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .grid-2, .grid-3, .grid-4, .course-grid, .form-row, .footer-grid, .contact-cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-badge { display: none; }
  .hero-visual { padding: 0 0 70px; }
  .hero-visual::before { display: none; }
  .hero-photo { margin-left: 0; aspect-ratio: 4 / 4.2; }
  .live-card { left: 16px; right: 16px; width: auto; }
  .marquee li { font-size: 1rem; padding-right: 44px; }
  .marquee li::after { right: 18px; }
  .form-card, .panel { padding: 28px 22px; }
  .cta-band { padding: 40px 24px; border-radius: 22px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .join-team { padding: 36px 20px; border-radius: 22px; }
  .join-options { grid-template-columns: 1fr; }
  .apply-card { padding: 28px 20px; }
  .apply-actions .btn { flex-basis: 100%; }
  .note-box { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .subject-groups { grid-template-columns: 1fr; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .subject-finder { padding: 24px 20px; margin-top: -48px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1.22rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .22em; }
  .contact-cards { margin-top: -40px; }
  .wa-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wa-tip { display: none; }
}
