/* ============================================
   Video Slider Section - Background Style
   ============================================ */

.video-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.videoSwiper {
    width: 100%;
    height: 100vh;
    max-height: 700px;
    min-height: 500px;
}

/* Video Slide Background */
.video-slide-bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Video */
.video-bg-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay */
.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Content Container */
.video-slide-bg .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.video-content {
    color: white;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Title */
.video-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Video Description */
.video-main-desc {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Video Actions */
.video-actions {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-video-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-video-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
}

/* Play/Pause Control Button */
.video-control-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .video-control-btn {
    right: auto;
    left: 30px;
}

.video-control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.video-control-btn .play-icon,
.video-control-btn .pause-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.video-control-btn.paused .play-icon {
    opacity: 1;
    transform: scale(1);
}

.video-control-btn.paused .pause-icon {
    opacity: 0;
    transform: scale(0);
}

.video-control-btn.playing .play-icon {
    opacity: 0;
    transform: scale(0);
}

.video-control-btn.playing .pause-icon {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Buttons */
.video-nav-btn {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-nav-btn::after {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Pagination */
.video-pagination {
    bottom: 30px !important;
    z-index: 10;
}

.video-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.video-pagination .swiper-pagination-bullet-active {
    width: 35px;
    border-radius: 6px;
    background: white;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .videoSwiper {
        max-height: 650px;
    }

    .video-main-title {
        font-size: 2.5rem;
    }

    .video-main-desc {
        font-size: 1.2rem;
    }

    .btn-video-primary {
        padding: 14px 35px;
        font-size: 1rem;
    }

    .video-control-btn {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .videoSwiper {
        max-height: 600px;
        min-height: 450px;
    }

    .video-main-title {
        font-size: 2.2rem;
    }

    .video-main-desc {
        font-size: 1.1rem;
    }

    .btn-video-primary {
        padding: 13px 32px;
        font-size: 0.95rem;
    }

    .video-control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        bottom: 25px;
        right: 25px;
    }

    [dir="rtl"] .video-control-btn {
        right: auto;
        left: 25px;
    }

    .video-nav-btn {
        width: 50px;
        height: 50px;
    }

    .video-nav-btn::after {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .videoSwiper {
        max-height: 550px;
        min-height: 400px;
        height: calc(100vh - 70px);
    }

    .video-content {
        max-width: 90%;
    }

    .video-main-title {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .video-main-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-video-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .video-control-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .video-control-btn {
        right: auto;
        left: 20px;
    }

    .video-nav-btn {
        display: none;
    }

    .video-pagination {
        bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .videoSwiper {
        max-height: 500px;
        min-height: 350px;
    }

    .video-content {
        max-width: 95%;
    }

    .video-main-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .video-main-desc {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .btn-video-primary {
        padding: 11px 25px;
        font-size: 0.85rem;
        gap: 8px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .video-control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }

    [dir="rtl"] .video-control-btn {
        right: auto;
        left: 15px;
    }

    .video-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .video-pagination .swiper-pagination-bullet-active {
        width: 28px;
    }
}

@media (max-width: 400px) {
    .videoSwiper {
        max-height: 450px;
    }

    .video-main-title {
        font-size: 1.4rem;
    }

    .video-main-desc {
        font-size: 0.85rem;
    }

    .btn-video-primary {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    .video-control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .btn-video-primary i {
    margin-right: 0;
    margin-left: 8px;
}

/* ============================================
   Accessibility
   ============================================ */

.video-control-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.btn-video-primary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* ============================================
   Performance Optimization
   ============================================ */

.video-slide-bg,
.video-bg-player,
.video-control-btn,
.btn-video-primary,
.video-nav-btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* ============================================
   Reduce Motion Support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .video-content,
    .video-main-title,
    .video-main-desc,
    .video-actions {
        animation: none;
    }

    .video-control-btn:hover,
    .btn-video-primary:hover,
    .video-nav-btn:hover {
        transform: none;
    }
}

/* ============================================
   Loading State
   ============================================ */

.video-slide-bg.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: videoLoading 1s linear infinite;
    z-index: 5;
}

@keyframes videoLoading {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   Page Layout Adjustments
   ============================================ */

/* Remove spacing between sections */
.video-slider-section + section {
    margin-top: 0;
}
