/* EDUCATION — page-specific styles.
   Builds on the shared tokens/components in home.css (--seagrass/--amber/
   --paprika, .iei-section-inner, .iei-eyebrow, .iei-h2, .iei-body, .iei-btn). */

.edu-main {
  background: var(--cream);
}

/* HERO — light two-column layout: copy on the left, a single photo panel
   on the right. */
.edu-hero {
  position: relative;
  padding: 64px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.edu-hero.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.edu-hero__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.edu-hero__panel {
  max-width: 480px;
}

.edu-hero__eyebrow {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seagrass);
  margin-bottom: 14px;
}

.edu-hero__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  color: var(--graphite);
  margin: 0 0 20px;
}

.edu-hero__heading .edu-hero__heading-lead {
  color: var(--primary-text);
}

.edu-hero__heading .iei-brush {
  font-size: 1.05em;
}

.edu-hero__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.edu-hero__actions {
  margin-top: 18px;
}

.edu-hero__image {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-alt);
}

.edu-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-hero__bracket {
  position: absolute;
  top: -22px;
  right: -14px;
  width: 46px;
  height: 46px;
  border-top: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  border-radius: 0 8px 0 0;
  pointer-events: none;
}

.edu-hero__dots {
  position: absolute;
  bottom: -26px;
  right: -30px;
  width: 74px;
  height: 44px;
  background-image: radial-gradient(var(--paprika) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.55;
  pointer-events: none;
}

/* ANCHOR NAV STRIP */
.edu-anchor-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--charcoal-dark);
  overflow-x: auto;
  scrollbar-width: none;
}

.edu-anchor-strip::-webkit-scrollbar {
  display: none;
}

.edu-anchor-strip__inner {
  display: flex;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}

.edu-anchor-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(252, 252, 252, 0.65);
  text-decoration: none;
  padding: 16px 18px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.edu-anchor-strip a:hover,
.edu-anchor-strip a:focus-visible {
  color: #fcfcfc;
  border-bottom-color: var(--amber);
}

/* PROGRAM SECTIONS */
.edu-section {
  scroll-margin-top: 54px;
}

.edu-section--alt {
  background: var(--cream-alt);
}

.edu-program__intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.edu-program__intro .iei-eyebrow {
  text-align: center;
}

.edu-program__byline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

/* THREE-COLUMN LAYOUT (shared by Early Years intro + wrap-up + Advocacy) */
.edu-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.edu-col__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  display: block;
  margin-bottom: 10px;
}

.edu-col__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--graphite);
  margin: 0 0 10px;
}

.edu-col__subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--graphite);
  margin: 0 0 8px;
}

.edu-col p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 10px;
}

/* EARLY YEARS — card treatment for the intro columns */
.edu-columns--early .edu-col--card {
  background: var(--cream);
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 1px 2px rgba(53, 53, 53, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.edu-columns--early .edu-col--card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(53, 53, 53, 0.08);
  border-color: rgba(67, 170, 139, 0.25);
}

.edu-columns--early .edu-col--card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--seagrass);
  margin-bottom: 16px;
}

.edu-col--metrics {
  background: var(--graphite);
  border-radius: 16px;
  padding: 24px 22px;
}

.edu-col--metrics .edu-metric__label {
  color: rgba(252, 252, 252, 0.6);
}

/* METRICS (Impact in Numbers) */
.edu-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-metric {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(252, 252, 252, 0.06);
  border-left: 3px solid var(--seagrass);
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.edu-metric:hover {
  transform: translateX(3px);
  background: rgba(252, 252, 252, 0.1);
}

.edu-metric--amber {
  border-left-color: var(--amber);
}

.edu-metric--paprika {
  border-left-color: var(--paprika);
}

.edu-metric__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(252, 252, 252, 0.1);
  color: var(--seagrass);
}

.edu-metric--amber .edu-metric__icon {
  color: var(--amber);
}

.edu-metric--paprika .edu-metric__icon {
  color: var(--paprika);
}

.edu-metric__icon svg {
  width: 17px;
  height: 17px;
}

.edu-metric__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-metric strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: #fcfcfc;
  line-height: 1.15;
}

.edu-metric span {
  font-size: 12.5px;
  color: rgba(252, 252, 252, 0.65);
}

.edu-metric__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-text);
  margin-bottom: 10px;
}

/* INFRASTRUCTURE FEATURE + TIMELINE */
.edu-feature__intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.edu-feature__intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

.edu-timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 34px 8px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.edu-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 38px;
  height: 2px;
  background: rgba(67, 170, 139, 0.3);
}

.edu-timeline__item {
  position: relative;
  flex: 0 0 240px;
  padding: 24px 20px 0;
  text-align: center;
}

.edu-timeline__item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--seagrass);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px rgba(67, 170, 139, 0.4);
}

.edu-timeline__place {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--graphite);
  margin: 0 0 2px;
}

.edu-timeline__year {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paprika);
  margin-bottom: 6px;
}

.edu-timeline__item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .edu-timeline {
    padding-top: 30px;
  }

  .edu-timeline__item {
    flex-basis: 200px;
    text-align: left;
    padding: 24px 16px 0 20px;
  }

  .edu-timeline__item::before {
    left: 0;
    transform: none;
  }
}

/* STEM & SUMMER CAMP — single feature block */
.edu-stem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.edu-stem__image {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.edu-stem__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-stem__copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ADVOCACY */
.edu-advocacy__intro {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.edu-advocacy__intro h2 {
  margin-bottom: 6px;
}

.edu-advocacy__subheading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--primary-text);
  margin: 0 0 16px;
}

.edu-advocacy__byline {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}

.edu-advocacy__cta {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.edu-advocacy-card {
  background: #fcfcfc;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 16px;
  padding: 26px 24px;
}

/* CASE STUDY */
.edu-case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.edu-case__image {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.edu-case__image img {
  width: 100%;
  height: auto;
  display: block;
}

.edu-case__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--graphite);
  margin: 0 0 18px;
}

.edu-case__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.edu-case__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.edu-highlight {
  background: var(--seagrass-tint);
  border-radius: 14px;
  padding: 16px 16px;
}

.edu-highlight strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--graphite);
  line-height: 1.2;
  margin-bottom: 4px;
}

.edu-highlight span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.edu-case__quote {
  border-left: 3px solid var(--paprika);
  padding-left: 18px;
  margin: 24px 0 0;
}

.edu-case__quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0 0 8px;
}

.edu-case__quote cite {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}

.edu-fpic {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.edu-fpic a {
  color: var(--paprika);
  font-weight: 700;
  text-decoration: underline;
}

/* CAROUSEL (photo library) — mirrors the digital-sovereignty carousel */
.edu-carousel {
  position: relative;
}

.edu-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.edu-carousel__track::-webkit-scrollbar {
  display: none;
}

.edu-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.edu-carousel__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 53, 53, 0.2);
  background: #fcfcfc;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.edu-carousel__btn:hover {
  background: var(--seagrass-tint);
  border-color: var(--seagrass);
}

.edu-carousel__btn svg {
  width: 18px;
  height: 18px;
}

.edu-photo-item {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.edu-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA extras (mirrors the shared .iei-involve section) */
.edu-cta__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.edu-cta__meta a {
  color: var(--muted-dark);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edu-cta__meta a:hover {
  color: #fcfcfc;
}

@media (max-width: 980px) {
  .edu-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .edu-hero__panel {
    max-width: none;
  }

  .edu-columns {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .edu-stem {
    grid-template-columns: 1fr;
  }

  .edu-case {
    grid-template-columns: 1fr;
  }

  .edu-case__image {
    position: static;
  }

  .edu-case__highlights {
    grid-template-columns: 1fr;
  }

  .edu-photo-item {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .edu-hero {
    padding: 40px 0;
  }

  .edu-hero__grid {
    padding: 0 20px;
  }

  .edu-photo-item {
    flex-basis: 84%;
  }

  .edu-anchor-strip__inner {
    padding: 0 20px;
  }
}
