/* ===============================
   GLOBAL VARIABLES
================================ */
:root {
  --primary-blue: #002d5b;
  --emerald-green: linear-gradient(90deg, #002d5b, #10b981);
  --emerald-solid: #10b981;
  --header-text-color: #002d5b;
  --header-accent-color: #10b981;
  --header-control-blue: #004a99;
  --header-control-green: #2e7d32;
  --soft-white: #fcfcfc;
  --text-dark: #1a1a1a;
}

/* Shared page variables (used by pages and footer.css) */
:root {
  --primary-navy: #002d5b;
  --accent-gold: #c5a059;
  --soft-gray: #f5f5f5;
  --bg-light: #f8f9fa;
  --border-light: #eee;
  --text-muted: #888;
  --text-gray: #555;
}

/* ===============================
 HEADER / NAVBAR
================================ */
.header {
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  background: white !important;
  position: fixed !important;
  top: 0 !important; 
  left: 0; 
  width: 100%;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
  width: 96%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-hero-split, .about-hero, .admissions-hero, .academics-hero {
  padding-top: 110px; 
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.school-logo-img {
  height: 75px !important;
  width: auto !important;
  margin-right: 15px;
}

.logo-text-top {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  color: var(--header-text-color) !important;
}

.logo-text-top span { color: var(--header-accent-color) !important; }

.logo-text-sub {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--header-text-color) !important;
  opacity: 0.7;
}

/* ===============================
 NAV LINKS
================================ */
.main-nav { display: flex; gap: 25px; }

.main-nav a {
  text-decoration: none;
  color: var(--header-text-color) !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  position: relative;
}

.main-nav a:hover, .main-nav a.active { color: var(--header-accent-color) !important; }

/* ===============================
 HEADER ACTIONS & BUTTONS
================================ */
.header-actions { display: flex; align-items: center; gap: 20px; }

.btn-apply-header {
  background:  #046529 !important;
  color: #ffffff !important;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.4s;
  white-space: nowrap;
}

.btn-apply-header:hover {
  background: var(--header-control-blue) !important;
  transform: translateY(-2px);
}

/* ===============================
 LANGUAGE TOGGLE
================================ */
.lang-toggle-pill {
  appearance: none;
  background: white;
  border: 1.5px solid var(--header-control-blue);
  border-radius: 50px;
  padding: 6px 14px;
  min-height: 34px;
  min-width: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1;
}

.lang-label { display: inline-block; line-height: 1; font-size: 0.75rem; font-weight: 900; color: var(--header-control-blue) !important; opacity: 0.3; }
.lang-label.active { opacity: 1; color: var(--header-control-green) !important; }
.lang-switch { width: 1px; height: 12px; background: #eee; }

/* ===============================
 HAMBURGER BUTTON
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 10001;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--header-text-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===============================
 MOBILE NAV PANEL
================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  background: white;
  z-index: 9999;
  flex-direction: column;
  padding: 10px 0 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-top: 2px solid #f0f0f0;
}

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

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--header-text-color);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 30px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--header-accent-color); background: #f8faf9; }

.mobile-nav .mobile-enroll {
  margin: 12px 20px 0;
  background: #046529 !important;
  color: white !important;
  text-align: center;
  padding: 14px 20px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border-bottom: none !important;
}

.mobile-nav .mobile-enroll:hover {
  background: var(--header-control-blue) !important;
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 1350px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 0.75rem; }
}

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .btn-apply-header { display: none; }
  .hamburger { display: flex; }
  /* Pack lang-toggle and hamburger together on the right */
  .nav-container { justify-content: flex-start; }
  .header-actions { margin-left: auto; gap: 6px; }
}

@media (max-width: 600px) {
  .logo-text-top { font-size: 1.05rem; }
  .logo-text-sub { display: none; }
  .school-logo-img { height: 55px !important; }
  .lang-toggle-pill { min-width: 76px; padding: 6px 10px; }
}