/* ============================================
   PROGRAMMES PAGE STYLES
   ============================================ */

/* ============================================
   PAGE HERO (reuse styles from about.css but tweak)
   ============================================ */
.page-hero--programs {
  background-image: url('Images/programs-hero.jpg');
  min-height: 62vh;
}

/* ============================================
   STICKY PROGRAMME NAVIGATOR
   ============================================ */
.programs-nav {
  position: sticky;
  top: 72px;                       /* below the navbar */
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 49, 146, 0.08);
  padding: 0.85rem 0;
}

.programs-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.programs-nav-inner::-webkit-scrollbar {
  display: none;
}

.programs-nav-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 50px;
  background: #f4f6fb;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.programs-nav-chip i {
  font-size: 0.78rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.programs-nav-chip:hover {
  background: #eef0fb;
  border-color: rgba(45, 49, 146, 0.2);
  transform: translateY(-1px);
}

.programs-nav-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.programs-nav-chip.active i {
  color: #f4c430;
}

/* ============================================
   PROGRAMME SECTION BASE
   ============================================ */
.prog-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.prog-section + .prog-section {
  border-top: 1px solid rgba(45, 49, 146, 0.06);
}

/* Colour accents — subtle gradient tint per programme */
.prog-section--mint     { background: linear-gradient(180deg, #f4faf7 0%, #ffffff 100%); }
.prog-section--lavender { background: linear-gradient(180deg, #f5f2fd 0%, #ffffff 100%); }
.prog-section--sky      { background: linear-gradient(180deg, #f0f6fd 0%, #ffffff 100%); }
.prog-section--peach    { background: linear-gradient(180deg, #fdf3ec 0%, #ffffff 100%); }
.prog-section--cream    { background: linear-gradient(180deg, #fdf8e6 0%, #ffffff 100%); }
.prog-section--rose     { background: linear-gradient(180deg, #fdf0f4 0%, #ffffff 100%); }

/* Large accent blob behind each section */
.prog-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.prog-section--mint::before     { background: radial-gradient(circle, #b8e6d4, transparent 70%); }
.prog-section--lavender::before { background: radial-gradient(circle, #c9c2f5, transparent 70%); }
.prog-section--sky::before      { background: radial-gradient(circle, #b8d8f5, transparent 70%); }
.prog-section--peach::before    { background: radial-gradient(circle, #f5cdb0, transparent 70%); }
.prog-section--cream::before    { background: radial-gradient(circle, #f5dd90, transparent 70%); }
.prog-section--rose::before     { background: radial-gradient(circle, #f5b8cd, transparent 70%); }

.prog-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   PROGRAMME HEADER
   ============================================ */
.prog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.prog-header-text {
  max-width: 720px;
}

.prog-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prog-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4c430;
  transform: translateY(-50%);
}

.prog-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.9px;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.prog-tagline {
  font-size: 1.02rem;
  color: var(--gray);
  font-weight: 500;
  font-style: italic;
}

/* Big circular icon badge */
.prog-header-icon {
  width: 110px;
  height: 110px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.prog-header-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: pulseRing 2.4s ease-out infinite;
}

.prog-header-icon:hover {
  transform: rotate(-6deg) scale(1.04);
}

/* Icon tint per programme */
.prog-section--mint     .prog-header-icon { background: #e6f3ee; color: #1f8b6a; }
.prog-section--lavender .prog-header-icon { background: #ece9fb; color: #4a3fb8; }
.prog-section--sky      .prog-header-icon { background: #e3eefb; color: #1f6dc9; }
.prog-section--peach    .prog-header-icon { background: #fbe9de; color: #c96a2e; }
.prog-section--cream    .prog-header-icon { background: #fdf3d8; color: #b8891a; }
.prog-section--rose     .prog-header-icon { background: #fce4ec; color: #b8396b; }

/* ============================================
   PROGRAMME BODY (narrative + list card)
   ============================================ */
.prog-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.prog-narrative p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1.1rem;
}

.prog-narrative strong {
  color: var(--dark);
  font-weight: 600;
}

/* Horizontal step pathway */
.prog-pathway {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 50px;
  box-shadow: 0 6px 22px -14px rgba(45, 49, 146, 0.2);
}

.prog-pathway i {
  color: #f4c430;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pathway-step {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* ============================================
   MODEL (steps grid)
   ============================================ */
.prog-model {
  margin-top: 2.2rem;
}

.prog-model h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prog-model h3 i {
  color: #f4c430;
}

.model-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.model-steps--six {
  grid-template-columns: repeat(6, 1fr);
}

.model-step {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 16px;
  padding: 1.1rem 0.95rem;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.model-step.revealed {
  animation: modelStepIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

@keyframes modelStepIn {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.model-step:hover {
  border-color: rgba(45, 49, 146, 0.18);
  box-shadow: 0 16px 30px -18px rgba(45, 49, 146, 0.3);
  transform: translateY(-4px);
}

.model-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f4c430;
  margin-bottom: 0.35rem;
}

.model-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
}

.model-step p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray);
}

/* ============================================
   RIGHT: list card
   ============================================ */
.prog-list-card {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 22px;
  padding: 1.8rem 1.7rem;
  box-shadow: 0 12px 32px -18px rgba(45, 49, 146, 0.24);
  align-self: start;
  position: sticky;
  top: 160px;
}

.prog-list-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.prog-list-card h3 i {
  color: #f4c430;
  font-size: 0.95rem;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prog-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--gray);
}

.prog-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #eef0fb;
  transition: background 0.3s ease;
}

.prog-list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.65rem;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Stat inline inside list card */
.prog-stat-inline {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  background: #eef0fb;
  border-radius: 14px;
  border-left: 3px solid var(--primary);
}

.prog-stat-inline--peach { background: #fdf3ec; border-left-color: #c96a2e; }
.prog-stat-inline--rose  { background: #fce4ec; border-left-color: #b8396b; }

.prog-stat-inline-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.8px;
  margin-bottom: 0.35rem;
}

.prog-stat-inline--peach .prog-stat-inline-num { color: #c96a2e; }
.prog-stat-inline--rose  .prog-stat-inline-num { color: #b8396b; }

.prog-stat-inline-label {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray);
}

/* ============================================
   FOCUS CHIPS
   ============================================ */
.prog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.prog-chip {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  opacity: 0;
  transform: translateY(12px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.prog-chip.revealed {
  animation: chipIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

@keyframes chipIn {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.prog-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   DONOR CTA BLOCK
   ============================================ */
.prog-cta {
  margin-top: 3rem;
  padding: 2rem 2.2rem;
  background: #1e2168;
  color: var(--white);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.prog-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.prog-cta-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.prog-cta-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #f4c430;
  margin-bottom: 0.6rem;
}

.prog-cta h4 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.prog-cta p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.prog-cta .btn {
  position: relative;
  z-index: 1;
  background: #f4c430;
  color: var(--dark);
  box-shadow: 0 10px 26px -10px rgba(244, 196, 48, 0.5);
  flex-shrink: 0;
}

.prog-cta .btn:hover {
  background: #ffffff;
  color: var(--primary);
}

/* ============================================
   REACH STRIP
   ============================================ */
.reach-strip {
  background: #f8f9fc;
  padding: 5rem 0;
  border-top: 1px solid rgba(45, 49, 146, 0.06);
}

.reach-strip-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.reach-strip-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--dark);
}

.reach-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.reach-item {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 26px -16px rgba(45, 49, 146, 0.18);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.reach-item.revealed {
  animation: modelStepIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

.reach-item:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 49, 146, 0.18);
  box-shadow: 0 24px 48px -22px rgba(45, 49, 146, 0.3);
}

.reach-num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.reach-label {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gray);
}

/* ============================================
   WHERE WE WORK
   ============================================ */
.where-we-work {
  padding: 6rem 0;
  background: var(--white);
}

.where-we-work-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.where-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.where-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 2rem;
}

.where-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.where-card {
  background: #f8f9fc;
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

.where-card--soft {
  background: #eef0fb;
}

.where-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.where-card-counties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.where-card-counties span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.12);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}

.where-card--soft .where-card-counties span {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Map */
.where-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.where-map-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  object-fit: contain;
}

.where-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px -18px rgba(45, 49, 146, 0.2);
}

.where-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.where-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.where-legend-dot--current   { background: var(--primary); }
.where-legend-dot--past      { background: #c9c2f5; }
.where-legend-dot--expansion { background: #f4c430; }

/* ============================================
   FINAL CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(120deg, #2D3192 0%, #1e2168 100%);
  padding: 4rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-band-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-band-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.cta-band-text p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
}

.cta-band-buttons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background: #f4c430;
  color: var(--dark);
  box-shadow: 0 10px 28px -10px rgba(244, 196, 48, 0.55);
}

.cta-band .btn-primary:hover {
  background: #ffffff;
  color: var(--primary);
}

.cta-band-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: gap 0.25s ease, color 0.25s ease;
}

.cta-band-secondary:hover {
  gap: 0.9rem;
  color: #f4c430;
}

/* ============================================
   PROGRAMMES PAGE — RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
 .where-map-img {
  max-width: 320px;
}

  .prog-list-card {
    position: static;
    top: auto;
  }

  .model-steps,
  .model-steps--six {
    grid-template-columns: repeat(3, 1fr);
  }

  .reach-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .where-we-work-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .where-map svg {
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .programs-nav {
    top: 66px;
  }

  .prog-section {
    padding: 5rem 0;
  }

  .prog-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .prog-header-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    font-size: 2rem;
  }

  .prog-header-icon::after {
    border-radius: 24px;
  }

  .reach-strip {
    padding: 4rem 0;
  }

  .where-we-work {
    padding: 5rem 0;
  }
}

@media (max-width: 600px) {
  .page-hero--programs {
    min-height: 50vh;
  }

  .programs-nav {
    top: 62px;
    padding: 0.7rem 0;
  }

  .programs-nav-chip {
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
  }

  .prog-section {
    padding: 4rem 0;
  }

  .prog-title {
    font-size: 1.7rem;
  }

  .prog-tagline {
    font-size: 0.95rem;
  }

  .model-steps,
  .model-steps--six {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .model-step {
    padding: 0.95rem 0.85rem;
  }

  .reach-strip-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .reach-item {
    padding: 1.5rem 1.3rem;
  }

  .prog-cta {
    padding: 1.6rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .prog-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
  }

  .cta-band-buttons {
    width: 100%;
  }

  .cta-band .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .where-map-img {
  max-width: 260px;
}
}

@media (max-width: 420px) {
  .model-steps,
  .model-steps--six {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .prog-header-icon::after {
    animation: none;
  }

  .model-step,
  .prog-chip,
  .reach-item {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .model-step:hover,
  .reach-item:hover,
  .prog-chip:hover {
    transform: none;
  }
}