﻿/* ============================================================
   AKTUALNOŚCI — RekEng public.css
   Dopisz ten blok na końcu istniejącego public.css.
   ============================================================ */

.news-list,
.news-detail {
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 2.5rem);
    color: inherit;
}

.news-list {
    max-width: 1296px;
}

    .news-list h1,
    .news-detail h1 {
        margin: 0 0 1.5rem;
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

.news-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(15 23 42 / 5%);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgb(15 23 42 / 10%);
    }

.news-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card__body {
    padding: 1.25rem;
}

.news-card__title {
    margin: .5rem 0 .75rem;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

    .news-card__title a {
        color: inherit;
        text-decoration: none;
    }

        .news-card__title a:hover {
            text-decoration: underline;
        }

.news-card__date,
.news-detail time {
    display: block;
    font-size: .875rem;
    color: #64748b;
}

.news-card__lead {
    margin: 0 0 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-list__more {
    margin-top: 2rem;
    text-align: center;
}

    .news-list__more button {
        padding: .75rem 1.5rem;
        border: 1px solid currentColor;
        border-radius: 8px;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

        .news-list__more button:hover {
            background: #f1f5f9;
        }

        .news-list__more button:disabled {
            opacity: .5;
            cursor: wait;
        }

.news-detail {
    max-width: 1296px;
}

    .news-detail header {
        margin-bottom: 1.75rem;
    }

        .news-detail header h1 {
            margin-bottom: .75rem;
        }

.news-detail__lead {
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    color: #475569;
}

.news-detail > img {
    display: block;
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.news-detail__content {
    min-width: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

    .news-detail__content img,
    .news-detail__content video,
    .news-detail__content iframe {
        max-width: 100%;
    }

    .news-detail__content img {
        height: auto;
    }

    .news-detail__content h2,
    .news-detail__content h3 {
        line-height: 1.3;
    }

@media (max-width: 900px) {
    .news-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-list__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card__body {
        padding: 1rem;
    }

    .news-detail > img {
        border-radius: 6px;
    }
}
