/* =====================================================
   MEDICAL ARTICLES - ENHANCED STYLESHEET v2.0
   Mobile-First | Performance-Optimized | High-Converting
   Framework: Voyager V14.0
   Author: Dr. Papadimitriou
   Last Updated: January 2025
   ===================================================== */

/* ========== 1. CRITICAL CSS VARIABLES (Mobile-First) ========== */
:root {
  /* WCAG AA Compliant Healthcare Colors */
  --primary-blue: #23408E;      /* 8.1:1 contrast - Trust */
  --primary-green: #2E8B57;     /* 4.5:1 contrast - Healing */
  --accent-red: #DC2626;        /* 5.2:1 contrast - CTAs */
  --text-primary: #1F2937;      /* 13.6:1 contrast */
  --text-secondary: #4B5563;    /* 7.3:1 contrast */
  
  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-section: #F3F4F6;
  
  /* Fluid Typography Scale (Mobile-First) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.38vw, 1rem);
  --text-base: clamp(1rem, 0.93rem + 0.33vw, 1.19rem);
  --text-lg: clamp(1.125rem, 1rem + 0.63vw, 1.5rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.875rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.88vw, 3rem);
  
  /* Optimized Spacing */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  
  /* Performance-Optimized Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  
  /* Container Width */
  --container-max: 75rem; /* 1200px */
  --content-max: 65ch;    /* Optimal reading length */
}

/* ========== 2. MOBILE-FIRST RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: var(--text-base);
  line-height: 1.75; /* Improved from 1.7 for better readability */
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========== 3. TYPOGRAPHY (Mobile-First) ========== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  margin: 0 0 var(--space-sm);
  max-width: var(--content-max);
}

/* Medical Term Enhancement */
.medical-term {
  position: relative;
  border-bottom: 1px dotted var(--primary-blue);
  cursor: help;
  text-decoration: none;
}

/* ========== 4. HIGH-CONVERTING CTA BUTTONS ========== */
.cta-button {
  display: inline-block;
  padding: 16px 32px;
  min-height: 56px; /* Touch-optimized */
  font-size: 18px; /* Prevents iOS zoom */
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--bg-white);
  background-color: var(--accent-red); /* Red converts better in healthcare */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width var(--transition-base), height var(--transition-base);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:active {
  transform: translateY(0);
}

/* Phone CTA Specific */
.cta-phone {
  background-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.25);
}

.cta-phone:hover {
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.35);
}

/* WhatsApp CTA */
.cta-whatsapp {
  background-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ========== 5. CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.medical-article {
  container-type: inline-size;
  container-name: article;
}

/* Content Width Control */
.content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ========== 6. MOBILE-FIRST SECTIONS ========== */
section {
  padding: var(--space-xl) 0;
}

/* Intro Section with Featured Image */
.intro {
  padding-top: var(--space-lg);
}

.intro-content {
  display: flow-root; /* Modern clearfix */
}

.intro-content::after {
  content: "";
  display: table;
  clear: both;
}

.featured-image {
  margin: 0 0 var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
}

@media (min-width: 48rem) {
  .featured-image {
    float: right;
    margin: 0 0 var(--space-md) var(--space-md);
    max-width: 300px;
  }
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 7. PERFORMANCE-OPTIMIZED CARDS ========== */
.info-box,
.warning-box,
.key-point {
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: 8px;
  position: relative;
  transform: translateZ(0); /* GPU acceleration */
}

.info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-blue);
}

.warning-box {
  background: #FEF2F2;
  border-left: 4px solid var(--accent-red);
}

.key-point {
  background: #F0FDF4;
  border-left: 4px solid var(--primary-green);
}

/* ========== 8. ACCESSIBLE FAQ SECTION ========== */
.faq-item {
  margin-bottom: var(--space-sm);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-toggle {
  font-size: var(--text-xl);
  color: var(--primary-green);
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-md) var(--space-md);
}

/* ========== 9. TESTIMONIAL OPTIMIZATION ========== */
.testimonial-card {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  font-size: 3rem;
  color: var(--primary-green);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-rating {
  color: #FBBF24;
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--primary-green);
  margin-top: var(--space-sm);
}

/* ========== 10. CLINICAL EXAMPLES ========== */
.example-case {
  background: var(--bg-section);
  padding: var(--space-lg);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.example-case h3 {
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

.example-case strong {
  color: var(--primary-green);
}

/* ========== 11. RESPONSIVE BREAKPOINTS ========== */
/* Mobile-specific CTA adjustments */
@media (max-width: 47.9375rem) {
  .cta-button {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* Tablet (768px) */
@media (min-width: 48rem) {
  .cta-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  
  .cta-button {
    width: auto;
  }
}

/* Desktop (1024px) */
@media (min-width: 64rem) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .example-case {
    padding: var(--space-xl);
  }
}

/* Large Desktop (1200px) */
@media (min-width: 75rem) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== 12. PERFORMANCE OPTIMIZATIONS ========== */
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #002B5C;
    --primary-green: #1F5F3F;
    --accent-red: #B91C1C;
    --text-primary: #000000;
    --text-secondary: #374151;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-white: #111827;
    --bg-light: #1F2937;
    --bg-section: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --primary-blue: #60A5FA;
    --primary-green: #34D399;
  }
}

/* ========== 13. CRITICAL RENDERING PATH ========== */
/* Above-the-fold optimization */
.intro,
.cta-button {
  contain: layout style;
}

/* Font loading optimization */
@font-face {
  font-display: swap;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== 14. ACCESSIBILITY ENHANCEMENTS ========== */
/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green);
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-blue);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
  left: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 16. UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }

/* ========== 17. MISSING SELECTORS FROM ORIGINAL ========== */
/* Trust bar */
.trust-bar {
  background: var(--bg-light);
  padding: var(--space-sm) 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.trust-items {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--text-sm);
}

/* CTA Group */
.cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* CTA Single */
.cta-single {
  text-align: center;
  margin: var(--space-lg) 0;
}

.cta-single p {
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  max-width: none;
}

/* CTA Secondary */
.cta-secondary {
  background: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(35, 64, 142, 0.25);
}

.cta-secondary:hover {
  box-shadow: 0 6px 20px rgba(35, 64, 142, 0.35);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-green);
  z-index: 1000;
  transition: width 300ms ease;
}

/* Table of Contents */
.toc-sidebar {
  position: sticky;
  top: var(--space-lg);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.toc-item {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.toc-item:hover,
.toc-item.active {
  color: var(--primary-green);
}

/* Quick Facts Box */
.quick-facts {
  background: var(--bg-section);
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
}

.quick-facts h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.quick-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-facts li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Definition Box */
.definition-box {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
}

.definition-box dt {
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-sm);
}

/* Coverage Badge */
.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--primary-green);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 24px;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Evidence Section */
.evidence-meter {
  background: #E5E7EB;
  border-radius: 10px;
  height: 20px;
  margin: var(--space-md) 0;
  overflow: hidden;
  position: relative;
}

.evidence-fill {
  background: var(--primary-green);
  height: 100%;
  width: 0;
  transition: width 1.5s ease-out;
}

/* DA Widget Wrapper */
@media (min-width: 75rem) {
  .da-widget-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
  }
}

@media (max-width: 74.9375rem) {
  .da-widget-wrapper {
    margin: var(--space-lg) 0;
    position: relative;
  }
}

/* Process Timeline */
.process-timeline {
  margin: var(--space-lg) 0;
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: #E5E7EB;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item h4 {
  flex: 0 0 auto;
  background: var(--primary-green);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  z-index: 1;
}

/* Process Steps (alternative layout) */
.process-steps {
  margin: var(--space-lg) 0;
}

.step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.step-number {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}

/* Speakable Content */
.speakable-content {
  position: relative;
}

/* Study References */
.study-references {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: 5px;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Note Box */
.note-box {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-lg);
}

.note-box strong {
  color: #D97706;
}

/* Case Note */
.case-note {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid #E5E7EB;
}

/* ========== 18. CRITICAL MISSING COMPONENTS ========== */
/* Hero Section (αν χρησιμοποιείται ακόμα) */
.hero-section {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35,64,142,0.9) 0%, rgba(46,139,87,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: var(--space-lg);
  width: 100%;
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.trust-indicators span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255,255,255,0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 5px;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}

.final-cta h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

.final-trust-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-lg);
}

.final-trust-points p {
  margin: 0;
  opacity: 0.95;
}

/* Review Aggregate Box */
.review-aggregate-box {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
}

.rating-stars {
  font-size: 1.5rem;
  color: #FBBF24;
}

/* Doctor Section */
.doctor-section {
  background: var(--bg-section);
  padding: var(--space-xl) 0;
}

.doctor-content h3 {
  color: var(--primary-blue);
  margin-bottom: var(--space-sm);
}

.doctor-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.doctor-philosophy {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-primary);
  margin-top: var(--space-md);
  font-style: italic;
}

/* Location Section */
.location-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
}

.location-info h3 {
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

/* Transport Info */
.transport-info {
  margin-top: var(--space-lg);
}

.transport-info h3 {
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

/* Understanding Section */
.understanding h2,
.approach h2,
.evidence h2 {
  color: var(--primary-blue);
  margin-bottom: var(--space-lg);
}

/* ========== 19. ANIMATIONS (Performance-Optimized) ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations with Intersection Observer (JS required) */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Loading State */
.loading {
  position: relative;
  min-height: 200px;
}

.loading::after {
  content: "Φόρτωση...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-secondary);
}

/* ========== 20. FORMS (Mobile-Optimized) ========== */
.medical-form input,
.medical-form textarea,
.medical-form select {
  width: 100%;
  padding: 16px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-white);
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.medical-form input:focus,
.medical-form textarea:focus,
.medical-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(35, 64, 142, 0.1);
}

.medical-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
}

/* Blockquotes */
blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--primary-green);
  background: var(--bg-light);
  font-style: italic;
  quotes: """ """ "'" "'";
}

blockquote::before {
  content: open-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
  color: var(--primary-green);
  opacity: 0.5;
}

/* Highlight Class */
.highlight {
  background: #FEF3C7;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Green Phrase (for emphasized text) */
.green-phrase {
  font-size: var(--text-lg);
  color: var(--primary-green);
  font-weight: 600;
  line-height: 1.4;
}

/* ========== 21. TABLES (Responsive) ========== */
table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-collapse: collapse;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: var(--text-sm);
}

th, td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--primary-blue);
}

tr:hover {
  background: var(--bg-light);
}

/* Responsive Tables */
@media (max-width: 48rem) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ========== 22. BADGES & TAGS ========== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  border-radius: 9999px;
  background: var(--primary-blue);
  color: white;
}

.badge-green {
  background: var(--primary-green);
}

.badge-red {
  background: var(--accent-red);
}

/* Excerpt styling */
.excerpt {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* Safety note */
.safety-note {
  background: #F0FDF4;
  border: 1px solid var(--primary-green);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
}

.safety-note h4 {
  color: var(--primary-green);
  margin-bottom: var(--space-sm);
}

/* Philosophy Box */
.philosophy-box {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
  text-align: center;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Testimonials Intro */
.testimonials-intro {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Study Summary */
.study-summary {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--primary-blue);
}

.study-summary h4 {
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
}

.study-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* Evidence Intro */
.evidence-intro {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

/* Evidence Disclaimer */
.evidence-disclaimer {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  text-align: center;
}

/* Study Stats */
.study-stats {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

/* Testimonials Note */
.testimonials-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid #E5E7EB;
}

.testimonials-note a {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Featured Testimonial (Direct Match) */
.testimonial-featured {
  background: linear-gradient(135deg, #F0FDF4 0%, #F9FAFB 100%);
  border: 2px solid var(--primary-green);
  padding: var(--space-xl);
  border-radius: 12px;
  margin-bottom: var(--space-xl);
  position: relative;
}

.testimonial-featured h3 {
  color: var(--primary-green);
  margin-bottom: var(--space-md);
}

.testimonial-featured blockquote {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.testimonial-featured cite {
  display: block;
  text-align: right;
  margin-top: var(--space-md);
  font-style: normal;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Review Sources */
.review-sources {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.review-sources div {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.evidence-badge {
  background: var(--primary-green);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 24px;
  font-weight: 600;
  font-size: var(--text-sm);
}