/* Custom CSS for the Carousel */
.carousel-item {
    height: 75vh;
    /* Adjust as needed */
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    /* For overlay content */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background for text */
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    bottom: 20%;
    /* Adjust vertical position */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    /* Adjust width as needed */
    max-width: 800px;
    color: #fff;
    text-align: center;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.carousel-caption p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Optional: Darker overlay for better text readability */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.4); */
    /* Darker overlay */
    z-index: 1;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }

    .carousel-caption h5 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-caption {
        bottom: 10%;
        width: 90%;
    }
}