/* ===== ELGON COLLEGE — GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  --navy: #0d1b3e;
  --navy-mid: #1a2f5e;
  --navy-light: #2a4a8a;
  --gold: #c9943a;
  --gold-light: #e8b86d;
  --gold-pale: #fdf4e3;
  --red: #c0392b;
  --green: #1a6b3a;
  --cream: #fafaf8;
  --light: #f2f4f8;
  --mid: #4a5568;
  --muted: #8896a8;
  --border: rgba(13,27,62,0.1);
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  font-weight: 400;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--navy);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  box-shadow: 0 2px 20px rgba(13,27,62,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-logo-crest {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,148,58,0.3);
}

.nav-logo-text { line-height: 1.1; }

.nav-logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.nav-logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--gold); }

.nav-apply {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 4px !important;
}

.nav-apply:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 22px; height: 2px;
  background: var(--white);
  display: block;
  transition: all 0.3s;
}

/* ===== PAGE WRAPPER ===== */
.page-content { margin-top: 70px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--gold);
  padding: 0.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
}

.top-bar-links a {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-bar-links a:hover { opacity: 0.7; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  padding: 4rem 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(135deg, rgba(201,148,58,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.page-hero-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.page-hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.page-hero h1 em { font-style: italic; color: var(--gold); }

.page-hero p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 560px;
  font-weight: 400;
}

/* ===== SECTION COMMON ===== */
.section { padding: 5rem 4rem; }
.section-alt { background: var(--light); }
.section-navy { background: var(--navy); }
.section-gold { background: var(--gold-pale); }

.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gold);
}

.eyebrow.navy { color: var(--navy-light); }
.eyebrow.navy::before { background: var(--navy-light); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sec-title em { font-style: italic; color: var(--gold); }
.sec-title.white { color: var(--white); }
.sec-title.white em { color: var(--gold-light); }

.sec-sub {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,27,62,0.08);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  background: var(--gold-pale);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,148,58,0.3);
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13,27,62,0.2);
}

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

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

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

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

.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

/* ===== STAT BOX ===== */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 2px;
}

.badge-gold { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,148,58,0.3); }
.badge-navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.badge-green { background: rgba(26,107,58,0.08); color: var(--green); border: 1px solid rgba(26,107,58,0.2); }
.badge-red { background: rgba(192,57,43,0.08); color: var(--red); border: 1px solid rgba(192,57,43,0.2); }

/* ===== TABLE ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

.styled-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-align: left;
}

.styled-table th:first-child { border-left: 3px solid var(--gold); }

.styled-table td {
  padding: 0.9rem 1.5rem;
  font-size: 0.85rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}

.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background: var(--gold-pale); }

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(13,27,62,0.06);
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-group select option { background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== DIVIDER ===== */
.gold-divider {
  width: 50px; height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 4rem 4rem 2rem;
  border-top: 3px solid var(--gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-crest {
  width: 50px; height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-logo-sub {
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.footer-socials { display: flex; gap: 0.5rem; }

.footer-social {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 4px;
}

.footer-social:hover { background: var(--gold); border-color: var(--gold); }

.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201,148,58,0.2);
}

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

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before { content: '›'; color: var(--gold); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.25); }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 0 2.5rem; }
  .top-bar { padding: 0.5rem 2.5rem; }
  .section { padding: 4rem 2.5rem; }
  .page-hero { padding: 3rem 2.5rem; }
  footer { padding: 3.5rem 2.5rem 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .top-bar { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.2rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .section { padding: 3rem 1.5rem; }
  .page-hero { padding: 2.5rem 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

/* ===== OVERLAY ===== */
#navOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}
#navOverlay.show { display: block; }
body.menu-open { overflow: hidden; }

/* ===== GLOBAL OVERFLOW PREVENTION ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .hamburger span {
    background: #1e3a6e !important;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
                opacity 0.25s ease !important;
    transform-origin: center !important;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; }
  .hamburger.open span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg) !important; }

  #navLinks {
    position: fixed !important;
    top: 106px !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-bottom: 3px solid #d4a017 !important;
    padding: 0.5rem 1.5rem 1.2rem !important;
    z-index: 200 !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2) !important;
    max-height: calc(100vh - 106px) !important;
    overflow-y: auto !important;
    transform: translateY(-110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), opacity 0.3s ease !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  #navLinks.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
    display: flex !important;
  }
  #navLinks li { border-bottom: 1px solid rgba(128,128,128,0.1); list-style: none; }
  #navLinks li:last-child { border-bottom: none; }
  #navLinks a {
    display: block !important;
    padding: 0.9rem 0.8rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, padding-left 0.2s !important;
    border-radius: 6px !important;
  }
  #navLinks a:hover, #navLinks a.active {
    background: #fef9ec !important;
    color: #1e3a6e !important;
    padding-left: 1.2rem !important;
  }
  section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  footer { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (max-width: 480px) {
  section { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  footer { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  .footer-top { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  [class*="-grid"] { grid-template-columns: 1fr !important; }
  .stats-band, .stats-bar, .stats-section { grid-template-columns: 1fr 1fr !important; }
}

/* Nav close button — hidden always on desktop, shown only in mobile menu */
.nav-close-li { display: none !important; }

@media (max-width: 768px) {
  .nav-close-li {
    display: flex !important;
    border-bottom: none !important;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
  }
}

