/* ============================================================
   Academics Gateway page — page-academics.php
   Premium institutional design using existing brand tokens:
     --mc-purple, --mc-purple-light, --mc-gold, --mc-grey,
     --ink, --paper, --cream, --display, --ease
   Loaded only on this template (conditional enqueue).
   ============================================================ */

.academics-page {
  --ax-purple:        var(--mc-purple, #52247F);
  --ax-purple-light:  var(--mc-purple-light, #6E3FA4);
  --ax-purple-dark:   #2E1349;
  --ax-gold:          var(--mc-gold, #BC9B6A);
  --ax-gold-light:    #D6BA8E;
  --ax-grey:          var(--mc-grey, #5F6062);
  --ax-line:          rgba(82, 36, 127, 0.10);
  --ax-line-strong:   rgba(82, 36, 127, 0.18);
  --ax-bg-soft:       rgba(82, 36, 127, 0.03);
  --ax-bg-tint:       #F8F4FC;
  --ax-radius:        16px;
  --ax-radius-lg:     24px;
  --ax-shadow:        0 24px 56px -24px rgba(46, 22, 66, 0.22);
  --ax-shadow-soft:   0 12px 32px -16px rgba(46, 22, 66, 0.14);
}

/* ------------------------------------------------------------
   Section heads (shared)
   ------------------------------------------------------------ */
.ax-section-head {
  margin: 0 0 40px;
  max-width: 60ch;
}
.ax-section-head--center {
  margin: 0 auto 40px;
  text-align: center;
}
.ax-section-head--split {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
@media (max-width: 880px) {
  .ax-section-head--split { grid-template-columns: 1fr; gap: 16px; }
}
.ax-section-head__intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ax-grey);
  margin: 0;
  max-width: 50ch;
}
.ax-section-head__intro--center {
  margin: 16px auto 0;
}
.ax-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ax-gold);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ax-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ax-gold);
  display: inline-block;
}
.ax-section-head--center .ax-eyebrow {
  justify-content: center;
}
.ax-h2 {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--ax-purple-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.ax-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), background 0.25s var(--ease, ease), color 0.25s ease;
}
.ax-btn--primary {
  background: linear-gradient(135deg, var(--ax-purple), var(--ax-purple-light));
  color: #fff;
  box-shadow: 0 6px 16px rgba(82, 36, 127, 0.18);
}
.ax-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(82, 36, 127, 0.28);
  color: #fff;
}
.ax-btn--ghost {
  background: transparent;
  color: var(--ax-purple);
  border-color: var(--ax-line-strong);
}
.ax-btn--ghost:hover {
  background: var(--ax-bg-soft);
  color: var(--ax-purple);
  transform: translateY(-1px);
}
.ax-btn--lg {
  padding: 16px 30px;
  font-size: 15px;
}

/* ============================================================
   1. HERO
   ============================================================ */
.ax-hero {
  position: relative;
  min-height: clamp(560px, 80vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ax-purple-dark) 0%, var(--ax-purple) 50%, var(--ax-purple-light) 100%);
}
.ax-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ax-hero__bg .swiper-wrapper {
  height: 100%;
}
.ax-hero__slide {
  height: 100%;
}
.ax-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ax-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(46, 19, 73, 0.78) 0%, rgba(82, 36, 127, 0.70) 50%, rgba(110, 63, 164, 0.60) 100%),
    radial-gradient(ellipse at top right, rgba(188, 155, 106, 0.25), transparent 60%);
}
.ax-hero__inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 80px;
  max-width: 880px;
}
.ax-hero__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ax-gold-light);
  font-weight: 600;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ax-hero__kicker::before,
.ax-hero__kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ax-gold-light);
  opacity: 0.6;
}
.ax-hero__heading {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.ax-hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 36px;
  max-width: 56ch;
}
.ax-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ax-hero .ax-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.ax-hero .ax-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.ax-hero__pagination {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.ax-hero__pagination .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: background 0.3s ease, width 0.3s ease;
}
.ax-hero__pagination .swiper-pagination-bullet-active {
  background: var(--ax-gold);
  width: 44px;
}
.ax-hero__scroll {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 32px;
  width: 32px;
  height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.ax-hero__scroll span {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: ax-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes ax-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(10px); opacity: 0.15; }
}
@media (max-width: 600px) {
  .ax-hero__scroll { display: none; }
}

/* ============================================================
   2. OVERVIEW CARDS
   ============================================================ */
.ax-overview {
  background: #fff;
}
.ax-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 880px) {
  .ax-overview__grid { grid-template-columns: 1fr; }
}
.ax-card {
  padding: 32px 28px;
  border-radius: var(--ax-radius);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease);
}
.ax-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ax-shadow);
}
.ax-card--gold {
  background: linear-gradient(150deg, #FDF6E8 0%, #FFFFFF 60%);
  border: 1px solid rgba(188, 155, 106, 0.20);
}
.ax-card--purple {
  background: linear-gradient(150deg, #F1E9F9 0%, #FFFFFF 60%);
  border: 1px solid var(--ax-line-strong);
}
.ax-card--ink {
  background: linear-gradient(150deg, var(--ax-purple-dark) 0%, var(--ax-purple) 100%);
  color: #fff;
}
.ax-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ax-purple);
}
.ax-card--gold .ax-card__icon { color: #75592b; background: rgba(255, 255, 255, 0.85); }
.ax-card--ink .ax-card__icon  { background: rgba(255, 255, 255, 0.12); color: var(--ax-gold-light); }
.ax-card__icon svg { width: 28px; height: 28px; }
.ax-card__title {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.ax-card--gold .ax-card__title  { color: #5d4520; }
.ax-card--purple .ax-card__title{ color: var(--ax-purple-dark); }
.ax-card--ink .ax-card__title   { color: #fff; }
.ax-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ax-card__list li {
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ax-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex: 0 0 6px;
}
.ax-card__list li:last-child { border-bottom: none; }
.ax-card--ink .ax-card__list li {
  border-bottom-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   3. FEATURED PROGRAMMES
   ============================================================ */
.ax-featured {
  background: var(--ax-bg-tint);
  position: relative;
}
.ax-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(188, 155, 106, 0.06) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(82, 36, 127, 0.05) 0, transparent 40%);
  pointer-events: none;
}
.ax-featured .container { position: relative; }
.ax-prog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 980px) { .ax-prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ax-prog-grid { grid-template-columns: 1fr; } }
.ax-prog {
  background: #fff;
  border-radius: var(--ax-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ax-shadow-soft);
  transition: transform 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease);
}
.ax-prog:hover {
  transform: translateY(-6px);
  box-shadow: var(--ax-shadow);
}
.ax-prog__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ax-bg-soft);
}
.ax-prog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease, ease);
}
.ax-prog:hover .ax-prog__media img { transform: scale(1.05); }
.ax-prog__media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ax-purple) 0%, var(--ax-purple-light) 100%);
  color: var(--ax-gold-light);
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ax-prog__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--ax-purple);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ax-prog__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.ax-prog__faculty {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ax-gold);
  font-weight: 600;
  margin: 0;
}
.ax-prog__title {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ax-prog__title a {
  color: var(--ax-purple-dark);
  text-decoration: none;
}
.ax-prog__title a:hover { color: var(--ax-purple); }
.ax-prog__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ax-grey);
  margin: 0;
}
.ax-prog__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--ax-line);
}
.ax-prog__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ax-prog__meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ax-grey);
  font-weight: 600;
}
.ax-prog__meta-value {
  font-size: 14px;
  color: var(--ax-purple-dark);
  font-weight: 500;
}
.ax-prog__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ax-purple);
  text-decoration: none;
  align-self: flex-start;
}
.ax-prog__cta svg { transition: transform 0.2s ease; }
.ax-prog__cta:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   4. WHY MCU
   ============================================================ */
.ax-why {
  background: #fff;
  position: relative;
}
.ax-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 880px) { .ax-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ax-why__grid { grid-template-columns: 1fr; } }
.ax-why__block {
  text-align: left;
  padding: 8px 4px;
}
.ax-why__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ax-purple) 0%, var(--ax-purple-light) 100%);
  color: var(--ax-gold-light);
  margin-bottom: 18px;
  position: relative;
}
.ax-why__icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(188, 155, 106, 0.3), transparent);
  z-index: -1;
}
.ax-why__icon .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  line-height: 1;
}
.ax-why__title {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ax-purple-dark);
  letter-spacing: -0.01em;
}
.ax-why__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ax-grey);
  margin: 0;
}

/* ============================================================
   5. CALENDAR
   ============================================================ */
.ax-cal {
  background: linear-gradient(180deg, #fff 0%, var(--ax-bg-tint) 100%);
}
.ax-cal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
}
@media (max-width: 880px) {
  .ax-cal__layout { grid-template-columns: 1fr; gap: 32px; }
}
.ax-cal__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ax-cal__row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  box-shadow: var(--ax-shadow-soft);
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), border-color 0.25s ease;
}
.ax-cal__row:hover {
  transform: translateX(4px);
  border-color: var(--ax-line-strong);
  box-shadow: var(--ax-shadow);
}
.ax-cal__date {
  flex: 0 0 60px;
  text-align: center;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--ax-purple) 0%, var(--ax-purple-light) 100%);
  border-radius: 12px;
  color: #fff;
}
.ax-cal__month {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ax-gold-light);
  font-weight: 600;
}
.ax-cal__day {
  display: block;
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-top: 4px;
}
.ax-cal__body { flex: 1 1 auto; min-width: 0; }
.ax-cal__event {
  font-size: 16px;
  font-weight: 600;
  color: var(--ax-purple-dark);
  margin: 0 0 4px;
}
.ax-cal__meta {
  font-size: 13px;
  color: var(--ax-grey);
  margin: 0;
}
.ax-cal__meta span { opacity: 0.5; margin: 0 4px; }
.ax-cal__empty {
  padding: 24px;
  background: var(--ax-bg-soft);
  border-radius: var(--ax-radius);
  text-align: center;
  color: var(--ax-grey);
  margin: 0;
}
.ax-cal__side {
  padding: 32px 28px;
  background: linear-gradient(150deg, var(--ax-purple-dark) 0%, var(--ax-purple) 100%);
  border-radius: var(--ax-radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ax-cal__side::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 155, 106, 0.25), transparent 70%);
}
.ax-cal__side h3 {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: 22px;
  margin: 0 0 18px;
  position: relative;
}
.ax-cal__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.ax-cal__tags li {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.90);
}
.ax-cal__side .ax-btn--primary {
  background: linear-gradient(135deg, var(--ax-gold) 0%, var(--ax-gold-light) 100%);
  color: var(--ax-purple-dark);
  position: relative;
  font-weight: 700;
}
.ax-cal__side .ax-btn--primary:hover {
  color: var(--ax-purple-dark);
  box-shadow: 0 10px 24px rgba(188, 155, 106, 0.35);
}

/* ============================================================
   6. LEARNING EXPERIENCE — mosaic
   ============================================================ */
.ax-exp {
  background: #fff;
}
.ax-exp__mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.ax-exp__tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--ax-radius);
  background: var(--ax-bg-soft);
  box-shadow: var(--ax-shadow-soft);
}
.ax-exp__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease, ease);
}
.ax-exp__tile:hover img { transform: scale(1.06); }
.ax-exp__tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(46, 19, 73, 0.78) 0%, transparent 100%);
  letter-spacing: 0.02em;
}

/* Mosaic layout — first big, then varied sizes */
.ax-exp__tile--1 { grid-column: span 3; grid-row: span 2; }
.ax-exp__tile--2 { grid-column: span 3; grid-row: span 1; }
.ax-exp__tile--3 { grid-column: span 3; grid-row: span 1; }
.ax-exp__tile--4 { grid-column: span 2; grid-row: span 1; }
.ax-exp__tile--5 { grid-column: span 2; grid-row: span 1; }
.ax-exp__tile--6 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 880px) {
  .ax-exp__mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .ax-exp__tile--1 { grid-column: span 2; grid-row: span 1; }
  .ax-exp__tile--2,
  .ax-exp__tile--3,
  .ax-exp__tile--4,
  .ax-exp__tile--5,
  .ax-exp__tile--6 { grid-column: span 1; }
}

/* ============================================================
   7. SEARCH / FILTER
   ============================================================ */
.ax-search {
  background: var(--ax-bg-tint);
  position: relative;
  overflow: hidden;
}
.ax-search::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 36, 127, 0.06), transparent 70%);
  pointer-events: none;
}
.ax-search .container { position: relative; }
.ax-search__form {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 22px;
  background: #fff;
  border-radius: var(--ax-radius);
  box-shadow: var(--ax-shadow-soft);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .ax-search__form { grid-template-columns: 1fr 1fr; }
  .ax-search__field--keyword { grid-column: 1 / -1; }
  .ax-search__form .ax-btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ax-search__form { grid-template-columns: 1fr; }
}
.ax-search__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ax-search__field > span:not(.screen-reader-text) {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ax-grey);
}
.ax-search__field input[type="search"],
.ax-search__field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ax-purple-dark);
}
.ax-search__field input[type="search"]:focus,
.ax-search__field select:focus {
  outline: none;
  border-color: var(--ax-purple);
  box-shadow: 0 0 0 3px rgba(82, 36, 127, 0.12);
}

/* ============================================================
   8. CTA BANNER
   ============================================================ */
.ax-cta {
  background:
    linear-gradient(135deg, var(--ax-purple-dark) 0%, var(--ax-purple) 60%, var(--ax-purple-light) 100%),
    radial-gradient(ellipse at top right, rgba(188, 155, 106, 0.25), transparent 60%);
  background-blend-mode: normal, overlay;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ax-cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 155, 106, 0.20), transparent 70%);
  pointer-events: none;
}
.ax-cta__inner {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  max-width: 760px;
}
.ax-cta__inner.container { margin: 0 auto; }
.ax-cta__heading {
  font-family: var(--display, "Cormorant Garamond", serif);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.ax-cta__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 36px;
}
.ax-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.ax-cta .ax-btn--primary {
  background: linear-gradient(135deg, var(--ax-gold) 0%, var(--ax-gold-light) 100%);
  color: var(--ax-purple-dark);
  font-weight: 700;
}
.ax-cta .ax-btn--primary:hover {
  color: var(--ax-purple-dark);
  box-shadow: 0 14px 32px rgba(188, 155, 106, 0.35);
}
.ax-cta .ax-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.ax-cta .ax-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* ============================================================
   Scroll reveal — applied via JS by data-ax-reveal
   ============================================================ */
[data-ax-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease, ease), transform 0.7s var(--ease, ease);
}
[data-ax-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Skip animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-ax-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ax-hero__scroll span { animation: none; }
}



/* ============================================================
   v2.9.4 — Consolidated refinements
   Replaces the three layered patches from v2.9.1, v2.9.2, v2.9.3
   with a single audited block. Every selector below resolves to
   real DOM produced by page-academics.php.
   ============================================================ */

/* ------------------------------------------------------------
   Page scope: spacing & container width (was v2.9.1)
   Scoped under .academics-page so the gateway works whether the
   page is loaded via Template Name assignment OR via WP's
   page-{slug}.php hierarchy (e.g. a /academics/ page).
   ------------------------------------------------------------ */
.academics-page .section-pad {
  padding: clamp(72px, 8vw, 128px) 0;
}
.academics-page .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.academics-page .ax-search__form .ax-btn {
  border: 0;
  min-height: 48px;
  justify-content: center;
}
.academics-page .ax-cta {
  margin-top: 0;
}

@media (max-width: 640px) {
  .academics-page .section-pad   { padding: 56px 0; }
  .academics-page .container     { width: min(100% - 32px, 1180px); }
  .academics-page .ax-search__form { padding: 18px; }
}

/* ------------------------------------------------------------
   Hero: premium overlay, white-on-purple contrast, gold CTA
   (was v2.9.3 hero block; resolves the v2.9.2 dark-text override
   conflict by keeping only the white version.)
   ------------------------------------------------------------ */
.academics-page .ax-hero {
  min-height: clamp(620px, 82vh, 820px);
  isolation: isolate;
  background: #1b0d31;
}
.academics-page .ax-hero__bg img {
  filter: saturate(1.04) contrast(1.05) brightness(0.86);
}
.academics-page .ax-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(18, 8, 31, 0.92) 0%,
      rgba(34, 14, 56, 0.78) 36%,
      rgba(72, 35, 102, 0.42) 66%,
      rgba(72, 35, 102, 0.22) 100%
    ),
    radial-gradient(circle at 18% 42%, rgba(212, 162, 76, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.28));
}
.academics-page .ax-hero__inner {
  max-width: 760px;
  padding-top: clamp(120px, 13vw, 180px);
  padding-bottom: clamp(96px, 10vw, 150px);
}
.academics-page .ax-hero__kicker {
  color: #d9b572;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.academics-page .ax-hero__kicker::before,
.academics-page .ax-hero__kicker::after {
  background: rgba(217, 181, 114, 0.72);
}
.academics-page .ax-hero__heading {
  color: #fff;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
  max-width: 780px;
}
.academics-page .ax-hero__sub {
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
}
.academics-page .ax-hero__actions .ax-btn--primary {
  background: #d4a24c;
  color: #1b0d31;
  border-color: #d4a24c;
  box-shadow: 0 18px 40px rgba(212, 162, 76, 0.26);
}
.academics-page .ax-hero__actions .ax-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.academics-page .ax-hero__actions .ax-btn:hover {
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Why MountCrest: flat gold icons, no purple block backgrounds
   (was v2.9.3 value icons block; v2.9.2's parallel attempt
    against .ax-feature__icon / .feature-icon / .why-card__icon /
    .aureus-icon-box has been dropped — none of those classes
    are emitted by the template.)
   ------------------------------------------------------------ */
.academics-page .ax-why__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #b07a35;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  place-items: unset;
}
.academics-page .ax-why__icon::before {
  display: none;
  content: none;
}
.academics-page .ax-why__icon .dashicons {
  font-size: 34px;
  width: 34px;
  height: 34px;
  color: #b07a35;
  line-height: 1;
}
.academics-page .ax-why__grid {
  gap: clamp(34px, 5vw, 72px);
}
.academics-page .ax-why__block {
  padding: 0;
}
.academics-page .ax-why__title {
  color: #2e1349;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}
.academics-page .ax-why__text {
  color: rgba(40, 38, 50, 0.74);
  font-size: 15.5px;
}

/* ------------------------------------------------------------
   Programme cards: keep real featured images, gracefully handle
   programmes that don't have one. (v2.9.3 hid the entire
   .ax-prog__media wrapper which killed real images too — fixed.)

   Strategy: the template now only emits .ax-prog__media when a
   real image exists. Cards without an image get .ax-prog--no-media
   and an inline badge inside the body instead of the absolute one.
   The .ax-prog__media-fallback rule below is kept as a safety net
   for older template versions.
   ------------------------------------------------------------ */
.academics-page .ax-prog__media-fallback {
  display: none;
}
.academics-page .ax-prog {
  border: 1px solid rgba(72, 35, 102, 0.10);
  box-shadow: 0 18px 50px rgba(25, 16, 44, 0.08);
}
/* Image-less cards: a touch more body breathing room since there's
   no media block above. */
.academics-page .ax-prog--no-media .ax-prog__body {
  padding-top: 28px;
  gap: 14px;
}
/* The inline qualification badge that replaces the absolute one
   when a card has no image. Self-aligned to the start so it sits
   like an eyebrow above the title. */
.academics-page .ax-prog__badge--inline {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  background: rgba(72, 35, 102, 0.08);
  color: #482366;
  margin-bottom: -2px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: none;
}

/* ------------------------------------------------------------
   CTA banner before footer: typography contrast safeguard
   (was v2.9.2 .ax-cta typography rules; .academics-cta /
    .programme-cta / .cta-section selectors removed — not emitted.)
   ------------------------------------------------------------ */
.academics-page .ax-cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 162, 76, 0.16), transparent 34%),
    linear-gradient(135deg, #2a103f 0%, #482366 58%, #5b2a86 100%);
  color: #fff;
}
.academics-page .ax-cta h1,
.academics-page .ax-cta h2,
.academics-page .ax-cta h3,
.academics-page .ax-cta .ax-h2 {
  color: #fff;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.academics-page .ax-cta p,
.academics-page .ax-cta .ax-section-head__intro {
  color: rgba(255, 255, 255, 0.88);
}

/* ------------------------------------------------------------
   Mobile refinements (consolidated from all three patches)
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .academics-page .ax-hero {
    min-height: auto;
  }
  .academics-page .ax-hero__inner {
    padding-top: 104px;
    padding-bottom: 92px;
  }
  .academics-page .ax-hero__overlay {
    background:
      linear-gradient(180deg, rgba(18, 8, 31, 0.88), rgba(40, 16, 64, 0.72)),
      radial-gradient(circle at 30% 35%, rgba(212, 162, 76, 0.14), transparent 38%);
  }
  .academics-page .ax-hero__actions {
    width: 100%;
  }
  .academics-page .ax-hero__actions .ax-btn {
    width: 100%;
    justify-content: center;
  }
  .academics-page .ax-why__icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
  }
}
