/* Responsive Video Banner System */

/* Override old banner styles */
.banner {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Video Slider Container */
.video-slider {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Banner Outer Container */
.banner-outer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Banner Container */
.video-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Video Element */
.video-banner video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    z-index: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Video Overlay */
.video-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Mute Button */
#MuteButton {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

#MuteButton:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#MuteButton.muted::before {
    content: '🔇';
}

#MuteButton:not(.muted)::before {
    content: '🔊';
}

/* Content Container */
.swiper-content {
    position: relative !important;
    z-index: 5 !important;
    text-align: center !important;
    color: #fff !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
}

/* Content Typography */
.swiper-content h4 {
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    opacity: 0.9 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.swiper-content h1 {
    font-size: 4rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 30px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 1px !important;
}

/* CTA Button */
.per-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* background: rgba(247, 150, 83, 0.9); */
    color: #fff;
    text-decoration: none;
    padding: 18px 35px;
    /* border-radius: 50px; */
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(10px); */
}

.per-btn:hover {
    background: #f79653;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 25px;
}

.per-btn i {
    transition: transform 0.3s ease;
}

.per-btn:hover i {
    transform: translateX(5px);
}

/* Desktop Styles (1200px and above) */
@media (min-width: 1200px) {
    .swiper-content h1 {
        font-size: 5rem;
    }
    
    .swiper-content h4 {
        font-size: 20px;
    }
    
    .per-btn {
        padding: 20px 40px;
        font-size: 18px;
    }
    
    #MuteButton {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* Tablet Styles (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .banner {
        height: 80vh;
    }
    
    .swiper-content h1 {
        font-size: 3.5rem;
    }
    
    .swiper-content h4 {
        font-size: 18px;
    }
    
    .per-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    #MuteButton {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Mobile Styles (767px and below) */
@media (max-width: 767px) {
    .banner {
        height: 70vh;
    }
    
    .swiper-content {
        padding: 0 15px;
    }
    
    .swiper-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 25px;
    }
    
    .swiper-content h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .per-btn {
        padding: 14px 28px;
        font-size: 14px;
        gap: 10px;
    }
    
    #MuteButton {
        width: 45px;
        height: 45px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
    
    .video-banner .overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .banner {
        height: 60vh;
    }
    
    .swiper-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .swiper-content h4 {
        font-size: 14px;
    }
    
    .per-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    #MuteButton {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Video Loading States */
.video-banner video {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-banner video.loaded {
    opacity: 1;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .video-banner video {
        animation: none;
    }
    
    .per-btn {
        transition: none;
    }
    
    #MuteButton {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .video-banner .overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .swiper-content h1 {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
}

/* Print Styles */
@media print {
    .banner {
        height: auto;
        background: #f0f0f0;
    }
    
    .video-banner {
        display: none;
    }
    
    .swiper-content {
        color: #000;
        position: static;
    }
}
