/* Training Course Page Styles */

/* Global responsive fixes */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.video-container {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-element {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.hero-video-section {
    width: 590px;
    max-width: 100%;
}

.hero-section {
    width: 100%;
    max-width: 100%;
}

.hero-video {
    width: 590px;
    max-width: 100%;
}

.hero-video .bg-gray-200 {
    width: 590px;
    max-width: 100%;
}

.hero-video iframe {
    width: 590px;
    height: 332px;
    max-width: 100%;
    border-radius: 8px;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.3s ease;
    width: 74.94px;
    height: 74.94px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-overlay:hover {
    opacity: 0.8;
}

.video-container.playing .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

.overlay-images {
    display: flex;
}

/* Mobile styles */
@media (max-width: 768px) {
    
    .overlay-images {
        display: none !important;
    }
    
    /* Make play button smaller on mobile */
    .play-button-overlay {
        width: 50px !important;
        height: 50px !important;
    }
    
    .play-button-overlay svg {
        width: 50px !important;
        height: 50px !important;
    }
    
    .hero-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 0 !important;
    }
    
    .hero-content {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    
    .hero-video {
        order: 2 !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    
    .video-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix overflow issues */
    .ef-container {
        padding: 0 16px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .page-layout-columns {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    main {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    aside {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Three boxes responsive */
    .grid.grid-cols-3 {
        display: none !important;
    }
    
    aside > div {
        width: 100% !important;
        max-width: 100% !important;
    }
}

