/* Carousel Section */
.carousel-section {
    height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    animation: carouselAnimation 15s infinite;
    position: relative;
    color: #fff;
    padding-left: 5%;
    margin: 0; /* Removes any default margin */
    overflow: hidden; /* Prevents overlay spillover */
}

/* Black shading overlay */
.carousel-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1; /* Ensures overlay appears above the background images */
}

.carousel-content {
    max-width: 400px;
    text-align: left;
    position: relative;
    z-index: 2; /* Ensures content appears above the overlay */
}

.carousel-content h2,
.carousel-content h1,
.carousel-content h3 {
    margin: 10px 0;
}

.carousel-section h1 {
    font-size: 2.5rem;
}

.carousel-section h2,
.carousel-section h3 {
    font-size: 1.5rem;
}

/* Animation for Carousel Background Images */
@keyframes carouselAnimation {
    0% { background-image: url('/img/img-1.jpg'); }
    33% { background-image: url('/img/img-2.jpg'); }
    66% { background-image: url('/img/img-3.jpg'); }
    100% { background-image: url('/img/img-1.jpg'); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-section h1 {
        font-size: 2rem;
    }

    .carousel-section h2,
    .carousel-section h3 {
        font-size: 1.2rem;
    }

    .carousel-content {
        max-width: 100%;
        padding: 0 10%;
    }
}

@media (max-width: 480px) {
    .carousel-section h1 {
        font-size: 1.8rem;
    }

    .carousel-section h2,
    .carousel-section h3 {
        font-size: 1rem;
    }

    .carousel-content {
        padding: 0 5%;
    }
}
