/* Newspaper Videos Widget */

/* Main Container */
.videos-widget {
    font-family: "Open Sans", sans-serif !important;
    width: 100% !important;
    clear: both !important;
}

/* Section Title */
.videos-widget .videos-section-title {
    font-family: 'Arial Black', Arial, sans-serif !important;
    font-size: 1.4em !important;
    font-weight: bold !important;
    color: #222 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 25px 0 !important;
    position: relative !important;
    padding-left: 15px !important;
}

.videos-widget .videos-section-title::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: #007cba !important;
}

/* Videos Grid - 4 columns horizontal layout */
.videos-widget .videos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Video Card */
.videos-widget .video-card {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: fit-content !important;
}

.videos-widget .video-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Video Thumbnail */
.videos-widget .video-thumbnail {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    cursor: pointer !important;
}

.videos-widget .video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
}

.videos-widget .video-thumbnail:hover img {
    transform: scale(1.05) !important;
}

/* Play Button Overlay */
.videos-widget .play-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 60px !important;
    height: 40px !important;
    background: rgba(0,0,0,0.8) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.9 !important;
    transition: opacity 0.3s ease !important;
}

.videos-widget .video-thumbnail:hover .play-button {
    opacity: 1 !important;
}

.videos-widget .play-button svg {
    width: 24px !important;
    height: 18px !important;
}

/* Video Info */
.videos-widget .video-info {
    padding: 15px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Video Category */
.videos-widget .video-category {
    font-size: 0.75em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: #6c5ce7 !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    width: fit-content !important;
}

/* Video Title */
.videos-widget .video-title {
    font-size: 1em !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease !important;
    flex: 1 !important;
}

.videos-widget .video-title:hover {
    color: #3498db !important;
}

.videos-widget .video-title-link {
    color: inherit !important;
    text-decoration: none !important;
}

/* Video Date */
.videos-widget .video-date {
    font-size: 0.8em !important;
    color: #7f8c8d !important;
    margin: 0 !important;
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.videos-widget .video-date::before {
    content: "📅" !important;
    font-size: 0.9em !important;
}

/* View All Button */
.videos-widget .view-all-button-container {
    text-align: center !important;
    margin-top: 30px !important;
}

.videos-widget .view-all-videos-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #333333 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
}

.videos-widget .view-all-videos-btn:hover {
    background: #555555 !important;
}

/* No Videos Message */
.videos-widget .no-videos-message {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 3rem !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    color: #666 !important;
}

.videos-widget .no-videos-message p {
    margin: 0 0 0.5rem 0 !important;
}

.videos-widget .no-videos-message small {
    color: #999 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .videos-widget .videos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .videos-widget .videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .videos-widget .video-info {
        padding: 12px !important;
    }

    .videos-widget .video-title {
        font-size: 0.9em !important;
        -webkit-line-clamp: 2 !important;
    }

    .videos-widget .videos-section-title {
        font-size: 1.2em !important;
        margin-bottom: 20px !important;
        padding-left: 12px !important;
    }

    .videos-widget .videos-section-title::before {
        width: 3px !important;
    }
}

@media (max-width: 480px) {
    .videos-widget .videos-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .videos-widget .video-info {
        padding: 10px !important;
        gap: 6px !important;
    }

    .videos-widget .video-title {
        font-size: 0.85em !important;
    }

    .videos-widget .video-category {
        font-size: 0.75em !important;
    }

    .videos-widget .video-date {
        font-size: 0.7em !important;
    }

    .videos-widget .play-button {
        width: 50px !important;
        height: 35px !important;
    }

    .videos-widget .play-button svg {
        width: 20px !important;
        height: 15px !important;
    }
}

/* Focus States for Accessibility */
.videos-widget .video-title-link:focus,
.videos-widget .view-all-videos-btn:focus {
    outline: none !important;
    text-decoration: underline !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .videos-widget .video-card {
        border: 2px solid #000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .videos-widget .video-card,
    .videos-widget .video-thumbnail img,
    .videos-widget .play-button,
    .videos-widget .video-title,
    .videos-widget .view-all-videos-btn {
        transition: none !important;
    }

    .videos-widget .video-card:hover {
        transform: none !important;
    }

    .videos-widget .video-thumbnail:hover img {
        transform: none !important;
    }
}