/* Videos Section Styles */
.videos-section {
    position: relative;
    padding: 80px 20px;
    background: #1a1a2e;
    overflow: hidden;
}

.videos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.videos-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.videos-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.videos-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00d4ff);
    border-radius: 2px;
}

.videos-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Zigzag Pattern - Dynamic positioning handled by JavaScript */

.video-item {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    max-width: 400px;
    margin: 0 auto;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.video-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-item:hover .video-image-wrapper img {
    transform: scale(1.1);
}

/* Play Icon Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.video-item:hover .video-play-overlay {
    background: rgba(0, 123, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }
}

.video-play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Video Title */
.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 15px;
    color: #ffffff;
    z-index: 2;
}

.video-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .videos-section {
        padding: 60px 20px;
    }

    .videos-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .videos-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Reset zigzag pattern for 2 columns */
    .video-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .video-item {
        max-width: 100%;
    }

    .video-play-overlay {
        width: 60px;
        height: 60px;
    }

    .video-play-icon {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        margin-left: 4px;
    }

    .video-title-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 50px 20px;
    }

    .videos-heading {
        font-size: 1.8rem;
        margin-bottom: 35px;
        letter-spacing: 1.5px;
    }

    .videos-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-item {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .video-play-overlay {
        width: 55px;
        height: 55px;
    }

    .video-play-icon {
        border-left-width: 14px;
        border-top-width: 9px;
        border-bottom-width: 9px;
    }

    .video-title {
        padding: 12px;
    }

    .video-title-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .videos-section {
        padding: 40px 15px;
    }

    .videos-heading {
        font-size: 1.5rem;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .videos-gallery {
        gap: 15px;
    }

    .video-play-overlay {
        width: 50px;
        height: 50px;
    }

    .video-play-icon {
        border-left-width: 12px;
        border-top-width: 8px;
        border-bottom-width: 8px;
        margin-left: 3px;
    }

    .video-title {
        padding: 10px;
    }

    .video-title-text {
        font-size: 0.8rem;
    }
}

