/* =====================================================
   EPILEPSY SAFE SCHOOL PROJECT — STYLESHEET
   World-class healthcare NGO design
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #6D28D9;
  --deep-purple:  #4C1D95;
  --accent:       #8B5CF6;
  --lavender:     #F3E8FF;
  --glow:         #DDD6FE;
  --white:        #FFFFFF;
  --bg:           #FAFAFC;
  --text-primary: #1F2937;
  --text-sec:     #6B7280;
  --text-light:   #9CA3AF;
  --border:       rgba(109, 40, 217, 0.12);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 20px rgba(109,40,217,.10);
  --shadow-lg:    0 10px 40px rgba(109,40,217,.16);
  --shadow-xl:    0 20px 60px rgba(109,40,217,.18);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender);
  padding: .35em .9em;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.section-label.centered { display: block; text-align: center; }

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-title.centered { text-align: center; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.section-sub.centered { text-align: center; margin-left: auto; margin-right: auto; }

.body-text {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--accent) 60%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: white;
  box-shadow: 0 4px 18px rgba(109,40,217,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109,40,217,.45);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  background: var(--lavender);
  border-color: var(--purple);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(250,250,252,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img { height: 44px; width: auto; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sec);
  padding: .45rem .85rem;
  border-radius: 8px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--purple);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 10%; right: 10%;
}
.nav-link.nav-cta {
  background: var(--lavender);
  color: var(--purple);
  font-weight: 600;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--glow); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #FAFAFC 0%, #F5F0FF 50%, #EDE9FE 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; background: #DDD6FE; top: -150px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 350px; height: 350px; background: #C4B5FD; bottom: -100px; left: -80px; animation-delay: 2s; }
.shape-3 { width: 250px; height: 250px; background: #8B5CF6; top: 30%; right: 10%; animation-delay: 4s; opacity: .15; }
.shape-4 { width: 180px; height: 180px; background: #6D28D9; top: 60%; left: 30%; animation-delay: 6s; opacity: .1; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: .75rem;
}
.hero-tagline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-sec);
  max-width: 100px;
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-illustration svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(109,40,217,.15));
  animation: float-illo 7s ease-in-out infinite;
}
@keyframes float-illo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(109,40,217,.3);
  border-radius: 100px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--purple);
  border-radius: 100px;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ---- WHY THIS MATTERS ---- */
.why-matters {
  background: var(--white);
}
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.cards-grid.five-col { grid-template-columns: repeat(5, 1fr); }

.card {
  padding: 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.card-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.card-glass:hover, .card-glass:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(109,40,217,.25);
}
.card-glass.featured {
  background: linear-gradient(135deg, var(--deep-purple), var(--purple));
  border-color: transparent;
  color: white;
}
.card-glass.featured .card-title,
.card-glass.featured .card-desc,
.card-glass.featured .card-stat-num,
.card-glass.featured .card-stat-label { color: white; }

.card-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.card-icon-wrap.purple { background: var(--lavender); color: var(--purple); }
.card-icon-wrap.white { background: rgba(255,255,255,.2); color: white; }
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}
.card-desc { font-size: .92rem; color: var(--text-sec); line-height: 1.65; margin-bottom: 1.2rem; }
.card-stat { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(109,40,217,.12); }
.card-glass.featured .card-stat { border-color: rgba(255,255,255,.2); }
.card-stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: .2rem;
}
.card-stat-label { font-size: .78rem; color: var(--text-sec); }

/* ---- ABOUT ---- */
.about {
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.mv-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--lavender);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}
.mv-item i {
  color: var(--purple);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.mv-item strong { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: .25rem; font-size: .95rem; }
.mv-item p { font-size: .88rem; color: var(--text-sec); line-height: 1.55; margin: 0; }

.about-timeline { padding-top: 1rem; }
.timeline-heading {
  font-family: 'Sora', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple);
  margin-bottom: 2rem;
}
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--accent));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--purple);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--lavender);
}
.timeline-step {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .2rem;
}
.timeline-content h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: .35rem;
}
.timeline-content p { font-size: .88rem; color: var(--text-sec); line-height: 1.6; margin: 0; }

/* ---- FUNDING ---- */
.funding {
  background: linear-gradient(160deg, var(--deep-purple) 0%, var(--purple) 100%);
  padding: 80px 0;
  color: white;
}
.funding .section-label { background: rgba(255,255,255,.15); color: white; }
.funding .section-title { color: white; }
.funders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.funder-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: all var(--transition);
}
.funder-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.funder-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}
.funder-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.funder-card p { font-size: .83rem; color: rgba(255,255,255,.75); line-height: 1.55; margin: 0; }

/* ---- FOR SCHOOLS ---- */
.for-schools { background: white; }
.cards-grid.five-col { grid-template-columns: repeat(5, 1fr); }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  background: var(--lavender);
  color: var(--purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--purple);
  color: white;
}
.service-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}
.service-card p { font-size: .85rem; color: var(--text-sec); line-height: 1.6; margin: 0; }

/* Participation Flow */
.participation-flow {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--lavender), var(--glow));
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.pf-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-purple);
  text-align: center;
  margin-bottom: 2.5rem;
}
.pf-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.pf-step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
}
.pf-step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(109,40,217,.15);
  line-height: 1;
  margin-bottom: .5rem;
}
.pf-step-content h4 {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--deep-purple);
  margin-bottom: .4rem;
}
.pf-step-content p { font-size: .8rem; color: var(--text-sec); line-height: 1.5; margin: 0; }
.pf-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: .8rem;
  flex-shrink: 0;
}

/* ---- FOR TEACHERS ---- */
.for-teachers {
  background: var(--bg);
}
.teachers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.teacher-outcomes { margin-top: 1.5rem; }
.outcome-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .85rem;
  font-size: .92rem;
  color: var(--text-sec);
}
.outcome-item i { color: var(--purple); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }

.journey-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.journey-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  position: relative;
}
.journey-step.active {
  background: var(--lavender);
}
.journey-step-icon {
  width: 44px; height: 44px;
  background: var(--lavender);
  color: var(--purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.journey-step.active .journey-step-icon {
  background: var(--purple);
  color: white;
}
.journey-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  display: block;
  margin-bottom: .2rem;
}
.journey-step-content h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-primary);
  margin-bottom: .3rem;
}
.journey-step-content p { font-size: .83rem; color: var(--text-sec); line-height: 1.6; margin: 0; }
.journey-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--purple), var(--accent));
  margin: 0 0 0 1.55rem;
  border-radius: 2px;
}

/* ---- FOR PARENTS — MYTH vs FACT ---- */
.for-parents { background: white; }
.myth-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.myth-fact-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.myth-fact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mf-myth {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.mf-fact {
  background: var(--lavender);
  border-left: 4px solid var(--purple);
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.mf-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  flex-shrink: 0;
  padding-top: .15rem;
}
.mf-myth .mf-label { color: #EF4444; }
.mf-fact .mf-label { color: var(--purple); }
.mf-text { font-size: .88rem; line-height: 1.55; color: var(--text-primary); margin: 0; }

/* ---- SEIZURE FIRST AID ---- */
.first-aid {
  background: linear-gradient(160deg, var(--bg) 0%, var(--lavender) 100%);
}
.first-aid-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: steps;
}
.fa-step {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.fa-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fa-step-num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(109,40,217,.07);
  line-height: 1;
}
.fa-step.fa-step-warning { border-color: #FCA5A5; }
.fa-step.fa-step-warning .fa-step-icon { background: #FEF2F2; color: #EF4444; }
.fa-step-icon {
  width: 56px; height: 56px;
  background: var(--lavender);
  color: var(--purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.fa-step h3 {
  font-family: 'Sora', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}
.fa-step p { font-size: .82rem; color: var(--text-sec); line-height: 1.55; margin: 0; }

/* ---- RESOURCES ---- */
.resources { background: white; }
.resource-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: .83rem;
  font-weight: 600;
  padding: .5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-sec);
  background: var(--bg);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--lavender); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(109,40,217,.3);
}
.filter-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.resource-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all var(--transition);
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(109,40,217,.2); }
.resource-card[hidden] { display: none; }
.resource-file-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.resource-card .rc-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.resource-card h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.resource-card p { font-size: .8rem; color: var(--text-sec); line-height: 1.55; margin: 0; flex: 1; }
.resource-dl-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--lavender);
  padding: .5rem 1rem;
  border-radius: 100px;
  transition: all var(--transition);
  align-self: flex-start;
  margin-top: .25rem;
}
.resource-dl-btn:hover { background: var(--glow); }

/* ---- CONTACT ---- */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .92rem;
  color: var(--text-sec);
}
.contact-item i { color: var(--purple); width: 18px; }
.contact-item a { color: var(--text-sec); transition: color var(--transition); }
.contact-item a:hover { color: var(--purple); }
.contact-social { display: flex; gap: .6rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lavender);
  color: var(--purple);
  font-size: .9rem;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.social-btn:hover { background: var(--purple); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.social-btn.sm { width: 34px; height: 34px; font-size: .8rem; }

/* Form */
.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { position: relative; }

.form-input {
  width: 100%;
  padding: 1.1rem 1rem .5rem;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: all var(--transition);
  resize: none;
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  background: white;
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}
.form-input.error { border-color: #EF4444; }

.form-label {
  position: absolute;
  left: 1rem;
  top: .85rem;
  font-size: .85rem;
  color: var(--text-light);
  transition: all var(--transition);
  pointer-events: none;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: .3rem;
  font-size: .7rem;
  color: var(--purple);
  font-weight: 600;
}

.form-textarea { padding-top: 1.5rem; min-height: 120px; }
.form-textarea ~ .form-label { top: 1.2rem; }
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: .35rem;
}

.form-error { display: block; font-size: .75rem; color: #EF4444; margin-top: .3rem; min-height: 1em; }

/* Success / Error messages */
.form-success {
  text-align: center;
  padding: 2.5rem;
}
.success-icon {
  font-size: 3rem;
  color: #10B981;
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.form-success p { color: var(--text-sec); font-size: .92rem; }

.form-error-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  color: #DC2626;
  font-size: .88rem;
}

/* ---- FOOTER ---- */
.footer { background: var(--deep-purple); color: rgba(255,255,255,.85); }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: 260px;
}
.footer-social { display: flex; gap: .5rem; }
.footer-links-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.1rem;
}
.footer-links-col ul li {
  margin-bottom: .65rem;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
}
.footer-links-col ul li i { margin-top: .15rem; font-size: .8rem; color: var(--accent); }
.footer-links-col ul li a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links-col ul li a:hover { color: white; }
.footer-links-col ul li a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(109,40,217,.35);
  transition: all var(--transition);
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(109,40,217,.45); }
.scroll-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- SCROLL REVEAL ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="80"]  { transition-delay: .08s; }
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="150"] { transition-delay: .15s; }
[data-reveal-delay="160"] { transition-delay: .16s; }
[data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal-delay="240"] { transition-delay: .24s; }
[data-reveal-delay="320"] { transition-delay: .32s; }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-illustration svg, .shape { animation: none !important; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .cards-grid.five-col { grid-template-columns: repeat(3, 1fr); }
  .first-aid-steps { grid-template-columns: repeat(3, 1fr); }
  .funders-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-illustration { display: flex; justify-content: center; }
  .hero-illustration svg { max-width: 360px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .teachers-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid.three-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .myth-fact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    transition: right var(--transition);
    z-index: 999;
    gap: .25rem;
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1rem; padding: .6rem 1rem; width: 100%; }
  .cards-grid.five-col { grid-template-columns: repeat(2, 1fr); }
  .first-aid-steps { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .pf-steps { flex-direction: column; align-items: center; }
  .pf-arrow { transform: rotate(90deg); }
}

@media (max-width: 540px) {
  .cards-grid.three-col,
  .cards-grid.five-col,
  .first-aid-steps,
  .resource-grid,
  .funders-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 1.5rem; }
  .participation-flow { padding: 1.5rem; }
}
