/* Base Styles */
.video-section {
    /* max-width: 1400px; */
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* padding: 0 1rem; */
    /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; */
}

.video-header {
    text-align: center;
    /* margin-bottom: 2rem; */
    padding: 1rem;
    background: #fff;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* border-bottom: 1px solid #eee; */
}

.video-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
}

.video-container {
    position: relative;
    padding: 2rem;
    background: #fff;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Carousel Item Styles */
.video-item {
    padding: 0 10px;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
}

.owl-item.center .video-item {
    opacity: 1;
    transform: scale(1.05);
    z-index: 1;
}

/* Video Wrapper - maintains aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.owl-nav {
    margin: 0 !important;
    position: absolute;
    top: 35%;
    width: calc(100% + 80px);
    left: -40px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.owl-prev,
.owl-next {
    position: absolute;
    pointer-events: auto;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.owl-prev {
    left: 0;
}

.owl-next {
    right: 0;
}

.owl-prev span,
.owl-next span {
    font-size: 2rem !important;
    color: white !important;
    line-height: 1 !important;
}

.owl-prev:hover,
.owl-next:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1);
}

/* Loading State */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-section {
        max-width: 1000px;
    }
    
    .owl-item.center .video-item {
        transform: scale(1.03);
    }
}

@media (max-width: 992px) {
    .video-section {
        max-width: 800px;
    }
    
    .video-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .video-section {
        margin: 1rem auto;
        padding: 0;
    }
    
    .video-header {
        padding: 0.5rem;
        border-radius: 0;
    }
    
    .video-header h2 {
        font-size: 1.3rem;
        font-weight: 500;
    }
    
    .video-container {
        padding: 1rem;
        border-radius: 0;
    }
    
    .video-item {
        padding: 0 5px;
        transform: scale(0.95);
    }
    
    .owl-item.center .video-item {
        transform: scale(1);
    }
    
    .owl-nav {
        width: calc(100% + 40px);
        left: -20px;
        top: 40%;
    }
    
    .owl-prev,
    .owl-next {
        width: 25px !important;
        height: 25px !important;
    }
    
    .owl-prev span,
    .owl-next span {
        font-size: 1.5rem !important;
    }
}

/* Animation for loading videos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-wrapper iframe {
    animation: fadeIn 0.3s ease-in;
}

.owl-carousel {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.owl-carousel .owl-item {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.owl-carousel .owl-item.grabbing {
    cursor: grabbing;
}

.owl-carousel .owl-stage {
    will-change: transform;
}