/* ============================================================
   Incendio Education — vibrant, playful theme
   Brochure-inspired gradients (orange / pink / purple / teal)
   Loaded ONLY on /education.html — keeps main site untouched.
   ============================================================ */

:root {
  /* Bright palette pulled from the printed brochures */
  --edu-bg-1:        #1B1140;   /* deep indigo for behind-gradient */
  --edu-bg-2:        #0E1C3F;
  --edu-ink:         #1A0F3A;   /* dark text on bright cards */
  --edu-paper:       #FFFFFF;

  --edu-yellow:      #FFC93C;
  --edu-orange:      #F97316;
  --edu-pink:        #EC4899;
  --edu-magenta:     #C026D3;
  --edu-purple:      #8B5CF6;
  --edu-violet:      #6D28D9;
  --edu-blue:        #38BDF8;
  --edu-teal:        #2DD4BF;
  --edu-lime:        #A3E635;

  --edu-text:        #FFFFFF;
  --edu-text-soft:   rgba(255,255,255,0.78);
  --edu-text-mute:   rgba(255,255,255,0.55);

  /* the four course brand grads — match the brochures */
  --grad-electronics: linear-gradient(135deg, #38BDF8 0%, #8B5CF6 50%, #FFC93C 100%);
  --grad-iot:         linear-gradient(135deg, #2DD4BF 0%, #38BDF8 50%, #8B5CF6 100%);
  --grad-robotics:    linear-gradient(135deg, #38BDF8 0%, #EC4899 50%, #F97316 100%);
  --grad-nocode:      linear-gradient(135deg, #F97316 0%, #EC4899 50%, #8B5CF6 100%);

  --grad-hero:        radial-gradient(120% 80% at 80% 10%, rgba(249,115,22,0.55) 0%, transparent 60%),
                      radial-gradient(100% 80% at 0% 30%, rgba(56,189,248,0.50) 0%, transparent 55%),
                      radial-gradient(120% 100% at 50% 110%, rgba(236,72,153,0.55) 0%, transparent 60%),
                      linear-gradient(160deg, #2A1166 0%, #1B1140 60%, #0E1C3F 100%);

  --edu-radius:      22px;
  --edu-radius-lg:   34px;
  --edu-shadow:      0 30px 60px -25px rgba(0,0,0,0.55);
  --edu-shadow-lg:   0 50px 110px -30px rgba(0,0,0,0.65);
  --edu-ease:        cubic-bezier(.2,.7,.2,1);

  --edu-display:     'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* hard reset on body styles set by the main stylesheet */
body.edu {
  background: var(--edu-bg-1);
  color: var(--edu-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

body.edu::before {
  /* full-page animated gradient backdrop */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: edu-bg-pan 26s var(--edu-ease) infinite alternate;
}

body.edu::after {
  /* subtle noise + grid overlay */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   Math / gear / equation backdrop layer
   Floating symbols (π, Σ, ∫, =, etc.) + slow-rotating gears.
   Sits BEHIND content but above the gradient backdrop.
   ============================================================ */
.edu-math-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--edu-display);
  color: rgba(255,255,255,0.10);
}
.edu-math-bg__item {
  position: absolute;
  font-weight: 700;
  user-select: none;
  white-space: nowrap;
  animation: edu-math-float 22s linear infinite;
  will-change: transform, opacity;
}
.edu-math-bg__item--gear {
  font-size: 0;
  animation: edu-gear-spin 24s linear infinite, edu-math-drift 30s ease-in-out infinite alternate;
}
.edu-math-bg__item--gear svg {
  display: block;
  stroke: rgba(255,255,255,0.16);
  fill: none;
  stroke-width: 1.5;
}
@keyframes edu-math-float {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.65; }
  90%  { opacity: 0.55; }
  100% { transform: translate3d(20px, -120vh, 0) rotate(20deg); opacity: 0; }
}
@keyframes edu-gear-spin {
  to { transform: rotate(360deg); }
}
@keyframes edu-math-drift {
  0%   { translate: 0 0; }
  100% { translate: 30px -40px; }
}

@keyframes edu-bg-pan {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ============================================================
   Nav overrides — Back + Enrol Now, both pinned to the right
   ============================================================ */
body.edu .edu-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* --- subtle Back button --- */
body.edu .edu-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .25s var(--edu-ease), transform .25s var(--edu-ease),
              border-color .25s var(--edu-ease), color .25s var(--edu-ease);
}
body.edu .edu-back:hover {
  background: rgba(255,201,60,0.18);
  border-color: var(--edu-yellow);
  color: var(--edu-yellow);
  transform: translateX(-2px);
}
body.edu .edu-back svg { stroke: currentColor; }

/* --- inline nav link (e.g. "Blog") --- */
body.edu .edu-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .25s var(--edu-ease), color .25s var(--edu-ease),
              border-color .25s var(--edu-ease), transform .25s var(--edu-ease);
}
body.edu .edu-nav-link:hover {
  background: rgba(45,212,191,0.18);
  border-color: var(--edu-teal);
  color: var(--edu-teal);
  transform: translateY(-1px);
}
body.edu .edu-nav-link svg { stroke: currentColor; flex: none; }
@media (max-width: 640px) {
  body.edu .edu-nav-link span { display: none; }
  body.edu .edu-nav-link { padding: 10px 12px; }
}

/* --- artistic "Enrol Now" button --- */
body.edu .edu-nav-enrol {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #FFC93C 0%, #F97316 35%, #EC4899 70%, #8B5CF6 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 14px 32px -10px rgba(236,72,153,0.55),
    0 0 0 0 rgba(255,201,60,0.45),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: background-position .8s var(--edu-ease), transform .25s var(--edu-ease),
              box-shadow .35s var(--edu-ease);
  animation: edu-nav-enrol-pulse 2.6s var(--edu-ease) infinite;
  overflow: visible;
  isolation: isolate;
}
body.edu .edu-nav-enrol::before {
  /* soft halo glow underneath */
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,201,60,0.45), transparent 65%);
  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}
body.edu .edu-nav-enrol::after {
  /* shimmer sweep across the button */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  background-size: 220% 100%;
  background-position: 200% 0;
  animation: edu-nav-enrol-shimmer 4s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
body.edu .edu-nav-enrol:hover {
  transform: translateY(-2px) scale(1.03);
  background-position: 100% 50%;
  box-shadow:
    0 22px 50px -14px rgba(236,72,153,0.75),
    0 0 22px 4px rgba(255,201,60,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);
  animation-play-state: paused;
}
body.edu .edu-nav-enrol svg { stroke: #fff; flex: none; }

@keyframes edu-nav-enrol-pulse {
  0%, 100% {
    box-shadow:
      0 14px 32px -10px rgba(236,72,153,0.55),
      0 0 0 0 rgba(255,201,60,0.45),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
  50% {
    box-shadow:
      0 18px 40px -10px rgba(236,72,153,0.7),
      0 0 0 8px rgba(255,201,60,0.0),
      inset 0 1px 0 rgba(255,255,255,0.55);
  }
}
@keyframes edu-nav-enrol-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -120% 0; }
}

/* twinkling sparkle bits for an artistic feel */
.edu-nav-enrol__spark {
  position: absolute;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 22px #FFC93C;
  pointer-events: none;
  animation: edu-spark-twinkle 2.4s var(--edu-ease) infinite;
}
.edu-nav-enrol__spark        { top: -6px;  right: 14px; }
.edu-nav-enrol__spark--2     { bottom: -5px; left: 22px; width: 4px; height: 4px;
                                animation-delay: -1.2s; }
@keyframes edu-spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1.3); }
}

/* Desktop: show pill buttons, hide nav toggle.
   Mobile : show hamburger (handled by main.js + styles.css drawer),
            hide pill buttons — they're rebuilt inside the drawer
            by the global mobile drawer CSS. */
@media (min-width: 961px) {
  body.edu .nav__toggle { display: none !important; }
  body.edu .nav__links { display: none !important; }
}
@media (max-width: 960px) {
  body.edu .edu-nav-cta { display: none; }  /* hidden until drawer open */
  body.edu.nav-is-open .edu-nav-cta,
  body.edu .nav.is-open .edu-nav-cta { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  body.edu .edu-nav-enrol,
  body.edu .edu-nav-enrol::after,
  body.edu .edu-nav-enrol__spark { animation: none; }
}

/* ============================================================
   Layout helpers
   ============================================================ */

.edu-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.edu-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  color: var(--edu-yellow);
}
.edu-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--edu-yellow);
  box-shadow: 0 0 10px var(--edu-yellow);
}

.edu-headline {
  font-family: var(--edu-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: #fff;
  margin: 0;
}

.edu-headline em {
  font-style: normal;
  background: linear-gradient(120deg, #FFC93C 0%, #F97316 50%, #EC4899 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */

.edu-hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.edu-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.edu-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin: 18px 0 22px;
}

.edu-hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--edu-text-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

.edu-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.edu-btn {
  --bg: linear-gradient(135deg, #F97316 0%, #EC4899 50%, #8B5CF6 100%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--bg);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 18px 40px -16px rgba(236,72,153,0.7), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .25s var(--edu-ease), background-position .8s var(--edu-ease),
              box-shadow .25s var(--edu-ease);
}
.edu-btn:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 24px 56px -18px rgba(236,72,153,0.85), inset 0 1px 0 rgba(255,255,255,0.36);
}
.edu-btn--ghost {
  --bg: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.edu-btn--ghost:hover { background: rgba(255,255,255,0.12); }

.edu-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
  max-width: 520px;
}
.edu-stat {
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.edu-stat strong {
  display: block;
  font-family: var(--edu-display);
  font-size: 1.5rem;
  background: linear-gradient(120deg, var(--edu-yellow), var(--edu-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--edu-text-mute);
}

/* HERO ART — animated SVG circuit + floating chip */
.edu-hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.edu-hero__art svg { width: 100%; height: 100%; display: block; }

.edu-circuit-path {
  fill: none;
  stroke: url(#edu-stroke);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.55));
}
.edu-circuit-trace {
  fill: none;
  stroke: var(--edu-yellow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 220;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(255,201,60,0.9));
  animation: edu-trace 5.5s linear infinite;
}
.edu-circuit-trace.delay-2 { animation-delay: -1.8s; stroke: var(--edu-pink); filter: drop-shadow(0 0 6px rgba(236,72,153,0.9)); }
.edu-circuit-trace.delay-3 { animation-delay: -3.6s; stroke: var(--edu-teal); filter: drop-shadow(0 0 6px rgba(45,212,191,0.9)); }
@keyframes edu-trace {
  to { stroke-dashoffset: -234; }
}

.edu-chip {
  fill: #1A0F3A;
  stroke: var(--edu-yellow);
  stroke-width: 2;
  filter: drop-shadow(0 12px 28px rgba(255,201,60,0.4));
}
.edu-chip-pin { fill: var(--edu-yellow); }
.edu-chip-label {
  fill: var(--edu-yellow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.edu-led {
  fill: var(--edu-yellow);
  filter: drop-shadow(0 0 10px var(--edu-yellow));
  animation: edu-blink 2.4s var(--edu-ease) infinite;
}
.edu-led.led-pink { fill: var(--edu-pink); filter: drop-shadow(0 0 10px var(--edu-pink)); animation-delay: -0.8s; }
.edu-led.led-teal { fill: var(--edu-teal); filter: drop-shadow(0 0 10px var(--edu-teal)); animation-delay: -1.6s; }
@keyframes edu-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.edu-spark {
  fill: #fff;
  opacity: 0;
  animation: edu-sparkle 3s var(--edu-ease) infinite;
}
.edu-spark:nth-child(7n) { animation-delay: -1s; }
.edu-spark:nth-child(7n+1) { animation-delay: -2s; }
@keyframes edu-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%      { opacity: 0.9; transform: scale(1.2); }
}

/* ============================================================
   "FOR PARENTS" trust band
   ============================================================ */

.edu-trust {
  padding: 80px 0 40px;
}
.edu-trust__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.edu-trust h2 {
  font-family: var(--edu-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 14px 0 18px;
  color: #fff;
}
.edu-trust h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--edu-teal), var(--edu-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-trust p { color: var(--edu-text-soft); margin: 0 0 12px; }

.edu-trust__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.edu-trust__card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  transition: transform .25s var(--edu-ease), background .25s var(--edu-ease);
}
.edu-trust__card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.10); }
.edu-trust__card svg {
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--edu-orange), var(--edu-pink));
  margin-bottom: 12px;
  color: #fff;
}
.edu-trust__card h4 { color: #fff; margin: 0 0 6px; font-family: var(--edu-display); }
.edu-trust__card p { font-size: 0.92rem; margin: 0; color: var(--edu-text-soft); }

/* ============================================================
   COURSES
   ============================================================ */

.edu-courses {
  padding: 80px 0 100px;
}

.edu-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.edu-section-head h2 {
  font-family: var(--edu-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: 14px 0 14px;
  color: #fff;
}
.edu-section-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--edu-yellow), var(--edu-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-section-head p { color: var(--edu-text-soft); }

.edu-course {
  position: relative;
  border-radius: var(--edu-radius-lg);
  padding: 0;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--edu-shadow-lg);
  background: var(--edu-bg-1);
  border: 1px solid rgba(255,255,255,0.12);
}
.edu-course__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 460px;
  position: relative;
}
.edu-course--reverse .edu-course__inner { grid-template-columns: 1fr 1.05fr; }
.edu-course--reverse .edu-course__visual { order: -1; }

.edu-course__copy {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.edu-course__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--edu-ink);
  background: var(--edu-yellow);
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 18px;
}
.edu-course__title {
  font-family: var(--edu-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
}
.edu-course__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--edu-yellow), var(--edu-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-course__desc {
  color: var(--edu-text-soft);
  font-size: 1rem;
  margin: 0 0 22px;
}
.edu-course__desc strong { color: var(--edu-yellow); font-weight: 700; }

.edu-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.edu-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}
.edu-pill--alt { background: var(--edu-yellow); color: var(--edu-ink); border-color: transparent; }

.edu-course__cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--edu-ease), transform .25s var(--edu-ease);
}
.edu-course__cta:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.edu-course__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 360px;
  overflow: hidden;
}
.edu-course__visual::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--course-grad, var(--grad-electronics));
  opacity: 0.95;
  z-index: 0;
}
.edu-course__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%);
  z-index: 1;
}
.edu-course__visual > * { position: relative; z-index: 2; }

/* Photo-backed course visual — real kids doing the activity, with
   the course-tinted gradient as a colour-blend overlay so each card
   still feels distinct.  */
.edu-course__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.edu-course__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edu-course__visual--photo::before {
  /* swap the colour gradient for a subtle dark-to-transparent
     overlay so the photo stays readable but the course colour still
     tints the bottom for visual rhythm. */
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(26,15,58,0.55) 100%),
    var(--course-grad, var(--grad-electronics));
  background-blend-mode: multiply;
  opacity: 0.85;
}
.edu-course--electronics .edu-course__visual--photo::before { opacity: 0.65; }
.edu-course--iot         .edu-course__visual--photo::before { opacity: 0.55; }
.edu-course--robotics    .edu-course__visual--photo::before { opacity: 0.55; }
.edu-course--nocode      .edu-course__visual--photo::before { opacity: 0.55; }

/* floating sticker/badge on a photo card (optional accent) */
.edu-course__sticker {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--edu-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}
.edu-course__sticker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--edu-yellow);
  box-shadow: 0 0 8px var(--edu-yellow);
}

/* per-course backgrounds — pulled from the four brochure colour stories */
.edu-course--electronics .edu-course__visual { --course-grad: var(--grad-electronics); }
.edu-course--iot         .edu-course__visual { --course-grad: var(--grad-iot); }
.edu-course--robotics    .edu-course__visual { --course-grad: var(--grad-robotics); }
.edu-course--nocode      .edu-course__visual { --course-grad: var(--grad-nocode); }

/* ===== Visual #1 — animated electronics circuit ===== */
.edu-circuit-stage svg { width: min(420px, 100%); height: auto; }

/* ===== Visual #2 — IoT data flow ===== */
.edu-iot-stage {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.edu-iot-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.edu-iot-node {
  display: grid; place-items: center;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25), inset 0 0 0 4px rgba(255,255,255,0.4);
  color: var(--edu-ink);
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px;
}
.edu-iot-node svg { width: 28px; height: 28px; margin-bottom: 4px; color: var(--edu-violet); }
.edu-iot-wire {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  overflow: visible;
}
.edu-iot-wire::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: edu-iot-flow 2.2s linear infinite;
}
.edu-iot-row:nth-child(2) .edu-iot-wire::after { animation-delay: -0.7s; }
.edu-iot-row:nth-child(3) .edu-iot-wire::after { animation-delay: -1.4s; }
@keyframes edu-iot-flow {
  0%   { left: 0%;  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.edu-iot-cloud {
  margin-top: 8px;
  background: linear-gradient(135deg, #fff, #FFE7C2);
  color: var(--edu-ink);
  padding: 16px 22px;
  border-radius: 18px;
  font-weight: 800;
  display: inline-flex; gap: 10px; align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.edu-iot-cloud svg { width: 22px; height: 22px; color: var(--edu-orange); }

/* ===== Visual #3 — Robot ===== */
.edu-robot-stage {
  width: min(360px, 100%);
  position: relative;
  animation: edu-robot-bob 4.5s var(--edu-ease) infinite;
}
@keyframes edu-robot-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.edu-robot-stage svg { width: 100%; height: auto; }
.edu-robot-eye {
  fill: #FFC93C;
  filter: drop-shadow(0 0 6px #FFC93C);
  animation: edu-blink 2s var(--edu-ease) infinite;
}
.edu-robot-screen {
  fill: #1A0F3A;
}
.edu-robot-bar {
  fill: var(--edu-teal);
  animation: edu-data-bar 1.6s var(--edu-ease) infinite;
  transform-origin: left center;
}
.edu-robot-bar.b2 { fill: var(--edu-yellow); animation-delay: -0.3s; }
.edu-robot-bar.b3 { fill: var(--edu-pink);   animation-delay: -0.6s; }
@keyframes edu-data-bar {
  0%, 100% { transform: scaleX(0.4); }
  50%      { transform: scaleX(1); }
}
.edu-robot-antenna-tip {
  fill: var(--edu-pink);
  animation: edu-blink 1.2s linear infinite;
}

/* ===== Visual #4 — Code blocks + game ===== */
.edu-nocode-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}
.edu-blocks {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(26,15,58,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.edu-block {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
  opacity: 0;
  animation: edu-block-in .5s var(--edu-ease) forwards;
}
.edu-block.b-yellow { background: #F59E0B; animation-delay: 0.0s; }
.edu-block.b-pink   { background: #EC4899; animation-delay: 0.15s; }
.edu-block.b-purple { background: #8B5CF6; animation-delay: 0.30s; }
.edu-block.b-teal   { background: #14B8A6; animation-delay: 0.45s; }
.edu-block.b-orange { background: #F97316; animation-delay: 0.60s; }
.edu-block .arg {
  background: rgba(255,255,255,0.92);
  color: var(--edu-ink);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
}
@keyframes edu-block-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.edu-game {
  position: relative;
  height: 130px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #38BDF8 0%, #0EA5E9 60%, #16A34A 60%, #16A34A 100%);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.18);
}
.edu-game .sun {
  position: absolute; top: 12px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--edu-yellow);
  box-shadow: 0 0 18px var(--edu-yellow);
}
.edu-game .mountain {
  position: absolute; bottom: 50%; left: 0; right: 0;
  height: 0; border-style: solid;
  border-width: 0 60px 36px 60px;
  border-color: transparent transparent rgba(26,15,58,0.5) transparent;
  margin-left: 30px;
}
.edu-game .mountain.m2 { margin-left: 160px; border-width: 0 50px 30px 50px; }
.edu-game .player {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 22px; height: 28px;
  background: var(--edu-pink);
  border-radius: 4px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2),
              4px 0 0 rgba(0,0,0,0.15);
  animation: edu-player-run 4s linear infinite;
}
.edu-game .player::before {
  content: ""; position: absolute; top: -8px; left: 3px;
  width: 16px; height: 12px; background: #FFE0BD; border-radius: 3px;
}
.edu-game .coin {
  position: absolute; bottom: 70px; left: 60%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--edu-yellow);
  box-shadow: 0 0 10px var(--edu-yellow);
  animation: edu-coin-spin 1.8s ease-in-out infinite;
}
@keyframes edu-player-run {
  0%   { left: -8%; }
  100% { left: 108%; }
}
@keyframes edu-coin-spin {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50%      { transform: translateY(-6px) scaleX(0.4); }
}

/* ============================================================
   FORMAT / SCHEDULE
   ============================================================ */

.edu-format { padding: 80px 0; }
.edu-format__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.edu-format__card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.edu-format__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--edu-yellow);
  margin-bottom: 10px;
}
.edu-format__card h4 { margin: 0 0 8px; color:#fff; font-family: var(--edu-display); }
.edu-format__card p  { margin: 0; color: var(--edu-text-soft); font-size: 0.92rem; }

/* ============================================================
   ENROL FORM
   ============================================================ */

.edu-enrol {
  padding: 60px 0 120px;
}
.edu-enrol__inner {
  position: relative;
  border-radius: var(--edu-radius-lg);
  padding: 60px 50px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(56,189,248,0.18) 0%, transparent 50%),
    radial-gradient(120% 100% at 100% 100%, rgba(236,72,153,0.18) 0%, transparent 50%),
    rgba(26,15,58,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow: var(--edu-shadow-lg);
}
.edu-enrol__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.edu-enrol__head h2 {
  font-family: var(--edu-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 12px;
  color: #fff;
}
.edu-enrol__head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--edu-yellow), var(--edu-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-enrol__head p { color: var(--edu-text-soft); margin: 0; }

.edu-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.edu-field { display: flex; flex-direction: column; gap: 6px; }
.edu-field--full { grid-column: 1 / -1; }
.edu-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--edu-yellow);
}
.edu-field input,
.edu-field select,
.edu-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s var(--edu-ease), background .2s var(--edu-ease);
}
.edu-field input::placeholder,
.edu-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.edu-field input:focus,
.edu-field select:focus,
.edu-field textarea:focus {
  border-color: var(--edu-yellow);
  background: rgba(255,255,255,0.10);
}
.edu-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFC93C' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.edu-field select option { background: #1B1140; color: #fff; }

/* --- multi-select course chips --- */
.edu-course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.edu-course-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.edu-course-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.edu-course-chip__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .2s var(--edu-ease), border-color .2s var(--edu-ease),
              transform .2s var(--edu-ease), color .2s var(--edu-ease);
}
.edu-course-chip__label::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  transition: background .2s var(--edu-ease), border-color .2s var(--edu-ease);
  flex: none;
}
.edu-course-chip:hover .edu-course-chip__label {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}
.edu-course-chip input:focus-visible + .edu-course-chip__label {
  outline: 2px solid var(--edu-yellow);
  outline-offset: 3px;
}
.edu-course-chip input:checked + .edu-course-chip__label {
  background: linear-gradient(135deg, rgba(255,201,60,0.20), rgba(236,72,153,0.20));
  border-color: var(--edu-yellow);
  color: var(--edu-yellow);
}
.edu-course-chip input:checked + .edu-course-chip__label::before {
  background: var(--edu-yellow);
  border-color: var(--edu-yellow);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0F3A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- hero rhythm sub-line (under the lead paragraph) ---
   Block-level flex so its own top + bottom margins reliably
   space it from the lead paragraph above and the CTA row below. */
.edu-hero__rhythm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 26px;     /* gap above (small, lead already has 32px below) + gap below to CTAs */
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  color: var(--edu-text-soft);
}
.edu-hero__rhythm strong {
  color: var(--edu-yellow);
  font-weight: 700;
  font-family: var(--edu-display);
}
.edu-hero__rhythm > span[aria-hidden="true"] {
  color: rgba(255,255,255,0.35);
}

/* --- Course rhythm card: 4 weeks · 2 classes/week · 8 sessions --- */
.edu-rhythm {
  margin-top: 18px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,201,60,0.12) 0%, rgba(236,72,153,0.15) 60%, rgba(139,92,246,0.18) 100%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.edu-rhythm::before {
  /* soft accent glow behind the numbers */
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,201,60,0.20), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.edu-rhythm__cell {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.edu-rhythm__cell strong {
  font-family: var(--edu-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--edu-yellow) 0%, var(--edu-orange) 60%, var(--edu-pink) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.edu-rhythm__unit {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.edu-rhythm__sub {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--edu-text-mute);
  margin-top: 2px;
}
.edu-rhythm__divider {
  position: relative; z-index: 1;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25), transparent);
}

/* --- format strip (1-on-1 / online / 6+ / Australia) --- */
.edu-format-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.edu-format-strip__cell {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  text-align: center;
}
.edu-format-strip__icon {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--edu-orange), var(--edu-pink));
  color: #fff;
}
.edu-format-strip__cell strong {
  display: block;
  color: #fff;
  font-family: var(--edu-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.edu-format-strip__cell span {
  display: block;
  font-size: 0.78rem;
  color: var(--edu-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* --- "Real classes, real kids" photo gallery ---
   Uniform-aspect grid: 3 across on desktop, 2 on tablet, 1 on phone.
   Every tile is the same shape so the section reads as a clean gallery
   rather than a randomised mosaic. */
.edu-gallery {
  padding: 60px 0 40px;
}
.edu-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.edu-gallery__tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  aspect-ratio: 4 / 3;
  transition: transform .3s var(--edu-ease), box-shadow .3s var(--edu-ease);
}
.edu-gallery__tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--edu-shadow);
}
.edu-gallery__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--edu-ease);
}
.edu-gallery__tile:hover img { transform: scale(1.05); }
.edu-gallery__tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(26,15,58,0.85) 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--edu-ease), transform .25s var(--edu-ease);
  pointer-events: none;
}
.edu-gallery__tile:hover .edu-gallery__tile__caption,
.edu-gallery__tile:focus-within .edu-gallery__tile__caption {
  opacity: 1; transform: translateY(0);
}

/* --- Virtual-classes banner: tells parents the photos are from
   in-person workshops we've run, and the same experience is delivered
   live online with components shipped to their door. */
.edu-virtual-banner {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45,212,191,0.12) 0%, rgba(139,92,246,0.18) 100%),
    rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.edu-virtual-banner__icon {
  flex: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--edu-teal), var(--edu-blue));
  color: #fff;
}
.edu-virtual-banner__text { flex: 1; }
.edu-virtual-banner__text strong {
  display: block;
  color: #fff;
  font-family: var(--edu-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.edu-virtual-banner__text p {
  margin: 0;
  color: var(--edu-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.edu-form__submit {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 8px;
}
.edu-form__status {
  font-size: 0.92rem;
  color: var(--edu-text-soft);
  margin: 0;
}

/* ============================================================
   LAB NOTES — futuristic blog feed
   Pulls from /blog-feed.php (Airtable). Each card is category-themed:
   Math (yellow), Physics (cyan), Robotics (pink), Coding (purple),
   Networking (teal), Stories (orange).
   Without a cover image the card runs a category-themed CSS animation
   instead — so even un-imaged drafts look intentional.
   ============================================================ */

.edu-lab {
  padding: 80px 0 60px;
  position: relative;
}

.edu-lab__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
}
.edu-lab__filter {
  appearance: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--edu-text-soft);
  cursor: pointer;
  transition: background .25s var(--edu-ease), border-color .25s var(--edu-ease),
              color .25s var(--edu-ease), transform .25s var(--edu-ease);
}
.edu-lab__filter:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: translateY(-1px);
}
.edu-lab__filter.is-active {
  background: linear-gradient(135deg, var(--edu-yellow), var(--edu-orange));
  border-color: transparent;
  color: var(--edu-ink);
  box-shadow: 0 8px 24px -8px rgba(255,201,60,0.7);
}

.edu-lab__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.edu-lab__empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--edu-text-soft);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 22px;
}

/* --- the card itself --- */
.edu-lab-card {
  --accent: var(--edu-yellow);
  --accent-2: var(--edu-orange);
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;          /* default = 3-up */
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(13, 7, 38, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  transition: transform .35s var(--edu-ease), border-color .35s var(--edu-ease),
              box-shadow .35s var(--edu-ease);
}
/* Featured / first card = double-wide */
.edu-lab-card--feat {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 480px;
}
/* Neon gradient edge that fades in on hover (sweeps across) */
.edu-lab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--edu-ease);
  z-index: 1;
  pointer-events: none;
}
.edu-lab-card:hover::before { opacity: 0.85; }
.edu-lab-card:hover {
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.edu-lab-card.is-hidden { display: none; }

/* --- visual / cover area --- */
.edu-lab-card__visual {
  position: relative;
  flex: 0 0 220px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
    linear-gradient(135deg, #1B1140 0%, #0E1C3F 100%);
}
.edu-lab-card--feat .edu-lab-card__visual { flex-basis: 56%; }
.edu-lab-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--edu-ease);
}
.edu-lab-card:hover .edu-lab-card__visual img { transform: scale(1.06); }
.edu-lab-card__visual::after {
  /* Soft dark gradient at the bottom for text overlap safety */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 7, 38, 0.7) 100%);
  pointer-events: none;
}

/* --- header chips (category + reading time) overlay the visual --- */
.edu-lab-card__chips {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.edu-lab-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 7, 38, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.edu-lab-card__category .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.edu-lab-card__time {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 7, 38, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

/* --- body / text --- */
.edu-lab-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1 1 auto;
}
.edu-lab-card__title {
  font-family: var(--edu-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.edu-lab-card--feat .edu-lab-card__title {
  font-size: 1.65rem;
  line-height: 1.15;
}
.edu-lab-card__excerpt {
  font-size: 0.94rem;
  color: var(--edu-text-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.edu-lab-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--edu-text-mute);
  margin-top: 4px;
}
.edu-lab-card__arrow {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  transition: transform .25s var(--edu-ease), background .25s var(--edu-ease);
}
.edu-lab-card:hover .edu-lab-card__arrow {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* --- topic-specific accents (matches the Airtable Topic field) --- */
.edu-lab-card--awareness  { --accent: #38BDF8; --accent-2: #6D28D9; }
.edu-lab-card--electronics{ --accent: #FFC93C; --accent-2: #F97316; }
.edu-lab-card--iot        { --accent: #2DD4BF; --accent-2: #38BDF8; }
.edu-lab-card--robotics   { --accent: #EC4899; --accent-2: #F97316; }
.edu-lab-card--scratch    { --accent: #8B5CF6; --accent-2: #38BDF8; }
.edu-lab-card--parent     { --accent: #F97316; --accent-2: #EC4899; }
.edu-lab-card--australia  { --accent: #4ADE80; --accent-2: #38BDF8; }
.edu-lab-card--gift       { --accent: #EF4444; --accent-2: #FFC93C; }

/* ============================================================
   Topic-themed CSS animations (used when there's no cover image)
   These are intentionally subtle BACKGROUND layers — the card
   content (title, excerpt) is the foreground. Animations sit at
   ~0.45 opacity and avoid sharp colour blocks so they read as
   atmosphere, not illustration.
   ============================================================ */
.edu-lab-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.edu-lab-card:hover .edu-lab-anim { opacity: 0.75; transition: opacity .35s var(--edu-ease); }
.edu-lab-anim svg { width: 88%; height: 88%; max-width: none; }

/* faint dot grid base — adds depth to all anim variants */
.edu-lab-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* -------- AWARENESS — search bar pulses + thinking nodes -------- */
.edu-lab-anim--awareness svg .glass     { fill: none; stroke: rgba(56,189,248,0.7); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(56,189,248,0.45)); }
.edu-lab-anim--awareness svg .typed     { fill: rgba(255,255,255,0.65); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.edu-lab-anim--awareness svg .caret     { fill: #38BDF8; animation: edu-lab-cursor-blink 1s steps(2,end) infinite; }
.edu-lab-anim--awareness svg .dot       { fill: #6D28D9; opacity: 0.85; }
.edu-lab-anim--awareness svg .dot       { animation: edu-lab-pulse 2.2s var(--edu-ease) infinite; }
.edu-lab-anim--awareness svg .dot:nth-of-type(2) { animation-delay: -0.7s; }
.edu-lab-anim--awareness svg .dot:nth-of-type(3) { animation-delay: -1.4s; }

/* -------- ELECTRONICS — schematic circuit with flowing current -------- */
.edu-lab-anim--electronics svg .trace   { fill: none; stroke: rgba(255,201,60,0.45); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edu-lab-anim--electronics svg .charge  { fill: none; stroke: #FFC93C; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 220; filter: drop-shadow(0 0 6px #FFC93C); animation: edu-lab-charge-flow 4.5s linear infinite; }
.edu-lab-anim--electronics svg .led     { fill: #FFC93C; filter: drop-shadow(0 0 10px #FFC93C); animation: edu-lab-pulse 2s var(--edu-ease) infinite; }
.edu-lab-anim--electronics svg .resistor{ fill: rgba(13,7,38,0.85); stroke: rgba(255,201,60,0.6); stroke-width: 1.5; }
.edu-lab-anim--electronics svg .band    { fill: #F97316; }
.edu-lab-anim--electronics svg .band--2 { fill: #EC4899; }
.edu-lab-anim--electronics svg .chip    { fill: rgba(13,7,38,0.9); stroke: rgba(255,201,60,0.7); stroke-width: 1.5; }
.edu-lab-anim--electronics svg .pin     { fill: rgba(255,201,60,0.8); }
.edu-lab-anim--electronics svg .chip-label { fill: rgba(255,201,60,0.7); font-family: 'JetBrains Mono', monospace; font-size: 6px; text-anchor: middle; }

/* -------- IoT — sensor → router → cloud → phone, signal pulses -------- */
.edu-lab-anim--iot svg .device       { fill: rgba(13,7,38,0.85); stroke: rgba(45,212,191,0.6); stroke-width: 1.5; }
.edu-lab-anim--iot svg .device-glow  { fill: #2DD4BF; }
.edu-lab-anim--iot svg .wave         { fill: none; stroke: rgba(45,212,191,0.6); stroke-width: 1.5; stroke-linecap: round; animation: edu-lab-wave-fade 2.4s var(--edu-ease) infinite; }
.edu-lab-anim--iot svg .wave:nth-of-type(2) { animation-delay: -0.8s; }
.edu-lab-anim--iot svg .wave:nth-of-type(3) { animation-delay: -1.6s; }
.edu-lab-anim--iot svg .packet       { fill: #38BDF8; filter: drop-shadow(0 0 6px #38BDF8); offset-path: path('M 30 70 H 200'); animation: edu-lab-packet-move 3.2s linear infinite; }
.edu-lab-anim--iot svg .packet:nth-of-type(2) { animation-delay: -1.6s; }

/* -------- ROBOTICS — meshing gears with subtle servo arc -------- */
.edu-lab-anim--robotics svg .gear      { fill: none; stroke: rgba(236,72,153,0.55); stroke-width: 1.8; stroke-linejoin: round; transform-origin: center; animation: edu-lab-gear-spin 18s linear infinite; }
.edu-lab-anim--robotics svg .gear--rev { animation-direction: reverse; animation-duration: 12s; }
.edu-lab-anim--robotics svg .axis      { fill: rgba(255,255,255,0.8); }
.edu-lab-anim--robotics svg .arc       { fill: none; stroke: rgba(249,115,22,0.65); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 4; animation: edu-lab-arc-sweep 4s var(--edu-ease) infinite; }
.edu-lab-anim--robotics svg .joint     { fill: #EC4899; filter: drop-shadow(0 0 8px #EC4899); animation: edu-lab-pulse 2.4s var(--edu-ease) infinite; }

/* -------- SCRATCH & GAMES — authentic-style coloured code blocks -------- */
.edu-lab-anim--scratch {
  padding: 24px 28px;
  align-items: flex-start;
  justify-items: stretch;
}
.edu-lab-anim--scratch .stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 28px;
}
.edu-lab-anim--scratch .blk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,0.95);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  width: fit-content;
  max-width: 90%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(-12px);
  animation: edu-lab-blk-snap .55s var(--edu-ease) forwards;
}
.edu-lab-anim--scratch .blk--hat    { background: #F2A93B; border-top-left-radius: 14px; border-top-right-radius: 14px; }
.edu-lab-anim--scratch .blk--event  { background: #EC4899; }
.edu-lab-anim--scratch .blk--ctrl   { background: #8B5CF6; }
.edu-lab-anim--scratch .blk--move   { background: #14B8A6; }
.edu-lab-anim--scratch .blk--sound  { background: #F97316; }
.edu-lab-anim--scratch .blk:nth-child(1) { animation-delay: 0.0s; }
.edu-lab-anim--scratch .blk:nth-child(2) { animation-delay: 0.15s; }
.edu-lab-anim--scratch .blk:nth-child(3) { animation-delay: 0.30s; }
.edu-lab-anim--scratch .blk:nth-child(4) { animation-delay: 0.45s; }
.edu-lab-anim--scratch .blk:nth-child(5) { animation-delay: 0.60s; }
.edu-lab-anim--scratch .arg {
  background: rgba(255,255,255,0.92);
  color: var(--edu-ink);
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* -------- PARENT PAIN-POINTS — soft heart pulse + two figures -------- */
.edu-lab-anim--parent svg .figure     { fill: none; stroke: rgba(249,115,22,0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edu-lab-anim--parent svg .figure--sm { stroke: rgba(236,72,153,0.7); }
.edu-lab-anim--parent svg .heart      { fill: #EC4899; filter: drop-shadow(0 0 10px rgba(236,72,153,0.55)); animation: edu-lab-heart-beat 1.4s var(--edu-ease) infinite; transform-origin: center; transform-box: fill-box; }
.edu-lab-anim--parent svg .speech     { fill: rgba(255,255,255,0.08); stroke: rgba(249,115,22,0.45); stroke-width: 1.5; }
.edu-lab-anim--parent svg .speech-dot { fill: rgba(255,255,255,0.7); animation: edu-lab-pulse 1.4s var(--edu-ease) infinite; }
.edu-lab-anim--parent svg .speech-dot:nth-of-type(2) { animation-delay: -0.4s; }
.edu-lab-anim--parent svg .speech-dot:nth-of-type(3) { animation-delay: -0.8s; }

/* -------- AUSTRALIA — outline of AU with pulsing city dots -------- */
.edu-lab-anim--australia svg .map        { fill: rgba(74,222,128,0.10); stroke: rgba(74,222,128,0.7); stroke-width: 1.5; stroke-linejoin: round; }
.edu-lab-anim--australia svg .city       { fill: #4ADE80; filter: drop-shadow(0 0 6px #4ADE80); transform-origin: center; transform-box: fill-box; animation: edu-lab-pulse 2.4s var(--edu-ease) infinite; }
.edu-lab-anim--australia svg .city:nth-of-type(2) { animation-delay: -0.5s; }
.edu-lab-anim--australia svg .city:nth-of-type(3) { animation-delay: -1.0s; }
.edu-lab-anim--australia svg .city:nth-of-type(4) { animation-delay: -1.5s; }
.edu-lab-anim--australia svg .city:nth-of-type(5) { animation-delay: -2.0s; }
.edu-lab-anim--australia svg .label      { fill: rgba(255,255,255,0.55); font-family: 'JetBrains Mono', monospace; font-size: 5.5px; text-anchor: middle; }

/* -------- GIFT-GUIDE — wrapped box with sparkles -------- */
.edu-lab-anim--gift svg .box      { fill: rgba(239,68,68,0.18); stroke: rgba(239,68,68,0.7); stroke-width: 2; }
.edu-lab-anim--gift svg .ribbon   { stroke: #FFC93C; stroke-width: 3.5; fill: none; filter: drop-shadow(0 0 6px rgba(255,201,60,0.6)); }
.edu-lab-anim--gift svg .bow      { fill: rgba(255,201,60,0.85); }
.edu-lab-anim--gift svg .spark    { fill: #FFC93C; filter: drop-shadow(0 0 6px #FFC93C); transform-origin: center; transform-box: fill-box; animation: edu-lab-spark 2.4s var(--edu-ease) infinite; }
.edu-lab-anim--gift svg .spark:nth-of-type(2) { animation-delay: -0.6s; }
.edu-lab-anim--gift svg .spark:nth-of-type(3) { animation-delay: -1.2s; }
.edu-lab-anim--gift svg .spark:nth-of-type(4) { animation-delay: -1.8s; }

/* ============================================================
   Shared keyframes for the new anims
   ============================================================ */
@keyframes edu-lab-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.4; }
}
@keyframes edu-lab-charge-flow {
  to { stroke-dashoffset: -228; }
}
@keyframes edu-lab-wave-fade {
  0%   { opacity: 0; transform: scale(0.6); transform-origin: 60px 70px; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); transform-origin: 60px 70px; }
}
@keyframes edu-lab-packet-move {
  to { offset-distance: 100%; }
}
@keyframes edu-lab-gear-spin {
  to { transform: rotate(360deg); }
}
@keyframes edu-lab-arc-sweep {
  0%, 100% { stroke-dashoffset: 0; }
  50%      { stroke-dashoffset: -48; }
}
@keyframes edu-lab-blk-snap {
  to { opacity: 0.95; transform: translateX(0); }
}
@keyframes edu-lab-heart-beat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
  80%      { transform: scale(1); }
}
@keyframes edu-lab-spark {
  0%, 100% { transform: scale(0.6); opacity: 0; }
  50%      { transform: scale(1.2); opacity: 1; }
}
@keyframes edu-lab-cursor-blink {
  to { opacity: 0.15; }
}

/* ============================================================
   Article modal — clicking a card opens the full body inline
   ============================================================ */
.edu-article {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(8, 4, 24, 0.75);
  backdrop-filter: blur(16px);
  padding: 60px 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .25s var(--edu-ease);
}
.edu-article.is-open {
  display: flex;
  opacity: 1;
}
body.edu.is-modal-open { overflow: hidden; }

.edu-article__panel {
  position: relative;
  width: min(820px, 100%);
  background: linear-gradient(180deg, rgba(26,15,58,0.96) 0%, rgba(13,7,38,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.7);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .35s var(--edu-ease);
  margin-bottom: 60px;
}
.edu-article.is-open .edu-article__panel { transform: translateY(0); }

.edu-article__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(13,7,38,0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--edu-ease), transform .2s var(--edu-ease);
}
.edu-article__close:hover { background: rgba(236,72,153,0.25); transform: rotate(90deg); }

.edu-article__hero {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, var(--accent, #8B5CF6), var(--accent-2, #EC4899));
  overflow: hidden;
}
.edu-article__hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.edu-article__hero-content img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* When the hero shows an animation (no cover image), scale the SVG
   to fill comfortably and bias the animation toward the top so the
   bottom gradient + chips don't cut into the visual */
.edu-article__hero-content .edu-lab-anim { opacity: 0.85; }
.edu-article__hero-content .edu-lab-anim svg {
  width: 70%;
  height: 70%;
  max-width: 480px;
}
.edu-article__hero-content .edu-lab-anim--scratch { padding: 16px 24px; }
.edu-article__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(13,7,38,0.6) 50%, rgba(13,7,38,1) 100%);
  pointer-events: none;
}
.edu-article__chips {
  position: absolute;
  bottom: 16px; left: clamp(22px, 4vw, 42px); right: clamp(22px, 4vw, 42px);
  z-index: 3;
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}

.edu-article__body {
  padding: 36px clamp(22px, 4vw, 42px) 44px;
  color: var(--edu-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.edu-article__body > h1:first-child,
.edu-article__body > h2:first-child,
.edu-article__body > h3:first-child { margin-top: 0; }
/* Inline media in article body */
.edu-article__inline-img,
.edu-article__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6);
}
.edu-article__figure {
  margin: 22px 0;
}
.edu-article__figure figcaption {
  font-size: 0.84rem;
  color: var(--edu-text-mute);
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}
/* Gallery strip at top of article (multiple Cover attachments) */
.edu-article__gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px clamp(22px, 4vw, 42px) 0;
  margin: 0 0 -10px;
}
.edu-article__gallery img {
  flex: 0 0 auto;
  width: 100px; height: 70px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0.65;
  transition: opacity .2s var(--edu-ease), transform .2s var(--edu-ease);
  cursor: pointer;
}
.edu-article__gallery img:hover,
.edu-article__gallery img.is-active {
  opacity: 1;
  transform: scale(1.04);
  border-color: var(--accent, var(--edu-yellow));
}

/* Share row */
.edu-article__share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.edu-article__share span { color: var(--edu-text-mute); font-size: 0.86rem; }
.edu-article__share a, .edu-article__share button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--edu-ease), border-color .2s var(--edu-ease);
}
.edu-article__share a:hover, .edu-article__share button:hover {
  background: rgba(255,201,60,0.12);
  border-color: var(--edu-yellow);
  color: var(--edu-yellow);
}

.edu-article__body h1 { color: #fff; font-family: var(--edu-display); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0 0 18px; }
.edu-article__body h2 { color: #fff; font-family: var(--edu-display); font-size: 1.25rem; line-height: 1.3; margin: 28px 0 10px; }
.edu-article__body h3 { color: #fff; font-family: var(--edu-display); font-size: 1.05rem; margin: 22px 0 8px; }
.edu-article__body p  { margin: 0 0 14px; }
.edu-article__body ul, .edu-article__body ol { padding-left: 22px; margin: 0 0 14px; }
.edu-article__body li { margin-bottom: 4px; }
.edu-article__body strong { color: #fff; }
.edu-article__body em { color: var(--accent, var(--edu-yellow)); font-style: normal; }
.edu-article__body code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.edu-article__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--edu-text-mute);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.edu-article__cta {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  font-size: 0.92rem;
  color: var(--edu-text-mute);
}
.edu-article__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--edu-ink);
  background: linear-gradient(135deg, var(--edu-yellow), var(--edu-orange));
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 22px -10px rgba(255,201,60,0.55);
  transition: transform .2s var(--edu-ease), box-shadow .2s var(--edu-ease);
}
.edu-article__cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255,201,60,0.7);
}
.edu-article__cta a:first-of-type {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
}
.edu-article__cta a:first-of-type:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.34);
  box-shadow: none;
}

/* Make cards behave as buttons */
.edu-lab-card { cursor: pointer; }

/* ============================================================
   Lab responsive
   ============================================================ */
@media (max-width: 1024px) {
  .edu-lab__grid { grid-template-columns: repeat(4, 1fr); }
  .edu-lab-card { grid-column: span 2; }
  .edu-lab-card--feat { grid-column: span 4; grid-row: auto; min-height: 380px; }
  .edu-lab-card--feat .edu-lab-card__visual { flex-basis: 220px; }
  .edu-lab-card--feat .edu-lab-card__title { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .edu-lab { padding: 60px 0 40px; }
  .edu-lab__grid { grid-template-columns: 1fr; gap: 14px; }
  .edu-lab-card, .edu-lab-card--feat { grid-column: 1; min-height: 380px; }
  .edu-lab-card__visual { flex-basis: 180px; }
  .edu-lab-card__title { font-size: 1.1rem; }
  .edu-lab-card--feat .edu-lab-card__title { font-size: 1.3rem; }
  .edu-lab__filters { gap: 6px; margin-bottom: 24px; }
  .edu-lab__filter { font-size: 0.66rem; padding: 7px 11px; letter-spacing: 0.1em; }
}

/* ============================================================
   FAQ
   ============================================================ */

.edu-faq { padding: 40px 0 100px; }
.edu-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.edu-faq__item {
  padding: 22px 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
}
.edu-faq__item h4 { color:#fff; margin: 0 0 8px; font-family: var(--edu-display); }
.edu-faq__item p  { margin: 0; color: var(--edu-text-soft); font-size: 0.94rem; }

/* ============================================================
   FOOTER strip
   ============================================================ */

.edu-footer {
  padding: 28px 0 50px;
  text-align: center;
  color: var(--edu-text-mute);
  font-size: 0.86rem;
}
.edu-footer a { color: var(--edu-yellow); text-decoration: none; }
.edu-footer a:hover { text-decoration: underline; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.edu-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--edu-ease), transform .8s var(--edu-ease);
}
.edu-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Floating particles backdrop (JS-injected)
   ============================================================ */

.edu-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.edu-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: edu-float 18s linear infinite;
}
@keyframes edu-float {
  0%   { transform: translateY(110vh) scale(0.6); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-15vh) scale(1.1); opacity: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* tablet (landscape & up to ~1024px) */
@media (max-width: 1024px) {
  .edu-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .edu-virtual-banner { padding: 20px 22px; }
  .edu-rhythm { padding: 24px 18px; gap: 10px; }
  .edu-rhythm__cell strong { font-size: clamp(2.2rem, 5vw, 3rem); }
  .edu-rhythm__divider { height: 48px; }
}

/* tablet portrait & large mobile */
@media (max-width: 920px) {
  .edu-hero {
    padding: 92px 0 40px;
    min-height: 0;
    display: block;            /* drop flex+align-center; flex was centering content vertically on tall mobile viewports and creating big empty top/bottom gaps */
  }
  .edu-hero__grid,
  .edu-trust__grid { grid-template-columns: 1fr; gap: 32px; }
  .edu-trust__cards { grid-template-columns: 1fr 1fr; }
  .edu-course__inner,
  .edu-course--reverse .edu-course__inner { grid-template-columns: 1fr; }
  .edu-course--reverse .edu-course__visual { order: 0; }
  .edu-course__copy { padding: 36px 24px; }
  .edu-course__visual { padding: 0; min-height: 280px; }
  .edu-format__grid { grid-template-columns: 1fr 1fr; }
  .edu-format-strip { grid-template-columns: 1fr 1fr; }
  .edu-form,
  .edu-faq__grid { grid-template-columns: 1fr; }
  .edu-enrol__inner { padding: 36px 20px; }
  .edu-section-head { margin-bottom: 32px; }
  /* tighten trust section gap that creates a cavernous empty area
     between the hero image and 'Built by engineers' on mobile */
  .edu-trust { padding: 48px 0 24px; }
  .edu-courses { padding: 48px 0 60px; }
  .edu-hero__art { margin-top: 8px; }
  .edu-hero__art img { aspect-ratio: 4 / 3 !important; }
}

/* phones */
@media (max-width: 600px) {
  .edu-container { width: min(1180px, 94%); }
  .edu-hero { padding: 84px 0 32px; }
  .edu-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .edu-hero p.lead { font-size: 0.98rem; margin-bottom: 18px; }
  .edu-hero__cta { gap: 10px; }
  .edu-hero__stats { grid-template-columns: repeat(3, 1fr); max-width: 100%; margin-top: 24px; }
  .edu-hero__stats .edu-stat strong { font-size: 1.1rem; }
  .edu-hero__stats .edu-stat span   { font-size: 0.66rem; }
  .edu-trust__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .edu-trust__card { padding: 16px; }
  .edu-format__grid { grid-template-columns: 1fr; }
  .edu-course__title { font-size: 1.7rem; }
  .edu-course__copy { padding: 30px 20px; }
  .edu-course__visual { min-height: 220px; }
  .edu-course__sticker { top: 14px; left: 14px; font-size: 0.64rem; padding: 5px 10px; }
  .edu-enrol__head h2 { font-size: 1.7rem; }
  .edu-section-head h2 { font-size: 1.9rem; }
  .edu-form__submit { padding: 0 4px; }
  .edu-faq__item { padding: 18px 20px; }
  .edu-course-chip__label { padding: 9px 13px; font-size: 0.86rem; }
  .edu-math-bg { display: none !important; } /* reduce paint cost on small screens */
  .edu-particles { display: none !important; } /* same for the floating dots */
  .edu-gallery { padding: 40px 0 30px; }
  .edu-gallery__grid { grid-template-columns: 1fr; gap: 12px; }
  .edu-gallery__tile { aspect-ratio: 16 / 11; }
  .edu-gallery__tile__caption { opacity: 1; transform: translateY(0); padding: 10px 14px; font-size: 0.78rem; }
  .edu-virtual-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .edu-virtual-banner__icon { width: 44px; height: 44px; border-radius: 14px; }
  .edu-hero__rhythm { gap: 6px 12px; font-size: 0.84rem; padding: 9px 14px; }
  .edu-rhythm {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 18px;
  }
  .edu-rhythm__divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  }
  .edu-rhythm__cell strong { font-size: 2.4rem; }
}

/* very small phones */
@media (max-width: 380px) {
  .edu-hero__stats { grid-template-columns: 1fr 1fr; }
  .edu-hero__stats .edu-stat:last-child { grid-column: span 2; }
  .edu-pills { gap: 6px; }
  .edu-pill  { font-size: 0.72rem; padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
