/* ─── Post Hero ──────────────────────────────────────────── */
.post-hero {
  margin-top: var(--header-h);
  height: 360px;
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Post Layout ────────────────────────────────────────── */
.post-article { padding: 56px 0 80px; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin-bottom: 24px; }
.breadcrumb a { font-size: 0.8rem; color: var(--muted); }
.breadcrumb [aria-current=page] { font-size: 0.8rem; color: var(--brand); }

/* ─── Post Header ────────────────────────────────────────── */
.post-header { margin-bottom: 40px; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.post-meta-sep { color: var(--line); }

/* ─── Post Body ──────────────────────────────────────────── */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.post-body h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.post-body h3 { font-size: 1.2rem; font-weight: 400; margin: 28px 0 12px; }
.post-body p { margin-bottom: 20px; color: var(--gray-dark); }
.post-body ul, .post-body ol { margin: 16px 0 20px 24px; }
.post-body li { margin-bottom: 8px; color: var(--gray-dark); }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }
.post-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 12px 20px;
  background: var(--brand-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
}

/* ─── Post CTA Box ───────────────────────────────────────── */
.post-cta-box {
  background: var(--brand-bg);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}
.post-cta-box h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--brand); }
.post-cta-box p { margin-bottom: 20px; }

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.sidebar-widget h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 16px;
}
.sidebar-widget p { font-size: 0.875rem; margin-bottom: 8px; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { font-size: 0.875rem; color: var(--gray-dark); transition: color 0.2s; }
.sidebar-links a:hover { color: var(--brand); }

/* ─── Blog Index ─────────────────────────────────────────── */
.blog-index-hero {
  background: var(--brand);
  color: #fff;
  padding: 80px 0 60px;
  margin-top: var(--header-h);
  text-align: center;
}
.blog-index-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 12px; }
.blog-index-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.blog-index-main { padding: 64px 0; }
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}
@media (max-width: 900px) { .blog-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-index-grid { grid-template-columns: 1fr; } }
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--gray-dark);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--brand-bg); border-color: var(--brand-light); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── Category Filter Bar ────────────────────────────────── */
.category-filter {
  background: var(--bg-alt, #F9FAFB);
  border-bottom: 1px solid var(--line, #EBEBEB);
  padding: 16px 0;
}
.category-filter .container {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--line, #EBEBEB);
  color: var(--text, #1A1A1A);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}
.cat-btn:hover,
.cat-btn.active {
  background: var(--brand, #243300);
  color: #fff;
  border-color: var(--brand, #243300);
}

/* ─── Sidebar Widget Styles ──────────────────────────────── */
.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--brand, #243300);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand, #243300);
}
.recent-posts-list,
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recent-posts-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line, #EBEBEB);
  font-size: 0.875rem;
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list a { color: var(--text, #1A1A1A); text-decoration: none; display: block; font-weight: 500; }
.recent-posts-list a:hover { color: var(--brand, #243300); }
.recent-posts-list time { color: var(--muted, #6B7280); font-size: 0.75rem; }
.categories-list li { padding: 4px 0; }
.categories-list a { color: var(--muted, #6B7280); text-decoration: none; font-size: 0.875rem; }
.categories-list a:hover { color: var(--brand, #243300); }
