.questars-video-carousel-wrapper {
    padding: 20px 0;
}

.video-carousel {
    margin: 0 auto;
    max-width: 1200px;
}

/* Show arrows - specific to video carousel */
.questars-video-carousel-wrapper .splide__arrows {
    display: block !important;
}

.questars-video-carousel-wrapper .splide__arrow {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    width: 2.5em !important;
    height: 2.5em !important;
    top: 38%;
}

.questars-video-carousel-wrapper .splide__arrow--prev {
    left: -2em;
}

.questars-video-carousel-wrapper .splide__arrow--next {
    right: -2em;
}

@media (max-width: 768px) {
    .questars-video-carousel-wrapper .splide__arrow--prev {
        left: -1em;
    }
    
    .questars-video-carousel-wrapper .splide__arrow--next {
        right: -1em;
    }
}

.questars-video-carousel-wrapper .splide__arrow:hover {
    background: #fff !important;
}

.questars-video-carousel-wrapper .splide__arrow svg {
    width: 1.2em !important;
    height: 1.2em !important;
}

.video-item {
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMzAiIGZpbGw9InJnYmEoMCwwLDAsMC43KSIvPgo8cGF0aCBkPSJNMjUgMjBMMjUgNDBMMzUgMzBMMjUgMjBaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #322450;
}

/* Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative!important;
    width: 90%!important;
    max-width: 800px!important;
    margin: 50px auto;
    aspect-ratio: 16/9!important;
}

.close-modal {
    position: absolute;
    right: -40px;
    top: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

#youtube-player {
    width: 100%;
    height: 100%;
}

h2.gb-headline-video-carousel {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .close-modal {
        right: 0;
        top: -40px;
    }

    .questars-video-carousel-wrapper .splide__arrow {
        width: 2em !important;
        height: 2em !important;
    }

    .play-icon {
        width: 40px;
        height: 40px;
    }
}
