/* ============================================================
   PAGE-BLOG.CSS — AutoRoy AI Blog Page (v2)
============================================================ */

/* ── Hero ──────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 140px 0 72px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% -5%,
    rgba(139,92,246,0.22) 0%,
    rgba(6,182,212,0.09) 55%,
    transparent 100%);
}
.bh-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.bh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.bh-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,0.24) 0%, transparent 70%);
  top: -80px; right: 5%;
  animation: orb-drift-1 11s ease-in-out infinite alternate;
}
.bh-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  bottom: -40px; left: 8%;
  animation: orb-drift-2 14s ease-in-out infinite alternate;
}

/* ── Scrolling ticker ──────────────────────────────────── */
.bh-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  border-top: 1px solid rgba(139,92,246,0.12);
  background: rgba(139,92,246,0.04);
}
.bh-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: bh-ticker-scroll 28s linear infinite;
  height: 100%;
}
.bh-ticker-track span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(167,139,250,0.65);
  padding: 0 16px;
  letter-spacing: 0.04em;
}
.bh-tick-sep {
  color: rgba(139,92,246,0.30) !important;
  padding: 0 4px !important;
}
@keyframes bh-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero inner ──────────────────────────────────────── */
.bh-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.bh-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin: 18px 0 16px;
  letter-spacing: -1px;
}
.bh-sub {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ── Topic pills ─────────────────────────────────────── */
.bh-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.bh-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  animation: bh-pill-float 4s ease-in-out infinite alternate;
}
.bh-pill:nth-child(2) { animation-delay: 0.4s; }
.bh-pill:nth-child(3) { animation-delay: 0.8s; }
.bh-pill:nth-child(4) { animation-delay: 1.2s; }
.bh-pill:nth-child(5) { animation-delay: 1.6s; }
@keyframes bh-pill-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}
.bh-pill-purple { color: #a78bfa; background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.22); }
.bh-pill-blue   { color: #38bdf8; background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.22); }
.bh-pill-teal   { color: #34d399; background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.22); }
.bh-pill-amber  { color: #f59e0b; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.22); }
.bh-pill-green  { color: #4ade80; background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.22); }

/* ── Stats row ───────────────────────────────────────── */
.bh-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 10px 28px;
}
.bh-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
}
.bh-stat-num {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bh-stat-lbl {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.bh-stat-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

/* ── Category Filter Bar ────────────────────────────── */
.blog-filter-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(7,7,20,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 0;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 600;
  color: rgba(148,163,184,0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.bf-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(139,92,246,0.30);
  color: var(--text);
}
.bf-btn.bf-active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.40);
  color: #c4b5fd;
}
.bf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bf-count {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 1px 7px;
}
.bf-btn.bf-active .bf-count { background: rgba(139,92,246,0.20); }

/* ── Blog Content Section ───────────────────────────── */
.blog-content-section { padding-top: 64px; }

/* ── Blog item transition ───────────────────────────── */
.blog-item {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ── Featured Article ───────────────────────────────── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s, border-color 0.3s;
}
.blog-featured:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 28px 64px rgba(0,0,0,0.25);
}

/* Cover panel */
.bfeat-cover-link {
  display: block;
  position: relative;
}
.bfeat-cover {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bfeat-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Floating node decorations */
.bfeat-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  animation: bfeat-node-float 3.5s ease-in-out infinite alternate;
}
.bfeat-node-1 { top: 20px; right: 20px;  animation-delay: 0s; }
.bfeat-node-2 { bottom: 24px; right: 36px; animation-delay: 0.6s; }
.bfeat-node-3 { bottom: 24px; left: 24px; animation-delay: 1.1s; }
@keyframes bfeat-node-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

/* Big icon in center */
.bfeat-icon-wrap {
  position: relative;
  z-index: 1;
  opacity: 0.9;
  transition: transform 0.35s ease, opacity 0.35s;
}
.blog-featured:hover .bfeat-icon-wrap {
  transform: scale(1.08);
  opacity: 1;
}

/* "מאמר מומלץ" badge */
.bfeat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  padding: 4px 12px;
  backdrop-filter: blur(8px);
}

/* Large article number */
.bfeat-num {
  position: absolute;
  bottom: -12px;
  right: -6px;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
}

/* Content panel */
.bfeat-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.bfeat-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.bfeat-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.bfeat-title a:hover { color: #a78bfa; }
.bfeat-excerpt {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-2);
  margin: 0;
}
.bfeat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bfeat-cta { white-space: nowrap; flex-shrink: 0; }

/* ── Blog grids ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blog-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Article Card ───────────────────────────────────── */
.blog-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.22);
  box-shadow: 0 20px 52px rgba(0,0,0,0.22);
}

/* Wide card (2-col grid) — horizontal layout */
.blog-card--wide {
  flex-direction: row;
  border-radius: 20px;
}
.blog-card--wide .bc-cover-link { flex-shrink: 0; width: 220px; }
.blog-card--wide .bc-cover {
  height: 100%;
  min-height: 200px;
  border-radius: 0;
}
.blog-card--wide .bc-body { justify-content: center; }

/* Card cover */
.bc-cover-link { display: block; position: relative; }
.bc-cover {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bc-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bc-icon {
  position: relative;
  z-index: 1;
  opacity: 0.80;
  transition: transform 0.3s ease, opacity 0.3s;
}
.blog-card:hover .bc-icon { transform: scale(1.10); opacity: 1; }

/* Article number on card cover */
.bc-num {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  letter-spacing: -3px;
  pointer-events: none;
  user-select: none;
}

/* Card body */
.bc-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.bc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.bc-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.bc-title a:hover { color: #a78bfa; }
.bc-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(148,163,184,0.70);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bc-date { font-size: 12px; color: rgba(148,163,184,0.45); }
.bc-more {
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s;
}
.bc-more:hover { color: #38bdf8; }

/* ── Shared meta ──────────────────────────────────── */
.bc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bc-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 100px;
  padding: 3px 10px;
}
.bc-cat-purple { color: #a78bfa; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.22); }
.bc-cat-blue   { color: #38bdf8; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.22); }
.bc-cat-teal   { color: #34d399; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.22); }
.bc-cat-amber  { color: #f59e0b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.22); }

.bc-reading {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(148,163,184,0.55);
}
.bc-new-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  animation: blink-new 2.4s ease-in-out infinite;
}
@keyframes blink-new {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.bc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bc-tag {
  font-size: 11px;
  font-weight: 600;
  color: rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 3px 9px;
}

/* Author */
.bc-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139,92,246,0.35);
  flex-shrink: 0;
}
.bc-author-info { display: flex; flex-direction: column; gap: 1px; }
.bc-author-info strong { font-size: 13px; font-weight: 700; color: var(--text); }
.bc-author-info span   { font-size: 12px; color: rgba(148,163,184,0.50); }

/* ── Cover gradient variants ────────────────────────── */
.bc-grad-purple  { background: linear-gradient(135deg, #4c1d95 0%, #1e3a5f 100%); }
.bc-grad-green   { background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%); }
.bc-grad-blue    { background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%); }
.bc-grad-indigo  { background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%); }
.bc-grad-amber   { background: linear-gradient(135deg, #78350f 0%, #92400e 100%); }
.bc-grad-teal    { background: linear-gradient(135deg, #134e4a 0%, #0e7490 100%); }

/* ── Empty state ─────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: rgba(148,163,184,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.blog-empty svg { opacity: 0.4; }
.blog-empty p { font-size: 15px; margin: 0; }

/* ── CTA Strip ────────────────────────────────────── */
.blog-cta-section { padding-top: 0; }
.blog-cta-box {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 52px 40px;
}
.bcta-orb-1, .bcta-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.bcta-orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.16) 0%, transparent 70%);
  top: -80px; right: -60px;
}
.bcta-orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  bottom: -60px; left: -40px;
}

/* horizontal 3-column layout: icon | text | action */
.bcta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.bcta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(14,165,233,0.20));
  border: 1px solid rgba(139,92,246,0.28);
  color: #a78bfa;
  flex-shrink: 0;
}
.bcta-text {}
.bcta-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 8px;
}
.bcta-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
}
.bcta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bcta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  padding: 14px 28px;
  white-space: nowrap;
}
.bcta-note {
  font-size: 12px;
  color: rgba(148,163,184,0.45);
  text-align: center;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bfeat-num { font-size: 80px; }
}

@media (max-width: 768px) {
  .blog-hero { padding: 120px 0 48px; }

  .blog-featured { grid-template-columns: 1fr; }
  .bfeat-cover { min-height: 200px; }
  .bfeat-content { padding: 28px 24px; }
  .bfeat-footer { flex-direction: column; align-items: flex-start; }
  .bfeat-cta { width: 100%; text-align: center; justify-content: center; }

  .blog-grid--3 { grid-template-columns: 1fr; }
  .blog-grid--2 { grid-template-columns: 1fr; }
  .blog-card--wide { flex-direction: column; }
  .blog-card--wide .bc-cover-link { width: 100%; }
  .blog-card--wide .bc-cover { height: 160px; }

  .blog-filter-bar { top: 64px; }
  .blog-filters { gap: 6px; }
  .bf-btn { padding: 7px 14px; font-size: 12px; }

  .bh-stats { flex-wrap: wrap; padding: 12px 18px; }
  .bh-stat { padding: 0 12px; }
  .bh-stat-div { display: none; }

  .bh-pills { gap: 6px; }
  .bh-pill { font-size: 11px; padding: 5px 12px; }

  .bcta-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .bcta-icon { margin: 0 auto; }
  .bcta-sub { max-width: 100%; margin: 0 auto; }
  .bcta-btn { width: 100%; justify-content: center; }
  .blog-cta-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .bh-title { font-size: 34px; }
  .bh-sub { font-size: 15px; }
  .bfeat-title { font-size: 20px; }
}

/* ── Light mode ──────────────────────────────────── */
body.light-mode .blog-hero {
  background: radial-gradient(ellipse 80% 55% at 50% -5%,
    rgba(139,92,246,0.10) 0%,
    rgba(6,182,212,0.05) 55%,
    transparent 100%);
}
body.light-mode .bh-mesh {
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
}
body.light-mode .bh-ticker {
  background: rgba(139,92,246,0.03);
  border-top-color: rgba(139,92,246,0.08);
}
body.light-mode .bh-stats {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .bh-stat-lbl { color: #475569; }
body.light-mode .bh-pill-purple { background: rgba(139,92,246,0.08); }
body.light-mode .bh-pill-blue   { background: rgba(56,189,248,0.08); }
body.light-mode .bh-pill-teal   { background: rgba(52,211,153,0.08); }
body.light-mode .bh-pill-amber  { background: rgba(245,158,11,0.08); }
body.light-mode .bh-pill-green  { background: rgba(74,222,128,0.08); }

body.light-mode .blog-filter-bar {
  background: rgba(255,255,255,0.90);
  border-color: rgba(0,0,0,0.08);
}
body.light-mode .bf-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.09);
  color: #475569;
}
body.light-mode .bf-btn:hover { background: rgba(0,0,0,0.06); }
body.light-mode .bf-btn.bf-active {
  background: rgba(139,92,246,0.10);
  border-color: rgba(139,92,246,0.30);
  color: #7c3aed;
}
body.light-mode .blog-featured,
body.light-mode .blog-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
body.light-mode .bc-title,
body.light-mode .bfeat-title { color: #0f172a; }
body.light-mode .bc-excerpt,
body.light-mode .bfeat-excerpt { color: #475569; }
body.light-mode .bc-footer,
body.light-mode .bfeat-footer { border-color: rgba(0,0,0,0.07); }
body.light-mode .bc-tag {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #64748b;
}
body.light-mode .blog-cta-box {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.07);
}
body.light-mode .bcta-sub { color: #475569; }
body.light-mode .bcta-note { color: #94a3b8; }
body.light-mode .bfeat-badge {
  background: rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.30);
}
body.light-mode .bc-author-info strong { color: #0f172a; }
body.light-mode .bfeat-num,
body.light-mode .bc-num { color: rgba(0,0,0,0.04); }

/* ══════════════════════════════════════════════════════════
   VISUAL POLISH — enhanced depth, glow, animation
══════════════════════════════════════════════════════════ */

/* Richer card backgrounds */
.blog-card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.035) 0%,
    rgba(255,255,255,0.018) 100%
  );
}

/* Taller covers */
.bc-cover { height: 200px; }

/* Gradient depth overlay at bottom of covers */
.bc-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.bc-icon { z-index: 1; position: relative; }
.bc-num  { z-index: 2; }

/* Stronger, glowing card hover */
.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139,92,246,0.32);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.16),
    0 28px 70px rgba(0,0,0,0.32),
    0 0 60px -12px rgba(139,92,246,0.14);
}

/* Smoother, punchier icon zoom */
.bc-icon {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
}
.blog-card:hover .bc-icon {
  transform: scale(1.14) translateY(-4px);
  opacity: 1;
}

/* Featured article: richer background + stronger hover */
.blog-featured {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.018) 100%
  );
}
.blog-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.32);
  box-shadow:
    0 36px 90px rgba(0,0,0,0.34),
    0 0 80px -20px rgba(139,92,246,0.14);
}
.bfeat-cover { min-height: 360px; }
.bfeat-icon-wrap {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.35s;
}
.blog-featured:hover .bfeat-icon-wrap {
  transform: scale(1.10) translateY(-5px);
  opacity: 1;
}

/* Featured cover also gets depth overlay */
.bfeat-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.bfeat-icon-wrap { z-index: 1; }
.bfeat-badge, .bfeat-num, .bfeat-node { z-index: 2; }

/* Grid spacing */
.blog-grid { gap: 28px; }
.blog-grid--3 { margin-bottom: 28px; }

/* Wide card cover slightly taller */
.blog-card--wide .bc-cover { min-height: 210px; }

/* Better excerpt contrast */
.bc-excerpt { color: rgba(148,163,184,0.82); }
.bfeat-excerpt { color: rgba(148,163,184,0.88); }

/* Filter bar active with gradient glow */
.bf-btn.bf-active {
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(14,165,233,0.12));
  border-color: rgba(139,92,246,0.48);
  box-shadow: 0 0 14px rgba(139,92,246,0.12);
}

/* bc-more arrow slides on hover */
.bc-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.blog-card:hover .bc-more { color: #38bdf8; }

/* CTA box richer background */
.blog-cta-box {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.018) 100%
  );
  border-color: rgba(255,255,255,0.10);
}

/* Number badges — slightly more visible */
.bfeat-num { color: rgba(255,255,255,0.09); }
.bc-num    { color: rgba(255,255,255,0.09); }

/* Cover mesh denser */
.bc-mesh,
.bfeat-mesh {
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Light mode adjustments for enhancements */
body.light-mode .blog-card,
body.light-mode .blog-featured {
  background: rgba(255,255,255,0.88);
}
body.light-mode .bc-cover::after,
body.light-mode .bfeat-cover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 100%);
}
body.light-mode .bc-excerpt { color: #64748b; }
body.light-mode .bfeat-excerpt { color: #475569; }
body.light-mode .blog-cta-box { background: rgba(255,255,255,0.82); }
body.light-mode .bc-mesh,
body.light-mode .bfeat-mesh {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}
