﻿
.news {
    padding: 80px 24px;
    background: #f8fafc;
}

.news-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

    .news-header h2 {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .news-header p {
        color: #64748b;
        font-size: 16px;
        margin-bottom: 24px;
    }

/* FILTERS */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .news-filters button {
        border: none;
        background: #f1f5f9;
        padding: 8px 16px;
        border-radius: 999px;
        cursor: pointer;
        font-size: 14px;
    }

        .news-filters button.active {
            background: #ff5a00;
            color: white;
        }

/* GRID */
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.news-body {
    padding: 18px;
}

.news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.tag {
    background: #ffe4d6;
    color: #ff5a00;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

    .tag.orange {
        background: #fff3cd;
        color: #d97706;
    }

    .tag.green {
        background: #dcfce7;
        color: #16a34a;
    }

    .tag.gray {
        background: #e5e7eb;
        color: #374151;
    }

    .tag.purple {
        background: #ede9fe;
        color: #7c3aed;
    }

.date {
    font-size: 12px;
    color: #64748b;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card p {
    font-size: 14px;
    color: #64748b;
}

/* DOWNLOAD */
.download {
    display: inline-block;
    margin-top: 10px;
    color: #ff5a00;
    font-weight: 600;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


