.video-header {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Fallback background color */
}

.video-header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    background-size: cover;
}

.video-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.video-overlay .bg-light {
    background-color: rgba(255, 255, 255, 0.8) !important; /* Slightly transparent white background for text */
}

.video-overlay h1, .video-overlay p {
    color: #333; /* Darker text for readability on light background */
}

/* Carousel styling to match video header */
#carouselExampleIndicators {
    height: 60vh; /* Match video header height */
    overflow: hidden;
}

#carouselExampleIndicators .carousel-inner,
#carouselExampleIndicators .carousel-item {
    height: 100%;
}

#carouselExampleIndicators .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key: covers the area, cropping if necessary */
    object-position: center; /* Centers the image within the area */
}