﻿
.tinbaislide {
    display: flex;
    /*max-width: 1200px;*/
    /*margin: 40px auto;*/
    gap: 10px;
    padding: 9px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .tinbaislide .swiper {
        width: 60%;
        /*height: 350px;*/
        height: 400px;
        border-radius: 8px;
        overflow: hidden;
    }

    .tinbaislide .swiper-slide .text-slide {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        padding: 0px 10px;
        height: 40px;
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0.4); /* Tối mờ */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

        .tinbaislide .swiper-slide .text-slide p {
            color: #fff;
            font-size: 15px;
            margin: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            /* Giới hạn số dòng */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 100;
        }


    .tinbaislide .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    .tinbaislide .swiper-slide-active img {
        /* transform: scale(1.03); */
    }

    .tinbaislide .news-list {
        width: 40%;
        height: 400px;
        overflow-y: auto;
        position: relative;
        /* Tùy chỉnh thanh cuộn */
        scrollbar-width: thin;
        /* Dành cho Firefox */
        scrollbar-color: #dfe0e0 #f1f1f1;
        /* Màu thanh cuộn Firefox */
    }

    .tinbaislide .news-list-inner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

        .tinbaislide .news-list-inner .new-list-sticky {
            POSITION: sticky;
            top: 0;
            z-index: 99;
            background: linear-gradient(to right, #d7e7ff, #ffffff);
            height: 35px;
            padding: 5px 0 6px;
            border-left: 1px solid #e5e5e5;
            box-shadow: -5px 0 10px rgb(0 0 0 / 38%);
        }

            .tinbaislide .news-list-inner .new-list-sticky .new-list-sticky-img {
                height: 100%;
                width: 33px;
                margin: 0 10px;
            }
    /* Thanh cuộn cho Chrome/Edge/Safari */
    .tinbaislide .news-list::-webkit-scrollbar {
        width: 6px;
        /* Độ rộng thanh cuộn */
    }

    .tinbaislide .news-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        /* Màu nền track */
        border-radius: 3px;
    }

    .tinbaislide .news-list::-webkit-scrollbar-thumb {
        background: #0066cc;
        /* Màu thanh cuộn */
        border-radius: 3px;
        transition: background 0.3s ease;
        /* Hiệu ứng mượt */
    }

        .tinbaislide .news-list::-webkit-scrollbar-thumb:hover {
            background: #004d99;
            /* Màu khi hover */
        }

    /* Đảm bảo nội dung không bị che bởi scrollbar */
    .tinbaislide .news-list-inner {
        padding-right: 6px;
    }

    .tinbaislide .news-item {
        border-bottom: 1px solid #eee;
        opacity: 0.8;
        transition: all 0.5s ease;
        /* transform: translateY(20px); */
        display: flex;
        /*margin-bottom: 5px;*/
        padding: 5px;
    }

.news-item.active {
    opacity: 1;
    /* transform: translateY(0); */
    border-bottom: 1px solid #0066cc;
    background: #eeeeee;
}

.news-item img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    /*margin-bottom: 5px;*/
    border-radius: 5px;
    transition: transform 0.5s ease;
    flex: 1;
}

.news-item:hover img {
    transform: scale(1.02);
}

.news-item .news-item-content {
    text-decoration: none;
    font-weight: bold;
    display: block;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 2;
    padding-left: 10px;
}

    .news-item .news-item-content p {
        margin: 2px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Giới hạn số dòng */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 100;
        font-size: 13px;
    }

    .news-item .news-item-content a {
        text-decoration: none;
        /*color: #333;*/
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        /*            -webkit-box-orient: vertical;*/
        overflow: hidden;
        text-overflow: ellipsis;
    }

.news-item a:hover {
    color: #0066cc;
}

/* Navigation buttons */
.tinbaislide .swiper-button-next,
.tinbaislide .swiper-button-prev {
    background: rgba(255, 255, 255, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .tinbaislide .swiper-button-next:hover,
    .tinbaislide .swiper-button-prev:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.1);
    }

    .tinbaislide .swiper-button-next:after,
    .tinbaislide .swiper-button-prev:after {
        font-size: 20px;
        color: #333;
    }

/* Pagination */
.tinbaislide .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #fff !important;
    opacity: 1;
    transition: all 0.3s ease;
}

.tinbaislide .swiper-pagination-bullet-active {
    background: #2086ec !important;
    transform: scale(1.2);
}
