/* ===== GLOBAL CADET SHIP - Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&display=swap');

html, body { overflow-x: hidden; }

:root {
  --navy: #0d2144;
  --navy-dark: #071530;
  --navy-light: #1a3a6c;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-light: #e8edf3;
  --gray: #8898aa;
  --text-dark: #1e2a3a;
  --text-body: #4a5568;
  --shadow: 0 4px 20px rgba(13,33,68,0.10);
  --shadow-lg: 0 8px 40px rgba(13,33,68,0.18);
  --radius: 8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar-contact a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.top-bar-contact a:hover { color: var(--gold); }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.top-bar-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ===== NAVIGATION (standard – non-homepage) ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13,33,68,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-brand img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.brand-text { line-height: 1.2; }
.brand-text .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand-text .brand-tagline {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== PILL NAVBAR – inner pages (solid dark) ===== */
.navbar-pill-wrap.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(7, 15, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  padding: 8px 0;
  justify-content: center;
  min-height: 78px;
}
.navbar-pill-wrap.page-nav .nav-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
/* Push page content below fixed navbar */
.navbar-pill-wrap.page-nav ~ * .page-hero,
.page-nav-spacer { padding-top: 94px; }

/* ===== FLOATING PILL NAVBAR (homepage) ===== */
.navbar-pill-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  pointer-events: none;
}
.navbar-pill-wrap > * { pointer-events: all; }

/* Logo + brand group – top left text */
.pill-logo-group {
  position: absolute;
  left: 32px;
  top: 0; bottom: 0;
  margin: auto 0;
  height: fit-content;
  display: flex;
  align-items: center;
  gap: 0;
}
.pill-logo-group .pill-logo {
  display: none;
}
.pill-logo img {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: block;
  flex-shrink: 0;
}
.pill-brand-beside { line-height: 1.3; }
.pbb-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.pbb-sub {
  display: none;
}

/* Contact CTA – top right */
.pill-cta {
  position: absolute;
  right: 32px;
  top: 0; bottom: 0;
  margin: auto 0;
  height: fit-content;
  background: rgba(201,168,76,0.85);
  border: 1px solid rgba(201,168,76,1);
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  z-index: 10;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pill-cta:hover {
  background: var(--gold);
  border-color: var(--gold-light);
  color: #ffffff;
}

/* The pill itself */
.nav-pill {
  background: rgba(15, 28, 60, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transition: background 0.3s ease;
}
.nav-pill.scrolled {
  background: rgba(8, 18, 45, 0.90);
}

/* Pill menu items */
.pill-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.pill-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.1px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.pill-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
}
.pill-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}
.pill-link i { font-size: 0.68rem; transition: transform 0.18s; }
.pill-item-dropdown:hover .pill-link i { transform: rotate(180deg); }

/* Centered brand name between logo and pill */
.navbar-center-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  line-height: 1.2;
}
.center-brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.center-brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Pill dropdown – level 1 */
.pill-item-dropdown { position: relative; }
.pill-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(10, 22, 52, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  z-index: 100;
}
.pill-item-dropdown:hover > .pill-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.pill-dropdown > a,
.pill-has-sub > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.15s;
  white-space: nowrap;
}
.pill-dropdown > a:hover,
.pill-has-sub > a:hover,
.pill-has-sub:hover > a {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}
.pill-dropdown > a i { font-size: 0.65rem; opacity: 0.5; }
.pill-has-sub > a i { font-size: 0.65rem; opacity: 0.7; }

/* Pill dropdown – level 2 (sub-dropdown) */
.pill-has-sub {
  position: relative;
}
.pill-sub-dropdown {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  background: rgba(10, 22, 52, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  z-index: 101;
}
.pill-has-sub:hover .pill-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.pill-sub-dropdown a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.78);
  font-size: 0.83rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.15s;
  white-space: nowrap;
}
.pill-sub-dropdown a:hover {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  padding-left: 20px;
}

/* Mobile hamburger for pill nav */
.pill-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.2s;
  z-index: 1100;
  flex-shrink: 0;
}
.pill-hamburger:hover { background: rgba(255,255,255,0.1); }
.pill-hamburger span {
  width: 22px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
/* Animate hamburger → X */
.pill-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pill-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pill-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAVBAR — all screen sizes ≤ 768px ===== */
@media (max-width: 768px) {
  /* Fix navbar height consistently across all pages */
  .navbar-pill-wrap { padding: 0; min-height: 64px; }
  .navbar-pill-wrap.page-nav { padding: 0; min-height: 64px; }

  /* Logo group: show image, tighten left edge, prevent overlap with hamburger */
  .pill-logo-group {
    left: 14px;
    gap: 10px;
    max-width: calc(100% - 70px);
  }
  .pill-logo-group .pill-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .pill-logo img {
    height: 40px;
    width: 40px;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }
  .pbb-name {
    font-size: 0.86rem !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pbb-sub { display: none !important; }

  /* Hide CTA, show hamburger */
  .pill-cta { display: none; }
  .pill-hamburger { display: flex; }

  /* Full-screen overlay menu */
  .nav-pill {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 0;
    background: rgba(7, 15, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 72px 0 env(safe-area-inset-bottom, 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-pill.mobile-open { display: flex; }

  /* Divider line below navbar area inside menu */
  .nav-pill.mobile-open::before {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0 16px 12px;
    flex-shrink: 0;
  }

  /* Menu list */
  .pill-menu {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0 14px;
  }

  /* Top-level links */
  .pill-link {
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 18px;
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    color: #ffffff;
    letter-spacing: 0.3px;
    border-bottom: none;
    line-height: 1.2;
  }
  .pill-link:hover, .pill-link.active {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
  }
  .pill-link i.fa-chevron-down {
    transition: transform 0.3s;
    font-size: 0.72rem;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .pill-item-dropdown.open > .pill-link i.fa-chevron-down { transform: rotate(180deg); }

  /* L1 Dropdown panel */
  .pill-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    margin: 4px 0 8px 0;
    display: none;
    border-radius: 12px;
    padding: 6px;
    box-shadow: none;
    min-width: 0;
  }
  .pill-item-dropdown.open > .pill-dropdown { display: block; }

  /* L1 items inside dropdown */
  .pill-dropdown > a,
  .pill-has-sub > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-size: 0.93rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    border-radius: 9px;
    transition: background 0.2s, color 0.2s;
    line-height: 1.2;
  }
  .pill-dropdown > a:hover,
  .pill-has-sub > a:hover,
  .pill-has-sub.open > a {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
  }
  .pill-dropdown > a.active-dept { color: var(--gold); font-weight: 700; }

  /* L2 Sub-dropdown panel */
  .pill-sub-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin: 4px 0 4px 14px;
    display: none;
    border-radius: 9px;
    padding: 4px;
    box-shadow: none;
  }
  .pill-has-sub.open .pill-sub-dropdown { display: block; }
  .pill-sub-dropdown a {
    display: block;
    padding: 11px 14px;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
    border-bottom: none;
    line-height: 1.3;
  }
  .pill-sub-dropdown a:hover { background: rgba(201,168,76,0.12); color: var(--gold); }

  /* Chevron rotation for sub-menu parent */
  .pill-has-sub > a i.fa-chevron-right {
    transition: transform 0.3s;
    font-size: 0.65rem;
    flex-shrink: 0;
    opacity: 0.6;
    margin-left: 8px;
  }
  .pill-has-sub.open > a i.fa-chevron-right { transform: rotate(90deg); }
}

/* ===== Very small phones (≤ 380px) ===== */
@media (max-width: 380px) {
  .pill-logo img { height: 34px; width: 34px; }
  .pbb-name { font-size: 0.78rem !important; letter-spacing: 0.3px !important; }
  .pill-logo-group { gap: 8px; left: 12px; }
  .pill-hamburger { right: 8px; }
  .pill-menu { padding: 0 10px; }
  .pill-link { font-size: 0.95rem; padding: 13px 14px; }
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.07);
}
.nav-link i { font-size: 0.7rem; transition: transform 0.2s; }
.nav-item:hover .nav-link i { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray-light);
  transition: all 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--gold); padding-left: 24px; background: rgba(201,168,76,0.05); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--navy) !important; box-shadow: 0 4px 14px rgba(13,33,68,0.3) !important; }

/* Apple-style CTA button for glass navbar */
.nav-cta-apple {
  display: inline-flex !important;
  align-items: center;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.3px;
  color: #ffffff !important;
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease !important;
}
.nav-cta-apple:hover {
  background: rgba(255,255,255,0.28) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: none !important;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
  background: var(--navy-dark);
  height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.12) 100%);
  z-index: 0;
}
.hero-pattern {
  position: absolute; inset: 0;
  background: transparent;
  z-index: 1;
}

/* Full-screen hero (homepage) */
.hero-fullscreen {
  height: 100vh;
  min-height: 100vh;
}

/* Centered brand in hero */
.hero-center-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
  text-align: center;
}
.hero-logo-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 50px rgba(0,0,0,0.6), 0 0 0 5px rgba(201,168,76,0.45);
  display: block;
  animation: heroLogoPulse 3s ease-in-out infinite;
}
@keyframes heroLogoPulse {
  0%, 100% { box-shadow: 0 8px 50px rgba(0,0,0,0.6), 0 0 0 5px rgba(201,168,76,0.45); }
  50%       { box-shadow: 0 8px 60px rgba(0,0,0,0.7), 0 0 0 8px rgba(201,168,76,0.25); }
}
.hero-brand-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 5px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.9), 0 0 40px rgba(201,168,76,0.2);
  line-height: 1.1;
}
.hero-brand-sub {
  display: block;
  font-size: clamp(0.7rem, 1.2vw, 0.88rem);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-top: -8px;
}
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(201,168,76,0.6);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-shadow: none;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 50px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: inline-flex;
}
.hero-stat {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 32px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  display: block;
}

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-bg { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,168,76,0.25);
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-header h2 span { color: var(--gold); }
.section-header p {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ===== FEATURES STRIP ===== */
.features-strip { background: var(--navy); padding: 0; }
.features-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.2s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(255,255,255,0.04); }
.feature-icon {
  width: 50px; height: 50px;
  background: rgba(201,168,76,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}
.feature-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.feature-content p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  position: relative;
}
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  border: 2px dashed #c5d0de;
  gap: 12px;
}
.img-placeholder i { font-size: 2.5rem; opacity: 0.4; }
.img-placeholder span { opacity: 0.6; font-weight: 500; }
.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge-float .num { font-size: 2rem; font-weight: 900; display: block; line-height: 1; }
.about-badge-float .txt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; opacity: 0.9; }

.about-content .section-badge { margin-bottom: 14px; }
.about-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.3;
}
.about-content h2 span { color: var(--gold); }
.about-content p { color: var(--text-body); margin-bottom: 18px; line-height: 1.75; }
.about-list { margin: 24px 0; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 500;
}
.about-list li i { color: var(--gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: transparent; color: var(--navy); }

/* ===== STATS BAR ===== */
.stats-bar { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-item .stat-symbol { color: var(--gold-light); font-size: 2rem; }
.stat-item .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  display: block;
  font-weight: 600;
}

/* ===== COURSES ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.3);
}
.course-card-img {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}
.course-card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.course-card-img i { font-size: 2.5rem; color: rgba(255,255,255,0.25); }
.course-category {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}
.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-card-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.course-card-body p {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}
.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
}
.course-meta span i { color: var(--gold); }
.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
  margin-top: auto;
}
.course-card-link:hover { color: var(--gold); }
.course-card-link i { font-size: 0.75rem; }

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-image { position: relative; }
.why-content .section-badge { text-align: left; display: inline-block; }
.why-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 14px 0 18px;
}
.why-content h2 span { color: var(--gold); }
.why-features { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.why-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-feature-icon {
  width: 48px; height: 48px;
  background: rgba(13,33,68,0.06);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--navy);
  transition: all 0.2s;
}
.why-feature:hover .why-feature-icon { background: var(--gold); color: var(--white); }
.why-feature-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.why-feature-text p { font-size: 0.83rem; color: var(--text-body); line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--gray);
  font-size: 0.82rem;
  border: 2px dashed #c5d0de;
  transition: all 0.3s;
}
.gallery-item:hover { border-color: var(--gold); }
.gallery-item i { font-size: 2rem; opacity: 0.35; }

/* ===== MERCHANT NAVY DEPARTMENTS ===== */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--gold);
  transition: all 0.3s;
}
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dept-card-icon {
  width: 66px; height: 66px;
  background: rgba(201,168,76,0.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 20px;
  border: 1px solid rgba(201,168,76,0.2);
}
.dept-card h3 { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.dept-card p { font-size: 0.84rem; color: var(--text-body); line-height: 1.65; }
/* Photo-background dept-cards — stronger overlay + vivid text */
.dept-card[style*="background-image"] h3 {
  color: #ffffff !important;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
  letter-spacing: 0.3px;
}
.dept-card[style*="background-image"] p {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.dept-card[style*="background-image"] .dept-card-icon {
  background: rgba(201,168,76,0.25);
  border-color: rgba(201,168,76,0.5);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  color: rgba(201,168,76,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars { color: #f5a623; font-size: 0.85rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info h5 { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.author-info span { font-size: 0.77rem; color: var(--gray); }

/* ===== SUPPORTERS ===== */
.supporters-strip { background: var(--off-white); border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); }
.supporters-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 40px 0;
}
.supporter-logo {
  width: 120px; height: 60px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #c5d0de;
  color: var(--gray);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s;
  filter: grayscale(1);
  opacity: 0.6;
}
.supporter-logo:hover { filter: none; opacity: 1; border-color: var(--gold); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6c 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}
.footer-brand-text .name { font-size: 1.1rem; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-brand-text .tagline { font-size: 0.7rem; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.footer-desc { font-size: 0.84rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 0.6rem; color: var(--gold); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-disclaimer {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  margin: 0 0 24px;
}
.footer-disclaimer h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: rgba(255,255,255,0.65); font-weight: 600; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.1) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb i { font-size: 0.65rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(201,168,76,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--navy); }

/* ===== NOTICE BANNER ===== */
.notice-banner {
  background: linear-gradient(90deg, rgba(201,168,76,0.12), rgba(201,168,76,0.05));
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  border-radius: var(--radius);
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.notice-banner i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.notice-banner p { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; }
.notice-banner strong { color: var(--navy); }

/* ===== CAREER PATH ===== */
.career-path { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 32px 0; }
.career-step {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  min-width: 260px;
  transition: all 0.2s;
  position: relative;
}
.career-step.highlight {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.career-step.top {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-size: 1rem;
}
.career-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--gold);
  font-size: 0.7rem;
  padding: 4px 0;
}
.career-arrow i { font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .features-strip .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar .container { justify-content: center; }
  .top-bar-social { display: none; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    overflow-y: auto;
    z-index: 999;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; z-index: 1000; position: relative; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; font-size: 1rem; padding: 14px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--off-white); margin-top: 4px; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-cta { display: inline-flex; margin-top: 8px; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 50px; padding-bottom: 50px; }
  .hero-stats { gap: 20px; }
  .hero-stat { border-right: none; padding-right: 0; }
  .features-strip .container { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .courses-grid, .departments-grid, .testimonials-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-badge-float { position: static; margin-top: 20px; display: inline-block; }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { text-align: center; justify-content: center; }
  .departments-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Hero brand — reduce letter-spacing so text doesn't overflow */
  .hero-brand-name {
    font-size: clamp(1.3rem, 6vw, 1.9rem) !important;
    letter-spacing: 2px !important;
  }
  .hero-brand-sub {
    letter-spacing: 1.5px !important;
    font-size: 0.72rem !important;
  }
  .hero-logo-img {
    width: 100px !important;
    height: 100px !important;
  }

  /* Inline image heights — stop tall images on mobile */
  .why-image img, .about-image img {
    height: 260px !important;
  }

  /* Page hero padding */
  .page-hero { padding: 44px 0; }

  /* Course detail sidebar stacks below */
  .course-detail-grid { grid-template-columns: 1fr !important; }
  .course-sidebar { position: static !important; }

  /* CTA buttons stack */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons a { width: 100%; max-width: 280px; justify-content: center; }

  /* Dept cards grid on mobile */
  .departments-grid { grid-template-columns: 1fr 1fr; }

  /* Career path fits screen */
  .career-path { max-width: 100%; }
  .career-step { font-size: 0.82rem; padding: 10px 14px; }

  /* Tables scroll horizontally */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .departments-grid { grid-template-columns: 1fr !important; }
  .hero-brand-name { font-size: 1.2rem !important; letter-spacing: 1.5px !important; }
}
