/* ── BLOG LISTING ── */
.blog-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.blog-card:hover {
  box-shadow: 0 4px 20px rgba(48,130,216,0.10);
  transform: translateY(-2px);
}
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.blog-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.blog-card-body { padding: 20px; }
.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.blog-read-more { color: var(--blue); font-weight: 600; font-size: 13px; }

/* ── BLOG POST ── */
.post-hero {
  background: var(--bg-alt);
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.post-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.post-hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 500;
}
.post-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
}
.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.post-content p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
}
.post-content strong { color: var(--text); }
.post-content ul, .post-content ol {
  margin: 12px 0 20px 20px;
}
.post-content li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 6px;
}
.post-highlight {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.post-warning {
  background: #FFF8E8;
  border-left: 4px solid #F5A623;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.post-table th {
  background: var(--blue);
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.post-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.post-table tr:nth-child(even) td { background: var(--bg-alt); }
.post-sidebar { position: sticky; top: 80px; }
.post-sidebar .sidebar-card { margin-bottom: 16px; }
.toc-list { list-style: none; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--blue); }
.post-author-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 40px 0;
}
.post-author-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.post-author-name { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.related-posts { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-post-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: block;
  transition: border-color 0.2s;
}
.related-post-card:hover { border-color: var(--blue); }
.related-post-tag { font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.related-post-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-hero h1 { font-size: 26px; }
  .related-posts-grid { grid-template-columns: 1fr; }
}
