/* ============================================================
   THE QUANTUM JOURNAL — Main Stylesheet
   v2.1 — Full layout, background, spacing & nav corrections
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #0a1628;   /* deep navy */
  --accent:      #00b4d8;   /* quantum cyan */
  --accent2:     #7b2d8b;   /* quantum violet */
  --accent-gold: #f0a500;   /* highlight gold */
  --text:        #1a1a2e;
  --text-light:  #555;
  --bg:          #ffffff;   /* FIX: white page background */
  --bg-section:  #f5f7fa;   /* light grey for section contrast */
  --white:       #ffffff;
  --border:      #e0e4ed;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

/* FIX: white background globally */
html, body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  padding: 28px 20px 20px;
  text-align: center;
}
.header-inner { max-width: 1200px; margin: 0 auto; }
.site-logo a {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  text-decoration: none;
}
.logo-the {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 4px;
}
.logo-quantum {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1;
}
.logo-journal {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent2);
  letter-spacing: 6px;
}
.tagline {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

/* ---- NAV ---- */
/* FIX: raise z-index so dropdown clears all page content */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-nav ul {
  display: flex;
  gap: 0;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

/* FIX: dropdown z-index above sticky nav and all page content */
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 210px;
  border-top: 2px solid var(--accent);
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.dropdown li a {
  padding: 11px 18px;
  font-weight: 400;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 160px;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
}

/* ---- TICKER ---- */
.ticker-wrap {
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.ticker-label {
  background: var(--accent2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-content {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding-left: 20px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- MAIN LAYOUT ---- */
.site-main {
  padding: 30px 0 40px;
  background: var(--bg);  /* FIX: ensure white on homepage */
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- FEATURED GRID ---- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-article {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.category-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.hero-content { padding: 24px; }
.meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.meta .author { font-weight: 600; color: var(--accent2); }
.meta .dot { margin: 0 4px; }
.hero-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--primary);
}
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }
.read-more-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background 0.2s;
}
.read-more-btn:hover { background: var(--accent2); color: white; }

/* SIDE ARTICLES */
.side-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 12px;
  padding: 12px;
}
.side-card img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.side-card.no-img { align-items: flex-start; }
.side-card-content { flex: 1; }
.side-card-content h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4px;
  color: var(--primary);
}
.side-card-content h3 a:hover { color: var(--accent); }

/* ---- POPULAR BAR ---- */
.popular-bar {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
  overflow: hidden;
  border-left: 4px solid var(--accent2);
}
.popular-label {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 16px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px 16px;
}
.popular-links a {
  font-size: 13px;
  color: var(--primary);
  padding: 4px 12px;
  border-right: 1px solid var(--border);
  font-weight: 500;
  transition: color 0.2s;
}
.popular-links a:last-child { border-right: none; }
.popular-links a:hover { color: var(--accent); }

/* ---- CONTENT + SIDEBAR ---- */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;  /* FIX: increased gap for breathing room */
}

/* ---- TOPIC SECTIONS ---- */
/* FIX: increased bottom margin for section separation */
.topic-section { margin-bottom: 44px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.see-all {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* FIX: article grid gap increased */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
/* FIX: improved card-content spacing */
.card-content {
  padding: 20px;
}
.card-content .category-tag {
  margin-bottom: 8px;
  display: inline-block;
}
.card-content .meta {
  margin-bottom: 8px;
}
.card-content h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: var(--primary);
}
.card-content h3 a:hover { color: var(--accent); }
.card-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}
.read-more { font-size: 13px; color: var(--accent); font-weight: 600; }
.read-more:hover { color: var(--accent2); }

.category-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ARTICLE LIST (right column of grid) */
/* FIX: increased gap between list cards */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.list-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 12px;
  padding: 14px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.list-card:hover { border-left-color: var(--accent); }
.list-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.list-card.no-img { align-items: flex-start; }
.list-card-content { flex: 1; }
.list-card-content .category-tag { margin-bottom: 6px; }
.list-card-content .meta { margin-bottom: 4px; }
.list-card-content h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 4px;
  color: var(--primary);
}
.list-card-content h4 a:hover { color: var(--accent); }

/* ---- LOAD MORE ---- */
.load-more-wrap { text-align: center; margin: 10px 0 20px; }
.load-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 36px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.load-more-btn:hover { background: var(--accent2); }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 20px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* Newsletter widget */
.newsletter-widget { background: var(--primary); color: white; }
.newsletter-widget h3 { color: var(--accent); border-color: var(--accent); }
.newsletter-widget p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent-gold); }

/* Trending widget */
.trending-list { counter-reset: trending; }
.trending-list li {
  counter-increment: trending;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
}
.trending-list li:last-child { border-bottom: none; }
.trending-list li::before {
  content: counter(trending);
  font-size: 22px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
}
.trending-list li a { color: var(--primary); font-weight: 500; }
.trending-list li a:hover { color: var(--accent); }

/* Companies widget */
.companies-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.companies-list li:last-child { border-bottom: none; }
.company-name { font-weight: 600; color: var(--primary); }
.company-tag {
  font-size: 10px;
  background: var(--bg-section);
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  background: var(--bg-section);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}
.tag-cloud a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* ---- PRESS RELEASES ---- */
.press-releases-section {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-top: 10px;
}
.press-grid { display: flex; flex-direction: column; gap: 10px; }
.press-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.press-item:last-child { border-bottom: none; }
.press-date {
  color: var(--text-light);
  font-size: 11px;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 80px;
}
.press-item a { color: var(--primary); font-weight: 500; }
.press-item a:hover { color: var(--accent); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 20px 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.social-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.social-btn {
  display: block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--accent); color: var(--primary); }
.footer-newsletter p { font-size: 12px; margin-bottom: 8px; }
.footer-newsletter form { display: flex; gap: 4px; }
.footer-newsletter input {
  flex: 1;
  padding: 7px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  font-size: 12px;
}
.footer-newsletter button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--accent); }
.footer-note { margin-top: 4px; }

/* ---- ARTICLE PAGE STYLES ---- */
.article-page-main {
  padding: 40px 0;
  background: var(--bg);
}
.article-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.article-header { margin-bottom: 28px; }
.article-header .category-tag { margin-bottom: 12px; }
.article-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}
.article-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta .author { font-weight: 600; color: var(--accent2); }
.article-hero-img { width: 100%; border-radius: 8px; margin-bottom: 28px; max-height: 460px; object-fit: cover; }
.article-body { font-size: 16px; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--primary); margin: 32px 0 14px; }
.article-body h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--primary); margin: 24px 0 10px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: var(--bg-section);
  font-style: italic;
  margin: 24px 0;
  color: var(--text-light);
}
.article-source {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-source a { color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--accent2); }

/* ---- INNER PAGE STYLES (topic, research, contact, etc.) ---- */
/* FIX: remove dark background from inner pages — use white */
.inner-page-body {
  background: var(--bg);
  color: var(--text);
}
.inner-page-body .site-main {
  background: var(--bg);
  min-height: 60vh;
}

/* FIX: inner page article cards use white background with dark text */
.inner-page-body .article-card {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
}
.inner-page-body .article-card h2,
.inner-page-body .article-card h3,
.inner-page-body .article-card h4 {
  color: var(--primary);
}
.inner-page-body .article-card p {
  color: var(--text-light);
}
.inner-page-body .article-card a {
  color: var(--primary);
}
.inner-page-body .article-card a:hover {
  color: var(--accent);
}

/* FIX: section headers on inner pages use dark text */
.inner-page-body .section-header h2 {
  color: var(--primary);
}
.inner-page-body .section-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.inner-page-body .see-all {
  color: var(--accent);
}

/* FIX: category tags on inner pages */
.inner-page-body .category-tag {
  background: var(--accent);
  color: var(--primary);
}

/* FIX: inner page links */
.inner-page-body a {
  color: var(--text);
}
.inner-page-body a:hover {
  color: var(--accent);
}

/* FIX: topic section separators */
.inner-page-body .topic-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* FIX: page-content-section on inner pages — light background */
.page-content-section {
  background: var(--bg-section);
  border-radius: 10px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.page-content-section h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.page-content-section h3 {
  color: var(--accent2);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.page-content-section p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.page-content-section p.value {
  color: var(--text);
  font-weight: 500;
}

/* ---- PAGE HERO (inner pages) ---- */
/* Keep dark hero banner — it provides visual contrast at top */
.page-hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1b3e 60%, #1a0a2e 100%);
  padding: 3rem 0;
  border-bottom: 3px solid var(--accent);
  /* FIX: ensure hero never overlaps nav dropdown */
  position: relative;
  z-index: 1;
}
.page-hero h1,
.inner-page-body .page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #fff;
  margin: 0 0 0.75rem 0;
}
.page-hero p,
.inner-page-body .page-hero p {
  color: #a0b4cc;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0;
}

/* ---- CONTACT PAGE ---- */
/* FIX: single-column centered form layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.contact-info-block {
  display: none; /* FIX: hide contact info block per requirements */
}
.ghl-form-wrapper {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--card-shadow);
}
.ghl-form-wrapper iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}
.send-message-heading {
  font-family: var(--font-serif);
  color: var(--primary) !important;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

/* ---- INNER PAGE SIDEBAR ---- */
.inner-page-body .sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
}
.inner-page-body .sidebar-widget h3 {
  color: var(--primary);
}
.inner-page-body .newsletter-widget {
  background: var(--primary);
}
.inner-page-body .newsletter-widget h3 {
  color: var(--accent);
}
.inner-page-body .trending-list li a {
  color: var(--primary);
}
.inner-page-body .company-name {
  color: var(--primary);
}

/* ---- TABLE STYLES (research page) ---- */
.inner-page-body table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}
.inner-page-body table th {
  background: var(--bg-section);
  color: var(--primary);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.inner-page-body table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.inner-page-body table tr:hover td {
  background: var(--bg-section);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .side-articles { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 calc(50% - 6px); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .logo-quantum { font-size: 36px; }
  .main-nav ul { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .popular-links { flex-direction: column; }
  .popular-links a { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .side-articles { flex-direction: column; }
  .side-card { flex: 1 1 100%; }
  .page-hero h1,
  .inner-page-body .page-hero h1 { font-size: 2rem; }
  .article-title { font-size: 26px; }
  .contact-grid { max-width: 100%; }
}
