/* ================= HERO BANNER CAO CẤP ================= */
.news-hero {
    background: darkorange;
    padding: 80px 0 100px 0; /* Cân đối lại khoảng không gian thở */
    text-align: center;
    border-radius: 0;
    margin-bottom: 50px;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .news-hero h1 {
        font-size: 40px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 12px;
        text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }

.breadcrumb-news {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .breadcrumb-news a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: 0.3s;
    }

        .breadcrumb-news a:hover {
            color: #fff;
            text-shadow: 0 0 8px rgba(255,255,255,0.5);
        }

/* ================= THANH MENU FILTER (Bo gọn, tinh tế) ================= */
.filter-wrapper {
    position: absolute;
    bottom: -126px; /* Ghim chính giữa mép banner */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Đảm bảo cụm menu luôn ở giữa màn hình */
    z-index: 10;
    padding: 0 15px;
}

.filter-container {
    background: #ffffff;
    border-radius: 40px; /* Bo tròn chuẩn viên thuốc */
    padding: 6px 8px; /* Ép sát vào các nút, loại bỏ khoảng trắng dư thừa */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Bóng đổ 3D cực êm */
    display: inline-flex; /* BẮT BUỘC: Ôm khít nội dung, không bị kéo giãn */
    flex-wrap: wrap;
    gap: 4px;
}

.btn-filter {
    background-color: transparent !important;
    color: #555;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    /* Trạng thái Active: Biến thành khối màu cam gọn gàng bên trong dải trắng */
    .btn-filter.active {
        background-color: var(--vt-primary) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(228, 93, 9, 0.25) !important;
    }

    .btn-filter:hover:not(.active) {
        background-color: #f8f9fa !important;
        color: var(--vt-primary);
    }

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 0 100px 0;
    }

    .filter-container {
        border-radius: 16px;
        padding: 10px;
        gap: 5px;
    }

    .btn-filter {
        font-size: 12px;
        padding: 8px 5px !important;
        width: calc(50% - 6px);
        text-align: center;
    }

    .filter-wrapper {
        display: none
    }
}

/* ================= NEWS CARD CAO CẤP ================= */
.news-card {
    background: #fff;
    border-radius: var(--p2-radius-img, 12px);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Bóng đổ mềm thay vì viền cứng */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: none;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

.news-card .nc-img {
    position: relative;
    height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9ecef;
    line-height: 0;
}

    .news-card .nc-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0;
        transition: transform 0.7s ease;
    }

.news-card:hover .nc-img img {
    transform: scale(1.05);
}

/* Tag được làm sáng sủa, sang trọng */
       /* .nc-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: var(--vt-primary-dark);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
}*/

.nc-body {
    padding: 25px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nc-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nc-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    min-height: 52px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .nc-title {
    color: var(--vt-primary);
}

.nc-desc {
    font-size: 14.5px;
    color: #666;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .nc-desc:empty {
        display: none;
        margin-top: 0;
    }

/* ================= PAGINATION ================= */
.pagination-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 16px;
   /* background: #fff;*/
    border-radius: 16px;
   /* border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);*/
}

.pagination-info {
    flex: 0 0 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

    .pagination-info strong {
        color: var(--vt-primary-dark);
    }

.pagination-box .page-node {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}

    .pagination-box .page-node.page-nav {
        min-width: 42px;
        padding: 0 14px;
        background: #fff;
    }

    .pagination-box .page-node:hover:not(.disabled):not(.active) {
        background: #fff7ed;
        border-color: var(--vt-primary);
        color: var(--vt-primary-dark);
        transform: translateY(-1px);
    }

    .pagination-box .page-node.active {
        background: linear-gradient(102deg, var(--vt-primary) 20%, var(--vt-primary-dark) 80%);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 4px 14px rgba(228, 93, 9, 0.35);
        pointer-events: none;
    }

    .pagination-box .page-node.disabled {
        pointer-events: none;
        opacity: 0.35;
        background: #f3f4f6;
        border-color: #e5e7eb;
        color: #9ca3af;
    }

.pagination-box .page-ellipsis {
    min-width: 32px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    user-select: none;
}

@media (max-width: 576px) {
    .pagination-box {
        gap: 6px;
        padding: 16px 10px;
    }

    .pagination-box .page-node {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
    }

    .pagination-info {
        font-size: 12px;
    }
}
