body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #292929;
  background: #fff;
  line-height: 1.7;
  letter-spacing: 0;
}

.container {
  max-width: 1140px;
  padding-right: 24px;
  padding-left: 24px;
}

a { color: #c90026; text-decoration: none; }
a:hover, a:focus, a:active { color: #a80020; text-decoration: none; }
a:focus-visible { outline: 2px solid #c90026; outline-offset: 4px; }

.header { border-bottom: 1px solid #e5e5e5; }
.header .navbar { padding: 6px 0; background: #fff !important; }
.header .navbar > .container { min-height: 40px; }
.header .navbar-brand {
  padding: 0;
  margin-right: 16px;
  color: #c90026;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}
.blog-nav-link { padding: 6px 0 6px 16px; color: #444; font-weight: 600; }
.main { flex: 1; padding: 32px 0 48px; }
.left-box, .right-box { min-width: 0; }

h1, h2, h3, h4, h5 {
  color: #242424;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
h1 { margin-bottom: 24px; font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; }
h3, h4 { font-size: 20px; }

.breadcrumb {
  --bs-breadcrumb-divider: "/";
  margin-bottom: 20px;
  font-size: 14px;
  row-gap: 4px;
  overflow-wrap: anywhere;
}
.breadcrumb-item { min-width: 0; }
.lucide { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; stroke-width: 1.7; }
.blog-nav-link, .breadcrumb a, .article-meta > *, .post-card-meta > *, .article-tag, .top-posts-heading, .pagination-nav a { display: inline-flex; align-items: center; gap: 6px; }
.article-tag .lucide { width: 12px; height: 12px; }
.article-meta { align-items: center; }
.post-card-meta .lucide { width: 13px; height: 13px; }
.post-card-meta .card-date { flex-basis: 100%; }
.section-kicker { display: block; margin-bottom: 6px; color: #777; font-size: 11px; font-weight: 600; }
.blog-list-heading { margin-bottom: 24px; }
.top-post-category { display: block; margin-bottom: 5px; color: #888; font-size: 11px; }
.top-posts-heading { display: flex; width: 100%; }
.top-post-title { display: block; }
.related-heading { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e5e5e5; font-size: 22px; }
.pagination-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 14px; }
.preview-banner { padding: 10px 24px; background: #fff3d8; color: #715018; text-align: center; font-size: 13px; }
.preview-banner a { margin-left: 20px; }
.empty-state { padding: 60px 0; }
.article-body { min-width: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 20px 0; }
.article-body th, .article-body td { padding: 12px 16px; border: 1px solid #ddd; vertical-align: top; text-align: left; }
.article-body th { background: #f5f6f6; font-weight: 600; }
.article-body tr:nth-child(even) td { background-color: #fafafa; }
.table-scroll { width: 100%; overflow-x: auto; margin: 20px 0; }
.table-scroll table { margin: 0; }
.article-body pre { padding: 20px; overflow-x: auto; border-radius: 4px; background: #f5f6f6; }
.article-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 3px solid #c90026; background: #fff7f8; }
.article-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-body .text-center { text-align: center; }
.article-body .text-left { text-align: left; }
.article-body .text-right { text-align: right; }
.content p { line-height: 1.8; }
.article-heading { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; }
.article-heading h1 { margin-bottom: 16px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-tag { padding: 3px 9px; border-radius: 4px; background: #f3f4f4; color: #555; font-size: 12px; line-height: 1.6; }
.article-category { background: #fff0f2; color: #b50022; font-weight: 600; }
.article-description { margin-bottom: 20px; color: #5c5c5c; font-size: 17px; line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; color: #666; font-size: 13px; }
.article-meta a { color: #444; font-weight: 600; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ededed; color: #666; font-size: 12px; }
.post-card-meta time { flex-basis: 100%; }
.card-body > .article-category { margin-bottom: 12px; }
.content { overflow-wrap: anywhere; }
.content p, .content ul { margin-bottom: 20px; }
.content h2, .content h3 { margin-top: 32px; margin-bottom: 16px; }
.content li + li { margin-top: 8px; }

img { max-width: 100%; height: auto; }
.content img {
  display: block;
  width: auto;
  max-width: min(100%, 680px);
  height: auto;
  margin: 24px auto 12px;
}
.content img.portrait-image { max-width: min(100%, 320px); }
.content img + p {
  margin-bottom: 28px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.post-item .card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
.post-item a { display: block; height: 100%; color: inherit; }
.post-item a:hover { text-decoration: none; }
.post-item a:hover .card-title,
.post-item a:focus .card-title,
.post-item a:active .card-title { color: #c90026; text-decoration: none; }
.image-wrapper { aspect-ratio: 16 / 9; }
.post-item .card-img-top {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f8f8f8;
  border-bottom: 1px solid #ededed;
}
.post-item .card-body { padding: 20px; }
.post-item .card-title { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.post-item .card-text {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: #666;
  font-size: 15px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.right-box { margin-top: 32px; }
.top-posts-heading {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c90026;
  font-size: 18px;
  font-weight: 700;
}
.top-posts-list { margin: 0; padding: 0; list-style: none; }
.top-posts-list li + li { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.top-post { display: block; color: #292929; }
.top-post-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f8f8f8;
  border-radius: 4px;
  border: 1px solid #ededed;
}
.top-post-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.top-post-copy {
  display: block;
  margin-top: 12px;
}
.top-post-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.top-post:hover .top-post-title, .top-post:focus .top-post-title { color: #c90026; }

.footer {
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
  color: #666;
  font-size: 14px;
  text-align: center;
}

@media (min-width: 992px) {
  .left-box { padding-right: 32px; }
  .right-box { align-self: flex-start; margin-top: 0; padding-left: 24px; border-left: 1px solid #e5e5e5; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .top-posts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .top-posts-list li + li { margin: 0; padding: 0; border-top: 0; }
}

@media (max-width: 575.98px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .main { padding-top: 24px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
}
