/* Quote Vertical Slider Styles */

.quote-vertical-slider__wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* Allow taller content to be visible */
    min-height: 100%; /* Ensure minimum height */
}

.quote-vertical-slider__overlay{
    position: absolute;
    width: 1100px;
    height: 100%;
    margin-inline: auto;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('images/bg-quote-slider.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* .quote-vertical-slider__overlay::before{
    content: '';
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    height: 100%;
    background: linear-gradient(270deg, rgba(116, 240, 255, 0.27) 0%, rgba(45, 145, 239, 0.3) 50%, rgba(0, 71, 249, 0.3) 100%);
    filter: blur(250px);
} */

/* Vertical Slider */
.quote-vertical-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    min-height: 100px;
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-vertical-slider__slide {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.quote-vertical-slider__item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Quote Text */
.quote-vertical-slider__quote {
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}



.quote-vertical-slider__quote span{
    color: var(--color-light) !important;
    font-weight: 700;
    filter: drop-shadow(0px 0px 15px #FFFFFF66);
}

/* Images Container */
.quote-vertical-slider__images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 1;
    pointer-events: none;
}

.quote-vertical-slider__image-wrapper {
    position: absolute;
    z-index: 2;
}

.quote-vertical-slider__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Loading and Animation States */
.quote-vertical-slider.loading {
    opacity: 0.7;
}

.quote-vertical-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #74F0FF;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quote-vertical-slider.fade-in {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Slide Transitions */
.quote-vertical-slider .swiper-slide {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-vertical-slider .swiper-slide-active {
    opacity: 1;
}

/* Ensure Swiper wrapper adjusts to content */
.quote-vertical-slider .swiper-wrapper {
    align-items: flex-start;
    display: flex;
    height: auto;
}

/* Initial states for text and images */
/* Quote text animations commented out - can be re-enabled by uncommenting below */
.quote-vertical-slider__quote {
    /* Animations disabled - uncomment to re-enable:
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    */
    display: block; /* Keep selector valid */
}

.quote-vertical-slider__image-wrapper {
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Initial state - first slide should be visible */
.quote-vertical-slider__slide.entered .quote-vertical-slider__quote,
.quote-vertical-slider__slide.entered .quote-vertical-slider__image-wrapper {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Text animations - exiting (current slide) */
/* .quote-vertical-slider__slide.exiting .quote-vertical-slider__quote {
    opacity: 0.3;
    transform: translateY(-30px);
} */

/* Text animations - entering (next slide) */
/* .quote-vertical-slider__slide.entering .quote-vertical-slider__quote {
    animation: textSlideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
} */

/* @keyframes textSlideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* Image animations - exiting (current slide moves outwards) */
.quote-vertical-slider__slide.exiting .quote-vertical-slider__image-wrapper {
    animation: imageMoveOutwards 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes imageMoveOutwards {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(var(--exit-offset-x, 0)) translateY(var(--exit-offset-y, 0)) scale(1.2);
    }
}

/* Image animations - entering (next slide flies in from outside) */
.quote-vertical-slider__slide.entering .quote-vertical-slider__image-wrapper {
    animation: imageFlyIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes imageFlyIn {
    from {
        opacity: 0;
        transform: translateX(var(--enter-offset-x, 0)) translateY(var(--enter-offset-y, 0)) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* Reset entering state after animation completes */
.quote-vertical-slider__slide.entered .quote-vertical-slider__quote,
.quote-vertical-slider__slide.entered .quote-vertical-slider__image-wrapper {
    animation: none;
}

/* Hidden slides */
.quote-vertical-slider__slide:not(.exiting):not(.entering):not(.entered) .quote-vertical-slider__quote {
    opacity: 0;
}

.quote-vertical-slider__slide:not(.exiting):not(.entering):not(.entered) .quote-vertical-slider__image-wrapper {
    opacity: 0;
}

.quote-vertical-slider__slide .budi-button-container{
    margin-top: 30px;
}

@media screen and (max-width: 767px) {
    .quote-vertical-slider__wrapper{
        padding-top: 60px;
        padding-bottom: 100px;
    }
}