/**
 * Aktualności – karty [pmsm_aktualnosci].
 * Kolorystyka i rozmiary spójne z listą regulaminów (duże czcionki, wysoki kontrast).
 */

.pmsm-news {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    color: #334155;
}

.pmsm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pmsm-news-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pmsm-news-card:hover,
.pmsm-news-card:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.12);
}

.pmsm-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.pmsm-news-card-link:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: -3px;
}

/* Motyw (OceanWP) podkreśla linki – karta ma być czystym kafelkiem bez podkreśleń. */
.pmsm-news .pmsm-news-card-link,
.pmsm-news .pmsm-news-card-link:hover,
.pmsm-news .pmsm-news-card-link:focus,
.pmsm-news .pmsm-news-card-link * {
    color: inherit;
    text-decoration: none !important;
    box-shadow: none;
}

.pmsm-news-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.pmsm-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmsm-news-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 20px 22px;
}

.pmsm-news .pmsm-news-date {
    font-size: 15px;
    color: #64748b;
}

.pmsm-news .pmsm-news-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e40af;
}

.pmsm-news .pmsm-news-excerpt {
    line-height: 1.5;
    color: #475569;
}

.pmsm-news .pmsm-news-readmore {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: #1e40af;
}

.pmsm-news .pmsm-news-readmore::after {
    content: ' \203A';
}

.pmsm-news-more {
    margin: 32px 0 0;
    text-align: center;
}

.pmsm-news .pmsm-news-button {
    display: inline-block;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid #1e40af;
    background: #ffffff;
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.pmsm-news .pmsm-news-button:hover,
.pmsm-news .pmsm-news-button:focus {
    background: #1e40af;
    color: #ffffff;
    text-decoration: none;
}

.pmsm-news-empty {
    margin: 0;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1024px) {
    .pmsm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pmsm-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
