/* css/hero-video.css */

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    /* Keep it behind everything else in the hero slide */
    background-color: #002052;
    /* Fallback */
}

/* Semi-transparent overlay to ensure text is legible */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 80, 0.4);
    /* Dark blue tint */
    z-index: -1;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.hero-bg-video.active-video {
    opacity: 1;
    visibility: visible;
}