/* Elementor Template Carousel Widget Styles */

.elementor-template-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.elementor-template-carousel-wrapper.arrows-outside {
    padding: 20px 60px;
}

.elementor-template-carousel-wrapper .swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.elementor-template-carousel-wrapper .swiper-wrapper {
    display: flex !important;
    /* Equal-height cards: make every slide stretch to the tallest slide in the row */
    align-items: stretch !important;
}

.elementor-template-carousel-wrapper .swiper-slide {
    /* JS may set --etc-slide-equal-height to force uniform card height */
    height: var(--etc-slide-equal-height, auto) !important;
    /* Content at top, space at bottom */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.elementor-template-carousel-wrapper .swiper-slide > * {
    width: 100%;
    /* Don't force height so content stays at top with space below */
}

/* Navigation Buttons */
.elementor-template-carousel-wrapper .swiper-button-next,
.elementor-template-carousel-wrapper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Arrows Inside */
.elementor-template-carousel-wrapper.arrows-inside .swiper-button-prev {
    left: 10px;
}

.elementor-template-carousel-wrapper.arrows-inside .swiper-button-next {
    right: 10px;
}

/* Arrows Outside */
.elementor-template-carousel-wrapper.arrows-outside .swiper-button-prev {
    left: 0;
}

.elementor-template-carousel-wrapper.arrows-outside .swiper-button-next {
    right: 0;
}

.elementor-template-carousel-wrapper .swiper-button-next:after,
.elementor-template-carousel-wrapper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.elementor-template-carousel-wrapper .swiper-button-next:hover,
.elementor-template-carousel-wrapper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.elementor-template-carousel-wrapper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination */
.elementor-template-carousel-wrapper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: auto !important;
}

.elementor-template-carousel-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.elementor-template-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elementor-template-carousel-wrapper.arrows-outside {
        padding: 20px 45px;
    }

    .elementor-template-carousel-wrapper .swiper-button-next,
    .elementor-template-carousel-wrapper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

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

/* Editor specific styles */
.elementor-editor-active .elementor-template-carousel-wrapper .swiper-slide {
    min-height: 200px;
}
