/* Container chính - Loại bỏ margin/padding mặc định */
.ets-container {
    width: 100%;
    max-width: 100vw; /* Đảm bảo wrapper không bao giờ lớn hơn màn hình */
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Xoá mọi nguy cơ tràn viền từ bên trong dội ra */
    background: transparent !important; /* Đảm bảo không có màu nền */
    box-shadow: none !important; /* Loại bỏ bóng nếu có từ theme */
    border: none !important; /* Loại bỏ viền */
}

/* Vùng chứa các nút điều hướng (Giữ nguyên style nút vì nút nằm ngoài) */
.ets-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px; /* Khoảng cách giữa nút và nội dung */
    padding: 0;
    max-width: 100%; /* Giới hạn chiều rộng menu */
    box-sizing: border-box; /* Đảm bảo padding không làm tăng tổng kích thước chữ */
}

/* 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;
    user-select: none;
}

.ets-nav-item-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.ets-nav-item:hover {
    color: #0056b3;
    border-color: #0056b3;
}

.ets-nav-item.active {
    background-color: #f0f5ff;
    color: #0056b3;
    border-color: #99bbff;
}

/* Slider nội dung - QUAN TRỌNG: Xóa sạch padding/shadow */
.ets-content-slider {
    width: 100%;
    overflow: hidden; /* Sửa visible thành hidden để tránh lỗi tràn viền ngang (Horizontal Scrollbar) */
    padding: 0 !important; /* Xóa padding bao quanh */
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Cấu hình slide - Đảm bảo trong suốt */
.ets-content-slider .swiper-slide {
    transition: opacity 0.4s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: transparent !important; /* Xóa nền trắng nếu có */
    box-shadow: none !important; /* Xóa bóng đổ nếu có */
    border: none !important;
    padding: 0 !important; /* Xóa padding của slide */
}

.ets-slide-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ets-slide-content > .elementor {
    flex-grow: 1;
}

/* Responsive - Mobile cũng xóa sạch padding thừa */
@media (max-width: 768px) {
    .ets-container {
        padding-left: 0 !important; /* Xóa padding 2 bên trên mobile */
        padding-right: 0 !important;
    }
    
    .ets-navigation {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
        /* Thêm chút padding ngang cho menu trên mobile để dễ vuốt */
        padding-left: 10px; 
        padding-right: 10px;
    }

    .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;
    }

    .ets-content-slider {
        overflow: hidden; /* Sửa visible thành hidden để tránh lỗi tràn viền */
        padding-bottom: 0 !important;
    }
}