/**
 * Elementor Swiper Carousel
 * Custom styling for the swiper carousel elementor widget
 */

/* Wrapper container */
.elementor-swiper-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Swiper container */
.elementor-swiper-carousel-wrapper .swiper-container {
    width: 100%;
    height: 100%;
}

/* Slide styles */
.elementor-swiper-carousel-wrapper .swiper-slide {
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Image container - Make sure it fills the entire slide */
.elementor-swiper-carousel-wrapper .swiper-slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Slide image - Ensure it covers the entire container */
.elementor-swiper-carousel-wrapper .swiper-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide overlay - For customizable background overlays */
.elementor-swiper-carousel-wrapper .swiper-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.5); /* Default overlay color */
}

/* Content container */
.elementor-swiper-carousel-wrapper .swiper-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 80%;
    padding: 30px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Heading */
.elementor-swiper-carousel-wrapper .swiper-slide-heading {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* Subheading */
.elementor-swiper-carousel-wrapper .swiper-slide-subheading {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* CTA Button */
.elementor-swiper-carousel-wrapper .swiper-slide-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--e-global-color-secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transform: scale(1);
    transition: scale 0.3s ease;
    will-change: transform, opacity;
}

.elementor-swiper-carousel-wrapper .swiper-slide-cta:hover {
    transform: scale(1.5);
}

/* Navigation arrows */
.elementor-swiper-carousel-wrapper .swiper-button-next,
.elementor-swiper-carousel-wrapper .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.elementor-swiper-carousel-wrapper .swiper-button-next svg,
.elementor-swiper-carousel-wrapper .swiper-button-prev svg {
    height: 40%;
    position: relative;
    stroke-width: 2px;
    stroke: currentColor;
    transition: all 0.3s ease;
    transform: translateX(0px);
}

.elementor-swiper-carousel-wrapper .swiper-button-next svg {
    left: 1px;
}

.elementor-swiper-carousel-wrapper .swiper-button-prev svg {
    left: -2px;
}

.elementor-swiper-carousel-wrapper .swiper-button-next:hover,
.elementor-swiper-carousel-wrapper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.elementor-swiper-carousel-wrapper .swiper-button-next:after,
.elementor-swiper-carousel-wrapper .swiper-button-prev:after {
    font-size: 16px;
}

/* Pagination bullets */
.elementor-swiper-carousel-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.elementor-swiper-carousel-wrapper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .elementor-swiper-carousel-wrapper .swiper-slide-heading {
        font-size: 2em;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-subheading {
        font-size: 1.2em;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-content {
        max-width: 90%;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .elementor-swiper-carousel-wrapper .swiper-slide-heading {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-subheading {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-content {
        max-width: 100%;
        padding: 15px;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
}
