﻿/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 260px));
    gap: 2rem;
    justify-content: center;
    margin: 10px 0px;
}

/* CARD */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* IMAGE */
.news-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
}

/* BADGE */
.news-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #0078d4;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* CONTENT */
.news-card-content {
    padding: 1rem 1.2rem 1.4rem;
}

.news-card-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}

.news-card-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}
