/* ==========================================================================
   VisionCostGuide.com — Main Stylesheet
   Palette: Indigo (#2B3990) + Sky Blue (#00AEEF)
   Font: Inter (sans-serif, 16px base)
   ========================================================================== */

/* ── 1. CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --indigo:        #2B3990;
  --indigo-light:  #4A5BBF;
  --indigo-bg:     #F4F6FF;
  --indigo-dark:   #1A2260;
  --sky:           #00AEEF;
  --sky-light:     #33C3F8;
  --orange:        #F7941D;
  --orange-light:  #FEF3E2;
  --green:         #2DAE7E;
  --green-light:   #E8FAF3;
  --dark:          #1A1E40;
  --gray-900:      #111827;
  --gray-700:      #374151;
  --gray-500:      #6B7280;
  --gray-300:      #D1D5DB;
  --gray-100:      #F3F4F6;
  --white:         #FFFFFF;

  /* Tag colors */
  --tag-laser:     #2B3990;
  --tag-cataract:  #0284C7;
  --tag-exams:     #14B8A6;
  --tag-glasses:   #D97706;
  --tag-contacts:  #7C3AED;
  --tag-conditions:#DC2626;
  --tag-insurance: #059669;
  --tag-save:      #10B981;

  --font:          'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:         1200px;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:        0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.13);
  --transition:    0.2s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--indigo-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}

/* ── 3. Utility Classes ───────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-alt {
  background: var(--indigo-bg);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--indigo-dark);
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--sky);
  border-radius: 2px;
}

/* ── 4. Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--sky-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,174,239,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ── 5. Reading Progress Bar ──────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--sky);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── 6. Trust Bar ─────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.88);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.01em;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-bar strong {
  color: var(--white);
}

/* ── 7. Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(43,57,144,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--indigo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--indigo-dark);
  letter-spacing: -0.01em;
}

.logo-text strong {
  color: var(--sky);
  font-weight: 800;
}

/* Main nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--indigo);
  background: var(--indigo-bg);
}

/* Hamburger */
.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.btn-menu:hover {
  background: var(--indigo-bg);
}

.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── 8. Hero Section ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 55%, #3B4FA8 100%);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,174,239,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sky-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title em {
  color: var(--sky-light);
  font-style: normal;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 600px;
  backdrop-filter: blur(4px);
}

.hero-stat {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sky-light);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

/* ── 9. Category Grid (4-col) ─────────────────────────────────────────────── */
.categories-section {
  background: var(--white);
}

.cat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-300);
  border-top-width: 4px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.cat-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.cat-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.45;
}

/* Cat card color variants */
.cat-card--indigo {
  border-top-color: var(--indigo);
}
.cat-card--indigo .cat-icon {
  background: rgba(43,57,144,0.1);
}
.cat-card--indigo:hover {
  border-color: var(--indigo);
}

.cat-card--sky {
  border-top-color: var(--sky);
}
.cat-card--sky .cat-icon {
  background: rgba(0,174,239,0.1);
}
.cat-card--sky:hover {
  border-color: var(--sky);
}

.cat-card--amber {
  border-top-color: #D97706;
}
.cat-card--amber .cat-icon {
  background: rgba(217,119,6,0.1);
}
.cat-card--amber:hover {
  border-color: #D97706;
}

.cat-card--teal {
  border-top-color: #14B8A6;
}
.cat-card--teal .cat-icon {
  background: rgba(20,184,166,0.1);
}
.cat-card--teal:hover {
  border-color: #14B8A6;
}

.cat-card--red {
  border-top-color: #DC2626;
}
.cat-card--red .cat-icon {
  background: rgba(220,38,38,0.1);
}
.cat-card--red:hover {
  border-color: #DC2626;
}

.cat-card--green {
  border-top-color: #059669;
}
.cat-card--green .cat-icon {
  background: rgba(5,150,105,0.1);
}
.cat-card--green:hover {
  border-color: #059669;
}

.cat-card--emerald {
  border-top-color: #10B981;
}
.cat-card--emerald .cat-icon {
  background: rgba(16,185,129,0.1);
}
.cat-card--emerald:hover {
  border-color: #10B981;
}

.cat-card--violet {
  border-top-color: #7C3AED;
}
.cat-card--violet .cat-icon {
  background: rgba(124,58,237,0.1);
}
.cat-card--violet:hover {
  border-color: #7C3AED;
}

/* ── 10. Guide Cards ──────────────────────────────────────────────────────── */
.guides-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 100%;
  background: var(--indigo-bg);
  border-right: 1px solid var(--gray-300);
  flex-shrink: 0;
}

.card-icon {
  font-size: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
}

.card-body {
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}

.card-body h3 a:hover {
  color: var(--indigo);
}

.card-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sky);
}

.card-read-more:hover {
  color: var(--indigo);
}

/* Tag pills */
.card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  color: var(--white);
}

.card-tag--laser-surgery    { background: var(--tag-laser); }
.card-tag--cataract-surgery { background: var(--tag-cataract); }
.card-tag--eye-exams        { background: var(--tag-exams); }
.card-tag--eyeglasses       { background: var(--tag-glasses); color: var(--white); }
.card-tag--contact-lenses   { background: var(--tag-contacts); }
.card-tag--eye-conditions   { background: var(--tag-conditions); }
.card-tag--vision-insurance { background: var(--tag-insurance); }
.card-tag--save-money       { background: var(--tag-save); }

/* ── 11. Article Header ───────────────────────────────────────────────────── */
.article-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 36px 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-500);
  font-weight: 500;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--indigo);
}

.breadcrumb svg {
  color: var(--gray-300);
  flex-shrink: 0;
}

.breadcrumb span[aria-current="page"] {
  color: var(--gray-700);
  font-weight: 500;
}

.article-category-tag {
  display: inline-block;
  background: var(--indigo-bg);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 760px;
}

/* Meta row */
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-chip strong {
  color: var(--dark);
  font-size: 0.875rem;
}

.author-chip div {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.meta-divider {
  color: var(--gray-300);
}

.vet-reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #6EE7B7;
}

.vet-reviewed-badge svg {
  color: #059669;
  flex-shrink: 0;
}

/* Infographic */
.article-infographic {
  margin-top: 8px;
}

.infographic-img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--gray-300);
  border-bottom: none;
}

.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 4rem;
  background: var(--indigo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

/* ── 12. Article Body ─────────────────────────────────────────────────────── */
.article-layout {
  max-width: 760px;
}

.article-body {
  line-height: 1.8;
  font-size: 1rem;
}

.article-body p {
  margin-bottom: 1.4em;
  color: var(--gray-700);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--indigo-bg);
  line-height: 1.25;
}

.article-body h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--indigo);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.article-body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 0.6rem;
}

.article-body ul,
.article-body ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.45em;
  color: var(--gray-700);
}

.article-body strong {
  color: var(--dark);
  font-weight: 700;
}

.article-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: rgba(43,57,144,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.article-body a:hover {
  color: var(--sky);
  text-decoration-color: var(--sky);
}

.article-body blockquote {
  border-left: 4px solid var(--sky);
  background: var(--indigo-bg);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--gray-700);
}

/* ── 13. Shortcode Boxes ──────────────────────────────────────────────────── */

/* Cost table */
.cost-table-wrap {
  margin: 1.75em 0;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
}

.cost-table-wrap table,
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
}

.cost-table-wrap table thead,
.cost-table thead {
  background: var(--indigo);
  color: var(--white);
}

.cost-table-wrap table thead th,
.cost-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cost-table-wrap table tbody tr:nth-child(even),
.cost-table tbody tr:nth-child(even) {
  background: var(--indigo-bg);
}

.cost-table-wrap table tbody tr:hover,
.cost-table tbody tr:hover {
  background: rgba(43,57,144,0.06);
}

.cost-table-wrap table tbody td,
.cost-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.cost-table-wrap table tbody td:first-child,
.cost-table tbody td:first-child {
  font-weight: 600;
  color: var(--dark);
}

/* Key box */
.key-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 1.75em 0;
}

.key-box strong {
  display: block;
  color: #1A6A4A;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.key-box p {
  color: #1E4D3A;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* Warn box */
.warn-box {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 1.75em 0;
}

.warn-box strong {
  display: block;
  color: #92400E;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.warn-box p {
  color: #6D3A0A;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* ── 14. Disclaimer Box ───────────────────────────────────────────────────── */
.disclaimer-box {
  background: var(--indigo-bg);
  border: 1px solid rgba(43,57,144,0.18);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.8125rem;
  color: var(--gray-700);
  margin-bottom: 28px;
  line-height: 1.55;
}

.disclaimer-box strong {
  color: var(--indigo-dark);
}

/* ── 15. Ad Banner ────────────────────────────────────────────────────────── */
.ad-banner {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-style: italic;
}

.ad-banner-inline  { padding: 28px 12px; }
.ad-banner-rectangle { padding: 100px 12px; }

/* ── 16. Author Bio ───────────────────────────────────────────────────────── */
.author-bio {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--indigo-bg);
  border: 1px solid rgba(43,57,144,0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 48px;
}

.author-bio-avatar {
  width: 56px;
  height: 56px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-bio h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.author-bio .role {
  font-size: 0.8125rem;
  color: var(--indigo);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* ── 17. Related Section ──────────────────────────────────────────────────── */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--indigo-bg);
}

.related-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--indigo-dark);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.related-card .card-img {
  background: var(--indigo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  height: 72px;
}

.related-card .card-body {
  padding: 12px 14px;
}

.related-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.related-card h4 a {
  color: var(--dark);
  text-decoration: none;
}

.related-card h4 a:hover {
  color: var(--indigo);
}

/* ── 18. Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--indigo);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.sidebar-widget p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 14px;
  line-height: 1.55;
}

.sidebar-cta {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  text-decoration: none;
}

.sidebar-cta:hover {
  background: var(--indigo-light);
  color: var(--white);
}

/* ── 19. List Page ────────────────────────────────────────────────────────── */
.list-header {
  padding: 48px 0 36px;
}

.list-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--indigo-dark);
  margin-bottom: 8px;
}

.list-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* ── 20. Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text strong {
  color: var(--sky);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-trust-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 4px 10px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--sky-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--sky-light);
}

/* ── 21. Popular Section ──────────────────────────────────────────────────── */
.popular-section {
  background: var(--white);
}

/* ── 22. Tag Color System (full) ──────────────────────────────────────────── */
.article-tag,
.tag-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
}

/* ── 23. Taxonomy Tag Page ────────────────────────────────────────────────── */
.taxonomy-header {
  background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 100%);
  color: var(--white);
  padding: 52px 0 40px;
  margin-bottom: 0;
}

.taxonomy-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.taxonomy-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

/* ── 24. Responsive Breakpoints ───────────────────────────────────────────── */

/* Tablet: 768–1024px */
@media (max-width: 1024px) {
  .cat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }

  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }

  /* Trust bar */
  .trust-bar .container {
    gap: 12px;
    font-size: 0.75rem;
  }

  /* Header */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 24px 24px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    margin-left: 0;
  }

  .site-nav.nav-open {
    transform: translateX(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    font-size: 1.0625rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--gray-100);
  }

  .btn-menu {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px;
  }

  .hero-stats {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .hero-stat strong {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }

  /* Categories */
  .cat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cat-card {
    padding: 18px 14px;
  }

  /* Cards */
  .guides-grid-2col {
    grid-template-columns: 1fr;
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }

  /* Article */
  .article-header { padding: 24px 0 0; }

  .article-meta-row {
    gap: 8px;
  }

  .meta-divider { display: none; }

  .article-meta-row time,
  .article-meta-row span:not(.vet-reviewed-badge) {
    font-size: 0.75rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Small mobile: ≤480px */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .cat-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    border-radius: var(--radius-sm);
  }

  .guide-card {
    flex-direction: column;
  }

  .card-link {
    width: 100%;
    min-height: 60px;
    border-right: none;
    border-bottom: 1px solid var(--gray-300);
  }

  .card-icon {
    padding: 0;
    height: 60px;
    font-size: 2rem;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── 25. Print ────────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .trust-bar,
  .site-footer,
  .ad-banner,
  .sidebar,
  #reading-progress,
  .btn-menu {
    display: none !important;
  }

  body { font-size: 12pt; color: #000; }

  .article-body h2 { color: #000; border-bottom-color: #ccc; }
  .article-body h3 { color: #000; }

  a { color: #000; text-decoration: underline; }
  .cost-table thead { background: #333 !important; }
}

/* ── Cost Box ─────────────────────────────────────────────────────────────── */
.costbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--indigo-bg);
  border: 2px solid var(--indigo);
  border-left: 5px solid var(--indigo);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.75em 0 2em;
}
.costbox-icon { font-size: 1.75rem; line-height: 1.2; flex-shrink: 0; margin-top: 2px; }
.costbox-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 6px;
}
.costbox-range {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--indigo-dark);
  line-height: 1.1;
}
.costbox-note {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.costbox-note p { margin: 0; }

/* ── FAQ Section ─────────────────────────────────────────────────────────── */
.faq-section {
  margin: 2.5em 0 1.5em;
  border-top: 2px solid var(--gray-300);
  padding-top: 2em;
}
.faq-heading {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--indigo-dark);
  margin-bottom: 1.25em;
}
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  text-align: left;
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.faq-q:hover { background: var(--indigo-bg); }
.faq-q[aria-expanded="true"] { background: var(--indigo-bg); color: var(--indigo); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { flex-shrink: 0; color: var(--indigo); transition: transform 0.2s ease; }
.faq-a {
  padding: 0 20px 16px;
  background: var(--indigo-bg);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
}
.faq-a p { margin: 0; }

/* ── Card Cost Tag ────────────────────────────────────────────────────────── */
.card-cost {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
