/* ═══════════════════════════════════════════════════════════════
   BLOG CSS — EscuelasEcuador
   Cargado ÚNICAMENTE en páginas de blog
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables de Blog ─────────────────────────────────────── */
:root {
  --blog-accent:       #FFD100;
  --blog-accent-dark:  #e6bc00;
  --blog-blue:         #003DA5;
  --blog-red:          #EF3340;
  --blog-card-radius:  14px;
  --blog-content-max:  780px;
  --blog-sidebar-w:    320px;
  --blog-gap:          2rem;
  --blog-shadow:       0 4px 24px rgba(0,0,0,.08);
  --blog-shadow-hover: 0 8px 32px rgba(0,0,0,.14);
  --callout-tip-bg:    #fffbeb;
  --callout-tip-border:#FFD100;
  --callout-info-bg:   #eff6ff;
  --callout-info-border:#3b82f6;
  --callout-warn-bg:   #fff7ed;
  --callout-warn-border:#f97316;
  --callout-fact-bg:   #f0fdf4;
  --callout-fact-border:#22c55e;
}
[data-theme="dark"] {
  --callout-tip-bg:    rgba(255,209,0,.08);
  --callout-info-bg:   rgba(59,130,246,.08);
  --callout-warn-bg:   rgba(249,115,22,.08);
  --callout-fact-bg:   rgba(34,197,94,.08);
}

/* ── Blog Hero ─────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #0A0E1A 0%, #003DA5 60%, #0A0E1A 100%);
  padding: 110px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD100' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,209,0,.15);
  color: #FFD100;
  border: 1px solid rgba(255,209,0,.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}
.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
  position: relative;
}
.blog-hero__title span { color: #FFD100; }
.blog-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

/* ── Category Filter Bar ───────────────────────────────────── */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border, #1F2937);
  margin-bottom: 32px;
}
.blog-filter-bar__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-muted, #9CA3AF);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-right: 4px;
}
.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border, #E5E7EB);
  color: var(--color-muted, #6B7280);
  background: transparent;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.blog-cat-pill:hover,
.blog-cat-pill.active {
  background: #FFD100;
  border-color: #FFD100;
  color: #0A0E1A;
}
[data-theme="dark"] .blog-cat-pill {
  border-color: #1F2937;
  color: #9CA3AF;
}

/* ── Blog Layout ───────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr var(--blog-sidebar-w);
  gap: var(--blog-gap);
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* ── Blog Grid ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-grid--full { grid-template-columns: 1fr; }

/* ── Blog Card ─────────────────────────────────────────────── */
.blog-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--blog-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  box-shadow: var(--blog-shadow);
}
[data-theme="dark"] .blog-card {
  background: var(--color-surface, #111827);
  border-color: var(--color-border, #1F2937);
}
.blog-card:hover {
  box-shadow: var(--blog-shadow-hover);
  transform: translateY(-4px);
}
.blog-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}
[data-theme="dark"] .blog-card__img-wrap { background: #1F2937; }
.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.blog-card:hover .blog-card__img-wrap img { transform: scale(1.05); }
.blog-card__cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(10,14,26,.75);
  backdrop-filter: blur(6px);
  color: #FFD100;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .3px;
}
.blog-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  line-height: 1.4;
  margin: 0 0 .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .blog-card__title { color: #F9FAFB; }
.blog-card__excerpt {
  font-size: .85rem;
  color: var(--color-muted, #6B7280);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  color: var(--color-muted, #9CA3AF);
  border-top: 1px solid var(--color-border, #E5E7EB);
  padding-top: .8rem;
  margin-top: auto;
}
[data-theme="dark"] .blog-card__meta { border-color: #1F2937; }
.blog-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFD100;
  flex-shrink: 0;
}
.blog-card__author { font-weight: 600; color: var(--color-muted, #374151); }
[data-theme="dark"] .blog-card__author { color: #D1D5DB; }
.blog-card__dot { color: var(--color-muted, #D1D5DB); }
.blog-card__read {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Featured Card (top 3 del hub) ────────────────────────── */
.blog-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .blog-featured-grid { grid-template-columns: 1fr; } }
.blog-featured-grid > .blog-card:first-child .blog-card__title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.blog-featured-grid > .blog-card:first-child .blog-card__img-wrap { aspect-ratio: 16/7; }
.blog-featured-right { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Pagination ────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border, #E5E7EB);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-muted, #6B7280);
  text-decoration: none;
  transition: all .2s;
  background: transparent;
}
[data-theme="dark"] .blog-page-btn { border-color: #1F2937; color: #9CA3AF; }
.blog-page-btn:hover,
.blog-page-btn.active {
  background: #FFD100;
  border-color: #FFD100;
  color: #0A0E1A;
}
.blog-page-btn.wide { width: auto; padding: 0 14px; }

/* ── Sidebar ───────────────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}
/* Static variant — no sticky, but keeps layout */
.article-sidebar--static {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: static !important;
  top: auto !important;
}
.blog-sidebar-widget {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 14px;
  padding: 1.25rem;
}
[data-theme="dark"] .blog-sidebar-widget {
  background: #111827;
  border-color: #1F2937;
}
.blog-sidebar-widget__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-muted, #9CA3AF);
  margin: 0 0 .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .blog-sidebar-widget__title { border-color: #1F2937; }
.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  list-style: none;
  padding: 0; margin: 0;
}
.sidebar-recent-item a {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.sidebar-recent-item img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.sidebar-recent-item__text {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text, #111827);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
[data-theme="dark"] .sidebar-recent-item__text { color: #F9FAFB; }
.sidebar-recent-item a:hover .sidebar-recent-item__text { color: #003DA5; }
[data-theme="dark"] .sidebar-recent-item a:hover .sidebar-recent-item__text { color: #FFD100; }
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  list-style: none;
  padding: 0; margin: 0;
}
.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .6rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--color-text, #374151);
  text-decoration: none;
  transition: background .2s, color .2s;
}
[data-theme="dark"] .sidebar-cat-list a { color: #D1D5DB; }
.sidebar-cat-list a:hover { background: rgba(255,209,0,.1); color: #003DA5; }
[data-theme="dark"] .sidebar-cat-list a:hover { color: #FFD100; background: rgba(255,209,0,.08); }
.sidebar-cat-count {
  background: var(--color-border, #F3F4F6);
  color: var(--color-muted, #9CA3AF);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
[data-theme="dark"] .sidebar-cat-count { background: #1F2937; }

/* ── Article Page ──────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--blog-sidebar-w);
  gap: var(--blog-gap);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* Article Hero — full background image */
.article-hero {
  background: linear-gradient(135deg, #0A0E1A 0%, #001a4d 100%);
  padding: 60px 0 0;
}

/* New: hero with background image */
.article-hero--bg {
  position: relative;
  min-height: 480px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,26,.35) 0%,
    rgba(10,14,26,.70) 45%,
    rgba(10,14,26,.97) 100%
  );
  z-index: 0;
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  max-width: 860px;
  width: 100%;
}
@media (max-width: 768px) {
  .article-hero--bg { min-height: 360px; }
  .article-hero__inner { padding-top: 3rem; }
}
.article-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,209,0,.12);
  color: #FFD100;
  border: 1px solid rgba(255,209,0,.25);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 16px;
  display: inline-flex;
}
.article-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 28px;
}
.article-hero__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #FFD100;
}
.article-hero__author-info { display: flex; flex-direction: column; }
.article-hero__author-name {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
}
.article-hero__author-role {
  font-size: .73rem;
  color: rgba(255,255,255,.55);
}
.article-hero__divider { width: 1px; height: 24px; background: rgba(255,255,255,.2); }
.article-hero__date, .article-hero__read {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Cover Image — hidden when using --bg hero */
.article-cover {
  display: none;
}
@media (max-width: 768px) { .article-cover { aspect-ratio: 16/9; } }

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--color-muted, #9CA3AF);
  padding: 14px 0;
  flex-wrap: wrap;
}
.blog-breadcrumb a {
  color: var(--color-muted, #9CA3AF);
  text-decoration: none;
  transition: color .2s;
}
/* Light variant — over dark hero background */
.blog-breadcrumb--light,
.blog-breadcrumb--light a,
.blog-breadcrumb--light .blog-breadcrumb__sep,
.blog-breadcrumb--light .blog-breadcrumb__current {
  color: rgba(255,255,255,.75);
}
.blog-breadcrumb--light a:hover { color: #FFD100; }
.blog-breadcrumb a:hover { color: #003DA5; }
[data-theme="dark"] .blog-breadcrumb a:hover { color: #FFD100; }
.blog-breadcrumb__sep { opacity: .45; }
.blog-breadcrumb__current { color: var(--color-text, #374151); font-weight: 600; }
[data-theme="dark"] .blog-breadcrumb__current { color: #F9FAFB; }

/* Article Body */
.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--color-text, #1F2937);
  max-width: var(--blog-content-max);
}
[data-theme="dark"] .article-body { color: #D1D5DB; }
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 2.2rem 0 .9rem;
  color: var(--color-text, #111827);
  padding-bottom: .4rem;
  border-bottom: 3px solid #FFD100;
  display: inline-block;
}
[data-theme="dark"] .article-body h2 { color: #F9FAFB; }
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.8rem 0 .7rem;
  color: var(--color-text, #111827);
}
[data-theme="dark"] .article-body h3 { color: #F9FAFB; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--color-text, #111827); }
[data-theme="dark"] .article-body strong { color: #F9FAFB; }
.article-body a {
  color: #003DA5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .article-body a { color: #60a5fa; }
.article-body a:hover { color: #EF3340; }

/* Article Images inside body */
.article-body img {
  display: block;
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.article-body figure {
  margin: 1.5rem 0;
}
.article-body figcaption {
  font-size: .78rem;
  color: var(--color-muted, #9CA3AF);
  text-align: center;
  margin-top: .4rem;
  font-style: italic;
}
.article-img-wide  { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-img-square{ width: 100%; max-width: 480px; aspect-ratio: 1; object-fit: cover; display: block; margin: 0 auto; }

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .88rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-border, #E5E7EB);
}
[data-theme="dark"] .article-body table { border-color: #1F2937; }
.article-body th {
  background: #003DA5;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}
.article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  color: var(--color-text, #374151);
}
[data-theme="dark"] .article-body td {
  border-color: #1F2937;
  color: #D1D5DB;
}
.article-body tr:nth-child(even) td { background: rgba(0,0,0,.02); }
[data-theme="dark"] .article-body tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.article-body tr:last-child td { border-bottom: none; }

/* ── Callout Boxes ─────────────────────────────────────────── */
.callout {
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-left: 4px solid;
}
.callout__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.callout__content { flex: 1; }
.callout__title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 .3rem;
}
.callout__text {
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
}
/* Tip */
.callout--tip {
  background: var(--callout-tip-bg);
  border-color: var(--callout-tip-border);
}
.callout--tip .callout__title { color: #b45309; }
/* Info */
.callout--info {
  background: var(--callout-info-bg);
  border-color: var(--callout-info-border);
}
.callout--info .callout__title { color: #1d4ed8; }
/* Warning */
.callout--warn {
  background: var(--callout-warn-bg);
  border-color: var(--callout-warn-border);
}
.callout--warn .callout__title { color: #c2410c; }
/* Fact */
.callout--fact {
  background: var(--callout-fact-bg);
  border-color: var(--callout-fact-border);
}
.callout--fact .callout__title { color: #15803d; }

/* ── Pull Quote / Cita Destacada ───────────────────────────── */
.pull-quote {
  border-left: 4px solid #FFD100;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(255,209,0,.06);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-text, #1F2937);
  margin: 0;
  line-height: 1.6;
}
[data-theme="dark"] .pull-quote p { color: #F9FAFB; }

/* ── Author Box ────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-surface, #F9FAFB);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2.5rem 0 0;
}
[data-theme="dark"] .author-box {
  background: #111827;
  border-color: #1F2937;
}
.author-box__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD100;
  flex-shrink: 0;
}
.author-box__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text, #111827);
  margin: 0 0 2px;
}
[data-theme="dark"] .author-box__name { color: #F9FAFB; }
.author-box__role {
  font-size: .78rem;
  color: #003DA5;
  font-weight: 600;
  margin: 0 0 .7rem;
}
[data-theme="dark"] .author-box__role { color: #60a5fa; }
.author-box__bio {
  font-size: .86rem;
  color: var(--color-muted, #6B7280);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Social Share ──────────────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-border, #E5E7EB);
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  margin: 1.5rem 0;
}
[data-theme="dark"] .social-share { border-color: #1F2937; }
.social-share__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-muted, #9CA3AF);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  color: #fff;
}
.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-btn--facebook  { background: #1877F2; }
.share-btn--twitter   { background: #000; }
.share-btn--whatsapp  { background: #25D366; }
.share-btn--linkedin  { background: #0A66C2; }
.share-btn--copy {
  background: var(--color-border, #E5E7EB);
  color: var(--color-text, #374151);
}
[data-theme="dark"] .share-btn--copy {
  background: #1F2937;
  color: #D1D5DB;
}

/* ── Table of Contents (ToC) ───────────────────────────────── */
.toc-widget {
  background: var(--color-surface, #F9FAFB);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
[data-theme="dark"] .toc-widget {
  background: #111827;
  border-color: #1F2937;
}
.toc-widget__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-muted, #9CA3AF);
  margin: 0 0 .8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.toc-list a {
  font-size: .82rem;
  color: var(--color-muted, #6B7280);
  text-decoration: none;
  display: block;
  padding: .2rem .3rem;
  border-radius: 5px;
  transition: color .2s, background .2s;
  line-height: 1.4;
}
.toc-list a:hover { color: #003DA5; background: rgba(0,61,165,.05); }
[data-theme="dark"] .toc-list a:hover { color: #FFD100; background: rgba(255,209,0,.06); }

/* ── Related Posts ─────────────────────────────────────────── */
.related-posts { margin-top: 3rem; }
.related-posts__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 1.2rem;
  color: var(--color-text, #111827);
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .related-posts__title { color: #F9FAFB; }
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .related-posts__grid { grid-template-columns: 1fr; } }

/* ── Home Blog Section ─────────────────────────────────────── */
.home-blog-section {
  background: var(--color-surface, #F9FAFB);
  padding: 64px 0;
}
[data-theme="dark"] .home-blog-section { background: #0D1117; }
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .home-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px)  { .home-blog-grid { grid-template-columns: 1fr; } }

/* ── No Posts State ────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted, #9CA3AF);
}
.blog-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: .4; }
.blog-empty p { font-size: 1rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-hero { padding: 60px 0 40px; }
  .article-hero { padding: 40px 0 0; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.05rem; }
  .social-share { flex-direction: column; align-items: flex-start; }
  .article-body img { max-width: 100%; }
}
