/* ============================================================
   1. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
}

/* ============================================================
   2. LAYOUT CHÍNH
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #6666ff 0%, #ffccff 50%, #99ccff 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

.main-header {
    height: 40dvh;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.6), rgba(79, 172, 254, 0.6));
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 40px;
    padding-top: 80px;
}

.main-header h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ============================================================
   3. CẤU TRÚC SLIDER - SỬA LỖI ẢNH TRẮNG
   ============================================================ */
.section-container {
    display: flex;
    align-items: center;
    background: white;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.section-container:nth-child(even) {
    flex-direction: row-reverse;
}

.image-box {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.slider-box {
    width: 100%;
    height: 100%;
    overflow-x: auto; /* Kích hoạt cuộn ngang */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #2575fc #f1f1f1;
}

.slider-box::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn mặc định để giao diện sạch hơn */
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%; /* Đặt lại width là 100% */
}

.slider-track img {
    /* flex: 0 0 100% giúp mỗi ảnh chiếm trọn 100% khung và KHÔNG bị co lại */
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
    /* Loại bỏ hiệu ứng chạy tự động nếu nó gây ra khoảng trắng */
    /* Nếu muốn dùng animation, hãy đảm bảo số lượng ảnh trong HTML luôn là 3 */
}
/* ============================================================
   4. TEXT BOX & RESPONSIVE
   ============================================================ */
.text-box {
    flex: 1.2;
    padding: 40px;
}
.text-box h2 {
    color: #2575fc;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
@media (max-width: 768px) {
    .section-container, 
    .section-container:nth-child(even) {
        flex-direction: column;
    }

    .image-box {
        width: 100%;
        height: 300px;
    }
}