:root {
  --brand: #8B5CF6;
  --brand-dark: #7C3AED;
  --brand-light: #EDE9FE;
  --accent: #FFC53D;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FAFAFA;
  --card: #fff;
  --border: #E5E7EB;
  --link: #8B5CF6;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(108,63,201,0.10);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.blog-topbar {
  background: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-dark) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.blog-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.blog-topbar-logo svg { flex-shrink: 0; }

.blog-topbar-nav { display: flex; gap: 6px; }

.blog-topbar-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.blog-topbar-nav a:hover { background: rgba(255,255,255,0.15); text-decoration: none; color: #fff; }

.blog-topbar-cta {
  background: var(--accent);
  color: #1B0A47 !important;
  font-weight: 800 !important;
  border-radius: 20px;
  padding: 7px 16px !important;
}
.blog-topbar-cta:hover { background: #f0c93a; }

.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2d1b6e 100%);
  padding: 48px 20px 56px;
  text-align: center;
}

.blog-hero-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.blog-hero-title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero-excerpt {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.blog-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.blog-meta-dot { color: rgba(255,255,255,0.4); }

.blog-meta-item {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-body {
  padding: 40px 0 60px;
}

.blog-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.blog-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
}

.blog-content h2:first-child { margin-top: 0; }

.blog-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin: 24px 0 10px;
}

.blog-content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-content em { color: var(--brand); font-style: italic; font-weight: 600; }

.blog-content strong { color: var(--text-primary); font-weight: 700; }

.blog-content ul, .blog-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.blog-content li {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 6px;
}

.blog-content blockquote {
  border-left: 4px solid var(--brand);
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--brand-light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--brand-dark);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.blog-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand);
}

.blog-share {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 32px;
}

.blog-share-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }

.blog-share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.blog-share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none !important;
}
.blog-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }

.blog-share-btn.whatsapp { background: #25D366; color: #fff; }
.blog-share-btn.twitter { background: #000; color: #fff; }
.blog-share-btn.copy { background: var(--brand-light); color: var(--brand); }

.blog-cta-box {
  background: linear-gradient(135deg, var(--brand-dark), #2d1b6e);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
}

.blog-cta-box h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.blog-cta-box p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 18px; }

.blog-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1B0A47;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: transform 0.15s;
}
.blog-cta-btn:hover { transform: scale(1.03); }

.blog-ad {
  border-radius: 12px;
  margin: 28px 0;
  overflow: hidden;
}

.blog-ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-ad-publisher .blog-ad-slot {
  background: linear-gradient(135deg, #F8F4FF, #EDE9FE);
  border: 1.5px dashed #C4B5FD;
  border-radius: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-ad-placeholder { font-size: 12px; color: #9CA3AF; }

.blog-aff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
}

.blog-aff-icon { font-size: 32px; flex-shrink: 0; }

.blog-aff-body { flex: 1; }
.blog-aff-title { font-size: 14px; font-weight: 800; color: #92400E; margin-bottom: 2px; }
.blog-aff-desc { font-size: 12px; color: #B45309; }

.blog-aff-cta {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #B45309;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.blog-partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
}

.blog-partner-logo { font-size: 28px; flex-shrink: 0; }
.blog-partner-title { font-size: 14px; font-weight: 800; color: #065F46; margin-bottom: 2px; }
.blog-partner-desc { font-size: 12px; color: #16A34A; }

.blog-related {
  margin-bottom: 40px;
}

.blog-related-title { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }

.blog-related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 520px) {
  .blog-related-grid { grid-template-columns: 1fr 1fr; }
}

.blog-related-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  display: block;
  transition: transform 0.15s;
  border: 1.5px solid var(--border);
}
.blog-related-card:hover { transform: translateY(-3px); }

.blog-related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

.blog-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.blog-related-meta { font-size: 12px; color: var(--text-muted); }

.blog-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
}

.blog-footer a { color: rgba(255,255,255,0.85); }
.blog-footer a:hover { color: #fff; }

.blog-footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

.blog-not-live {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
  padding: 40px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-not-live-icon { font-size: 48px; margin-bottom: 16px; }
.blog-not-live h2 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.blog-not-live p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 520px) {
  .blog-content { padding: 20px 16px; }
  .blog-hero { padding: 36px 16px 44px; }
  .blog-topbar-nav { display: none; }
}

.blog-index-hero {
  background: linear-gradient(135deg, var(--brand-dark), #1e0f3a);
  padding: 60px 20px 48px;
  text-align: center;
}

.blog-index-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.blog-index-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 0 60px;
}

@media (min-width: 640px) {
  .blog-index-grid { grid-template-columns: 1fr 1fr; }
}

.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  transition: transform 0.18s;
  text-decoration: none !important;
  color: var(--text-primary) !important;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(108,63,201,0.15); }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-light), #EDE9FE);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.blog-card-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  align-self: flex-start;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.blog-card-author { display: flex; align-items: center; gap: 8px; }

.blog-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-author-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }

.blog-card-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; }


/* ── Sidebar + main layout for posts (desktop) ─────────── */
.blog-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 900px) {
  .blog-page-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 0 32px;
  }
}

/* ── Sidebar ads ──────────────────────────────────────── */
.blog-sidebar {
  display: none;
}
@media (min-width: 900px) {
  .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
  }
}

.blog-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-sidebar-ad {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 16px rgba(108,63,201,0.10);
  border: 1.5px solid #E5E7EB;
}

.blog-sidebar-ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9CA3AF;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-sidebar-pub-slot {
  background: linear-gradient(135deg,#F8F4FF,#EDE9FE);
  border: 1.5px dashed #C4B5FD;
  border-radius: 10px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9CA3AF;
}

.blog-sidebar-aff {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none !important;
}

.blog-sidebar-aff-icon { font-size: 28px; text-align: center; }
.blog-sidebar-aff-title { font-size: 13px; font-weight: 800; color: #92400E; line-height: 1.3; }
.blog-sidebar-aff-desc  { font-size: 11px; color: #B45309; line-height: 1.4; }
.blog-sidebar-aff-cta {
  background: #B45309;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: center;
}

.blog-sidebar-partner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
}
.blog-sidebar-partner-logo { font-size: 24px; }
.blog-sidebar-partner-title { font-size: 13px; font-weight: 800; color: #065F46; }
.blog-sidebar-partner-desc  { font-size: 11px; color: #16A34A; line-height: 1.4; }

/* ── Inline ad — between paragraphs ──────────────────── */
.blog-inline-ad {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
}

.blog-inline-ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9CA3AF;
  font-weight: 700;
  margin-bottom: 6px;
}

.blog-inline-pub {
  background: linear-gradient(135deg,#F8F4FF,#EDE9FE);
  border: 1.5px dashed #C4B5FD;
  border-radius: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9CA3AF;
}

/* ── Better index layout ─────────────────────────────── */
.blog-index-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .blog-index-main {
    grid-template-columns: 1fr 300px;
    padding: 0 32px;
  }
}

.blog-index-posts-col { padding: 32px 0 60px; }
.blog-index-sidebar-col {
  display: none;
  padding: 32px 0 60px;
}
@media (min-width: 900px) {
  .blog-index-sidebar-col { display: flex; flex-direction: column; gap: 16px; }
}

/* ── Better topbar search ────────────────────────────── */
.blog-topbar-search {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  width: 160px;
  font-family: inherit;
}
.blog-topbar-search::placeholder { color: rgba(255,255,255,0.4); }

/* ── Reading progress bar ────────────────────────────── */
#blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFC53D, #8B5CF6);
  width: 0%;
  z-index: 999;
  transition: width 0.1s linear;
}

/* ── Back to top button ──────────────────────────────── */
.blog-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #8B5CF6;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,63,201,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
.blog-back-top.visible { opacity: 1; transform: translateY(0); }

/* ── Estimated read time badge ───────────────────────── */
.blog-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 197, 61,0.15);
  border: 1px solid rgba(255, 197, 61,0.3);
  color: #FFC53D;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Desktop wider content ───────────────────────────── */
@media (min-width: 900px) {
  .blog-body { padding: 40px 0 80px; }
  .blog-content { padding: 40px 36px; }
  .blog-content h2 { font-size: 26px; }
  .blog-content p { font-size: 17px; }
  .blog-hero-title { font-size: clamp(28px, 4vw, 44px); }
}

/* ============================================================================
   ADS (filled by _blog-ads.js) — space is reserved so the page never jumps
   ============================================================================ */
.es-ad { position: relative; margin: 26px auto; text-align: center; clear: both; min-height: 0; }
.es-ad[data-kind="adsterra"] { display: flex; flex-direction: column; align-items: center; }
.es-ad-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: #9CA3AF; text-align: center; }
.es-ad-frame { display: block; border: 0; margin: 0 auto; background: transparent; }
.es-native { width: 100%; max-width: 680px; }
.es-top { padding-top: 10px; padding-bottom: 0; }
.es-top .es-ad { margin: 14px auto 0; }
.es-house { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-align: left; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(255,197,61,.16)); border: 1px solid rgba(124,58,237,.16); transition: transform .2s, box-shadow .2s; }
.es-house:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,58,237,.16); }
.es-house-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #fff; box-shadow: 0 4px 12px rgba(46,16,101,.1); }
.es-house-body { flex: 1; min-width: 0; display: block; }
.es-house-title { display: block; font-size: 14.5px; font-weight: 800; color: #1B0A47; line-height: 1.3; }
.es-house-desc { display: block; margin-top: 3px; font-size: 12.5px; color: #6B6285; line-height: 1.45; }
.es-house-cta { flex: none; padding: 8px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6D28D9, #8B5CF6); white-space: nowrap; }
.blog-sidebar .es-house { flex-direction: column; align-items: flex-start; }
.blog-sidebar .es-house-cta { align-self: stretch; text-align: center; }
.blog-sidebar .es-ad { margin: 0 0 18px; }
.es-disclosure { margin: 18px 0 0; font-size: 12px; color: #9CA3AF; line-height: 1.5; }
.es-disclosure a, .es-consent a { color: #7C3AED; text-decoration: underline; }
@media (max-width: 540px) { .es-house { flex-wrap: wrap; } .es-house-cta { width: 100%; text-align: center; } }

.es-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; padding: 4px 0 6px; background: rgba(255,255,255,.96); border-top: 1px solid rgba(0,0,0,.08); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.es-sticky-lbl { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9CA3AF; }
.es-sticky-x { position: absolute; right: 6px; top: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; font-size: 18px; line-height: 1; background: #EEE; color: #444; cursor: pointer; }
.es-sticky-slot { min-height: 50px; }
body.es-has-sticky { padding-bottom: 74px; }

.es-consent { position: fixed; z-index: 1000; left: 12px; right: 12px; bottom: 12px; max-width: 640px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: #1B0A47; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: esConsentIn .45s cubic-bezier(.16,1,.3,1) both; }
.es-consent-text { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.88); }
.es-consent a { color: #FFC53D; }
.es-consent-row { display: flex; gap: 10px; justify-content: flex-end; }
.es-consent-btn { padding: 10px 18px; border: 0; border-radius: 99px; font-size: 13px; font-weight: 800; cursor: pointer; color: #1B0A47; background: linear-gradient(135deg, #FFE8A3, #FFC53D); }
.es-consent-btn.ghost { color: #fff; background: rgba(255,255,255,.12); }
@keyframes esConsentIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* In-feed ad row spans the whole grid */
.blog-feed-ad { grid-column: 1 / -1; }
.blog-feed-ad .es-ad { margin: 4px auto; }

/* ── Cover image ─────────────────────────────────────────────────────────── */
.blog-cover-wrap { margin-top: 18px; }
.blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 34px rgba(76, 29, 149, .18); background: var(--brand-light); }
.blog-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Illustrated blocks inside posts ─────────────────────────────────────── */
.bx { margin: 26px 0; font-size: 15.5px; line-height: 1.65; }
.bx p { margin: 0; }
.bx-tip, .bx-warn, .bx-key, .bx-note, .bx-fact { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid; align-items: flex-start; }
.bx-ic { font-size: 24px; line-height: 1; flex: none; margin-top: 2px; }
.bx-tip { background: #FEF9C3; border-color: #FDE047; }
.bx-warn { background: #FEE2E2; border-color: #FCA5A5; }
.bx-key { background: #EDE9FE; border-color: #C4B5FD; }
.bx-note, .bx-fact { background: #E0F2FE; border-color: #7DD3FC; }
.bx > div > b { display: block; margin-bottom: 2px; }
.bx-qa { border-radius: 18px; overflow: hidden; border: 1.5px solid #C4B5FD; background: #fff; }
.bx-q, .bx-a { padding: 14px 18px; }
.bx-q { background: #F5F3FF; font-weight: 600; }
.bx-a { background: #ECFDF5; font-weight: 700; color: #065F46; }
.bx-q span, .bx-a span { display: block; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; font-weight: 800; opacity: .7; margin-bottom: 3px; }
.bx-steps { margin: 0; padding: 14px 18px 14px 40px; }
.bx-steps li { margin: 4px 0; }
.bx-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.bx-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-light); border: 1px solid #C4B5FD; font-weight: 600; flex: 1 1 150px; }
.bx-node b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; }
.bx-arrow { align-self: center; width: 0; height: 0; border-left: 9px solid #A78BFA; border-top: 7px solid transparent; border-bottom: 7px solid transparent; flex: none; }
@media (max-width: 560px) { .bx-flow { flex-direction: column; } .bx-arrow { transform: rotate(90deg); margin: 0 auto; } .bx-node { flex-basis: auto; } }
.bx-compare { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .bx-compare { grid-template-columns: 1fr; } }
.bx-col { padding: 16px 18px; border-radius: 16px; border: 1.5px solid; }
.bx-col h4 { margin: 0 0 8px; font-size: 15px; }
.bx-col ul { margin: 0; padding-left: 20px; }
.bx-col li { margin: 4px 0; }
.bx-col.bad { background: #FEF2F2; border-color: #FECACA; } .bx-col.bad h4 { color: #B91C1C; }
.bx-col.good { background: #F0FDF4; border-color: #BBF7D0; } .bx-col.good h4 { color: #15803D; }
.bx-timeline { list-style: none; margin: 26px 0; padding: 0 0 0 18px; border-left: 3px solid #C4B5FD; }
.bx-timeline li { position: relative; padding: 0 0 18px 18px; }
.bx-timeline li::before { content: ''; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px #8B5CF6; }
.bx-timeline b { display: block; color: var(--brand-dark); }
.bx-bars { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.bx-bars figcaption { font-weight: 800; margin-bottom: 10px; }
.bx-bar { display: grid; grid-template-columns: minmax(70px, 28%) 1fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.bx-bar > div { height: 14px; border-radius: 7px; background: #EDE9FE; overflow: hidden; }
.bx-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #8B5CF6, #FFC53D); }
.bx-bar em { font-style: normal; font-weight: 800; min-width: 36px; text-align: right; }
.bx-formula { padding: 18px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, #4C1D95, #7C3AED); color: #fff; }
.bx-formula span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; opacity: .8; }
.bx-formula code { display: block; margin: 6px 0; font-size: 20px; font-weight: 800; font-family: 'DM Sans', ui-monospace, monospace; overflow-wrap: anywhere; }
.bx-formula small { opacity: .85; }
.bx-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.bx-stats > div { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); text-align: center; }
.bx-stats b { display: block; font-size: 24px; color: var(--brand-dark); }
.bx-stats span { font-size: 13px; color: var(--text-secondary); }
.bx-check { list-style: none; padding: 0; margin: 22px 0; }
.bx-check li { position: relative; padding: 8px 0 8px 36px; border-bottom: 1px dashed var(--border); }
.bx-check li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #DCFCE7; color: #15803D; font-weight: 900; font-size: 13px; }
.bx-scene { text-align: center; margin: 26px 0; }
.bx-scene svg { max-width: 220px; height: auto; }
.bx-scene figcaption { margin-top: 6px; font-size: 13.5px; color: var(--text-secondary); }
.bx-numbered { list-style: none; counter-reset: n; padding: 0; margin: 24px 0; }
.bx-numbered li { counter-increment: n; position: relative; padding: 10px 0 10px 50px; }
.bx-numbered li::before { content: counter(n); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #3B1A00; font-weight: 900; }
.bx-numbered b { display: block; } .bx-numbered span { color: var(--text-secondary); }
.bx-table { overflow-x: auto; margin: 24px 0; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.bx-table table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14.5px; }
.bx-table th { background: var(--brand-light); text-align: left; padding: 10px 12px; font-weight: 800; }
.bx-table td { padding: 10px 12px; border-top: 1px solid var(--border); }
.bx-toc { margin: 0 0 28px; padding: 16px 18px; border-radius: 16px; background: var(--brand-light); }
.bx-toc b { display: block; margin-bottom: 6px; }
.bx-toc ol { margin: 0; padding-left: 22px; }
.bx-toc li { margin: 4px 0; }
.bx-toc a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.blog-content h2[id] { scroll-margin-top: 80px; }
.bx-faq { margin: 34px 0 10px; }
.bx-faq h2 { margin-bottom: 12px; }
.bx-faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin: 8px 0; padding: 0 16px; }
.bx-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: outside; }
.bx-faq details[open] { border-color: #C4B5FD; }
.bx-faq details p { padding: 0 0 14px; color: var(--text-secondary); }

/* ── Shop strip under posts ──────────────────────────────────────────────── */
.es-shop { margin: 30px 0; }
.es-shop h3 { margin-bottom: 12px; font-size: 18px; }
.es-shop-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.es-shop-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.es-shop-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--brand-light); }
.es-shop-card div { padding: 12px; display: grid; gap: 2px; }
.es-shop-card b { font-size: 14.5px; line-height: 1.3; }
.es-shop-card span { font-weight: 800; color: var(--brand-dark); }
