/* Category News Section Styles */

.category-news-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Card Style */
.category-news-card {
    position: relative;
    height: 280px;
    /* Slightly taller for category main list */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: #000;
}

.category-news-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.category-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-news-link:hover .category-news-image {
    transform: scale(1.05);
}

/* Overlay Style */
.category-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Badge Style */
.category-news-badge {
    background-color: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 6px;
}

/* Badge variations */
/* Badge variations */
/* Using primary color for all categories as requested */
.category-news-badge[data-category] {
    background-color: var(--primary);
    background: var(--primary);
}

.category-news-heading {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: -0.01em;
}

.category-news-excerpt {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    color: #f0f0f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Grid Layout */
@media (min-width: 640px) {
    .category-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .category-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Mobile optimizations */
@media (max-width: 639px) {
    .category-news-section {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .category-news-card {
        height: 240px;
    }

    .category-news-heading {
        font-size: 1.25rem;
    }

    .category-news-overlay {
        padding: 16px;
    }
}

/* Video Grid and Card Styles */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-secondary, #1a1a1a);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.video-card .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Aspect ratio 16:9 */
    background: #000;
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Video Grid */
@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}