.tbay-breadcrumb i.fas.fa-home {
    color: #fe9900;
}

/* =========================================================
   BLOG WRAPPER
   ========================================================= */
.blog-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0 8px;
}

.blog-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.category-tabs {
    display: flex;
    gap: 12px;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.tbay-breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

.tbay-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.tbay-breadcrumb a:hover {
    color: #111827;
    text-decoration: underline;
}

.tbay-breadcrumb-separator {
    margin: 0 6px;
    color: #9ca3af;
}

/* =========================================================
   HERO SECTION: bài mới nhất (trái) + phổ biến (phải)
   ========================================================= */
.hero-posts-section {
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
    gap: 20px;
    /* margin-bottom: 40px; */
    align-items: stretch;
}

/* --- Bài viết mới nhất (content-featured.php) ---
   Ảnh thumbnail làm nền toàn bộ thẻ, tiêu đề + excerpt
   overlay lên trên bằng lớp gradient tối phía dưới. */
.featured-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    isolation: isolate;
    /* giữ z-index cục bộ, không ảnh hưởng ra ngoài */
}

.featured-post-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.featured-post-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-post-card__bg img {
    transform: scale(1.04);
}

/* Lớp phủ gradient tối để chữ luôn đọc rõ trên mọi ảnh */
.featured-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 35%,
            rgba(0, 0, 0, 0.05) 70%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.featured-post-card__info {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-post-card__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.featured-post-card__title a {
    color: #fff;
    text-decoration: none;
}

.featured-post-card__title a:hover {
    text-decoration: underline;
}

.featured-post-card__excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Sidebar bài viết phổ biến (content-popular-posts.php) --- */
.popular-posts-sidebar {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.popular-posts-sidebar h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
    color: #111827;
}

.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* border: 1px solid #e5e7eb; */
    /* border-radius: 10px; */
    padding: 8px;
}

.popular-post-item__thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-post-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-post-item__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-item__title a {
    color: #111827;
    text-decoration: none;
}

.popular-post-item__title a:hover {
    color: #ea580c;
}

.popular-post-item__views {
    font-size: 12px;
    color: #9ca3af;
}

.popular-post-item__views::before {
    content: "👁 ";
}

/* =========================================================
   MAIN POSTS LIST — grid 4 cột (content.php)
   ========================================================= */
.main-posts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.post-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.post-card__thumbnail {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card__content {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-card__meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.post-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__title a {
    color: #111827;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #ea580c;
}

.post-card__excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    margin-top: auto;
}

.read-more-link {
    font-size: 13px;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* =========================================================
   PAGINATION (xem PHP mẫu bên dưới để thêm markup)
   ========================================================= */
.tbay-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.tbay-pagination a,
.tbay-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}

.tbay-pagination a:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.tbay-pagination .current {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
    font-weight: 700;
}




/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {

    .hero-posts-section {
        grid-template-columns: 1fr;
    }

    .main-posts-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .blog-wrapper {
        padding: 0 10px;
    }

    .featured-post-card {
        min-height: 320px;
    }

    .featured-post-card__title {
        font-size: 22px;
    }

    .main-posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .main-posts-list {
        grid-template-columns: 1fr;
    }

    .popular-post-item__thumb {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}


/* Container căn giữa phân trang */
.wpshare247-pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

/* Thẻ bao bọc danh sách số trang của WordPress */
.wpshare247-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Khoảng cách giữa các nút */
}

/* Ẩn next & prev */
.wpshare247-pagination .page-numbers.next,
.wpshare247-pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev {
    display: none;
}

/* Định dạng các nút số trang (Trạng thái bình thường) */
.wpshare247-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    color: #fe9900;
    /* Màu chữ chính */
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    /* Bo góc nút giống hình mẫu */
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi Hover qua nút */
.wpshare247-pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
    background-color: #fff3e0;
    /* Nền nhạt khi hover */
    color: #fe9900;
}

/* Trang hiện tại (Active) */
.wpshare247-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background-color: #cc7a00;
    /* Màu nền cam đậm hơn */
    color: #ffffff;
    /* Chữ trắng cho nổi bật */
    border-radius: 8px;
}