/* ============================================
   Musaliar Group of Institutions — Styles
   ============================================ */

:root {
  --navy: #1e3a5f;
  --navy-dark: #0f2744;
  --navy-light: #2d5a8a;
  --gold: #e07b39;
  --gold-dark: #c46228;
  --gold-light: #f4a261;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --gray-100: #eef2f7;
  --gray-200: #d9e2ec;
  --gray-400: #829ab1;
  --gray-600: #486581;
  --gray-800: #243b53;
  --text: #243b53;
  --shadow: 0 4px 24px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 12px 40px rgba(30, 58, 95, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --font-serif: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 88px;
  --brand-logo-h: 80px;
  --brand-logo-h-sm: 42px;
  --top-bar-height: 38px;
  --container-max: 1380px;
  --container-padding: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html {
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.link-arrow.gold-link {
  color: var(--gold);
}

.link-arrow.gold-link:hover {
  color: var(--gold-dark);
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--top-bar-height);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top-bar-height);
  gap: 16px;
}

.top-bar p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar p a {
  font-weight: 700;
  text-decoration: underline;
}

.top-bar-links {
  display: flex;
  gap: 20px;
}

.top-bar-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.text-gold {
  color: var(--gold);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 10px;
  color: var(--gold-dark);
}

.link-arrow.light {
  color: var(--gold);
}

.link-arrow.light:hover {
  color: var(--gold-light);
}

/* Button & link arrow hover animation */
.btn i.fa-arrow-right,
.link-arrow i.fa-arrow-right {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover i.fa-arrow-right,
.link-arrow:hover i.fa-arrow-right {
  animation: arrowSlide 0.8s ease-in-out infinite;
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Typewriter effect */
.typewriter-line {
  min-height: 1.15em;
}

.typewriter-cursor {
  color: var(--gold);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite, cursorGlow 2s ease-in-out infinite;
  text-shadow:
    0 0 6px rgba(224, 123, 57, 0.75),
    0 0 14px rgba(224, 123, 57, 0.4);
}

.typewriter-cursor.hidden {
  opacity: 0;
  animation: none;
  text-shadow: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes cursorGlow {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(224, 123, 57, 0.75),
      0 0 14px rgba(224, 123, 57, 0.4);
  }
  50% {
    text-shadow:
      0 0 10px rgba(224, 123, 57, 1),
      0 0 22px rgba(224, 123, 57, 0.65),
      0 0 36px rgba(224, 123, 57, 0.3);
  }
}

/* Scroll reveal animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.institutions-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.institutions-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.institutions-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* Shared carousel */
.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.carousel-nav:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.carousel-nav.sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}


/* ---- Section Common ---- */
.section {
  padding: 80px 0;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label.light {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.section-title.light {
  color: var(--white);
}

.section-header.center {
  text-align: center;
  margin-bottom: 48px;
}

.section-cta {
  margin-top: 48px;
}

.center {
  text-align: center;
}

body.mobile-nav-open {
  overflow: hidden;
  overflow-x: hidden;
}

body.mobile-nav-open .mce-header {
  z-index: 1001;
}

/* ---- Index page: MCE header (no top bar) ---- */
body.index-page {
  --top-bar-height: 0px;
  --header-h: var(--header-height);
  --landing-sub-header-h: 28px;
  --landing-header-total: calc(var(--header-height) + var(--landing-sub-header-h));
  --site-affiliation-bar-h: var(--landing-sub-header-h);
  --header-stack-h: var(--landing-header-total);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body.index-page .mce-header-inner {
  height: var(--header-height);
  position: relative;
}

body.index-page .mce-header {
  top: var(--site-affiliation-bar-h);
  height: var(--header-height);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.index-page .hero {
  overflow-x: clip;
}

body.index-page .hero-grid,
body.index-page .hero-content {
  min-width: 0;
}

body.index-page .mce-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(30, 58, 95, 0.1);
}

body.index-page .mce-header.scrolled .mce-brand-logo {
  mix-blend-mode: normal;
}

.mce-brand:has(.mce-brand-tagline) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.25;
  gap: 3px;
  flex-shrink: 1;
  min-width: 0;
}

.mce-brand:has(.mce-brand-taglines) {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  line-height: 1.2;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(28rem, 46vw);
}

.mce-brand:has(.mce-brand-tagline) .mce-brand-logo,
.mce-brand:has(.mce-brand-taglines) .mce-brand-logo {
  height: var(--brand-logo-h);
  max-height: var(--brand-logo-h);
  flex-shrink: 0;
  align-self: center;
}

.mce-brand-taglines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.mce-brand-tagline {
  display: block;
  font-size: clamp(0.48rem, 1.35vw, 0.58rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.mce-brand-taglines .mce-brand-tagline {
  white-space: normal;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: none;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.mce-brand-tagline--primary {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mce-brand-tagline--note {
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.03em;
  line-height: 1.25;
  opacity: 0.9;
}

.mce-header.scrolled .mce-brand-tagline {
  color: var(--gray-600);
}

.mce-brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(42rem, 62vw);
}

.mce-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mce-header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: auto;
  min-width: 40px;
  max-width: 84px;
  padding: 4px 7px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mce-header-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.mce-header-badge img {
  display: block;
  width: auto;
  height: auto;
  max-width: 70px;
  max-height: 30px;
  object-fit: contain;
}

.mce-header.scrolled .mce-header-badge {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
  .mce-brand-cluster {
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: min(100%, 72vw);
    gap: 6px;
  }

  .mce-header-badges {
    display: flex;
    gap: 4px;
    order: 2;
    width: 100%;
    padding-top: 2px;
  }

  .mce-header-badge {
    height: 34px;
    min-width: 34px;
    max-width: 72px;
    padding: 3px 5px;
    border-radius: 6px;
  }

  .mce-header-badge img {
    max-width: 62px;
    max-height: 24px;
  }
}

body.index-page .mce-header.scrolled .mce-nav--sections,
body.contact-page .mce-header.scrolled .mce-nav--sections {
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.index-page .mce-header.scrolled .mce-nav-sections-pill,
body.contact-page .mce-header.scrolled .mce-nav-sections-pill {
  background: var(--gray-100);
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.index-page .mce-header.scrolled .mce-nav-sections-glow,
body.contact-page .mce-header.scrolled .mce-nav-sections-glow {
  opacity: 0;
  visibility: hidden;
}

body.index-page .mce-header.scrolled .mce-nav--sections a,
body.contact-page .mce-header.scrolled .mce-nav--sections a {
  color: var(--teal);
}

body.index-page .mce-header.scrolled .mce-nav--sections a:hover,
body.contact-page .mce-header.scrolled .mce-nav--sections a:hover {
  color: var(--teal);
  background: rgba(30, 58, 95, 0.06);
}

body.index-page .mce-header.scrolled .mce-nav--sections .mce-nav-divider {
  color: rgba(30, 58, 95, 0.25);
}

body.index-page .mce-header-inner,
body.contact-page .mce-header-inner {
  height: var(--header-height);
  position: relative;
}

body.index-page .mce-nav--sections,
body.contact-page .mce-nav--sections {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.index-page .mce-nav-mobile-intro,
body.index-page .mce-nav-mobile-enquire,
body.contact-page .mce-nav-mobile-intro,
body.contact-page .mce-nav-mobile-enquire {
  display: none;
}

body.index-page .mce-nav-sections-pill,
body.contact-page .mce-nav-sections-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 8px;
  width: max-content;
  max-width: calc(100vw - 420px);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --nav-glow-duration: 4.2s;
  overflow: visible;
}

body.index-page .mce-nav-sections-glow,
body.contact-page .mce-nav-sections-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

body.index-page .mce-nav-sections-glow-path,
body.contact-page .mce-nav-sections-glow-path {
  stroke: rgba(244, 162, 97, 0.72);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140 860;
  stroke-dashoffset: 0;
  opacity: 0.85;
  animation: lpNavGlowTrace var(--nav-glow-duration, 4.2s) linear infinite;
}

body.index-page .mce-header.scrolled .mce-nav-sections-glow-path,
body.contact-page .mce-header.scrolled .mce-nav-sections-glow-path {
  stroke: rgba(224, 123, 57, 0.55);
  opacity: 0.9;
}

@keyframes lpNavGlowTrace {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1000; }
}

body.index-page .mce-nav-campus-link,
body.contact-page .mce-nav-campus-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

body.index-page .mce-nav-campus-icon,
body.index-page .mce-nav-campus-copy small,
body.index-page .mce-nav-campus-arrow,
body.contact-page .mce-nav-campus-icon,
body.contact-page .mce-nav-campus-copy small,
body.contact-page .mce-nav-campus-arrow {
  display: none;
}

body.index-page .mce-nav-campus-copy strong,
body.contact-page .mce-nav-campus-copy strong {
  font-weight: 500;
  font-size: inherit;
}

body.index-page .mce-nav-campus-link:hover,
body.contact-page .mce-nav-campus-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

body.index-page .hero {
  padding: calc(var(--landing-header-total) + 48px) 0 72px;
}

@media (max-width: 992px) {
  html {
    overflow-x: clip;
  }

  body.index-page,
  body.contact-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  body.index-page .mce-header,
  body.contact-page .mce-header {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  body.index-page .mce-nav--sections,
  body.contact-page .mce-nav--sections {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1100;
    min-height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.index-page .mce-nav--sections {
    top: var(--landing-header-total);
    min-height: calc(100dvh - var(--landing-header-total));
    max-height: calc(100dvh - var(--landing-header-total));
  }

  body.index-page .mce-nav--sections.open,
  body.contact-page .mce-nav--sections.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.22);
  }

  body.index-page .mce-nav::before,
  body.contact-page .mce-nav::before {
    content: none;
    display: none;
    padding: 0;
    border: none;
  }

  body.index-page .mce-nav-mobile-intro,
  body.contact-page .mce-nav-mobile-intro {
    display: block;
    padding: 22px 22px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.index-page .mce-nav-mobile-label,
  body.contact-page .mce-nav-mobile-label {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
  }

  body.index-page .mce-nav-mobile-desc,
  body.contact-page .mce-nav-mobile-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
  }

  body.index-page .mce-nav-sections-pill,
  body.contact-page .mce-nav-sections-pill {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: none;
    padding: 20px 18px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  body.index-page .mce-nav-sections-glow,
  body.contact-page .mce-nav-sections-glow {
    display: none;
  }

  body.index-page .mce-nav-campus-link,
  body.contact-page .mce-nav-campus-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    white-space: normal;
  }

  body.index-page .mce-nav-campus-link:hover,
  body.contact-page .mce-nav-campus-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(224, 123, 57, 0.35);
    color: var(--white);
  }

  body.index-page .mce-nav-campus-icon,
  body.contact-page .mce-nav-campus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(224, 123, 57, 0.18);
    color: var(--gold-light);
    font-size: 1.1rem;
  }

  body.index-page .mce-nav-campus-copy,
  body.contact-page .mce-nav-campus-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  body.index-page .mce-nav-campus-copy strong,
  body.contact-page .mce-nav-campus-copy strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
  }

  body.index-page .mce-nav-campus-copy small,
  body.contact-page .mce-nav-campus-copy small {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
  }

  body.index-page .mce-nav-campus-arrow,
  body.contact-page .mce-nav-campus-arrow {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-light);
    opacity: 0.85;
  }

  body.index-page .mce-nav-mobile-enquire,
  body.contact-page .mce-nav-mobile-enquire {
    display: flex;
    margin: 8px 18px 24px;
    justify-content: center;
    width: calc(100% - 36px);
  }

  body.index-page .mce-nav,
  body.contact-page .mce-nav {
    top: var(--header-height);
    min-height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
  }

  body.index-page .mce-header-inner .mce-btn-gold,
  body.contact-page .mce-header-inner .mce-btn-gold {
    display: none;
  }

  body.index-page .mce-header-inner,
  body.contact-page .mce-header-inner {
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
    max-width: 100%;
  }

  body.index-page .mce-brand,
  body.contact-page .mce-brand {
    align-self: center;
    min-height: 44px;
  }

  body.index-page .mce-brand-logo,
  body.contact-page .mce-brand-logo {
    max-width: min(220px, 56vw);
  }

  .mce-brand:has(.mce-brand-taglines) {
    max-width: min(11rem, 48vw);
    gap: 6px;
  }

  .mce-brand:has(.mce-brand-tagline) .mce-brand-logo,
  .mce-brand:has(.mce-brand-taglines) .mce-brand-logo {
    height: var(--brand-logo-h-sm);
    max-height: var(--brand-logo-h-sm);
    max-width: min(130px, 34vw);
  }

  .mce-brand-taglines .mce-brand-tagline {
    font-size: 7px;
  }

  .mce-brand-tagline--note {
    font-size: 6px;
  }

  .mce-brand-tagline {
    font-size: 0.44rem;
    letter-spacing: 0.08em;
  }

  body.index-page .mce-header.scrolled .mce-nav-campus-link,
  body.contact-page .mce-header.scrolled .mce-nav-campus-link,
  body.index-page .mce-header.scrolled .mce-nav-campus-copy strong,
  body.contact-page .mce-header.scrolled .mce-nav-campus-copy strong {
    color: var(--white);
  }

  body.index-page .mce-hamburger,
  body.contact-page .mce-hamburger {
    flex-shrink: 0;
    margin-right: 0;
    position: relative;
    z-index: 1101;
  }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  overflow: visible;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-height);
  gap: 24px;
}

.nav {
  justify-self: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  transition: all var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--gold);
}

.nav-list > li > a i {
  font-size: 0.6rem;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--text);
}

.dropdown li a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* About mega menu (index / group pages only — not .mce-page) */
body:not(.mce-page) .has-mega-dropdown{
  position: relative;
}

body:not(.mce-page) .has-mega-dropdown:hover > a{
  color: var(--gold);
}

body:not(.mce-page) .mega-menu{
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(620px, calc(100vw - 48px));
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 18px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(-50% + var(--mega-x, 0px))) translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 100;
}

body:not(.mce-page) .mega-menu::before{
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

body:not(.mce-page) .has-mega-dropdown:hover .mega-menu{
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(-50% + var(--mega-x, 0px))) translateY(0);
}

body:not(.mce-page) .mega-menu-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 28px;
}

body:not(.mce-page) .mega-menu--academics{
  width: min(740px, calc(100vw - 48px));
}

body:not(.mce-page) .mega-menu--students{
  width: min(800px, calc(100vw - 48px));
}

body:not(.mce-page) .mega-menu--research{
  width: min(520px, calc(100vw - 48px));
}

body:not(.mce-page) .mega-menu-cols--2{
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}

body:not(.mce-page) .mega-menu--simple{
  width: max-content;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 10px 8px;
}

body:not(.mce-page) .mega-menu-list{
  list-style: none;
}

body:not(.mce-page) .mega-menu-list a{
  display: block;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1.4;
  white-space: normal;
}

body:not(.mce-page) .mega-menu-list a:hover{
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

body:not(.mce-page) .mega-menu--resources{
  min-width: 300px;
  max-width: min(380px, calc(100vw - 48px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

body:not(.mce-page) .mega-menu--resources .mega-menu-list a{
  text-transform: none;
  font-weight: 500;
}

body:not(.mce-page) .mega-menu-col{
  list-style: none;
}

body:not(.mce-page) .mega-menu-col ul{
  list-style: none;
}

body:not(.mce-page) .mega-menu-heading{
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body:not(.mce-page) .mega-menu-col a{
  display: block;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: normal;
  line-height: 1.4;
}

body:not(.mce-page) .mega-menu-col a:hover{
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.btn-enquire {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--top-bar-height) + 48px) 0 72px;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 36px;
  max-width: 620px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.72rem;
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-item i {
  font-size: 1.4rem;
  color: var(--gold);
}

.stat-item strong {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.stat-item span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
  font-size: 0.72rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons .btn-gold {
  padding: 14px 28px;
  font-size: 0.9rem;
}

.hero-buttons .btn-outline-white {
  padding: 14px 28px;
  font-size: 0.9rem;
}

.hero-buttons .icon-gold {
  color: var(--gold);
}

/* Enquiry Card */
.enquiry-card {
  background: var(--white);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  max-width: 400px;
  justify-self: end;
  width: 100%;
}

.enquiry-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.enquiry-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.enquiry-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.form-group {
  margin-bottom: 14px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap.textarea-wrap > i {
  top: 16px;
  transform: none;
}

.input-icon-wrap input,
.input-icon-wrap select,
.input-icon-wrap textarea,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px 13px 42px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-icon-wrap textarea,
.form-group textarea {
  resize: vertical;
  min-height: 88px;
  padding-top: 13px;
}

.input-icon-wrap input:focus,
.input-icon-wrap select:focus,
.input-icon-wrap textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.12);
}

.enquiry-form .btn-navy {
  margin-top: 4px;
  padding: 14px 24px;
  font-size: 0.9rem;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 14px;
}

/* ---- Institutions ---- */
.institutions {
  position: relative;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 50%, var(--off-white) 100%);
  overflow: hidden;
}

.institutions-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.institutions-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.institutions-bg-orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(224, 123, 57, 0.25) 0%, transparent 70%);
}

.institutions-bg-orb--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.12) 0%, transparent 70%);
}

.institutions-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.institutions-header {
  position: relative;
  z-index: 1;
}

.institutions-desc {
  max-width: 560px;
}

.institutions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.institution-card {
  position: relative;
  border-radius: 16px;
  background: var(--white);
  box-shadow:
    0 1px 2px rgba(30, 58, 95, 0.04),
    0 8px 32px rgba(30, 58, 95, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.institution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
}

.institution-card--featured::before {
  opacity: 1;
  transform: scaleX(1);
}

.institution-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 8px rgba(30, 58, 95, 0.06),
    0 20px 48px rgba(30, 58, 95, 0.14);
}

.institution-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.institution-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
}

.institution-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 123, 57, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.institution-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 20px 28px 40px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.institution-card:hover .institution-media img {
  transform: scale(1.04);
}

.institution-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(30, 58, 95, 0.06) 100%
  );
  transition: background 0.4s ease;
  pointer-events: none;
}

.institution-card:hover .institution-media-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30, 58, 95, 0.02) 50%,
    rgba(30, 58, 95, 0.1) 100%
  );
}

.institution-index {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.02em;
  z-index: 2;
  transition: color 0.35s ease;
}

.institution-card:hover .institution-index {
  color: rgba(224, 123, 57, 0.35);
}

.institution-icon {
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.institution-icon.gold {
  background: var(--gold);
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.35);
}

.institution-card:hover .institution-icon {
  transform: scale(1.08) rotate(-3deg);
}

.institution-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 24px;
}

.institution-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.institution-card:hover .institution-content h3 {
  color: var(--navy-light);
}

.institution-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.65;
  flex: 1;
}

.institution-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-100);
  border-radius: 50px;
  transition: background 0.35s ease, color 0.35s ease, gap 0.35s ease, box-shadow 0.35s ease;
}

.institution-card:hover .institution-cta {
  background: var(--navy);
  color: var(--white);
  gap: 12px;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25);
}

.institution-cta i.fa-arrow-right {
  font-size: 0.75rem;
  transition: transform 0.35s ease;
}

.institution-card:hover .institution-cta i.fa-arrow-right {
  animation: arrowSlide 0.8s ease-in-out infinite;
}

.institutions-cta {
  position: relative;
  z-index: 1;
}

.btn-institutions-all {
  padding: 14px 32px;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.2);
}

.btn-institutions-all:hover {
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.3);
}

/* ---- Why Choose Us ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 16px 0 32px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.feature-item i {
  font-size: 1.1rem;
  color: var(--gold);
  width: 24px;
  text-align: center;
}

.why-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.why-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  padding: 16px 12px;
}

.why-stat {
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.why-stat:last-child {
  border-right: none;
}

.why-stat i {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.why-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.why-stat span {
  font-size: 0.65rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* ---- Accreditations ---- */
.accreditations {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}

.accreditations-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.accreditations-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
}

.accreditations-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  flex: 1;
}

.accreditation-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.accreditation-badge i {
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---- Programs ---- */
.programs {
  background: var(--navy);
}

.programs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.programs-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.programs-carousel .carousel-viewport {
  container-type: inline-size;
  flex: 1;
  overflow: hidden;
}

.programs-track {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.programs-carousel .program-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition);
  flex: 0 0 calc(100cqw / 5);
  min-width: calc(100cqw / 5);
  box-sizing: border-box;
}

.programs-carousel .carousel-nav.is-hidden {
  display: none;
}

.programs-carousel .carousel-nav.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.program-item:last-child {
  border-right: none;
}

.program-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.program-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.program-item h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.program-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ---- Campus Life & News ---- */
.campus-news {
  background: var(--off-white);
}

.campus-news-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.campus-life-col .section-label,
.news-events-col .section-label {
  margin-bottom: 10px;
}

.campus-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin: 14px 0 24px;
  line-height: 1.75;
  max-width: 520px;
}

.campus-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.campus-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition);
}

.campus-gallery img:hover {
  transform: scale(1.03);
}

.campus-life-col .link-arrow {
  margin-top: 4px;
}

.news-events-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.news-events-title-wrap .section-label {
  margin-bottom: 10px;
}

.news-events-title-wrap .section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.news-events-header .link-arrow {
  flex-shrink: 0;
  margin-top: 28px;
  white-space: nowrap;
}

.news-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: stretch;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-item-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.45;
}

.news-item-content time {
  font-size: 0.78rem;
  color: var(--gray-600);
}

.event-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.event-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--navy);
  font-size: 1.15rem;
}

.event-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.35;
}

.event-date {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 20px;
}

.event-card .btn-gold {
  width: 100%;
  justify-content: center;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--navy);
}

.testimonials .section-label,
.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-label {
  color: var(--gold);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
}

.testimonial-card.featured {
  background: var(--white);
  border-color: var(--gold);
}

.testimonial-card.featured p {
  color: var(--text);
}

.testimonial-card.featured footer strong {
  color: var(--navy);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
}

.testimonial-card footer span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.testimonial-card.featured footer span {
  color: var(--gray-600);
}

/* ---- Recruiters ---- */
.recruiters {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 50%, var(--white) 100%);
  padding-bottom: 72px;
  overflow: hidden;
}

.recruiters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.recruiters-header {
  margin-bottom: 40px;
}

.recruiters-band {
  width: 100%;
  position: relative;
}

.recruiters-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(12px, 3vw, 48px);
  box-sizing: border-box;
}

.recruiters-carousel .carousel-viewport {
  container-type: inline-size;
  flex: 1;
  overflow: hidden;
  padding: 12px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.recruiter-track {
  gap: 20px;
}

.recruiter-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
  transition: all var(--transition);
  z-index: 2;
}

.recruiter-nav:hover {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.2);
}

.recruiter-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.recruiters-carousel .carousel-nav.is-hidden {
  display: none;
}

.recruiters-carousel .recruiter-item {
  flex: 0 0 calc((100cqw - 100px) / 6);
  min-width: calc((100cqw - 100px) / 6);
  height: 104px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  box-shadow:
    0 1px 2px rgba(30, 58, 95, 0.04),
    0 8px 28px rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-sizing: border-box;
}

.recruiters-carousel .recruiter-item:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 123, 57, 0.35);
  box-shadow:
    0 4px 8px rgba(30, 58, 95, 0.06),
    0 16px 40px rgba(30, 58, 95, 0.12);
}

.recruiter-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.88;
  transition: all var(--transition);
}

.recruiter-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.recruiter-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}

/* ---- FAQ ---- */
.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.faq-intro p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 16px 0 24px;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.faq-question i {
  color: var(--gold);
  font-size: 0.75rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 18px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Contact & Map ---- */
.contact-map {
  background: var(--off-white);
}

.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.contact-info-block p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 16px 0 28px;
  line-height: 1.7;
}

.contact-details {
  margin-bottom: 28px;
}

.contact-details li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-details li i {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-details li strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-details li span,
.contact-details li a {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.contact-details li a:hover {
  color: var(--gold-dark);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
  background: var(--gray-200);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-name {
  font-size: 0.9rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-brand-logo {
  display: block;
  height: var(--brand-logo-h, 80px);
  max-height: var(--brand-logo-h, 80px);
  width: auto;
  max-width: min(380px, 52vw);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 576px) {
  .footer-brand-logo {
    height: var(--brand-logo-h-sm, 42px);
    max-height: var(--brand-logo-h-sm, 42px);
    max-width: min(280px, 62vw);
  }
}

.footer-about p {
  font-size: 0.85rem;
  margin: 16px 0;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
  color: var(--gold);
}

.footer-contact ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  align-items: flex-start;
}

.footer-contact ul li i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact ul li a:hover {
  color: var(--gold);
}

.footer-contact-address {
  white-space: pre-line;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  isolation: isolate;
}

.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
}

.back-to-top__ring-track {
  fill: none;
  stroke: rgba(30, 58, 95, 0.16);
  stroke-width: 3;
}

.back-to-top__ring-progress {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
}

.back-to-top > i {
  position: relative;
  z-index: 1;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  .programs-carousel .program-item {
    flex: 0 0 calc(100cqw / 3);
    min-width: calc(100cqw / 3);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-about {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  .top-bar-links {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) + var(--top-bar-height));
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    display: none;
    padding: 0;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 32px;
    font-size: 0.85rem;
  }

  .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
  }

  body:not(.mce-page) .mega-menu{
    position: static;
    width: auto;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    display: none;
  }

  body:not(.mce-page) .has-mega-dropdown.open .mega-menu{
    display: block;
  }

  body:not(.mce-page) .has-mega-dropdown:hover .mega-menu{
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mega-menu-cols,
  body:not(.mce-page) .mega-menu-cols--2{
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0 8px;
  }

  body:not(.mce-page) .mega-menu-col a{
    padding: 10px 32px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: normal;
  }

  body:not(.mce-page) .mega-menu-col a:hover{
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
  }

  body:not(.mce-page) .mega-menu-list a{
    padding: 10px 32px;
    font-size: 0.85rem;
    text-transform: none;
  }

  .hamburger {
    display: flex;
  }

  .btn-enquire {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .enquiry-card {
    max-width: 480px;
    justify-self: stretch;
  }

  .hero-stats {
    max-width: 100%;
  }

  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-image {
    height: 320px;
  }

  .campus-news-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .news-body {
    grid-template-columns: 1fr;
  }

  .news-events-header .link-arrow {
    margin-top: 0;
  }

  .event-card {
    max-width: 320px;
    min-height: auto;
  }

  .campus-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .recruiters-carousel .recruiter-item {
    flex: 0 0 calc((100cqw - 60px) / 4);
    min-width: calc((100cqw - 60px) / 4);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    height: 300px;
  }

  .accreditations-inner {
    flex-direction: column;
    text-align: center;
  }

  .accreditations-logos {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  .stat-item {
    flex: 0 0 50%;
    border-right: none;
    padding: 0 8px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .institutions-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .institution-media {
    height: 200px;
  }

  .institution-index {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .why-stat {
    border-right: none;
    padding: 4px;
  }

  .programs-carousel .program-item {
    flex: 0 0 calc(100cqw / 2);
    min-width: calc(100cqw / 2);
  }

  .programs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .recruiters-carousel .recruiter-item {
    flex: 0 0 calc((100cqw - 40px) / 3);
    min-width: calc((100cqw - 40px) / 3);
    height: 92px;
  }

  .recruiter-nav {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 70px;
    --top-bar-height: 34px;
  }

  body.index-page {
    --header-height: 88px;
  }

  .top-bar p {
    font-size: 0.7rem;
  }

  .logo-sub {
    display: none;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    flex: 1 1 100%;
    flex-direction: row;
    text-align: left;
    align-items: center;
    border-right: none !important;
    padding: 0;
    gap: 12px;
  }

  .stat-item i {
    flex-shrink: 0;
  }

  .stat-item strong,
  .stat-item span {
    display: block;
  }

  .enquiry-card {
    padding: 22px 20px;
  }

  .campus-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-carousel .program-item {
    flex: 0 0 100cqw;
    min-width: 100cqw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .recruiters-carousel .recruiter-item {
    flex: 0 0 calc((100cqw - 20px) / 2);
    min-width: calc((100cqw - 20px) / 2);
    height: 80px;
    padding: 14px 16px;
  }

  .recruiters-carousel {
    gap: 8px;
    padding: 0 8px;
  }

  .recruiter-nav {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
}

/* ---- Promo Modal (image / video / PDF announcement) ---- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 39, 68, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.promo-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(680px, 94vw);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(15, 39, 68, 0.38),
    0 0 0 1px rgba(30, 58, 95, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-modal-card::before {
  content: '';
  display: block;
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 45%, var(--navy-light) 100%);
}

.promo-modal.is-open .promo-modal-card {
  transform: translateY(0) scale(1);
}

.promo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.promo-modal-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: scale(1.05);
}

.promo-modal-header {
  flex-shrink: 0;
  padding: 24px 56px 18px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.promo-modal-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.promo-modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.promo-modal-media {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--off-white);
  padding: 20px 24px;
  line-height: normal;
  text-align: center;
}

.promo-modal-media--video,
.promo-modal-media--pdf {
  padding: 20px 24px 24px;
}

.promo-modal-link {
  display: block;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.promo-modal-link:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.promo-modal-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.promo-modal-link--static {
  cursor: default;
  pointer-events: none;
}

.promo-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.1);
}

.promo-modal-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.14);
}

.promo-modal-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 420px);
  object-fit: cover;
  background: var(--navy-dark);
}

.promo-modal-pdf-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.08);
}

.promo-modal-pdf {
  display: block;
  width: 100%;
  height: min(58vh, 500px);
  border: none;
  background: var(--white);
}

.promo-modal-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 20px 28px 26px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.promo-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(224, 123, 57, 0.28);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-modal-cta:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 123, 57, 0.35);
}

@media (max-width: 640px) {
  .promo-modal {
    padding: 16px;
    align-items: center;
  }

  .promo-modal-card {
    max-width: 100%;
    max-height: calc(100dvh - 32px);
    border-radius: 18px;
  }

  .promo-modal-header {
    padding: 20px 52px 16px 20px;
  }

  .promo-modal-media {
    padding: 16px 18px;
  }

  .promo-modal-image {
    max-height: min(50vh, 440px);
  }

  .promo-modal-video {
    max-height: min(44vh, 320px);
  }

  .promo-modal-pdf {
    height: min(50vh, 380px);
  }

  .promo-modal-footer {
    padding: 16px 20px 22px;
  }

  .promo-modal-cta {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .mce-header-inner.container {
    max-width: 1380px;
  }
}
