/* Modern Video Section Styles */
.video-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

/* Background Decoration */
.video-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.video-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.video-bg-blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #e0f2fe;
    animation: float 20s infinite alternate;
}

.video-bg-blob-2 {
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: #f0f9ff;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.video-container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.video-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.video-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Modern Video Section Styles */
.video-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

/* Background Decoration */
.video-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.video-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.video-bg-blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #e0f2fe;
    animation: float 20s infinite alternate;
}

.video-bg-blob-2 {
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: #f0f9ff;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.video-container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.video-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.video-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.video-section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

/* Split Layout */
.video-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    /* Changed from start to center for better vertical alignment */
}

/* Left Column: Video Content */
.video-content-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    /* Critical for grid overflow prevention */
}

/* Featured Video */
.video-featured-modern {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    /* Ensure full width */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    height: 0;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.5s ease;
}

.video-featured-modern:hover .video-thumbnail {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-btn {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    margin-left: 4px;
    /* Optical adjustment */
    transition: transform 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.video-play-btn:hover svg {
    fill: #2563eb;
    transform: scale(1.1);
}

/* Video Carousel */
.video-carousel-container {
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    /* Ensure no overflow */
}

.video-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-carousel-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    cursor: pointer;
}

.carousel-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    aspect-ratio: 16/9;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-carousel-item:hover .carousel-thumb img {
    transform: scale(1.05);
}

.carousel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-carousel-item:hover .carousel-play {
    opacity: 1;
}

.carousel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View All Button (Left) */
.video-view-all-left {
    margin-top: 0.5rem;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.btn-link-arrow:hover {
    gap: 0.75rem;
    color: #1d4ed8;
}

/* Right Column: CTA */
.video-cta-column {
    position: sticky;
    top: 100px;
    min-width: 0;
    /* Critical for grid overflow prevention */
}

.video-cta-content-modern {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.video-cta-title-modern {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-cta-desc-modern {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.video-cta-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #334155;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .video-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .video-content-column,
    .video-cta-column {
        width: 100%;
        min-width: 100%;
        /* Force full width */
    }

    .video-cta-column {
        position: static;
    }

    .video-cta-content-modern {
        text-align: center;
        padding: 2.5rem;
    }

    .video-cta-buttons-vertical {
        max-width: 400px;
        margin: 0 auto;
    }

    .video-view-all-left {
        text-align: center;
        margin-top: 1.5rem;
    }

    .btn-link-arrow {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .video-section {
        padding: 4rem 0;
    }

    .video-section-title {
        font-size: 2rem;
    }

    .video-carousel-item {
        flex: 0 0 140px;
    }

    .video-cta-title-modern {
        font-size: 1.75rem;
    }

    .video-cta-content-modern {
        padding: 1.5rem;
    }
}