/* ===================================================================
   CEMS SITE CHROME
   Shared header, navigation, home banner and inner-page banners.
   Loaded after style.css / internal.css on every page.
   Reference: https://cemsmunew.netlify.app/
   =================================================================== */

:root {
  --cems-blue-950: #172554;
  --cems-blue-900: #1e3a8a;
  --cems-blue-800: #1e40af;
  --cems-blue-400: #60a5fa;
  --cems-blue-50: #eff6ff;
  --cems-stone-950: #0c0a09;
  --cems-stone-900: #1c1917;
  --cems-stone-800: #292524;
  --cems-stone-700: #44403c;
  --cems-stone-600: #57534e;
  --cems-stone-500: #78716c;
  --cems-stone-300: #d6d3d1;
  --cems-stone-200: #e7e5e4;
  --cems-stone-100: #f5f5f4;
  --cems-stone-50: #fafaf9;
  --cems-amber-950: #451a03;
  --cems-amber-900: #78350f;
  --cems-amber-800: #92400e;
  --cems-amber-700: #b45309;
  --cems-amber-600: #d97706;
  --cems-amber-500: #f59e0b;
  --cems-amber-400: #fbbf24;
  --cems-amber-200: #fde68a;
  --cems-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Keep anchor targets clear of the sticky header. */
html { scroll-padding-top: 132px; }

/* -------------------------------------------------------------------
   Header shell
   ------------------------------------------------------------------- */
.cems-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cems-stone-100);
  box-shadow: 0 1px 2px rgba(12, 10, 9, 0.05);
  font-family: var(--cems-font-sans);
  transition: box-shadow 0.25s ease;
}
.cems-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(12, 10, 9, 0.35);
}

.cems-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* -------------------------------------------------------------------
   Utility strip
   ------------------------------------------------------------------- */
.cems-topbar {
  background: linear-gradient(90deg, #1e3a8a 0%, #292524 50%, #92400e 100%);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 0;
}
.cems-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cems-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
}
.cems-mu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cems-amber-600);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}
.cems-topbar-dot {
  display: inline-block;
  margin: 0 5px;
  opacity: 0.65;
}
.cems-topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.cems-topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cems-stone-300);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.cems-topbar-links a:hover { color: var(--cems-amber-400); }
.cems-topbar-links a.is-active { color: var(--cems-amber-400); }
.cems-topbar-links i { color: var(--cems-amber-500); font-size: 12px; }

/* -------------------------------------------------------------------
   Main header row
   ------------------------------------------------------------------- */
.cems-header-main { position: relative; }
.cems-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 12px 0;
}

.cems-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
  text-decoration: none;
}
.cems-brand:hover { color: inherit; }
.cems-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}
.cems-brand:hover .cems-logo { transform: scale(1.05); }
.cems-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cems-brand-name {
  display: block;
  font-family: var(--cems-font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--cems-blue-900);
  background: linear-gradient(90deg, #1e3a8a 0%, #292524 50%, #78350f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cems-brand-sub {
  display: block;
  max-width: 300px;
  margin-top: 3px;
  color: var(--cems-stone-500);
  font-family: var(--cems-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------
   Desktop navigation
   ------------------------------------------------------------------- */
.cems-nav { margin-left: auto; }
.cems-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cems-nav-list > li { position: relative; }
.cems-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--cems-stone-700);
  font-family: var(--cems-font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cems-nav-link:hover,
.cems-nav-link:focus-visible {
  background: var(--cems-stone-50);
  color: var(--cems-stone-950);
}
.cems-nav-link:focus-visible {
  outline: 2px solid var(--cems-blue-800);
  outline-offset: 2px;
}
.cems-nav-link.is-active {
  background: rgba(239, 246, 255, 0.7);
  border-bottom-color: var(--cems-blue-800);
  color: var(--cems-blue-900);
  font-weight: 600;
}
.cems-drop-toggle i {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.cems-drop.is-open > .cems-drop-toggle i { transform: rotate(180deg); }
.cems-nav-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--cems-stone-800);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(12, 10, 9, 0.08);
  transition: background 0.18s ease, transform 0.18s ease;
}
.cems-nav-cta > a:hover,
.cems-nav-cta > a:focus-visible {
  background: var(--cems-stone-900);
  color: #fff;
  transform: translateY(-1px);
}
.cems-nav-cta > a.is-active { background: var(--cems-stone-950); }
.cems-nav-cta.is-active > a { background: var(--cems-stone-950); }

.cems-mobile-only { display: none; }

/* Dropdown panels */
.cems-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cems-stone-200);
  border-top: 3px solid var(--cems-amber-600);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 44px -16px rgba(12, 10, 9, 0.28);
}
.cems-dropdown-wide {
  width: 560px;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
}
.cems-drop.is-open > .cems-dropdown { display: block; }
.cems-drop.is-open > .cems-dropdown-wide { display: grid; }

.cems-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--cems-stone-700);
  font-family: var(--cems-font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  transition: background 0.15s ease, color 0.15s ease;
}
.cems-dropdown a:hover,
.cems-dropdown a:focus-visible {
  background: var(--cems-stone-50);
  color: var(--cems-stone-950);
}
.cems-dropdown a.is-active {
  background: var(--cems-blue-50);
  color: var(--cems-blue-900);
  font-weight: 600;
}

@media (min-width: 1280px) {
  .cems-drop:hover > .cems-dropdown { display: block; }
  .cems-drop:hover > .cems-dropdown-wide { display: grid; }
}

/* Hamburger */
.cems-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cems-stone-700);
  font-family: var(--cems-font-sans);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cems-nav-toggle:hover,
.cems-nav-toggle:focus-visible {
  background: var(--cems-stone-100);
  color: var(--cems-stone-900);
}
.cems-nav-toggle:focus-visible {
  outline: 2px solid var(--cems-blue-800);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------
   Responsive header
   ------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .cems-header-inner { gap: 16px; }
  .cems-nav-toggle { display: inline-flex; }
  .cems-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    margin: 0;
    padding: 12px 16px 28px;
    max-height: calc(100vh - 136px);
    max-height: calc(100dvh - 136px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cems-stone-50);
    border-top: 1px solid var(--cems-stone-200);
    box-shadow: 0 26px 42px -20px rgba(12, 10, 9, 0.35);
  }
  .cems-nav.is-open { display: block; }
  .cems-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .cems-nav-list > li { width: 100%; }
  .cems-nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 10px;
    font-size: 15px;
  }
  .cems-nav-link.is-active {
    background: var(--cems-blue-900);
    color: #fff;
    border-bottom-color: transparent;
  }
  .cems-nav-link.is-active:hover { background: var(--cems-blue-800); color: #fff; }
  .cems-nav-link:hover { background: var(--cems-stone-100); }
  .cems-nav-cta > a {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    justify-content: center;
    font-size: 15px;
  }
  .cems-mobile-only { display: block; }
  .cems-dropdown,
  .cems-dropdown-wide {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    margin: 4px 0 8px;
    padding: 8px;
    background: var(--cems-stone-100);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    grid-template-columns: 1fr;
  }
  .cems-drop.is-open > .cems-dropdown,
  .cems-drop.is-open > .cems-dropdown-wide { display: block; }
  .cems-dropdown a { padding: 9px 12px; font-size: 14px; }
  .cems-dropdown a:hover { background: #fff; }
  .cems-dropdown a.is-active { background: #fff; }
  .cems-drop-toggle i { font-size: 12px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
  .cems-topbar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .cems-topbar-brand {
    justify-content: center;
    font-size: 10.5px;
    line-height: 1.4;
  }
  .cems-topbar-links { justify-content: center; }
  .cems-topbar-links a { font-size: 11px; }
  .cems-header-inner { min-height: 74px; padding: 10px 0; }
  .cems-brand { gap: 10px; }
  .cems-logo { width: 48px; height: 48px; }
  .cems-brand-name { font-size: 18px; }
  .cems-brand-sub { max-width: 240px; font-size: 9px; }
  .cems-nav { max-height: calc(100vh - 154px); max-height: calc(100dvh - 154px); }
}

@media (max-width: 560px) {
  .cems-container { width: 92%; }
  .cems-topbar-brand { font-size: 10px; }
  .cems-topbar-extra { display: none; }
  .cems-brand-sub { max-width: 205px; font-size: 8.5px; letter-spacing: 0.02em; }
  .cems-logo { width: 44px; height: 44px; }
  .cems-brand-name { font-size: 17px; }
  .cems-nav-toggle { width: 40px; height: 40px; font-size: 19px; }
}

/* -------------------------------------------------------------------
   Home banner
   ------------------------------------------------------------------- */
.cems-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 72vh, 700px);
  padding: 92px 0 100px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--cems-font-sans);
}
.cems-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: blur(0.5px) brightness(0.38) contrast(1.08) saturate(0.95);
  user-select: none;
}
.cems-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(23, 37, 84, 0.4);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cems-hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(30, 58, 138, 0.2), transparent 58%),
    linear-gradient(to top right,
      rgba(23, 37, 84, 0.92) 0%,
      rgba(12, 10, 9, 0.78) 50%,
      rgba(69, 26, 3, 0.52) 100%);
  opacity: 0.94;
  pointer-events: none;
}
.cems-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
}
.cems-hero-copy { max-width: 810px; }
.cems-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cems-amber-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cems-hero-badge i { font-size: 13px; }
.cems-hero h1 {
  margin: 24px 0 22px;
  color: #fff;
  font-family: var(--cems-font-sans);
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.03;
}
.cems-hero-accent {
  display: block;
  background: linear-gradient(90deg, #60a5fa 0%, #34d399 52%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cems-hero-lead {
  max-width: 720px;
  margin: 0 0 32px;
  color: var(--cems-stone-300);
  font-family: var(--cems-font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}
.cems-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cems-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--cems-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.cems-btn-primary {
  background: var(--cems-amber-800);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(69, 26, 3, 0.9);
}
.cems-btn-primary:hover,
.cems-btn-primary:focus-visible {
  background: var(--cems-amber-900);
  color: #fff;
  transform: translateY(-2px);
}
.cems-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cems-btn-ghost:hover,
.cems-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.cems-btn i { font-size: 12px; transition: transform 0.2s ease; }
.cems-btn:hover i { transform: translateX(3px); }
.cems-btn-primary:hover i,
.cems-btn-ghost:hover i { transform: translateX(3px); }

@media (max-width: 860px) {
  .cems-hero {
    min-height: 0;
    padding: 76px 0 84px;
  }
  .cems-hero h1 { font-size: clamp(38px, 8vw, 50px); }
  .cems-hero-lead { font-size: 17px; }
}
@media (max-width: 560px) {
  .cems-hero { padding: 60px 0 68px; }
  .cems-hero h1 { font-size: 38px; }
  .cems-hero-lead { font-size: 16px; }
  .cems-hero-actions { gap: 10px; }
  .cems-hero-actions .cems-btn { width: 100%; }
}

/* -------------------------------------------------------------------
   Inner page banners
   ------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 74px;
  background: #000;
  border-bottom: 3px solid var(--cems-amber-600);
  color: #fff;
  font-family: var(--cems-font-sans);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-gate.png") center 42% / cover no-repeat;
  filter: blur(0.4px) brightness(0.34) contrast(1.08) saturate(0.95);
  transform: scale(1.04);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(30, 58, 138, 0.24), transparent 60%),
    linear-gradient(100deg,
      rgba(23, 37, 84, 0.94) 0%,
      rgba(12, 10, 9, 0.84) 48%,
      rgba(69, 26, 3, 0.58) 100%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
}
.page-hero h1 {
  max-width: 1000px;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--cems-font-sans);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.page-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cems-amber-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.page-hero .breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--cems-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-hero .breadcrumb a:hover { color: var(--cems-amber-400); }
.page-hero .breadcrumb span { margin: 0 7px; opacity: 0.55; }

.page-hero-lead,
.course-hero-lead,
.ma-hero-lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--cems-stone-300);
  font-family: var(--cems-font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

.ma-hero,
.course-hero { padding: 64px 0 72px; }

/* Course facts and M.A. stats inside the banner */
.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.course-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.course-badges li i { color: var(--cems-amber-400); font-size: 11px; }
.course-badges li strong { color: var(--cems-amber-400); font-size: 14px; font-weight: 700; }

.ma-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mh-stat {
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(12, 10, 9, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mh-num {
  display: block;
  color: var(--cems-amber-400);
  font-family: var(--cems-font-sans);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.mh-label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Banner buttons */
.page-hero .btn {
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--cems-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-hero .btn-gold {
  border-color: transparent;
  background: var(--cems-amber-800);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(69, 26, 3, 0.9);
}
.page-hero .btn-gold:hover {
  border-color: transparent;
  background: var(--cems-amber-900);
  color: #fff;
  transform: translateY(-2px);
}
.page-hero .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.page-hero .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .page-hero,
  .ma-hero,
  .course-hero { padding: 52px 0 58px; }
  .page-hero h1 { font-size: clamp(32px, 7vw, 44px); }
  .page-hero-lead,
  .course-hero-lead,
  .ma-hero-lead { font-size: 16px; }
  .ma-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page-hero,
  .ma-hero,
  .course-hero { padding: 42px 0 48px; }
  .page-hero h1 { font-size: 31px; }
  .page-hero .breadcrumb { font-size: 11.5px; }
  .page-hero .hero-eyebrow { font-size: 10px; letter-spacing: 0.09em; }
  .course-badges li { font-size: 11.5px; padding: 7px 12px; }
  .ma-hero-actions .btn,
  .course-hero-actions .btn { width: 100%; text-align: center; }
}

/* -------------------------------------------------------------------
   Inner-page accent panels
   “Ready to join?” and “Course at a glance” use the same
   blue-950 → stone-950 → amber-950 palette as the page banners.
   ------------------------------------------------------------------- */
.course-cta,
.side-card.facts-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(30, 58, 138, 0.42), transparent 52%),
    linear-gradient(120deg,
      var(--cems-blue-950) 0%,
      var(--cems-stone-950) 52%,
      var(--cems-amber-950) 100%);
  box-shadow: 0 18px 44px -20px rgba(12, 10, 9, 0.6);
}

.course-cta::after,
.side-card.facts-card::after {
  top: auto;
  right: -40px;
  bottom: -58px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0) 68%);
}

/* -------------------------------------------------------------------
   Contact page: embedded enquiry form
   ------------------------------------------------------------------- */
.contact-enquiry {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid #e4dfd1;
  scroll-margin-top: 148px;
}

.contact-enquiry h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-enquiry > p {
  max-width: 68ch;
  margin-bottom: 24px;
  color: var(--text-muted, #5b5b5b);
}

.contact-enquiry .enquiry-form-wrap {
  padding: 34px 38px;
}


@media (max-width: 640px) {
  .contact-enquiry .enquiry-form-wrap {
    padding: 26px 20px;
  }
}

/* -------------------------------------------------------------------
   Header corrections — left-aligned utility strip, larger menu
   ------------------------------------------------------------------- */
.cems-topbar {
  padding: 8px 0;
}

.cems-topbar-inner {
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
}

.cems-topbar-brand {
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
}

.cems-topbar-brand-text {
  color: #fff;
}

.cems-topbar-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.cems-topbar-university {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cems-topbar-center {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.cems-topbar-dot {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.6);
}

.cems-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cems-topbar-social a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cems-topbar-social a:hover,
.cems-topbar-social a:focus-visible {
  background: var(--cems-amber-400);
  border-color: var(--cems-amber-400);
  color: var(--cems-stone-950);
}

.cems-header-inner {
  min-height: 68px;
  padding: 8px 0;
  justify-content: flex-start;
}

.cems-nav {
  width: auto;
  margin-left: 0;
}

.cems-nav-list {
  justify-content: flex-start;
  gap: 2px;
}

.cems-nav-link {
  padding: 9px 8px;
  font-size: 15px;
}

.cems-nav-cta > a {
  padding: 9px 15px;
  font-size: 15px;
}

.cems-nav-toggle {
  margin-left: auto;
}

@media (max-width: 1279px) {
  .cems-header-inner { justify-content: flex-end; }
  .cems-nav { width: auto; }
  .cems-nav-list { justify-content: stretch; }
  .cems-nav-link { font-size: 15px; }
}

@media (max-width: 767px) {
  .cems-topbar-inner { flex-wrap: wrap; text-align: left; }
  .cems-topbar-brand { font-size: 12px; }
  .cems-topbar-logo { width: 38px; height: 38px; }
  .cems-topbar-university { font-size: 12px; }
  .cems-topbar-center { font-size: 15px; }
  .cems-topbar-social a { width: 26px; height: 26px; font-size: 12px; }
  .cems-header-inner { min-height: 64px; padding: 8px 0; }
}

@media (max-width: 560px) {
  .cems-topbar-inner { gap: 10px; }
  .cems-topbar-brand { gap: 8px; }
  .cems-topbar-logo { width: 34px; height: 34px; }
  .cems-topbar-university { font-size: 11.5px; }
  .cems-topbar-center { font-size: 13.5px; }
  .cems-topbar-social { gap: 6px; }
  .cems-topbar-social a { width: 24px; height: 24px; font-size: 11px; }
}



/* TEMPORARY: Hide Events from the menu while the event page is being fixed.
   Remove this rule to restore the Events menu item. */
.cems-nav-events { display: none !important; }
