/* ===== Tech4Kids — style.css ===== */

:root {
  --blue-primary: #0D7EDB;
  --blue-cta: #2185F5;
  --navy: #1B1B24;
  --bg-light: #FFFFFF;
  --text-dark: #353535;
  --text-light: #FFFFFF;
  --teal: #2EC4B6;
  --bg-soft: #F4F8FC;
  --border-soft: #E3ECF5;
  --shadow-soft: 0 10px 30px rgba(13, 126, 219, 0.10);
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-heading: "Montserrat Alternates", sans-serif;
  --font-body: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}

h3 {
  font-size: 1.2rem;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--blue-primary);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
  font-size: .95rem;
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 14px auto 0;
  color: #5b6472;
  font-size: 1.05rem;
}

section {
  padding: 88px 0;
}

section:nth-of-type(even) {
  background: var(--bg-soft);
}

/* Rhythm tiers — short sections breathe less so the page does not
   read as one uniform 88px drumbeat all the way down */
main > section.section-tight {
  padding: 58px 0;
}

/* A dark band partway down breaks the white / light-grey alternation */
main > section.section-dark {
  background: linear-gradient(150deg, var(--navy) 0%, #123A66 100%);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-dark .section-eyebrow {
  color: var(--teal);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.section-dark .why-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Fade-in on scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-cta);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(33, 133, 245, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(33, 133, 245, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--text-light);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

/* The wordmark crop sits tight to the lettering (a laptop in the source
   art sits just above it), so the breathing room is added here as a tile
   whose gradient matches the image's own sampled edge colours. */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #143A63 0%, #0C2344 100%);
  padding: 9px 15px;
  border-radius: 10px;
}

.logo img {
  height: 31px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--blue-cta);
  transition: width .25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.header-cta.mobile-cta {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger.active span {
  background: #fff;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-primary) 100%);
  overflow: hidden;
  padding: 118px 0 72px;
}

/* Background video sits between the base gradient and the scrim.
   Source is only 640x360, so it is deliberately kept as soft texture
   rather than a sharp full-bleed showcase. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  z-index: 0;
  pointer-events: none;
  /* Blur keeps the footage as abstract motion — it hides the 360p
     softness and stops on-screen text in the clip being readable */
  filter: blur(2px) saturate(1.2);
  transform: scale(1.04);
}

/* Scrim — keeps h1/subtitle above 4.5:1 over the moving footage */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(275deg, rgba(27, 27, 36, 0.94) 0%, rgba(20, 55, 105, 0.86) 42%, rgba(13, 126, 219, 0.66) 100%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(46, 196, 182, 0.20) 0%, transparent 45%);
  pointer-events: none;
}

/* Reduced motion is handled in script.js by pausing on a still frame.
   The video is deliberately NOT hidden here — hiding it made the hero
   look broken for anyone with OS animation effects switched off. */

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  color: var(--text-light);
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero h1 {
  color: var(--text-light);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 22px;
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-stats {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 24px;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.hero-stats span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ===== Subjects grid ===== */
.subjects-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Each card carries its own hue via --c, set inline in the markup.
   One accent per subject replaces eight identical blue tiles. */
.subject-card {
  --c: var(--blue-cta);
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Accent bar that fills across on hover */
.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

/* Soft colour wash bleeding from the icon corner */
.subject-card::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--c);
  opacity: .07;
  transition: opacity .25s ease;
  pointer-events: none;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 22%, transparent);
  border-color: color-mix(in srgb, var(--c) 45%, var(--border-soft));
}

.subject-card:hover::before { transform: scaleX(1); }
.subject-card:hover::after  { opacity: .14; }

.subject-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--c);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 34%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* Phosphor Regular — paths carry fill="currentColor", so the glyph
   colour comes from `color` rather than a stroke */
.subject-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  fill: currentColor;
  display: block;
}

.subject-card h3,
.subject-card p {
  position: relative;
  z-index: 1;
}

.subject-card h3 {
  margin-bottom: 10px;
}

.subject-card p {
  font-size: .95rem;
  color: #5b6472;
}

/* ===== Generic content section w/ image ===== */
.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-section.reverse .split-media {
  order: 2;
}

.split-text h2 {
  text-align: right;
  margin-bottom: 18px;
}

.split-text > p {
  font-size: 1.05rem;
  color: #4a525c;
  margin-bottom: 28px;
}

.split-text h3 {
  margin: 26px 0 14px;
  color: var(--blue-primary);
}

.check-list li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 12px;
  color: #4a525c;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--blue-primary), var(--navy));
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
}

.gafen-badge {
  display: inline-block;
  margin-top: 18px;
  background: rgba(13, 126, 219, 0.1);
  color: var(--blue-primary);
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
}

/* ===== Workshops ===== */
.workshops-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workshop-card {
  --c: var(--blue-cta);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 22%, transparent);
  border-color: color-mix(in srgb, var(--c) 45%, var(--border-soft));
}

.workshop-card .subject-icon {
  margin: 0 auto 18px;
}

.workshop-card p {
  color: #5b6472;
  font-size: .95rem;
}

.section-cta-center {
  text-align: center;
  margin-top: 46px;
}

/* ===== Why us ===== */
.why-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  --c: var(--blue-cta);
  text-align: center;
  padding: 20px;
}

.why-card .subject-icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.why-card p {
  color: #5b6472;
  font-size: .95rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-soft);
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--blue-primary);
  opacity: .25;
  line-height: 1;
  margin-bottom: 6px;
}

.testimonial-text {
  color: #4a525c;
  margin-bottom: 20px;
  font-size: .98rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy);
}

.testimonial-role {
  font-size: .88rem;
  color: #7a8592;
}

/* ===== Partners marquee ===== */
/* Every logo visible at once rather than scrolling past */
.partners-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px 20px;
  align-items: center;
}

.partner-logo {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  filter: grayscale(1) opacity(.75);
  transition: filter .25s ease, border-color .25s ease, transform .25s ease;
}

.partner-logo:hover {
  border-color: color-mix(in srgb, var(--blue-primary) 40%, var(--border-soft));
  transform: translateY(-3px);
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}


/* ===== About ===== */
.about-text {
  font-size: 1.08rem;
  color: #4a525c;
}

/* ===== FAQ ===== */
/* Two columns keeps the FAQ from becoming the tallest block on the page */
.faq-groups {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  align-items: start;
}

.faq-group {
  margin-top: 26px;
}

.faq-group:first-of-type,
.faq-group:nth-of-type(2) {
  margin-top: 0;
}

.faq-group-title {
  color: var(--blue-primary);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: right;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
  font-size: 1.1rem;
  color: var(--blue-primary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue-primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: #5b6472;
}

/* ===== Contact ===== */
/* Real classroom photo behind a heavy brand-blue wash, the same treatment
   the previous site used at the foot of the page */
section.contact-section {
  /* The photo has pure-white pixels (projector screen, ceiling lights), so
     the wash is deep enough to hold white text over the brightest of them */
  background:
    linear-gradient(135deg, rgba(22, 22, 30, 0.94) 0%, rgba(16, 52, 92, 0.92) 45%, rgba(13, 90, 160, 0.90) 100%),
    url("images/contact-bg.jpg") center / cover no-repeat;
}

.contact-section h2 {
  color: var(--text-light);
}

.contact-section .section-subtitle {
  color: rgba(255,255,255,.85);
}

.contact-form-wrap {
  margin-top: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  /* The embed reserves ~40px of its own side margin, so our horizontal
     padding stays small — together they read as one comfortable inset. */
  padding: 30px 12px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* Fallback height for before the frame reports its real size (and if JS is
   off). Kept in CSS rather than a height="" attribute, which would outrank
   the inline height script.js sets. */
#ravFormFrame {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  overflow: hidden;
}

/* ===== Ravpage embed =====
   Vendor markup we do not control. Their stylesheet is cross-origin and
   loads after ours with its own !important rules, so every override here
   is prefixed with #contact to outrank it on specificity. The form itself
   renders at a fixed width on desktop, so the card hugs it rather than
   fighting the vendor's layout. */
/* The vendor pins .formBody / form.form to 340px in their cross-origin
   sheet and it survives even an #id !important override, so the card is
   sized to hug that 340px instead of leaving a hollow ring around it. */
#contact .contact-form-wrap input[type="text"],
#contact .contact-form-wrap input[type="email"],
#contact .contact-form-wrap input[type="tel"],
#contact .contact-form-wrap textarea,
#contact .contact-form-wrap select {
  width: 100% !important;
  max-width: 100% !important;
  height: 52px !important;
  box-sizing: border-box !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: 12px 16px !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--text-dark) !important;
  box-shadow: none !important;
}

#contact .contact-form-wrap textarea {
  height: auto !important;
  min-height: 104px !important;
}

#contact .contact-form-wrap input[type="text"]:focus,
#contact .contact-form-wrap input[type="email"]:focus,
#contact .contact-form-wrap input[type="tel"]:focus,
#contact .contact-form-wrap textarea:focus,
#contact .contact-form-wrap select:focus {
  border-color: var(--blue-cta) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(33, 133, 245, 0.16) !important;
}

/* Their submit is an <a class="submitButton"> wrapping <input class="textPart"> */
#contact .contact-form-wrap a.submitButton {
  display: block !important;
  background: var(--blue-cta) !important;
  border: none !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(33, 133, 245, 0.35) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

#contact .contact-form-wrap a.submitButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(33, 133, 245, 0.45) !important;
}

#contact .contact-form-wrap a.submitButton input.textPart {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  height: 52px !important;
  width: 100% !important;
  cursor: pointer !important;
}

#contact .contact-form-wrap img {
  max-width: 100%;
  height: auto;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 2.6fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Fluid rather than stepped: fills 4 columns when there is room and
   reflows on its own through the tablet range */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 28px 24px;
}

.footer-col h3 {
  color: #fff;
  font-size: .98rem;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(180deg, #143A63 0%, #0C2344 100%);
  padding: 11px 18px;
  border-radius: 10px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* The full, uncropped logo (illustration + wordmark) — this artwork
   already carries its own navy background, so no tile treatment needed */
.footer-logo-full {
  display: inline-block;
  align-self: flex-start;
}

.footer-logo-full img {
  width: 190px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .98rem;
}

.footer-contact address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  transition: color .2s ease;
}

.footer-contact a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Below .site-header (1000), which is the stacking context the mobile
     nav overlay lives in — otherwise the banner floats over the open menu */
  z-index: 900;
  background: rgba(27, 27, 36, 0.97);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  max-width: 640px;
  font-size: .92rem;
  color: rgba(255,255,255,.9);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-actions a {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  text-decoration: underline;
}

.btn-cookie {
  background: var(--teal);
  color: #08302b;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
}

/* ===== Mobile nav overlay ===== */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .workshops-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-media {
    order: 0;
  }

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

  .faq-groups {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-group:nth-of-type(2) {
    margin-top: 26px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .hamburger {
    display: flex;
  }

  /* The header's backdrop-filter makes it the containing block for this
     fixed element, so size it explicitly instead of relying on inset: 0 */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1050;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav-links a {
    color: #fff;
    font-size: 1.3rem;
  }

  .header-cta {
    display: none;
  }

  .main-nav .header-cta.mobile-cta {
    display: inline-flex;
  }

  .container {
    padding: 0 16px;
  }

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

  .subject-card {
    padding: 20px 14px;
  }

  .subject-card h3 {
    font-size: 1.02rem;
  }

  .subject-card p {
    font-size: .88rem;
  }

  .subject-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .subject-icon svg {
    width: 23px;
    height: 23px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    text-align: right;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .logo {
    padding: 7px 12px;
  }

  .logo img {
    height: 26px;
  }

  .footer-logo {
    align-self: center;
  }

  .contact-form-wrap {
    padding: 24px 6px;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .partner-logo {
    height: 68px;
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
