/* Video Slider Widget Styles - Swiper Version */
.mfp-bg, .mfp-wrap{z-index: 99999;}
.video-slider-wrapper {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.swiper.video-slider {
    padding: 0; /* Add padding for arrows */
    position: relative;
}

.swiper-slide.video-slider-item {
    outline: none;
}

.video-slider-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;

}



.video-slider-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.video-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-slider-thumbnail:hover .video-slider-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-slider-play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    font-size: 20px;
}

.video-slider-play-button:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.video-slider-play-button i {
    margin-left: 3px;
}

.video-slider-title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  line-height: 1.4;
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  padding: 20px;
}

/* Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-top: -22px;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: -40px !important;
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background-color: #333;
    transform: scale(1.3);
}

.swiper-pagination-bullet:hover {
    background-color: #666;
}

/* Magnific Popup Lightbox Styles */
.mfp-bg {
    background-color: rgba(0, 0, 0, 0.9);
}

.mfp-figure {
    background: transparent;
}

.mfp-iframe-holder .mfp-content {
    max-width: 900px;
    height: 506px;
}

.mfp-iframe-scaler iframe {
    background: #000;
    box-shadow: none;
}

.mfp-close-btn-in .mfp-close {
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.mfp-close-btn-in .mfp-close:hover {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .swiper.video-slider {
        padding: 0 50px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .swiper.video-slider {
        padding: 0 40px;
    }
    
    .video-slider-thumbnail img {
        height: 180px;
    }
    
    .video-slider-title {
        font-size: 13px;
    }
    
    .video-slider-play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .swiper-pagination {
        bottom: -25px !important;
    }
}

@media (max-width: 480px) {
    .swiper.video-slider {
        padding: 0 30px;
    }
    
    .video-slider-thumbnail img {
        height: 160px;
    }
    
    .video-slider-title {
        font-size: 12px;
    }
    
    .video-slider-play-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .swiper-pagination {
        bottom: -20px !important;
    }
}

/* Focus styles for accessibility */
.video-slider-thumbnail:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.swiper-slide:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-slider-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .video-slider-play-button {
        background-color: #ffffff;
        border: 2px solid #000000;
    }
}

/* Smooth transitions for autoplay */
.swiper-slide {
    transition: transform 0.3s ease;
}

/* Better touch support */
.swiper-container {
    touch-action: pan-y;
}

/* Ensure proper spacing between slides */
.swiper-slide {
    padding: 0 5px;
}

.swiper-slide:first-child {
    padding-left: 0;
}

.swiper-slide:last-child {
    padding-right: 0;
}