/* SEO Pages Styles - Nutrivio Programmatic SEO */

/* Base Variables */
:root {
  --seo-primary: #10b981;
  --seo-primary-dark: #059669;
  --seo-secondary: #6366f1;
  --seo-text: #1f2937;
  --seo-text-muted: #6b7280;
  --seo-bg: #ffffff;
  --seo-bg-alt: #f9fafb;
  --seo-border: #e5e7eb;
  --seo-success: #10b981;
  --seo-warning: #f59e0b;
  --seo-error: #ef4444;
  --seo-radius: 12px;
  --seo-radius-sm: 8px;
  --seo-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --seo-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* SEO Page Layout */
.seo-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 1rem 0 1rem; /* Add top padding to account for fixed header */
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--seo-text-muted);
}

.breadcrumbs a {
  color: var(--seo-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--seo-text-muted);
}

/* Hero Section */
.seo-hero {
  background: linear-gradient(135deg, var(--seo-bg-alt) 0%, var(--seo-bg) 100%);
  border-radius: var(--seo-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--seo-border);
}

.category-badge {
  display: inline-block;
  background: var(--seo-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.seo-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--seo-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--seo-text-muted);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-subtitle strong {
  color: var(--seo-primary);
  font-weight: 700;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat {
  background: white;
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--seo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 320px;
  }
}

/* Main Content Sections */
.content-section {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--seo-primary);
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--seo-text);
}

/* Expert Intro */
.expert-intro {
  background: var(--seo-bg-alt);
  border-left: 4px solid var(--seo-primary);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--seo-radius-sm) var(--seo-radius-sm) 0;
  font-style: italic;
  color: var(--seo-text);
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reason-card {
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--seo-border);
}

.reason-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.75rem;
}

.reason-card p {
  color: var(--seo-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.reason-card .source {
  display: block;
  font-size: 0.75rem;
  color: var(--seo-primary);
  font-style: italic;
}

/* Nutrition Table */
.nutrition-table-container {
  overflow-x: auto;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.nutrition-table th,
.nutrition-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--seo-border);
}

.nutrition-table th {
  background: var(--seo-bg-alt);
  font-weight: 600;
  color: var(--seo-text);
}

.nutrition-table tr:hover {
  background: var(--seo-bg-alt);
}

.nutrition-table .highlight-row {
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}

.nutrition-table .indent td:first-child {
  padding-left: 2rem;
}

.serving-info {
  color: var(--seo-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Glycemic Info */
.glycemic-info {
  margin-top: 1rem;
}

.gi-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.gi-badge.gi-low {
  background: rgba(16, 185, 129, 0.1);
  color: var(--seo-success);
}

.gi-badge.gi-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--seo-warning);
}

.gi-badge.gi-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--seo-error);
}

/* Key Nutrients */
.nutrients-highlight {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nutrients-highlight {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nutrient-card {
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--seo-border);
}

.nutrient-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.nutrient-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0;
}

.nutrient-header .amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--seo-primary);
}

.dv-bar-container {
  position: relative;
  height: 8px;
  background: var(--seo-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.dv-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--seo-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.dv-label {
  font-size: 0.75rem;
  color: var(--seo-text-muted);
}

.nutrient-benefit {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* How to Eat / Ways List */
.ways-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ways-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--seo-border);
}

.ways-list li:last-child {
  border-bottom: none;
}

.ways-list li::before {
  content: "🥄";
  position: absolute;
  left: 0;
}

/* Expert Tip */
.expert-tip {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: var(--seo-radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-content {
  color: var(--seo-text);
  line-height: 1.6;
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
}

.benefit-icon {
  color: var(--seo-success);
  font-weight: bold;
}

/* Warnings List */
.warnings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warnings-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.05);
  border-radius: var(--seo-radius-sm);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--seo-warning);
}

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--seo-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--seo-primary);
  transition: transform 0.2s ease;
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--seo-primary) 0%, var(--seo-primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.3);
}

.cta-section p {
  font-size: 1.125rem;
  color: white;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--seo-primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-badge img {
  height: 40px;
  width: auto;
}

/* Blog-style CTA Box */
.app-cta {
  background: transparent;
  padding: 0;
}

.cta-box {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-box.cta-bg {
  position: relative;
  background: linear-gradient(135deg, rgba(76,175,80,0.85) 0%, rgba(46,125,50,0.85) 100%);
  color: #fff;
  overflow: hidden;
}

.cta-box.cta-bg.bg-loaded {
  background-image: linear-gradient(135deg, rgba(76,175,80,0.6) 0%, rgba(46,125,50,0.6) 100%), url('/assets/background.webp');
  background-size: cover;
  background-position: center;
}

.cta-box.cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.cta-box.cta-bg h3,
.cta-box.cta-bg p {
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-box.cta-bg h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-box.cta-bg p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-box .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-box .hero-buttons .app-store-badge img {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .cta-box.cta-bg {
    padding: 2rem 1.25rem;
  }
  
  .cta-box.cta-bg h3 {
    font-size: 1.25rem;
  }
  
  .cta-box.cta-bg p {
    font-size: 1rem;
  }
}

/* ============================================================
   Food-for-Condition Page Specific Styles
   ============================================================ */

/* Medical Disclaimer */
.medical-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--seo-radius-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.medical-disclaimer .disclaimer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.medical-disclaimer p {
  margin: 0;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
}

/* Verdict Badges */
.verdict-recommended {
  background: var(--seo-success);
}

.verdict-neutral {
  background: #6b7280;
}

.verdict-use-with-caution {
  background: var(--seo-warning);
}

/* Verdict Section */
.verdict-section {
  background: linear-gradient(135deg, var(--seo-bg-alt) 0%, var(--seo-bg) 100%);
}

.verdict-explanation {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--seo-text);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.benefit-card {
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
  padding: 1.25rem;
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-primary-dark);
  margin: 0 0 0.5rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
}

/* Concerns Section */
.concerns-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concern-card {
  display: flex;
  gap: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--seo-radius-sm);
  padding: 1.25rem;
}

.concern-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.concern-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-error);
  margin: 0 0 0.5rem;
}

.concern-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #7f1d1d;
  line-height: 1.6;
}

/* Nutrient importance badges */
.importance-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.importance-badge.critical {
  background: #dc2626;
  color: white;
}

.importance-badge.high {
  background: #f59e0b;
  color: white;
}

.importance-badge.medium {
  background: #10b981;
  color: white;
}

.importance-badge.low {
  background: #6b7280;
  color: white;
}

.nutrient-role {
  font-size: 0.9rem;
  color: var(--seo-text);
  margin: 0.5rem 0;
  line-height: 1.5;
}

.amount-info {
  font-size: 0.85rem;
  color: var(--seo-text-muted);
  margin: 0;
}

/* Portion Tip */
.portion-tip {
  display: flex;
  gap: 0.75rem;
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.portion-tip .tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.portion-tip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--seo-text);
  line-height: 1.5;
}

/* Alternatives Grid */
.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.alternative-card {
  display: block;
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.alternative-card:hover {
  border-color: var(--seo-primary);
  box-shadow: var(--seo-shadow);
}

.alternative-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-primary-dark);
  margin: 0 0 0.5rem;
}

.alternative-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
}

/* Recommended badge in sidebar */
.recommended-badge {
  color: var(--seo-success);
  font-weight: 600;
}

/* Related conditions/goals lists */
.related-conditions-list,
.related-goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-conditions-list li,
.related-goals-list li {
  border-bottom: 1px solid var(--seo-border);
}

.related-conditions-list li:last-child,
.related-goals-list li:last-child {
  border-bottom: none;
}

.related-conditions-list a,
.related-goals-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--seo-text);
  transition: color 0.2s ease;
}

.related-conditions-list a:hover,
.related-goals-list a:hover {
  color: var(--seo-primary);
}

.goal-icon {
  font-size: 1.25rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--seo-text);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--seo-border);
}

/* Related Foods List */
.related-foods-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.related-foods-list li {
  border-bottom: 1px solid var(--seo-border);
}

.related-foods-list li:last-child {
  border-bottom: none;
}

.related-foods-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--seo-text);
  transition: color 0.2s ease;
}

.related-foods-list a:hover {
  color: var(--seo-primary);
}

.food-score {
  background: var(--seo-bg-alt);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--seo-primary);
}

.see-all-link {
  display: inline-block;
  color: var(--seo-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.see-all-link:hover {
  text-decoration: underline;
}

/* Other Goals List */
.other-goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-goals-list li {
  margin-bottom: 0.5rem;
}

.other-goals-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius-sm);
  text-decoration: none;
  color: var(--seo-text);
  transition: background 0.2s ease;
}

.other-goals-list a:hover {
  background: var(--seo-border);
}

.goal-icon {
  font-size: 1.25rem;
}

/* Quick Links */
.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  color: var(--seo-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.quick-links a:hover {
  text-decoration: underline;
}

/* Related Content Section */
.related-content-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.related-content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  display: block;
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--seo-shadow-lg);
  transform: translateY(-2px);
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.5rem;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin: 0;
  line-height: 1.5;
}

.related-card a.related-link {
  display: block;
  color: var(--seo-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--seo-border);
  transition: color 0.2s ease;
}

.related-card a.related-link:last-child {
  border-bottom: none;
}

.related-card a.related-link:hover {
  color: var(--seo-primary-dark);
  text-decoration: underline;
}

.related-card a.related-link .food-count {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  font-weight: normal;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .seo-hero {
    padding: 1.5rem;
  }
  
  .content-section {
    padding: 1.25rem;
  }
  
  .quick-stats {
    justify-content: space-between;
  }
  
  .stat {
    flex: 1;
    min-width: 70px;
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .cta-section,
  .app-buttons,
  .breadcrumbs {
    display: none;
  }
  
  .content-grid {
    display: block;
  }
  
  .seo-hero {
    background: none;
    border: none;
    padding: 0;
  }
}

/* ============================================================================
   Hub Pages Styles
   ============================================================================ */

.hub-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hub-hero h1 {
  font-size: 2.5rem;
  color: var(--seo-text);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--seo-text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.hub-card {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hub-card:hover {
  box-shadow: var(--seo-shadow-lg);
  transform: translateY(-4px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-icon {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--seo-bg-alt) 0%, #e0f2fe 100%);
}

.goal-emoji {
  font-size: 4rem;
  line-height: 1;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: var(--seo-text);
}

.card-description {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--seo-text-muted);
}

.stat strong {
  color: var(--seo-primary);
  font-weight: 600;
}

.stat-separator {
  color: var(--seo-border);
}

/* Foods Hub Grid on Goal Pages */
.foods-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.food-hub-card {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.food-hub-card:hover {
  box-shadow: var(--seo-shadow-lg);
  transform: translateY(-2px);
  border-color: var(--seo-primary);
}

.food-rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.food-hub-content {
  flex: 1;
  min-width: 0;
}

.food-hub-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--seo-text);
}

.food-hub-content p {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.food-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--seo-text-muted);
}

.food-meta .calories {
  font-weight: 500;
}

.food-meta .score {
  color: var(--seo-primary);
  font-weight: 600;
}

.hub-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--seo-bg-alt);
  border-radius: var(--seo-radius);
  margin: 4rem 0;
}

.hub-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--seo-text);
}

.hub-cta p {
  font-size: 1.125rem;
  color: var(--seo-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Goal Page Sections */

/* Diet Tips Section */
.tips-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tip-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tip-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--seo-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.tip-content {
  flex: 1;
}

.tip-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--seo-text);
}

.tip-content p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
}

.tip-example {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--seo-bg);
  border-left: 3px solid var(--seo-primary);
  border-radius: var(--seo-radius-sm);
  font-size: 0.875rem;
  color: var(--seo-text-muted);
}

/* Meal Plan Section */
.meal-plan {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.meal-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.meal-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.5rem 0;
}

.meal-description {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.meal-foods {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.meal-foods li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--seo-border);
  font-size: 0.9375rem;
  color: var(--seo-text);
}

.meal-foods li:last-child {
  border-bottom: none;
}

.meal-foods li::before {
  content: "• ";
  color: var(--seo-primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.meal-nutrients {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--seo-border);
}

.meal-nutrients span {
  font-weight: 500;
}

.meal-plan-totals {
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-dark));
  color: white;
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.meal-plan-totals h4 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.totals-grid span {
  font-size: 0.9375rem;
  opacity: 0.95;
}

.totals-grid strong {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* Lifestyle Tips Section */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.lifestyle-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  text-align: center;
}

.lifestyle-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.lifestyle-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.75rem 0;
}

.lifestyle-card p {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   NUTRIENT PAGES STYLES
   ======================================== */

/* Nutrient Hub Page */
.nutrients-category {
  margin-bottom: 3rem;
}

.nutrients-category h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--seo-text);
  margin: 0 0 0.5rem 0;
}

.category-description {
  font-size: 1rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.nutrient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.nutrient-grid .nutrient-card {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.nutrient-grid .nutrient-card:hover {
  border-color: var(--seo-primary);
  box-shadow: var(--seo-shadow-lg);
  transform: translateY(-2px);
}

.nutrient-grid .nutrient-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.75rem 0;
}

.nutrient-snippet {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.nutrient-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rdi-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--seo-primary-dark);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Nutrient Detail Page Hero */
.nutrient-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.nutrient-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  padding: 1rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--seo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--seo-primary);
}

/* Top Foods Section */
.top-foods-section .food-sources-table {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.food-sources-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
}

.food-sources-table thead {
  background: var(--seo-bg-alt);
}

.food-sources-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--seo-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--seo-border);
}

.food-sources-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--seo-border);
}

.food-sources-table tbody tr:last-child td {
  border-bottom: none;
}

.food-sources-table tbody tr:hover {
  background: var(--seo-bg-alt);
}

.food-sources-table .food-name {
  font-weight: 600;
  color: var(--seo-text);
}

.food-sources-table .dv-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--seo-primary-dark);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Deficiency Section */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.symptom-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--seo-radius-sm);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.symptom-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.symptom-card p {
  font-size: 0.9375rem;
  color: var(--seo-text);
  line-height: 1.5;
  margin: 0;
}

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--seo-warning);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.warning-box strong {
  color: var(--seo-warning);
  font-weight: 600;
}

/* Absorption Section */
.absorption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.absorption-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.absorption-card.enhancers {
  border-top: 3px solid var(--seo-success);
}

.absorption-card.inhibitors {
  border-top: 3px solid var(--seo-error);
}

.absorption-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.absorption-card.enhancers h3 {
  color: var(--seo-success);
}

.absorption-card.inhibitors h3 {
  color: var(--seo-error);
}

.absorption-card p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  margin: 0 0 1rem 0;
}

.absorption-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.absorption-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--seo-text);
  border-bottom: 1px solid var(--seo-border);
}

.absorption-card ul li:last-child {
  border-bottom: none;
}

.absorption-card.enhancers ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--seo-success);
  font-weight: bold;
}

.absorption-card.inhibitors ul li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--seo-error);
  font-weight: bold;
}

/* RDI Section */
.rdi-section .rdi-table {
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.rdi-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
}

.rdi-table thead {
  background: var(--seo-bg-alt);
}

.rdi-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--seo-text);
  border-bottom: 2px solid var(--seo-border);
}

.rdi-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--seo-border);
}

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

.rdi-table tbody tr:hover {
  background: var(--seo-bg-alt);
}

.rdi-note {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: 1rem;
}

/* Reference Section */
.reference-section {
  background: var(--seo-bg-alt);
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-box {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.info-box h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-primary);
  margin: 0 0 0.75rem 0;
}

.info-box p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Browse Section */
.browse-section .section-intro {
  font-size: 1rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.browse-card {
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.browse-card:hover {
  border-color: var(--seo-primary);
  box-shadow: var(--seo-shadow-lg);
  transform: translateY(-2px);
}

.browse-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.5rem 0;
}

.browse-card p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
  margin: 0;
}

.view-all-link {
  text-align: center;
  margin-top: 2rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--seo-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--seo-primary-dark);
}

/* ========================================
   NUTRIENT-FOR-GOAL & NUTRIENT-FOR-CONDITION PAGES
   ======================================== */

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.75rem 0;
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.highlight-box h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.75rem 0;
}

.target-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--seo-primary);
  margin: 0 0 0.5rem 0;
}

.target-note {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Ranked Foods Table */
.ranked-foods-table {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.ranked-foods-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--seo-bg);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
  min-width: 600px;
}

.ranked-foods-table thead {
  background: var(--seo-bg-alt);
}

.ranked-foods-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--seo-text);
  border-bottom: 2px solid var(--seo-border);
}

.ranked-foods-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--seo-border);
}

.ranked-foods-table tbody tr:last-child td {
  border-bottom: none;
}

.ranked-foods-table tbody tr:hover {
  background: var(--seo-bg-alt);
}

.rank-cell {
  font-weight: 700;
  color: var(--seo-primary);
  width: 60px;
}

.food-cell a {
  color: var(--seo-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.food-cell a:hover {
  color: var(--seo-primary);
}

.score-bar {
  position: relative;
  height: 28px;
  background: var(--seo-border);
  border-radius: 4px;
  overflow: hidden;
  min-width: 100px;
}

.score-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--seo-primary), var(--seo-primary-dark));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--seo-text);
  z-index: 1;
}

/* Needs Section */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.needs-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  text-align: center;
}

.needs-card.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 2px solid var(--seo-primary);
}

.needs-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 1rem 0;
}

.needs-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.needs-note {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Timing Section */
.timing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timing-card {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-left: 4px solid var(--seo-primary);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timing-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.timing-content {
  flex: 1;
}

.timing-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0 0 0.5rem 0;
}

.timing-content p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Signs Comparison Section */
.signs-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.signs-column {
  background: var(--seo-bg-alt);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
}

.signs-column.adequacy {
  border-top: 3px solid var(--seo-success);
}

.signs-column.deficiency {
  border-top: 3px solid var(--seo-error);
}

.signs-column h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.signs-column.adequacy h3 {
  color: var(--seo-success);
}

.signs-column.deficiency h3 {
  color: var(--seo-error);
}

.signs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signs-list li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--seo-text);
  border-bottom: 1px solid var(--seo-border);
  line-height: 1.5;
}

.signs-list li:last-child {
  border-bottom: none;
}

.signs-column.adequacy .signs-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--seo-success);
  font-weight: bold;
  font-size: 1.125rem;
}

.signs-column.deficiency .signs-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  font-size: 1.125rem;
}

/* Common Mistakes Section */
.mistakes-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mistake-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 4px solid var(--seo-error);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
}

.mistake-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mistake-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mistake-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 0;
  flex: 1;
}

.mistake-card p {
  font-size: 0.9375rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.better-approach {
  background: var(--seo-bg);
  border-radius: var(--seo-radius-sm);
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.better-approach strong {
  color: var(--seo-success);
  font-weight: 600;
}

/* Responsive Hub Pages */
@media (max-width: 768px) {
  /* Adjust top padding for smaller fixed header on mobile */
  .seo-page {
    padding-top: 70px;
  }
  
  .hub-hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-icon {
    height: 120px;
  }
  
  .goal-emoji {
    font-size: 3rem;
  }
  
  .foods-hub-grid {
    grid-template-columns: 1fr;
  }
  
  .food-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .hub-cta {
    padding: 2rem 1.5rem;
  }
  
  .hub-cta h2 {
    font-size: 1.5rem;
  }
  
  .hub-cta p {
    font-size: 1rem;
  }
  
  /* Goal page sections responsive */
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }
  
  .totals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tip-number {
    width: 32px;
    height: 32px;
  }
  
  .lifestyle-icon {
    font-size: 2rem;
  }
}

/* Personalized Nutrition Section */
.personalized-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem 0;
}

.personalized-section h2 {
  text-align: center;
  color: #0f172a;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.personalized-section .section-intro {
  text-align: center;
  color: #475569;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.demographics-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.demographic-category {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.demographic-category h3 {
  color: #0f172a;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.demographic-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demographic-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.demographic-link:hover {
  background: #e0f2fe;
  border-color: #0ea5e9;
  transform: translateX(4px);
}

.demographic-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.demographic-name {
  font-weight: 500;
  font-size: 1rem;
}

.personalized-note {
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.personalized-note p {
  color: #78350f;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .demographics-categories {
    grid-template-columns: 1fr;
  }
  
  .personalized-section {
    padding: 2rem 1rem;
  }
  
  .personalized-section h2 {
    font-size: 1.5rem;
  }
  
  .demographic-link {
    padding: 0.6rem 0.75rem;
  }
  
  .demographic-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* Demographic cards on nutrient pages */
.demographic-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
}

.demographic-card:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  transform: translateY(-4px);
}

.demographic-rdi {
  font-size: 0.9rem;
  color: #0369a1;
  font-weight: 600;
  margin: 0.25rem 0 0;
}
