.blog-hero,
.blog-detail-hero {
    background:
        radial-gradient(circle at top left, rgba(199, 70, 52, 0.18), transparent 35%),
        linear-gradient(180deg, #131313 0%, #1b1b1b 100%);
    color: #fff;
}

.blog-hero-panel,
.detail-stat-panel,
.sidebar-card {
    border-radius: 1.5rem;
}

.blog-hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.featured-post,
.blog-card,
.blog-article,
.sidebar-card,
.detail-stat-panel {
    border-radius: 1.5rem;
}

.featured-post__media {
    min-height: 320px;
    background: linear-gradient(135deg, #c74634, #2a1e1b);
    max-height: 320px;
}

.featured-post__fallback,
.blog-card__placeholder {
    min-height: 320px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 28%),
        linear-gradient(135deg, #c74634, #111);
    color: #fff;
}

.blog-card__placeholder {
    min-height: 220px;
    padding: 1.1rem;
}

.fallback-copy {
    width: 100%;
}

.fallback-copy__line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    margin-top: .75rem;
}

.fallback-copy__line.short { width: 38%; }
.fallback-copy__line.long { width: 72%; }

.blog-badge,
.blog-card__featured,
.blog-tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.blog-badge {
    padding: .42rem .8rem;
    color: #c74634;
    background: #fff4f1;
}

.blog-badge--muted {
    color: #5b5b5b;
    background: #f4f4f4;
}

.blog-badge--accent {
    color: #fff;
    background: #c74634;
}

.featured-post__title,
.blog-card__title {
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.featured-post__title {
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.featured-post__excerpt,
.blog-card__excerpt {
    color: #5a5a5a;
    line-height: 1.75;
}

.blog-card__media {
    position: relative;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    background: linear-gradient(135deg, #c74634, #111);
}

.blog-card__featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .4rem .7rem;
    color: #fff;
    background: rgba(199, 70, 52, 0.95);
    box-shadow: 0 10px 30px rgba(199, 70, 52, 0.3);
}

.blog-card__title a {
    color: #111;
}

.blog-card__title a:hover {
    color: #c74634;
}

.detail-stat-panel {
    background: #fff;
}

.detail-stat-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid #eee;
}

.detail-stat-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-stat-item span {
    color: #7b7b7b;
}

.detail-stat-item strong {
    color: #171717;
    text-align: right;
}

.blog-breadcrumb a,
.related-post,
.blog-tag-pill {
    color: inherit;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.blog-breadcrumb .active {
    color: #fff;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #262626;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.6rem;
    margin-bottom: .85rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.article-content a {
    color: #c74634;
    text-decoration: underline;
}

.blog-tag-pill {
    padding: .4rem .75rem;
    background: #f5f5f5;
    color: #555;
}

.related-post {
    display: block;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8f8f8;
    transition: transform .2s ease, background .2s ease;
}

.related-post:hover {
    transform: translateY(-1px);
    background: #fff3ef;
}

.related-post__date,
.related-post__meta {
    display: block;
    color: #7a7a7a;
    font-size: .84rem;
}

.empty-state {
    border: 1px dashed #dedede;
    border-radius: 1.5rem;
    background: #fafafa;
}

@media (max-width: 991.98px) {
    .featured-post__media,
    .featured-post__fallback,
    .blog-card__placeholder {
        min-height: 240px;
        max-height: 240px;
    }
}

body > div > section.py-5 > div > div.row.g-4 > div > article > div.card-body.d-flex.flex-column.p-4 > div.mt-auto.d-flex.justify-content-between.align-items-center.gap-3 > a {
    white-space: nowrap;
}

/* Phân trang */
.pagination-custom .page-link {
    color: #c74634;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    margin: 0 4px;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
    background-color: #fff3ef;
    border-color: #c74634;
    color: #c74634;
}

.pagination-custom .active .page-link {
    background-color: #c74634;
    border-color: #c74634;
    color: #fff;
}

.pagination-custom .disabled .page-link {
    color: #ccc;
    background-color: #fff;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.pagination-custom .page-item:first-child .page-link,
.pagination-custom .page-item:last-child .page-link {
    border-radius: 0.5rem;
}

/* Bù đắp cho header cố định khi cuộn đến anchor */
#all-posts {
    scroll-margin-top: 80px; /* Chiều cao header của bạn, thường 70-90px */
}

/* Nếu header thay đổi trên mobile, dùng media query */
@media (max-width: 768px) {
    #all-posts {
        scroll-margin-top: 65px;
    }
}

.hover-bg-danger:hover {
    background-color: #c74634 !important;
    color: white !important;
}
.hover-text-white:hover {
    color: white !important;
}