﻿.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px auto;
    max-width: 1000px;
    justify-content: center;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

    .news-card:hover {
        transform: translateY(-4px);
    }

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

.news-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-card__summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    flex-grow: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 10px;
}

.news-card__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.news-card__button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    align-self: flex-start;
}

    .news-card__button:hover {
        background-color: #333;
    }

/* ===================== */
/* 📱 Responsywność      */
/* ===================== */

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

    .news-card__title {
        font-size: 1rem;
    }

    .news-card__summary {
        font-size: 0.85rem;
    }

    .news-card__button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


.news-list-page__navigation {
    display: flex;
    align-items: stretch;
    margin: 30px 0;
    width: 100%;
}

    .news-list-page__navigation .nav-button {
        background-color: #111;
        color: #fff;
        border: 1px solid #444;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        padding: 10px 20px;
    }

.news-list-page__current-month {
    flex: 1;
    text-align: center;
    border-left: none;
    border-right: none;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}
