/* Videos Page Styles */
.videos-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    background: var(--card-bg);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.video-item:hover .video-play-icon {
    background: rgba(212, 175, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.no-videos-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
}

.no-videos-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-videos-message p {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: block;
}

.modal-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.video-modal .modal-close:hover {
    color: var(--secondary-color);
}

.video-modal .modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    max-width: 80%;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .video-thumbnail {
        height: 200px;
    }

    .video-play-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .modal-video-container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-thumbnail {
        height: 220px;
    }

    .video-info {
        padding: 1rem;
    }

    .video-title {
        font-size: 1.1rem;
    }

    .video-description {
        font-size: 0.9rem;
    }
}
