

.overlay {
    position: absolute;
}

.carousel-container {
    width: 600px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
   
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
     font-size: 18px;
    animation: slide 13s infinite;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgb(164, 249, 38);
    text-align: center;
    padding: 30px;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
   
   
}

/* .carousel-slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca');
}

.carousel-slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1604176354204-9268737828e4');
}

.carousel-slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1621550177415-9a2d5f72b9b5');
} */

@keyframes slide {
    0% { opacity: 0; transform: translateX(100%); }
    5% { opacity: 1; transform: translateX(0); }
    25% { opacity: 1; transform: translateX(0); }
    30% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 0; transform: translateX(-100%); }
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 4s; }
.carousel-slide:nth-child(3) { animation-delay: 8s; }

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #219a52;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .carousel-container {
        width: 100%;
        height: 500px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    p {
        font-size: 1em;
    }
}


@media (max-width: 400px) {
    .carousel-container {
        width: 100%;
        height: 500px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    p {
        font-size: 1em;
    }
    
}