/* ==========================================================================
   TESLA STUDIO × STUPID FUN SCIENCE — SHARED THEME FOR CLASSES & EVENT PAGES
   Unified with index.html: Road Rage + JetBrains Mono, wavy full-bleed
   parallax bands, handcrafted offset-shadow cards, frosted glass chips,
   zero image zoom, and dark-indigo Command Dock + Enquiry Modal.
   ========================================================================== */

:root {
  --sp-display: var(--studio-display, 'Road Rage', system-ui, sans-serif);
  --sp-body: var(--studio-body, 'JetBrains Mono', monospace);
  --sp-serif: Georgia, 'Times New Roman', serif;
  --sp-ink: #241d3c;
  --sp-muted: #524b6b;
  --sp-wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,38 C160,88 310,6 495,36 C680,66 835,92 1000,28 L1000,100 L0,100 Z'/%3E%3C/svg%3E");
  --sp-wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,26 C185,84 355,90 535,42 C715,-6 860,64 1000,34 L1000,100 L0,100 Z'/%3E%3C/svg%3E");
}

.sp-page-root {
  width: 100%;
  font-family: var(--sp-body);
  color: var(--sp-ink);
  overflow-x: clip;
  position: relative;
  background: #ffffff;
}

.sp-page-root * { box-sizing: border-box; }
.sp-page-root img { cursor: default !important; user-select: none; -webkit-user-drag: none; }

.sp-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   UPGRADED INNER PAGE HERO BANNERS (CLASSES & EVENT)
   ========================================================================== */
.sp-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(410px, 52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(132px, 14vw, 168px) 20px clamp(96px, 10vw, 128px);
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.sp-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sp-hero .sp-hero-plane {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, var(--band-scroll-y, 0px), 0) scale(1.03) !important;
  will-change: transform;
}

.sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sp-hero.is-classes .sp-hero-plane {
  background-image: url("workshops/real-builder-classroom.jpg");
  background-position: center 45%;
}

.sp-hero.is-classes::before {
  background:
    radial-gradient(circle at 18% 25%, rgba(25, 189, 197, 0.45), transparent 52%),
    radial-gradient(circle at 84% 72%, rgba(234, 61, 132, 0.46), transparent 52%),
    linear-gradient(180deg, rgba(24, 18, 52, 0.68) 0%, rgba(18, 92, 118, 0.72) 55%, rgba(24, 18, 52, 0.82) 100%);
}

.sp-hero.is-event .sp-hero-plane {
  background-image: url("school-activities/water-rocket-event.jpg");
  background-position: center 52%;
}

.sp-hero.is-event::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 175, 0, 0.44), transparent 52%),
    radial-gradient(circle at 82% 76%, rgba(234, 61, 132, 0.45), transparent 52%),
    linear-gradient(180deg, rgba(38, 18, 56, 0.68) 0%, rgba(176, 68, 18, 0.72) 56%, rgba(36, 16, 48, 0.82) 100%);
}

.sp-hero.is-about .sp-hero-plane {
  background-image: url("school-activities/classroom-group.jpg");
  background-position: center 46%;
}

.sp-hero.is-about::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(234, 61, 132, 0.48), transparent 52%),
    radial-gradient(circle at 82% 76%, rgba(25, 189, 197, 0.46), transparent 52%),
    linear-gradient(180deg, rgba(28, 18, 68, 0.72) 0%, rgba(88, 34, 152, 0.72) 54%, rgba(22, 14, 52, 0.84) 100%);
}

.sp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
}

.sp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffe082;
  font-family: var(--sp-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.sp-hero-inner h1 {
  font-family: var(--sp-display) !important;
  font-size: clamp(3.3rem, 7.2vw, 5.8rem) !important;
  line-height: 0.94 !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(10, 6, 26, 0.42);
}

.sp-hero-inner h1 span {
  color: #ffe082;
}

.sp-hero-divider {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto 16px;
}

.sp-hero-lead {
  font-family: var(--sp-body);
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.93);
  margin: 0 auto 24px;
  max-width: 64ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.sp-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sp-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(16, 13, 36, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: var(--sp-body);
  font-size: 0.74rem;
  font-weight: 600;
}

.sp-hero-chip i { color: #ffbe2e; }

/* ==========================================================================
   SECTION HEADINGS & WHITE / CREAM BANDS
   ========================================================================== */
.sp-band-white {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  background: #ffffff;
  padding: clamp(92px, 9vw, 124px) 0 clamp(64px, 7vw, 96px);
  -webkit-mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 72px, 100% calc(100% - 70px);
  -webkit-mask-position: top center, 0 70px;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  mask-size: 100% 72px, 100% calc(100% - 70px);
  mask-position: top center, 0 70px;
  mask-repeat: no-repeat, no-repeat;
}

.sp-band-cream {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  background: #ffffff;
  padding: clamp(104px, 10vw, 136px) 0 clamp(96px, 9vw, 130px);
  -webkit-mask-image: var(--sp-wave-b), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 72px, 100% calc(100% - 70px);
  -webkit-mask-position: top center, 0 70px;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: var(--sp-wave-b), linear-gradient(#000, #000);
  mask-size: 100% 72px, 100% calc(100% - 70px);
  mask-position: top center, 0 70px;
  mask-repeat: no-repeat, no-repeat;
}

.sp-sec-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(30px, 4vw, 48px);
}

.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--k-bg, #fceaf3);
  color: var(--k-fg, #c41c66);
  font-family: var(--sp-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.sp-sec-head h2 {
  font-family: var(--sp-display) !important;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem) !important;
  line-height: 0.96 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
}

.sp-sec-head h2 span { color: #ea3d84; }

.sp-sec-head p {
  font-family: var(--sp-body);
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--sp-muted);
  margin: 14px auto 0;
  max-width: 64ch;
}

/* ==========================================================================
   FULL-BLEED COLOR PARALLAX BANDS (MATCHING HOME PAGE STRIPS)
   ========================================================================== */
.sp-color-band {
  --band-c1: rgba(18, 152, 168, 0.84);
  --band-c2: rgba(12, 118, 138, 0.88);
  --band-c3: rgba(10, 88, 110, 0.92);
  position: relative;
  isolation: isolate;
  z-index: 3;
  margin-top: -72px;
  padding: clamp(114px, 11vw, 152px) 0 clamp(120px, 12vw, 156px);
  color: #ffffff;
  overflow: hidden;
  -webkit-mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 72px, 100% calc(100% - 70px);
  -webkit-mask-position: top center, 0 70px;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  mask-size: 100% 72px, 100% calc(100% - 70px);
  mask-position: top center, 0 70px;
  mask-repeat: no-repeat, no-repeat;
}

.sp-color-band.is-teal {
  --band-c1: rgba(18, 156, 172, 0.84);
  --band-c2: rgba(12, 124, 144, 0.88);
  --band-c3: rgba(8, 92, 112, 0.92);
}

.sp-color-band.is-violet {
  --band-c1: rgba(114, 58, 198, 0.85);
  --band-c2: rgba(88, 40, 168, 0.89);
  --band-c3: rgba(62, 24, 134, 0.93);
  z-index: 5;
}

.sp-color-band.is-pink {
  --band-c1: rgba(224, 42, 120, 0.84);
  --band-c2: rgba(192, 24, 98, 0.88);
  --band-c3: rgba(154, 16, 78, 0.92);
}

.sp-band-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sp-band-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  transform: translate3d(0, var(--band-scroll-y, 0px), 0) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero-plane,
  .sp-band-plane {
    height: 100% !important;
    transform: none !important;
  }
}

.sp-color-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--band-c1) 0%, var(--band-c2) 52%, var(--band-c3) 100%);
  pointer-events: none;
}

.sp-color-band .sp-sec-head h2 { color: #ffffff !important; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25); }
.sp-color-band .sp-sec-head h2 span { color: #ffe082; }
.sp-color-band .sp-sec-head p { color: rgba(255, 255, 255, 0.92); }
.sp-color-band .sp-kicker {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffe082;
}

/* ==========================================================================
   CLASSES PAGE: 4 AGE-GROUP CARDS
   ========================================================================== */
.sp-age-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sp-age-card {
  --ac: #ea3d84;
  --ac-soft: #fff0f6;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 20px 24px;
  background: #ffffff;
  border: 1.5px solid #ebe5f6;
  border-radius: 26px 12px 26px 12px;
  box-shadow: 7px 7px 0 var(--ac), 0 14px 32px rgba(36, 29, 60, 0.07);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.sp-age-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 11px 11px 0 var(--ac), 0 20px 42px rgba(36, 29, 60, 0.12);
}

.sp-age-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--ac-soft);
  border: 2px dashed var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px;
}

.sp-age-avatar img {
  height: 92px;
  width: auto;
  object-fit: contain;
}

.sp-age-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ac-soft);
  color: var(--ac);
  font-family: var(--sp-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sp-age-card h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.9rem !important;
  line-height: 1 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.sp-age-card p {
  font-family: var(--sp-body);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--sp-muted);
  margin: 0;
}

/* ==========================================================================
   CLASSES PAGE: MENTOR LAB SHOWCASE (POLAROID STACK + GLASS TRACKS)
   ========================================================================== */
.sp-mentor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.sp-polaroid-collage {
  position: relative;
  padding-bottom: 42px;
}

.sp-polaroid-main {
  background: #ffffff;
  padding: 10px 10px 36px;
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(8, 12, 32, 0.42);
  transform: rotate(-2deg);
  max-width: 420px;
}

.sp-polaroid-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.sp-polaroid-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 0;
  font-family: var(--sp-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sp-ink);
  text-transform: uppercase;
}

.sp-polaroid-cap b { color: #ea3d84; }

.sp-polaroid-mini {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 56%;
  max-width: 245px;
  background: #ffffff;
  padding: 8px 8px 30px;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(8, 12, 32, 0.45);
  transform: rotate(4deg);
}

.sp-polaroid-mini img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.sp-polaroid-mini span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  font-family: var(--sp-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sp-ink);
  text-transform: uppercase;
  text-align: center;
}

.sp-track-stack {
  display: grid;
  gap: 12px;
}

.sp-track-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(14, 18, 38, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sp-track-num {
  flex-shrink: 0;
  font-family: var(--sp-display);
  font-size: 1.55rem;
  line-height: 1;
  padding: 6px 12px 5px;
  border-radius: 10px 18px 10px 18px;
  background: #ffbe2e;
  color: #201736;
}

.sp-track-row h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.65rem !important;
  line-height: 1.04 !important;
  color: #ffffff !important;
  margin: 0 0 4px !important;
  text-transform: uppercase;
}

.sp-track-row p {
  font-family: var(--sp-body);
  font-size: 0.8rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.sp-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.sp-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #ffbe2e;
  color: #221734 !important;
  font-family: var(--sp-display);
  font-size: 1.42rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sp-btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34); }

.sp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
  font-family: var(--sp-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sp-btn-ghost:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }

/* ==========================================================================
   CLASSES PAGE: FILTERABLE SIGNATURE CLASS CARDS GRID
   ========================================================================== */
.sp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
}

.sp-filter-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  border: 1.5px solid #e2dcf0 !important;
  background: #ffffff !important;
  color: #322a4e !important;
  font-family: var(--sp-display) !important;
  font-size: 1.32rem !important;
  line-height: 1 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
}

.sp-filter-btn:hover {
  border-color: #ea3d84 !important;
  color: #ea3d84 !important;
  transform: translateY(-2px);
}

.sp-filter-btn.is-active {
  background: #241d3c !important;
  border-color: #241d3c !important;
  color: #ffe082 !important;
  box-shadow: 0 8px 20px rgba(36, 29, 60, 0.22);
}

.sp-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.sp-class-card {
  --cc-accent: #ea3d84;
  --cc-tint: #fff1f7;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #ebe5f5;
  border-radius: 26px 12px 26px 12px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--cc-accent), 0 16px 36px rgba(36, 29, 60, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.sp-class-card[hidden] { display: none !important; }

.sp-class-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 12px 12px 0 var(--cc-accent), 0 22px 46px rgba(36, 29, 60, 0.13);
}

.sp-class-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1d1734;
}

.sp-class-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center 35%);
}

.sp-class-age-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(24, 18, 44, 0.84);
  border: 1px solid rgba(255, 224, 130, 0.45);
  color: #ffe082;
  font-family: var(--sp-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-class-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.sp-class-cat {
  font-family: var(--sp-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cc-accent);
  margin-bottom: 5px;
}

.sp-class-body h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.95rem !important;
  line-height: 1.02 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 10px !important;
  text-transform: uppercase;
}

.sp-class-body p {
  font-family: var(--sp-body);
  font-size: 0.81rem;
  line-height: 1.66;
  color: var(--sp-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.sp-class-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.sp-class-highlights span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cc-tint);
  color: #362d54;
  font-family: var(--sp-body);
  font-size: 0.69rem;
  font-weight: 600;
}

.sp-class-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: var(--cc-accent) !important;
  color: #ffffff !important;
  font-family: var(--sp-display) !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 0 !important;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sp-class-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ==========================================================================
   4-STEP EXPERIENTIAL METHOD / EVENT TIMELINE CARDS
   ========================================================================== */
.sp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sp-step-card {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 22px 10px 22px 10px;
  background: rgba(16, 14, 38, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.sp-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px 6px 14px 6px;
  background: #ffbe2e;
  color: #201634;
  font-family: var(--sp-display);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.sp-step-card h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.65rem !important;
  line-height: 1.04 !important;
  color: #ffffff !important;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.sp-step-card p {
  font-family: var(--sp-body);
  font-size: 0.79rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* Light-surface Timeline Cards (for Event Page) */
.sp-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sp-timeline-card {
  --tl-col: #ea3d84;
  padding: 24px 20px 22px;
  background: #ffffff;
  border: 1.5px solid #eae3f4;
  border-top: 5px solid var(--tl-col);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(36, 29, 60, 0.07);
}

.sp-timeline-time {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f5f1fc;
  color: var(--tl-col);
  font-family: var(--sp-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.sp-timeline-card h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.7rem !important;
  line-height: 1.04 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.sp-timeline-card p {
  font-family: var(--sp-body);
  font-size: 0.78rem;
  line-height: 1.62;
  color: var(--sp-muted);
  margin: 0;
}

/* ==========================================================================
   EVENT PAGE: UPGRADED FLAGSHIP COMPETITION CARDS (#competition-cards)
   ========================================================================== */
.sp-event-comp-grid,
#competition-cards.sp-comp-upgraded {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(22px, 3vw, 32px) !important;
  margin-top: 0 !important;
}

#competition-cards.sp-comp-upgraded .competition-card {
  --accent: #ea3d84;
  border: 1.5px solid #ebe5f5 !important;
  border-radius: 28px 12px 28px 12px !important;
  background: #ffffff !important;
  box-shadow: 9px 9px 0 var(--accent), 0 18px 40px rgba(36, 29, 60, 0.09) !important;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

#competition-cards.sp-comp-upgraded .competition-card.flight {
  --accent: #139da8;
}

#competition-cards.sp-comp-upgraded .competition-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 13px 13px 0 var(--accent), 0 24px 48px rgba(36, 29, 60, 0.14) !important;
}

#competition-cards.sp-comp-upgraded .competition-card > img {
  height: clamp(210px, 22vw, 275px) !important;
  width: 100%;
  object-fit: cover;
}

#competition-cards.sp-comp-upgraded .competition-copy {
  padding: 24px 26px 26px !important;
}

#competition-cards.sp-comp-upgraded .competition-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f4effb;
  color: var(--accent) !important;
  font-family: var(--sp-body) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  margin: 0 0 12px !important;
}

#competition-cards.sp-comp-upgraded .competition-copy h3 {
  font-family: var(--sp-display) !important;
  font-size: clamp(2rem, 3.2vw, 2.55rem) !important;
  line-height: 0.98 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 10px !important;
}

#competition-cards.sp-comp-upgraded .competition-copy > p:not(.competition-place) {
  font-family: var(--sp-body);
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--sp-muted);
  margin: 0 0 18px !important;
}

.sp-comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.sp-comp-tags span {
  padding: 4px 11px;
  border-radius: 999px;
  background: #faf6ff;
  border: 1px solid #e6def5;
  color: #3c3259;
  font-family: var(--sp-body);
  font-size: 0.7rem;
  font-weight: 600;
}

/* EVENT FORMATS 4-CARD SHOWCASE INSIDE COLOR BAND */
.sp-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sp-format-card {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px 10px 22px 10px;
  background: rgba(16, 13, 38, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.sp-format-card:hover {
  transform: translateY(-4px);
  border-color: #ffe082;
}

.sp-format-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.sp-format-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-format-meta {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 190, 46, 0.2);
  color: #ffe082;
  font-family: var(--sp-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sp-format-card h3 {
  font-family: var(--sp-display) !important;
  font-size: 1.75rem !important;
  line-height: 1.02 !important;
  color: #ffffff !important;
  margin: 0 0 7px !important;
  text-transform: uppercase;
}

.sp-format-card p {
  font-family: var(--sp-body);
  font-size: 0.78rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Ensure school-story SVG fits cleanly inside our white/cream section */
.sp-story-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 36px;
}

/* Adjust shared Command Dock wrapper on Classes & Event pages */
.sp-dock-band {
  position: relative;
  z-index: 6;
  margin-top: -72px;
  background:
    radial-gradient(#d7ab774a 1.1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, #fffdf9 0%, #fff6e8 100%);
  padding: clamp(92px, 9vw, 124px) 0 clamp(134px, 12vw, 168px);
  -webkit-mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 72px, 100% calc(100% - 70px);
  -webkit-mask-position: top center, 0 70px;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: var(--sp-wave-a), linear-gradient(#000, #000);
  mask-size: 100% 72px, 100% calc(100% - 70px);
  mask-position: top center, 0 70px;
  mask-repeat: no-repeat, no-repeat;
}

/* ==========================================================================
   ABOUT PAGE — PILLAR ICON BADGES, MENTOR SHOWCASE & PARTNER COLLAGE
   ========================================================================== */
.sp-pillar-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ac, #ea3d84), var(--ac2, #ff8c42));
  box-shadow: 0 10px 24px rgba(24, 16, 54, 0.16);
}

.sp-about-mentor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.sp-mentor-card {
  position: relative;
  padding: 14px 14px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 56px rgba(8, 5, 26, 0.34);
}

.sp-mentor-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #241d42;
}

.sp-mentor-photo-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.sp-mentor-exp-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 14, 42, 0.88);
  border: 1px solid rgba(255, 209, 102, 0.55);
  color: #ffe082;
  font-size: 0.78rem;
  font-weight: 700;
}

.sp-mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sp-mentor-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.sp-mentor-copy {
  color: #ffffff;
}

.sp-mentor-copy .sp-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe082;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.sp-mentor-copy h2 {
  margin: 0 0 16px;
  font-family: var(--studio-display, 'Road Rage', system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  color: #ffffff;
}

.sp-mentor-quote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 16px;
  border-left: 4px solid #ffbe2e;
  background: rgba(15, 11, 34, 0.44);
  color: #ffe49c;
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  font-weight: 700;
  line-height: 1.48;
}

.sp-mentor-copy p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(244, 240, 255, 0.92);
}

.sp-about-partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
}

.sp-partner-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3.8vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(234, 61, 132, 0.34), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(25, 189, 197, 0.28), transparent 48%),
    linear-gradient(155deg, #211744 0%, #171232 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(24, 16, 54, 0.18);
}

.sp-partner-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.sp-partner-top img {
  width: 88px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.sp-partner-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 190, 46, 0.18);
  color: #ffd97d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-partner-top h3 {
  margin: 0;
  font-family: var(--studio-display, 'Road Rage', system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  color: #ffffff;
}

.sp-partner-spotlight p {
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(240, 236, 255, 0.9);
}

.sp-partner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.sp-partner-stat {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.sp-partner-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffe082;
  line-height: 1.2;
}

.sp-partner-stat span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: rgba(235, 230, 255, 0.84);
}

.sp-campus-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sp-collage-card {
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid rgba(36, 29, 60, 0.09);
  box-shadow: 0 14px 32px rgba(24, 16, 54, 0.09);
  display: flex;
  flex-direction: column;
}

.sp-collage-card.is-wide {
  grid-column: span 2;
}

.sp-collage-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.sp-collage-card.is-wide img {
  aspect-ratio: 21 / 10;
}

.sp-collage-card figcaption {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #261e44;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-collage-card figcaption i {
  color: #ea3d84;
}

@media (max-width: 900px) {
  .sp-about-mentor-grid,
  .sp-about-partner-grid {
    grid-template-columns: 1fr;
  }
  .sp-mentor-card {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .sp-campus-collage {
    grid-template-columns: 1fr;
  }
  .sp-collage-card.is-wide {
    grid-column: span 1;
  }
  .sp-collage-card.is-wide img {
    aspect-ratio: 16 / 10;
  }
  .sp-partner-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1020px) {
  .sp-age-grid,
  .sp-steps-grid,
  .sp-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-mentor-grid,
  .sp-formats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sp-age-grid,
  .sp-class-grid,
  .sp-steps-grid,
  .sp-timeline-grid,
  #competition-cards.sp-comp-upgraded {
    grid-template-columns: 1fr !important;
  }
  .sp-format-card {
    grid-template-columns: 1fr;
  }
  .sp-polaroid-mini {
    position: relative;
    right: auto;
    margin: -34px 0 0 auto;
    width: 72%;
  }
}
