@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');


body
{
    font-family: 'Nunito',Arial,sans-serif;
/*    font-size: 14px;*/
/*    padding: 0;*/
/*    margin: 0;*/
}

ul
{
/*    padding: 0;*/
/*    list-style: none;*/
}

a
{
    text-decoration: none;
}

/* --- 1. BREADCRUMB SECTION --- */
.breadcrumb-wrapper {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0; /* Tạo độ cao vừa phải cho banner */
}

.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Lớp phủ tối giúp chữ màu trắng nổi bật */
    z-index: 0;
}

/* Tùy chỉnh dấu gạch chéo phân cách breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a:hover {
    opacity: 1 !important;
    color: #ffc107 !important; /* Đổi màu vàng nhẹ khi hover link trang chủ */
}


/* --- 2. NEWS SECTION & CARDS --- */
.news-section {
    background-color: #f8f9fa; /* Nền xám nhạt giúp card màu trắng nổi bật hẳn lên */
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* Hiệu ứng bay lên nhẹ và đổ bóng khi hover vào card tin tức */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Khung chứa ảnh tỉ lệ vàng 16:9 */
.news-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Khóa khung theo tỉ lệ 16:9 */
    overflow: hidden;
}

.news-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ảnh không bị méo */
    transition: transform 0.5s ease;
}

/* Hiệu ứng phóng to nhẹ ảnh khi hover card */
.news-card:hover .news-img img {
    transform: scale(1.08);
}


/* --- 3. NEWS CONTENT --- */
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Đảm bảo các nút "Xem thêm" luôn thẳng hàng ở đáy card */
}

.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Tiêu đề tin tức */
.news-title1 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #212529;
    margin-bottom: 12px;
    
    /* Giới hạn tiêu đề tối đa 2 dòng, tự động cắt bằng dấu "..." nếu quá dài */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    color: #0d6efd; /* Đổi thành màu chủ đạo của bạn khi hover (Ví dụ: Blue Bootstrap) */
}

/* Mô tả ngắn của tin tức */
.news-desc {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 20px;
    
    /* Giới hạn mô tả tối đa 3 dòng, tự động cắt bằng dấu "..." */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link "XEM THÊM" */
.news-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    margin-top: auto; /* Đẩy xuống sát đáy card */
    display: inline-block;
    transition: all 0.2s ease;
}

.news-link:hover {
    color: #0a58ca;
    letter-spacing: 1px; /* Hiệu ứng chữ giãn ra nhẹ khi rê chuột vào */
}



/* --- 1. CUSTOM BREADCRUMB --- */
.custom-breadcrumb {
    background: transparent;
    padding: 0;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #0d6efd; /* Màu chủ đạo khi hover */
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
    /* Giới hạn nếu tiêu đề bài viết trên breadcrumb quá dài */
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}


/* --- 2. CHI TIẾT BÀI VIẾT (LEFT SIDE) --- */
.news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-meta {
    font-size: 0.9rem;
    color: #8c92ac;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
}

/* Xử lý nội dung đổ ra từ CKEditor/TinyMCE */
.news-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    word-break: break-word;
}

.news-content p {
    margin-bottom: 1.25rem;
}

/* Tự động tối ưu ảnh do người dùng chèn trong bài viết không bị tràn màn hình */
.news-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

/* Tự động tối ưu bảng (table) nếu có trong bài viết */
.news-content table {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}


/* --- 3. BÀI VIẾT LIÊN QUAN (SIDEBAR RIGHT) --- */
.sidebar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    position: sticky; /* Giữ sidebar chạy dọc theo màn hình khi cuộn chuột (Trình duyệt rộng) */
    top: 20px;
}

.sidebar h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd; /* Đường gạch chân trang trí dưới tiêu đề sidebar */
}

/* Từng item bài viết liên quan */
.related-item {
    gap: 15px; /* Tạo khoảng cách giữa ảnh và chữ */
    align-items: center;
}

.related-item img {
    width: 90px;
    height: 65px;
    object-fit: cover; /* Giữ ảnh không bóp méo */
    border-radius: 6px;
    flex-shrink: 0; /* Không cho ảnh bị co lại khi chữ quá dài */
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ ảnh nhỏ khi hover */
}

.related-item a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.4;
    
    /* Giới hạn tiêu đề bài viết liên quan tối đa 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    transition: color 0.2s ease;
}

.related-item a:hover {
    color: #0d6efd;
}

.related-item .date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Responsive tinh chỉnh cho mobile */
@media (max-width: 991.98px) {
    .news-title {
        font-size: 1.6rem;
    }
    .sidebar {
        margin-top: 40px; /* Tạo khoảng cách an toàn với cột nội dung khi bị đẩy xuống dưới */
        position: static;
    }
}



@media only screen and (min-width: 1px) and (max-width: 1280px)
{   

}

@media only screen and (min-width: 1px) and (max-width: 1024px)
{


}
@media only screen and (min-width: 1px) and (max-width: 991px)
{


}
@media only screen and (min-width: 1px) and (max-width: 768px)
{


}
@media only screen and (min-width: 1px) and (max-width: 500px)
{   

}