/* Videos Page Styles */

.hero-small {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 6rem 1.5rem 2rem;
    text-align: center;
}

.hero-logo-small {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.nav-link.active {
    background-color: var(--color-primary-light);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.video-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s, font-size 0.3s;
}

.video-item:hover .video-overlay {
    opacity: 1;
    font-size: 3.5rem;
}

.video-title {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary);
    background: white;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 2rem;
    max-width: 1200px;
    width: 90%;
}

.modal-content h2 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close:hover {
    color: var(--color-accent);
}

#modalVideo {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-small {
        padding: 5rem 1rem 1.5rem;
    }

    .hero-logo-small {
        max-width: 120px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1rem;
        width: 95%;
    }

    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }

    #modalVideo {
        max-height: 50vh;
    }

    .video-title {
        font-size: 1rem;
    }
}
