:root {
  --primary: #0284c7; /* Sky blue medical theme */
  --primary-dark: #0f172a; /* Slate navy */
  --primary-mid: #0369a1; /* Deep sky blue */
  --primary-light: #f0f9ff; /* Soft blue highlight */
  --accent: #ef4444; /* Crimson warning */
  --accent-light: #fef2f2;
  --gold: #d97706; /* High-contrast amber warning */
  --green-accent: #059669; /* High-contrast healthy green rating */
  --green-accent-light: #ecfdf5;
  --text: #0f172a; /* High contrast dark text */
  --text-mid: #334155;
  --text-light: #475569; /* High-contrast slate text */
  --text-muted: #94a3b8;
  --border: #e2e8f0; /* Crisp borders */
  --border-light: #f1f5f9;
  --bg: #ffffff;
  --bg-off: #f8fafc; /* Sleek neutral grey background */
  --bg-warm: #fafaf9;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px 0 rgba(148, 163, 184, 0.08);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 15px rgba(2, 132, 199, 0.15);
  --radius: 12px;
  --radius-sm: 6px;
  --max-w: 1140px;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-mid); text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; box-sizing: border-box; }

/* READING PROGRESS */
#readingProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), #10b981);
  z-index: 2000; transition: width .1s linear; pointer-events: none;
}

/* ========================
   HEADER
======================== */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 800;
  color: var(--primary-dark); text-decoration: none; flex-shrink: 0;
  letter-spacing: -0.6px;
}
.logo-icon {
  width: 38px; height: 38px; 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); 
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.logo-text em { color: var(--primary); font-style: normal; font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: .86rem; font-weight: 600; color: var(--text-mid);
  transition: all .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--primary-light); color: var(--primary-mid); }
.nav-cta { 
  background: var(--primary-dark) !important; 
  color: #fff !important; 
  font-weight: 700 !important; 
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.nav-cta:hover { background: var(--primary-mid) !important; color: #fff !important; }
.hamburger { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  cursor: pointer; 
  padding: 16px 13px; /* Enlarged touch target to meet 48px x 48px standard */
  border: none; 
  background: none; 
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(-5px,-5px); }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 10px 20px 20px; z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border-light);
  font-size: .95rem; font-weight: 600; color: var(--text);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }

/* ========================
   BREADCRUMB
======================== */
.breadcrumb { background: var(--bg-off); border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.breadcrumb .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb span.sep { color: var(--text-muted); }

/* ========================
   LAYOUT SYSTEM
======================== */
.container { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-off); }
.section-warm { background: var(--bg-warm); }

/* ========================
   ARTICLE LAYOUT (2-col grid)
======================== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
  width: 100%;
}
.article-main { min-width: 0; }
.article-sidebar { min-width: 0; }

/* ========================
   HERO BANDS & TECH GRIDS
======================== */
.page-hero-band {
  background: radial-gradient(circle at top right, #0c4a6e 0%, #0f172a 100%);
  position: relative;
  color: #fff; padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.page-hero-band h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.page-hero-band p { color: rgba(255, 255, 255, 0.76); font-size: 1rem; max-width: 680px; line-height: 1.6; }
.hero-label {
  font-size: .72rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(2, 132, 199, 0.8); margin-bottom: 10px;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-badge {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85); padding: 5px 14px; border-radius: 30px;
  font-size: .75rem; font-weight: 600;
}
.hero-badge.green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: #34d399; }
.hero-badge.red { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }

/* ========================
   METRICS STRIP (Clinical Dashboard Widget)
======================== */
.metrics-strip { background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.metrics-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-left: 1px solid var(--border-light);
}
.metric-cell {
  padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--border-light);
  transition: background .2s;
}
.metric-cell:hover { background: var(--bg-off); }
.metric-val {
  font-family: var(--font-body); font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.metric-lbl { font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; font-weight: 700; }

/* ========================
   SAFETY SCORE SHIELD BADGE
======================== */
.score-badge {
  background: rgba(255, 255, 255, 0.04); 
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 16px; padding: 24px 32px; text-align: center; min-width: 150px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.score-num {
  font-family: var(--font-body); font-size: 3rem; font-weight: 800; line-height: 1;
  color: #fff; margin-bottom: 4px;
}
.score-grade {
  font-size: 1.05rem; font-weight: 800; color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.score-sub { font-size: .72rem; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }

/* Grade colors - Modern glowing hues */
.grade-a { color: var(--green-accent); }
.grade-b { color: var(--primary); }
.grade-c { color: var(--gold); }
.grade-d { color: #f97316; }
.grade-f { color: var(--accent); }

/* ========================
   TYPOGRAPHY & TITLE STYLES
======================== */
.section-label {
  font-size: .72rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary-mid); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.25;
}
.section-sub { color: var(--text-light); font-size: .95rem; max-width: 580px; line-height: 1.7; }

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: .9rem; font-weight: 700;
  transition: all .25s ease; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { 
  background: var(--primary-mid); color: #fff; border-color: var(--primary-mid); 
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
}
.btn-primary:hover { 
  background: var(--primary); border-color: var(--primary); color: #fff; 
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(3, 105, 161, 0.3);
}
.btn-outline-primary { background: transparent; color: var(--primary-mid); border-color: var(--primary-mid); }
.btn-outline-primary:hover { 
  background: var(--primary-mid); color: #fff; 
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
}
.btn-white { 
  background: #fff; color: var(--primary-dark); border-color: #fff; 
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.btn-white:hover { 
  background: var(--primary-light); color: var(--primary-mid); 
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* ========================
   ARTICLE CONTENT STYLES
======================== */
.article-cat {
  display: inline-block; background: var(--primary-light); color: var(--primary-mid);
  font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700; color: var(--text); line-height: 1.3;
  letter-spacing: -0.5px; margin-bottom: 16px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-meta {
  display: flex; gap: 16px; font-size: .82rem; color: var(--text-light);
  flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--border-light); margin-bottom: 28px;
  align-items: center;
}
.article-meta .meta-badge {
  background: var(--primary-light); color: var(--primary-mid);
  padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: .72rem;
}
.article-body {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-mid);
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700; color: var(--text);
  margin: 44px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700; color: var(--text); margin: 32px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 14px 0 20px 24px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--primary-mid); text-decoration: none; border-bottom: 1.5px solid var(--primary-light); padding-bottom: 1px; }
.article-body a:hover { color: var(--primary); border-color: var(--primary); }
.article-body blockquote {
  border-left: 4px solid var(--primary); background: var(--primary-light);
  padding: 20px 24px; margin: 32px 0; border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--primary-dark); font-family: var(--font-serif); font-size: 1.08rem;
}
.key-points {
  background: var(--bg-off); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 30px 0;
  box-shadow: var(--shadow-xs);
}
.key-points h4 { font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; font-size: .88rem; text-transform: uppercase; letter-spacing: 1px; }
.key-points ul { margin: 0 0 0 20px; }

/* ========================
   LAST UPDATED / DATA FRESHNESS
======================== */
.data-freshness {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-accent-light); border: 1px solid #a7f3d0; border-radius: 8px;
  padding: 6px 14px; font-size: .78rem; color: #065f46; font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.05);
}
.data-freshness::before { content: '✓'; font-weight: 900; }

/* ========================
   AUTHOR BOX (EEAT)
======================== */
.author-box {
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin: 48px 0;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; color: #fff;
  font-family: var(--font-serif); font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}
.author-avatar img {
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; display: block;
}
.author-name { font-weight: 800; font-size: 1.05rem; color: var(--text); margin-bottom: 2px; }
.author-credentials { font-size: .8rem; color: var(--primary-mid); font-weight: 700; margin-bottom: 6px; }
.author-bio { font-size: .88rem; color: var(--text-light); line-height: 1.65; }
.author-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.author-links a { font-size: .78rem; color: var(--text-mid); font-weight: 600; border: 1px solid var(--border); padding: 4px 12px; border-radius: 6px; background: #fff; transition: all .2s; }
.author-links a:hover { background: var(--primary-light); color: var(--primary-mid); border-color: var(--primary-mid); }

/* ========================
   SIDEBAR
======================== */
.sidebar-widget {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-body); font-size: .95rem; font-weight: 800; color: var(--text);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.related-post { padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: .88rem; }
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post a { color: var(--text-mid); font-weight: 600; line-height: 1.45; display: block; }
.related-post a:hover { color: var(--primary-mid); }
.related-meta { font-size: .75rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ========================
   AD SLOTS (Sleek Clean Ad Containers)
======================== */
.ad-slot {
  background: transparent; border: none;
  border-radius: var(--radius); display: block;
  width: 100%; margin: 6px 0;
  overflow: hidden; min-height: 0;
}
.ad-slot-leaderboard { min-height: 0; }
.ad-slot-rect { min-height: 0; max-width: 336px; margin: 0 auto; }
.ad-slot-sidebar { min-height: 250px; width: 100%; max-width: 300px; }

/* ========================
   DISCLAIMER
======================== */
.disclaimer-box {
  background: #fefcf0; border: 1px solid #fef08a;
  border-left: 4px solid #eab308;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin-bottom: 28px;
  font-size: .88rem; color: #854d0e; line-height: 1.65;
}
.disclaimer-box strong { color: #713f12; }

/* ========================
   SOURCES
======================== */
.sources-section { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; }
.sources-title { font-size: .8rem; font-weight: 800; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; }
.sources-list { padding-left: 20px; }
.sources-list li { font-size: .8rem; color: var(--text-light); margin-bottom: 6px; line-height: 1.55; }
.sources-list a { color: var(--text-light); border-bottom: 1px solid var(--border); }
.sources-list a:hover { color: var(--primary-mid); border-color: var(--primary-mid); }

/* ========================
   HOSPITAL/CITY CARD (High-End Dashboard Items)
======================== */
.hospital-card {
  display: flex; gap: 18px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; background: #fff; text-decoration: none;
  color: inherit; transition: all .25s ease-in-out; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.hospital-card:hover { 
  border-color: var(--primary); 
  box-shadow: var(--shadow-lg), var(--shadow-glow); 
  transform: translateY(-2px); 
}
.hcard-rank {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 800;
  color: var(--primary-dark); 
  width: 34px; height: 34px;
  background: var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hospital-card:hover .hcard-rank {
  background: var(--primary-light);
  color: var(--primary-mid);
}
.hcard-info { flex: 1; min-width: 0; }
.hcard-name { font-weight: 700; font-size: .98rem; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard-loc { font-size: .78rem; color: var(--text-light); }
.hcard-score { 
  font-family: var(--font-body); font-size: 1.35rem; font-weight: 800; text-align: right; white-space: nowrap; 
  line-height: 1.2;
}

/* ========================
   NEARBY CARD
======================== */
.nearby-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; transition: all .2s; background: #fff;
  box-shadow: var(--shadow-sm);
}
.nearby-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.nearby-name { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.nearby-loc { font-size: .78rem; color: var(--text-light); margin-bottom: 4px; }
.nearby-score { font-size: .8rem; font-weight: 700; }

/* ========================
   BLOG GRID
======================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.blog-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .25s ease; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--primary-light), #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; flex-shrink: 0;
}
.card-category {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary-dark); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; gap: 12px; font-size: .76rem; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; font-weight: 500; }
.card-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary-mid); }
.card-excerpt { font-size: .86rem; color: var(--text-light); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border-light); margin-top: auto; }
.read-more { font-size: .8rem; font-weight: 700; color: var(--primary-mid); display: flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--primary); }
.read-time { font-size: .75rem; color: var(--text-muted); }

/* ========================
   CTA SECTION
======================== */
.cta-section {
  background: radial-gradient(circle at top right, #0369a1, #0f172a);
  position: relative;
  color: #fff; padding: 76px 0; text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-section h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 14px; }
.cta-section p { font-size: 1.02rem; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto; line-height: 1.65; }

/* ========================
   FOOTER (Premium Slate Dark)
======================== */
.site-footer { background: #0b0f19; color: #94a3b8; padding: 68px 0 28px; border-top: 1px solid #1e293b; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid #1e293b;
}
.footer-desc { font-size: .86rem; line-height: 1.75; max-width: 290px; margin-top: 14px; color: #64748b; }
.footer-col-title { font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #475569; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #94a3b8; font-size: .88rem; transition: color .2s; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .8rem; color: #475569;
}
.footer-bottom a { color: #64748b; font-weight: 500; }
.footer-bottom a:hover { color: #fff; }

/* ========================
   MISC UTILITIES
======================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.gap-y-4 > * + * { margin-top: 4px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .5px;
}
.badge-green { background: var(--green-accent-light); color: #047857; }
.badge-red { background: var(--accent-light); color: var(--accent); }
.badge-gold { background: #fef3c7; color: #b45309; }
.badge-gray { background: var(--border-light); color: var(--text-light); }

#scrollTop {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--primary-dark); color: #fff; border: none; border-radius: 50%;
  font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .2s, background .2s; z-index: 999; 
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}
#scrollTop:hover { transform: translateY(-3px); background: var(--primary-mid); }
#scrollTop.visible { opacity: 1; pointer-events: auto; }

/* ========================
   STAT GRID (hospital detail)
======================== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat-box { 
  background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); 
  padding: 20px; text-align: center;
  box-shadow: var(--shadow-xs);
}
.stat-val { font-family: var(--font-body); font-size: 1.55rem; font-weight: 800; color: var(--text); }
.stat-lbl { font-size: .72rem; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }

/* ========================
   CATEGORY PILLS
======================== */
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-pill {
  background: var(--bg-off); border: 1.5px solid var(--border); color: var(--text-mid);
  padding: 7px 16px; border-radius: 30px; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s; user-select: none;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary-mid); border-color: var(--primary-mid); color: #fff; }

/* ========================
   FORMS
======================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .92rem; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,132,199,.12); }
textarea.form-input { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--primary-dark); color: #fff; border: 2px solid var(--primary-dark);
  width: 100%; padding: 14px; border-radius: 8px; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.form-submit:hover { background: var(--primary-mid); border-color: var(--primary-mid); }

/* ========================
   REVIEWS SECTION
======================== */
.reviews-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border-light);
}
.reviews-section h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}
.reviews-summary-card {
  display: flex;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  gap: 36px;
  margin-bottom: 32px;
  align-items: center;
  box-shadow: var(--shadow-xs);
}
.reviews-summary-left {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 36px;
  flex-shrink: 0;
}
.rating-big-num {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.rating-stars {
  font-size: 1.35rem;
  color: #fbbf24;
  margin: 6px 0;
}
.rating-sub {
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 500;
}
.reviews-summary-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  font-weight: 600;
}
.bar-label {
  width: 55px;
  color: var(--text-light);
  white-space: nowrap;
}
.bar-outer {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bar-inner {
  height: 100%;
  background: #fbbf24;
  border-radius: 4px;
}
.bar-pct {
  width: 38px;
  text-align: right;
  color: var(--text-light);
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.review-author {
  font-weight: 800;
  font-size: .92rem;
  color: var(--text);
}
.review-date {
  font-size: .8rem;
  color: var(--text-light);
  margin-right: auto;
  margin-left: 14px;
  font-weight: 500;
}
.review-stars-inline {
  color: #fbbf24;
  font-size: 1rem;
}
.review-text {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-mid);
  font-style: italic;
}
.submit-review-box {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}
.submit-review-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.submit-review-box p {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 22px;
}
.review-form-demo .form-row {
  display: flex;
  gap: 18px;
}
.form-group.half-width {
  flex: 1;
}

/* ========================
   RESPONSIVE DESIGN RULES
======================== */
@media(max-width:1024px) {
  .article-layout { grid-template-columns: 1fr; padding: 36px 0; }
  .article-sidebar { order: -1; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 50px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .author-box { flex-direction: column; gap: 14px; }
  .page-hero-band { padding: 36px 0 30px; }
  .cta-section { padding: 56px 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hospital-card { flex-wrap: wrap; }
}
@media(max-width:480px) {
  .header-inner { padding: 0 16px; height: 62px; }
  .mobile-menu { top: 62px; }
  .container { padding: 0 16px; }
  .site-logo { font-size: 1.05rem; }
  .logo-icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .score-badge { padding: 18px 24px; min-width: 120px; }
  .score-num { font-size: 2.4rem; }
}

/* ========================
   MOBILE FIXES v2
======================= */
@media(max-width:768px) {
  .page-hero-band h1 { font-size: 1.5rem; }
  .page-hero-band .container > div[style*="grid-template-columns:1fr auto"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .score-badge { align-self: flex-start; }
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: .72rem; padding: 4px 10px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hcard-name { font-size: .88rem; white-space: normal; }
  .article-sidebar { order: 2 !important; width: 100%; }
  .ad-slot:empty,
  .ad-slot > *:only-child[style*="display:none"],
  .ad-slot { min-height: 0 !important; }
  .sidebar-widget { word-break: break-word; overflow-wrap: break-word; }
  .widget-title { word-break: break-word; }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(200px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(220px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .site-footer .site-logo { gap: 10px; }
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .ad-slot-rect { min-height: 200px; }
  .breadcrumb .container { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
  .author-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
}

@media(max-width:480px) {
  .page-hero-band { padding: 28px 0 24px; }
  .page-hero-band h1 { font-size: 1.35rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .metric-cell { padding: 12px 10px; }
  .metric-val { font-size: 1.05rem; }
  .metric-lbl { font-size: .62rem; }
  .article-title { font-size: 1.35rem; }
  .article-meta { gap: 10px; font-size: .76rem; }
  .key-points { padding: 15px 18px; }
  .section { padding: 36px 0; }
  .blog-card .card-thumb { height: 140px; }
  .hospital-card { gap: 12px; }
  .hcard-rank { font-size: .88rem; width: 30px; height: 30px; }
  .hcard-score { font-size: 1.1rem; }
  .btn { padding: 11px 18px; font-size: .86rem; }
  .author-box { padding: 18px; }
  .cta-section h2 { font-size: 1.4rem; }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(200px"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(220px"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(180px"] {
    grid-template-columns: 1fr !important;
  }
  .footer-grid { padding: 0; }
  .form-input { padding: 10px 12px; }
  .score-badge { width: 100%; text-align: center; }
}

/* Fix overflow on all screen sizes */
* { max-width: 100%; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, table { max-width: 100%; }
pre { overflow-x: auto; }
.article-body table { display: block; overflow-x: auto; }

/* Hospitals index page grid responsive fix */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 10px;
}
@media(max-width:600px) {
  .states-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:380px) {
  .states-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   INLINE-STYLE OVERRIDES (Bulk visual overrides across all pages)
   ======================================================== */

/* 1. Override index and details hero gradients */
section[style*="background:linear-gradient"], .hero-band-primary {
  background: radial-gradient(circle at top right, #0c4a6e 0%, #0f172a 100%) !important;
  color: #fff !important;
  padding: 80px 0 68px !important;
  overflow: hidden !important;
  position: relative !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
section[style*="background:linear-gradient"]::before, .hero-band-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* 2. Override homepage highlight color */
span[style*="color:#7dde9e"] {
  color: #38bdf8 !important; /* Clean glowing sky blue */
  font-weight: 800;
}

/* 3. Override homepage checklist strip */
div[style*="background:#f7f9fb;border-bottom:1px solid var(--border)"] {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 20px 0 !important;
  box-shadow: inset 0 -1px 3px rgba(15, 23, 42, 0.01);
}
div[style*="display:flex;gap:28px;flex-wrap:wrap;align-items:center;justify-content:center"] {
  gap: 36px !important;
}

/* 4. Override state index card items on homepage (not in footer/sidebar) */
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a,
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px"] a,
.states-grid a {
  display: block !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  background: #fff !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all .25s ease !important;
}
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a:hover,
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px"] a:hover,
.states-grid a:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
  transform: translateY(-2px) !important;
  background: #fff !important;
  color: var(--primary-mid) !important;
}


/* 5. Override score grade text colors */
div[style*="color:#c9922a"], span[style*="color:#c9922a"] {
  color: var(--gold) !important;
}
div[style*="color:#e67e22"], span[style*="color:#e67e22"] {
  color: #f97316 !important;
}
div[style*="color:#2980b9"], span[style*="color:#2980b9"] {
  color: var(--primary) !important;
}
div[style*="color:#27ae60"], span[style*="color:#27ae60"] {
  color: var(--green-accent) !important;
}

/* 6. Override nearby cards in sidebar */
a[style*="font-size:.85rem;color:var(--primary)"] {
  font-size: 0.88rem !important;
  color: var(--primary-mid) !important;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: padding .2s;
}
a[style*="font-size:.85rem;color:var(--primary)"]:hover {
  color: var(--primary) !important;
  padding-left: 4px;
}

/* 7. Override key point lists background */
div[style*="background:#fffbeb;border-color:#f0d070"] {
  background: #fffdf5 !important;
  border-color: #fef08a !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-xs) !important;
}

/* 8. Override details other hospital section cards */
section[style*="background:var(--bg-off);border-top:1px solid var(--border);padding:32px 0"] {
  background: var(--bg-off) !important;
  border-top: 1px solid var(--border) !important;
  padding: 56px 0 !important;
}
div[style*="display:grid;grid-template-columns:repeat(auto-fill,minmax(260px"] {
  gap: 16px !important;
}

/* 9. Methodology item badges layout */
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"] {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .25s, box-shadow .25s;
}
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"]:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
div[style*="font-weight:700;font-size:.9rem;margin-bottom:4px"] {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}
div[style*="font-size:.83rem;color:var(--text-light)"] {
  color: var(--text-light) !important;
  font-size: 0.85rem !important;
}

/* 10. Home hero big stats layout */
.homepage-stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  margin-top: 32px !important;
  width: 100% !important;
}
.homepage-stats .stat-card {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
  flex: 1 !important;
}
.homepage-stats .stat-num {
  font-family: var(--font-body) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}
.homepage-stats .stat-label {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.62rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-top: 2px !important;
  white-space: normal !important;
}

@media(max-width: 768px) {
  .homepage-stats {
    gap: 16px !important;
  }
}

@media(max-width: 480px) {
  .homepage-stats {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-top: 24px !important;
  }
  .homepage-stats .stat-card {
    text-align: center !important;
  }
  .homepage-stats .stat-num {
    font-size: 1.05rem !important;
  }
  .homepage-stats .stat-label {
    font-size: 0.52rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;
  }
}

/* ========================================================
   HERO GRID & ANIMATION
   ======================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-left {
  max-width: 660px;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image {
  animation: floatHero 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(2, 132, 199, 0.18));
}
@keyframes floatHero {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center;
  }
  .hero-left {
    max-width: 100% !important;
  }
  .hero-right {
    display: none !important; /* Hide on tablets and mobile to save space */
  }
}

/* ========================================================
   MICRO-ANIMATIONS & TRANSITIONS (Entire Website Animations)
   ======================================================== */

/* 1. Global Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseDotBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

@keyframes bounceSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* 2. Load Animations for Hero Sections */
.hero-left > * {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > h1 { animation-delay: 0.15s; }
.hero-left > p { animation-delay: 0.25s; }
.hero-left > div:nth-of-type(1) { animation-delay: 0.35s; }
.hero-left > div:nth-of-type(2) { animation-delay: 0.45s; }

.page-hero-band h1 {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}
.page-hero-band p {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}
.page-hero-band .hero-badges {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}
.page-hero-band .score-badge {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.35s;
}

/* 3. Cards Fade-in Load Animations */
.hospital-card, .nearby-card, .blog-card, .sidebar-widget, .submit-review-box, .reviews-summary-card {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 4. Metrics Strip Fade-in */
.metric-cell {
  animation: fadeIn 0.8s ease both;
}
.metric-cell:nth-child(1) { animation-delay: 0.05s; }
.metric-cell:nth-child(2) { animation-delay: 0.1s; }
.metric-cell:nth-child(3) { animation-delay: 0.15s; }
.metric-cell:nth-child(4) { animation-delay: 0.2s; }
.metric-cell:nth-child(5) { animation-delay: 0.25s; }
.metric-cell:nth-child(6) { animation-delay: 0.3s; }

/* 5. Glowing pulses on Live Badges */
.hero-badge.green, .badge-green {
  position: relative;
}
.hero-badge.green::after, .badge-green::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  margin-left: 7px;
  vertical-align: middle;
  animation: pulseDot 2s infinite;
}

.hero-badge.blue, .badge-blue {
  position: relative;
}
.hero-badge.blue::after, .badge-blue::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 7px;
  vertical-align: middle;
  animation: pulseDotBlue 2s infinite;
}

/* 6. Hover transition overrides for smooth lifts */
.hospital-card, .nearby-card, .blog-card, .btn, .cat-pill, .form-submit, .reviews-summary-card, .review-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.3s ease !important;
}

.blog-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(15, 23, 42, 0.03) !important;
}

.nearby-card:hover, .review-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow) !important;
  border-color: var(--primary) !important;
}

/* 7. Sidebar Links slide list effect */
.sidebar-widget .related-post a {
  transition: transform 0.25s ease, color 0.25s ease;
}
.sidebar-widget .related-post a:hover {
  transform: translateX(4px);
  color: var(--primary) !important;
}

/* 8. Footer Links slide list effect */
.footer-links a {
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
}
.footer-links a:hover {
  transform: translateX(4px);
  color: #fff !important;
}

/* 9. Scroll to top button pulse */
#scrollTop.visible {
  animation: fadeIn 0.3s ease, bounceSoft 2.5s infinite alternate;
}

/* ========================================================
   SECTION-SPECIFIC CUSTOM ANIMATIONS
   ======================================================== */

/* 1. Custom Keyframes */
@keyframes scaleInCard {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(3, 105, 161, 0.35); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2); }
}

/* 2. Top-Rated Hospitals: staggered scale-in */
.hospital-card {
  animation: scaleInCard 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hospital-card:nth-child(1) { animation-delay: 0.05s; }
.hospital-card:nth-child(2) { animation-delay: 0.1s; }
.hospital-card:nth-child(3) { animation-delay: 0.15s; }
.hospital-card:nth-child(4) { animation-delay: 0.2s; }
.hospital-card:nth-child(5) { animation-delay: 0.25s; }
.hospital-card:nth-child(n+6) { animation-delay: 0.3s; }

/* 3. States grid: staggered fade-up */
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a,
.states-grid a {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a:nth-child(3n+1) { animation-delay: 0.05s; }
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a:nth-child(3n+2) { animation-delay: 0.1s; }
div[style*="grid-template-columns:repeat(auto-fill,minmax(180px,1fr))"] a:nth-child(3n) { animation-delay: 0.15s; }

/* 4. Blog Card guides: slide-in from right */
.blog-card {
  animation: slideInFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.blog-card:nth-child(1) { animation-delay: 0.08s; }
.blog-card:nth-child(2) { animation-delay: 0.16s; }
.blog-card:nth-child(3) { animation-delay: 0.24s; }

/* 5. Methodology blocks: slide-in from left */
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"] {
  animation: slideInFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"]:nth-child(1) { animation-delay: 0.05s; }
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"]:nth-child(2) { animation-delay: 0.1s; }
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"]:nth-child(3) { animation-delay: 0.15s; }
div[style*="display:flex;flex-direction:column;gap:14px"] > div[style*="background:#fff"]:nth-child(4) { animation-delay: 0.2s; }

/* 6. CTA Pulsing Glow */
.cta-section .btn {
  animation: glowPulse 3s infinite ease-in-out !important;
}

/* ========================================================
   HOMEPAGE AUTO-SUGGEST SEARCH STYLING
   ======================================================== */
.search-container {
  position: relative;
  margin-bottom: 28px;
  max-width: 580px;
  width: 100%;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 6px 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
}
.search-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  font-weight: 500;
}
.search-wrapper input::placeholder {
  color: var(--text-muted);
}
.search-icon {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-left: 10px;
  display: flex;
  align-items: center;
}
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1001;
  max-height: 350px;
  overflow-y: auto;
  padding: 6px;
}
.suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border-bottom: 1px solid var(--border-light);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover, .suggestion-item.active {
  background: var(--primary-light);
  color: var(--primary-mid);
}
.suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.suggestion-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.suggestion-score-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.suggestion-score-badge.grade-a { background: var(--green-accent-light); color: var(--green-accent); }
.suggestion-score-badge.grade-b { background: var(--primary-light); color: var(--primary); }
.suggestion-score-badge.grade-c { background: #fffbeb; color: var(--gold); }
.suggestion-score-badge.grade-d { background: #fff7ed; color: #f97316; }
.suggestion-score-badge.grade-f { background: var(--accent-light); color: var(--accent); }
.suggestion-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}

/* Sticky Sidebar Media Query */
@media(min-width:1025px) {
  .article-sidebar {
    position: sticky !important;
    top: 88px !important;
    align-self: start !important;
  }
}

/* ========================================================
   MOBILE & ACCESSIBILITY UPGRADES (v3)
   ======================================================== */

/* 1. Hero Buttons responsive behavior */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* 2. Ribbon Band responsive behavior */
.ribbon-band {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.ribbon-container {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.ribbon-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-light); /* use high-contrast slate text */
}
.ribbon-item strong {
  color: var(--text);
}
@media (max-width: 768px) {
  .ribbon-container {
    gap: 12px 20px;
  }
  .ribbon-item {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .ribbon-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    justify-items: start;
    padding: 0 16px;
  }
  .ribbon-item {
    font-size: 0.72rem;
  }
}

/* 3. Search Autocomplete Responsiveness & Flex Fix */
.search-wrapper input {
  flex: 1 !important;
  min-width: 0 !important;
}
@media (max-width: 768px) {
  .search-container {
    padding: 0 16px;
    margin-bottom: 32px !important;
  }
  .search-wrapper {
    padding: 4px 6px;
  }
  .search-wrapper input {
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
  }
  #hospitalSearchBtn {
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
  }
}





