/* Blog index */
.blog-hero {
  background: var(--bg-light);
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-light);
  font-size: 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 64px 0;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
}

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

.blog-card-meta {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.blog-card-tag {
  color: var(--primary);
  font-weight: 500;
}

.blog-card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 15px;
  margin-top: 20px;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(3px);
}

/* Article hero image */
.article-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article page */
.article-hero {
  background: var(--bg-light);
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
  font-size: 14px;
  color: var(--text-lighter);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-breadcrumb a {
  color: var(--primary);
}

.article-breadcrumb span {
  color: var(--text-lighter);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-lighter);
  margin-top: 20px;
}

.article-tag {
  color: var(--primary);
  font-weight: 500;
  background: rgba(99, 102, 241, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.article-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 16px;
}

.article-hero .lead {
  font-size: 18px;
  color: var(--text-light);
  max-width: 680px;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  padding: 64px 0;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 14px;
  color: var(--text);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  color: var(--text-light);
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body li {
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-cta-box {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.article-cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.article-cta-box .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.article-cta-box .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-lighter);
  margin-bottom: 16px;
}

.sidebar-toc {
  list-style: none;
  padding: 0;
}

.sidebar-toc li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.sidebar-toc li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-toc a {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-toc a:hover {
  color: var(--primary);
}

.sidebar-cta {
  background: var(--bg-light);
  text-align: center;
}

.sidebar-cta p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
