/* ══════════════════════════════════════════════
   primary-years.css — Primary Years page styles
   Accent: var(--green) | Alt bg: var(--green-pale)
   ══════════════════════════════════════════════ */

/* ── All split images on this page are real — disable the pending overlay ── */
.split-img::after { display: none; }
.split-img img    { opacity: 1; }

/* ── Page Hero ── */
.main-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding-top: 72px;
}

.main-hero-overlay {
  position: absolute;
  inset: 0;
}

.main-hero-copy {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 640px;
}

.main-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 20px;
}

.main-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.main-hero-h {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
}

.main-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 255, 255, .88);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.main-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Page Sections ── */
.pg-section {
  padding: 80px 0;
}

.pg-section--alt {
  background: var(--green-pale);
  padding: 80px 0;
}

.pg-section--warm {
  background: var(--off-white);
  padding: 80px 0;
}

.pg-section--dark {
  background: var(--dark);
  padding: 80px 0;
}

/* ── IB World School Split Layout ── */
.ib-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: stretch;
}

.ib-split .learner-profile {
  margin-top: 0;
}

/* ── Learner Profile ── */
.learner-profile {
  margin-top: 36px;
}

.lp-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.lp-trait {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.lp-trait-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-trait-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}

.lp-trait-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.lp-trait-desc {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
}

.lp-close {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--dark);
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

/* ── Ratio Cards ── */
.ratio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.ratio-cards--column {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  height: 100%;
  align-content: space-evenly;
}

.ratio-cards--column .ratio-card {
  padding: 18px;
}

.ratio-cards--column .ratio-card-num {
  font-size: 32px;
}

.ratio-cards--column .ratio-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  min-width: 160px;
}

.ratio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 4px solid var(--green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.ratio-card-group {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 6px;
}

.ratio-card-ages {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.ratio-card-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

.ratio-card-label {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 4px;
}

/* ── Insight Block ── */
.insight-block {
  background: var(--green);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #fff;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.insight-block-num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.insight-block-unit {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-top: -8px;
}

.insight-block-copy h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.insight-block-copy p {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.65;
}

/* ── Curriculum Logos ── */
.curriculum-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.curriculum-badge {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* ── Secondary Teaser ── */
.pg-secondary-teaser {
  background: var(--lavender-pale);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}

.pg-secondary-teaser-copy {
  flex: 1;
}

.pg-secondary-teaser-copy h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}

.pg-secondary-teaser-copy p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.65;
}

.pg-secondary-teaser-btns {
  flex-shrink: 0;
}

/* ── Enrichment Pills ── */
.enrichment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.enrichment-pill {
  background: var(--green-pale);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* ── IB Note ── */
.ib-note {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.65;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-bottom: 48px;
}

.ib-note a {
  color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ib-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-traits {
    grid-template-columns: 1fr;
  }

  .ratio-cards:not(.ratio-cards--column) {
    grid-template-columns: 1fr;
  }

  .insight-block {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 16px;
  }

  .pg-secondary-teaser {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}
