/* =============================================
   news-style.css (Fully Responsive Version)
   Place at: hello-elementor/assets/css/news-style.css
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-950: #060d1f;
  --navy-900: #0a1628;
  --navy-800: #0d1e3a;
  --navy-700: #112649;
  --navy-600: #1a3562;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #00c8e8;
  --cyan-300: #67e8f9;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --amber-500: #f59e0b;
  --teal-500: #14b8a6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.5;
  min-width: 320px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--gray-900);
  white-space: nowrap; flex-shrink: 0;
}

.logo-badge {
  width: 32px; height: 32px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }

.nav-links li a {
  font-size: 13.5px; font-weight: 500; color: var(--gray-600);
  padding: 6px 10px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links li a:hover { color: var(--navy-900); background: var(--gray-100); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-icon {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: background 0.2s, border-color 0.2s;
}
.btn-icon:hover { background: var(--gray-100); border-color: var(--gray-300); }

.btn-primary {
  background: var(--cyan-400); color: var(--navy-900);
  font-weight: 700; font-size: 13px; padding: 10px 16px;
  border-radius: 8px; white-space: nowrap;
  min-height: 40px; display: inline-flex; align-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,200,232,0.35);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 680px;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 40%, #0c2a5e 70%, #0a1e4a 100%);
  display: flex; align-items: center; overflow: hidden; padding-top: 60px;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(0,200,232,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}

.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(103,232,249,0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,200,232,0.08) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(20px); }
}

#particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 80px; width: 100%;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,232,0.12); border: 1px solid rgba(0,200,232,0.3);
  color: rgba(255,255,255,0.95); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
  letter-spacing: 0.5px; text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}
.live-dot {
  width: 7px; height: 7px; background: var(--cyan-400); border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,232,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(0,200,232,0); }
}

.hero-title {
  font-size: clamp(28px, 5vw, 68px); font-weight: 800;
  color: var(--white); line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 20px; display: flex; flex-direction: column; gap: 2px;
  animation: fadeInTitle 0.8s ease-out 0.1s both;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-accent {
  color: var(--cyan-400); display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}

.sparkle-icon {
  flex-shrink: 0;
  animation: sparkle 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0,200,232,0.6));
}
@keyframes sparkle {
  0%, 100% { transform: rotate(-5deg) scale(0.9); opacity: 0.7; }
  50%      { transform: rotate(15deg) scale(1.15); opacity: 1; }
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.7); line-height: 1.7;
  max-width: 580px; margin-bottom: 32px; font-weight: 400;
  animation: fadeInTitle 0.8s ease-out 0.2s both;
}

.hero-ctas {
  display: flex; align-items: center; gap: 12px; margin-bottom: 56px; flex-wrap: wrap;
  animation: fadeInTitle 0.8s ease-out 0.3s both;
}

.btn-hero-primary {
  background: var(--cyan-400); color: var(--navy-900);
  font-weight: 700; font-size: 14px; padding: 14px 32px; border-radius: 10px;
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.btn-hero-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  opacity: 0; transition: opacity 0.3s;
}
.btn-hero-primary:hover {
  transform: translateY(-3px); background: #00d4f0;
  box-shadow: 0 12px 32px rgba(0,200,232,0.5);
}
.btn-hero-primary:hover::before { opacity: 1; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(0,200,232,0.4);
  color: rgba(255,255,255,0.95); font-weight: 600; font-size: 14px;
  padding: 14px 32px; border-radius: 10px; min-height: 48px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.18); border-color: rgba(0,200,232,0.7);
  box-shadow: 0 8px 24px rgba(0,200,232,0.25); transform: translateY(-2px);
}

.hero-stats {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  animation: fadeInTitle 0.8s ease-out 0.4s both;
  background: rgba(0,200,232,0.06); border: 1px solid rgba(0,200,232,0.12);
  border-radius: 12px; padding: 24px 32px; width: fit-content;
  max-width: 100%;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--cyan-400); line-height: 1; letter-spacing: -0.5px; }
.stat-label  { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* ===== STORIES SECTION ===== */
.stories-section { padding: 64px 0; background: var(--white); }
.section-header { margin-bottom: 32px; }

.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow-line { display: block; width: 28px; height: 2px; background: var(--cyan-400); flex-shrink: 0; }

.section-title-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.section-title-row h2 {
  font-size: clamp(22px, 3vw, 34px); font-weight: 800;
  color: var(--gray-900); letter-spacing: -0.5px; line-height: 1.2;
}
.accent-text { color: var(--cyan-400); }
.browse-link {
  font-size: 13px; font-weight: 600; color: var(--blue-500) !important;
  white-space: nowrap; transition: color 0.2s;
}
.browse-link:hover { color: var(--cyan-400) !important; }

.stories-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}

/* Featured article */
.featured-article {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--gray-200); margin-bottom: 24px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
}
.featured-article:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.featured-article.visible { opacity: 1; transform: translateY(0); }

.featured-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-article:hover .featured-image-wrap img { transform: scale(1.03); }

.article-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase; z-index: 1;
}
.tag-featured    { background: rgba(0,200,232,0.9); color: var(--navy-900); }
.tag-treatments  { background: rgba(59,130,246,0.85); color: white; }
.tag-society     { background: rgba(34,197,94,0.85); color: white; }
.tag-breakthrough{ background: rgba(239,68,68,0.85); color: white; }
.tag-nutrition   { background: rgba(245,158,11,0.85); color: white; }
.tag-global      { background: rgba(99,102,241,0.85); color: white; }
.tag-pediatrics  { background: rgba(236,72,153,0.85); color: white; }

.featured-body {
  padding: 28px; display: flex; flex-direction: column;
  justify-content: center; background: var(--white);
}

.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.article-source { font-size: 11px; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.3px; }
.article-time   { font-size: 11px; color: var(--gray-400); }

.featured-body h3 {
  font-size: clamp(16px, 2vw, 20px); font-weight: 800; color: var(--gray-900) !important;
  line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.3px;
  word-wrap: break-word;
}
.article-excerpt { font-size: 13.5px; color: var(--gray-500) !important; line-height: 1.65; margin-bottom: 18px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--blue-500) !important; transition: color 0.2s; }
.read-more:hover { color: var(--cyan-400) !important; }

/* Article Grid rows */
.articles-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.article-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-200); background: var(--white);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); }
.article-card.visible { opacity: 1; transform: translateY(0); }

.article-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-image img { transform: scale(1.05); }

.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h4 { font-size: 14px; font-weight: 700; color: var(--gray-900) !important; line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.2px; }
.article-card-body p  { font-size: 12.5px; color: var(--gray-500) !important; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.learn-more { font-size: 12px; font-weight: 600; color: var(--blue-500) !important; transition: color 0.2s; margin-top: auto; }
.learn-more:hover { color: var(--cyan-400) !important; }

/* Sidebar */
.stories-right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }

.wellness-card {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: 14px; padding: 28px 24px; color: var(--white);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wellness-card.visible { opacity: 1; transform: translateY(0); }

.wellness-badge {
  display: inline-block; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 16px;
}
.wellness-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.3px; color: #ffffff !important; }
.wellness-card p  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }

.btn-wellness {
  display: inline-flex; align-items: center;
  background: var(--cyan-400); color: var(--navy-900);
  font-size: 13px; font-weight: 700; padding: 10px 18px;
  border-radius: 8px; min-height: 40px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-wellness:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,200,232,0.35); }

.trials-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.trials-card.visible { opacity: 1; transform: translateY(0); }

.trials-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--gray-100); }
.trials-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.trials-title { font-size: 15px; font-weight: 700; color: var(--gray-900); flex: 1; min-width: 0; }
.active-badge { font-size: 10px; font-weight: 700; color: var(--green-500); letter-spacing: 0.3px; flex-shrink: 0; }
.trials-desc  { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

.trials-list { padding: 0 20px; }
.trial-item  { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.trial-item:last-child { border-bottom: none; }

.trial-num {
  width: 22px; height: 22px; background: var(--blue-500); color: var(--white);
  font-size: 10px; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.trial-info { min-width: 0; flex: 1; }
.trial-info strong { display: block; font-size: 12px; font-weight: 600; color: var(--gray-800) !important; line-height: 1.4; margin-bottom: 4px; }
.trial-info p      { font-size: 11px; color: var(--gray-400) !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.trials-footer {
  padding: 14px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.trials-source { font-size: 10.5px; color: var(--gray-400); }
.search-trials { font-size: 11px; font-weight: 600; color: var(--blue-500) !important; transition: color 0.2s; }
.search-trials:hover { color: var(--cyan-400) !important; }

/* ===== NUTRITION SECTION ===== */
.nutrition-section { padding: 0 0 64px; background: var(--white); }

.nutrition-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 50%, #dbeafe 100%);
  border: none;
  border-radius: 16px; padding: 32px;
}

.nutrition-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.nutrition-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nutrition-icon { width: 44px; height: 44px; background: #ffffff; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nutrition-title-row h2 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 800; color: #1e3a5f; letter-spacing: -0.3px; line-height: 1.2; }
.nutrition-subtitle { font-size: 13px; color: #3b6cb7 !important; margin-top: 3px; }

.view-all-link {
  font-size: 13px; font-weight: 600; color: var(--blue-500) !important;
  white-space: nowrap; transition: color 0.2s;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.view-all-link:hover { color: var(--cyan-400) !important; }

.nutrition-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
  counter-reset: nutrition-counter;
}
.nutrition-col  { display: flex; flex-direction: column; gap: 0; }
.nutrition-item {
  counter-increment: nutrition-counter;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}
.nutrition-item:last-child { border-bottom: none; }

.nutrition-dot { display: none; }

.nutrition-item::before {
  content: counter(nutrition-counter, decimal-leading-zero);
  font-size: 13px; font-weight: 700;
  color: var(--blue-500); flex-shrink: 0;
  min-width: 24px; margin-top: 2px; opacity: 0.7;
}

.nutrition-item p { font-size: 13px; line-height: 1.5; font-weight: 500; word-wrap: break-word; min-width: 0; flex: 1; }
.nutrition-item p,
.nutrition-item p a { color: #1e3a5f !important; }
.nutrition-item p a:hover { color: var(--blue-500) !important; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 56px 0 0; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }

.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo span { font-size: 15px; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.55); max-width: 280px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.14); color: var(--white); }

.footer-links-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: 0.2px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; display: inline-block; padding: 4px 0; }
.footer-links-col ul li a:hover { color: var(--cyan-400); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* ===== LARGE DESKTOP (max 1200px) ===== */
@media (max-width: 1200px) {
  .nav-container { gap: 20px; }
  .nav-links li a { padding: 6px 8px; }
}

/* ===== TABLET LANDSCAPE (max 1024px) ===== */
@media (max-width: 1024px) {
  .stories-grid { grid-template-columns: 1fr 300px; gap: 20px; }
  .hero-stats { gap: 24px; padding: 20px 24px; }
  .featured-body { padding: 22px; }
  .nav-links { gap: 0; }
  .nav-links li a { font-size: 12.5px; padding: 6px 8px; }
  .footer-grid { gap: 32px; }
}

/* ===== TABLET (max 900px) — Hide nav links, show hamburger ===== */
@media (max-width: 900px) {
  /* Navigation switches to mobile mode here */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
  }
  .hamburger { display: flex; }

  /* Stories grid stacks */
  .stories-grid { grid-template-columns: 1fr; gap: 32px; }

  .stories-right {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .featured-article { grid-template-columns: 1fr; }
  .featured-image-wrap { aspect-ratio: 16/9; }

  .featured-body { padding: 20px; }
  .featured-body h3 { font-size: 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Nutrition: 2 columns */
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }

  /* Hero adjustments */
  .hero { min-height: 600px; }
  .hero-content { padding: 56px 24px 64px; }
}

/* ===== MOBILE LARGE (max 720px) ===== */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; gap: 12px; }
  .nav-actions { gap: 6px; }
  .btn-primary { padding: 8px 14px; font-size: 12.5px; }

  /* Hero */
  .hero { min-height: auto; padding-top: 60px; }
  .hero-content { padding: 48px 20px 56px; }
  .live-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 20px; }
  .hero-title { letter-spacing: -0.5px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    padding: 14px 24px;
  }
  .hero-stats {
    gap: 16px;
    padding: 16px 20px;
    width: 100%;
    justify-content: space-between;
  }
  .stat-divider { height: 32px; }

  /* Stories */
  .stories-section { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .articles-row { grid-template-columns: 1fr; gap: 14px; }
  .stories-right { grid-template-columns: 1fr; }

  /* Section title */
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Nutrition */
  .nutrition-section { padding: 0 0 40px; }
  .nutrition-grid { grid-template-columns: 1fr; gap: 0; }
  .nutrition-box { padding: 24px 18px; }
  .nutrition-header { margin-bottom: 20px; }
  .nutrition-icon { width: 40px; height: 40px; }
  .view-all-link { align-items: flex-start; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
}

/* ===== MOBILE (max 600px) ===== */
@media (max-width: 600px) {
  .stories-right { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-container { padding: 0 16px; gap: 8px; }

  .nav-logo { font-size: 14px; gap: 8px; }
  .logo-badge { width: 28px; height: 28px; font-size: 10px; }

  /* Hero */
  .hero-content { padding: 40px 16px 48px; }
  .hero-title { letter-spacing: -0.3px; }
  .hero-subtitle { font-size: 13.5px; line-height: 1.65; }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
    padding: 18px 20px;
  }
  .stat-divider { display: none; }
  .stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat:last-child { border-bottom: none; }
  .stat-number { font-size: 22px; }

  /* Featured */
  .featured-body { padding: 18px; }
  .featured-body h3 { font-size: 16px; }
  .article-excerpt { font-size: 13px; }

  /* Cards */
  .article-card-body { padding: 14px; }
  .article-card-body h4 { font-size: 13.5px; }
  .article-card-body p { font-size: 12px; }

  /* Wellness/trials */
  .wellness-card { padding: 22px 18px; }
  .wellness-card h3 { font-size: 17px; }
  .trials-header { padding: 18px 16px 14px; }
  .trials-list { padding: 0 16px; }
  .trials-footer { padding: 12px 16px; }

  /* Nutrition */
  .nutrition-box { padding: 20px 14px; }
  .nutrition-title-row { gap: 10px; }
  .nutrition-title-row h2 { font-size: 17px; }
  .nutrition-subtitle { font-size: 12px; }
  .nutrition-item { padding: 10px 0; gap: 10px; }
  .nutrition-item p { font-size: 12.5px; }

  /* Footer */
  .footer { padding: 36px 0 0; }
  .footer-brand p { font-size: 12.5px; }
  .footer-links-col h4 { font-size: 12.5px; margin-bottom: 12px; }
  .footer-links-col ul li a { font-size: 12.5px; }
}

/* ===== EXTRA SMALL (max 360px) ===== */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .nav-container { padding: 0 12px; }
  .nav-actions .btn-icon { display: none; }

  .hero-content { padding: 36px 14px 44px; }
  .live-badge { font-size: 10px; padding: 5px 12px; }
  .hero-title { font-size: 26px; }

  .btn-hero-primary,
  .btn-hero-secondary { font-size: 13px; padding: 12px 20px; }

  .featured-body { padding: 14px; }
  .article-card-body { padding: 12px; }
  .nutrition-box { padding: 16px 12px; }
}

/* ===== LANDSCAPE PHONE (short height) ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-content { padding-top: 32px; padding-bottom: 32px; }
  .hero-ctas { margin-bottom: 24px; }
}

/* ===== ACCESSIBILITY: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero::after { animation: none; }
  .live-badge { animation: none; }
  .live-dot { animation: none; }
  .sparkle-icon { animation: none; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar, .hamburger, .hero::before, .hero::after, #particles,
  .footer-social, .btn-primary, .btn-hero-primary, .btn-hero-secondary,
  .btn-wellness { display: none !important; }
  .hero { background: white; color: black; min-height: auto; }
  .hero-title, .hero-subtitle { color: black !important; }
  body { background: white; color: black; }
}


/* ===== NATIONAL SIDEBAR ===== */
.sidebar-banner {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-links-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  padding: 8px 0;
}

.sidebar-link-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-link-item:last-child {
  border-bottom: none;
}

.sidebar-link-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500) !important;
  transition: color 0.2s;
  display: block;
}

.sidebar-link-item a:hover {
  color: var(--cyan-400) !important;
}