/* ==========================================================================
   IMBS WEBSITE - MAIN STYLE SHEET (styles.css)
   ========================================================================== */

/* 1. Design System & CSS Custom Properties */
:root {
  /* Brand Colors */
  --navy: #1C2F6E;
  --red: #C8102E;
  --red-hover: #A00D24;
  --white: #FFFFFF;
  
  /* Supporting Colors */
  --deep-navy: #111D4A;
  --off-white: #F4F4F0;
  --light-grey: #E8E8E8;
  --muted-navy: #2A3F7E;
  
  /* Text Colors */
  --text-dark: #333333;
  --text-light: #E0E0E0;
  --text-muted: #B0BAD0;
  --text-hero-sub: #C0C8E0;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
  --transition-bounce: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* 2. Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Handled by Lenis */
  overflow-x: hidden;
  background-color: var(--navy);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Global Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Section Common Layouts */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Overlines & Labels */
.overline-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title-white {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--white);
  margin-bottom: 40px;
}

.section-title-dark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--navy);
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  height: 48px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* White light sweep effect for CTA buttons */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 150%;
}

.btn-primary-red {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary-red:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

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

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

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

.btn-solid-white:hover {
  background-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

/* Scroll reveal initial states (for GSAP/CSS backup) */
.reveal-on-scroll {
  will-change: transform, opacity;
}


/* ==========================================================================
   3. Navigation Styles
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
  background-color: rgba(28, 47, 110, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .nav-logo {
    margin-left: -20px; /* Shifts the logo slightly to the left */
    margin-right: 60px;  /* Pushes menu items to the right to create a healthy gap */
  }
}


.nav-logo-img {
  height: 64px;
  transform: scale(1.4);
  transform-origin: left center;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.46);
}

.nav-logo svg {
  height: 40px;
  width: auto;
}

.logo-img {
  max-height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Center Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--white);
}

/* Red underline sliding hover effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-item.active .nav-link {
  color: var(--white);
}

.nav-item.active .nav-link::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--red);
  border-radius: 50%;
}

/* Programs Dropdown / Mega Menu */
.nav-item-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}

.mega-menu {
  position: absolute;
  top: calc(var(--header-height) - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 600px;
  background-color: var(--deep-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.mega-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.mega-menu-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
}

.mega-menu-title svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition-fast);
}

.mega-menu-item:hover .mega-menu-title svg {
  opacity: 1;
  transform: translateX(0);
}

.mega-menu-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Nav Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-actions .btn {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

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

/* Student Login Circular Blue Button */
.btn-student-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E40AF, #2563EB);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  z-index: 10;
}

.btn-student-login:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Custom student icon color inside button */
.btn-student-login .student-login-icon {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.btn-student-login:hover .student-login-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Tooltip container styling */
.btn-student-login::after {
  content: 'Student Login';
  position: absolute;
  bottom: -48px;
  right: 0;
  background-color: rgba(17, 29, 74, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

/* Tooltip triangle */
.btn-student-login::before {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 14px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(17, 29, 74, 0.96) transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-student-login:hover::after,
.btn-student-login:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Pay Online Circular Green Button */
.btn-pay-online {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  z-index: 10;
}

.btn-pay-online:hover {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-pay-online .student-login-icon {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.btn-pay-online:hover .student-login-icon {
  transform: scale(1.1);
}

.btn-pay-online::after {
  content: 'Pay Online';
  position: absolute;
  bottom: -48px;
  right: 0;
  background-color: rgba(17, 29, 74, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

.btn-pay-online::before {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 14px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(17, 29, 74, 0.96) transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pay-online:hover::after,
.btn-pay-online:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger Menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Nav Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--navy);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 40px;
}

.mobile-menu-link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.mobile-menu-link:hover {
  color: var(--red);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 80%;
  max-width: 300px;
}

.mobile-menu-actions .btn {
  width: 100%;
}

@media (max-height: 780px) {
  .mobile-menu-list {
    gap: 12px;
    margin-bottom: 20px;
  }

  .mobile-menu-link {
    font-size: 20px;
  }

  .mobile-menu-actions {
    gap: 8px;
  }

  .mobile-menu-actions .btn {
    height: 40px;
    font-size: 13px;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ==========================================================================
   4. Section 1 - Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  background-color: var(--navy);
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
}

/* Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none; /* Pass clicks to canvas and text */
}

/* Video Overlay Shade */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Canvas Particle Grid Background */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: auto; /* We need mouse interaction */
}

.hero .container {
  z-index: 4;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 45px 0;
  text-align: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 68px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  overflow: hidden;
  text-align: center;
}

/* Word-by-word stagger wrapper */
.hero-h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-subheading {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-hero-sub);
  margin-bottom: 36px;
  max-width: 650px;
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  justify-content: center;
  margin-bottom: 24px;
}

/* Glassmorphic Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  width: 100%;
  max-width: 760px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.hero-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.hero-stat-lbl {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Scrolling Accreditation Marquee — now in normal document flow below hero */
.hero-marquee-wrapper {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 0;
  background-color: #ffffff;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.hero-marquee {
  display: flex;
  width: max-content;
  align-items: center;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  animation: marquee-scroll 18s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.1em;
}

.marquee-separator {
  color: var(--red);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}

.marquee-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: none;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


/* ==========================================================================
   5. Section 2 - Stats Bar
   ========================================================================== */
.stats-bar {
  background-color: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--light-grey);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-col {
  text-align: center;
  position: relative;
  padding: 10px 20px;
}

/* Red vertical dividers */
.stat-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  width: 1px;
  height: 80%;
  background-color: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: #666666;
  letter-spacing: 0.1em;
}


/* ==========================================================================
   6. Section 3 - Who Is IMBS For
   ========================================================================== */
.who-is-for {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}


.who-is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.who-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.who-card-bg {
  position: relative;
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  filter: none !important;
  opacity: 1 !important;
}

.who-card:hover .who-card-bg {
  filter: none !important;
  opacity: 1 !important;
}

.who-card-content {
  position: relative;
  background: #ffffff;
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.who-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.who-card:hover::before {
  background-color: var(--red);
}

.who-card-icon {
  width: 48px;
  height: 48px;
  fill: var(--red);
}

.who-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  text-transform: uppercase;
}

.who-card-body {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  flex-grow: 1;
}

.who-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.who-card-link svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  transition: transform 0.2s ease;
}

.who-card-link:hover svg {
  transform: translateX(4px);
}


/* ==========================================================================
   7. Section 4 - Programs Explorer
   ========================================================================== */
.programs-explorer {
  background-color: var(--off-white);
  padding: 30px 0;
  overflow: visible;
}

.programs-explorer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.programs-explorer-header .section-title-dark {
  margin-bottom: 0;
}

/* Horizontal Tabs Row */
.tabs-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 40px;
  /* Hide scrollbar */
  scrollbar-width: none;
}
.tabs-container::-webkit-scrollbar {
  display: none;
}

.tabs-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-width: max-content;
  margin: 0 auto;
  position: relative;
}

.tab-btn {
  background-color: var(--white);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--light-grey);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: rgba(28, 47, 110, 0.08);
}

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

/* Program Cards Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  min-height: 250px;
}

.program-card {
  background-color: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  top: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--red);
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
}

.program-card:hover {
  border-color: var(--navy);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.program-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.program-details {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666666;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.program-details span strong {
  color: var(--navy);
}

.program-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.program-link svg {
  width: 14px;
  height: 14px;
  fill: var(--red);
  transition: transform 0.25s ease;
}

.program-link:hover svg {
  transform: translateX(4px);
}

.programs-explorer-footer {
  display: flex;
  justify-content: center;
}


/* ==========================================================================
   8. Section 5 - How It Works
   ========================================================================== */
.how-it-works {
  background-color: var(--navy);
  padding: 100px 0;
}

.timeline-wrapper {
  position: relative;
  margin-top: 60px;
  padding: 40px 0;
}

/* Connecting Line Containers */
.timeline-svg-container {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
  z-index: 1;
}

.timeline-line {
  width: 100%;
  height: 2px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.timeline-progress-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 1000;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  z-index: 2;
}

.step-block {
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-num-bg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
  user-select: none;
  display: block;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   9. Section 6 - Accreditations
   ========================================================================== */
.accreditations {
  background-color: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--light-grey);
}

.accred-subtext {
  max-width: 700px;
  margin: -24px auto 40px auto;
  font-size: 16px;
  color: #555555;
  text-align: center;
}

.accred-badges-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.accred-pill {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(28, 47, 110, 0.1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.accred-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(28, 47, 110, 0.2);
}

.accred-pill span {
  font-size: 18px;
}

/* Disclaimer Box */
.accred-disclaimer {
  background-color: #F0F0F0;
  border-left: 4px solid var(--red);
  padding: 24px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  max-width: 900px;
  margin: 0 auto;
}

.accred-disclaimer p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}


/* ==========================================================================
   10. Section 7 - Why IMBS
   ========================================================================== */
.why-imbs {
  background-color: var(--deep-navy);
  padding: 100px 0;
}

.why-imbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.why-imbs-left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--white);
  line-height: 1.2;
}

/* Vertical Accordion list */
.accordion-list {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 20px 16px;
  display: flex;
  flex-direction: column;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  text-align: left;
  width: 100%;
}

.accordion-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  text-transform: uppercase;
}

.accordion-icon {
  font-size: 24px;
  color: var(--white);
  font-weight: 300;
  transition: transform 0.3s ease;
  user-select: none;
}

.accordion-body-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  border-left: 0 solid var(--red);
}

.accordion-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  padding: 12px 16px 0 0;
  line-height: 1.6;
}

/* Active accordion styles */
.accordion-item.active .accordion-border {
  transform: scaleY(1);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg); /* becomes X */
}

.accordion-item.active .accordion-body-wrapper {
  max-height: 500px;
}


/* ==========================================================================
   11. Section 8 - Testimonials
   ========================================================================== */
.testimonials {
  background-color: var(--white);
  padding: 80px 0;
}

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

.testimonials-nav {
  display: flex;
  gap: 12px;
}

.testimonial-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  transition: var(--transition-fast);
}

.testimonial-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
  transition: fill var(--transition-fast);
}

.testimonial-nav-btn:hover {
  background-color: var(--red);
  border-color: var(--red);
}

.testimonial-nav-btn:hover svg {
  fill: var(--white);
}

/* Testimonial slider / track wrapper */
.testimonials-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 32px;
  width: 100%;
  transition: transform var(--transition-normal);
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  min-width: calc((100% - 64px) / 3); /* 3 cards visible */
  background-color: var(--white);
  border: 1px solid #D0D5E8;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(28, 47, 110, 0.03);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--red);
  line-height: 0.1;
  margin-top: 24px;
  user-select: none;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  text-transform: uppercase;
}

.author-program {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   12. Section 9 - Partner Universities
   ========================================================================== */
.partners {
  background-color: #F4F4F4;
  padding: 80px 0;
}

.partners-subtext {
  max-width: 700px;
  margin: -24px auto 40px auto;
  font-size: 16px;
  color: #555555;
  text-align: center;
}

/* University logos marquee auto-scroll */
.partners-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.partners-marquee {
  display: flex;
  width: max-content;
}

.partners-marquee-content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  animation: partners-scroll 22s linear infinite;
}

/* Pauses on hover over the container */
.partners-marquee-wrapper:hover .partners-marquee-content {
  animation-play-state: paused;
}

/* Custom styled University Badge badge instead of image files */
.partner-logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--white);
  padding: 16px 28px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #E0E0E0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  filter: grayscale(1);
  transition: filter 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.partner-logo-badge svg {
  width: 24px;
  height: 24px;
  fill: #666666;
  transition: fill 0.3s ease;
}

.partner-logo-badge:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  border-color: var(--navy);
  color: var(--navy);
}

.partner-logo-badge:hover svg {
  fill: var(--red);
}

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ==========================================================================
   13. Section 10 - CTA Banner
   ========================================================================== */
.cta-banner {
  background-color: var(--red);
  padding: 80px 0;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at center, #E51A3B 0%, var(--red) 100%);
  background-size: 100% 100%;
  transition: background-size 4s ease-in-out;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.cta-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtext {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}


/* ==========================================================================
   14. Section 11 - Footer
   ========================================================================== */
.footer {
  background-color: var(--deep-navy);
  padding: 60px 0 20px 0;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social-icon:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  color: var(--red);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--red);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 8px;
  align-self: flex-start;
}

.whatsapp-link:hover {
  background-color: #128C7E;
}

.whatsapp-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.contact-note {
  font-size: 12px;
  color: #66759E;
  margin-top: 4px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-designed {
  font-size: 13px;
  color: var(--text-muted);
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background-color 0.2s;
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--red-hover);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}


/* ==========================================================================
   15. Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablet: 768px – 1279px */
@media screen and (max-width: 1279px) {
  .section-title-white, .section-title-dark {
    font-size: 40px;
  }
  
  /* Navbar */
  .nav-container {
    gap: 20px;
  }

  .nav-logo {
    margin-right: 32px;
  }

  .nav-menu {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 13.5px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn {
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  
  /* Hero */
  .hero-h1 {
    font-size: 48px;
  }
  
  .hero-subheading {
    font-size: 16px;
  }
  
  /* Stats Bar */
  .stat-number {
    font-size: 44px;
  }
  
  /* Who Is IMBS For */
  .who-is-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Timeline */
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline-svg-container {
    display: none; /* Hide horizontal connecting line on stacked mobile/tablet layout */
  }
  
  .step-block {
    align-items: center;
    text-align: center;
  }
  
  /* Why IMBS Accordion */
  .why-imbs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-imbs-left {
    text-align: center;
  }
  
  /* Testimonials */
  .testimonials-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  
  .testimonial-card {
    min-width: calc((100% - 32px) / 2); /* 2 cards visible */
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile: < 768px */
@media screen and (max-width: 767px) {
  :root {
    --header-height: 70px;
  }
  
  .section-title-white, .section-title-dark {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  /* Navbar */
  .nav-logo-img {
    height: 52px;
    transform: scale(1.4);
    transform-origin: left center;
    max-width: 190px;
  }

  .nav-logo:hover .nav-logo-img {
    transform: scale(1.46);
  }

  .nav-menu, .nav-actions {
    display: none; /* Hidden, overlay mobile menu will be active */
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Hero */
  .hero {
    min-height: 100vh;
    height: 100vh;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 0;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
    padding: 16px 0 0 0;
    height: 100%;
    justify-content: center;
  }

  .hero-h1 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-subheading {
    font-size: 13px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
  }

  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 14px auto;
    gap: 10px;
  }

  .hero-ctas .btn {
    width: 100%;
    height: 44px;
  }

  /* Stats row: compact horizontal 3-col on mobile */
  .hero-stats-row {
    flex-direction: row;
    gap: 0;
    padding: 12px 16px;
    margin-top: 0;
    max-width: 100%;
    border-radius: var(--border-radius-sm);
  }

  .hero-stat-item {
    flex: 1;
    width: auto;
  }

  .hero-stat-val {
    font-size: 22px;
  }

  .hero-stat-lbl {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  /* Restore vertical dividers between stat items */
  .hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    bottom: auto;
    transform: none;
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  .hero-marquee-wrapper {
    padding: 16px 0;
  }

  /* Stats Bar: 2x2 grid */
  .stats-bar {
    padding: 60px 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }
  
  .stat-col:not(:last-child)::after {
    display: none; /* Hide dividers */
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 32px auto;
  }
  
  /* Accreditations */
  .accred-subtext {
    font-size: 14px;
  }
  
  .accred-badges-strip {
    gap: 12px;
  }
  
  .accred-pill {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  /* Testimonials */
  .testimonial-card {
    min-width: 100%; /* 1 card visible */
  }
  
  /* CTA Banner */
  .cta-banner {
    padding: 60px 0;
  }
  
  .cta-h2 {
    font-size: 32px;
  }
  
  .cta-subtext {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0 20px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   ENHANCED UPGRADE AND MOTION SYSTEM ADDITIONS
   ========================================================================== */

/* 1. Hero Circle Decorative Elements */
.hero-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(200, 16, 46, 0.15);
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: rotateSlow 20s linear infinite;
  z-index: 3;
}
.hero-circle::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 2. Image Multiply Overlay Wrap */
.img-overlay-wrap {
  position: relative;
}
.img-overlay-wrap::after {
  display: none !important;
}

/* 3. Program Tabs Switcher Layout (Desktop ≥ 992px) */
.programs-tabs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

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

.program-tab-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
}

.program-tab-btn:hover {
  color: var(--red);
  background: rgba(200, 16, 46, 0.04);
}

.program-tab-btn.active {
  color: var(--navy);
  background: rgba(28, 47, 110, 0.06);
  border-left-color: var(--red);
}

.programs-tabs-content {
  position: relative;
  min-height: 480px;
}

.programs-tabs-content .program-stack-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure mobile elements are hidden on desktop */
.programs-explorer .mobile-carousel-viewport,
.programs-explorer .mobile-carousel-controls {
  display: none !important;
}
.program-stack-card {
  position: absolute;
  width: 100%;
  max-width: 950px;
  height: 460px;
  max-height: 72vh;
  background: #1C2F6E;
  border-radius: 24px;
  border: 2px solid #000000;
  padding: 32px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
}

/* Z-index ordering so later cards slide over earlier ones */
.program-stack-card[data-index="0"] { z-index: 1; }
.program-stack-card[data-index="1"] { z-index: 2; }
.program-stack-card[data-index="2"] { z-index: 3; }
.program-stack-card[data-index="3"] { z-index: 4; }
.program-stack-card[data-index="4"] { z-index: 5; }
.program-stack-card[data-index="5"] { z-index: 6; }
.program-stack-card[data-index="6"] { z-index: 7; }
.program-stack-card[data-index="7"] { z-index: 8; }

/* Program Card Inside Grid */
.program-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.program-card-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.program-card-left .category-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
}
.program-card-left .category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  color: var(--white);
}
.program-card-left .category-desc {
  font-size: 15px;
  color: var(--text-hero-sub);
  line-height: 1.6;
}
.category-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.meta-label {
  font-weight: 600;
  color: var(--white);
  min-width: 90px;
}
.meta-value {
  color: var(--text-muted);
}
.program-card-left .card-cta {
  align-self: flex-start;
  margin-top: 10px;
}
.program-card-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.program-card-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.program-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-list-title {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}
.featured-programs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-programs-list li {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
}
.featured-programs-list li a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: inline-block;
}
.featured-programs-list li a:hover {
  color: var(--white);
}
.featured-programs-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Tablet / Mobile View (max-width: 991px): horizontal swipe carousel */
@media screen and (max-width: 991px) {
  .programs-tabs-layout {
    display: none !important;
  }
  .programs-explorer .mobile-carousel-viewport {
    display: block !important;
  }
  .programs-explorer .mobile-carousel-controls {
    display: flex !important;
  }
  /* Prevent horizontal overflow at section level */
  .programs-explorer {
    padding: 0;
    overflow-x: hidden;
  }
  /* No tall container needed — section scrolls naturally */
  .programs-stack-container {
    height: auto !important;
  }
  /* No pin on mobile — normal document flow */
  .acer-main-stack-trigger {
    height: auto !important;
  }
  /* Wrapper flows with content, not sticky */
  .programs-sticky-wrapper {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background-color: var(--off-white) !important;
    transform: none !important;
    left: auto !important;
    width: 100% !important;
  }
  .programs-explorer-header {
    padding: 36px 20px 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  /* Viewport wrapper — clips cards, does not scroll itself */
  .mobile-carousel-viewport {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }
  /* Card track — JS moves via translateX on the track; overflow:hidden clips offscreen cards */
  .program-card-stack {
    display: flex !important;
    flex-direction: row !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: flex-start !important;
    will-change: auto !important;
    position: relative !important;
  }
  /* Each card — full viewport width; JS sets transition + translateX on the track */
  .program-stack-card {
    position: relative !important;
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Card grid: column layout, image on top */
  .program-card-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
  }
  /* Show image (overrides tablet's display:none on .program-card-right) */
  .program-card-right {
    display: flex !important;
    flex-direction: column !important;
    order: -1 !important;
    gap: 0 !important;
  }
  /* Image: full card width, fixed height; card's overflow:hidden rounds corners */
  .program-card-img-wrap {
    width: 100% !important;
    height: 180px !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
  }
  .program-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Hide featured programs list — not enough space on mobile */
  .featured-list-wrap {
    display: none !important;
  }
  /* Content sits below the image */
  .program-card-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: auto !important;
    justify-content: flex-start !important;
    padding: 12px 20px 20px !important;
  }
  .program-card-left .category-label {
    font-size: 11px !important;
  }
  .program-card-left .category-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .program-card-left .category-desc {
    font-size: 13px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .category-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 2px 0 !important;
  }
  .meta-item {
    font-size: 12px !important;
  }
  .program-card-left .card-cta {
    align-self: flex-start !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
    height: auto !important;
    margin-top: 4px !important;
  }
  /* Dots: sit below card stack */
  .program-carousel-dots {
    margin-top: 16px !important;
    padding: 0 0 20px !important;
  }
  /* Arrow carousel controls */
  .mobile-carousel-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 16px 0 8px !important;
  }
  .carousel-prev,
  .carousel-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #c0392b !important;
    background: transparent !important;
    color: #c0392b !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
  }
  .carousel-prev:hover,
  .carousel-next:hover,
  .carousel-prev:active,
  .carousel-next:active {
    background: #c0392b !important;
    color: #fff !important;
  }
  .carousel-prev:disabled,
  .carousel-next:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }
  .carousel-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 0 24px !important;
  }
  .carousel-dots .carousel-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(28, 47, 110, 0.25) !important;
    transition: background 0.2s, transform 0.2s !important;
    cursor: pointer !important;
  }
  .carousel-dots .carousel-dot.active {
    background: #c0392b !important;
    transform: scale(1.4) !important;
  }
}

/* Arrow controls and new dots hidden on desktop by default */
.mobile-carousel-controls {
  display: none;
}

/* Carousel dot indicators (mobile programs section) */
.program-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(28, 47, 110, 0.25);
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}
.carousel-dot.active {
  background-color: var(--red);
  transform: scale(1.3);
}

/* 4. Accordion Enhancements */
.accordion-item {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 20px 16px;
  display: flex;
  flex-direction: column;
}
.accordion-border {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: none; /* Let GSAP handle transition if running, otherwise use CSS fallback */
}
.accordion-body-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: none; /* Controlled by GSAP */
}

/* 5. Global Scroll Reveal Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 6. Massive CTA Banner Heading */
.cta-banner .cta-h2, .cta-banner h2 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ==========================================================================
   SECTION TEXTURE, DECORATIVE LINES & MOTION
   ========================================================================== */

/* Subtle animated grid pattern for light sections */
@keyframes bg-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

/* Section heading override for dark who-is-for background */
.who-is-for h2 {
  color: var(--white);
}

.stats-bar::before,
.accreditations::before,
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 47, 110, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 47, 110, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: bg-grid-drift 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Motion grid overlay for dark who-is-for background */
.who-is-for::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: bg-grid-drift 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Slow-drifting diagonal highlight lines on top of the grid */
@keyframes drift-lines {
  0%   { transform: translateX(-60px) translateY(-60px); opacity: 0.5; }
  50%  { opacity: 1; }
  100% { transform: translateX(0px)   translateY(0px);   opacity: 0.5; }
}

.accreditations::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 80px,
      rgba(28, 47, 110, 0.018) 80px,
      rgba(28, 47, 110, 0.018) 82px
    );
  animation: drift-lines 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Animated diagonal motion lines for dark who-is-for background */
.who-is-for::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 80px,
      rgba(255, 255, 255, 0.03) 80px,
      rgba(255, 255, 255, 0.03) 82px
    );
  animation: drift-lines 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Make sure section content sits above the decorative layers */
.who-is-for > .container,
.stats-bar > .container,
.accreditations > .container,
.testimonials > .container {
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   PARTNER LOGO IMAGES (replaces text-SVG badges)
   ========================================================================== */
.partner-logo-item {
  background-color: var(--white);
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-logo-item:hover {
  transform: scale(1.05);
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(28, 47, 110, 0.12);
}

.partner-logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}


/* ==========================================================================
   FULL-SITE MOBILE RESPONSIVENESS POLISH (< 768px)
   ========================================================================== */
@media screen and (max-width: 767px) {

  /* ---- Stats Bar ---- */
  .stats-bar {
    padding: 48px 0 40px 0;
  }

  /* ---- Who Is For ---- */
  .who-is-for {
    padding: 60px 0;
  }

  .who-card {
    min-height: 320px;
  }

  .who-card-content {
    padding: 28px 24px;
    gap: 14px;
  }

  .who-card-title {
    font-size: 18px;
  }

  .who-card-body {
    font-size: 14px;
  }

  /* ---- Accreditations ---- */
  .accreditations {
    padding: 56px 0;
  }

  /* ---- Why IMBS ---- */
  .why-imbs {
    padding: 60px 0;
  }

  .why-imbs-left h2 {
    font-size: 32px;
  }

  /* ---- Testimonials ---- */
  .testimonials {
    padding: 56px 0;
  }

  .testimonial-card {
    padding: 28px 24px;
    gap: 14px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  /* ---- Partners ---- */
  .partners {
    padding: 56px 0;
  }

  /* ---- How It Works ---- */
  .how-it-works {
    padding: 60px 0;
  }

  .timeline-wrapper {
    margin-top: 32px;
    padding: 24px 0;
  }

  .step-num-bg {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-desc {
    font-size: 14px;
  }

  /* ---- CTA Banner ---- */
  .cta-banner .cta-h2, .cta-banner h2 {
    font-size: clamp(36px, 8vw, 80px);
  }

  /* ---- Footer ---- */
  .footer-grid {
    gap: 24px;
  }

  .accred-subtext,
  .partners-subtext {
    font-size: 14px;
    margin-bottom: 28px;
    margin-top: 0;
  }

  /* ---- Overline / section titles ---- */
  .section-title-dark,
  .section-title-white {
    font-size: 28px;
  }

  /* ---- Container horizontal padding ---- */
  .container {
    padding: 0 18px;
  }
}

/* --- Warm / Off-White Theme Variations --- */
.navbar.theme-warm {
  background-color: #FCFAF2;
  border-bottom: 1px solid rgba(28, 47, 110, 0.08);
}

.navbar.theme-warm .nav-logo {
  color: var(--navy);
}

.navbar.theme-warm .nav-logo-img {
  filter: none;
}

.navbar.theme-warm .nav-link {
  color: rgba(28, 47, 110, 0.85);
}

.navbar.theme-warm .nav-link:hover {
  color: var(--red);
}

.navbar.theme-warm .nav-item.active .nav-link {
  color: var(--navy);
}

.navbar.theme-warm .hamburger span {
  background-color: var(--navy);
}

.navbar.theme-warm .btn-outline-white {
  border-color: var(--navy);
  color: var(--navy);
}

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

/* Warm mega menu dropdown styles */
.navbar.theme-warm .mega-menu {
  background-color: #FCFAF2;
  border-color: rgba(28, 47, 110, 0.08);
  box-shadow: 0 10px 30px rgba(28, 47, 110, 0.08);
}

.navbar.theme-warm .mega-menu-title {
  color: var(--navy);
}

.navbar.theme-warm .mega-menu-desc {
  color: #555555;
}

.navbar.theme-warm .mega-menu-item:hover {
  background-color: rgba(28, 47, 110, 0.04);
}

/* Mobile Menu Overlay Warm Variation */
.mobile-menu-overlay.theme-warm {
  background-color: #FCFAF2;
}

.mobile-menu-overlay.theme-warm .mobile-menu-link {
  color: var(--navy);
}

.mobile-menu-overlay.theme-warm .mobile-menu-link:hover {
  color: var(--red);
}

.mobile-menu-overlay.theme-warm .btn-outline-white {
  border-color: var(--navy);
  color: var(--navy);
}

.mobile-menu-overlay.theme-warm .btn-outline-white:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ==========================================================================
   INNER PAGE — Shared Page Hero Banner
   ========================================================================== */
.page-hero {
  background-color: var(--deep-navy);
  padding: 160px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(200, 16, 46, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(28, 47, 110, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero-overline {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.page-hero-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-hero-sub);
  line-height: 1.75;
  max-width: 580px;
}

.page-hero-desc strong {
  color: var(--white);
  font-weight: 600;
}

/* Hero accent bar at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
}

@media screen and (max-width: 767px) {
  .page-hero {
    padding: 130px 0 64px 0;
  }
  .page-hero-title {
    font-size: 36px;
  }
  .page-hero-desc {
    font-size: 15px;
  }
}


/* ==========================================================================
   INNER PAGE — About Page Mission Block
   ========================================================================== */
.about-mission {
  background-color: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--light-grey);
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-mission-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.about-mission-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-mission-body {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-pillar {
  background-color: var(--off-white);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  border-top: 3px solid var(--red);
}

.about-pillar-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.about-pillar-body {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

@media screen and (max-width: 991px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 767px) {
  .about-mission {
    padding: 56px 0;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   INNER PAGE — Accreditations Detail Section
   ========================================================================== */
.accred-detail-section {
  background-color: var(--off-white);
  padding: 80px 0;
}

.accred-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.accred-detail-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--navy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accred-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(28, 47, 110, 0.12);
}

.accred-card-acronym {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  line-height: 1;
}

.accred-card-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.4;
}

.accred-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.accred-card-tag {
  background-color: var(--light-grey);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.accred-card-tag--region {
  background-color: var(--navy);
  color: var(--white);
}

.accred-card-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.accred-card-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: auto;
  display: inline-block;
}

.accred-card-link:hover {
  color: var(--red-hover);
}

/* B&W variant for accred badges on the Accreditations page */
.accred-badges-bw .accred-pill {
  background-color: #2a2a2a;
  color: #e0e0e0;
  filter: grayscale(1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.accred-badges-bw .accred-pill:hover {
  filter: grayscale(0.3);
  background-color: #111;
  transform: scale(1.05);
}

@media screen and (max-width: 767px) {
  .accred-detail-section {
    padding: 56px 0;
  }
  .accred-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }
  .accred-detail-card {
    padding: 24px;
  }
}

@media screen and (max-width: 1150px) {
  .nav-menu, .nav-actions {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}
