.blog-header {
  padding-top: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-100);
}
.blog-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 12px;
}
.blog-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  line-height: 1.65;
}

.blog-filters {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 9999px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: none;
  color: var(--gray-600);
  background: var(--gray-50);
}
.filter-tab:hover {
  color: var(--black);
  background: var(--gray-100);
}
.filter-tab.active {
  background: var(--black);
  color: white;
}

.blog-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 96px;
}
@media (max-width: 900px) { .blog-content { grid-template-columns: 1fr; gap: 48px; } }

.article-list { display: flex; flex-direction: column; gap: 28px; }

.article-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
}
.article-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  color: inherit;
}
@media (max-width: 640px) { .article-item { grid-template-columns: 1fr; } }

.article-item__thumb {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border-right: 1px solid var(--gray-100);
}
@media (max-width: 640px) { .article-item__thumb { border-right: none; border-bottom: 1px solid var(--gray-100); min-height: 160px; } }
.thumb--t1 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.thumb--t2 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.thumb--t3 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.thumb--t4 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.thumb--t5 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.thumb--t6 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.thumb--t7 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.thumb--t8 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.article-item__body { padding: 24px 26px 24px 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 640px) { .article-item__body { padding: 22px 24px; } }

.article-item__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cat-badge {
  background: #ebf5ff;
  color: #0068d6;
  padding: 2px 8px;
  border-radius: 4px;
}
.cat-badge--green { background: #ecfdf5; color: #059669; }
.cat-badge--purple { background: #f5f3ff; color: #7c3aed; }
.cat-badge--orange { background: #fff7ed; color: #ea580c; }
.cat-badge--red { background: #fef2f2; color: #dc2626; }

.article-item__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-item__excerpt {
  font-size: 14px;
  line-height: 1.68;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.article-item__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-400);
}
.read-more-link {
  font-weight: 500;
  color: var(--accent-blue);
  font-size: 13px;
}

.sidebar { position: relative; }
.sidebar-section {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .15s;
}
.category-list a:hover { color: var(--black); opacity: 1; }
.category-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 4px;
}

.popular-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.popular-post:last-child { border-bottom: none; }
.popular-post__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}
.popular-post__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.45;
  transition: color .15s;
}
.popular-post:hover .popular-post__title { color: var(--accent-blue); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--gray-600);
  background: var(--gray-50);
  text-decoration: none;
  transition: all .15s;
  border: 1px solid transparent;
}
.tag-pill:hover {
  color: var(--black);
  background: white;
  border-color: var(--gray-100);
  box-shadow: var(--shadow-border);
}

.sidebar-cta {
  background: var(--black);
  border-radius: 10px;
  padding: 28px;
  color: white;
  text-align: center;
}
.sidebar-cta__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.sidebar-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 18px;
}
.sidebar-cta .btn {
  background: white;
  color: var(--black);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.sidebar-cta .btn:hover { opacity: .92; transform: translateY(-1px); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: var(--gray-600);
  background: white;
  box-shadow: var(--shadow-border);
}
.page-btn:hover {
  color: var(--black);
  background: var(--gray-50);
}
.page-btn.active {
  background: var(--black);
  color: white;
  box-shadow: none;
}
