:root {
  --red: #e30613;
  --red-dark: #b80510;
  --black: #111111;
  --ink: #1a1a1a;
  --grey: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #f7f7f7;
  --white: #ffffff;
  --topbar: #2a2a2a;
  --footer: #111111;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --max: 1180px;
  --header-h: 118px;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-dark);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-red {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}

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

.btn-black:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

/* Header */
.topbar {
  background: var(--topbar);
  color: #fff;
  font-size: 13px;
}

.topbar .container,
.nav-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
  padding-top: 15px;
}

.topbar a:hover {
  color: #ffd6d8;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-dark {
  background: #000;
  color: #fff;
  box-shadow: none;
}

.site-header.is-dark .topbar {
  background: #000;
}

.nav-main {
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-caret {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* Hover-driven mega menu. Top-level COURSES opens a panel of category rows;
   each category row, on hover, reveals its course list to the right. */
.dropdown-menu.mega-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-width: 95vw;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.nav-item-dropdown:hover > .dropdown-menu.mega-menu,
.nav-item-dropdown:focus-within > .dropdown-menu.mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-header.is-dark .dropdown-menu.mega-menu {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mega-menu .dropdown-group {
  position: relative;
  padding: 0;
}
.mega-menu .dropdown-group + .dropdown-group {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Category row inside mega menu */
.mega-menu .dropdown-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-menu .dropdown-group-toggle .dropdown-group-title {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: inherit;
}
.mega-menu .dropdown-group-toggle:hover,
.mega-menu .dropdown-group-toggle:focus-visible,
.mega-menu .dropdown-group:hover .dropdown-group-toggle {
  background: #f4f4f4;
  color: var(--red);
  outline: none;
}
.mega-menu .dropdown-group-caret {
  font-size: 11px;
  color: #888;
  transition: color 0.15s ease, transform 0.15s ease;
}
.mega-menu .dropdown-group-toggle:hover .dropdown-group-caret,
.mega-menu .dropdown-group:hover .dropdown-group-caret {
  color: var(--red);
}

/* Submenu: opens on hover, appears to the right of the category row */
.mega-menu .dropdown-submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 280px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
  z-index: 101;
}
.mega-menu .dropdown-group:hover > .dropdown-submenu,
.mega-menu .dropdown-group:focus-within > .dropdown-submenu,
.mega-menu .dropdown-group-toggle[aria-expanded="true"] + .dropdown-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.mega-menu .dropdown-submenu li {
  width: 100%;
}
.mega-menu .dropdown-submenu a {
  display: block;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-menu .dropdown-submenu a:hover,
.mega-menu .dropdown-submenu a:focus-visible {
  background: #f4f4f4;
  color: var(--red);
  outline: none;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: inherit;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: #f4f4f4;
  color: var(--red);
}

.site-header.is-dark .dropdown-menu a:hover {
  background: #282828;
  color: var(--red);
}

.search-btn,
.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 8px;
  display: none;
}

/* Hamburger icon (mobile menu toggle) */
.menu-toggle-icon {
  display: inline-block;
  width: 24px;
  height: 18px;
  position: relative;
}
.menu-toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 8px; }
.menu-toggle-icon span:nth-child(3) { top: 16px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Inline "Apply Now" CTA in the nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.search-panel {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
}

.search-panel.open {
  display: block;
}

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 14px;
}

/* Hero home */
.hero {
  position: relative;
  min-height: 520px;
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1));
}

.hero-card {
  position: relative;
  z-index: 2;
  margin: 56px 0;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.hero-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.hero-card h1 span {
  color: var(--red);
}

.hero-card ul {
  margin: 0 0 22px;
  padding-left: 18px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.hero-nav.prev {
  left: 16px;
}

.hero-nav.next {
  right: 16px;
}

/* Quick links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.quick-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.quick-links svg {
  width: 32px;
  height: 32px;
  color: var(--red);
}

.quick-links a:hover {
  background: var(--paper);
}

/* Student life */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-title span {
  color: var(--red);
}

.student-life-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.featured-card {
  position: relative;
  min-height: 360px;
  color: #fff;
  background-color: #222;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* News */
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}

.news-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card h3 {
  color: var(--red);
  font-size: 18px;
  margin: 14px 0 6px;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
}

/* Courses directory */
.courses-band {
  background-color: #121212;
  color: #fff;
  padding: 88px 0;
  position: relative;
}

.courses-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.courses-section-title {
  font-size: clamp(30px, 4.5vw, 42px);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.courses-section-title span {
  color: var(--red);
}

.courses-section-subtitle {
  font-size: 15px;
  color: #c5c5c5;
  margin: 0;
  line-height: 1.55;
}

.band-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 32px;
}

.band-heading span {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.band-heading::before,
.band-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.course-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.course-tiles:last-child {
  margin-bottom: 0;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px 26px;
  border-radius: 8px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.course-card.red {
  background: linear-gradient(145deg, #c7040f, #9b030b);
  box-shadow: 0 10px 30px rgba(227, 6, 19, 0.25);
  border-color: rgba(255, 100, 100, 0.2);
}

.course-card.black {
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(16, 16, 16, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.14);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.course-card.black::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-6px);
}

.course-card.red:hover {
  box-shadow: 0 18px 40px rgba(227, 6, 19, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.course-card.black:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border-color: var(--red);
}

.course-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.course-card:hover .course-card-icon {
  background: #ffffff;
  color: var(--black);
  transform: scale(1.08);
}

.course-card-body {
  flex: 1;
}

.course-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.course-card-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.course-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: fit-content;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.course-card-link .arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.course-card-link:hover {
  background: #ffffff;
  color: var(--black);
  border-color: #ffffff;
}

.course-card-link:hover .arrow {
  transform: translateX(4px);
}

/* Testimonials */
.testimonial-card {
  position: relative;
  min-height: 280px;
  color: #fff;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8));
}

.testimonial-card p,
.testimonial-card cite {
  position: relative;
  z-index: 1;
}

.testimonial-card p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 42px;
  margin: 0;
  font-size: 14px;
}

.testimonial-card cite {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--red);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 12px;
}

/* Course pages */
.course-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 460px;
  align-items: stretch;
  max-width: 1290px;
  margin: auto;
}

.course-hero-copy {
  padding: 64px 8% 48px;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 10px;
}

.course-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.course-hero-photo {
  background: #ccc center/cover no-repeat;
}

.facts {
  width: min(980px, calc(100% - 40px));
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.facts.facts-with-btn {
  padding-bottom: 24px;
}

.fact {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fact-icon {
  width: 32px;
  height: 32px;
  color: var(--red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-icon svg {
  width: 28px;
  height: 28px;
}

.fact h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.fact ul.fact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

.fact ul.fact-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  margin-bottom: 4px;
}

.fact ul.fact-list li::before {
  content: "•";
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.facts-btn-row {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
  text-align: center;
}

.facts-btn-row .btn {
  min-width: 240px;
}

.cta-wrap {
  text-align: center;
  padding: 28px 0 8px;
}

.employers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 18px 24px;
  margin: 36px auto;
  width: min(var(--max), calc(100% - 40px));
}

.employers span.employers-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.logo-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.employer-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.employer-item:hover {
  transform: translateY(-1px);
  color: #000;
}

.employer-logo-icon {
  width: auto;
  height: 24px;
  max-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.employer-logo-icon img {
  height: 20px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
  display: block;
}

.employer-logo-icon svg {
  width: 22px;
  height: 22px;
}

.paths {
  width: min(var(--max), calc(100% - 40px));
  margin: 48px auto;
}

.paths h2 {
  color: var(--red);
  letter-spacing: 0.08em;
  font-size: 18px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.path-card {
  border: 1px solid var(--line);
  padding: 22px 18px;
}

.path-card h3 {
  margin: 10px 0 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.accordion {
  width: min(var(--max), calc(100% - 40px));
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.accordion + .accordion {
  margin-top: 10px;
}

.accordion-btn {
  width: 100%;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
}

.accordion-btn-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accordion-icon {
  width: 22px;
  height: 22px;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon svg {
  width: 20px;
  height: 20px;
}

.accordion-indicator {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  transition: transform 0.2s ease;
}

.accordion.open .accordion-indicator {
  transform: rotate(45deg);
}

.accordion-panel {
  display: none;
  padding: 0 20px 18px 56px;
  font-size: 14px;
  color: #333;
}

.accordion.open .accordion-panel {
  display: block;
}

.accordion-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accordion-panel ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.accordion-panel ul li::before {
  content: "•";
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.discount-table {
  width: 100%;
  border-collapse: collapse;
}

.discount-table th,
.discount-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.enquiry {
  width: min(1180px, calc(100% - 40px));
  margin: 64px auto 80px;
}

.enquiry h2 {
  text-align: center;
  color: var(--red);
  letter-spacing: 0.1em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.label-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

label.full {
  grid-column: 1 / -1;
}

.req {
  color: var(--red);
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #d5d5d5;
  padding: 8px 12px;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.legal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
  flex-direction: row;
}

.legal input {
  min-height: auto;
  width: 16px;
}

.legal a {
  color: var(--red);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-success {
  display: none;
  background: #eefaf0;
  border: 1px solid #b7e0bf;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* Inner pages */
.page-hero {
  background: #111 center/cover no-repeat;
  color: #fff;
  min-height: 220px;
  display: grid;
  align-items: end;
}

.page-hero .container {
  padding: 48px 0;
}

.card-list {
  display: grid;
  gap: 16px;
}

.info-card,
.event-card,
.vacancy-card {
  border: 1px solid var(--line);
  padding: 22px;
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  background: #ddd;
}

.split-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 56px 0 0;
}

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

.site-footer h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #cfcfcf;
}

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

.site-footer a:hover {
  color: #fff;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter input {
  flex: 1;
  min-height: 42px;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 0;
}

.socials a {
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.copyright {
  border-top: 1px solid #333;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  color: #aaa;
}

@media (max-width: 980px) {
  .quick-links,
  .news-grid,
  .testimonial-grid,
  .course-tiles,
  .path-grid,
  .facts,
  .student-life-grid,
  .course-hero,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .site-header.is-dark .nav-links {
    background: #ffffff;
    color: var(--ink);
  }
  .site-header.is-dark .nav-links a {
    color: var(--ink);
  }
  .site-header.is-dark .nav-links a:hover,
  .site-header.is-dark .nav-links a[aria-current="page"] {
    color: var(--red);
  }

  .nav-item-dropdown {
    width: 100%;
  }

  /* On mobile, the mega menu becomes a stacked accordion. The COURSES panel
     shows collapsed category rows; tapping a row reveals its submenu inline
     (no side-positioning on small screens). */
  .nav-item-dropdown .dropdown-menu.mega-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 4px 14px;
    border-top: none;
    border-left: 2px solid var(--red);
    margin-top: 6px;
    min-width: unset;
    max-width: 100%;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-item-dropdown .dropdown-menu .dropdown-group {
    padding: 4px 0;
  }
  .nav-item-dropdown .dropdown-menu .dropdown-group + .dropdown-group {
    margin-top: 4px;
    padding-top: 6px;
  }
  .nav-item-dropdown .dropdown-menu .dropdown-group-toggle {
    padding: 4px 0 2px;
  }
  .nav-item-dropdown .dropdown-menu .dropdown-group-title {
    padding: 0;
    font-size: 10px;
  }
  .nav-item-dropdown .dropdown-menu a {
    padding: 6px 0;
    font-size: 12px;
  }

  /* Submenus on mobile are inline and toggle via the button (aria-expanded) */
  .mega-menu .dropdown-submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    visibility: hidden;
    opacity: 1;
    transform: none;
    pointer-events: none;
    display: none;
    min-width: unset;
    padding: 0 0 0 10px;
  }
  .mega-menu .dropdown-group-toggle[aria-expanded="true"] + .dropdown-submenu {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

  /* Hide the inline desktop "Apply Now" CTA on mobile; the hamburger menu is enough */
  .nav-cta {
    display: none;
  }

  .nav-main .container {
    position: relative;
  }
}

@media (max-width: 700px) {
  .quick-links,
  .photo-grid,
  .news-grid,
  .testimonial-grid,
  .course-tiles,
  .path-grid,
  .facts,
  .student-life-grid,
  .course-hero,
  .footer-grid,
  .form-grid,
  .news-head {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin: 28px 0;
  }

  .employers,
  .topbar .container,
  .split-page {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-page {
    grid-template-columns: 1fr;
  }
}
