/* ==========================================================================
   MidiSante - French Health News Landing Page
   Production CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --brand: #2B9EAF;
  --brand-hover: #238A99;
  --brand-light: #EBF6F8;
  --text: #333333;
  --heading: #1a1a1a;
  --meta: #929292;
  --link: #2B9EAF;
  --bg: #FFFFFF;
  --bg-light: #F8F8F8;
  --border: #E5E5E5;
  --dark: #1a1a1a;
  --success: #27AE60;
  --warning: #F39C12;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content-max: 750px;
  --sidebar-width: 280px;
  --container-max: 1100px;
  --gap: 40px;
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   2. Container / Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}

.article-column {
  max-width: var(--content-max);
  min-width: 0;
}

/* --------------------------------------------------------------------------
   3. Reading Progress Bar
   -------------------------------------------------------------------------- */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brand);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Top Network Bar
   -------------------------------------------------------------------------- */
.network-bar {
  background: var(--dark);
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 12px;
  overflow: hidden;
}

.network-bar .container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.network-bar a,
.network-links a {
  color: #999;
  font-size: 12px;
  font-family: var(--font-body);
  text-decoration: none;
  padding: 0 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.network-bar a:hover,
.network-links a:hover {
  color: #ccc;
}

.network-bar a.active,
.network-links a.active {
  color: #fff;
}

.network-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--heading);
  text-decoration: none;
  line-height: 1.2;
}

.site-logo:hover {
  color: var(--heading);
}

.site-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--meta);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-subscribe:hover {
  background: var(--brand-hover);
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  background: transparent;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.main-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav .container {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.main-nav a,
.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  display: inline-block;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.nav-links a:hover {
  color: var(--brand);
}

.main-nav a.active,
.nav-links a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* --------------------------------------------------------------------------
   7. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--meta);
  padding: 12px 0;
}

.breadcrumbs a {
  color: var(--meta);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs span:not(:last-child)::after {
  content: " > ";
  color: var(--meta);
  margin: 0 4px;
}

/* --------------------------------------------------------------------------
   8. Article Header
   -------------------------------------------------------------------------- */
.category-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 700;
  text-decoration: none;
}

.category-badge:hover {
  background: var(--brand-hover);
  color: #fff;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
}

.chapo {
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.6;
  margin-bottom: 24px;
}

.author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta {
  font-size: 13px;
  color: var(--meta);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
}

.author-title {
  font-size: 13px;
  color: var(--meta);
}

/* .article-meta is used for article date/reading time text */

/* --------------------------------------------------------------------------
   9. Article Images
   -------------------------------------------------------------------------- */
.article-image,
.article-hero {
  margin: 24px 0;
}

.article-image img,
.article-hero img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.article-image figcaption,
.article-hero figcaption {
  font-size: 13px;
  color: var(--meta);
  font-style: italic;
  padding-top: 8px;
  line-height: 1.5;
}

.article-image--product {
  text-align: center;
}

.article-image--product img {
  max-width: 220px;
  margin: 0 auto;
}

.article-image--doctor img {
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   10. Article Body
   -------------------------------------------------------------------------- */
.article-body {
  margin-top: 24px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--heading);
  border-left: 4px solid var(--brand);
  padding-left: 16px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body blockquote {
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--bg-light);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.article-body strong {
  font-weight: 700;
}

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--brand-hover);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   11. Info Box / Key Points Box
   -------------------------------------------------------------------------- */
.info-box {
  background: var(--brand-light);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
}

.info-box h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  margin-top: 0;
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-box li {
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.6;
}

.info-box li::before {
  margin-right: 8px;
  font-weight: 700;
}

.info-box li.check::before {
  content: "\2713";
  color: var(--success);
}

.info-box li.cross::before {
  content: "\2717";
  color: #e74c3c;
}

.info-box li.bullet::before {
  content: "\2022";
  color: var(--brand);
}

.info-box p {
  font-size: 16px;
  margin-bottom: 12px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Expert Section
   -------------------------------------------------------------------------- */
.expert-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.expert-photo {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.expert-info {
  flex: 1;
  min-width: 0;
}

.expert-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.expert-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.expert-quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  align-self: start;
  padding-top: 52px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-links li:first-child {
  padding-top: 0;
}

.sidebar-links a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
}

.sidebar-links a:hover {
  color: var(--brand);
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-thumb {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-title {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.news-title:hover {
  color: var(--brand);
}

body.dark-mode .news-title {
  color: #ccc;
}

body.dark-mode .news-title:hover {
  color: var(--brand);
}

body.dark-mode .sidebar-links a {
  color: #ccc;
}

body.dark-mode .sidebar-links a:hover {
  color: var(--brand);
}

body.dark-mode .sidebar-links li {
  border-color: #333;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}

/* Most Read Widget */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}

.popular-list a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}

.popular-list a:hover {
  color: var(--brand);
}

/* Newsletter Widget */
.sidebar-newsletter p {
  font-size: 14px;
  color: var(--meta);
  margin-bottom: 12px;
  line-height: 1.5;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

.newsletter-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--brand-hover);
}

/* Ad Label */
.ad-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
}

/* sidebar ad placeholder (unused, kept for compatibility) */

/* --------------------------------------------------------------------------
   14. Quiz Section
   -------------------------------------------------------------------------- */
.quiz-section {
  margin: 40px 0;
}

.quiz-container {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 32px;
  margin: 0;
  text-align: center;
  background: #fff;
}

.quiz-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
  text-align: center;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.quiz-question {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--heading);
  text-align: center;
}

.quiz-progress {
  font-size: 13px;
  color: #999;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
}

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-body);
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text);
  position: relative;
}

.quiz-option:hover {
  border-color: var(--brand);
  background: rgba(43, 158, 175, 0.06);
}

.quiz-option.selected {
  border-color: var(--brand);
  background: rgba(43, 158, 175, 0.06);
}

.quiz-option.selected::after {
  content: "\2713";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

.quiz-option:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.12);
}

/* Quiz Result */
.quiz-result {
  text-align: center;
  padding: 24px 0;
}

.quiz-result-subtitle {
  font-size: 15px;
  color: var(--meta);
  margin-bottom: 8px;
}

.quiz-result-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
  line-height: 1.3;
}

.quiz-result-timer {
  font-size: 14px;
  color: var(--meta);
  margin-top: 20px;
  margin-bottom: 8px;
}

.quiz-result-timer span {
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

.quiz-result-trust {
  font-size: 13px;
  color: var(--meta);
  margin-bottom: 0;
}

/* CTA Button */
a.cta-button,
button.cta-button,
.cta-button {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  line-height: 1.4;
  text-align: center;
}

a.cta-button:hover,
button.cta-button:hover,
.cta-button:hover {
  background: var(--brand-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 158, 175, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(43, 158, 175, 0.2);
}

.cta-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.3);
}

.cta-button--large {
  padding: 18px 48px;
  font-size: 20px;
}

.cta-button--small {
  padding: 12px 24px;
  font-size: 15px;
}

/* Countdown */
.countdown-wrap {
  margin: 20px 0 8px;
}

.countdown-label {
  font-size: 14px;
  color: var(--meta);
  margin-bottom: 10px;
}

.countdown-timer {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 8px 20px;
}

.countdown-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.countdown-item span:first-child {
  font-variant-numeric: tabular-nums;
}

.countdown-item small {
  font-size: 11px;
  font-weight: 400;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-sep {
  font-size: 24px;
  font-weight: 700;
  color: var(--meta);
  margin-top: -8px;
}

/* Trust Signals */
.trust-signals {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.trust-rating {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--heading);
}

.trust-payments {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.payment-badge {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.trust-guarantees {
  font-size: 13px;
  color: var(--meta);
  margin-top: 8px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Testimonial Cards
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 24px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text);
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
}

.testimonial-meta {
  font-size: 13px;
  color: var(--meta);
  margin-top: 2px;
}

.testimonial-rating {
  margin-top: 8px;
}

.testimonial-image {
  width: 100%;
  border-radius: 6px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   16. Sources Section
   -------------------------------------------------------------------------- */
.sources-section {
  border-top: 2px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
}

.sources-section h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}

.sources-list {
  list-style: decimal;
  padding-left: 20px;
}

.sources-list li,
.sources-section li {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sources-section a {
  color: var(--brand);
  text-decoration: underline;
  word-break: break-all;
}

.sources-section a:hover {
  color: var(--brand-hover);
}

/* --------------------------------------------------------------------------
   17. Share Bar
   -------------------------------------------------------------------------- */
.share-bar {
  background: #F0F7F8;
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.share-bar span {
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 16px;
  border: none;
}

.share-btn:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
}

.share-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   18. Alert Notification (Purchase Alerts)
   -------------------------------------------------------------------------- */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.alert-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  max-width: 320px;
  z-index: 9998;
  animation: slideIn 0.3s ease forwards;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-popup.hiding {
  animation: slideOut 0.3s ease forwards;
}

.alert-popup-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.alert-popup-content {
  flex: 1;
  min-width: 0;
}

.alert-name {
  font-weight: 600;
  color: var(--heading);
  font-size: 14px;
}

.alert-action {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}

.alert-location {
  color: var(--meta);
  font-size: 13px;
  margin-top: 2px;
}

.alert-time {
  color: var(--brand);
  font-size: 12px;
  margin-top: 4px;
}

.alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: var(--meta);
  font-size: 18px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}

.alert-close:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   19. Sticky Mobile CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  display: none;
}

/* --------------------------------------------------------------------------
   20. Comments Section
   -------------------------------------------------------------------------- */
#comments-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.comments-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.comments-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
}

/* Comments header & title */
.comments-header {
  margin-bottom: 20px;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

/* Comment form */
.comment-form {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.comment-form-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 14px 0;
}

.comment-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form-name {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.comment-form-name:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

.comment-form-text {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.comment-form-text:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

.comment-form-submit {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.comment-form-submit:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(43, 158, 175, 0.25);
}

.comment-form-submit:active {
  transform: translateY(0);
}

/* Input error state */
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Comment confirmation message */
.comment-confirm {
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  animation: fadeIn 0.3s ease forwards;
}

/* Comment highlight animation */
@keyframes commentHighlight {
  0% { background: rgba(43, 158, 175, 0.12); }
  100% { background: transparent; }
}

.comment-highlight {
  animation: commentHighlight 2s ease forwards;
  border-radius: 8px;
}

/* Sort indicator */
.comments-sort {
  font-size: 13px;
  color: var(--meta);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comments-sort-label {
  font-weight: 400;
}

.comments-sort-value {
  font-weight: 600;
  color: var(--text);
}

/* Comments list */
.comments-list {
  /* wrapper for all comment items */
}

/* Each comment item */
.comment,
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child,
.comment-item:last-child {
  border-bottom: none;
}

/* Avatar */
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-light);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  user-select: none;
}

/* Comment body */
.comment-body {
  flex: 1;
  min-width: 0;
}

/* Comment header */
.comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
}

.comment-time {
  font-size: 13px;
  color: var(--meta);
}

.comment-date {
  font-size: 13px;
  color: var(--meta);
  margin-left: 8px;
}

/* Comment text */
.comment-text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.comment-text p {
  margin-bottom: 8px;
}

.comment-photo {
  margin-top: 10px;
}

.comment-photo img {
  max-width: 320px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-photo img:hover {
  opacity: 0.85;
}

/* Photo Modal */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.photo-modal-close:hover {
  color: #ccc;
}

.photo-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

/* Comment image */
.comment-image {
  margin-top: 12px;
  max-width: 300px;
  border-radius: 8px;
}

/* Comment actions */
.comment-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  align-items: center;
}

.comment-like-btn,
.comment-reply-toggle {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-like-btn:hover,
.comment-reply-toggle:hover {
  color: var(--brand);
  background: rgba(43, 158, 175, 0.08);
}

.comment-like-btn.liked {
  color: var(--brand);
  font-weight: 600;
}

.like-icon,
.reply-icon {
  font-size: 14px;
  line-height: 1;
}

.like-label {
  /* J'aime text */
}

.like-count {
  margin-left: 2px;
  font-weight: 600;
}

.like-icon,
.reply-icon {
  vertical-align: middle;
  margin-right: 3px;
}

.comment-action {
  color: var(--meta);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 6px;
}

.comment-action:hover {
  color: var(--brand);
}

/* Replies */
.comment-replies {
  margin-top: 8px;
  margin-left: 0;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}

.comment-replies .comment-item {
  padding: 12px 0;
  border-bottom: none;
}

.comment-replies .comment-avatar {
  width: 34px;
  height: 34px;
}

.comment-replies .avatar-initials {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.comment-replies .comment-author {
  font-size: 14px;
}

.comment-replies .comment-text {
  font-size: 14px;
}

.comment-reply {
  padding: 10px 0;
}

/* Load more / Voir plus */
.comments-load-more-wrapper {
  padding: 16px 0 8px;
  text-align: center;
}

.comments-load-more {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comments-load-more:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(43, 158, 175, 0.04);
}

.comments-load-more:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

/* Legacy class compat */
.load-more-comments {
  display: block;
  width: 100%;
  margin: 16px auto 0;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.load-more-comments:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(43, 158, 175, 0.04);
}

.load-more-comments:focus {
  outline: none;
  border-color: var(--brand);
}

/* Comments error */
.comments-error {
  color: var(--meta);
  font-style: italic;
  padding: 20px 0;
}

/* Legacy form compat */
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

.comment-form input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.comment-form input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 158, 175, 0.1);
}

.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.comment-submit-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  background: var(--brand-hover);
}

.comment-sort {
  font-size: 13px;
  color: var(--meta);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #999;
  padding: 40px 0;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}

.footer-logo:hover {
  color: #fff;
}

.footer-tagline {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  margin-top: 8px;
}

.footer-nav-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: #999;
}

.footer-legal {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   22. Dark Mode
   -------------------------------------------------------------------------- */
body.dark-mode {
  background: #1a1a1a;
  color: #ddd;
}

body.dark-mode .site-header {
  background: #222;
  border-color: #333;
}

body.dark-mode .site-logo {
  color: #fff;
}

body.dark-mode .main-nav {
  background: #222;
  border-color: #333;
}

body.dark-mode .main-nav a,
body.dark-mode .nav-links a {
  color: #ccc;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active,
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
  color: var(--brand);
}

body.dark-mode .breadcrumbs {
  color: #888;
}

body.dark-mode .breadcrumbs a {
  color: #888;
}

body.dark-mode .article-header h1 {
  color: #fff;
}

body.dark-mode .article-body h2,
body.dark-mode .article-body h3 {
  color: #eee;
}

body.dark-mode .author-name {
  color: #eee;
}

body.dark-mode .article-body blockquote {
  background: #2a2a2a;
  color: #ccc;
}

body.dark-mode .article-body blockquote cite {
  color: #999;
}

body.dark-mode .info-box {
  background: #1e3a3f;
  color: #ddd;
}

body.dark-mode .info-box h3 {
  color: #eee;
}

body.dark-mode .expert-card {
  border-color: #444;
  background: #222;
}

body.dark-mode .expert-name {
  color: #eee;
}

body.dark-mode .expert-title {
  color: #999;
}

body.dark-mode .quiz-container {
  border-color: #444;
  background: #222;
}

body.dark-mode .quiz-title,
body.dark-mode .quiz-question {
  color: #eee;
}

body.dark-mode .quiz-progress {
  color: #777;
}

body.dark-mode .quiz-option {
  background: #2a2a2a;
  border-color: #444;
  color: #ddd;
}

body.dark-mode .quiz-option:hover {
  border-color: var(--brand);
  background: rgba(43, 158, 175, 0.12);
}

body.dark-mode .quiz-option.selected {
  border-color: var(--brand);
  background: rgba(43, 158, 175, 0.12);
}

body.dark-mode .quiz-result-subtitle {
  color: #888;
}

body.dark-mode .quiz-result-timer {
  color: #888;
}

body.dark-mode .quiz-result-timer span {
  color: #eee;
}

body.dark-mode .quiz-result-trust {
  color: #666;
}

body.dark-mode .quiz-result-title,
body.dark-mode .quiz-result h3,
body.dark-mode .quiz-result h4 {
  color: #2ecc71;
}

body.dark-mode .sidebar-widget {
  background: #222;
  border-color: #333;
}

body.dark-mode .widget-title {
  color: #eee;
}

body.dark-mode .popular-list a {
  color: #ccc;
}

body.dark-mode .newsletter-input {
  background: #333;
  border-color: #555;
  color: #ddd;
}

body.dark-mode .testimonial-card {
  background: #222;
}

body.dark-mode .testimonial-quote {
  color: #ccc;
}

body.dark-mode .testimonial-name {
  color: #eee;
}

body.dark-mode .share-bar {
  background: #1e3a3f;
}

body.dark-mode .share-bar span {
  color: #eee;
}

body.dark-mode .sources-section {
  border-color: #333;
}

body.dark-mode .sources-section li,
body.dark-mode .sources-list li {
  color: #999;
}

body.dark-mode .alert-popup {
  background: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .alert-name {
  color: #eee;
}

body.dark-mode .alert-action {
  color: #ccc;
}

/* Sidebar dark mode fixes */
body.dark-mode .sidebar-popular,
body.dark-mode .sidebar-newsletter,
body.dark-mode .sidebar-social,
body.dark-mode .sidebar-cta-sticky {
  background: #222;
  border-color: #333;
}

body.dark-mode .sidebar-social .social-link {
  border-color: #444;
}

body.dark-mode .sidebar-social .social-link:hover {
  border-color: #555;
}

body.dark-mode .newsletter-form input {
  background: #333;
  border-color: #555;
  color: #ddd;
}

body.dark-mode .newsletter-disclaimer {
  color: #777;
}

body.dark-mode .sidebar-cta-sticky {
  background: #222;
}

body.dark-mode .sidebar-cta-text {
  color: #ccc;
}

/* Testimonial dark mode fixes */
body.dark-mode .testimonial-meta {
  color: #888;
}

body.dark-mode .testimonial-result {
  background: rgba(43, 158, 175, 0.15);
  color: var(--brand);
}

body.dark-mode .testimonial-header {
  color: #ccc;
}

/* Disclaimer dark mode */
body.dark-mode .disclaimer-box {
  background: #2a2a2a;
  border: 1px solid #555;
  color: #bbb;
}

body.dark-mode .disclaimer-box strong {
  color: #eee;
}

/* Promo section dark mode */
body.dark-mode .promo-section {
  background: #222;
  border-color: #444;
}

body.dark-mode .promo-content {
  color: #ccc;
}

/* Comment dark mode fixes */
body.dark-mode .comment,
body.dark-mode .comment-item {
  border-color: #333;
}

body.dark-mode .comments-title {
  color: #eee;
}

body.dark-mode .comment-form {
  background: #2a2a2a;
}

body.dark-mode .comment-form-title {
  color: #eee;
}

body.dark-mode .comment-form-name,
body.dark-mode .comment-form-text {
  background: #333;
  border-color: #555;
  color: #ddd;
}

body.dark-mode .comment-form-name:focus,
body.dark-mode .comment-form-text:focus {
  border-color: var(--brand);
}

body.dark-mode .comment-form-submit {
  background: var(--brand);
  color: #fff;
}

body.dark-mode .comment-author {
  color: #eee;
}

body.dark-mode .comment-time {
  color: #777;
}

body.dark-mode .comment-like-btn,
body.dark-mode .comment-reply-toggle {
  color: #777;
}

body.dark-mode .comment-like-btn:hover,
body.dark-mode .comment-reply-toggle:hover {
  color: var(--brand);
  background: rgba(43, 158, 175, 0.1);
}

body.dark-mode .comment-like-btn.liked {
  color: var(--brand);
}

body.dark-mode .comment-replies {
  border-color: #444;
}

body.dark-mode .comments-sort {
  color: #777;
  border-color: #333;
}

body.dark-mode .comments-sort-value {
  color: #ccc;
}

body.dark-mode .comment-form textarea,
body.dark-mode .comment-form input[type="text"] {
  background: #333;
  border-color: #555;
  color: #ddd;
}

body.dark-mode .comment-sort {
  color: #777;
}

body.dark-mode .comment-confirm {
  background: rgba(39, 174, 96, 0.15);
  color: #2ecc71;
}

body.dark-mode .comments-load-more,
body.dark-mode .load-more-comments {
  border-color: #444;
  color: #ccc;
}

body.dark-mode .comments-load-more:hover,
body.dark-mode .load-more-comments:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(43, 158, 175, 0.08);
}

/* Countdown dark mode */
body.dark-mode .countdown-timer {
  background: #333;
  color: #eee;
}

body.dark-mode .countdown-item {
  color: #eee;
}

body.dark-mode .countdown-item small {
  color: #888;
}

body.dark-mode .countdown-sep {
  color: #888;
}

body.dark-mode .countdown-label {
  color: #888;
}

/* Trust signals dark mode */
body.dark-mode .trust-guarantees {
  color: #999;
}

body.dark-mode .trust-guarantees span {
  color: #ccc;
}

body.dark-mode .trust-rating {
  color: #ddd;
}

/* Icon buttons dark mode */
body.dark-mode .icon-btn {
  color: #ccc;
}

body.dark-mode .icon-btn:hover {
  color: var(--brand);
}

/* Author byline dark mode */
body.dark-mode .author-byline {
  border-color: #333;
}

body.dark-mode .author-title,
body.dark-mode .article-meta {
  color: #888;
}

/* Figure captions dark mode */
body.dark-mode figcaption {
  color: #777;
}

/* Ad label dark mode */
body.dark-mode .ad-label {
  color: #666;
}

/* Eligibility list dark mode */
body.dark-mode .eligibility-list li {
  color: #ccc;
}

body.dark-mode .comment-text {
  color: #ccc;
}

body.dark-mode .author-byline {
  border-color: #333;
}

body.dark-mode .article-meta {
  color: #888;
}

body.dark-mode #comments-section {
  border-color: #333;
}

body.dark-mode .article-image figcaption,
body.dark-mode .article-hero figcaption {
  color: #888;
}

body.dark-mode .icon-btn {
  border-color: #555;
  color: #ccc;
}

body.dark-mode .icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

body.dark-mode .sticky-cta {
  background: #222;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .bg-light,
body.dark-mode .article-body .bg-light {
  background: #222;
}

/* --------------------------------------------------------------------------
   23. Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-meta {
  color: var(--meta);
  font-size: 14px;
}

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   24. Animations & Transitions
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth transitions for interactive elements */
.quiz-option,
.cta-button,
.btn-subscribe,
.newsletter-btn,
.share-btn,
.icon-btn,
.main-nav a,
.nav-links a {
  transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   25. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .network-bar,
  .header-right,
  .main-nav,
  .sidebar,
  .share-bar,
  .quiz-container,
  .quiz-section,
  .alert-popup,
  .sticky-cta,
  #reading-progress-bar,
  .site-footer,
  .breadcrumbs {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .content-grid {
    display: block;
  }

  .article-column {
    max-width: 100%;
  }

  .article-header h1 {
    font-size: 24pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .article-body a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* --------------------------------------------------------------------------
   26. Responsive: Tablet & Small Desktop (max-width: 1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .container {
    padding: 0 20px;
  }

  .content-grid {
    gap: 28px;
  }

  .sidebar {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   27. Responsive: Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .container {
    padding: 0 16px;
  }

  /* Layout */
  .content-grid {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .sidebar--mobile-visible {
    display: block;
    margin-top: 40px;
  }

  /* Top Bar */
  .network-bar {
    height: auto;
    padding: 6px 0;
  }

  .network-bar .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .network-bar a,
  .network-links a {
    font-size: 11px;
    padding: 2px 6px;
  }

  /* Header */
  .site-header .container,
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-logo {
    font-size: 24px;
  }

  .site-tagline {
    font-size: 12px;
  }

  .header-right {
    gap: 8px;
  }

  .btn-subscribe {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* Navigation */
  .main-nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .nav-links a {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Article Header */
  .article-header h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .chapo {
    font-size: 17px;
  }

  .author-byline {
    gap: 10px;
  }

  /* Article Body */
  .article-body h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .article-body h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .article-body blockquote {
    padding: 16px 18px;
    margin: 24px 0;
    font-size: 16px;
  }

  .article-body p {
    margin-bottom: 20px;
  }

  /* Info Box */
  .info-box {
    padding: 20px 20px;
    margin: 24px 0;
    border-radius: 8px;
  }

  .info-box li {
    font-size: 15px;
  }

  /* Expert Card */
  .expert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .expert-photo {
    width: 80px;
    height: 80px;
  }

  /* Quiz */
  .quiz-container {
    padding: 24px 18px;
    margin: 28px 0;
    border-radius: 10px;
  }

  .quiz-title {
    font-size: 19px;
    margin-bottom: 20px;
  }

  .quiz-question {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .quiz-option {
    padding: 12px 16px;
    font-size: 15px;
  }

  .quiz-result h3,
  .quiz-result-title,
  .quiz-result h4 {
    font-size: 19px;
  }

  .quiz-result-icon {
    font-size: 44px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .countdown-timer {
    font-size: 20px;
  }

  /* Trust Signals */
  .trust-signals {
    font-size: 13px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0;
  }

  .testimonial-card {
    padding: 20px;
  }

  /* Share Bar */
  .share-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }

  .share-buttons {
    justify-content: center;
  }

  /* Sources */
  .sources-section {
    margin-top: 28px;
  }

  /* Comments */
  .comment,
  .comment-item {
    gap: 12px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
  }

  .avatar-initials {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .comment-form {
    padding: 16px 18px;
  }

  .comment-form-name {
    max-width: 100%;
  }

  .comment-replies {
    padding-left: 12px;
  }

  .comment-replies .comment-avatar {
    width: 30px;
    height: 30px;
  }

  .comment-replies .avatar-initials {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .comment-image {
    max-width: 100%;
  }

  .comments-title {
    font-size: 18px;
  }

  /* Alert popup */
  .alert-popup {
    bottom: 70px;
    left: 10px;
    right: 10px;
    max-width: none;
  }

  /* Sticky Mobile CTA */
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9997;
    align-items: center;
    justify-content: center;
  }

  .sticky-cta .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Footer */
  .site-footer {
    padding: 28px 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   28. Responsive: Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .article-header h1 {
    font-size: 22px;
  }

  .chapo {
    font-size: 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .site-tagline {
    display: none;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .article-body blockquote {
    padding: 14px 16px;
    font-size: 15px;
  }

  .info-box {
    padding: 16px;
    border-radius: 6px;
  }

  .quiz-container {
    padding: 18px 14px;
  }

  .quiz-title {
    font-size: 17px;
  }

  .quiz-question {
    font-size: 15px;
  }

  .quiz-option {
    padding: 11px 14px;
    font-size: 14px;
  }

  .quiz-result-icon {
    font-size: 40px;
  }

  .quiz-result-title,
  .quiz-result h3,
  .quiz-result h4 {
    font-size: 17px;
  }

  .cta-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .countdown-timer {
    font-size: 20px;
    padding: 6px 14px;
  }

  .expert-card {
    padding: 16px;
  }

  .expert-photo {
    width: 64px;
    height: 64px;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .main-nav a,
  .nav-links a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .comments-section h2 {
    font-size: 17px;
  }

  .comments-title {
    font-size: 17px;
  }

  .comment-text {
    font-size: 14px;
  }

  .comment-form {
    padding: 14px 16px;
  }

  .comment-form-title {
    font-size: 15px;
  }

  .comment-author {
    font-size: 14px;
  }

  .network-bar a,
  .network-links a {
    font-size: 10px;
    padding: 2px 4px;
  }
}

/* --------------------------------------------------------------------------
   28b. Missing HTML Classes
   -------------------------------------------------------------------------- */

/* Hidden inputs */
.keitaro-hidden-input,
.product-hidden-input {
  display: none;
}

/* Main content wrapper */
.main-content {
  padding: 0;
}

/* Article header wrapper */
.article-header {
  margin-bottom: 24px;
}

/* Breadcrumb separator */
.breadcrumbs .sep {
  color: var(--meta);
  margin: 0 4px;
}

/* CTA inline wrapper */
.cta-inline {
  text-align: center;
  margin: 32px 0;
}

.cta-link {
  text-decoration: none;
}

/* Disclaimer box */
.disclaimer-box {
  background: #fff9e6;
  border: 1px solid #f0e0a0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.disclaimer-box p {
  margin: 0;
}

.disclaimer-box strong {
  color: var(--heading);
}

/* Eligibility list */
.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eligibility-list li {
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.6;
}

.eligibility-list li::before {
  margin-right: 8px;
  font-weight: 700;
}

.eligibility-list li.eligible::before {
  content: "\2713";
  color: var(--success);
}

.eligibility-list li.not-eligible::before {
  content: "\2717";
  color: #e74c3c;
}

/* Promo section */
.promo-section {
  background: var(--brand-light);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}

.promo-content {
  margin-top: 12px;
}

.promo-details {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}

.promo-details li {
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Quiz section wrapper - consolidated above in section 14 */

/* Testimonials section */
.testimonials-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.testimonials-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
}

/* Testimonial result badge */
.testimonial-result {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

/* Share label */
.share-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  white-space: nowrap;
}

/* Comments section wrapper - consolidated above in section 20 */

/* Social links in sidebar */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.9;
  color: #fff;
}

.social-link--facebook { background: #1877F2; }
.social-link--instagram { background: #E4405F; }
.social-link--x { background: #000; }
.social-link--youtube { background: #FF0000; }

.social-link span {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.9;
}

/* Sidebar CTA sticky */
.sidebar-cta-sticky {
  text-align: center;
}

.sidebar-cta-content {
  padding: 8px 0;
}

.sidebar-cta-content img {
  max-width: 160px;
  margin: 0 auto 12px;
  display: block;
}

.sidebar-cta-text {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--heading);
}

/* Newsletter form & disclaimer */
.newsletter-form {
  margin-top: 12px;
}

.newsletter-disclaimer {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--meta);
  line-height: 1.4;
}

/* Publish date span */
.publish-date {
  /* inherits parent styles */
}

/* Season span */
.season {
  /* inherits parent styles */
}

/* Expert quote as blockquote */
blockquote.expert-quote {
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--bg-light);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

blockquote.expert-quote p {
  margin-bottom: 12px;
}

blockquote.expert-quote p:last-of-type {
  margin-bottom: 0;
}

blockquote.expert-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Share button color variants */
.share-btn--facebook:hover { background: #1877F2; }
.share-btn--x:hover { background: #000; }
.share-btn--whatsapp:hover { background: #25D366; }
.share-btn--pinterest:hover { background: #E60023; }

/* Dark mode additions for new elements */

body.dark-mode .promo-section {
  background: #1e3a3f;
}

body.dark-mode .testimonials-section {
  border-color: #333;
}

body.dark-mode .comments-section {
  border-color: #444;
}

body.dark-mode .testimonial-result {
  background: #1e3a3f;
}

body.dark-mode .social-link {
  opacity: 0.9;
}

body.dark-mode .sidebar-cta-text {
  color: #eee;
}

body.dark-mode .payment-badge {
  background: #333;
  border-color: #555;
  color: #ccc;
}

body.dark-mode blockquote.expert-quote {
  background: #2a2a2a;
  color: #ccc;
}

body.dark-mode blockquote.expert-quote cite {
  color: #999;
}

/* Dark mode toggle icon visibility (controlled by JS) */
.icon-sun,
.icon-moon {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   29. Focus Visible (Accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.quiz-option:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   30. Selection Highlight
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(43, 158, 175, 0.2);
  color: inherit;
}

::-moz-selection {
  background: rgba(43, 158, 175, 0.2);
  color: inherit;
}

/* --------------------------------------------------------------------------
   31. Scrollbar Styling (WebKit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

body.dark-mode::-webkit-scrollbar-track {
  background: #222;
}

body.dark-mode::-webkit-scrollbar-thumb {
  background: #555;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
  background: #777;
}
