/* --- My 3D Slider Styles --- */
.elementor-widget-my_3d_slider { /* Thay 'my_3d_slider' bằng tên widget thực tế của bạn */
    max-width: 90%; /* << Đặt chiều rộng tối đa mong muốn (ví dụ: 90%) */
    /* Hoặc max-width: 1200px; */
    width: 100%; /* Cho phép nó co lại nếu cần */
    margin-left: auto !important;  /* << Ép căn giữa */
    margin-right: auto !important; /* << Ép căn giữa */
    /* Thêm overflow hidden ở đây nếu cần thiết, nhưng thường wrapper là đủ */
    /* overflow: hidden; */
}
.my-3d-slider-wrapper { /* Hoặc class của div bao ngoài swiper-container */
    position: relative; /* Thường cần thiết */
    width: 100%;
    overflow: hidden;   /* <<< ĐÂY LÀ CHÌA KHÓA */
    /* Tùy chọn: Thêm padding ngang nếu overflow:hidden cắt mất bóng đổ */
    /* padding-left: 40px; */
    /* padding-right: 40px; */
}

.my-3d-slider.swiper-container {
    width: 100%; /* Hoặc giữ 100% nếu wrapper không có padding ngang */
    margin: 0 auto; /* Quan trọng để căn giữa swiper container nếu width < 100% */
    padding-top: 30px;    /* Khoảng đệm trên để không cắt bóng đổ trên */
    padding-bottom: 50px; /* Khoảng đệm dưới cho pagination và bóng đổ dưới */
    overflow: visible !important; /* BẮT BUỘC cho Coverflow */
}

.my-3d-slider .swiper-slide {
    background-position: center;
    background-size: cover;
    /* width: 300px; */ /* Swiper sẽ tính toán width dựa trên slidesPerView */
    /* height: 400px; */ /* Đặt chiều cao ở control Elementor */
    display: flex; /* Giúp căn chỉnh nội dung bên trong */
    align-items: flex-end; /* Căn nội dung xuống dưới cùng */
    position: relative; /* Cho phép định vị tuyệt đối overlay và content */
    border-radius: 15px; /* Mặc định, sẽ bị ghi đè bởi Elementor */
    overflow: hidden; /* Ẩn phần ảnh tràn ra ngoài do border-radius */
    transition: transform 0.4s ease, opacity 0.4s ease; /* Hiệu ứng mượt mà khi chuyển slide */
}

.my-3d-slider .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: 1; /* Nằm dưới content */
     border-radius: inherit; /* Kế thừa border-radius từ swiper-slide */
}


.my-3d-slider .slide-content-wrapper {
    position: relative; /* Tạo stacking context */
    z-index: 2; /* Nằm trên background */
    width: 100%;
    height: auto; /* Chiều cao tự động theo nội dung */
    /* background: rgba(0, 0, 0, 0.5); */ /* Màu overlay mặc định, sẽ bị ghi đè bởi Elementor */
    border-radius: 0 0 inherit inherit; /* Bo góc dưới theo slide cha */
}
/* Tạo overlay bằng pseudo-element để không ảnh hưởng layout content */
.my-3d-slider .slide-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5);  */
    background: linear-gradient(to bottom,rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.7)30%,rgba(0, 0, 0, 0.8)100%) !important;
    z-index: -1; /* Nằm dưới content nhưng trên background image */
    border-radius: inherit; /* Kế thừa border-radius */
     transition: background-color 0.3s ease;
}


.my-3d-slider .slide-content {
    padding: 20px; /* Mặc định, sẽ bị ghi đè bởi Elementor */
    position: relative; /* Đảm bảo content nằm trên overlay */
    z-index: 3;
}


.my-3d-slider .slide-title {
    margin: 0 0 10px 0; /* Mặc định, sẽ bị ghi đè bởi Elementor */
    font-size: 56px; /* Mặc định */
    font-weight: 400;
    color: #fff; /* Mặc định */
    line-height: 48px;
}

/* .my-3d-slider .slide-description {
    margin: 0;
    font-size: 1em;
    color: #fff;
    line-height: 1.5;
} */
.my-3d-slider .swiper-slide .slide-content-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.my-3d-slider .swiper-slide-active .slide-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}
/* Coverflow Effect Shadows (Swiper tự thêm class này nếu bật shadows) */
.my-3d-slider .swiper-slide-shadow-left,
.my-3d-slider .swiper-slide-shadow-right {
  background-image: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)); /* Tùy chỉnh đổ bóng nếu cần */
   border-radius: inherit; /* Đảm bảo shadow cũng bo góc */
}
.my-3d-slider .swiper-slide-shadow-right {
  background-image: linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

/* Style cho slide không active (làm mờ đi một chút) */
/* .my-3d-slider .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
} */
.my-3d-slider .swiper-slide:not(.swiper-slide-active) .slide-content-wrapper::before {
   /* background-color: rgba(0, 0, 0, 0.7); */ /* Có thể tăng độ đậm overlay cho slide phụ */
}

/* --- Navigation Styles --- */

/* Đặt vị trí cho arrows */
.my-3d-slider-wrapper .swiper-button-prev,
.my-3d-slider-wrapper .swiper-button-next {
    /* Swiper mặc định đặt top: 50%, transform: translateY(-50%) */
    /* Tùy chỉnh màu sắc, kích thước trong Elementor */
     color: #fff; /* Màu mặc định nếu không set trong Elementor */
}

/* Điều chỉnh vị trí arrows nếu cần */
/* .my-3d-slider-wrapper .swiper-button-prev { left: 10px; }
.my-3d-slider-wrapper .swiper-button-next { right: 10px; } */

/* Đặt vị trí cho pagination */
.my-3d-slider-wrapper .my-swiper-pagination {
    position: absolute; /* Hoặc relative nếu muốn nó đẩy content */
    bottom: 15px !important;
    left: 50% !important;
    width: 100%;
    text-align: center;
     /* z-index: 10; */ /* Đảm bảo nằm trên slide nếu cần */
}

/* Style cho pagination dots (mặc định) */
.my-3d-slider-wrapper .my-swiper-pagination-bullet {
    width: 8px; /* Mặc định, sẽ bị ghi đè bởi Elementor */
    height: 8px; /* Mặc định */
    background-color: #000; /* Mặc định */
    opacity: 0.5; /* Mặc định */
    margin: 0 5px;
    cursor: pointer;
    border-radius: 50%;
    display: inline-block;
     transition: background-color 0.3s ease, opacity 0.3s ease;
}

.my-3d-slider-wrapper .my-swiper-pagination-bullet-active {
    background-color: #fff; /* Mặc định */
    opacity: 1; /* Mặc định */
}

/* Style cho pagination progressbar */
.my-3d-slider-wrapper .my-swiper-pagination-progressbar {
    background: rgba(0,0,0,0.25); /* Màu nền của thanh progress */
    /* height: 4px; */ /* Đặt trong Elementor */
}
.my-3d-slider-wrapper .my-swiper-pagination-progressbar .my-swiper-pagination-progressbar-fill {
    background: #fff; /* Màu fill mặc định */
}

/* Style cho pagination fraction */
.my-3d-slider-wrapper .my-swiper-pagination-fraction {
    color: #fff; /* Màu text mặc định */
    font-size: 1em;
}


/* Responsive adjustments if needed */
@media (max-width: 767px) {
    .my-3d-slider .slide-title {
    margin: 0 0 10px 0; /* Mặc định, sẽ bị ghi đè bởi Elementor */
    font-size: 40px; /* Mặc định */
    color: #fff; /* Mặc định */
    line-height: 40px;
}

     .my-3d-slider .slide-description {
        font-size: 0.9em;
    }
     .my-3d-slider .slide-content {
        padding: 15px 20px 20px 20px;
    }
    /* Ẩn arrows trên mobile nếu muốn */
    /* .my-3d-slider-wrapper .swiper-button-prev,
    .my-3d-slider-wrapper .swiper-button-next {
        display: none;
    } */
}
/* Pagination */
.my-3d-slider .my-swiper-pagination {
    position: absolute;
    /* bottom: 40px; / */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;;
}

.my-3d-slider .my-swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
    margin: 0 5px;
    border-radius: 50%;
}

.my-3d-slider .my-swiper-pagination-bullet-active {
    background-color: #007AFF;
}

/* Navigation (Arrows) */
.my-3d-slider .swiper-navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.my-3d-slider .swiper-button-prev,
.my-3d-slider .swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 0;
    width: 40px;
    height: 40px;
    background-color: #007AFF;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.my-3d-slider .swiper-button-prev {
    margin-right: 20px;
}

.my-3d-slider .swiper-button-prev::after,
.my-3d-slider .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}
.my-3d-slider .swiper-button-next {
    margin-left: 100px;
}
.swiper-3d .swiper-wrapper{
    padding-bottom: 40px;;
}
