/* =============================================================================
   Video Fix - Responsive 16:9 Aspect Ratio
   ========================================================================== */

/* Override fixed height from custom.css/eduskill-custom.css */
.video-section .video-container {
    height: 0 !important;
    /* Start with 0 height for padding hack */
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* Black background for video */
}

/* Standardize iframe/video placement */
.video-section .video-container iframe,
.video-section .video-container .product-video,
.video-section .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Ensure play/sound buttons stay on top */
.video-section .video-container .video-sound-toggle,
.video-section .video-container .play-icon {
    z-index: 10;
    position: absolute;
}

/* Position sound toggle specifically */
.video-sound-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-sound-toggle:hover {
    background: rgba(37, 99, 235, 0.8);
    transform: scale(1.1);
}