:root {
    --main-color: #4879bb;
    --dark-color: #333;
    --white: #ffffff;
    --light-bg: #f8fafd;
    --accent-color: #d32f2f;
    --orange-color: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: var(--light-bg);
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER & NAVBAR */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* Tăng nhẹ độ cao để thoáng hơn */
    padding: 0 20px;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .logo img {
        height: 50px;
        margin-right: 12px;
    }

.logo-text h1 {
    font-size: 1.1rem;
    color: var(--main-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Menu Desktop */

.navbar .main-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
}

    .navbar .main-menu > li {
        position: relative;
        white-space: nowrap;
    }

        .navbar .main-menu > li > a {
            padding: 30px 18px;
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 600;
            display: flex;
            align-items: center;
            transition: 0.3s;
        }

.pc-icon {
    font-size: 10px;
    margin-left: 6px;
    color: #888;
}

.drop-icon {
    display: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--white);
    display: none;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 3px solid var(--main-color);
}

    .dropdown li a {
        padding: 12px 20px;
        display: block;
        text-decoration: none;
        color: var(--dark-color);
        font-size: 14px;
        border-bottom: 1px solid #f5f5f5;
    }

        .dropdown li a:hover {
            background-color: #f0f7ff;
            color: var(--main-color);
            padding-left: 25px;
        }

@media (min-width: 992px) {
    .navbar .main-menu > li:hover .dropdown {
        display: block;
    }

    .navbar .main-menu > li:hover > a {
        color: var(--main-color);
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* INFO BAR */
.info-bar-section {
    padding: 40px 0 0 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--main-color);
}

    .info-card i {
        font-size: 1.8rem;
        color: var(--main-color);
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f0f7ff;
    }

.info-content h5 {
    color: var(--main-color);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* HERO SECTION */
.hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/id/192/1200/400');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hero-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    padding: 0 10px;
}

.search-container {
    display: flex;
    width: 800px;
    max-width: 95%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

    .search-container select {
        padding: 15px;
        border: none;
        border-right: 1px solid #eee;
        outline: none;
        background: #f9f9f9;
        font-weight: 500;
    }

    .search-container input {
        flex: 1;
        padding: 15px 20px;
        border: none;
        outline: none;
        font-size: 16px;
    }

    .search-container button {
        padding: 0 30px;
        background: var(--main-color);
        color: white;
        border: none;
        cursor: pointer;
        font-weight: bold;
    }

.slogan {
    margin-top: 20px;
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* STATS */
/* QUICK LINKS SECTION (Thay cho Quick Stats cũ) */
/* QUICK LINKS WITH ICONS */
.quick-stats {
    margin-top:20px;
}
.stats-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stat-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-decoration: none;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .stat-link-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

/* Màu sắc cho từng khối giống mẫu */
.color-1 {
    background: linear-gradient(135deg, #4879bb, #2c5282);
}
/* Xanh dương */
.color-2 {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}
/* Xanh lá */
.color-3 {
    background: linear-gradient(135deg, #e67e22, #d35400);
}
/* Cam */

.stat-icon-box {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-link-text span {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    display: block;
    text-transform: uppercase;
}

/* QUICK LINKS MODIFICATION */
.stats-grid-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều */
    gap: 20px;
}

.stat-link-card {
    position: relative;
    height: 180px; /* Độ cao của khối ảnh */
    border-radius: 10px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .stat-link-card:hover {
        transform: translateY(-5px); /* Hiệu ứng nổi lên khi di chuột */
    }

    .stat-link-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Giữ ảnh không bị méo */
        display: block;
    }

/* Lớp phủ màu tối để chữ trắng nổi bật */
.stat-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

    .stat-link-overlay span {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: bold;
        text-transform: uppercase;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }

/* Tối ưu cho thiết bị di động */
@media (max-width: 768px) {
    .stats-grid-links {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột dọc trên mobile */
    }

    .stat-link-card {
        height: 150px;
    }
}
/* QUICK LINKS MODIFICATION */
.stats-grid-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều */
    gap: 20px;
}

.stat-link-card {
    position: relative;
    height: 180px; /* Độ cao của khối ảnh */
    border-radius: 10px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .stat-link-card:hover {
        transform: translateY(-5px); /* Hiệu ứng nổi lên khi di chuột */
    }

    .stat-link-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Giữ ảnh không bị méo */
        display: block;
    }

/* Lớp phủ màu tối để chữ trắng nổi bật */
.stat-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

    .stat-link-overlay span {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: bold;
        text-transform: uppercase;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }

/* Tối ưu cho thiết bị di động */
@media (max-width: 768px) {
    .stats-grid-links {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột dọc trên mobile */
    }

    .stat-link-card {
        height: 150px;
    }
}

/* SLIDER SYSTEM */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
}

.section-title {
    color: var(--main-color);
    font-size: 1.5rem;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slide-page {
    min-width: 100%;
    width: 100%;
}

.pagination-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--main-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .arrow-btn.disabled {
        opacity: 0.3;
    }

/* GRIDS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch; /* Đảm bảo các item trong cùng 1 hàng có chiều cao bằng nhau */
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Chuyển card thành flex container theo chiều dọc */
    height: 380px;
    transition: transform 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .news-card img {
        width: 100%;
        height: 280px; /* Cố định chiều cao ảnh */
        object-fit: cover;
        flex-shrink: 0; /* Không cho ảnh bị co lại */
    }

.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Cho phép phần nội dung chiếm hết khoảng trống còn lại */
}

    /* Định dạng ngày tháng */
    .news-content span {
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 8px;
        display: block;
    }

    /* Xử lý Tiêu đề: Giới hạn 2 dòng, tự động hiện dấu ... */
    .news-content h4 {
        font-size: 1rem;
        line-height: 1.4;
        color: var(--main-color);
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.8em; /* Cố định chiều cao tương đương 2 dòng để các card bằng nhau */
    }

    /* Xử lý tóm tắt nội dung: Giới hạn 3 dòng */
    .news-content p {
        font-size: 13px;
        line-height: 1.5;
        color: #555;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Số dòng tối đa cho mô tả */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: auto; /* Đẩy nội dung xuống dưới nếu cần hoặc giữ vị trí */
    }
/*
.resource-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.book-list { background: white; border-radius: 8px; border: 1px solid #eef2f7; }
.book-item { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid #f5f5f5; }
.book-item img, .digital-thumb { width: 60px; height: 85px; object-fit: cover; border-radius: 4px; }
.digital-thumb { background: #ebf1f8; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--main-color); }
.tag { font-size: 10px; font-weight: bold; padding: 3px 10px; border-radius: 20px; background: #eef4fb; color: var(--main-color); display: inline-block; }
    */
/* 1. Cố định cấu trúc 2 cột luôn là 50% - 50% */
.resource-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Chia đều 2 cột bằng nhau tuyệt đối */
    gap: 40px;
    width: 100%;
}

/* 2. Đảm bảo cột không bị phình ra bởi nội dung con */
.resource-column {
    min-width: 0; /* Quan trọng: Cho phép các phần tử con co lại */
}

/* 3. Cấu trúc danh sách sách */
.book-list {
    background: white;
    border-radius: 8px;
    border: 1px solid #eef2f7;
    width: 100%; /* Luôn bám sát độ rộng của cột cha */
}

.book-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center; /* Căn giữa ảnh và chữ theo chiều dọc */
}

    /* 4. Cố định kích thước ảnh/thumb - ngăn không cho bị bóp méo */
    .book-item img, .digital-thumb {
        width: 60px !important;
        height: 85px !important;
        flex-shrink: 0; /* KHÔNG cho phép ảnh bị co lại khi chữ dài */
        object-fit: cover;
        border-radius: 4px;
    }

/* 5. Vùng chứa nội dung chữ */
.book-info {
    flex: 1; /* Chiếm toàn bộ không gian còn lại */
    min-width: 0; /* BUỘC phải có để xử lý cắt chữ (overflow) */
}

    /* 6. Xử lý Nhan đề: Tự động xuống dòng và giới hạn 2 dòng */
    .book-info strong {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Hiển thị tối đa 2 dòng */
        -webkit-box-orient: vertical;
        overflow: hidden; /* Ẩn phần thừa */
        text-overflow: ellipsis; /* Hiện dấu ... nếu quá dài */
        font-size: 14px;
        line-height: 1.4;
        color: #333;
        margin-bottom: 4px;
        word-break: break-word; /* Ngắt từ nếu từ đó quá dài */
    }

    /* 7. Xử lý tên tác giả: Hiển thị trên 1 dòng duy nhất */
    .book-info p {
        margin: 0;
        white-space: nowrap; /* Không cho xuống dòng */
        overflow: hidden;
        text-overflow: ellipsis; /* Hiện dấu ... */
        color: #666;
    }

.digital-thumb {
    background: #ebf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--main-color);
    float: left;
}

.tag {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eef4fb;
    color: var(--main-color);
    display: inline-block;
}
/* FOOTER - Cập nhật màu Main Color */
footer {
    background: var(--main-color);
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h4::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 2px;
        background: #fff;
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

        .footer-links li a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: 0.3s;
        }

            .footer-links li a:hover {
                color: #fff;
                padding-left: 5px;
            }

.visitor-stats {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    font-size: 13px;
}

/* MOBILE OPTIMIZATION */
#menu-bar, .sub-check {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--main-color);
}

@media (max-width: 991px) {
    .nav-wrapper {
        position: relative;
    }

    .menu-icon {
        display: block;
        position: absolute;
        right: 20px;
    }

    .pc-icon {
        display: none !important;
    }

    .drop-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .navbar {
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: var(--white);
        display: none;
        flex-direction: column;
        border-top: 1px solid #eee;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        z-index: 999;
    }

    #menu-bar:checked ~ .navbar {
        display: block;
    }

    .navbar .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }

        .navbar .main-menu > li {
            width: 100%;
            border-bottom: 1px solid #f5f5f5;
        }

            .navbar .main-menu > li > a {
                padding: 15px 20px;
                width: 100%;
                justify-content: space-between;
            }

    .dropdown {
        position: static;
        width: 100%;
        background: #fcfdfe;
        display: none;
        box-shadow: none;
        border: none;
    }

    .sub-check:checked ~ .dropdown {
        display: block;
    }

    /* Info Bar Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 15px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-stats {
        margin-top: -20px;
        padding: 20px 0;
    }

    /* Search Box Mobile */
    .search-container {
        flex-direction: column;
        width: 100%;
        border-radius: 8px;
    }

        .search-container select {
            border-right: none;
            border-bottom: 1px solid #eee;
            width: 100%;
        }

        .search-container button {
            padding: 15px;
        }

    .hero-overlay h2 {
        font-size: 1.4rem;
    }

    .slogan {
        font-size: 0.9rem;
    }

    /* News & Resources Mobile */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .resource-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header {
        margin-bottom: 15px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CATEGORY PAGE STYLES --- */
.category-content {
    padding: 30px 0 60px;
}

/* Breadcrumb hiện đại */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff; /* Nền trắng sạch sẽ */
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04); /* Đổ bóng rất nhẹ để nổi bật trên nền xám */
    font-size: 14px;
    border-left: 4px solid var(--main-color); /* Vạch màu main color ở đầu */
}

    .breadcrumb a {
        text-decoration: none;
        color: #666;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        /* Biểu tượng Home */
        .breadcrumb a:first-child::before {
            content: "\f015"; /* Icon Home của FontAwesome */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-right: 8px;
            color: var(--main-color);
        }

        .breadcrumb a:hover {
            color: var(--main-color);
        }

    .breadcrumb i {
        margin: 0 12px;
        color: #ccc;
        font-size: 10px;
    }

    /* Phần tử cuối cùng (Trang hiện tại) */
    .breadcrumb span {
        color: var(--main-color);
        font-weight: 600;
        background: #f0f7ff; /* Nền xanh nhạt cho trang hiện tại */
        padding: 4px 12px;
        border-radius: 20px;
    }
/* PHẦN FILE ĐÍNH KÈM */
.attachments-section {
    background: #fdfdfd;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.attachments-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

    .attachments-title i {
        color: var(--accent-color);
    }

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #edf2f7;
    transition: 0.2s;
}

    .file-item:last-child {
        border-bottom: none;
    }

    .file-item:hover {
        background: #f0f7ff;
    }

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #4a5568;
}

    .file-info i {
        font-size: 1.2rem;
        color: #e53e3e; /* Màu đỏ cho icon PDF/File */
    }

.file-name {
    font-size: 14px;
    font-weight: 500;
}

.file-size {
    font-size: 12px;
    color: #a0aec0;
    margin-left: 10px;
}

.btn-download {
    color: var(--main-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .btn-download:hover {
        text-decoration: underline;
    }
/* Tối ưu Mobile */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
        overflow-x: auto; /* Cho phép vuốt ngang nếu đường dẫn quá dài */
        margin: 15px 0;
    }
}

.category-main-box {
    background: var(--white);
    padding: 35px;
    border-radius: 20px; /* Bo tròn mạnh hiện đại */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eef0f2;
    margin-bottom: 50px;
}

.page-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 20px;
}

.page-title {
    font-size: 1.8rem;
    color: var(--main-color);
    text-transform: uppercase;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--main-color);
}

/* PHÂN TRANG */
.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #eee;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.page-item.active .page-link {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.page-link:hover:not(.active) {
    background: #f8fafd;
    border-color: var(--main-color);
}

/* GRID BÀI VIẾT */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cat-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: 0.4s;
}

    .cat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(72,121,187,0.1);
        border-color: var(--main-color);
    }

.cat-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

    .cat-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.6s;
    }

.cat-card:hover .cat-thumb img {
    transform: scale(1.08);
}

.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(72,121,187,0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.cat-body {
    padding: 20px;
}

    .cat-body h4 {
        font-size: 1.15rem;
        margin-bottom: 12px;
        line-height: 1.5;
        color: var(--dark-color);
    }

    .cat-body p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.read-more {
    text-decoration: none;
    color: var(--main-color);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

    .read-more:hover {
        gap: 12px;
    }

/* Tối ưu riêng cho màn hình cực nhỏ */
@media (max-width: 600px) {
    .page-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ẩn bớt các chữ dài để tiết kiệm diện tích */
    .page-item.first .page-link::before {
        content: "«";
    }

    .page-item.last .page-link::before {
        content: "»";
    }

    .page-item.prev .page-link::before {
        content: "‹";
    }

    .page-item.next .page-link::before {
        content: "›";
    }

    .page-item.first .page-link span,
    .page-item.last .page-link span,
    .page-item.prev .page-link span,
    .page-item.next .page-link span {
        display: none; /* Ẩn chữ "Trang đầu", "Trang cuối"... */
    }

    /* Giữ các nút số nhỏ gọn */
    .page-item .page-link {
        padding: 8px 10px;
        min-width: 35px;
        text-align: center;
    }
}

/* Danh sách bài viết (Grid) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

/* Thẻ bài viết (Card) */
.cat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

    .cat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.cat-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .cat-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--main-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.cat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .cat-body h4 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        color: var(--dark-color);
        line-height: 1.4;
    }

    .cat-body p {
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 20px;
        line-height: 1.6;
    }

.read-more {
    margin-top: auto;
    text-decoration: none;
    color: var(--main-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

    .read-more:hover {
        gap: 12px;
    }
/* Chi tiet tin */
.news-detail-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.news-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

    .news-meta span i {
        margin-right: 6px;
        color: var(--main-color);
    }

.main-news-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-summary {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.news-body p {
    margin-bottom: 15px;
    text-align: justify;
    color: #444;
}

.news-body h3 {
    margin: 25px 0 15px;
    color: var(--dark-color);
    border-left: 4px solid var(--main-color);
    padding-left: 15px;
}

.news-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

    .news-body ul li {
        margin-bottom: 8px;
    }
/* FOOTER CỦA BÀI VIẾT (Tag & Chia sẻ) */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.tags {
    display: flex;
    gap: 10px;
}

.tag-item {
    background: #f0f4f8;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

    .tag-item:hover {
        background: var(--main-color);
        color: white;
    }

.share-actions {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #555;
}

    .share-actions span {
        cursor: pointer;
        transition: 0.3s;
    }

        .share-actions span:hover {
            color: var(--main-color);
        }

/* TIN TỨC LIÊN QUAN (Sử dụng cấu trúc lưới từ abc.html) */
.related-section {
    padding-bottom: 60px;
}

.section-header {
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

.section-title {
    color: var(--main-color);
    font-size: 1.6rem;
}
/* news-grid được tùy chỉnh hiển thị 10 mục theo yêu cầu */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Chia 2 cột */
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; /* Kích hoạt chế độ nằm ngang */
    height: 180px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    width: 100%; /* Đảm bảo card chiếm hết độ rộng cột */
}

    .related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .related-card img {
        width: 25%;
        height: 100%; /* Đảm bảo ảnh lấp đầy chiều cao card */
        object-fit: cover;
        flex-shrink: 0; /* Ngăn ảnh bị co lại khi chữ quá dài */
    }

.related-card-content {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Cho phép vùng nội dung lấp đầy không gian bên phải */
    min-width: 0; /* Quan trọng: Cho phép cắt chữ overflow nếu cần */
}

    .related-card-content span {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
    }

    .related-card-content h4 {
        font-size: 1.1rem;
        color: var(--dark-color); /* Sử dụng biến từ styleDB.css */
        line-height: 1.4;
        margin: 0;
        /* Giới hạn 2 dòng để không bị tràn card */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }



.read-more-link {
    font-size: 13px;
    color: var(--main-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        justify-content: center;
        width: 100%;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .related-news-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }

    .related-card {
        height: auto; /* Cho phép giãn theo nội dung trên màn hình nhỏ nếu cần */
    }
}

/* --- LAYOUT CHIA CỘT MỚI --- */
.main-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* Cột chính tự co giãn, sidebar cố định 320px */
    gap: 30px;
    align-items: start;
}

/* Sidebar General Styling */
.sidebar {
    position: sticky;
    top: 100px; /* Dính lại khi cuộn trang, cách header 100px */
}

.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid #eef0f2;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--main-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    position: relative;
    text-transform: uppercase;
}

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--main-color);
    }

/* Tin xem nhiều (Trending List) */
.trending-list {
    list-style: none;
}

    .trending-list li {
        margin-bottom: 18px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #eee;
    }

        .trending-list li:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

    .trending-list a {
        display: flex;
        gap: 12px;
        text-decoration: none;
        color: var(--dark-color);
        transition: 0.3s;
    }

        .trending-list a img {
            width: 65px;
            height: 65px;
            border-radius: 8px;
            object-fit: cover;
        }

        .trending-list a span {
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .trending-list a:hover span {
            color: var(--main-color);
        }

/* Quảng cáo & Liên kết (Ad Banners) */
.ad-banners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafd;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #eef2f7;
    transition: 0.4s;
}

    .ad-item img {
        height: 35px;
        margin-right: 12px;
    }

    .ad-item span {
        font-size: 0.85rem;
        font-weight: 600;
        color: #444;
    }

    .ad-item:hover {
        background: var(--white);
        border-color: var(--main-color);
        box-shadow: 0 5px 15px rgba(72,121,187,0.1);
        transform: translateX(5px);
    }

/* RESPONSIVE CHO MOBILE */
@media (max-width: 991px) {
    .main-layout-grid {
        grid-template-columns: 1fr; /* Trở về 1 cột trên mobile */
    }

    .sidebar {
        position: static; /* Bỏ tính năng dính (sticky) trên mobile */
        order: 2; /* Sidebar nằm dưới nội dung chính */
    }

    .category-main-box {
        padding: 20px;
    }
}

/* PHẦN 1: BỘ LỌC TÌM KIẾM (HÌNH 1) */
.search-filter-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.results-section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 140px 1fr 140px 1fr;
    gap: 15px 20px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    color: #444;
}

    .filter-input:focus {
        border-color: var(--main-color);
    }

.btn-search-submit {
    background: var(--orange-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 25px;
    font-size: 15px;
}

/* PHẦN 2: KẾT QUẢ TÌM KIẾM (HÌNH 2) */
/* TABS */
.results-info {
    text-align: center;
    margin-bottom: 30px;
}

    .results-info h2 {
        color: var(--orange-color);
        font-size: 2.2rem;
        font-weight: 800;
        text-transform: uppercase;
    }

.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--main-color);
    position: relative;
    bottom: -2px;
}

    .tab-btn.active {
        background: var(--orange-color);
        color: white;
    }

    .tab-btn:not(.active):hover {
        background: #f0f4f8;
    }

/* BOOK GRID */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.book-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

    .book-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }

.book-img-box {
    background: #f9f9f9;
    padding: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

    .book-img-box img {
        width: 150px;
        height: 210px;
        object-fit: cover;
        box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    }

.book-title {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 40px 0;
}

.page-node {
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: var(--main-color);
    text-decoration: none;
    border-radius: 4px;
}

    .page-node.active {
        background: var(--main-color);
        color: white;
        border-color: var(--main-color);
    }

@media (max-width: 768px) {
    /* 1. Container & Header */
    .container {
        padding: 0 15px;
    }

    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    /* 2. Bộ lọc tìm kiếm (Search Filter) */
    .filter-grid {
        display: flex;
        flex-direction: column; /* Chuyển từ grid sang cột đứng */
        gap: 10px;
    }

    .filter-label {
        margin-top: 5px;
        font-weight: bold;
    }

    .filter-input {
        width: 100% !important; /* Đảm bảo input chiếm hết chiều ngang */
    }

    .btn-search-submit {
        width: 100%;
        margin-top: 15px;
        padding: 15px;
    }

    /* 3. Tabs (Tài liệu in / Tài liệu số) */
    .result-tabs {
        display: flex;
        flex-direction: row; /* Giữ hàng ngang nhưng cho phép cuộn nếu quá dài */
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 5px;
        font-size: 14px;
    }

    /* 4. Danh sách sách (Books Grid) */
    .books-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile hiện 2 cột thay vì 3 */
        gap: 15px;
    }

    .book-card {
        padding: 15px;
    }

    .book-img-box img {
        width: 100%; /* Ảnh co giãn theo khung */
        height: auto;
        aspect-ratio: 2/3;
    }

    .book-title {
        font-size: 14px;
        height: 40px; /* Giới hạn độ cao tiêu đề để đều nhau */
        overflow: hidden;
    }

    /* 5. Phân trang (Pagination) */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

        .pagination li a {
            padding: 8px 12px;
            font-size: 13px;
        }

    /* Ẩn bớt các nút không cần thiết trên mobile cực nhỏ */
    .page-item.first, .page-item.last {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Mobile cực nhỏ: Hiện 1 cột duy nhất để ảnh to, rõ nét */
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        display: flex; /* Chuyển sang dạng list ngang trên mobile nhỏ */
        text-align: left;
        align-items: center;
        gap: 15px;
    }

    .book-img-box {
        margin-bottom: 0;
        padding: 0;
        flex: 0 0 80px; /* Ảnh nhỏ bên trái */
    }

        .book-img-box img {
            height: 110px;
        }

    .book-title {
        height: auto;
    }
}
/* Lưới thông tin Meta */
.info-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-item {
    font-size: 14px;
    color: #777;
}

    .meta-item strong {
        color: var(--dark-color);
        margin-left: 5px;
    }

/* Nút bấm */
.btn-primary {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline {
    background: white;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Bảng kho tài liệu */
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .inventory-table th {
        text-align: left;
        padding: 15px;
        background: #f8fafd;
        color: #888;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .inventory-table td {
        padding: 15px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 14px;
        color: #444;
    }

/* Badge trạng thái */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

    .status-badge.available {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .status-badge.busy {
        background: #ffebee;
        color: #c62828;
    }

/* Mobile Responsive */
@media (max-width: 991px) {
    .resource-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .book-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .info-meta-grid {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        display: block;
        overflow-x: auto;
    }
}
/* Container danh sách file */
.file-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Từng hàng file */
.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    transition: 0.3s;
}

    .file-row:hover {
        border-color: var(--main-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

/* Thông tin file (Icon + Tên + Size) */
.file-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon-lg {
    font-size: 2.2rem;
    color: #e53e3e; /* Màu đỏ đặc trưng của PDF */
}

.file-name-wrapper {
    display: flex;
    flex-direction: column;
}

.file-display-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 15px;
}

.file-meta-size {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* Nút tương tác */
.file-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-read {
    background: #f0f7ff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

    .btn-read:hover {
        background: var(--main-color);
        color: white;
    }

.btn-download-file {
    background: #fff7ed;
    color: var(--orange-color);
    border: 1px solid var(--orange-color);
}

    .btn-download-file:hover {
        background: var(--orange-color);
        color: white;
    }

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .file-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .file-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================================
   MODULE BỘ SƯU TẬP TÀI LIỆU SỐ (Khớp form Tin tức mới)
======================================================== */
.doc-collection-module {
    margin-top: 30px;
    margin-bottom: 30px;
}
.doc-collection-module {
    max-width: 1200px; /* Giới hạn độ rộng tối đa bằng với khung web/tin tức */
    margin: 30px auto; /* auto giúp khối này tự động căn giữa màn hình */
    padding: 0 20px; /* Canh lề 2 bên để không bị sát mép trình duyệt */
    width: 100%;
    box-sizing: border-box;
}
    /* --- Phần Tiêu đề --- */
    .doc-collection-module .mod-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #eaeaea;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .doc-collection-module .mod-title {
        font-size: 20px;
        font-weight: bold;
        color: var(--main-color, #4879bb);
        text-transform: uppercase;
        position: relative;
        padding-left: 15px;
        margin: 0;
    }

        .doc-collection-module .mod-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 80%;
            width: 4px;
            background-color: var(--accent-color, #d32f2f);
            border-radius: 2px;
        }

    .doc-collection-module .mod-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .doc-collection-module .btn-view-all {
        background-color: var(--accent-color, #d32f2f);
        color: white;
        padding: 6px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.3s;
    }

        .doc-collection-module .btn-view-all:hover {
            background-color: #b71c1c;
            color: white;
        }

    /* --- Điều hướng Slider --- */
    .doc-collection-module .pagination-arrows {
        display: flex;
        gap: 5px;
    }

        .doc-collection-module .pagination-arrows button {
            background: white;
            border: 1px solid #ccc;
            color: var(--dark-color);
            width: 30px;
            height: 30px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: 0.3s;
        }

            .doc-collection-module .pagination-arrows button:hover:not(.disabled) {
                background: var(--main-color);
                color: white;
                border-color: var(--main-color);
            }

            .doc-collection-module .pagination-arrows button.disabled {
                opacity: 0.5;
                cursor: not-allowed;
                background: #f5f5f5;
            }

    /* --- Khung Lưới (2 cột, khớp chiều ngang Tin tức) --- */
    .doc-collection-module .slider-wrapper {
        overflow: hidden;
        width: 100%;
    }

    .doc-collection-module .slider-track {
        display: flex;
        transition: transform 0.4s ease-in-out;
    }

    .doc-collection-module .slide-page {
        min-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Giữ 2 cột */
        gap: 30px; /* Khoảng cách giữa 2 thẻ bằng khoảng cách 2 cột tin tức */
        padding-bottom: 15px;
    }

    /* --- Card Bộ Sưu Tập (Khớp chiều cao Tin tức) --- */
    .doc-collection-module .col-card {
        display: flex;
        align-items: center;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 25px 20px;
        gap: 20px;
        text-decoration: none;
        transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
        min-height: 130px; /* Độ cao thẻ */
        width: 100%;
        box-sizing: border-box;
    }

        .doc-collection-module .col-card:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            transform: translateY(-2px);
            border-color: var(--main-color);
        }

    /* --- Các thành phần bên trong Card --- */
    .doc-collection-module .col-icon {
        font-size: 3rem;
        color: var(--main-color);
        flex-shrink: 0;
        background: #f0f7ff;
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .doc-collection-module .col-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .doc-collection-module .col-name {
        font-size: 18px;
        font-weight: bold;
        color: var(--dark-color);
        margin: 0;
        line-height: 1.4;
        transition: color 0.3s;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .doc-collection-module .col-card:hover .col-name {
        color: var(--main-color);
    }

    .doc-collection-module .col-count {
        font-size: 15px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .doc-collection-module .col-count i {
            color: var(--accent-color);
        }