.page-academics .page-body {
  width: 100%;
  padding: 0;
  background: #ffffff;
}

.program-hero-ref {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, #f2f7ff 0%, #f6faff 34%, rgba(246, 250, 255, 0.88) 52%, rgba(246, 250, 255, 0.25) 100%),
    radial-gradient(circle at 28% 35%, rgba(46, 99, 187, 0.1), transparent 24rem);
}

.program-hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64rem, 64vw);
  background:
    linear-gradient(90deg, #f2f7ff 0%, rgba(242, 247, 255, 0.78) 21%, rgba(242, 247, 255, 0) 42%),
    var(--program-hero-image) center right / cover no-repeat;
}

.program-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100% - 160px));
  min-height: 13rem;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 2.15rem 0;
}

.program-hero-copy {
  width: min(33rem, 100%);
}

.program-hero-copy h1 {
  position: relative;
  margin: 0;
  color: #123d9c;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.program-hero-copy h1::after {
  content: "";
  display: block;
  width: 4.3rem;
  height: 0.18rem;
  margin-top: 0.7rem;
  background: #f3d21b;
}

.program-hero-copy p {
  max-width: 31rem;
  margin: 1rem 0 0;
  color: #071936;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  font-weight: 500;
}

.program-content-shell {
  width: min(1390px, calc(100% - 160px));
  margin: 1.2rem auto 1.6rem;
}

.program-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.program-detail-card {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) minmax(12rem, 0.86fr);
  grid-template-areas:
    "icon intro intro"
    "photo photo info"
    "action action action";
  gap: 0.95rem 1rem;
  min-height: 0;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 0.62rem;
  box-shadow: 0 12px 28px rgba(13, 49, 100, 0.04);
}

.program-card-icon {
  grid-area: icon;
  width: 5.1rem;
  height: 5.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.48rem;
  background: linear-gradient(180deg, #0b43b3, #073798);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(8, 53, 148, 0.16);
}

.program-card-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-card-intro {
  grid-area: intro;
  min-width: 0;
  padding-top: 0.2rem;
}

.program-card-intro h2 {
  margin: 0;
  color: #07389a;
  font-size: clamp(1.35rem, 1.55vw, 1.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.program-card-intro p {
  margin: 0.82rem 0 0;
  color: #061735;
  font-size: 0.94rem;
  line-height: 1.72;
  font-weight: 500;
}

.program-card-photo {
  grid-area: photo;
  width: 100%;
  height: 11.8rem;
  object-fit: cover;
  border-radius: 0.44rem;
}

.program-card-photo-small {
  height: 11.8rem;
}

.program-card-photo-tall {
  height: 11.8rem;
}

.program-info-list {
  grid-area: info;
  display: grid;
  align-self: stretch;
  min-height: 11.8rem;
  overflow: hidden;
  border-top: 1px solid #d8e2ef;
  border-bottom: 1px solid #d8e2ef;
}

.program-info-row {
  display: grid;
  grid-template-columns: 1.42rem minmax(4.4rem, 0.76fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 2.72rem;
  padding: 0.45rem 0.12rem 0.45rem 0;
  border-bottom: 1px solid #d8e2ef;
  color: #061735;
}

.program-info-row:last-child {
  border-bottom: 0;
}

.program-info-icon {
  width: 1.42rem;
  height: 1.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #0b43b3;
}

.program-info-icon svg {
  width: 0.86rem;
  height: 0.86rem;
  fill: currentColor;
}

.program-info-label {
  color: #071936;
  font-size: 0.74rem;
  font-weight: 800;
}

.program-info-row strong {
  color: #051636;
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 700;
}

.program-view-btn {
  grid-area: action;
  align-self: end;
  justify-self: start;
  min-width: 9.5rem;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 0.56rem 1.15rem;
  border-radius: 0.28rem;
  background: linear-gradient(180deg, #0c49bd, #073896);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(8, 53, 148, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.program-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(8, 53, 148, 0.2);
}

.program-view-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.program-empty-card {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid #d9e4f2;
  border-radius: 0.62rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 49, 100, 0.04);
  text-align: center;
}

.program-empty-card h2 {
  margin: 0;
  color: #07389a;
  font-size: 1.35rem;
}

.program-empty-card p {
  margin: 0.6rem 0 0;
  color: #061735;
}

.program-detail-hero {
  width: min(1390px, calc(100% - 160px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin: 1.2rem auto 1.6rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 62%, #fff9d9 100%);
  border: 1px solid #d9e4f2;
  border-radius: 0.72rem;
  box-shadow: 0 18px 34px rgba(13, 49, 100, 0.07);
}

.program-detail-hero-copy {
  min-width: 0;
}

.program-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: #0b43b3;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.program-back-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.program-detail-kicker,
.program-section-heading span {
  display: inline-flex;
  color: #b99400;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-detail-hero h1 {
  max-width: 48rem;
  margin: 0.45rem 0 0;
  color: #07389a;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.program-detail-hero p {
  max-width: 49rem;
  margin: 1rem 0 0;
  color: #061735;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
  font-weight: 500;
}

.program-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.program-outline-btn {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.15rem;
  border: 1px solid #b8c7da;
  border-radius: 0.28rem;
  background: #ffffff;
  color: #07389a;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.program-detail-hero-media {
  min-width: 0;
}

.program-detail-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0.58rem;
  box-shadow: 0 18px 30px rgba(8, 53, 148, 0.16);
}

.program-detail-main {
  width: min(1390px, calc(100% - 160px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
  gap: 1.5rem;
  margin: 0 auto 2rem;
}

.program-detail-panel,
.program-quick-card {
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 0.62rem;
  box-shadow: 0 12px 28px rgba(13, 49, 100, 0.04);
}

.program-detail-panel {
  padding: clamp(1rem, 2vw, 1.6rem);
}

.program-section-heading h2,
.program-quick-card h2 {
  margin: 0.35rem 0 0;
  color: #07389a;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.program-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.program-detail-info-card {
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid #d8e2ef;
  border-radius: 0.52rem;
  background: #f8fbff;
}

.program-detail-info-card .program-info-icon {
  width: 2.2rem;
  height: 2.2rem;
}

.program-detail-info-card .program-info-icon svg {
  width: 1.18rem;
  height: 1.18rem;
}

.program-detail-info-card h3 {
  margin: 0.75rem 0 0;
  color: #071936;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.program-detail-info-card p {
  margin: 0.45rem 0 0;
  color: #061735;
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 500;
}

.program-detail-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #061735;
}

.program-detail-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.program-quick-card {
  padding: 1.1rem;
}

.program-quick-card p {
  margin: 0.7rem 0 0;
  color: #061735;
  font-size: 0.94rem;
  line-height: 1.6;
  font-weight: 500;
}

.program-quick-card > a,
.program-related-list a {
  display: inline-flex;
  margin-top: 0.85rem;
  color: #0b43b3;
  font-weight: 900;
  text-decoration: none;
}

.program-related-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.program-related-list a {
  margin-top: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #d8e2ef;
}

@media (max-width: 1280px) {
  .program-hero-inner,
  .program-content-shell,
  .program-detail-hero,
  .program-detail-main {
    width: min(1220px, calc(100% - 36px));
  }

  .program-card-grid {
    gap: 1rem;
  }

  .program-detail-card {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(11rem, 0.88fr);
  }

  .program-info-row {
    grid-template-columns: 1.42rem minmax(4rem, 0.72fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .program-detail-hero,
  .program-detail-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1060px) {
  .program-card-grid {
    grid-template-columns: 1fr;
  }

  .program-detail-card {
    grid-template-columns: 5.2rem minmax(0, 1fr) minmax(12rem, 0.86fr);
  }
}

@media (max-width: 760px) {
  .program-hero-ref,
  .program-hero-inner {
    min-height: 18rem;
  }

  .program-hero-visual {
    width: 100%;
    opacity: 0.36;
  }

  .program-hero-inner {
    width: min(100%, calc(100% - 1rem));
    padding: 2rem 0;
  }

  .program-hero-copy {
    width: min(100%, 32rem);
    padding: 1.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
  }

  .program-content-shell {
    width: min(100%, calc(100% - 1rem));
    margin-top: 0.8rem;
  }

  .program-detail-hero,
  .program-detail-main {
    width: min(100%, calc(100% - 1rem));
  }

  .program-detail-hero {
    padding: 0.85rem;
  }

  .program-detail-info-grid {
    grid-template-columns: 1fr;
  }

  .program-detail-actions .program-view-btn,
  .program-outline-btn {
    width: 100%;
  }

  .program-detail-card {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    grid-template-areas:
      "icon intro"
      "photo photo"
      "info info"
      "action action";
    min-height: 0;
    padding: 0.8rem;
    gap: 0.95rem;
  }

  .program-card-icon {
    width: 4.7rem;
    height: 4.7rem;
  }

  .program-card-icon svg {
    width: 3rem;
    height: 3rem;
  }

  .program-card-photo-small,
  .program-card-photo-tall {
    height: clamp(12rem, 58vw, 17rem);
  }

  .program-info-list {
    min-height: 0;
  }

  .program-info-row {
    grid-template-columns: 1.5rem minmax(6.5rem, 8.5rem) minmax(0, 1fr);
    gap: 0.58rem;
  }

  .program-view-btn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .program-detail-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "intro"
      "photo"
      "info"
      "action";
  }

  .program-info-row {
    grid-template-columns: 1.5rem 1fr;
  }

  .program-info-row strong {
    grid-column: 2;
  }
}
