﻿/* Khối bao quanh toàn bộ */
.vdt-video-block {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Video chính */
.vdt-video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

    .vdt-video-responsive video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.vdt-main-title {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
}

/* Danh sách bên dưới video */
.vdt-custom-list {
    list-style: none;
    margin: 0 !important;
    padding: 10px 15px !important;
    max-height: 400px; /* Độ cao tối đa nếu danh sách quá dài */
    overflow-y: auto;
}

    .vdt-custom-list li {
        display: flex;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
        align-items: center;
    }

        .vdt-custom-list li:last-child {
            border-bottom: none;
        }

.vdt-thumb {
    flex: 0 0 80px;
    margin-right: 12px;
}

    .vdt-thumb img {
        width: 100%;
        border-radius: 4px;
        display: block;
    }

.vdt-text a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

    .vdt-text a:hover {
        color: #d9534f;
    }
/* Ép các slide nhỏ xếp chồng lên nhau */
#side_slides .item {
    display: none;
    transition: .6s ease-in-out left;
}

    #side_slides .item.active {
        display: block;
    }

/* Chỉnh vị trí dots cho đẹp */
#side_slides .carousel-indicators li {
    background-color: #ccc;
}

#side_slides .carousel-indicators .active {
    background-color: #333;
}

/* Con trỏ kính lúp khi rê vào ảnh */
#side_slides img {
    cursor: zoom-in;
}
/* Khung chứa ảnh */
.vmc-slideshow {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 150px; /* Điều chỉnh tùy kích thước ảnh */
    overflow: hidden;
}

    /* Ép các ảnh đè lên nhau */
    .vmc-slideshow a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        animation: vmcFade 9s infinite; /* 3 ảnh x 3 giây = 9 giây */
    }

    .vmc-slideshow img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* Thứ tự xuất hiện của từng ảnh */
    .vmc-slideshow a:nth-child(2) {
        animation-delay: 3s;
    }

    .vmc-slideshow a:nth-child(3) {
        animation-delay: 6s;
    }

/* Hiệu ứng mờ dần (Fade) */
@keyframes vmcFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
/* Khung tiêu đề */
.news-header {
    background-color: #004a99; /* Màu xanh đậm */
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
}

    .news-header .view-more {
        color: #fff;
        font-size: 12px;
        text-decoration: none;
    }

/* Phần nội dung tin */
.news-content {
    border: 1px solid #ddd;
    padding: 15px;
    background: #fff;
    min-height: 350px; /* Để 2 cột luôn bằng nhau */
}

/* Tin chính (Ảnh + Tiêu đề lớn) */
.main-news {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

    .main-news img {
        width: 200px;
        height: 120px;
        object-fit: cover;
    }

    .main-news h4 {
        font-size: 16px;
        font-weight: bold;
        margin: 0;
        line-height: 1.4;
    }

/* Danh sách tin phụ có dấu gạch cam */
.sub-news {
    list-style: none;
    padding: 0;
}

    .sub-news li {
        padding: 8px 0 8px 15px;
        position: relative;
        border-bottom: 1px dashed #eee;
        font-size: 14px;
    }

        .sub-news li::before {
            content: "■"; /* Dấu hình vuông màu cam */
            color: #ff8c00;
            position: absolute;
            left: 0;
            font-size: 10px;
            top: 12px;
        }

.catchuoi {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Hiện tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Tối ưu header tiêu đề */
.video-container-sidebar .title-box {
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* Container fix tỉ lệ chuẩn 16:9 cho cả video và ảnh */
.video-container-sidebar .ratio-16x9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
}

    /* Ép thẻ video và img luôn lấp đầy khung mà không bị méo (stretched) */
    .video-container-sidebar .ratio-16x9 video,
    .video-container-sidebar .ratio-16x9 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cắt ảnh/video vừa khít khung hình */
        border: 0;
    }

.video-container-sidebar .video-main {
    margin-bottom: 15px;
}

.video-container-sidebar .video-title-main {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    line-height: 1.4;
    color: #333;
}

/* Cấu trúc Flexbox cho danh sách video nhỏ */
.video-container-sidebar .video-item {
    margin-bottom: 15px;
    display: flex; /* Đưa ảnh và chữ nằm ngang hàng */
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

    .video-container-sidebar .video-item:hover .item-title {
        color: #d32f2f;
    }

/* Fix kích thước vùng chứa ảnh thumbnail */
.video-container-sidebar .thumb-box {
    flex: 0 0 42%; /* Ảnh chiếm đúng 42% chiều ngang sidebar */
    margin-right: 12px;
}

/* Tối ưu tiêu đề video nhỏ */
.video-container-sidebar .item-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: bold;
    line-height: 1.3;
    /* Giới hạn hiển thị tối đa 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Icon play nhỏ trên thumbnail */
.video-container-sidebar .play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    .video-container-sidebar .play-icon-small::after {
        content: '';
        border-style: solid;
        border-width: 5px 0 5px 8px;
        border-color: transparent transparent transparent #d32f2f;
        margin-left: 2px;
    }
.number-box-line {
    content: '';
    border-bottom: 1px dashed #dedede;
    width: 100%;
    margin: 20px auto;
}

    .number-box-line:before {
        content: '';
        display: block;
        margin: auto;
        margin-bottom: -7.5px;
        height: 15px;
        width: 15px;
        border: 2px solid #3DC1FF;
        background: #fff;
        border-radius: 50%;
    }

.article-news-title a:before {
    display: block;
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    background-color: #2e3553;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.article-news-title {
    border-top: 1px solid #e6e5e5;
    padding: 7px 0;
}

    .article-news-title a {
        position: relative;
        padding-left: 10px;
        display: block;
    }

        .article-news-title a i {
            color: #f99e3b;
        }

    .article-news-title .article-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin-bottom: 0;
    }