/* ════════════════════════════════════════════════════════════
   PROGRAMMES.CSS — Programmes Page
   Page-specific sections only.
   Requires: variables.css, common.css loaded first.
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   PROGRAMMES HERO — Card grid on navy gradient
   ════════════════════════════════════════════════════════════ */
#programmes-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding:    140px 64px 100px;        /* top padding clears fixed nav */
  position:   relative;
  overflow:   hidden;
}


/* ── Head block ── */
.ph-head {
  text-align: center;
  max-width:  760px;
  margin:     0 auto 60px;
  z-index: 1;
  position: inherit;
}

/* Eyebrow override — sun-yellow on navy background */
.ph-head .section-label {
  justify-content: center;
  color:           var(--sun);
}
.ph-head .section-label::before,
.ph-head .section-label::after {
  background: var(--sun);
}

.ph-title {
  font-family:    var(--font-display);
  font-size:      clamp(2.4rem, 5vw, 3.74rem);
  font-weight:    900;
  line-height:    1.05;
  color:          var(--sun);
  margin:         14px 0 18px;
  letter-spacing: -0.01em;
}

.ph-sub {
  font-family: var(--font-body);
  font-size:   17px;
  line-height: 1.7;
  color:       rgba(255, 255, 255, 0.78);
  text-align:  center;
}


/* ── Card grid ── */
.prog-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   24px;
  max-width:             1300px;
  margin:                0 auto;
}


/* ── Card ── */
.prog-card {
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow:      hidden;
  transition:    all 0.4s var(--ease-out);
  position:      relative;
}
.prog-card:hover {
  background:   rgba(245, 200, 0, 0.1);
  border-color: var(--sun);
  transform:    translateY(-8px);
  box-shadow:   0 24px 60px rgba(0, 0, 0, 0.3);
}


/* ── Image area with age badge ── */
.prog-img {
  height:   220px;
  overflow: hidden;
  position: relative;
}
.prog-img img {
  display:    block;
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.prog-card:hover .prog-img img { transform: scale(1.08); }

.prog-age-badge {
  position:       absolute;
  top:            16px;
  right:          16px;
  background:     var(--sun);
  color:          var(--navy);
  padding:        4px 12px;
  border-radius:  50px;
  font-family:    var(--font-heading);
  font-size:      11px;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── Body ── */
.prog-body { padding: 24px; }

.prog-title {
  font-family:   var(--font-heading);
  font-size:     1.2rem;
  font-weight:   800;
  color:         var(--white);
  margin-bottom: 8px;
  line-height:   1.2;
}

.prog-desc {
  font-family:   var(--font-body);
  font-size:     13px;
  color:         rgba(255, 255, 255, 0.6);
  line-height:   1.6;
  margin-bottom: 16px;
}


/* ── Tags row ── */
.prog-tags {
  display:   flex;
  flex-wrap: wrap;
  gap:       6px;
}

.prog-tag {
  background:    rgba(255, 255, 255, 0.1);
  color:         rgba(255, 255, 255, 0.75);
  padding:       4px 11px;
  border-radius: 50px;
  font-family:   var(--font-body);
  font-size:     11px;
  font-weight:   600;
}


/* ════════════════════════════════════════════════════════════
   PROGRAMMES HERO — Responsive
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .prog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width:             720px;
  }
}

@media (max-width: 768px) {
  #programmes-hero { padding: 110px 24px 70px; }
  .ph-head         { margin-bottom: 44px; }
}

@media (max-width: 560px) {
  .prog-grid {
    grid-template-columns: 1fr;
    max-width:             360px;
    gap:                   20px;
  }
  .prog-img { height: 200px; }
}


/* ════════════════════════════════════════════════════════════
   WHY CHOOSE US — 40/60 split on sun background
   ════════════════════════════════════════════════════════════ */
#why-choose {
  background: var(--sun);
  padding:    100px 64px;
}

.wc-grid {
  display:               grid;
  grid-template-columns: 2fr 3fr;        /* 40% / 60% */
  gap:                   80px;
  max-width:             1300px;
  margin:                0 auto;
  align-items:           start;
}


/* ── Left column ── */
.wc-left {
  display:        flex;
  flex-direction: column;
  gap:            36px;
}

.wc-head .section-label {
  color: var(--navy);
}
.wc-head .section-label::before,
.wc-head .section-label::after {
  background: var(--navy);
}

.wc-title {
  font-family:    var(--font-display);
  font-size:      clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight:    900;
  line-height:    1.1;
  color:          var(--navy);
  margin:         14px 0 22px;
  letter-spacing: -0.01em;
}

.wc-desc {
  font-family: var(--font-body);
  font-size:   17px;
  line-height: 1.7;
  color:       var(--text-soft);
  max-width:   none;
}

.wc-image {
  border-radius: 20px;
  overflow:      hidden;
  border:        6px solid var(--white);
  box-shadow:    0 25px 60px rgba(15, 27, 61, 0.18);
}
.wc-image img {
  display:      block;
  width:        100%;
  height:       auto;
  aspect-ratio: 16 / 10;
  object-fit:   cover;
}


/* ── Right column ── */
.wc-right {
  padding-top: 6px;            /* tiny offset so head sits ≈ first title-line baseline */
}

.wc-list-head {
  font-family:   'Inter', sans-serif;
  font-size:     18px;
  font-weight:   800;
  line-height:   27px;
  color:         var(--navy);
  margin-bottom: 18px;
}

.wc-list {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

.wc-list li {
  background:    rgba(255, 255, 255, 0.6);   /* #FFFFFF99 */
  border-radius: 14px;
  padding:       14px 20px;
  min-height:    50px;
  display:       flex;
  align-items:   center;
  gap:           16px;
  transition:    background 0.3s ease, transform 0.3s var(--ease-out);
}
.wc-list li:hover {
  background: rgba(255, 255, 255, 0.92);
  transform:  translateX(6px);
}

.wc-num {
  font-family: 'Inter', sans-serif;
  font-size:   22px;
  font-weight: 900;
  line-height: 22px;
  color:       var(--sun);
  flex-shrink: 0;
  min-width:   30px;
}

.wc-text {
  font-family: 'Inter', sans-serif;
  font-size:   14px;
  font-weight: 400;
  line-height: 21px;
  color:       var(--navy);
}


/* ════════════════════════════════════════════════════════════
   WHY CHOOSE US — Responsive
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #why-choose { padding: 80px 32px; }
  .wc-grid {
    grid-template-columns: 1fr;
    gap:                   48px;
  }
  .wc-right { padding-top: 0; }
}

@media (max-width: 768px) {
  #why-choose { padding: 60px 24px; }
  .wc-list li {
    padding: 12px 16px;
    gap:     14px;
  }
}


/* ════════════════════════════════════════════════════════════
   PROGRAMME DETAILS — 4 zigzag sections
   ════════════════════════════════════════════════════════════ */
.prog-detail {
  padding: 100px 64px;
}

.prog-detail--white { background: var(--white); }
.prog-detail--cream { background: var(--cream); }


/* ── Layout grid ── */
.pd-container {
  display:               grid;
  grid-template-columns: 35fr 65fr;
  grid-template-areas: "image content";
  align-items: center;   
  gap:                   72px;
  max-width:             1300px;
  margin:                0 auto;
  align-items:           center;
}

/* Default: image-col is first (left), content-col is second (right).
   When content-left modifier is present, swap the visual order. */
.prog-detail--content-left .pd-image-col   { order: 2; }
.prog-detail--content-left .pd-content-col { order: 1; }
.prog-detail--content-left .pd-container {
  grid-template-columns: 65fr 35fr;    
  grid-template-areas: "content image";
}

/* ── Image ── */
.pd-image {
  position:      relative;
  border-radius: 16px;
  overflow:      hidden;
  border:        8px solid var(--white);
  box-shadow:    0 25px 60px rgba(15, 27, 61, 0.18);
}
.pd-image img {
  display:      block;
  width:        100%;
  height:       auto;
  aspect-ratio: 4 / 3;
  object-fit:   cover;
}

.pd-age-badge {
  position:       absolute;
  top:            14px;
  left:           14px;
  z-index:        2;
  background:     var(--sun);
  color:          var(--navy);
  font-family:    'Inter', sans-serif;
  font-weight:    800;
  font-size:      11px;
  line-height:    16.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding:        6px 12px;
  border-radius:  6px;
}


/* ── Content column ── */
.pd-content-col {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

/* Eyebrow: re-style .section-label with Inter for this page */
.prog-detail .section-label {
  font-family:    'Inter', sans-serif;
  font-weight:    700;
  font-size:      11px;
  line-height:    16.5px;
  letter-spacing: 0.14em;            /* ≈ 1.54px on 11px */
  color:          var(--coral);
}
.prog-detail .section-label::before,
.prog-detail .section-label::after {
  background: var(--coral);
}


/* ── Title row (icon + heading) ── */
.pd-title-row {
  display:     flex;
  align-items: center;
  gap:         20px;
  margin-top:  4px;
}

.pd-icon-box {
  width: 118px;
    height: 114px;
  border-radius:   16px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.pd-icon-box img {
  width:      100%;
  height:     100%;
  object-fit: contain;
}

.pd-title {
  font-family:    'Inter', sans-serif;
  font-size:      clamp(2rem, 3.6vw, 3.25rem);   /* 32 → 52px */
  font-weight:    900;
  line-height:    1.1;
  color:          var(--navy);
  letter-spacing: 0;
  margin:         0;
}


/* ── Subhead ── */
.pd-subhead {
  font-family: 'Inter', sans-serif;
  font-size:   17px;
  font-weight: 800;
  line-height: 23.38px;
  color:       var(--coral);
  margin:      4px 0 0;
}


/* ── Body paragraph ── */
.pd-body {
  font-family: 'Inter', sans-serif;
  font-size:   15px;
  font-weight: 400;
  line-height: 26px;
  color:       var(--text-soft);
  margin:      4px 0 0;
}


/* ── Meta buttons (navy pills with sun text) ── */
.pd-meta {
  display:    flex;
  flex-wrap:  wrap;
  gap:        10px;
  margin-top: 4px;
}

.pd-meta-btn {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  background:     var(--navy);
  color:          var(--sun);
  font-family:    'Inter', sans-serif;
  font-weight:    800;
  font-size:      11px;
  line-height:    16.5px;
  letter-spacing: 0.06em;             /* ≈ 0.66px on 11px */
  text-transform: uppercase;
  padding:        10px 16px;
  border-radius:  8px;
}
.pd-meta-icon { font-size: 12px; line-height: 1; }


/* ── Bullets block ── */
.pd-bullets {
  margin-top: 4px;
}

.pd-bullets--boxed {
  background:    var(--cream);        /* #FFFDF0 */
  padding:       24px 28px;
  border-radius: 12px;
}

.pd-bullets-head {
  font-family:   'Inter', sans-serif;
  font-size:     14px;
  font-weight:   800;
  color:         var(--navy);
  margin:        0 0 14px;
}

.pd-bullets-list {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            10px;
}

.pd-bullets-list li {
  font-family:  'Inter', sans-serif;
  font-size:    14px;
  font-weight:  400;
  line-height:  1.55;
  color:        var(--text-soft);
  padding-left: 20px;
  position:     relative;
}
.pd-bullets-list li::before {
  content:       '';
  position:      absolute;
  left:          0;
  top:           8px;
  width:         7px;
  height:        7px;
  background:    var(--coral);
  border-radius: 50%;
}


/* ── Join Now CTA ── */
.pd-cta {
  align-self:      flex-start;
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  background:      var(--navy);
  color:           var(--sun);
  font-family:     'Inter', sans-serif;
  font-weight:     700;
  font-size:       14px;
  padding:         14px 30px;
  border-radius:   50px;
  text-decoration: none;
  margin-top:      8px;
  transition:      all 0.3s var(--ease-bounce);
}
.pd-cta:hover {
  background: var(--sun);
  color:      var(--navy);
  transform:  translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 27, 61, 0.15);
}
.pd-cta span     { transition: transform 0.3s ease; display: inline-block; }
.pd-cta:hover span { transform: translateX(4px); }


/* ════════════════════════════════════════════════════════════
   PROGRAMME DETAILS — Responsive
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .prog-detail   { padding: 80px 32px; }

  .pd-container,
  .prog-detail--content-left .pd-container {
    display:        flex;
    flex-direction: column;
    gap:            10px;
  }
  .pd-content-col { order: 1; }
  .pd-image-col   { order: 2; }
}

@media (max-width: 768px) {
  .prog-detail    { padding: 60px 24px; }
  .pd-title-row   { gap: 16px; }
  .pd-icon-box    { width: 68px; height: 68px; border-radius: 14px; }
  .pd-bullets--boxed { padding: 20px 22px; }
  .pd-content-col { order: 1; }
  .pd-image-col   { order: 2; }
}

@media (max-width: 480px) {
  .pd-title-row   { flex-wrap: wrap; gap: 12px; }
  .pd-icon-box    { width: 60px; height: 60px; border-radius: 12px; }
  .pd-content-col { order: 1; }
  .pd-image-col   { order: 2; }
}


/* ════════════════════════════════════════════════════════════
   ADMISSIONS CTA — Background image with dark navy overlay
   ════════════════════════════════════════════════════════════ */
#admissions-cta {
  position:   relative;
  padding:    100px 64px;
  overflow:   hidden;
  isolation:  isolate;
  text-align: center;
}

#admissions-cta::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: url('../images/admission-open.png') center / cover no-repeat;
  z-index:    -2;
}

#admissions-cta::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(180deg,
                rgba(15, 27, 61, 0.92) 0%,
                rgba(15, 27, 61, 0.88) 50%,
                rgba(15, 27, 61, 0.93) 100%);
  z-index:    -1;
}

.ac-content {
  max-width: 720px;
  margin:    0 auto;
}

/* Eyebrow — match the Inter treatment used on programme detail sections */
#admissions-cta .section-label {
  justify-content: center;
  font-family:     'Inter', sans-serif;
  font-weight:     700;
  font-size:       11px;
  line-height:     16.5px;
  letter-spacing:  0.14em;
  color:           var(--coral);
}
#admissions-cta .section-label::before,
#admissions-cta .section-label::after {
  background: var(--coral);
}

.ac-title {
  font-family:    'Inter', sans-serif;
  font-size:      clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight:    900;
  line-height:    1.15;
  color:          var(--white);
  margin:         16px 0 18px;
  letter-spacing: -0.01em;
}

.ac-sub {
  font-family: 'Inter', sans-serif;
  font-size:   15px;
  font-weight: 400;
  line-height: 1.7;
  color:       rgba(255, 255, 255, 0.7);
  max-width:   540px;
  margin:      0 auto 32px;
}

.ac-cta {
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  background:      var(--sun);
  color:           var(--navy);
  font-family:     'Inter', sans-serif;
  font-weight:     800;
  font-size:       14px;
  padding:         14px 30px;
  border-radius:   50px;
  text-decoration: none;
  transition:      all 0.3s var(--ease-bounce);
}
.ac-cta:hover {
  background: var(--white);
  transform:  translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.ac-cta span        { display: inline-block; transition: transform 0.3s ease; }
.ac-cta:hover span  { transform: translateX(4px); }


/* ── Responsive ── */
@media (max-width: 768px) {
  #admissions-cta { padding: 70px 24px; }
  .ac-sub         { margin-bottom: 28px; }
}
