/* =====================================================
   BLOG.CSS — Highland Longevity Blog Layout
   Shared stylesheet for all blog article pages.
   Replaces per-page inline <style> blocks.
   ===================================================== */

/* =====================================================
   ANCHOR SCROLL OFFSET
   Accounts for fixed header on TOC link clicks
   ===================================================== */
html {
  scroll-padding-top: 80px;
}

/* =====================================================
   BASE RESET & BODY
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent, var(--color-primary)));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* =====================================================
   HEADER — BLOG-SPECIFIC OVERRIDES
   Slimmer header, hide-on-scroll-down behavior via JS
   Use body > header to avoid targeting <header class="article-header">
   ===================================================== */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(64, 105, 161, 0.08);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body > header.header-hidden {
  transform: translateY(-100%);
}

body > header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body > header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-phone {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  border-radius: 9999px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Dropdown Fix: 12px radius instead of 50px --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* =====================================================
   HAMBURGER & MOBILE MENU
   ===================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text);
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
}

.mobile-menu-links li {
  margin-bottom: 16px;
}

.mobile-menu-links a {
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 2rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text-light);
  margin: 0 0.5rem;
}

/* =====================================================
   ARTICLE HEADER
   ===================================================== */
.article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  text-align: center;
}

.article-category {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.article-meta .author {
  color: var(--color-primary);
  font-weight: 600;
}

.article-meta .divider {
  margin: 0 0.75rem;
  color: var(--color-border);
}

/* =====================================================
   ARTICLE CONTENT — Core Reading Experience
   ===================================================== */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 3rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(64, 105, 161, 0.1);
}

.article-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(64, 105, 161, 0.3);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
}

/* =====================================================
   BREADCRUMB LIST (Template B — section-based breadcrumb)
   ===================================================== */
.breadcrumb-list {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* =====================================================
   ARTICLE META — Author Info Block (Template B)
   ===================================================== */
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-details {
  font-size: 0.9rem;
}

.author-name {
  font-weight: 600;
  color: var(--color-text);
}

.author-title {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.article-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.article-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   ARTICLE BODY — White Card Wrapper (Template B)
   Used by most blog pages that wrap content in a card
   ===================================================== */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(64, 105, 161, 0.1);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-dark, #295b8f);
  margin: 32px 0 16px;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--color-text);
  line-height: 1.8;
  text-align: left;
}

.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body strong {
  color: var(--color-text);
}

/* =====================================================
   STAT BOX — Full-color variant (Template B)
   ===================================================== */
.stat-box .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Full-color stat box (when used outside decade cards) */
.article-body .stat-box {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}

/* =====================================================
   SYMPTOM GRID (34-symptoms-perimenopause specific)
   ===================================================== */
.symptom-category {
  margin: 32px 0;
}

.symptom-category-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(64, 105, 161, 0.1);
  border: 1px solid rgba(64, 105, 161, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.symptom-item {
  background: var(--color-white);
  padding: 20px;
}

.symptom-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark, #295b8f);
  margin-bottom: 8px;
}

.symptom-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}

.symptom-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent-light, rgba(64,105,161,0.1));
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 8px;
}

/* =====================================================
   BUTTON VARIANTS (CTA sections)
   ===================================================== */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   DROP CAP
   ===================================================== */
.drop-cap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.5rem;
  line-height: 0.8;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* =====================================================
   KEY TAKEAWAYS — White bg with left border accent
   ===================================================== */
.key-takeaways {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  padding: 2rem 2.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0 3rem;
  box-shadow: 0 2px 12px rgba(64, 105, 161, 0.06);
}

.key-takeaways h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.key-takeaways li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */
.toc {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  padding: 2rem;
  margin: 2rem 0 3rem;
}

.toc h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
}

.toc a {
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.toc a::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.toc a:hover {
  color: var(--color-primary);
}

/* Also support ul-based TOCs from other blog pages */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc ul li {
  margin-bottom: 0.5rem;
}

.toc ul a::before {
  content: ">";
  color: var(--color-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =====================================================
   PULL QUOTE
   ===================================================== */
.pull-quote {
  border-left: 4px solid var(--color-primary);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(64, 105, 161, 0.03) 0%, rgba(64, 105, 161, 0.06) 100%);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.7;
  position: relative;
  border-radius: 0 12px 12px 0;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-light);
}

/* =====================================================
   DECADE CARDS (testosterone-levels-by-age specific)
   ===================================================== */
.decade-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.decade-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.decade-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.decade-number span {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.decade-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.25rem;
}

.decade-title p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.decade-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: linear-gradient(135deg, rgba(64, 105, 161, 0.05) 0%, rgba(64, 105, 161, 0.08) 100%);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.stat-box .label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.stat-box .value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.decade-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.25rem 0 0.75rem;
}

.decade-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.decade-content ul {
  font-size: 0.95rem;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.decade-content li {
  margin-bottom: 0.5rem;
}

/* =====================================================
   DECLINE CHART (bar chart)
   ===================================================== */
.decline-chart {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.decline-chart h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chart-bar .age-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  width: 60px;
  text-align: right;
}

.chart-bar .bar-container {
  flex: 1;
  height: 30px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.chart-bar .bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
}

/* =====================================================
   INFO BOX
   ===================================================== */
.info-box {
  background: linear-gradient(135deg, rgba(64, 105, 161, 0.04) 0%, rgba(64, 105, 161, 0.08) 100%);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

.info-box h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.info-box p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* =====================================================
   CALLOUT BOXES (new unified system)
   ===================================================== */
.callout-info {
  background: rgba(64, 105, 161, 0.05);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

.callout-action {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border-radius: 12px;
  text-align: center;
}

.callout-action h3,
.callout-action p,
.callout-action a {
  color: var(--color-white);
}

.callout-action a {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.callout-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.06);
  border-left: 4px solid #f59e0b;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

/* =====================================================
   BLOG CTA BOX (inline CTA sections within articles)
   ===================================================== */
.blog-cta-box {
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}

/* =====================================================
   TABLES — with mobile scroll wrapper
   ===================================================== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 12px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-width: 500px;
}

.summary-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.summary-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table tr:nth-child(even) td {
  background: rgba(64, 105, 161, 0.02);
}

.summary-table tr:hover td {
  background-color: rgba(64, 105, 161, 0.05);
}

.summary-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

/* Also support comparison-table class from some blog pages */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(64, 105, 161, 0.1);
}

.comparison-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.comparison-table tr:hover {
  background: var(--color-bg);
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* Also support h3-based FAQ questions from some blog pages */
.faq-question h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

.faq-answer-inner {
  padding: 0 0 20px;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-toggle::before {
  content: '+';
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
}

.faq-item.active .faq-toggle {
  background: var(--color-primary);
}

.faq-item.active .faq-toggle::before {
  content: '-';
  color: var(--color-white);
}

/* =====================================================
   REFERENCES
   ===================================================== */
.references {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.references h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  border-top: none;
  padding-top: 0;
}

.references ol {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  padding-left: 1.5rem;
}

.references li {
  margin-bottom: 0.75rem;
}

/* =====================================================
   CTA SECTION (full-width bottom CTA)
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  border-top: none;
  padding-top: 0;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RELATED ARTICLES
   ===================================================== */
.related-articles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
  border-top: none;
  padding-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  display: block;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(64, 105, 161, 0.08);
  box-shadow: 0 4px 20px rgba(64, 105, 161, 0.06);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(64, 105, 161, 0.12);
}

.related-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   NEWSLETTER SECTION
   ===================================================== */
.newsletter-section {
  background: var(--color-primary);
  padding: 60px 24px;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-text h3 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  width: 300px;
  max-width: 100%;
}

.newsletter-form button {
  white-space: nowrap;
}

.newsletter-privacy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #1a1f2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.8);
}

.footer-areas {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-areas p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-areas strong {
  color: rgba(255, 255, 255, 0.7);
}

.footer-services {
  max-width: 1200px;
  margin: 16px auto 0;
}

.footer-services p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.footer-services strong {
  color: rgba(255, 255, 255, 0.5);
}

.footer-seo {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-seo p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

/* =====================================================
   FLOATING CTA BAR
   Slimmer, appears after 1200px, auto-hides at footer
   ===================================================== */
.floating-cta-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 12px 24px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  z-index: 900;
  transition: bottom 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.floating-cta-bar.visible {
  bottom: 0;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

.cta-text strong {
  color: var(--color-primary);
}

.close-cta {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.close-cta:hover {
  color: var(--color-text);
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE — TABLET (768px)
   ===================================================== */
@media (max-width: 768px) {
  .nav-links,
  .nav-phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .article-header h1 {
    font-size: 1.85rem;
  }

  .article-content {
    padding: 0 1.25rem 3rem;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }

  .breadcrumb {
    padding: 72px 1.25rem 0.75rem;
  }

  .article-header {
    padding: 1.5rem 1.25rem 2rem;
  }

  /* Template B article-body card */
  .article-body {
    padding: 32px 24px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .pull-quote {
    padding: 1.5rem;
    font-size: 1.15rem;
  }

  .decade-stats {
    grid-template-columns: 1fr;
  }

  .decade-header {
    flex-direction: column;
    text-align: center;
  }

  .key-takeaways {
    padding: 1.5rem;
  }

  .toc {
    padding: 1.5rem;
  }

  .info-box {
    padding: 1.25rem;
  }

  .floating-cta-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }

  .floating-cta-bar .cta-text {
    text-align: center;
    font-size: 0.85rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    display: none;
    border-radius: 0;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 8px 30px;
    color: white;
    font-size: 0.9rem;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ===================================================== */
@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .article-header h1 {
    font-size: 1.65rem;
  }

  .article-content h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
  }

  .decade-card {
    padding: 1.5rem;
  }

  .decade-number {
    font-size: 2.5rem;
  }

  .decline-chart {
    padding: 1.5rem;
  }

  .blog-cta-box {
    padding: 24px;
  }

  .cta-section h2 {
    font-size: 1.35rem;
  }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  header {
    transition: none;
  }
}

/* =====================================================
   FOOTER RESPONSIVE — TABLET (1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
