:root {
  --luxury-navy: #0c2461;
  --legacy-gold: #b8860b;
  --crystal-white: #ffffff;
  --slate-muted: rgba(255, 255, 255, 0.7);
}
.font-jost { font-family: "Jost", sans-serif; }

/* ---- Navbar base ---- */
.navbar a, .navbar a:focus {
  font-family: "Jost", sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--slate-muted) !important;
  text-transform: uppercase; letter-spacing: 1px; padding: 10px 14px; position: relative;
  transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: 2px; left: 14px;
  background-color: var(--legacy-gold); transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar a:hover::after, .navbar .active::after { width: calc(100% - 28px); }
.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a { color: var(--crystal-white) !important; }
.dropdown-indicator-icon { font-size: 0.75rem; margin-left: 4px; opacity: 0.8; }
.navbar ul ul {
  display: block; position: absolute; left: 0; top: calc(100% + 30px); z-index: 99; opacity: 0; visibility: hidden;
  padding: 12px 0; background: rgba(255, 255, 255, 0.98) !important; backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border-top: 3px solid var(--legacy-gold); border-radius: 0 0 10px 10px;
  box-shadow: 0px 20px 50px rgba(6, 21, 61, 0.18); transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); min-width: 290px;
}
.navbar .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }
.navbar ul ul li { min-width: 200px; padding: 0; }
.navbar ul ul a {
  padding: 11px 24px; font-size: 0.88rem; font-weight: 500; text-transform: none; letter-spacing: 0.3px;
  color: var(--luxury-navy) !important; font-family: "Poppins", sans-serif; border-bottom: 1px solid #f8fafc;
  display: flex; align-items: center; transition: all 0.25s ease;
}
.navbar ul ul a::after { display: none !important; }
.navbar ul ul li:last-child a { border-bottom: none; }
.navbar ul ul a:hover, .navbar ul ul .active:hover, .navbar ul ul li:hover > a {
  background-color: #f8fafc !important; color: var(--legacy-gold) !important; padding-left: 30px;
}

/* ---- Light header theme ---- */
#header.header-light,
#header.header-light.header-scrolled {
  background: #ffffff !important;
  border-bottom: 4px solid #b8860b;
  padding: 10px 0 !important;
  box-shadow: 0 4px 18px rgba(12, 36, 97, 0.08);
}
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-seal {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: #ffffff; border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(12, 36, 97, 0.1);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-seal img { width: 80%; height: 80%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: "Jost", sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: 1px; color: #0c2461; }
.brand-sub {
  display: none; margin-top: 3px; font-family: "Poppins", sans-serif; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: #64748b;
}
@media (min-width: 1400px) { .brand-sub { display: block; } }

#header.header-light .navbar a,
#header.header-light .navbar a:focus { color: #0c2461 !important; font-size: 0.8rem; padding: 10px 9px; }
#header.header-light .navbar a::after { left: 9px; }
#header.header-light .navbar a:hover::after,
#header.header-light .navbar .active::after { width: calc(100% - 18px); }
#header.header-light .navbar a:hover,
#header.header-light .navbar .active,
#header.header-light .navbar .active:focus,
#header.header-light .navbar li:hover > a { color: #b8860b !important; }
#header.header-light .navbar ul ul a { color: #0c2461 !important; font-size: 0.88rem; padding: 11px 24px; }
#header.header-light .navbar ul ul a:hover { color: #b8860b !important; padding-left: 30px; }

/* ---- Mobile menu ---- */
@media (max-width: 991px) {
  .navbar-mobile {
    position: fixed; overflow: hidden; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(2, 7, 20, 0.95) !important; z-index: 999999 !important; transition: all 0.3s ease;
  }
  .navbar-mobile ul {
    display: block; position: absolute; top: 60px; right: 15px; bottom: 15px; left: 15px; padding: 15px 0;
    border-radius: 12px; background-color: #ffffff !important; border: 1px solid #cbd5e1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important; overflow-y: auto;
  }
  .navbar-mobile a, .navbar-mobile a:focus, .navbar-mobile > ul > li > a, .navbar-mobile > ul > li > a:focus,
  .navbar-mobile .active, .navbar-mobile .active:focus {
    color: #0c2461 !important; font-size: 0.95rem !important; font-weight: 700 !important; padding: 14px 24px !important;
    border-bottom: 1px solid #f1f5f9; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center;
    text-shadow: none !important;
  }
  .navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
    color: #b8860b !important; background-color: rgba(12, 36, 97, 0.04) !important; padding-left: 32px !important;
  }
  .navbar-mobile .dropdown ul {
    position: static !important; display: none; margin: 10px 20px !important; padding: 8px 0 !important;
    background-color: #f8fafc !important; border-left: 3px solid #b8860b !important; box-shadow: none !important;
  }
  .navbar-mobile .dropdown ul a { color: #334155 !important; font-size: 0.88rem !important; font-weight: 600 !important; padding: 10px 20px !important; }
  .navbar-mobile .dropdown .dropdown-active { display: block !important; }
  .mobile-nav-toggle { position: relative; z-index: 99999999 !important; color: #0c2461 !important; font-size: 32px; cursor: pointer; }
  .bi-x.mobile-nav-toggle { color: #0c2461 !important; position: fixed; top: 22px; right: 32px; }
  .brand-seal { width: 44px; height: 44px; }
  .brand-title { font-size: 1.2rem; }
}

/* ---- Push page heroes below the fixed header ---- */
.dept-hero, .form-hero, .support-hero, .library-hero, .nss-hero {
  padding-top: 140px !important;
}