.glossary-page {
  background: var(--dark-bg);
  color: var(--text-primary);
}

/* Hero */
.glossary-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 24px 78px;
  border-bottom: 1px solid var(--dark-border);
}

.glossary-hero--term {
  padding-bottom: 56px;
}

.glossary-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.glossary-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7ab3f5;
  background: rgba(19, 99, 198, 0.14);
  border: 1px solid rgba(19, 99, 198, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
}

.glossary-hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 18px;
  color: #f0f4ff;
}

.glossary-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: var(--text-secondary);
}

.glossary-short-def {
  font-size: clamp(17px, 1.8vw, 21px) !important;
  font-weight: 500;
  color: rgba(240, 244, 255, 0.7) !important;
}

/* Hub breadcrumb (reuse from blog-marketing) */
.glossary-page .hub-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(240, 244, 255, 0.35);
  margin-bottom: 18px;
}

.glossary-page .hub-breadcrumb a {
  color: rgba(240, 244, 255, 0.45);
  text-decoration: none;
}

.glossary-page .hub-breadcrumb a:hover {
  color: rgba(240, 244, 255, 0.72);
}

/* Listing section */
.glossary-listing {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  padding: 56px 24px 96px;
}

.glossary-shell {
  max-width: 1060px;
  margin: 0 auto;
}

/* Category groups */
.glossary-category-group {
  margin-bottom: 48px;
}

.glossary-category-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #101f3d;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(19, 99, 198, 0.15);
}

/* Term cards */
.glossary-term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d4dded;
  text-decoration: none;
  transition: all 0.2s ease;
}

.glossary-card:hover {
  border-color: rgba(19, 99, 198, 0.4);
  box-shadow: 0 8px 24px rgba(10, 22, 45, 0.08);
  transform: translateY(-2px);
}

.glossary-card-term {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 680;
  color: #101f3d;
  letter-spacing: -0.01em;
}

.glossary-card-def {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #4c6188;
  flex: 1;
}

.glossary-card-link {
  font-size: 13.5px;
  font-weight: 620;
  color: #1363c6;
}

/* Term detail content */
.glossary-content {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  padding: 56px 24px 96px;
}

.glossary-content-shell {
  max-width: 780px;
  margin: 0 auto;
}

.glossary-article {
  margin-bottom: 48px;
}

.glossary-article p {
  font-size: 17.5px;
  line-height: 1.72;
  color: #2a3a5c;
  margin: 0;
}

/* Related sections */
.glossary-related-section {
  margin-bottom: 40px;
}

.glossary-related-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #101f3d;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.glossary-related-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glossary-related-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3b5280;
  background: #ffffff;
  border: 1px solid #d4dded;
  text-decoration: none;
  transition: all 0.18s ease;
}

.glossary-related-pill:hover {
  color: #1363c6;
  border-color: rgba(19, 99, 198, 0.4);
  background: rgba(19, 99, 198, 0.06);
}

/* Related articles */
.glossary-related-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glossary-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d4dded;
  text-decoration: none;
  transition: all 0.18s ease;
}

.glossary-article-link:hover {
  border-color: rgba(19, 99, 198, 0.4);
  background: rgba(19, 99, 198, 0.03);
}

.glossary-article-title {
  font-size: 15px;
  font-weight: 600;
  color: #101f3d;
}

.glossary-article-arrow {
  font-size: 16px;
  color: #1363c6;
  font-weight: 600;
}

/* CTA (reuse styles from blog-marketing) */
.glossary-page .hub-cta-section {
  text-align: center;
  margin-top: 64px;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid #d4dded;
  border-radius: 18px;
}

.glossary-page .hub-cta-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #101f3d;
  margin: 0 0 12px;
}

.glossary-page .hub-cta-section p {
  max-width: 540px;
  margin: 0 auto 20px;
  color: #4c6188;
  font-size: 16px;
  line-height: 1.55;
}

.glossary-page .hub-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #1363c6;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glossary-page .hub-cta-btn:hover {
  background: #2d7de0;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .glossary-hero {
    padding: 112px 18px 64px;
  }

  .glossary-listing,
  .glossary-content {
    padding: 48px 18px 82px;
  }
}

@media (max-width: 620px) {
  .glossary-term-grid {
    grid-template-columns: 1fr;
  }

  .glossary-hero--term {
    padding-bottom: 42px;
  }
}
