/* =========================================
   DOLLAR MATTERS: Global Styles
   ========================================= */

:root {
  --navy:      #0d2d6e;
  --navy-dark: #071a45;
  --navy-mid:  #1a3a6e;
  --blue:      #1565c0;
  --blue-light:#1976d2;
  --blue-link: #1a56a0;
  --sky:       #dce8f8;
  --sky-light: #eef4fc;
  --white:     #ffffff;
  --off-white: #f5f7fa;
  --gray-100:  #f0f2f5;
  --gray-200:  #e2e6ea;
  --gray-400:  #9aa5b4;
  --gray-600:  #637083;
  --gray-800:  #2d3748;
  --black:     #111827;

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --header-h: 68px;
  --max-w: 1200px;
  --radius: 6px;
  --radius-lg: 40px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue-link); text-decoration: underline; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 29px;
  width: auto;
  display: block;
  max-width: none;
}

/* Nav */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-item { position: static; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--blue); text-decoration: underline; background: none; }
.nav-item.force-open .nav-link { color: var(--blue); text-decoration: underline; background: none; }

.caret {
  display: none !important;
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
  transition: transform 0.2s ease;
}
.nav-item.force-open .caret { transform: rotate(180deg); }

/* Mega dropdown: full-width, Mayo Clinic inspired */
.dropdown {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: unset;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 999;
}
.nav-item:focus-within .dropdown,
.nav-item.force-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item.force-closed .dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dropdown-mega {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.dropdown-links-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.dropdown-links-col a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--gray-800);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 400;
}
.dropdown-links-col a:hover { color: var(--blue); text-decoration: underline; }
.dropdown-feature {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  align-self: stretch;
  min-height: 200px;
  position: relative;
}
.dropdown-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,26,69,0.88) 0%, rgba(7,26,69,0.3) 60%, transparent 100%);
  border-radius: 10px;
  pointer-events: none;
}
.dropdown-feature-label {
  display: none;
}
.dropdown-feature-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  position: relative;
  z-index: 1;
  padding: 0 22px 6px;
}
.dropdown-feature-desc {
  display: none;
}
.dropdown-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 0 22px 22px;
  position: relative;
  z-index: 1;
  width: 100%;
  transition: opacity 0.15s;
}
.dropdown-feature-link:hover {
  opacity: 0.85;
  color: var(--white);
  text-decoration: underline;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--blue-link);
  border: 2px solid var(--blue-link);
}
.btn-outline-dark:hover { background: var(--blue-link); color: var(--white); }

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

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-800);
  transition: background var(--transition);
}
.search-btn:hover { background: var(--gray-100); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform 0.2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search overlay: Mayo Clinic inspired */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-h);
  height: auto;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: none;
  align-items: center;
  flex-direction: column;
  z-index: 1100;
}
.search-overlay.active { display: flex; }
.search-overlay-results {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 16px;
  width: 100%;
}
.search-overlay-results.active { display: block; }
.overlay-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
}
.overlay-result-item:hover { background: var(--sky-light); color: var(--navy); }
.overlay-result-term { font-size: 15px; font-weight: 600; color: var(--black); }
.overlay-result-term strong { color: var(--navy); }
.overlay-result-def { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.overlay-no-results { color: var(--gray-400); font-size: 14px; padding: 16px; }
.search-overlay-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: var(--header-h);
  flex-shrink: 0;
}
.search-overlay-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.search-overlay-logo .logo-img { height: 29px; width: auto; }
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-icon-left {
  position: absolute;
  left: 16px;
  color: var(--gray-400);
  pointer-events: none;
}
.search-overlay-input {
  width: 100%;
  padding: 12px 44px 12px 48px;
  font-size: 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  font-family: var(--font-sans);
  color: var(--gray-800);
  transition: border-color 0.2s;
  background: var(--white);
}
.search-overlay-input:focus { border-color: var(--blue); }
.search-overlay-input::placeholder { color: var(--gray-400); }
.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-400);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.search-clear-btn.visible { display: flex; }
.search-clear-btn:hover { background: var(--gray-600); }
.search-overlay-close {
  font-size: 20px;
  color: var(--gray-600);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s;
}
.search-overlay-close:hover { background: var(--gray-100); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: min(90vh, 680px);
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-img-wrapper { width: 100%; height: 100%; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-img-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, #2a5298 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7, 26, 69, 0.82) 0%,
    rgba(7, 26, 69, 0.55) 55%,
    rgba(7, 26, 69, 0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity var(--transition);
}
.hero-link:hover { opacity: 1; color: var(--white); text-decoration: underline; }

/* =========================================
   GLOSSARY FINDER
   ========================================= */
.glossary-finder {
  padding: 48px 0 40px;
  background: var(--white);
}
.glossary-finder-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.finder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0;
}
.alpha-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.alpha-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-light);
  background: var(--white);
  color: var(--blue-link);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.alpha-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--gray-400);
  pointer-events: none;
}
#glossary-search {
  width: 100%;
  padding: 14px 20px 14px 46px;
  font-size: 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}
#glossary-search:focus { border-color: var(--blue); }

.search-suggestions {
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--gray-800);
  display: block;
  text-decoration: none;
}
.suggestion-item:hover { background: var(--sky-light); color: var(--navy); }
.suggestion-item strong { color: var(--navy); }

/* =========================================
   DIVIDER
   ========================================= */
.section-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* =========================================
   VALUE PROP
   ========================================= */
.value-prop {
  padding: 72px 0;
  background: var(--white);
}
.value-prop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.value-prop-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 32px;
  line-height: 1.2;
}
.value-item { margin-bottom: 24px; }
.value-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.value-item p { font-size: 15px; color: var(--gray-600); line-height: 1.65; }
.value-item a { color: var(--blue-link); }
.value-prop-text .btn { margin-top: 20px; }

.value-prop-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.value-prop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.value-prop-image-fallback,
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 100%);
  color: var(--navy-mid);
}
.placeholder-image p { font-size: 14px; color: var(--gray-600); }

/* =========================================
   TOPICS
   ========================================= */
.topics-section {
  padding: 72px 0;
  background: var(--off-white);
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 40px;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  color: inherit;
}
.topic-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.topic-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}
.topic-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.topics-cta { margin-top: 36px; text-align: center; }

/* =========================================
   STATS BANNER
   ========================================= */
.stats-banner {
  background: var(--navy);
  padding: 56px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
}

/* =========================================
   GET INVOLVED
   ========================================= */
.get-involved {
  padding: 64px 0;
  background: var(--white);
}
.get-involved-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}
.get-involved-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.get-involved-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.gi-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.get-involved-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}
.get-involved-card p { font-size: 13.5px; color: var(--gray-600); }
.gi-arrow {
  margin-left: auto;
  font-size: 24px;
  color: var(--blue-link);
  text-decoration: none;
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--navy); color: var(--white); }

/* Footer links: main nav grid */
.footer-links {
  padding: 48px 0 44px;
}
.footer-links-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col {}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  margin-top: 28px;
}
.footer-group-title:first-of-type { margin-top: 0; }
.footer-group-title a { color: var(--white); text-decoration: none; }
.footer-group-title a:hover { text-decoration: underline; }

.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

/* Footer social + newsletter bar */
.footer-social-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 32px 0;
}
.footer-social-bar-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-follow {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-social-links { display: flex; gap: 10px; }
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }

.footer-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.3);
  max-width: 360px;
}
.footer-newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.footer-newsletter-form button {
  background: rgba(255,255,255,0.15);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-sans);
}
.footer-newsletter-form button:hover { background: rgba(255,255,255,0.25); }

/* Footer bottom: light bar like Mayo Clinic */
.footer-bottom {
  padding: 20px 0;
  background: #dce6f0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: #2a3a50;
}
.footer-legal-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 13px;
  color: #1a3a5c;
  text-decoration: none;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(26,58,92,0.3);
  line-height: 1.8;
  transition: color var(--transition);
}
.footer-legal-links a:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.footer-legal-links a:hover { color: var(--navy); text-decoration: underline; }

/* Language selector */
.footer-lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.footer-lang-label {
  font-size: 13px;
  color: #2a3a50;
  font-weight: 500;
}
.footer-lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #1a3a5c;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
  transition: color var(--transition);
}
.footer-lang-btn:hover { color: var(--navy); text-decoration: underline; }
.footer-lang-caret { transition: transform 0.15s; flex-shrink: 0; }
.footer-lang-wrap.open .footer-lang-caret { transform: rotate(180deg); }
.footer-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(26,58,92,0.2);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
  display: none;
  min-width: 120px;
  z-index: 100;
}
.footer-lang-wrap.open .footer-lang-dropdown { display: block; }
.footer-lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  color: #1a3a5c;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.footer-lang-option:hover { background: #f0f4f8; }
.footer-lang-option.active { font-weight: 700; }


/* =========================================
   GLOSSARY PAGE
   ========================================= */
.page-hero {
  background: var(--navy);
  padding: 56px 0 48px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 10px;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 560px; }

.glossary-page-finder {
  padding: 36px 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}
.glossary-page-finder-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.alpha-grid-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-content { padding: 48px 0 80px; }
.glossary-letter-section { margin-bottom: 56px; }
.glossary-letter-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 24px;
  width: 48px;
  text-align: center;
}
.glossary-term {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.glossary-term:last-child { border-bottom: none; }
.glossary-term-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.glossary-term-def {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 720px;
}
.glossary-term-example {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--blue-link);
  font-style: italic;
}

/* =========================================
   INNER PAGE: GENERAL
   ========================================= */
.inner-page { padding: 64px 0 80px; }
.inner-page h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin: 40px 0 14px;
}
.inner-page p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.inner-page ul { margin: 0 0 16px 20px; list-style: disc; }
.inner-page ul li { font-size: 15px; color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }

/* Topic pills on inner pages */
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.topic-pill {
  background: var(--sky-light);
  color: var(--blue-link);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.topic-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Mobile quick-links tiles: hidden on desktop */
.mobile-quick-links { display: none; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  /* Override serif font with Inter for all mobile typography */
  :root {
    --font-serif: 'Inter', system-ui, sans-serif;
  }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .site-header.nav-open { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; }

  /* Logo left-aligned in mobile header */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }
  .logo {
    position: static;
    transform: none;
    left: auto;
  }
  .logo-img {
    width: 200px;
    height: auto;
  }
  .header-actions {
    margin-left: 0;
  }

  .main-nav.open { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); overflow-y: auto; padding: 0; z-index: 1000; }
  .main-nav.open .nav-list { flex-direction: column; align-items: stretch; }
  .main-nav.open .nav-list > .nav-item { border-bottom: 1px solid var(--gray-200); }
  .main-nav.open .nav-link { font-family: var(--font-sans); font-size: 20px; padding: 20px 24px; border-radius: 0; width: 100%; border-bottom: none; justify-content: space-between; gap: 16px; }
  .main-nav.open .dropdown-links-col a { font-family: var(--font-sans); }
  .main-nav.open .has-dropdown > .nav-link::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--gray-400);
    border-bottom: 2.5px solid var(--gray-400);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: -2px;
  }
  .main-nav.open .has-dropdown.force-open > .nav-link::after {
    transform: rotate(225deg);
  }
  .main-nav.open .nav-item.force-open .caret { transform: rotate(180deg); }
  /* Override mega-dropdown for mobile: stack below nav item */
  .main-nav.open .dropdown {
    position: static;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--gray-100);
    border-radius: 0;
    display: none;
  }
  .main-nav.open .nav-item.force-open .dropdown { display: block; }
  .main-nav.open .dropdown-mega { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .main-nav.open .dropdown-feature { display: none; }
  .main-nav.open .dropdown-links-col { grid-template-columns: 1fr; gap: 0; }
  .main-nav.open .dropdown-links-col a { display: block; padding: 18px 32px; font-size: 18px; border-bottom: 1px solid var(--gray-200); color: var(--gray-800); width: 100%; }
  .main-nav.open .dropdown-links-col a:last-child { border-bottom: none; }
  .main-nav.open .dropdown-links-col a::before { display: none; }
  .header-actions .btn { display: none; }
  /* Search overlay on mobile */
  .search-overlay-logo { display: none; }

  .mobile-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--navy-dark);
    padding: 2px;
  }
  .mobile-quick-tile {
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    text-decoration: none;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition);
    text-align: center;
    min-height: 90px;
  }
  .mobile-quick-tile:hover { background: var(--navy-mid); color: var(--white); text-decoration: none; }
  .mobile-quick-tile svg { flex-shrink: 0; }

  .glossary-finder-inner { grid-template-columns: 1fr; gap: 32px; }
  .value-prop-inner { grid-template-columns: 1fr; gap: 40px; }
  .value-prop-image { order: -1; max-height: 280px; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 0; }
  .stat { padding: 20px 24px; }
  .stat-divider { width: 80%; height: 1px; }
  .stats-inner { flex-direction: column; align-items: center; }
  .footer-links-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-top-inner { flex-direction: column; }
  .hero-content { padding: 0 24px 48px; }

  .footer-col ul { padding-bottom: 6px; }
}

@media (max-width: 600px) {
  .topics-grid { grid-template-columns: 1fr; }
  .hero { height: 70vh; }
  .footer-links-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-legal-links { justify-content: flex-start; }
}
