/* ========================================
   VIDEO SECTION STYLES (Copied from home.css)
   ======================================== */
.video-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 205, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 205, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.video-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.video-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.video-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.video-subtitle {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 100%;
    margin: 10px 0 10px;
    line-height: 1.7;
}

/* Video Filters */
.video-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.video-filter-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.video-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.video-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(22, 205, 233, 0.3);
}

/* Video Category Tag */
.video-cat-tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(22, 205, 233, 0.1);
    border-radius: 6px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Video Card */
.video-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(22, 205, 233, 0.2);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 14, 39, 0) 0%,
            rgba(10, 14, 39, 0.4) 60%,
            rgba(10, 14, 39, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.video-card:hover .video-overlay {
    background: linear-gradient(180deg,
            rgba(22, 205, 233, 0.1) 0%,
            rgba(10, 14, 39, 0.5) 60%,
            rgba(10, 14, 39, 0.8) 100%);
}

/* Play Button */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(22, 205, 233, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(22, 205, 233, 0.4);
    position: relative;
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(22, 205, 233, 0.4);
    border-radius: 50%;
    transition: all 0.4s ease;
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    transform: scale(1.15);
    background: var(--primary-solid);
    box-shadow: 0 15px 40px rgba(22, 205, 233, 0.5);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Video Info */
.video-info {
    padding: 25px;
}

.video-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-card:hover .video-info h4 {
    color: var(--primary-solid);
}

.video-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Video CTA */
.video-cta {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* ========================================
   VIDEO MODAL STYLES
   ======================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: transparent;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.video-modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ========================================
   RESPONSIVE VIDEO SECTION
   ======================================== */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: var(--section-padding-mobile);
    }

    .video-title {
        font-size: 2.2rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-card {
        border-radius: 16px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button svg {
        width: 24px;
        height: 24px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h4 {
        font-size: 1rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        font-size: 32px;
    }
}