/* Blog pages: list, article and the shared sidebar */
.blog-page { background: #fff; }
.blog-wrap { max-width: 1240px; }

.blog-empty { padding: 4rem 1rem; text-align: center; color: #5b656b; background: #fff; }
.blog-empty i { display: block; margin-bottom: .6rem; color: #b5bbc0; font-size: 3rem; }
.blog-empty h2 { color: #111; font-size: 1.5rem; }

.blog-pager { display: flex; justify-content: center; margin-top: 2.5rem; }
.blog-pager .page-link { color: #111; margin: 0 .2rem; border-color: #e1e5e9; border-radius: 0 !important; }
.blog-pager .page-item.active .page-link { color: #fff; background: var(--brand-red); border-color: var(--brand-red); }
.blog-pager .page-link:hover { color: var(--brand-red); }
.blog-pager .page-item.active .page-link:hover { color: #fff; }


.bl-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.4rem; padding: .85rem 1.1rem; color: #4b5563; font-size: .93rem; background: #fff; border-left: 4px solid var(--brand-red); }
.bl-filter a { color: var(--brand-red); font-weight: 700; text-decoration: none; }

/* Cards: picture with category and date badges, then a simple text block */
.bl-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; transition: transform .25s ease; }
.bl-card:hover { transform: translateY(-6px); }
.bl-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eceef0; }
.bl-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bl-card:hover .bl-card-media img { transform: scale(1.06); }
.blog-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.85); font-size: 3rem; background: linear-gradient(135deg, #1f1f22, #ed1c24); }
.bl-card-cat { position: absolute; top: 14px; left: 14px; padding: .3rem .75rem; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--brand-red); }
.bl-card-date { position: absolute; right: 14px; bottom: -1px; display: flex; flex-direction: column; align-items: center; padding: .5rem .9rem .45rem; color: #111; font-size: .72rem; font-weight: 600; line-height: 1.1; text-transform: uppercase; background: #fff; }
.bl-card-date b { color: var(--brand-red); font-size: 1.35rem; }
.bl-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; }
.bl-card-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .7rem; color: #7a838a; font-size: .82rem; }
.bl-card-meta i { margin-right: .3rem; color: var(--brand-red); }
.bl-card h2 { margin: 0 0 .7rem; font-size: 1.22rem; font-weight: 700; line-height: 1.35; }
.bl-card h2 a { color: #111; text-decoration: none; }
.bl-card h2 a:hover { color: var(--brand-red); }
.bl-card p { flex: 1; margin-bottom: 1.1rem; color: #5b656b; font-size: .95rem; line-height: 1.65; }
.bl-more { position: relative; align-self: flex-start; padding-bottom: 3px; color: #111; font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.bl-more::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--brand-red); transform: scaleX(.35); transform-origin: left; transition: transform .3s ease; }
.bl-more i { margin-left: .3rem; color: var(--brand-red); transition: margin .2s; }
.bl-card:hover .bl-more::after, .bl-more:hover::after { transform: scaleX(1); }
.bl-more:hover { color: var(--brand-red); }
.bl-card:hover .bl-more i { margin-left: .6rem; }

/* Sidebar categories */
.bd-cats { margin: 0; padding: 0; list-style: none; }
.bd-cats a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; color: #374151; font-size: .93rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.bd-cats a small { min-width: 26px; padding: .1rem .5rem; color: #6b7280; font-size: .75rem; text-align: center; background: #eef0f3; }
.bd-cats a:hover { color: var(--brand-red); background: #fdf0f0; }
.bd-cats a.active { color: #fff; background: var(--brand-red); }
.bd-cats a.active small { color: var(--brand-red); background: #fff; }


.bd-body { padding: 3rem 0 4rem; background: #f4f6f8; }
.bd-article { padding: 1.6rem; background: #fff; }
.bd-cover { margin: 0 0 1.4rem; }
.bd-cover img { width: 100%; }
.bd-date { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; color: var(--brand-red); font-size: .88rem; font-weight: 600; }
.article-content { color: #3b444b; font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.8rem 0 .7rem; color: #111; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.article-content h2 { font-size: 1.45rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.05rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-content a { color: var(--brand-red); }
.article-content strong, .article-content b { color: #111; }
.article-content img, .article-content video, .article-content iframe { max-width: 100%; height: auto; }
.article-content ul { margin-bottom: 1.2rem; padding-left: 0; list-style: none; }
.article-content ul li { position: relative; margin-bottom: .45rem; padding-left: 1.3rem; }
.article-content ul li::before { content: ""; position: absolute; top: .62em; left: .1rem; width: 7px; height: 7px; background: #4b5563; }
.article-content ol { margin-bottom: 1.2rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; color: #111; font-size: 1.1rem; font-style: italic; background: #f6f7f8; border-left: 4px solid var(--brand-red); }
.article-content table { width: 100%; margin-bottom: 1.4rem; border-collapse: collapse; border: 2px solid #2d3748; }
.article-content th, .article-content td { padding: .7rem .85rem; border: 1px solid #2d3748; vertical-align: top; }
.article-content th, .article-content tr:first-child td { background: #eef2f8; }
.article-content td:first-child { background: #eef2f8; font-weight: 600; }
.article-share { display: flex; align-items: center; gap: .7rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid #e8ebee; }
.article-share a { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; text-decoration: none; background: #111; transition: background .2s, transform .2s; }
.article-share a:hover { background: var(--brand-red); transform: translateY(-3px); }

.bd-side { position: sticky; top: 110px; display: grid; gap: 1.4rem; }
.bd-box { padding: 1.5rem; background: #fff; }
.bd-box-title { position: relative; margin: 0 0 1.4rem; padding-bottom: .7rem; color: #111; font-size: 1.1rem; font-weight: 700; }
.bd-box-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--brand-red); }
.bd-search { display: flex; }
.bd-search input { flex: 1; min-width: 0; padding: .7rem .9rem; font-size: .92rem; background: #f4f6f8; border: 1px solid transparent; border-right: 0; outline: 0; }
.bd-search input:focus { background: #fff; border-color: var(--brand-red); }
.bd-search button { padding: 0 1.1rem; color: #fff; background: var(--brand-red); border: 0; }
.bd-search button:hover { background: #c9141c; }
.bd-recent { margin: 0; padding: 0; list-style: none; }
.bd-recent li { padding: .9rem 0; border-top: 1px solid #e8ebee; }
.bd-recent li:first-child { padding-top: 0; border-top: 0; }
.bd-recent li:last-child { padding-bottom: 0; }
.bd-recent a { display: flex; gap: .9rem; align-items: center; color: #111; text-decoration: none; }
.bd-recent-thumb { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; overflow: hidden; color: #fff; font-size: 1.6rem; background: linear-gradient(135deg, #1f1f22, #ed1c24); }
.bd-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-recent-text { display: flex; flex-direction: column; min-width: 0; gap: .2rem; }
.bd-recent-text small { color: #8a9095; font-size: .78rem; }
.bd-recent-text b { font-size: .9rem; font-weight: 700; line-height: 1.35; }
.bd-recent a:hover b { color: var(--brand-red); }
.bd-cta { padding: 1.8rem 1.5rem; text-align: center; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(237,28,36,.45), transparent 55%), #0b0b0c; }
.bd-cta h3 { margin-bottom: .9rem; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.bd-cta p { margin-bottom: 1.1rem; color: rgba(255,255,255,.85); font-weight: 600; }
.bd-cta p a { color: #fff; text-decoration: none; }
.bd-cta-btn { display: inline-block; padding: .65rem 1.5rem; color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; background: var(--brand-red); }
.bd-cta-btn:hover { color: #fff; background: #c9141c; }

@media (max-width: 991.98px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 240px; }
  .bd-side { position: static; }
}
@media (max-width: 575.98px) {
  .blog-section { padding: 2.5rem 0 3.5rem; }
  .blog-featured-body { padding: 1.6rem; }
  .blog-search { width: 100%; }
  .bd-article { padding: 1.1rem; }
}
