﻿#full-width-carousel {
    width: 100%;
    position: relative;
    overflow: hidden; /* Thêm overflow để nút không bị tràn ra ngoài nếu có lỗi */
}

    #full-width-carousel .carousel-viewport1 {
        width: 100%;
        overflow: hidden;
    }

    #full-width-carousel .carousel-track1 {
        display: flex;
    }

    #full-width-carousel .carousel-slide1 {
        flex: 1 0 100%; /* Đảm bảo mỗi slide chiếm 100% chiều rộng */
        width: 100%;
        height: auto; /* Chiều cao chiếm 70% chiều cao màn hình, có thể tùy chỉnh */
        min-height: 500px;
        background-size: cover;
        background-position: center center;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
    }

        #full-width-carousel .carousel-slide1::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
           /* Lớp phủ màu đen mờ */
            z-index: 1;
        }

    #full-width-carousel .slide-content1 {
        position: relative;
        z-index: 2;
        padding: 20px;
        max-width: 90%;
    }

        #full-width-carousel .slide-content1 h2 {
            font-size: 3rem;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
            margin-bottom: 10px;
        }

        #full-width-carousel .slide-content1 p {
            font-size: 1.2rem;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
        }

    #full-width-carousel .carousel-button1 {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.7);
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
    }

        #full-width-carousel .carousel-button1:hover {
            background-color: white;
        }

        #full-width-carousel .carousel-button1.prev {
            left: 20px;
        }

        #full-width-carousel .carousel-button1.next {
            right: 20px;
        }

/* Responsive */
@media (max-width: 768px) {
    #full-width-carousel .slide-content1 h2 {
        font-size: 2rem;
    }

    #full-width-carousel .slide-content1 p {
        font-size: 1rem;
    }

    #full-width-carousel .carousel-button1 {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
