/* v24.27 — Homepage visual polish: hero context, programme summary and student journey */

/* Hero label: a calm, legible glass surface that adapts to an assigned image. */
.reference-pill.hero-pill-v24-27 {
  gap: 8px;
  max-width: min(100%, 510px);
  padding: 9px 17px 9px 11px;
  color: #1747d1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.88));
  border-color: rgba(23, 71, 209, 0.22);
  box-shadow:
    0 12px 30px rgba(11, 46, 158, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.hero-pill-v24-27 .hero-pill-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1747d1;
  background: rgba(23, 71, 209, 0.09);
  border: 1px solid rgba(23, 71, 209, 0.12);
  border-radius: 50%;
}

.hero-pill-v24-27 .hero-pill-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-pill-v24-27 > span:not(.hero-pill-mark) {
  white-space: nowrap;
}

.hero-pill-v24-27 > i {
  flex: none;
  width: 4px;
  height: 4px;
  background: #d5a20c;
  border-radius: 50%;
}

.reference-hero.has-sri-hero-media .hero-pill-v24-27,
.reference-hero.sri-dynamic-hero .hero-pill-v24-27,
.reference-hero:has(.sri-hero-media) .hero-pill-v24-27 {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 29, 81, 0.82), rgba(14, 65, 163, 0.68));
  border-color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 8px rgba(4, 20, 58, 0.46);
  box-shadow:
    0 14px 34px rgba(4, 24, 72, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reference-hero.has-sri-hero-media .hero-pill-mark,
.reference-hero.sri-dynamic-hero .hero-pill-mark,
.reference-hero:has(.sri-hero-media) .hero-pill-mark {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Programme summary: four visible milestones for four actual programmes. */
.reference-panel-footer.program-footer-v24-27 {
  gap: 18px;
  min-height: 62px;
  padding: 9px 13px 9px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  border-color: rgba(23, 71, 209, 0.14);
  box-shadow: inset 0 1px 0 #fff;
}

.program-footer-copy {
  display: flex;
  flex: none;
  flex-direction: column;
  min-width: 116px;
}

.program-footer-copy > span {
  color: #6b7590;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.program-footer-copy > strong {
  margin-top: 3px;
  color: #0b1739;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.program-milestones {
  position: relative;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  max-width: 228px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-milestones::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 14px;
  left: 14px;
  height: 2px;
  background:
    linear-gradient(90deg, #1747d1 0 33%, #20bccc 33% 66%, #d6a10a 66% 100%);
  transform: translateY(-50%);
  opacity: 0.55;
}

.program-milestones li {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.program-milestones li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1747d1;
  background: #eef3ff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(23, 71, 209, 0.28),
    0 5px 12px rgba(11, 46, 158, 0.12);
}

.program-milestones li:nth-child(2) > span {
  color: #087f91;
  background: #e4fafb;
  box-shadow:
    0 0 0 1px rgba(20, 170, 187, 0.36),
    0 5px 12px rgba(11, 46, 158, 0.12);
}

.program-milestones li:nth-child(3) > span {
  color: #9b6c00;
  background: #fff3cf;
  box-shadow:
    0 0 0 1px rgba(210, 154, 0, 0.38),
    0 5px 12px rgba(11, 46, 158, 0.12);
}

.program-milestones li:nth-child(4) > span {
  color: #fff;
  background: linear-gradient(145deg, #285be0, #123dbf);
  box-shadow:
    0 0 0 1px rgba(23, 71, 209, 0.3),
    0 6px 14px rgba(11, 46, 158, 0.2);
}

/* Student journey: one coherent SVG family with clear semantic meaning. */
.reference-journey-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 46px rgba(4, 38, 122, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reference-journey-card h3 {
  color: #0b1739;
  letter-spacing: -0.015em;
}

.journey-node {
  grid-template-columns: 53px minmax(0, 1fr);
}

.journey-node > .journey-icon {
  border: 1px solid currentColor;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.56);
}

.journey-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-blue .journey-icon-accent {
  stroke: #d39b08;
}

.node-cyan .journey-icon-accent {
  stroke: #087f91;
  stroke-width: 1.9;
}

.node-gold .journey-icon-accent {
  stroke: #1747d1;
}

.journey-node strong {
  color: #0b1739;
  font-weight: 820;
}

.journey-dots {
  border-color: rgba(25, 181, 207, 0.78);
}

@media (max-width: 960px) {
  .reference-hero-inner {
    padding-top: 84px;
  }
}

@media (max-width: 680px) {
  .reference-hero-inner {
    padding-top: 78px;
  }

  .reference-pill.hero-pill-v24-27 {
    flex-wrap: wrap;
    row-gap: 5px;
    max-width: calc(100% - 10px);
    min-height: 46px;
    padding: 8px 13px 8px 9px;
    font-size: 12px;
    line-height: 1.25;
  }

  .hero-pill-v24-27 .hero-pill-mark {
    width: 27px;
    height: 27px;
  }

  .reference-panel-footer.program-footer-v24-27 {
    gap: 10px;
    min-height: 62px;
    padding-inline: 11px;
  }

  .program-footer-copy {
    min-width: 103px;
  }

  .program-footer-copy > span {
    font-size: 9px;
  }

  .program-footer-copy > strong {
    font-size: 12px;
  }

  .program-milestones {
    max-width: 176px;
  }

  .program-milestones li > span {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }

  .reference-journey-card {
    grid-template-columns:
      minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 3px;
    min-height: 172px;
    padding: 52px 14px 16px;
  }

  .reference-journey-card h3 {
    top: 16px;
  }

  .journey-node {
    gap: 7px;
    min-width: 0;
    margin-top: 0;
  }

  .journey-node > .journey-icon {
    width: 46px;
    height: 46px;
  }

  .journey-icon svg {
    width: 24px;
    height: 24px;
  }

  .journey-node strong {
    text-align: center;
    font-size: 12px;
  }

  .journey-dots {
    width: 18px;
    margin-top: 22px;
  }
}

@media (max-width: 360px) {
  .reference-pill.hero-pill-v24-27 {
    gap: 6px;
    max-width: 100%;
  }

  .hero-pill-v24-27 .hero-pill-mark {
    display: none;
  }

  .reference-panel-footer.program-footer-v24-27 {
    gap: 7px;
    padding-inline: 9px;
  }

  .program-footer-copy {
    min-width: 95px;
  }

  .program-footer-copy > span {
    letter-spacing: 0.045em;
  }

  .program-milestones {
    max-width: 154px;
  }

  .program-milestones li > span {
    width: 23px;
    height: 23px;
  }

  .reference-journey-card {
    grid-template-columns:
      minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .journey-dots {
    width: 14px;
  }

  .journey-node > .journey-icon {
    width: 43px;
    height: 43px;
  }

  .journey-node strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-node > .journey-icon {
    transition: none;
  }
}
