/* ══════════════════════════════════════════
   style.css  —  Global: resets, variables,
   top bar, navbar
   Typography matched to live site screenshots
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
:root {
  /* ── Colours (matched from screenshots) ── */
  --navy:        #1e2d6e;   /* headings, nav, buttons                  */
  --navy-dark:   #16235a;   /* footer bottom, hover states             */
  --gold:        #f5c214;   /* active nav link, accent                 */
  --blue-accent: #2d6ea8;   /* "Programs Offered" heading              */
  --text:        #333333;   /* primary body text                       */
  --text-muted:  #555555;   /* list body text, secondary               */
  --text-light:  #777777;   /* table cells, captions                   */
  --border:      #cccccc;   /* table & panel borders                   */
  --light-bg:    #f5f5f5;   /* CTA section background                  */
  --white:       #ffffff;

  /* ── Font families ── */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans',  sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family:            var(--font-body);
  font-size:              15px;
  color:                  var(--text);
  line-height:            1.75;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin:    0 auto;
  padding:   0 40px;
}

/* ══════════════════════════════════════════
   TOP BAR
   — 13px Open Sans, white on navy
══════════════════════════════════════════ */
.top-bar {
  background:  var(--navy);
  color:       var(--white);
  font-family: var(--font-body);
  font-size:   13px;
  font-weight: 400;
  padding:     8px 0;
}
.top-bar .inner {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}
.top-bar .left {
  display:     flex;
  gap:         28px;
  align-items: center;
}
.top-bar .left span {
  display:        flex;
  align-items:    center;
  gap:            6px;
  letter-spacing: 0.2px;
}
.top-bar .right .socials {
  display:     flex;
  gap:         16px;
  align-items: center;
}
.top-bar .right .socials a {
  color:       var(--white);
  font-size:   14px;
  font-weight: 700;
  width:       24px;
  height:      24px;
  display:     flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   NAVBAR
   — 12.5px Montserrat 600, uppercase, navy
   — Active link: gold + underline
══════════════════════════════════════════ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  position:   sticky;
  top:        0;
  z-index:    200;
}
.navbar .inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         12px 0;
}

.navbar .logo img { max-height: 58px; display: block; }

.navbar .nav-links {
  display:     flex;
  align-items: center;
  gap:         22px;
}
.navbar .nav-links a {
  font-family:    var(--font-heading);
  font-weight:    600;
  font-size:      12.5px;
  color:          var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space:    nowrap;
  line-height:    1;
}
.navbar .nav-links a.active {
  color:          var(--gold);
  border-bottom:  2px solid var(--gold);
  padding-bottom: 2px;
}
.navbar .nav-links a:hover:not(.active):not(.btn-apply-nav) {
  color: var(--gold);
}

/* Dropdown */
.navbar .dropdown { position: relative; }
/* Invisible bridge to prevent hover gap loss */
.navbar .dropdown::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; }
.navbar .dropdown .has-arrow::after { content: ' \25BE'; font-size: 10px; }
.navbar .dropdown-content {
  display:    none;
  position:   absolute;
  top:        calc(100% + 10px);
  left:       0;
  background: var(--white);
  min-width:  250px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-top: 3px solid var(--navy);
  z-index:    999;
}
.navbar .dropdown:hover .dropdown-content,
.navbar .dropdown.active .dropdown-content { display: block; }
.navbar .dropdown-content a {
  display:        block;
  padding:        10px 18px;
  font-family:    var(--font-heading);
  font-size:      12px;
  font-weight:    500;
  text-transform: none;
  letter-spacing: 0.2px;
  border-bottom:  1px solid #f0f0f0;
  color:          var(--text);
}
.navbar .dropdown-content a:hover  { background: var(--light-bg); color: var(--navy); }
.navbar .dropdown-content a.active { color: var(--gold); font-weight: 700; }

/* Apply Now button */
.navbar .btn-apply-nav {
  background:     var(--navy);
  color:          var(--white) !important;
  padding:        10px 20px;
  border-radius:  4px;
  font-family:    var(--font-heading) !important;
  font-size:      12px !important;
  font-weight:    700 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase !important;
  white-space:    nowrap;
  border-bottom:  none !important;
}
.navbar .btn-apply-nav:hover { background: var(--navy-dark); color: var(--white) !important; }

/* ── UTILITIES ─────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 16px; margin: 40px 0 28px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-divider h2 {
  font-family: var(--font-heading); font-weight: 700; color: var(--text);
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
  padding: 0 4px;
}

.section-title {
  text-align: center; margin-bottom: 36px; position: relative;
}
.section-title h2 {
  font-family: var(--font-heading); font-weight: 700; color: var(--text);
  font-size: 20px; text-transform: uppercase; letter-spacing: 2px; display: inline-block;
  padding: 0 20px; background: white; position: relative; z-index: 1;
}
.section-title::before {
  content: ''; display: block; height: 1px; background: var(--border);
  position: absolute; top: 50%; left: 0; right: 0;
}

/* BUTTONS */
.btn-navy {
  display: inline-block; background: var(--navy); color: white;
  padding: 8px 20px; border-radius: 3px; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  transition: background 0.2s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-red {
  display: inline-block; background: #c0392b; color: white; 
  padding: 12px 26px; text-decoration: none;
  border-radius: 4px; font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; 
  transition: background 0.2s; white-space: nowrap;
}
.btn-red:hover { background: #a93226; }


/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .navbar .inner, .navbar .container { padding: 10px 16px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .top-bar .left span + span { display: none; }
}
