/* ─── BLOG STYLES ─────────────────────────────────── */

/* Blog Listing */
.blog-listing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 80px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--purple-faint), var(--cyan-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-3);
}
.blog-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  transition: gap .2s;
}
.blog-card:hover .read-more { gap: 10px; }

/* Blog Post Meta */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  padding-bottom: 8px;
}
.blog-post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-post-meta .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-3);
}

/* Blog Hero */
.blog-hero {
  padding: 120px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 720px;
}
.blog-hero .hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 16px;
}

/* Article TOC */
.article-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}
.article-toc h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.article-toc ol {
  padding-left: 20px;
  margin: 0;
}
.article-toc li {
  font-size: 14px;
  color: var(--purple);
  padding: 4px 0;
  line-height: 1.5;
}
.article-toc a {
  color: var(--purple);
  text-decoration: none;
  transition: color .2s;
}
.article-toc a:hover { color: #6D28D9; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .blog-listing { grid-template-columns: 1fr 1fr; }
  .blog-hero { padding: 100px 0 40px; }
}

@media (max-width: 640px) {
  .blog-listing { grid-template-columns: 1fr; }
  .blog-hero { padding: 88px 0 32px; }
  .blog-card-img { height: 160px; }
}
