/* ==========================================================================
   Next Consultants Ltd - Production Stylesheet
   Art Direction: Calm Boutique (Playbook: clinic, Variant A)
   Locality: Manchester, England, UK (GB)
   ========================================================================== */

/* --- Central Design Tokens --- */
:root {
  /* Exact Palette from design_brief.json */
  --background: #faf9f6;
  --surface: #ffffff;
  --text: #191e2b;
  --muted: #4f5666;
  --primary: #4e44d4;
  --primaryText: #ffffff;
  --accent: #b82337;
  --dark: #0e1320;
  --darkText: #f8f9fb;

  /* Derived Functional Tints & Gradients strictly from Palette */
  --primary-hover: #3d34b8;
  --primary-light: rgba(78, 68, 212, 0.08);
  --primary-border: rgba(78, 68, 212, 0.22);
  --accent-hover: #9c1b2c;
  --accent-light: rgba(184, 35, 55, 0.08);
  --accent-border: rgba(184, 35, 55, 0.2);
  --dark-surface: #141b2c;
  --dark-border: rgba(248, 249, 251, 0.12);
  --border-color: rgba(25, 30, 43, 0.12);
  --border-subtle: rgba(25, 30, 43, 0.06);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 19, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 19, 32, 0.08);
  --shadow-lg: 0 16px 44px rgba(14, 19, 32, 0.11);
  --shadow-hover: 0 20px 48px rgba(78, 68, 212, 0.14);

  /* Radii per Variant A: rounded 20px cards */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 42px;
}

/* --- Base Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--background);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--background);
  color: var(--text);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

/* Images & Media - prevent CLS */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessible Focus Outlines */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* --- Container & Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section-alt {
  background-color: var(--surface);
  border-block: 1px solid var(--border-subtle);
}

.section-dark {
  background-color: var(--dark);
  color: var(--darkText);
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text);
  text-wrap: balance;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--darkText);
}

h1 {
  font-size: clamp(2.35rem, 5vw + 1rem, 3.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.25rem, 1.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.section-dark .text-muted {
  color: rgba(248, 249, 251, 0.75);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-border);
}

.section-dark .section-tag {
  background-color: rgba(78, 68, 212, 0.25);
  color: #c9c5ff;
  border-color: rgba(78, 68, 212, 0.45);
}

.section-tag.tag-accent {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.lead-text {
  font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  min-height: 48px;
  min-width: 48px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primaryText);
  box-shadow: 0 4px 14px rgba(78, 68, 212, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primaryText);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(78, 68, 212, 0.4);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--background);
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(184, 35, 55, 0.28);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 35, 55, 0.38);
}

.btn-outline-white {
  background: transparent;
  color: var(--darkText);
  border: 1.5px solid rgba(248, 249, 251, 0.3);
}

.btn-outline-white:hover {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--surface);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --- Top Utility Bar --- */
.topbar {
  background-color: var(--dark);
  color: var(--darkText);
  font-size: 0.875rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(248, 249, 251, 0.08);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(248, 249, 251, 0.85);
  transition: color 0.2s ease;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffc978;
  font-weight: 500;
}

/* --- Sticky Header & Navigation --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(14, 19, 32, 0.04);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
  min-width: 48px;
}

.logo-img {
  height: clamp(38px, 4.5vw, 48px);
  width: auto;
  aspect-ratio: 748 / 296;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.975rem;
  border-radius: var(--radius-sm);
  min-height: 48px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1rem;
  right: 1rem;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger Toggle Button */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: var(--background);
  border: 1px solid var(--border-color);
  color: var(--text);
  z-index: 1010;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

/* --- Mobile Drawer Navigation --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1005;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(14, 19, 32, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .mobile-drawer-overlay {
  opacity: 1;
}

.mobile-drawer-pane {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 380px);
  background-color: var(--surface);
  box-shadow: -8px 0 32px rgba(14, 19, 32, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-drawer.open .mobile-drawer-pane {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: 48px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

/* --- Hero Section (Typographic Layout) --- */
.hero-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: radial-gradient(circle at 80% 20%, rgba(78, 68, 212, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(184, 35, 55, 0.03) 0%, transparent 50%),
              var(--background);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-content {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.hero-proof-badge .star-rating {
  color: #ff9800;
  font-size: 1rem;
}

.hero-proof-badge .proof-divider {
  color: var(--border-color);
}

.hero-headline {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-subheadline {
  font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.45rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.metric-card {
  background-color: var(--surface);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* --- Section 1: Trust Credentials & Accreditations Strip --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.credential-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.credential-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.credential-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.credential-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.credential-meta {
  font-family: monospace;
  font-size: 0.875rem;
  background-color: var(--background);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  color: var(--muted);
  width: fit-content;
}

/* --- Section 2: Higher Education Degree Programmes (Grid & Cards) --- */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pathway-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pathway-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--border-color);
}

.pathway-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.pathway-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--dark);
  color: var(--darkText);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.pathway-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pathway-duration {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pathway-features {
  list-style: none;
  margin-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pathway-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.feature-check {
  color: #108a00;
  flex-shrink: 0;
  font-weight: bold;
}

.pathway-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- SIGNATURE SECTION: Adult Learner Eligibility & Pathway Navigator --- */
.navigator-container {
  background-color: var(--surface);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.navigator-intro {
  text-align: center;
  max-width: 750px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.navigator-selector-label {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.navigator-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.nav-option-btn {
  background-color: var(--background);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.nav-option-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.nav-option-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primaryText);
  box-shadow: 0 4px 14px rgba(78, 68, 212, 0.3);
}

.nav-option-btn .opt-icon {
  font-size: 1.25rem;
}

.nav-option-btn .opt-sub {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Navigator Result Output Card */
.navigator-result-card {
  background: linear-gradient(145deg, #faf9f6 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-inline-start: 6px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.result-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-green {
  background-color: rgba(16, 138, 0, 0.1);
  color: #0b6800;
  border: 1px solid rgba(16, 138, 0, 0.2);
}

.badge-indigo {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-terracotta {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.result-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-block: 1.75rem;
}

.result-spec-box {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.result-spec-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.result-spec-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

/* --- Section 3: 4-Step Admission Journey --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  position: relative;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.step-badge-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--primary);
  line-height: 1;
}

.step-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* --- Section 4: Dedicated Admissions Mentorship & Team --- */
.team-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .team-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }
}

.team-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 503 / 600;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(14, 19, 32, 0.9) 0%, transparent 100%);
  color: var(--darkText);
}

.team-caption-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.team-caption-sub {
  font-size: 0.875rem;
  opacity: 0.85;
}

.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.team-member-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.team-member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.team-member-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Section 5: Real Student Experiences (Testimonials) --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(78, 68, 212, 0.18);
  margin-bottom: -1rem;
}

.testimonial-text {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.stars-five {
  color: #ff9800;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

/* --- Section 6: Student Finance England & Funding --- */
.finance-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .finance-split {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

.finance-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 900 / 600;
}

.finance-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block: 1.75rem;
}

.finance-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.finance-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- Section 7: Manchester Head Office & UK Campus Hubs --- */
.office-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .office-split {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.office-info-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.office-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  min-height: 380px;
  height: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.hubs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hub-pill {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Course Directory & Filters (courses.html) --- */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background-color: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  min-height: 48px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primaryText);
  box-shadow: 0 4px 14px rgba(78, 68, 212, 0.3);
}

.course-item-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.course-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.course-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.course-badge-type {
  background-color: var(--primary-light);
  color: var(--primary);
}

.course-badge-mode {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* --- Interactive Accordions (FAQ on contact.html & Modules) --- */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.accordion-item {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.accordion-item.active {
  border-color: var(--primary-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  min-height: 48px;
  gap: 1rem;
  background-color: transparent;
}

.accordion-trigger:hover {
  background-color: var(--background);
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding-inline: 1.5rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.accordion-item.active .accordion-panel {
  max-height: 800px;
  padding-bottom: 1.5rem;
}

/* --- Contact & Consultation Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(78, 68, 212, 0.15);
  outline: none;
}

/* Honeypot field - invisible to genuine users & screen readers without confusing them */
.form-honeypot {
  display: none !important;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --- Universal Modal Dialog (Application Modal) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(14, 19, 32, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--background);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* --- Universal Multi-Column Footer --- */
footer.site-footer {
  background-color: var(--dark);
  color: var(--darkText);
  padding-top: clamp(4rem, 6vw, 5.5rem);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(248, 249, 251, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  aspect-ratio: 748 / 296;
}

.footer-heading {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: rgba(248, 249, 251, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-nav-link:hover {
  color: #ffffff;
  padding-inline-start: 4px;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(248, 249, 251, 0.08);
  border: 1px solid rgba(248, 249, 251, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 249, 251, 0.85);
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-legal-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 249, 251, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(248, 249, 251, 0.65);
}

@media (min-width: 768px) {
  .footer-legal-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-photo-credits {
  font-size: 0.8125rem;
  color: rgba(248, 249, 251, 0.5);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  color: var(--primaryText);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(14, 19, 32, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

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

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(78, 68, 212, 0.4);
}

/* --- Animations & Progressive Reveal --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Print Styles --- */
@media print {
  header.site-header,
  .topbar,
  .back-to-top,
  .modal-overlay,
  .mobile-drawer {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }
}
