/* ================================================================
   SCHOOL CHAMELEONS — GLOBAL ACTION LIBRARY
   Premium Redesign | assets/css/style.css
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0F172A;
  --ink-2:      #1E293B;
  --body-txt:   #475569;
  --muted:      #94A3B8;
  --faint:      #CBD5E1;

  --blue:       #2563EB;
  --blue-dk:    #1D4ED8;
  --blue-dkr:   #1E3A8A;
  --blue-lt:    #EFF6FF;
  --blue-lt2:   #DBEAFE;

  --green:      #059669;
  --green-dk:   #047857;
  --green-lt:   #ECFDF5;

  --amber:      #D97706;
  --amber-lt:   #FEF3C7;

  --rose:       #E11D48;
  --rose-lt:    #FFE4E6;

  --navy:       #050C1A;
  --navy-2:     #0B1530;
  --navy-3:     #0F2044;

  --surface:    #FFFFFF;
  --surface-2:  #F8FAFC;
  --surface-3:  #F1F5F9;
  --surface-4:  #E8EEF6;

  --border:     #E2E8F0;
  --border-2:   #CBD5E1;

  /* Semantic */
  --primary:        var(--blue);
  --primary-dark:   var(--blue-dk);
  --secondary:      var(--green);
  --accent:         var(--amber);

  /* Gradients */
  --g-brand:    linear-gradient(135deg, #2563EB 0%, #059669 100%);
  --g-brand-v:  linear-gradient(180deg, #2563EB 0%, #059669 100%);
  --g-hero:     linear-gradient(135deg, #050C1A 0%, #0B1F60 55%, #063A25 100%);
  --g-hero-r:   radial-gradient(ellipse 80% 70% at 50% -10%, rgba(37,99,235,.45) 0%, transparent 70%);
  --g-mesh-1:   radial-gradient(ellipse 60% 55% at 80% 20%, rgba(5,150,105,.18) 0%, transparent 70%);
  --g-card:     linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --g-navy:     linear-gradient(160deg, #050C1A 0%, #0F2044 100%);

  /* Shadows */
  --s-xs:  0 1px 3px rgba(15,23,42,.06);
  --s-sm:  0 2px 8px rgba(15,23,42,.08),  0 1px 3px rgba(15,23,42,.04);
  --s-md:  0 4px 20px rgba(15,23,42,.09),  0 2px 6px rgba(15,23,42,.04);
  --s-lg:  0 12px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);
  --s-xl:  0 24px 80px rgba(15,23,42,.12), 0 8px 24px rgba(15,23,42,.06);
  --s-blue:  0 8px 32px rgba(37,99,235,.28);
  --s-green: 0 8px 32px rgba(5,150,105,.25);
  --s-card-hover: 0 20px 60px rgba(37,99,235,.14), 0 4px 16px rgba(15,23,42,.08);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-pill: 9999px;

  /* Spacing system (8pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Section rhythm */
  --section-y:    clamp(72px, 10vw, 128px);
  --section-y-sm: clamp(48px, 6vw, 80px);

  /* Container */
  --cx: clamp(20px, 5vw, 60px);
  --cw: 1280px;

  /* Type */
  --font: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t1: 150ms var(--ease);
  --t2: 250ms var(--ease);
  --t3: 400ms var(--ease);
  --t-spring: 500ms var(--ease-spring);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* body's overflow-x:hidden alone doesn't stop iOS Safari's elastic horizontal
     rubber-band scroll — it checks html's scrollable bounds too. */
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-txt);
  background: var(--surface);
  overflow-x: hidden;
  position: relative;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul,ol { list-style: none; }
input,textarea,select {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface-3); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* Selection */
::selection { background: var(--blue-lt2); color: var(--blue-dk); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────────── */
.display {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
}
h1,.h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2,.h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h3,.h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h4,.h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h5,.h5 { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
h6,.h6 { font-size: .875rem; font-weight: 500; line-height: 1.5; color: var(--ink); }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-white-gradient {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--body-txt); }
.caption { font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 2px;
  background: var(--g-brand); border-radius: 99px;
  flex-shrink: 0;
}

/* ── 4. LAYOUT HELPERS ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--cw) + var(--cx) * 2);
  margin-inline: auto;
  padding-inline: var(--cx);
}
.container-sm { max-width: calc(900px + var(--cx) * 2); margin-inline: auto; padding-inline: var(--cx); }
.container-xs { max-width: calc(680px + var(--cx) * 2); margin-inline: auto; padding-inline: var(--cx); }

.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ── 5. NAVIGATION ────────────────────────────────────────────── */
.site-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 1000;
  height: 72px;
  display: flex; align-items: center;
  transition: background var(--t2), box-shadow var(--t2), border-color var(--t2);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
}
.site-nav.scrolled .nav-link { color: var(--body-txt); }
.site-nav.scrolled .nav-link:hover { color: var(--blue); }
.site-nav.scrolled .nav-logo-name { color: var(--ink); }
.site-nav.scrolled .nav-logo-sub { color: var(--muted); }
.site-nav.scrolled .nav-logo-mark { content: url('../images/logo-black.png'); }
.nav-inner {
  width: 100%;
  max-width: calc(var(--cw) + var(--cx) * 2);
  margin-inline: auto;
  padding-inline: var(--cx);
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo-mark {
  height: 50px; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-size: .9375rem; font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  transition: color var(--t2);
}
.nav-logo-sub {
  font-size: .6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  transition: color var(--t2);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-inline-start: auto;
}
.nav-link {
  padding: 7px 13px;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: var(--r-sm);
  transition: color var(--t1), background var(--t1);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,.12);
}
.nav-link.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { transition: transform var(--t2); }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-xl);
  padding: 6px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transition: opacity var(--t2), transform var(--t2), visibility var(--t2);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: .875rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
}
.nav-dropdown-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-item .di-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: var(--surface-3);
}
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-search-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: all var(--t1);
}
.nav-search-btn:hover { background: rgba(255,255,255,.18); color: white; border-color: rgba(255,255,255,.35); }
.site-nav.scrolled .nav-search-btn {
  background: var(--surface-2); border-color: var(--border);
  color: var(--body-txt);
}
.site-nav.scrolled .nav-search-btn:hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }
.btn-nav-cta {
  padding: 8px 18px;
  background: var(--g-brand);
  color: white !important;
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--s-blue);
  transition: transform var(--t1), box-shadow var(--t1), filter var(--t1);
  white-space: nowrap;
}
.btn-nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 40px rgba(37,99,235,.35); }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: var(--r-sm);
  margin-inline-start: auto;
  transition: background var(--t1);
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.site-nav.scrolled .nav-hamburger:hover { background: var(--surface-2); }
.nav-hamburger span {
  display: block; height: 2px; border-radius: 99px;
  background: white; transition: all var(--t2);
}
.site-nav.scrolled .nav-hamburger span { background: var(--ink); }
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: rgba(5,12,26,.6);
  backdrop-filter: blur(8px);
  z-index: 1050;
}
.nav-mobile-logo { height: 50px; }
.nav-mobile-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 90%;
  background: var(--surface);
  box-shadow: var(--s-xl);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--t3);
}
.nav-mobile-header {
  height: 72px;
  margin: -24px -24px 16px;
  padding-inline: var(--cx);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile.open { display: block; }
.nav-mobile.open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-size: .9375rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-mobile-link.active { color: var(--blue); font-weight: 700; }

/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  font-size: .9375rem; font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--t2);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--g-brand);
  color: white;
  box-shadow: var(--s-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(37,99,235,.35); filter: brightness(1.06); color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border-2);
  box-shadow: var(--s-sm);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-lt); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue-lt); box-shadow: 0 0 0 3px var(--blue-lt2); }

.btn-white {
  background: white; color: var(--ink);
  box-shadow: 0 4px 20px rgba(255,255,255,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255,255,255,.35); color: var(--blue); }
.btn-white:active { transform: translateY(0); box-shadow: 0 4px 20px rgba(255,255,255,.15); color: var(--ink); }

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.btn-ghost-white:active { transform: translateY(0); background: rgba(255,255,255,.1); }

.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--r-md); }
.btn-icon-sm { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); }

/* ── 7. HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--g-hero);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: 72px;
}

/* Animated mesh blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
  opacity: .5;
}
.hero-blob-1 {
  width: 700px; height: 700px;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(37,99,235,.5) 0%, transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}
.hero-blob-2 {
  width: 600px; height: 600px;
  top: 10%; right: -5%;
  background: radial-gradient(circle, rgba(5,150,105,.45) 0%, transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
}
.hero-blob-3 {
  width: 400px; height: 400px;
  bottom: -10%; left: 35%;
  background: radial-gradient(circle, rgba(217,119,6,.3) 0%, transparent 70%);
  animation: blobFloat3 16s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.08); }
  66%  { transform: translate(-20px,40px) scale(.94); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-50px,30px) scale(1.1); }
  70%  { transform: translate(30px,-40px) scale(.92); }
}
@keyframes blobFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px,-50px) scale(1.12); }
}

/* Grid overlay for texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1v38h38V1H1z' fill='%23ffffff' fill-opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: clamp(60px, 8vh, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-16);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 24px;
}
.hero-title .highlight {
  position: relative;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-search-wrap {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 10px;
  max-width: 560px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  transition: border-color var(--t2), box-shadow var(--t2);
}
.hero-search-wrap:focus-within {
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.hero-search-icon { color: rgba(255,255,255,.5); flex-shrink: 0; }
.hero-search-input {
  flex: 1; min-width: 0;
  font-size: .9375rem;
  color: white; background: transparent;
}
.hero-search-input::placeholder { color: rgba(255,255,255,.4); }
.hero-search-btn {
  background: var(--g-brand);
  color: white;
  border: none; border-radius: var(--r-xl);
  padding: 11px 22px;
  font-size: .875rem; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
  transition: filter var(--t1), transform var(--t1);
}
.hero-search-btn:hover { filter: brightness(1.1); transform: scale(1.02); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 340px;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  transition: background var(--t2);
}
.hero-stat:hover { background: rgba(255,255,255,.12); }
.hero-stat-num {
  display: block;
  font-size: 1.625rem; font-weight: 900;
  color: #FCD34D;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: .6875rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
}

/* Hero right: Globe visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-globe-wrap {
  position: relative;
  width: 360px; height: 360px;
  flex-shrink: 0;
}
.hero-globe-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  animation: ringRotate 20s linear infinite;
}
.hero-globe-ring:nth-child(2) {
  inset: 20px;
  border-color: rgba(255,255,255,.08);
  animation-duration: 30s;
  animation-direction: reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.hero-globe-core {
  position: absolute; inset: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.15), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: inset 0 0 60px rgba(37,99,235,.3), 0 0 60px rgba(5,150,105,.2);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.sdg-orbit-item {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform var(--t-spring);
}
.sdg-orbit-item:hover { transform: scale(1.2) !important; z-index: 10; }
.sdi-1 { top: 4%;  left: 50%; transform: translateX(-50%); background: #e5243b; }
.sdi-2 { top: 22%; right: 8%; background: #DDA63A; }
.sdi-3 { top: 55%; right: 0%;  background: #4C9F38; }
.sdi-4 { bottom: 4%; left: 50%; transform: translateX(-50%); background: #C5192D; }
.sdi-5 { top: 55%; left: 0%; background: #FF3A21; }
.sdi-6 { top: 22%; left: 8%; background: #26BDE2; }

/* ── 8. STATS STRIP ───────────────────────────────────────────── */
.stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}
.stats-strip-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 900px; margin-inline: auto;
}
.stat-item {
  flex: 1; min-width: 140px;
  text-align: center;
  padding: 12px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2rem; font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .75rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin-top: 4px;
}
.stat-icon { font-size: 1.25rem; margin-bottom: 6px; display: block; }

/* ── 9. SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-header.left { text-align: left; margin-inline: 0; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 14px; }
.section-header .lead { margin-bottom: 0; }

/* ── 10. SDG CARDS ────────────────────────────────────────────── */

/* SDG color + shadow tokens */
.sdg-c1  { --sdg-clr:#E5243B; --sdg-lt:#FDE8EA; --sdg-sh:rgba(229,36,59,.30); }
.sdg-c2  { --sdg-clr:#DDA63A; --sdg-lt:#FDF4E3; --sdg-sh:rgba(221,166,58,.30); }
.sdg-c3  { --sdg-clr:#4C9F38; --sdg-lt:#E8F6E8; --sdg-sh:rgba(76,159,56,.30); }
.sdg-c4  { --sdg-clr:#C5192D; --sdg-lt:#FEEEE6; --sdg-sh:rgba(197,25,45,.30); }
.sdg-c5  { --sdg-clr:#FF3A21; --sdg-lt:#FEE9E5; --sdg-sh:rgba(255,58,33,.30); }
.sdg-c6  { --sdg-clr:#26BDE2; --sdg-lt:#E4F5FB; --sdg-sh:rgba(38,189,226,.30); }
.sdg-c7  { --sdg-clr:#FCC30B; --sdg-lt:#FFF8E1; --sdg-sh:rgba(252,195,11,.32); }
.sdg-c8  { --sdg-clr:#A21942; --sdg-lt:#FCE4EC; --sdg-sh:rgba(162,25,66,.30); }
.sdg-c9  { --sdg-clr:#FD6925; --sdg-lt:#FEE9DA; --sdg-sh:rgba(253,105,37,.30); }
.sdg-c10 { --sdg-clr:#DD1367; --sdg-lt:#F5E5F8; --sdg-sh:rgba(221,19,103,.30); }
.sdg-c11 { --sdg-clr:#FD9D24; --sdg-lt:#FEF3E3; --sdg-sh:rgba(253,157,36,.30); }
.sdg-c12 { --sdg-clr:#BF8B2E; --sdg-lt:#FEF2DA; --sdg-sh:rgba(191,139,46,.30); }
.sdg-c13 { --sdg-clr:#3F7E44; --sdg-lt:#E4EDE4; --sdg-sh:rgba(63,126,68,.30); }
.sdg-c14 { --sdg-clr:#0A97D9; --sdg-lt:#E3F3FB; --sdg-sh:rgba(10,151,217,.30); }
.sdg-c15 { --sdg-clr:#56C02B; --sdg-lt:#E8F7E2; --sdg-sh:rgba(86,192,43,.30); }
.sdg-c16 { --sdg-clr:#00689D; --sdg-lt:#E3EDF7; --sdg-sh:rgba(0,104,157,.30); }
.sdg-c17 { --sdg-clr:#19486A; --sdg-lt:#E4EBF2; --sdg-sh:rgba(25,72,106,.30); }

/* Also keep old text/bg fallback for non-card uses (badges etc.) */
.sdg-c1  { color: #C01B2E; }
.sdg-c2  { color: #B07A1A; }
.sdg-c3  { color: #2E7A23; }
.sdg-c4  { color: #A0160E; }
.sdg-c5  { color: #C4260F; }
.sdg-c6  { color: #147BA6; }
.sdg-c7  { color: #A07005; }
.sdg-c8  { color: #7A0E2E; }
.sdg-c9  { color: #C44806; }
.sdg-c10 { color: #A00B5A; }
.sdg-c11 { color: #A4620D; }
.sdg-c12 { color: #8A5C10; }
.sdg-c13 { color: #255022; }
.sdg-c14 { color: #075680; }
.sdg-c15 { color: #2A7A0E; }
.sdg-c16 { color: #053E6E; }
.sdg-c17 { color: #0E2D4A; }

.sdg-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.sdg-card {
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 175px;
  background: var(--sdg-lt, #f5f5f5);
  border: 1.5px solid rgba(0,0,0,.05);
  transition: transform .36s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .25s ease;
  cursor: pointer;
  isolation: isolate;
}

/* Shine sweep on hover */
.sdg-card::before {
  content: '';
  position: absolute;
  top: 0; left: -120%; width: 65%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transition: left .55s ease;
  pointer-events: none;
  z-index: 3;
}

/* Full color fill layer */
.sdg-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--sdg-clr, currentColor);
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 0;
  border-radius: inherit;
}

.sdg-card > * { position: relative; z-index: 1; }

/* Watermark number */
.sdg-wm {
  position: absolute;
  bottom: -18px; right: -2px;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: var(--sdg-clr);
  opacity: .1;
  transition: opacity .3s, transform .4s ease;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -.05em;
}

.sdg-card-icon {
  font-size: 1.6rem;
  color: var(--sdg-clr);
  margin-bottom: .5rem;
  display: block;
  transition: color .25s, transform .4s cubic-bezier(.34,1.56,.64,1);
}

.sdg-num {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--sdg-clr);
  opacity: .72; display: block; margin-bottom: 4px;
  transition: color .25s, opacity .25s;
}

.sdg-name {
  font-size: .8rem; font-weight: 700; line-height: 1.3;
  color: var(--ink); display: block; flex: 1;
  transition: color .25s;
}

.sdg-count {
  font-size: .68rem; color: var(--muted);
  display: block; margin-top: .5rem;
  transition: color .25s, opacity .25s;
}

.sdg-arrow {
  position: absolute; bottom: .8rem; right: .8rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--sdg-clr);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  opacity: 0;
  transform: scale(.6) translateY(6px);
  transition: all .32s cubic-bezier(.34,1.56,.64,1);
  z-index: 3;
}

/* ── Hover ── */
.sdg-card:hover {
  transform: translateY(-9px) scale(1.025);
  box-shadow: 0 22px 52px -10px var(--sdg-sh, rgba(0,0,0,.2));
  border-color: var(--sdg-clr);
}
.sdg-card:hover::after  { opacity: 1; }
.sdg-card:hover::before { left: 120%; }
.sdg-card:hover .sdg-wm { opacity: .2; transform: scale(1.06) translateY(-6px); }
.sdg-card:hover .sdg-card-icon { color: rgba(255,255,255,.95); transform: scale(1.14) translateY(-2px); }
.sdg-card:hover .sdg-num  { color: rgba(255,255,255,.75); opacity: 1; }
.sdg-card:hover .sdg-name { color: #fff; }
.sdg-card:hover .sdg-count{ color: rgba(255,255,255,.72); }
.sdg-card:hover .sdg-arrow{ opacity: 1; transform: scale(1) translateY(0); }
.sdg-card:active { transform: translateY(-4px) scale(.985); }

/* ── 11. CARDS ────────────────────────────────────────────────── */
/* Story Card */
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  height: 100%;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s-card-hover);
  border-color: rgba(37,99,235,.2);
}
.story-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--g-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.story-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4) 100%);
  opacity: 0;
  transition: opacity var(--t2);
}
.story-card:hover .story-card-thumb-overlay { opacity: 1; }
.story-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.story-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.story-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.45;
  flex: 1; margin-bottom: 10px;
}
.story-card-title a { color: inherit; }
.story-card-title a:hover { color: var(--blue); }
.story-card-excerpt { font-size: .875rem; color: var(--body-txt); line-height: 1.65; flex: 1; }
.story-card-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
  margin-top: 14px;
}
.meta-pill { display: flex; align-items: center; gap: 4px; }
.story-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

/* Action Card */
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  position: relative; overflow: hidden;
  height: 100%;
}
.action-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--g-brand);
}
.action-card:hover { transform: translateY(-5px); box-shadow: var(--s-card-hover); border-color: rgba(37,99,235,.18); }
.action-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.action-card-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.4; flex: 1; margin: 8px 0; }
.action-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-block: 14px;
}
.action-stat {
  text-align: center; padding: 10px 6px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.action-stat-val { font-size: .9375rem; font-weight: 800; color: var(--blue); display: block; }
.action-stat-lbl { font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-top: 2px; }

/* Blog Card */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t2), box-shadow var(--t2);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--s-card-hover); }
.blog-card-img {
  width: 100%; aspect-ratio: 3 / 2;
  background: var(--g-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  overflow: hidden; position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-card-body { padding: 22px; }
.blog-card-tag { font-size: .72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.blog-card-title { font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 8px; }
.blog-card-excerpt { font-size: .875rem; color: var(--body-txt); line-height: 1.65; }
.blog-card-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* Event Card */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  transition: transform var(--t2), box-shadow var(--t2);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--s-lg); }
.event-date-col {
  background: var(--g-brand);
  color: white; padding: 16px 14px;
  text-align: center; min-width: 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-day { font-size: 1.75rem; font-weight: 900; line-height: 1; display: block; }
.event-month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.event-body { padding: 14px 16px; flex: 1; }
.event-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 4px; }
.event-title { font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.event-meta { font-size: .78rem; color: var(--muted); }
.event-action { padding: 14px; display: flex; align-items: center; }

/* Testimonial Card */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  overflow: hidden;
}
.testi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g-brand);
  border-radius: 0 0 2px 2px;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--s-lg); }
.testi-quote-mark {
  position: absolute; top: 16px; right: 22px;
  font-size: 5rem; line-height: 1;
  color: var(--blue);
  opacity: .06;
  font-family: Georgia, serif;
  user-select: none;
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars i { color: #F59E0B; font-size: .9rem; }
.testi-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--blue-lt); color: var(--blue); font-size: .7rem; font-weight: 700; padding: .2rem .65rem; border-radius: 20px; margin-bottom: 14px; }
.testi-text { font-size: .9375rem; line-height: 1.8; color: var(--body-txt); font-style: italic; margin-bottom: 20px; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.testi-name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.testi-role { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Plan Card */
.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--t2), box-shadow var(--t2), transform var(--t2);
  height: 100%;
}
.plan-card:hover { border-color: var(--blue); box-shadow: var(--s-card-hover); transform: translateY(-4px); }
.plan-card.featured { border-color: var(--blue); background: linear-gradient(145deg, #EFF6FF, #ECFDF5); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--g-brand); color: white;
  padding: 4px 16px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.plan-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plan-desc { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.plan-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; margin-right: 2px; letter-spacing: 0; }
.plan-period { font-size: .8125rem; color: var(--muted); }
.plan-divider { height: 1px; background: var(--border); margin-block: 20px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .875rem; padding: 5px 0;
  color: var(--body-txt);
}
.plan-check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-x { color: var(--faint); flex-shrink: 0; margin-top: 1px; }

/* ── 12. TAGS & BADGES ────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.tag-blue  { background: var(--blue-lt);  color: var(--blue); }
.tag-green { background: var(--green-lt); color: var(--green); }
.tag-amber { background: var(--amber-lt); color: var(--amber); }
.tag-rose  { background: var(--rose-lt);  color: var(--rose); }
.tag-ink   { background: var(--surface-3); color: var(--ink); }
.tag-easy   { background: #DCFCE7; color: #166534; }
.tag-medium { background: #FEF9C3; color: #854D0E; }
.tag-hard   { background: #FFE4E6; color: #9F1239; }
.badge-jury {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg,#FEF3C7,#FDE68A);
  color: #92400E; border: 1px solid #FCD34D;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.sdg-badge-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600;
  background: var(--blue-lt); color: var(--blue);
}
.author-mini { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .72rem;
  flex-shrink: 0;
}
.author-name { font-size: .8125rem; font-weight: 600; color: var(--body-txt); }
.read-time { font-size: .75rem; color: var(--muted); }

/* ── 13. FORMS ────────────────────────────────────────────────── */
.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-label { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.form-label .req { color: var(--rose); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.form-select { appearance: none; cursor: pointer; }
.form-hint { font-size: .75rem; color: var(--muted); }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--s-md);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t2), background var(--t2);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue);
  background: var(--blue-lt);
}
.upload-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 10px; }
.upload-text { font-size: .9375rem; color: var(--body-txt); font-weight: 500; }
.upload-sub { font-size: .8125rem; color: var(--muted); margin-top: 4px; }

/* Step indicator */
.steps-row {
  display: flex; align-items: flex-start;
  overflow-x: auto; padding-bottom: 4px;
  gap: 0;
  margin-bottom: 32px;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 60px; position: relative;
}
.step-item::before {
  content: ''; position: absolute;
  top: 16px; left: calc(50% + 16px); right: calc(-50% + 16px);
  height: 2px; background: var(--border-2);
  z-index: 0;
}
.step-item:last-child::before { display: none; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--border-2);
  color: var(--muted); font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all var(--t2);
  flex-shrink: 0;
}
.step-item.active .step-circle { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 0 0 4px var(--blue-lt2); }
.step-item.done .step-circle { background: var(--green); border-color: var(--green); color: white; }
.step-item.done::before { background: var(--green); }
.step-item.active::before { background: linear-gradient(90deg, var(--blue), var(--border-2)); }
.step-label { font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; white-space: nowrap; }
.step-item.active .step-label { color: var(--blue); }
.step-item.done .step-label { color: var(--green); }

/* ── 14. HOW IT WORKS ─────────────────────────────────────────── */
.hiw-step {
  text-align: center; padding: 32px 20px; position: relative;
}
.hiw-num-wrap {
  width: 60px; height: 60px; margin: 0 auto 18px;
  background: var(--g-brand);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.375rem;
  box-shadow: var(--s-blue);
  position: relative; z-index: 2;
}
.hiw-connector {
  position: absolute;
  top: 62px; left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .2;
}
.hiw-step:last-child .hiw-connector { display: none; }
.hiw-icon { font-size: 2.25rem; display: block; margin-bottom: 12px; }
.hiw-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.hiw-desc { font-size: .875rem; color: var(--body-txt); line-height: 1.7; }

/* ── 15. SOP FRAMEWORK ────────────────────────────────────────── */
.sop-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  transition: transform var(--t1), box-shadow var(--t1);
}
.sop-step:hover { transform: translateX(4px); box-shadow: var(--s-sm); }
.sop-num {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--g-brand); color: white;
  font-weight: 800; font-size: .8125rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.sop-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.sop-desc { font-size: .875rem; color: var(--body-txt); line-height: 1.65; }

/* ── 16. DARK SECTION ─────────────────────────────────────────── */
.dark-section {
  background: var(--g-navy);
  position: relative; overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -5%, rgba(37,99,235,.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Newsletter */
.newsletter-bar {
  max-width: 520px; margin-inline: auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.newsletter-input {
  flex: 1; min-width: 0;
  font-size: .9375rem; color: white; background: transparent;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-btn {
  background: var(--amber);
  color: #1a0a00; border: none; border-radius: var(--r-pill);
  padding: 10px 22px; font-size: .875rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
  transition: filter var(--t1), transform var(--t1);
}
.newsletter-btn:hover { filter: brightness(1.1); transform: scale(1.02); }

/* ── 17. PAGE HEADER ──────────────────────────────────────────── */
.page-hero {
  background: var(--g-hero);
  background-size: cover;
  background-position: center;
  padding: 120px 0 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,15,35,.72) 0%, rgba(5,15,35,.82) 100%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: white; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 600px; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

/* ── 18. SEARCH UI ────────────────────────────────────────────── */
.search-hero-box {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--s-xl);
  max-width: 760px; margin-inline: auto;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  background: var(--surface-2);
  transition: border-color var(--t1), box-shadow var(--t1);
  margin-bottom: 16px;
}
.search-input-wrap:focus-within {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.search-main-input {
  flex: 1; font-size: 1rem; color: var(--ink); background: transparent;
}
.search-main-input::placeholder { color: var(--muted); }
.filter-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500;
  color: var(--body-txt);
  cursor: pointer;
  transition: all var(--t1);
  white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-lt);
}
.filter-pill .pill-count {
  background: var(--blue); color: white;
  border-radius: var(--r-pill);
  padding: 1px 6px; font-size: .65rem; font-weight: 700;
}

/* ── 19. SIDEBAR (Dashboard) ──────────────────────────────────── */
.db-layout { display: flex; min-height: 100vh; padding-top: 70px; }
.db-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 70px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  transition: transform var(--t3);
}
.db-sidebar-inner { padding: 16px 12px; }
.db-user-card {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.db-user-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.db-user-name { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.db-user-role { font-size: .72rem; color: var(--muted); }
.db-user-badge {
  font-size: .65rem; font-weight: 700; color: var(--amber);
  background: var(--amber-lt); border-radius: 4px;
  padding: 1px 6px; display: inline-block; margin-top: 2px;
}
.db-section-label {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  padding: 14px 12px 5px;
}
.db-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: .875rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
  text-decoration: none;
  position: relative;
}
.db-menu-link:hover { background: var(--surface-2); color: var(--ink); }
.db-menu-link.active {
  background: var(--blue-lt); color: var(--blue);
  font-weight: 600;
}
.db-menu-link.active::before {
  content: '';
  position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.db-menu-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.db-badge {
  margin-left: auto;
  background: var(--blue); color: white;
  border-radius: var(--r-pill);
  padding: 1px 8px; font-size: .65rem; font-weight: 700;
}
.db-main { flex: 1; margin-left: 260px; padding: clamp(20px, 3vw, 36px); background: var(--surface-2); min-height: calc(100vh - 70px); }
.db-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding-inline: clamp(16px, 3vw, 32px);
  z-index: 200;
  box-shadow: var(--s-xs);
}
.db-topbar-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; }
.db-topbar-title { font-size: .9375rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

/* Widgets */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--s-xs);
  transition: box-shadow var(--t2), transform var(--t2);
}
.widget:hover { box-shadow: var(--s-sm); }
.widget-title { font-size: .9375rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.stat-widget-row { display: flex; align-items: center; gap: 14px; }
.stat-widget-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; flex-shrink: 0;
}
.stat-widget-num { font-size: 1.625rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat-widget-label { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.stat-widget-change { font-size: .75rem; font-weight: 600; margin-top: 3px; }
.change-up { color: var(--green); }
.change-dn { color: var(--rose); }

/* Data table */
.data-tbl { width: 100%; border-collapse: collapse; }
.data-tbl th {
  background: var(--surface-2);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  text-align: left; white-space: nowrap;
}
.data-tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem; vertical-align: middle;
}
.data-tbl tr:hover td { background: var(--surface-2); }
.data-tbl tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.sb-pending  { background: #FEF9C3; color: #854D0E; }
.sb-approved { background: #DCFCE7; color: #166534; }
.sb-rejected { background: #FFE4E6; color: #9F1239; }
.sb-featured { background: var(--blue-lt); color: var(--blue); }

/* ── 20. ADMIN (Dark) ─────────────────────────────────────────── */
.admin-layout { background: #080E1C; }
.admin-sidebar { background: #0C1427; border-right: 1px solid rgba(255,255,255,.06); }
.admin-sidebar .db-menu-link { color: rgba(255,255,255,.55); }
.admin-sidebar .db-menu-link:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); }
.admin-sidebar .db-menu-link.active { background: rgba(37,99,235,.2); color: #60A5FA; }
.admin-sidebar .db-menu-link.active::before { background: #60A5FA; }
.admin-sidebar .db-section-label { color: rgba(255,255,255,.25); }
.admin-sidebar .db-user-name { color: white; }
.admin-sidebar .db-badge { background: rgba(37,99,235,.35); }
.admin-topbar { background: #0C1427; border-bottom-color: rgba(255,255,255,.06); }
.admin-topbar .db-topbar-title { color: white; }
.admin-main { background: #080E1C; }
.admin-card {
  background: #111C30;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 22px 24px;
}
.admin-card .widget-title { color: rgba(255,255,255,.9); }
.admin-stat-num { font-size: 2rem; font-weight: 900; color: white; letter-spacing: -0.04em; }
.admin-stat-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.admin-tbl th { background: rgba(255,255,255,.04); color: rgba(255,255,255,.35); border-bottom-color: rgba(255,255,255,.08); }
.admin-tbl td { border-bottom-color: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.admin-tbl tr:hover td { background: rgba(255,255,255,.03); }
div.admin-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.admin-bar-fill { height: 100%; background: var(--g-brand); border-radius: 99px; }
.admin-icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
  transition: all var(--t1); text-decoration: none;
}
.admin-icon-btn:hover { background: rgba(255,255,255,.14); color: white; }

/* ── 21. STORY DETAIL ─────────────────────────────────────────── */
.story-hero-page {
  background: var(--g-hero);
  padding: 110px 0 75px;
  position: relative; overflow: hidden;
}
.story-hero-page::before {
  content: ''; position: absolute; inset: 0;
  background: var(--g-hero-r); pointer-events: none;
}
.story-hero-page::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px; background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.story-body-content { max-width: 720px; margin: 0 auto; }
.story-body-content p { font-size: 1.0625rem; line-height: 1.85; color: var(--body-txt); margin-bottom: 20px; }
.story-body-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--ink); font-weight: 800; }
.story-body-content h3 { font-size: 1.1875rem; margin: 28px 0 10px; color: var(--ink); font-weight: 700; }
.story-sidebar-sticky { position: sticky; top: 90px; }
.impact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.impact-row:last-child { border-bottom: none; }
.impact-icon { font-size: 1.25rem; width: 28px; text-align: center; flex-shrink: 0; }
.impact-val { font-weight: 800; font-size: 1.0625rem; color: var(--blue); }
.impact-lbl { font-size: .78rem; color: var(--muted); margin-top: 1px; }

/* ── 22. CHATBOT ──────────────────────────────────────────────── */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--g-brand);
  color: white; border: none; cursor: pointer;
  box-shadow: var(--s-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 1100;
  transition: transform var(--t-spring), box-shadow var(--t2);
}
.chatbot-fab:hover { transform: scale(1.1); box-shadow: 0 16px 48px rgba(37,99,235,.45); }
.chatbot-window {
  position: fixed; bottom: 98px; right: 28px;
  width: 360px; max-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  display: flex; flex-direction: column;
  z-index: 1099;
  overflow: hidden;
  animation: chatOpen .35s var(--ease-spring);
}
@keyframes chatOpen {
  from { opacity: 0; transform: scale(.85) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.chatbot-head {
  background: var(--g-brand);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chatbot-head-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.chatbot-head-name { font-weight: 700; font-size: .9375rem; color: white; }
.chatbot-head-status {
  font-size: .71rem; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 5px;
}
.chatbot-head-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  display: inline-block;
}
.chatbot-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 300px;
}
.chat-bubble {
  max-width: 86%; padding: 10px 14px;
  border-radius: 16px; font-size: .875rem; line-height: 1.55;
}
.chat-bot { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-user { background: var(--blue); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.chat-sug {
  background: var(--blue-lt); color: var(--blue);
  border: 1px solid var(--blue-lt2);
  border-radius: var(--r-pill);
  padding: 4px 12px; font-size: .78rem; font-weight: 500;
  cursor: pointer; transition: all var(--t1);
}
.chat-sug:hover { background: var(--blue); color: white; }
.chatbot-input-row {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
}
.chatbot-input-field {
  flex: 1; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 14px;
  font-size: .875rem; color: var(--ink);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.chatbot-input-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); outline: none; }
.chatbot-send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
  transition: background var(--t1), transform var(--t1);
}
.chatbot-send-btn:hover { background: var(--blue-dk); transform: scale(1.08); }
.chatbot-hidden { display: none !important; }

/* ── 23. MISC COMPONENTS ──────────────────────────────────────── */
/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 2%;
  background: var(--g-brand); z-index: 9999;
  transition: width .1s linear;
  /* Force its own compositing layer so mobile Safari doesn't flicker/hide this
     fixed bar while repainting the blurred .site-nav.scrolled layer above it. */
  transform: translateZ(0);
  will-change: width;
  backface-visibility: hidden;
}

/* Back to top */
.back-top {
  position: fixed; bottom: 98px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--s-md);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t2), transform var(--t2), box-shadow var(--t2);
  font-size: 1rem;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); box-shadow: var(--s-lg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(5,12,26,.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  padding-inline: 20px;
}
.search-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-overlay-box {
  width: 100%; max-width: 660px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--s-xl);
  animation: slideDown .25s var(--ease-out);
}
@keyframes slideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Leaderboard */
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t1), box-shadow var(--t1);
  margin-bottom: 8px;
}
.lb-row:hover { transform: translateX(4px); box-shadow: var(--s-sm); }
.lb-rank {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem; flex-shrink: 0;
}
.lb-gold   { background: linear-gradient(135deg,#F59E0B,#D97706); color: white; }
.lb-silver { background: linear-gradient(135deg,#94A3B8,#64748B); color: white; }
.lb-bronze { background: linear-gradient(135deg,#B45309,#92400E); color: white; }
.lb-score  { margin-left: auto; font-weight: 800; color: var(--blue); font-size: 1.0625rem; }

/* Countdown */
.countdown-wrap { display: flex; gap: 12px; justify-content: center; }
.countdown-unit { text-align: center; }
.countdown-num {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: white; border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 1.75rem; font-weight: 900;
  display: block; min-width: 56px; text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown-lbl {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-top: 5px; display: block;
}

/* Tag cloud */
.tag-cloud-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  padding: 5px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500; color: var(--body-txt);
  cursor: pointer; transition: all var(--t1);
  text-decoration: none;
}
.tag-cloud-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* Ribbon */
.ribbon {
  position: absolute; top: 14px; right: -4px;
  background: var(--rose); color: white;
  font-size: .65rem; font-weight: 800;
  padding: 3px 10px 3px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
}

/* ── 24. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px);
}
.footer-main { align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img,
.footer-brand .custom-logo-link img { height: 50px; width: auto; }
.footer-brand .custom-logo-link { display: inline-flex; line-height: 0; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: white; letter-spacing: -0.02em; }
.footer-brand-sub { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); }
.footer-about { font-size: .875rem; line-height: 1.7; max-width: 320px; margin-bottom: 22px; }
.footer-col nav { display: flex; flex-direction: column; }
.footer-social-row { display: flex; gap: 8px; margin-bottom: 0; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .875rem;
  cursor: pointer; transition: all var(--t1); text-decoration: none;
}
.footer-social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }
.footer-col-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: white; margin-bottom: 14px; }
.footer-link {
  display: block; font-size: .875rem; color: rgba(255,255,255,.55);
  padding: 4px 0; transition: color var(--t1), padding-left var(--t1);
}
.footer-link:hover { color: white; padding-left: 4px; }
.footer-sdg-mini { display: flex; flex-wrap: wrap; gap: 5px; }
.footer-sdg-dot {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: white;
  cursor: pointer; transition: transform var(--t1);
  text-decoration: none;
}
.footer-sdg-dot:hover { transform: scale(1.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: 22px;
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: .8125rem; color: rgba(255,255,255,.35); }
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--t1);
  white-space: nowrap;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── 24b. SDG GOAL PAGES ─────────────────────────────────────── */
.sc-sdg-page .sc-sdg-hero::before {
  display: block;
  background: linear-gradient(135deg, rgba(5,15,35,.72) 0%, rgba(5,15,35,.82) 100%);
}
.sdg-c1  .sc-sdg-hero::before { background: linear-gradient(135deg, #9B1224e8 0%, #72121ee6 55%, #9B1224cc 100%); }
.sdg-c2  .sc-sdg-hero::before { background: linear-gradient(135deg, #8A6218e8 0%, #6e531de6 55%, #8A6218cc 100%); }
.sdg-c3  .sc-sdg-hero::before { background: linear-gradient(135deg, #1E5C10e8 0%, #26501ce6 55%, #1E5C10cc 100%); }
.sdg-c4  .sc-sdg-hero::before { background: linear-gradient(135deg, #7A0F1Ce8 0%, #620c16e6 55%, #7A0F1Ccc 100%); }
.sdg-c5  .sc-sdg-hero::before { background: linear-gradient(135deg, #8C1A0Ee8 0%, #801d10e6 55%, #8C1A0Ecc 100%); }
.sdg-c6  .sc-sdg-hero::before { background: linear-gradient(135deg, #0D6B85e8 0%, #135e71e6 55%, #0D6B85cc 100%); }
.sdg-c7  .sc-sdg-hero::before { background: linear-gradient(135deg, #7A5B00e8 0%, #7e6206e6 55%, #7A5B00cc 100%); }
.sdg-c8  .sc-sdg-hero::before { background: linear-gradient(135deg, #580D25e8 0%, #510c21e6 55%, #580D25cc 100%); }
.sdg-c9  .sc-sdg-hero::before { background: linear-gradient(135deg, #7A2D0Ae8 0%, #7e3412e6 55%, #7A2D0Acc 100%); }
.sdg-c10 .sc-sdg-hero::before { background: linear-gradient(135deg, #720938e8 0%, #6e0a34e6 55%, #720938cc 100%); }
.sdg-c11 .sc-sdg-hero::before { background: linear-gradient(135deg, #7A4500e8 0%, #7e4e12e6 55%, #7A4500cc 100%); }
.sdg-c12 .sc-sdg-hero::before { background: linear-gradient(135deg, #5C3E0Ae8 0%, #604617e6 55%, #5C3E0Acc 100%); }
.sdg-c13 .sc-sdg-hero::before { background: linear-gradient(135deg, #1A3B1De8 0%, #203f22e6 55%, #1A3B1Dcc 100%); }
.sdg-c14 .sc-sdg-hero::before { background: linear-gradient(135deg, #064868e8 0%, #054c6ce6 55%, #064868cc 100%); }
.sdg-c15 .sc-sdg-hero::before { background: linear-gradient(135deg, #245C10e8 0%, #2b6016e6 55%, #245C10cc 100%); }
.sdg-c16 .sc-sdg-hero::before { background: linear-gradient(135deg, #003349e8 0%, #00344ee6 55%, #003349cc 100%); }
.sdg-c17 .sc-sdg-hero::before { background: linear-gradient(135deg, #0A1F30e8 0%, #0c2435e6 55%, #0A1F30cc 100%); }
.sdg-about-section { padding: var(--section-y) 0; background: #fff; }
.sdg-about-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; padding: .3rem 1rem;
  border-radius: 9999px; margin-bottom: 1.25rem;
}
.sdg-about-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--ink); line-height: 1.15; margin-bottom: 1.25rem; }
.sdg-about-body { font-size: 1.0625rem; color: var(--body-txt); line-height: 1.85; }
.sdg-about-body p:last-child { margin-bottom: 0; }
.sdg-icon-display {
  width: clamp(160px, 22vw, 220px);
  border-radius: 20px;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  position: absolute;
  z-index: 1;
}
.sdg-icon-display:hover { transform: scale(1.04) rotate(1deg); }
.sdg-about-num {
  font-size: clamp(8rem, 20vw, 15rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; user-select: none; text-align: center;
}
.sdg-icon-col { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.sdg-stories-section { padding: var(--section-y) 0; background: var(--surface-2); }
.sdg-stories-section .section-header .lead { color: var(--body-txt); max-width: 640px; }
.sc-sdg-btn-primary:hover,
.sc-sdg-btn-primary:focus { filter: brightness(1.06); color: #fff; }
.sdg-c7 .sc-sdg-btn-primary:hover,
.sdg-c7 .sc-sdg-btn-primary:focus { color: var(--ink); }
.sc-sdg-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); text-align: center; }

.sdg-c1  .sdg-about-badge { background: #E5243B15; color: #9B1224; border: 1px solid #E5243B30; }
.sdg-c1  .sdg-about-num { color: #E5243B10; }
.sdg-c1  .sdg-icon-display { box-shadow: 0 24px 60px #E5243B35; }
.sdg-c1  .sc-sdg-eyebrow { background: #E5243B18; color: #9B1224; }
.sdg-c1  .sc-sdg-btn-primary { background: #E5243B; background-image: none; border-color: #E5243B; box-shadow: 0 8px 32px #E5243B40; }

.sdg-c2  .sdg-about-badge { background: #DDA63A15; color: #8A6218; border: 1px solid #DDA63A30; }
.sdg-c2  .sdg-about-num { color: #DDA63A10; }
.sdg-c2  .sdg-icon-display { box-shadow: 0 24px 60px #DDA63A35; }
.sdg-c2  .sc-sdg-eyebrow { background: #DDA63A18; color: #8A6218; }
.sdg-c2  .sc-sdg-btn-primary { background: #DDA63A; background-image: none; border-color: #DDA63A; box-shadow: 0 8px 32px #DDA63A40; }

.sdg-c3  .sdg-about-badge { background: #4C9F3815; color: #1E5C10; border: 1px solid #4C9F3830; }
.sdg-c3  .sdg-about-num { color: #4C9F3810; }
.sdg-c3  .sdg-icon-display { box-shadow: 0 24px 60px #4C9F3835; }
.sdg-c3  .sc-sdg-eyebrow { background: #4C9F3818; color: #1E5C10; }
.sdg-c3  .sc-sdg-btn-primary { background: #4C9F38; border-color: #4C9F38; }

.sdg-c4  .sdg-about-badge { background: #C5192D15; color: #7A0F1C; border: 1px solid #C5192D30; }
.sdg-c4  .sdg-about-num { color: #C5192D10; }
.sdg-c4  .sdg-icon-display { box-shadow: 0 24px 60px #C5192D35; }
.sdg-c4  .sc-sdg-eyebrow { background: #C5192D18; color: #7A0F1C; }
.sdg-c4  .sc-sdg-btn-primary { background: #C5192D; border-color: #C5192D; }

.sdg-c5  .sdg-about-badge { background: #FF3A2115; color: #8C1A0E; border: 1px solid #FF3A2130; }
.sdg-c5  .sdg-about-num { color: #FF3A2110; }
.sdg-c5  .sdg-icon-display { box-shadow: 0 24px 60px #FF3A2135; }
.sdg-c5  .sc-sdg-eyebrow { background: #FF3A2118; color: #8C1A0E; }
.sdg-c5  .sc-sdg-btn-primary { background: #FF3A21; border-color: #FF3A21; }

.sdg-c6  .sdg-about-badge { background: #26BDE215; color: #0D6B85; border: 1px solid #26BDE230; }
.sdg-c6  .sdg-about-num { color: #26BDE210; }
.sdg-c6  .sdg-icon-display { box-shadow: 0 24px 60px #26BDE235; }
.sdg-c6  .sc-sdg-eyebrow { background: #26BDE218; color: #0D6B85; }
.sdg-c6  .sc-sdg-btn-primary { background: #26BDE2; border-color: #26BDE2; }

.sdg-c7  .sdg-about-badge { background: #FCC30B15; color: #7A5B00; border: 1px solid #FCC30B30; }
.sdg-c7  .sdg-about-num { color: #FCC30B10; }
.sdg-c7  .sdg-icon-display { box-shadow: 0 24px 60px #FCC30B35; }
.sdg-c7  .sc-sdg-eyebrow { background: #FCC30B18; color: #7A5B00; }
.sdg-c7  .sc-sdg-btn-primary { background: #FCC30B; border-color: #FCC30B; color: var(--ink); }

.sdg-c8  .sdg-about-badge { background: #A2194215; color: #580D25; border: 1px solid #A2194230; }
.sdg-c8  .sdg-about-num { color: #A2194210; }
.sdg-c8  .sdg-icon-display { box-shadow: 0 24px 60px #A2194235; }
.sdg-c8  .sc-sdg-eyebrow { background: #A2194218; color: #580D25; }
.sdg-c8  .sc-sdg-btn-primary { background: #A21942; border-color: #A21942; }

.sdg-c9  .sdg-about-badge { background: #FD692515; color: #7A2D0A; border: 1px solid #FD692530; }
.sdg-c9  .sdg-about-num { color: #FD692510; }
.sdg-c9  .sdg-icon-display { box-shadow: 0 24px 60px #FD692535; }
.sdg-c9  .sc-sdg-eyebrow { background: #FD692518; color: #7A2D0A; }
.sdg-c9  .sc-sdg-btn-primary { background: #FD6925; border-color: #FD6925; }

.sdg-c10 .sdg-about-badge { background: #DD136715; color: #720938; border: 1px solid #DD136730; }
.sdg-c10 .sdg-about-num { color: #DD136710; }
.sdg-c10 .sdg-icon-display { box-shadow: 0 24px 60px #DD136735; }
.sdg-c10 .sc-sdg-eyebrow { background: #DD136718; color: #720938; }
.sdg-c10 .sc-sdg-btn-primary { background: #DD1367; border-color: #DD1367; }

.sdg-c11 .sdg-about-badge { background: #FD9D2415; color: #7A4500; border: 1px solid #FD9D2430; }
.sdg-c11 .sdg-about-num { color: #FD9D2410; }
.sdg-c11 .sdg-icon-display { box-shadow: 0 24px 60px #FD9D2435; }
.sdg-c11 .sc-sdg-eyebrow { background: #FD9D2418; color: #7A4500; }
.sdg-c11 .sc-sdg-btn-primary { background: #FD9D24; border-color: #FD9D24; }

.sdg-c12 .sdg-about-badge { background: #BF8B2E15; color: #5C3E0A; border: 1px solid #BF8B2E30; }
.sdg-c12 .sdg-about-num { color: #BF8B2E10; }
.sdg-c12 .sdg-icon-display { box-shadow: 0 24px 60px #BF8B2E35; }
.sdg-c12 .sc-sdg-eyebrow { background: #BF8B2E18; color: #5C3E0A; }
.sdg-c12 .sc-sdg-btn-primary { background: #BF8B2E; border-color: #BF8B2E; }

.sdg-c13 .sdg-about-badge { background: #3F7E4415; color: #1A3B1D; border: 1px solid #3F7E4430; }
.sdg-c13 .sdg-about-num { color: #3F7E4410; }
.sdg-c13 .sdg-icon-display { box-shadow: 0 24px 60px #3F7E4435; }
.sdg-c13 .sc-sdg-eyebrow { background: #3F7E4418; color: #1A3B1D; }
.sdg-c13 .sc-sdg-btn-primary { background: #3F7E44; border-color: #3F7E44; }

.sdg-c14 .sdg-about-badge { background: #0A97D915; color: #064868; border: 1px solid #0A97D930; }
.sdg-c14 .sdg-about-num { color: #0A97D910; }
.sdg-c14 .sdg-icon-display { box-shadow: 0 24px 60px #0A97D935; }
.sdg-c14 .sc-sdg-eyebrow { background: #0A97D918; color: #064868; }
.sdg-c14 .sc-sdg-btn-primary { background: #0A97D9; border-color: #0A97D9; }

.sdg-c15 .sdg-about-badge { background: #56C02B15; color: #245C10; border: 1px solid #56C02B30; }
.sdg-c15 .sdg-about-num { color: #56C02B10; }
.sdg-c15 .sdg-icon-display { box-shadow: 0 24px 60px #56C02B35; }
.sdg-c15 .sc-sdg-eyebrow { background: #56C02B18; color: #245C10; }
.sdg-c15 .sc-sdg-btn-primary { background: #56C02B; border-color: #56C02B; }

.sdg-c16 .sdg-about-badge { background: #00689D15; color: #003349; border: 1px solid #00689D30; }
.sdg-c16 .sdg-about-num { color: #00689D10; }
.sdg-c16 .sdg-icon-display { box-shadow: 0 24px 60px #00689D35; }
.sdg-c16 .sc-sdg-eyebrow { background: #00689D18; color: #003349; }
.sdg-c16 .sc-sdg-btn-primary { background: #00689D; border-color: #00689D; }

.sdg-c17 .sdg-about-badge { background: #19486A15; color: #0A1F30; border: 1px solid #19486A30; }
.sdg-c17 .sdg-about-num { color: #19486A10; }
.sdg-c17 .sdg-icon-display { box-shadow: 0 24px 60px #19486A35; }
.sdg-c17 .sc-sdg-eyebrow { background: #19486A18; color: #0A1F30; }
.sdg-c17 .sc-sdg-btn-primary { background: #19486A; border-color: #19486A; }

/* ── 25. ANIMATIONS ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* ── 26. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .db-sidebar { transform: translateX(-100%); }
  .db-sidebar.open { transform: translateX(0); box-shadow: var(--s-xl); }
  .db-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .stats-strip-inner { gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); flex-basis: 50%; }
  .stat-item:nth-child(2n) { border-right: none; }
  .chatbot-window { width: calc(100vw - 40px); right: 20px; }
  .sdg-grid-layout { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .sdg-grid-layout { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .steps-row { flex-direction: column; align-items: flex-start; }
  .step-item::before { display: none; }
  .countdown-num { font-size: 1.25rem; min-width: 42px; }
}

/* ================================================================
   27. UTILITY EXTENSIONS
   Classes added to eliminate all inline style="" attributes.
   ================================================================ */

/* ── Navigation shared ── */

/* Mobile nav "Menu" heading */
.nav-mobile-header-title {
  font-weight: 800;
  font-size: .9375rem;
  color: var(--ink);
}

/* X close button inside the mobile nav panel */
.nav-mobile-close {
  background: var(--surface-3);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Register School — secondary CTA in nav (shares .btn-nav-cta; spacing handled by .ms-2) */
/* No extra rule needed — gradient already applied by .btn-nav-cta */

/* ── Background helpers ── */

/* Surface-2 section background */
.bg-surface-2 { background: var(--surface-2); }

/* ── Chatbot ── */

/* X close button inside chatbot header */
.chatbot-close-btn {
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.chatbot-close-btn:hover { background: rgba(255, 255, 255, .28); }

/* Icon image inside chatbot FAB */
.chatbot-fab-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Icon image inside chatbot head avatar */
.chatbot-head-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ── Search overlay ── */

/* Search icon inside overlay input */
.search-overlay-icon { color: var(--muted); }

/* Esc / close button inside search overlay */
.search-close-btn {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .75rem;
  color: var(--muted);
  cursor: pointer;
}

/* ── Stories page ── */

/* Page hero with stories-specific background image */
.page-hero-stories {
  background-image: url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?w=1600&auto=format&fit=crop&q=80');
}

/* Small filter pills used in the sidebar (SDG chips) */
.filter-pill-xs {
  font-size: .72rem;
  padding: 3px 8px;
}

/* Medium filter pills used in difficulty / format rows */
.filter-pill-sm {
  font-size: .72rem;
  padding: 4px 10px;
}

/* Sidebar filter select inputs */
.filter-select {
  font-size: .875rem;
  padding: 8px 12px;
}

/* Grade level checkbox labels */
.filter-check-label {
  font-size: .875rem;
  cursor: pointer;
}

/* "Clear All" button in sidebar */
.filter-clear-btn { font-size: .78rem; }

/* Results count text row */
.results-count {
  font-size: .9375rem;
  color: var(--body-txt);
}
.results-count strong { color: var(--ink); }

/* Sort dropdown — auto width so it doesn't stretch full row */
.sort-select {
  font-size: .875rem;
  padding: 7px 12px;
  width: auto;
}

/* Pagination <ul> reset */
.pagination-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  gap: 4px;
  margin: 0;
}

/* Fixed-width page number buttons */
.pagination-page-btn { min-width: 36px; }

/* Non-interactive ellipsis in pagination */
.pagination-ellipsis {
  cursor: default;
  pointer-events: none;
}

/* ── Register page ── */

/* @ prefix inside username input-group */
.input-group-prefix {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  color: var(--muted);
  font-size: .85rem;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
}

/* Username input — removes double left border from input-group */
.username-field {
  border-left: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Password input — room for the eye-toggle button */
.pw-field { padding-right: 2.75rem; }

/* Eye toggle button inside password field */
.pw-toggle-btn {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

/* "Already have an account?" helper text */
.login-note {
  font-size: .8rem;
  color: var(--muted);
}

/* Log In link inside login note */
.login-note-link {
  color: var(--blue);
  font-weight: 700;
}

/* Benefit icon cells — coloured backgrounds */
.benefit-icon-blue  { background: #EFF6FF; }
.benefit-icon-green { background: #ECFDF5; }
.benefit-icon-teal  { background: #F0FDF4; }
.benefit-icon-amber { background: #FEF9C3; }

/* ── Thank-you page ── */

/* Re-register amber link inside email warning box */
.ty-reregister-link {
  color: #92400E;
  font-weight: 700;
}

/* ── Story detail page ── */

/* Dark translucent tags inside story hero */
.story-hero-tag {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .8);
}

/* SDG tag variant in story hero */
.story-hero-tag-sdg {
  background: rgba(37, 99, 235, .3);
  border: 1px solid rgba(37, 99, 235, .5);
  color: #93c5fd;
}

/* Easy tag variant in story hero */
.story-hero-tag-easy {
  background: rgba(5, 150, 105, .3);
  border: 1px solid rgba(5, 150, 105, .5);
  color: #6ee7b7;
}

/* Small author avatar inside story hero */
.story-hero-author-avatar {
  width: 32px;
  height: 32px;
  font-size: .8rem;
  background: var(--g-brand);
}

/* Author name in story hero */
.story-hero-author-name {
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
}

/* Coloured icons in impact rows (sidebar) */
.icon-blue  { color: var(--blue); }
.icon-amber { color: var(--amber); }
.icon-rose  { color: var(--rose); }
.icon-green { color: var(--green); }

/* Larger testimonial avatar on story detail */
.story-testi-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Author name in story testimonial block */
.story-testi-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Gradient CTA widget in story sidebar */
.story-cta-widget {
  background: linear-gradient(135deg, var(--blue-lt), var(--green-lt));
}

/* Table of contents links in story sidebar */
.toc-link {
  border-bottom: 1px solid var(--border);
  color: var(--body-txt);
  font-size: .875rem;
  padding-block: .5rem;
  display: block;
}
.toc-link:last-child { border-bottom: none; }

/* Divider above "related stories" block in story sidebar */
.story-sidebar-divider {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

