/* Container chính */
.ets-container {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box; /* Thêm để padding không làm thay đổi kích thước tổng thể */
}

/* Vùng chứa các nút điều hướng */
.ets-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Căn trái các nút */
    gap: 10px; /* Khoảng cách giữa các nút */
    margin-bottom: 30px;
}

/* Kiểu của mỗi nút tab */
.ets-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
}

/* Kiểu cho ảnh icon trong tab */
.ets-nav-item-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.ets-nav-item:hover {
    color: #0056b3;
    border-color: #0056b3;
}

/* Trạng thái active của tab */
.ets-nav-item.active {
    background-color: #f0f5ff;
    color: #0056b3;
    border-color: #99bbff;
}

/* Slider nội dung (quy tắc chung cho tất cả kích thước màn hình) */
.ets-content-slider {
    width: 100%;
    /* Trên desktop, chúng ta cần overflow: visible để thấy slide kế bên */
    /* Nhưng trên mobile, chúng ta sẽ ghi đè nó */
    overflow: visible; 
}

.ets-content-slider .swiper-slide {
    transition: opacity 0.4s ease;
}

.ets-slide-content {
    width: 100%; 
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 768px) {
    /* Thêm padding hai bên cho container trên mobile */
    .ets-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Biến thanh điều hướng thành dạng slide trên mobile */
    .ets-navigation {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    /* Ẩn thanh cuộn trên các trình duyệt Webkit (Chrome, Safari, Edge) */
    .ets-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .ets-nav-item {
        padding: 6px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .ets-nav-item-icon {
        width: 16px;
        height: 16px;
    }

    /* --- BỔ SUNG: Khắc phục lỗi tràn nội dung slider trên mobile --- */
    .ets-content-slider {
        overflow: hidden; /* QUAN TRỌNG: Ẩn đi phần nội dung bị tràn ra */
    }
    .ets-content-slider .swiper-slide {
        /* Đảm bảo slide chiếm đúng 100% không gian có sẵn và không có margin/padding thừa */
        width: 100% !important; 
        margin-right: 0 !important;
    }
}