/* ══════════════════════════════════════════════════════════════
   onlinefinancecourse.com — Design System
   Palette: Deep Navy + Emerald Green + Warm White
   Trustworthy, institutional, finance-sector gravitas
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0A2540;
  --navy-mid:    #1A3A5C;
  --navy-light:  #234E72;
  --green:       #00875A;
  --green-light: #00A86B;
  --green-pale:  rgba(0,135,90,0.08);
  --green-border:rgba(0,135,90,0.18);
  --gold:        #C9963C;
  --gold-pale:   rgba(201,150,60,0.1);
  --white:       #FFFFFF;
  --off-white:   #F7F9FB;
  --surface:     #EEF2F7;
  --text:        #0A2540;
  --text-muted:  #506070;
  --text-light:  #8899AA;
  --border:      #D8E2EC;
  --border-dark: #B0C4D8;
  --r:           6px;
  --r-lg:        12px;
  --shadow-sm:   0 2px 8px rgba(10,37,64,0.08);
  --shadow:      0 8px 32px rgba(10,37,64,0.12);
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 5%;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-logo span { color: #4DB8FF; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; flex: 1; }
.nav-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.on { color: rgba(255,255,255,0.95); }
.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }
.nav-ham { display: none; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 1.3rem; cursor: pointer; margin-left: auto; }

/* ── INNER WRAPPER ── */
.inner { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

/* ── STATS BAND ── */
.stats-band {
  background: var(--navy-mid);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sbi {
  padding: 1.5rem 3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sbi:last-child { border-right: none; }
.sbi-n {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.sbi-l { font-size: 0.7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ── SECTIONS ── */
.section { padding: 72px 0; }
.section-paper { background: var(--off-white); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }

.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* ── FILTER PILLS ── */
.fpill {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.fpill:hover { border-color: var(--green); color: var(--green); }
.fpill.on { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── PROGRAM CARDS ── */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.dlp-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.25rem; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: var(--r); font-weight: 600; font-size: 0.875rem; transition: all 0.2s; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-lg { padding: 0.875rem 2rem; font-size: 0.95rem; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0E4D3A 100%);
  padding: 72px 5%;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.cta-band p { font-size: 0.925rem; color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 64px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1.2fr 1fr 1.2fr; gap: 2.5rem; max-width: 1160px; margin: 0 auto 3rem; }
.footer-brand .footer-logo { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.fcol {}
.fcol-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.875rem; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 0.45rem; }
.fcol a { font-size: 0.78rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.fcol a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom span { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── STICKY MOBILE BAR ── */
.sticky-mb { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; display: flex; height: 52px; }
.smb-call { flex: 0 0 72px; display: flex; align-items: center; justify-content: center; background: var(--navy-mid); color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600; border-top: 1px solid rgba(255,255,255,0.1); }
.smb-cta { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--green); color: var(--white); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; }

/* ── COMPARE TABLE ── */
.ctable { width: 100%; border-collapse: collapse; font-size: 0.795rem; }
.ctable th { background: var(--navy); color: var(--white); padding: 0.65rem 0.85rem; text-align: left; font-weight: 600; font-size: 0.75rem; }
.ctable td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ctable tr:nth-child(even) td { background: var(--off-white); }
.ctable-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

/* ── ARTICLE ── */
.awrap { max-width: 1020px; margin: 0 auto; padding: 52px 5%; display: grid; grid-template-columns: 1fr 240px; gap: 3rem; }
.art h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); margin: 1.75rem 0 0.65rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.art h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.art h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 1rem 0 0.4rem; }
.art p { font-size: 0.845rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 0.75rem; }
.art ul, .art ol { padding-left: 1.1rem; margin-bottom: 0.875rem; }
.art li { font-size: 0.845rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 0.25rem; }
.art strong { color: var(--text); }
.art a { color: var(--green); }
.art table { width: 100%; border-collapse: collapse; font-size: 0.775rem; margin: 1rem 0; }
.art table th { background: var(--navy); color: var(--white); padding: 0.55rem 0.85rem; text-align: left; font-weight: 600; }
.art table td { padding: 0.58rem 0.85rem; border-bottom: 1px solid var(--border); }
.art table tr:nth-child(even) td { background: var(--off-white); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .sbi { flex-shrink: 0; padding: 1.25rem 1.75rem; }
  .prog-grid, .dlp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-ham { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .awrap { grid-template-columns: 1fr; }
}
