/* ═══════════════════════════════════════════════════════════════
   PetsBigStore Blog — OTAL-exact design system
   Font: Montserrat | Primary: #C10037 | Built to pixel-match OTAL
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --primary: #C10037;
  --primary-light: rgba(193,0,55,.08);
  --primary-ring: 0 0 0 4px rgba(193,0,55,.1);
  --heading: #111827;
  --body-text: #374151;
  --muted: #6b7280;
  --light-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #e9ecef;
  --bg-light: #f8f9fa;
  --bg-lighter: #f3f4f6;
  --bg-page: #fafafa;
  --white: #fff;
  --black: #000;
  --code-bg: #1f2937;
  --code-text: #e5e7eb;
  --inline-code-bg: #f3f4f6;
  --inline-code: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 15px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.15);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 50px;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* ── READING PROGRESS BAR ──────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 4px;
  background: rgba(0,0,0,.1);
  z-index: 9999;
}
.reading-progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, #ff6b6b 100%);
  transition: width 0.1s ease-out;
}

/* ── BLOG HERO (full-width image, title centered) ──────────── */
.blog-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  margin-bottom: 0;
}
.blog-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.2) 100%
  );
}
.blog-hero__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero__title {
  font-family: var(--font);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0; margin: 0 0 1rem;
  font-size: 0.875rem;
  font-family: var(--font);
}
.blog-breadcrumb li { display: flex; align-items: center; }
.blog-breadcrumb li + li::before {
  content: '›';
  margin: 0 0.5rem;
  color: var(--light-muted);
}
.blog-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-breadcrumb .active { color: var(--light-muted); }

/* ── ARTICLE META (category badge + read time) ─────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.article-meta .tag-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
}
.article-meta .tag-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.article-meta .read-time {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font);
}

/* ── ARTICLE HEADER (h1 + author info) ─────────────────────── */
.article-header {
  margin-bottom: 1.25rem;
}
.article-header h1 {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.article-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font);
  flex-wrap: wrap;
}
.article-info .author-name {
  font-weight: 600;
  color: var(--heading);
}
.article-info .separator {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.article-info .view-count::before {
  content: '👁 ';
}

/* ── SHARE BUTTONS (horizontal row — 45px circles) ─────────── */
.share-section {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.share-section__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font);
  margin-right: 0.25rem;
}
.share-btn {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.share-btn-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn-twitter:hover  { background: #000;    color: #fff; border-color: #000; }
.share-btn-linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }
.share-btn-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn-copy:hover     { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── FLOATING SHARE BUTTONS (vertical, left edge of content — OTAL) ── */
.floating-share {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.floating-share.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-share .share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.floating-share .share-btn svg { width: 16px; height: 16px; }
.floating-share .share-btn:hover { transform: scale(1.15); box-shadow: var(--shadow); }
.floating-share .share-btn-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.floating-share .share-btn-twitter:hover  { background: #000;    color: #fff; border-color: #000; }
.floating-share .share-btn-linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }
.floating-share .share-btn-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.floating-share .share-btn-copy:hover     { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── HERO META OVERLAY (category + read time on hero) ────────── */
.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.blog-hero__cat {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
}
.blog-hero__read-time {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  font-family: var(--font);
}

/* ── TABLE OF CONTENTS (inline card before article body — OTAL) ── */
.toc-inline {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  font-family: var(--font);
}
.toc-inline h3 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.toc-inline ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  counter-reset: toc;
}
.toc-inline li { margin-bottom: 0; }
.toc-inline a {
  display: block;
  padding: 0.5rem 0;
  color: var(--body-text);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-lighter);
  transition: var(--transition);
  line-height: 1.4;
}
.toc-inline a:hover { color: var(--primary); padding-left: 4px; }
.toc-inline a.active { color: var(--primary); font-weight: 600; }

/* ── TWO-COLUMN LAYOUT (8/4 like OTAL) ─────────────────────── */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 0 80px; /* left padding for floating share buttons */
}
.blog-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
@media (max-width: 991.98px) {
  .blog-container { padding: 0 24px; } /* reset left padding when no floating share */
}

/* ── ARTICLE CONTENT TYPOGRAPHY (Montserrat, OTAL exact) ───── */
.article-content {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--body-text);
}
.article-content h2 {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}
.article-content h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.article-content h4 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 0.5rem;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content p:last-child { margin-bottom: 0; }

/* Images */
.article-content img,
.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  display: block;
}
.article-content figure {
  margin: 1.5rem 0;
}
.article-content figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Video embed */
.article-content .video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.article-content .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  font-style: italic;
  color: var(--muted);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { margin-bottom: 0.5rem; }
.article-content blockquote cite {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  font-style: normal;
  margin-top: 0.5rem;
}

/* Lists */
.article-content ul, .article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-content th {
  background: var(--heading);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td {
  background: var(--bg-light);
}

/* Code */
.article-content code {
  background: var(--inline-code-bg);
  color: var(--inline-code);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}
.article-content pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Links inside content */
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(193,0,55,.3);
  text-underline-offset: 2px;
  transition: var(--transition);
}
.article-content a:hover {
  text-decoration-color: var(--primary);
}

/* ── AFFILIATE CTA ─────────────────────────────────────────── */
.cta-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cta-affiliate:hover {
  background: #a30030;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--white);
}
.cta-trust {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-family: var(--font);
}
.cta-trust a {
  color: var(--muted);
  text-decoration: underline;
}
.cta-trust a:hover { color: var(--primary); }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}
.sidebar-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
}
.sidebar-card h3, .sidebar-card h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* TOC */
.toc-card ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
}
.toc-card li {
  margin-bottom: 0;
}
.toc-card a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-lighter);
  transition: var(--transition);
  line-height: 1.4;
}
.toc-card a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.toc-card a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Author card */
.author-card .author-title {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.author-card .author-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── SIDEBAR: Related Articles (with thumbnails — OTAL) ────── */
.related-sidebar-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-lighter);
  text-decoration: none;
  transition: var(--transition);
}
.related-sidebar-card:last-child { border-bottom: none; }
.related-sidebar-card:hover { transform: translateX(3px); }
.related-sidebar-card__img {
  width: 80px; height: 60px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}
.related-sidebar-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.related-sidebar-card__cat {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── SIDEBAR: Popular Articles (numbered — OTAL) ─────────────── */
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-lighter);
  text-decoration: none;
  transition: var(--transition);
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { transform: translateX(3px); }
.popular-item__rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-lighter);
  color: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font);
}
.popular-item__rank--top { background: var(--primary); color: var(--white); }
.popular-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}
.popular-item__views {
  font-size: 0.75rem;
  color: var(--light-muted);
}

/* ── SIDEBAR: Categories (with counts — OTAL) ────────────────── */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--bg-lighter);
}
.category-list li:last-child { border-bottom: none; }
.category-list a {
  font-size: 0.875rem;
  color: var(--body-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.category-list a:hover { color: var(--primary); }
.category-list .cat-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-muted);
  background: var(--bg-lighter);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* ── BOTTOM SHARE (with labels — OTAL) ───────────────────────── */
.share-bottom {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  text-align: center;
}
.share-bottom h4 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 1rem;
}
.share-bottom__row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-label-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.share-label-btn svg { width: 16px; height: 16px; }
.share-label-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-label-btn--facebook { background: #1877f2; }
.share-label-btn--twitter  { background: #000; }
.share-label-btn--linkedin { background: #0077b5; }
.share-label-btn--whatsapp { background: #25d366; }
.share-label-btn--copy     { background: var(--muted); }

/* ── ESSENTIAL READING (full-width section below content — OTAL) ─ */
.essential-reading {
  background: var(--bg-light);
  padding: 4rem 0;
  margin-top: 0;
}
.essential-reading h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
}
.essential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.essential-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-slow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.essential-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.essential-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.essential-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.essential-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.essential-card__read-time {
  font-size: 0.8rem;
  color: var(--light-muted);
  margin-bottom: 0.75rem;
}
.essential-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* ── CTA CARD (inside article — OTAL) ────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  color: var(--white);
}
.article-cta h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
}
.article-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.article-cta .cta-btn:hover { background: #a30030; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(193,0,55,.3); }

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  font-family: var(--font);
  transition: var(--transition);
}
.tag-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── RELATED ARTICLES (3-col grid) ─────────────────────────── */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-section h3 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-slow);
  text-decoration: none;
  display: block;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.related-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.related-card:hover .related-card__img {
  transform: scale(1.05);
}
.related-card__body {
  padding: 1rem;
}
.related-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-family: var(--font);
}
.related-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  font-family: var(--font);
  margin-bottom: 0.25rem;
}
.related-card__date {
  font-size: 0.75rem;
  color: var(--light-muted);
  font-family: var(--font);
}

/* ── COMMENTS ──────────────────────────────────────────────── */
.comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comments-section h4 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
}
.comments-section .no-comments {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font);
  margin-bottom: 1rem;
}

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-section { margin: 2.5rem 0; }
.faq-section > h2 { margin-bottom: 1.25rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-trigger:hover { color: var(--primary); }
.faq-trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  transition: transform 0.2s;
}
.faq-item.open .faq-trigger::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer__inner {
  padding: 0 0 1.25rem;
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.75;
  font-family: var(--font);
}

/* ── AUTHOR BIO (bottom of article) ────────────────────────── */
.author-bio-bottom {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2.5rem 0;
  font-family: var(--font);
}
.author-bio-bottom__pic {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.author-bio-bottom__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.125rem;
}
.author-bio-bottom__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.author-bio-bottom__creds {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.author-bio-bottom__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG INDEX PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── INDEX HERO ────────────────────────────────────────────── */
.blog-index-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}
.blog-index-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-page);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.blog-index-hero h1 {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.blog-index-hero p {
  font-family: var(--font);
  font-size: 1rem;
  color: rgba(255,255,255,.45);
}

/* ── FEATURED CARD (large, like OTAL screenshot) ───────────── */
.featured-section {
  margin-bottom: 2.5rem;
}
.featured-section__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition-slow);
}
.featured-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.featured-card__img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.featured-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-card:hover .featured-card__img-wrap img {
  transform: scale(1.04);
}
.featured-card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}
.featured-card__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font);
}
.featured-card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.featured-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.featured-card__excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card__meta {
  font-size: 0.85rem;
  color: var(--light-muted);
  margin-bottom: 1rem;
}
.featured-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── FILTER BAR (search + category dropdown + sort) ────────── */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  font-family: var(--font);
}
.blog-search-wrap {
  position: relative;
  flex: 0 0 auto;
  min-width: 220px;
}
.blog-search-wrap svg {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--light-muted);
  pointer-events: none;
}
.blog-search-wrap input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--heading);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.blog-search-wrap input::placeholder { color: var(--light-muted); }
.blog-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: var(--primary-ring);
}
.blog-filter-select {
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  outline: none;
  transition: var(--transition);
}
.blog-filter-select:focus {
  border-color: var(--primary);
  box-shadow: var(--primary-ring);
}
.blog-filter-bar__right {
  margin-left: auto;
}

/* ── ARTICLE GRID (3 columns) ──────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ── ARTICLE CARD (image with category badge overlay) ──────── */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-slow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.article-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card__img {
  transform: scale(1.05);
}
/* Red category badge overlaid on bottom-left of image (like OTAL screenshot) */
.article-card__cat-badge {
  position: absolute;
  bottom: 0.625rem; left: 0.625rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}
.article-card__body {
  padding: 1rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.article-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.article-card__excerpt {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.625rem;
}
.article-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--light-muted);
  margin-top: auto;
  margin-bottom: 0.5rem;
}
.article-card__link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── PAGINATION ────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 2rem 0 3rem;
}
.blog-pagination button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.blog-pagination button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-pagination button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.blog-pagination button svg {
  width: 16px; height: 16px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .blog-hero { min-height: 350px; }
  .blog-hero__title { font-size: 1.75rem; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .essential-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__img-wrap { min-height: 240px; }
  .featured-card__title { font-size: 1.5rem; }
  .floating-share { display: none; }
}
@media (max-width: 575.98px) {
  .blog-hero { min-height: 280px; }
  .blog-hero__title { font-size: 1.375rem; }
  .blog-hero__meta { flex-direction: column; gap: 0.5rem; align-items: center; }
  .article-header h1 { font-size: 1.5rem; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.375rem; }
  .article-content h3 { font-size: 1.125rem; }
  .sidebar-card { padding: 1.25rem; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .essential-grid { grid-template-columns: 1fr; }
  .share-section { flex-wrap: wrap; }
  .share-bottom__row { flex-direction: column; align-items: center; }
  .article-info { flex-direction: column; gap: 0.25rem; }
  .author-bio-bottom { flex-direction: column; text-align: center; align-items: center; }
  .blog-filter-bar { flex-direction: column; align-items: stretch; }
  .blog-filter-bar__right { margin-left: 0; }
  .featured-card__body { padding: 1.5rem; }
  .blog-index-hero h1 { font-size: 1.75rem; }
  .toc-inline { padding: 1.25rem; }
  .article-cta { padding: 1.5rem; }
  .article-cta h3 { font-size: 1.25rem; }
}
