/* Video Hero Section Styles */

/* Video container that replaces the static background */
.banner-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 910px;
    overflow: hidden;
    z-index: -1;
}

.banner-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.banner-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Fallback for when video is loading or not supported */
.banner-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner/banner-two-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Mobile optimization - hide video on small screens for performance */
@media screen and (max-width: 768px) {
    .banner-hero-video {
        display: none;
    }
    
    .banner-video-fallback {
        display: block;
    }
}

@media screen and (min-width: 769px) {
    .banner-video-fallback {
        display: none;
    }
}

/* Adjust video container height for different screens */
@media screen and (max-width: 1199px) {
    .banner-video-container {
        height: 750px;
    }
}

@media screen and (max-width: 991px) {
    .banner-video-container {
        height: 650px;
    }
}

@media screen and (max-width: 575px) {
    .banner-video-container {
        height: 500px;
    }
}

/* Enhanced text visibility over video */
.banner-two-area .section-subtitle {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-two-area .banner-two-title {
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.banner-two-area .banner-two-title span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
}
