
/* Video Mute Button */
.mute-btn {
    position: absolute;
    bottom: 26px;
    right: 20px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px; /* Larger touch target */
    height: 50px; /* Larger touch target */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0; /* Reset padding */
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: #fff;
}

.mute-btn i {
    font-size: 1.4rem;
}

/* Ensure video container fills the slide */
.video-container {
    width: 100%;
    height: 100%;
    position: absolute !important;
    inset: 0;
    overflow: hidden;
    background: #020617 url("../img/hero-1.webp") center / cover no-repeat;
    z-index: auto;
}

.hero-slide {
    min-height: inherit;
}

.hero-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-overlay {
    z-index: 4 !important;
}

.hero-video-fallback-btn {
    position: absolute !important;
    left: auto !important;
    right: 20px !important;
    top: 20px !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 30 !important;
    min-width: 0;
    min-height: 48px;
    background: rgba(2, 6, 23, 0.84) !important;
    border-color: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.38) !important;
    pointer-events: auto;
}

.mute-btn {
    z-index: 31 !important;
}

@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-overlay {
        min-height: 860px !important;
    }

    .hero-slide {
        min-height: 860px;
    }

    .video-container {
        min-height: 860px;
    }

    .hero-video-fallback-btn {
        display: inline-flex !important;
        top: 46% !important;
        padding: 10px 14px !important;
        min-width: 142px;
        min-height: 50px;
        gap: 10px;
        font-size: 0.92rem;
    }

    .mute-btn {
        display: none !important;
        bottom: 24px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .mute-btn i {
        font-size: 1.2rem;
    }
}

/* Keep the mobile sound control visible without covering hero copy. */
@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-overlay,
    .hero-slide,
    .video-container {
        min-height: 760px !important;
    }

    .hero-video-fallback-btn {
        left: auto !important;
        right: 14px !important;
        top: 16px !important;
        bottom: auto !important;
        transform: none !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }

    .hero-video-fallback-icon {
        width: 30px;
        height: 30px;
    }
}
