/* ==========================================================================
   Video Gallery Page Styles
   ========================================================================== */

.video-template {
    background: #f8fafc;
    color: #334155;
}

/* Video Banner Overrides */
.video-template .about-ref-banner {
    background-image: linear-gradient(135deg, #0b1830 0%, #1a3c6d 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-template .ref-title {
    color: #ffffff;
}

/* Video Grid */
.video-gallery-section {
    padding: 120px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.video-item-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.video-item-card:hover {
    transform: translateY(-10px);
    background: #fdfdfd;
    border-color: #4facfe;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.video-thumbnail-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.video-item-card:hover .video-thumbnail-wrap img {
    transform: scale(1.1);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 24, 48, 0.2);
    transition: background 0.3s;
    z-index: 10;
}

.play-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-item-card:hover .play-icon-circle {
    background: #4facfe;
    border-color: #4facfe;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

.video-info-content {
    padding: 30px;
}

.video-info-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0b1830;
    letter-spacing: -0.5px;
}

.video-duration {
    font-size: 0.85rem;
    color: #4facfe;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-top: 15px;
}

/* Modal for Video Playback */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 24, 48, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 5%;
}

.video-modal-content {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
}

.video-modal-close:hover {
    transform: rotate(90deg);
    color: #4facfe;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .play-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}
