/* Carousel container */
.cta-bootstrap-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 70vh;
}

/* Carousel images */
.cta-bootstrap-slide .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}



/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    background-image: none;
    position: relative;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.carousel-control-prev-icon::after {
    border-right: 15px solid black;
}

.carousel-control-next-icon::after {
    border-left: 15px solid black;
}

.cta-bootstrap-slide.carousel {
    position: relative;
}

@media (max-width: 576px) {
    .carousel-text-overlay {
        left: 50%;
        width: 90%;
    }
    .carousel-inner {
        max-height: 100vh;
    }
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-item-cta img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

.fancy-animation {
    animation: slideFadeIn 1.1s ease-out;
}
.fancy-animation-slow {
    animation: slideFadeInSlow 1.9s ease-out;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-1rem); /* Slide down from ~1rem */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}

@keyframes slideFadeInSlow {
    0% {
        opacity: 0;
        transform: translateY(-1.5rem); /* Slide down from ~1rem */
    }
    50% {
        opacity: 0;
        transform: translateY(-1.5rem); /* Slide down from ~1rem */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}
