/* =========================================================
   Research and Writing: institutional theme
   Navy and gold, dense academic layout, built to match a
   traditional college website: utility bar, notice ticker,
   crest band, dropdown mega menu, sticky enquiry sidebar.
   All content is driven from /content/*.json via the CMS.
   ========================================================= */

/* ---------------- 1. Design tokens ---------------- */
:root {
  --navy-900: #061729;
  --navy-800: #0B2545;
  --navy-700: #123A6B;
  --navy-600: #1B4F8A;
  --navy-050: #EEF3FA;

  --gold-600: #A97817;
  --gold-500: #C8912A;
  --gold-400: #E0A82E;
  --gold-300: #F3C969;
  --gold-050: #FDF6E4;

  --maroon: #99182B;

  /* Legacy variable names kept so existing inline styles keep working */
  --color-primary: #0B2545;
  --color-primary-dark: #061729;
  --color-primary-light: #1B4F8A;
  --color-accent: #A97817;
  --color-accent-dark: #8A6111;
  --color-accent-light: #E0A82E;
  --color-warm: #FDF6E4;
  --color-success: #1B7A4B;
  --color-danger: #99182B;

  --color-bg: #F3F6FA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EEF3FA;
  --color-border: #D8E0EC;
  --color-text: #16202E;
  --color-text-muted: #55637A;
  --color-text-inverse: #FFFFFF;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(6, 23, 41, .08);
  --shadow-md: 0 4px 14px rgba(6, 23, 41, .10);
  --shadow-lg: 0 18px 40px rgba(6, 23, 41, .16);

  --container-w: 1220px;
  --topbar-h: 38px;
}

/* ---------------- 2. Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: 28px 0; }

::selection { background: var(--gold-300); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

/* ---------------- 3. Layout helpers ---------------- */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

.section { padding: 54px 0; }
.section-sm { padding: 32px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-navy { background: var(--navy-800); color: #DCE6F4; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { margin-bottom: 30px; }
.section-head.text-center { text-align: center; }
.section-head.left { text-align: left; }
.section-head p { max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head.left p { margin-left: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.lead { font-size: 1.06rem; color: #33404F; }
.lead-sm { font-size: .95rem; color: var(--color-text-muted); }

/* ---------------- 4. Eyebrow, badges, pills ---------------- */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--gold-050);
  border: 1px solid #EFDDB4;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.section-navy .eyebrow { background: rgba(224,168,46,.14); border-color: rgba(224,168,46,.35); color: var(--gold-300); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid #CBDAEE;
  padding: 5px 11px;
  border-radius: 2px;
}
.badge svg { width: 14px; height: 14px; }

.price-tag {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gold-600);
  font-size: 1.05rem;
  margin: 8px 0 4px;
}

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 2px;
  cursor: pointer;
  transition: .15s;
}
.pill:hover { border-color: var(--navy-600); }
.pill.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------------- 5. Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .16s;
  text-align: center;
  line-height: 1.2;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-600); }
.btn-primary:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: #C3D0E2; }
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-050); color: var(--navy-800); }
.btn-navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-inverse:hover { background: #fff; color: var(--navy-800); }
.btn-sm { font-size: .82rem; padding: 8px 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------------- 6. Cards ---------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-hover:hover, a.card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); }

.icon-box {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-050);
  border: 1px solid #CBDAEE;
  border-radius: var(--radius-sm);
  color: var(--navy-700);
  margin-bottom: 14px;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.gold { background: var(--gold-050); border-color: #EFDDB4; color: var(--gold-600); }

.avatar-placeholder {
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.placeholder-note {
  background: var(--gold-050);
  border: 1px dashed #E3C77E;
  color: #6B5312;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
}

/* ---------------- 7. Utility top bar ---------------- */
.topbar {
  background: var(--navy-900);
  color: #C9D6E8;
  font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: var(--topbar-h);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #C9D6E8; }
.topbar a:hover { color: var(--gold-300); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item svg { width: 13px; height: 13px; opacity: .85; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.topbar-flag {
  background: var(--maroon); color: #fff; font-weight: 800;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}

/* Notice ticker */
.ticker {
  display: flex; align-items: center; gap: 10px;
  overflow: hidden; max-width: 100%;
}
.ticker-viewport { overflow: hidden; position: relative; flex: 1; min-width: 0; }
.ticker-track {
  display: inline-flex; gap: 44px; white-space: nowrap;
  animation: ticker-scroll 34s linear infinite;
  padding-left: 100%;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { color: #E4ECF7; }
.ticker-item b { color: var(--gold-300); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; padding-left: 0; }
}

/* ---------------- 8. Brand band ---------------- */
.brandbar { background: #fff; border-bottom: 3px solid var(--gold-500); }
.brandbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy-800); }
.brand:hover { color: var(--navy-800); }
.brand .mark {
  width: 50px; height: 50px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.02rem;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.42rem; color: var(--navy-800); }
.brand-tagline { font-size: .8rem; color: var(--color-text-muted); }
.brandbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------- 9. Main navigation ---------------- */
.site-header { position: sticky; top: 0; z-index: 200; }
.mainnav { background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.08); }
.mainnav-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }

.nav-links { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 15px;
  color: #E6EDF7;
  font-size: .87rem; font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  cursor: pointer;
  background: none; border-top: 0; border-left: 0; border-bottom: 0;
  font-family: var(--font-body);
}
.nav-item:first-child .nav-link { border-left: 1px solid rgba(255,255,255,.08); }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active {
  background: var(--gold-500); color: var(--navy-900);
}
.nav-link .caret { width: 9px; height: 9px; opacity: .8; transition: transform .15s; }
.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 258px;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  display: none;
  z-index: 300;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 16px;
  color: #DCE6F4;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dropdown a:last-child { border-bottom: 0; }
.dropdown a:hover { background: var(--gold-500); color: var(--navy-900); }

.nav-actions { display: flex; align-items: center; gap: 10px; padding: 6px 0; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

/* ---------------- 10. Language toggle ---------------- */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px; overflow: hidden; margin-left: 6px;
}
.lang-toggle button {
  font: inherit; font-size: .78rem; font-weight: 700;
  padding: 6px 10px; border: 0; cursor: pointer;
  background: transparent; color: #E6EDF7;
}
.lang-toggle button + button { border-left: 1px solid rgba(255,255,255,.28); }
.lang-toggle button.active { background: var(--gold-500); color: var(--navy-900); }

.goog-hidden-mount { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; overflow: hidden; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------------- 11. Page title bar and breadcrumbs ---------------- */
.page-titlebar {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff;
  padding: 26px 0;
  border-bottom: 3px solid var(--gold-500);
}
.page-titlebar h1 { color: #fff; margin-bottom: 6px; }
.page-titlebar p { color: #C7D6EA; max-width: 760px; margin-bottom: 0; }
.breadcrumbs { font-size: .78rem; color: #A9BEDA; margin-bottom: 10px; }
.breadcrumbs a { color: #CFDCEE; }
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs span { opacity: .6; margin: 0 6px; }

/* legacy hero band used by some pages */
.page-hero {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff; padding: 34px 0; text-align: center;
  border-bottom: 3px solid var(--gold-500);
}
.page-hero h1 { color: #fff; }
.page-hero .text-muted { color: #C7D6EA; }
.page-hero .eyebrow { background: rgba(224,168,46,.16); border-color: rgba(224,168,46,.4); color: var(--gold-300); }

/* ---------------- 12. Inner page layout with sidebar ---------------- */
.page-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 30px 0 54px;
}
.page-layout.reverse { grid-template-columns: minmax(0, 1fr) 300px; }
.page-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.page-main { min-width: 0; }
.page-main > section { margin-bottom: 34px; }
.page-main > section:last-child { margin-bottom: 0; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-head {
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  padding: 11px 15px;
  border-bottom: 3px solid var(--gold-500);
}
.sidebar-card-body { padding: 15px; }
.sidebar-card-body .form-field { margin-bottom: 11px; }
.sidebar-card-body label { font-size: .78rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--color-border); margin: 0; }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { display: block; padding: 9px 15px; font-size: .87rem; color: var(--navy-700); }
.sidebar-list a:hover { background: var(--navy-050); color: var(--gold-600); }
.sidebar-list a.active { background: var(--navy-050); border-left: 3px solid var(--gold-500); font-weight: 700; }

.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-list label {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 500; color: var(--color-text); cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.radio-list input { margin: 0; }

/* ---------------- 13. Home hero ---------------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(27,79,138,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
  padding: 52px 0 58px;
  border-bottom: 3px solid var(--gold-500);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); }
.hero .lead { color: #CFDDEE; }
.hero .eyebrow { background: rgba(224,168,46,.16); border-color: rgba(224,168,46,.4); color: var(--gold-300); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 20px; }
.headline-accent { color: var(--gold-300); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row .item { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: #D6E2F1; font-weight: 600; }
.trust-row .item svg { width: 15px; height: 15px; color: var(--gold-300); }

.hero-visual-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy-050); border: 1px solid #CBDAEE;
  color: var(--navy-700); font-size: .78rem; font-weight: 700;
  padding: 5px 11px; border-radius: 2px;
}
.dot-blink { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero-visual-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-sm);
  min-height: 150px;
  padding: 20px;
  display: flex; align-items: flex-end;
  margin-bottom: 14px;
}
.hero-visual-panel p { position: relative; z-index: 2; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.35; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob.b1 { width: 90px; height: 90px; background: rgba(224,168,46,.55); top: -18px; left: -14px; }
.blob.b2 { width: 62px; height: 62px; background: rgba(255,255,255,.22); bottom: -12px; right: 18px; }

.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.tile-mini {
  background: var(--navy-050); border: 1px solid #D7E3F2; border-radius: var(--radius-sm);
  padding: 10px 8px; text-align: center; font-size: .72rem; font-weight: 700; color: var(--navy-700);
}
.tile-mini svg { width: 17px; height: 17px; margin-bottom: 4px; color: var(--gold-600); }

.progress-track { height: 7px; background: var(--navy-050); border-radius: 20px; overflow: hidden; border: 1px solid #D7E3F2; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.progress-caption { display: flex; justify-content: space-between; font-size: .74rem; color: var(--color-text-muted); margin-top: 6px; font-weight: 600; }
.session-dots { display: flex; gap: 5px; margin-top: 10px; }
.session-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #D7E3F2; }
.session-dots .dot.filled { background: var(--gold-500); }

/* ---------------- 14. Steps, stats, notices ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--gold-500); border-radius: var(--radius-sm); padding: 20px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: .9rem;
  margin-bottom: 12px;
}

.stat-strip { background: var(--navy-800); color: #fff; padding: 26px 0; border-top: 3px solid var(--gold-500); border-bottom: 3px solid var(--gold-500); }
.stat-strip .grid { gap: 14px; }
.stat-box { text-align: center; padding: 8px; }
.stat-box .num { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 800; color: var(--gold-300); line-height: 1.1; }
.stat-box .label { font-size: .82rem; color: #C7D6EA; }
.stat-row { display: flex; flex-wrap: wrap; gap: 18px; }

.notice-board { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.notice-board-head { background: var(--maroon); color: #fff; font-family: var(--font-heading); font-weight: 800; padding: 10px 15px; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.notice-list { list-style: none; margin: 0; padding: 0; max-height: 268px; overflow-y: auto; }
.notice-list li { padding: 11px 15px; border-bottom: 1px solid var(--color-border); font-size: .87rem; }
.notice-list li:last-child { border-bottom: 0; }
.notice-date { display: block; font-size: .72rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .06em; }
.notice-new { background: var(--maroon); color: #fff; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 2px; margin-left: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- 15. Tables ---------------- */
.data-table, .compare-table { width: 100%; border-collapse: collapse; font-size: .89rem; background: #fff; border: 1px solid var(--color-border); }
.data-table th, .compare-table th {
  background: var(--navy-800); color: #fff; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: .84rem;
  padding: 11px 13px; border-right: 1px solid rgba(255,255,255,.12);
}
.data-table td, .compare-table td { padding: 10px 13px; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border); vertical-align: top; }
.data-table tbody tr:nth-child(even), .compare-table tbody tr:nth-child(even) { background: #F7FAFD; }
.data-table tbody tr:hover, .compare-table tbody tr:hover { background: var(--gold-050); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- 16. Mentors ---------------- */
.mentor-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.mentor-photo {
  height: 190px; background: linear-gradient(145deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300); font-family: var(--font-heading); font-weight: 800; font-size: 2.1rem;
  overflow: hidden;
}
.mentor-photo img { width: 100%; height: 100%; object-fit: cover; }
.mentor-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.mentor-body h3 { margin-bottom: 2px; font-size: 1.05rem; }
.mentor-role { font-size: .8rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.mentor-meta { list-style: none; padding: 0; margin: 0 0 12px; font-size: .84rem; color: var(--color-text-muted); }
.mentor-meta li { display: flex; gap: 7px; margin-bottom: 4px; }
.mentor-meta svg { width: 14px; height: 14px; flex: none; color: var(--navy-600); margin-top: 3px; }
.mentor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mentor-tag { font-size: .72rem; font-weight: 700; background: var(--navy-050); border: 1px solid #CBDAEE; color: var(--navy-700); padding: 3px 8px; border-radius: 2px; }

.panel-card { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px; }
.panel-card h3 { font-size: 1.02rem; }

/* ---------------- 17. Accordion (FAQ, resources) ---------------- */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--color-border); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer; padding: 14px 42px 14px 16px; position: relative;
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem; color: var(--navy-800);
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 700; color: var(--gold-600); line-height: 1;
}
.accordion details[open] summary { background: var(--navy-050); }
.accordion details[open] summary::after { content: '\2212'; }
.accordion summary:hover { background: var(--navy-050); }
.accordion .acc-body { padding: 4px 16px 16px; color: #384454; font-size: .93rem; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

.faq-cat-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; }
.faq-cat-head svg { width: 20px; height: 20px; color: var(--gold-600); }
.faq-cat-head h2 { margin: 0; font-size: 1.2rem; }

/* ---------------- 18. Blog ---------------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: .75rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.blog-card h3 { font-size: 1.02rem; }

/* ---------------- 19. Prose ---------------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.5em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.08rem; }
.prose p, .prose li { color: #333F4F; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote {
  border-left: 4px solid var(--gold-500);
  background: var(--gold-050);
  margin: 1.2em 0; padding: 12px 18px; color: #4A3B14;
}
.prose code { background: var(--navy-050); padding: 2px 6px; border-radius: 2px; font-size: .9em; }
.prose a { text-decoration: underline; }

/* ---------------- 20. Pricing calculator ---------------- */
.calc-shell {
  display: grid; grid-template-columns: 1.15fr .85fr;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md);
}
.calc-form { padding: 24px; }
.calc-result { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.calc-result .price { font-family: var(--font-heading); font-size: 2.35rem; font-weight: 800; color: var(--gold-300); line-height: 1.1; }
.calc-result .price small { display: block; font-size: .8rem; font-weight: 600; color: #C7D6EA; letter-spacing: .02em; }
.calc-breakdown { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.22); color: #DCE6F4; }
.calc-note { font-size: .76rem; color: #B9CBE2; margin: 0; }

/* ---------------- 21. Forms ---------------- */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--navy-800); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: .9rem;
  padding: 9px 11px; border: 1px solid #C3D0E2; border-radius: 2px;
  background: #fff; color: var(--color-text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(27,79,138,.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-status { font-size: .84rem; margin: 10px 0 0; }
.form-status.ok { color: var(--color-success); font-weight: 600; }
.form-status.err { color: var(--color-danger); font-weight: 600; }
.form-required { color: var(--maroon); }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Radio and checkbox lists inside form fields. Declared after the generic
   .form-field label rules so the uppercase label styling does not leak onto
   individual option labels, and so inputs stay inline instead of stretching. */
.form-field .radio-list label,
.radio-list label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; font-weight: 500; color: var(--color-text);
  text-transform: none; letter-spacing: 0; margin-bottom: 0; cursor: pointer;
}
.radio-list input[type="radio"],
.radio-list input[type="checkbox"],
.form-field input[type="radio"],
.form-field input[type="checkbox"] {
  width: auto; margin: 3px 0 0; flex: none;
}

/* ---------------- 22. Modal, chat bubble ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,23,41,.62);
  display: none; align-items: center; justify-content: center;
  z-index: 900; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius-md); padding: 26px;
  max-width: 430px; width: 100%; position: relative;
  border-top: 4px solid var(--gold-500);
  box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; font-size: 1.1rem;
  cursor: pointer; color: var(--color-text-muted); line-height: 1;
}
.chat-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 800;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.chat-bubble:hover { color: #fff; transform: translateY(-2px); }
.chat-bubble svg { width: 26px; height: 26px; }

/* ---------------- 23. CTA band ---------------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff; padding: 34px; border-radius: var(--radius-md);
  text-align: center; border-top: 3px solid var(--gold-500);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFDDEE; max-width: 640px; margin: 0 auto 18px; }

/* ---------------- 24. Footer ---------------- */
.site-footer { background: var(--navy-900); color: #A9BDD6; padding: 46px 0 20px; border-top: 4px solid var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 12px; letter-spacing: .03em; }
.site-footer a { display: block; color: #A9BDD6; font-size: .87rem; padding: 3px 0; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; font-size: 1.15rem; }
.site-footer .brand-tagline { color: #8FA5C2; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: .82rem;
}
.footer-bottom a { display: inline-block; }
.footer-legal-note { font-size: .76rem; color: #7F94B2; margin: 12px 0 0; line-height: 1.6; }
.footer-contact-line { display: flex; align-items: flex-start; gap: 8px; font-size: .87rem; margin-bottom: 8px; }
.footer-contact-line svg { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--gold-400); }

/* ---------------- 25. Misc legacy ---------------- */
.hero-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px; }
.stars { color: var(--gold-500); letter-spacing: 2px; }
.who { font-weight: 700; color: var(--navy-800); }

/* ---------------- 26. Responsive ---------------- */
@media (max-width: 1080px) {
  .page-layout, .page-layout.reverse { grid-template-columns: 1fr; }
  .page-sidebar { position: static; order: 2; }
  .page-main { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc-shell { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    background: var(--navy-700); border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav-links.open { display: flex; }
  .nav-item { flex-direction: column; }
  .nav-link { border: 0; border-bottom: 1px solid rgba(255,255,255,.1); justify-content: space-between; width: 100%; }
  .nav-item:first-child .nav-link { border-left: 0; }
  .nav-item:hover > .nav-link { background: transparent; color: #E6EDF7; }
  .nav-link.open-sub { background: var(--gold-500); color: var(--navy-900); }
  .dropdown { position: static; display: none; width: 100%; box-shadow: none; border: 0; border-left: 3px solid var(--gold-500); background: rgba(0,0,0,.18); }
  .nav-item:hover > .dropdown { display: none; }
  .nav-item.open > .dropdown { display: block; }
  .nav-actions { width: 100%; padding-bottom: 10px; flex-wrap: wrap; }
  .brandbar-actions { display: none; }
  .brand .mark { width: 42px; height: 42px; font-size: .9rem; }
  .brand-name { font-size: 1.15rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 38px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row, .tile-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; font-size: .74rem; gap: 8px; }
  .topbar-right .topbar-item span { display: none; }
  .cta-band { padding: 24px 18px; }
  .modal-box { padding: 20px; }
  .page-titlebar { padding: 20px 0; }
}
