/* Carousel Styling */
.carousel {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Text animation setup */
.carousel-text {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(20px);
    background-color: rgba(0, 0, 0, 0.6);
}

/* Animate text when active */
.active .carousel-text {
    opacity: 1;
    transform: translateY(0);
}