/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Aktualności / Blog - blog.css
 * ============================================================
 *
 * Układ:
 * - HERO Aktualności
 * - filtr kategorii
 * - wpis wyróżniony
 * - lista pozostałych wpisów
 * - paginacja
 *
 * Paleta:
 * - granat główny:   #0b1f3a
 * - granat jasny:    #163b65
 * - czerwony:        #c62032
 * - tekst:           #34465b
 * - jasny tekst:     #e7eef6
 * - tło jasne:       #f3f7fb
 * - obramowanie:     #d8e1ea
 */

/* ============================================================
   0. RESET KONTENERA ASTRY - BLOG
   ============================================================ */

/* ============================================================
   0. RESET KONTENERA ASTRY - STRONY KM KZZPRM
   ============================================================ */

body.blog .site-content,
body.page .site-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.blog .site-content > .ast-container,
body.page .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.blog #primary,
body.page #primary.kmkzzprm-blog,
body.blog .site-main,
body.page .site-main.kmkzzprm-blog,
body.blog .kmkzzprm-blog,
body.page .kmkzzprm-blog {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.page #primary.kmkzzprm-blog > .blog-hero {
    margin-top: 0;
}

/* ============================================================
   1. HERO AKTUALNOŚCI
   ============================================================ */

.blog-hero {
    width: 100%;

    background:
        linear-gradient(120deg,
            #07182d 0%,
            #0b1f3a 60%,
            #163b65 100%);

    color: #ffffff;
}

.blog-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 80px 0 86px;
}

.blog-eyebrow {
    margin: 0 0 16px;

    color: #dbe8f5;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.04em;
}

.blog-intro {
    max-width: 600px;

    margin: 26px 0 0;

    color: #e7eef6;

    font-size: 1.15rem;
    line-height: 1.65;
}

/* ============================================================
   WSPÓLNY HERO PODSTRON
   ============================================================ */

.page-hero .page-hero-container {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, 0.85fr);
    gap: 64px;
    align-items: center;
}

.page-hero-content {
    min-width: 0;
}

.page-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 300px;
}

.page-hero-logo {
    display: block;
    width: min(310px, 80%);
    height: auto;
}

.page-hero-slogan {
    position: absolute;
    right: 0;
    bottom: 8px;
    display: block;
    width: min(250px, 70%);
    height: auto;
}

/* ============================================================
   2. FILTRY KATEGORII
   ============================================================ */

.blog-filters {
    width: 100%;

    border-bottom: 1px solid #d8e1ea;

    background-color: #ffffff;
}

.blog-filters-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 30px;
}

.blog-filter {
    position: relative;

    padding: 22px 0 20px;

    color: #34465b;

    font-size: 0.92rem;
    font-weight: 700;

    text-decoration: none;
}

.blog-filter::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 0;
    height: 3px;

    background-color: #c62032;

    transition: width 180ms ease;
}

.blog-filter:hover,
.blog-filter:focus-visible,
.blog-filter.is-active {
    color: #0b1f3a;
}

.blog-filter:hover::after,
.blog-filter:focus-visible::after,
.blog-filter.is-active::after {
    width: 100%;
}

.blog-filter:focus-visible {
    outline: 3px solid rgba(22, 59, 101, 0.25);
    outline-offset: 4px;
}

/* ============================================================
   3. OBSZAR WPISÓW
   ============================================================ */

.posts {
    width: 100%;

    background-color: #ffffff;
}

.posts-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 90px 0 100px;
}

.posts-header {
    margin-bottom: 48px;
}

.posts-eyebrow {
    margin: 0 0 12px;

    color: #c62032;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.posts-title {
    margin: 0;

    color: #0b1f3a;

    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;

    letter-spacing: -0.025em;
}

/* ============================================================
   4. NAJNOWSZY WPIS - WYRÓŻNIONY
   ============================================================ */

.featured-post {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr) minmax(0, 0.95fr);

    min-height: 440px;

    margin: 0 0 72px;

    overflow: hidden;

    background-color: #f3f7fb;
}

.featured-post-media {
    min-width: 0;

    overflow: hidden;
}

.featured-post-image-link {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.featured-post-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.featured-post-image-link:hover .featured-post-image,
.featured-post-image-link:focus-visible .featured-post-image {
    transform: scale(1.025);
}

/* Wpis bez zdjęcia */

.featured-post-placeholder {
    width: 100%;
    height: 100%;
    min-height: 440px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg,
            #0b1f3a 0%,
            #163b65 100%);
}

.featured-post-placeholder span {
    color: rgba(255, 255, 255, 0.20);

    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;

    letter-spacing: -0.04em;
}

/* ============================================================
   5. TREŚĆ WYRÓŻNIONEGO WPISU
   ============================================================ */

.featured-post-content {
    padding: 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-title {
    margin: 16px 0 22px;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.08;

    letter-spacing: -0.03em;
}

.featured-post-title a {
    color: #0b1f3a;

    text-decoration: none;
}

.featured-post-title a:hover,
.featured-post-title a:focus-visible {
    color: #163b65;
}

.featured-post-excerpt {
    color: #34465b;

    font-size: 0.96rem;
    line-height: 1.65;
}

.featured-post-excerpt p {
    margin: 0;
}

/* ============================================================
   6. META - KATEGORIA I DATA
   ============================================================ */

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.post-category {
    color: #c62032;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-date {
    margin: 0;

    color: #637386;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.04em;
}

.post-category+.post-date::before {
    content: "•";

    margin-right: 12px;

    color: #a8b4c0;
}

/* ============================================================
   7. POZOSTAŁE WPISY
   ============================================================ */

.remaining-posts {
    border-top: 1px solid #d8e1ea;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;

    gap: 48px;

    margin: 0;
    padding: 46px 0;

    border-bottom: 1px solid #d8e1ea;

    background: transparent;
}

.post-image-link {
    display: block;

    align-self: start;

    overflow: hidden;

    border-radius: 4px;
}

.post-image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: transform 300ms ease;
}

.post-image-link:hover .post-image,
.post-image-link:focus-visible .post-image {
    transform: scale(1.025);
}

.post-content {
    align-self: center;
}

.post-title {
    margin: 14px 0 18px;

    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    line-height: 1.2;
}

.post-title a {
    color: #0b1f3a;

    text-decoration: none;
}

.post-title a:hover,
.post-title a:focus-visible {
    color: #163b65;
}

.post-excerpt {
    max-width: 700px;

    color: #34465b;

    font-size: 0.94rem;
    line-height: 1.65;
}

/* ============================================================
   8. WPIS BEZ MINIATURY
   ============================================================ */

/*
 * Jeśli zwykły wpis nie ma obrazka, post-card zawiera
 * wyłącznie .post-content.
 *
 * W takim przypadku treść wykorzystuje całą szerokość.
 */

.post-card>.post-content:first-child {
    grid-column: 1 / -1;

    max-width: 820px;
}

/* ============================================================
   9. CZYTAJ WIĘCEJ
   ============================================================ */

.post-more {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-top: 22px;

    color: #0b1f3a;

    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.post-more span {
    color: #c62032;

    transition: transform 180ms ease;
}

.post-more:hover,
.post-more:focus-visible {
    color: #163b65;
}

.post-more:hover span,
.post-more:focus-visible span {
    transform: translateX(4px);
}

.post-more:focus-visible {
    outline: 3px solid rgba(22, 59, 101, 0.25);
    outline-offset: 5px;
}

/* ============================================================
   10. PAGINACJA
   ============================================================ */

.posts-pagination {
    margin-top: 58px;
}

.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 42px;

    margin: 0 5px 8px 0;
    padding: 8px 12px;

    border: 1px solid #d8e1ea;

    background-color: #ffffff;
    color: #0b1f3a;

    text-decoration: none;
}

.posts-pagination a.page-numbers:hover,
.posts-pagination a.page-numbers:focus-visible {
    border-color: #163b65;

    color: #163b65;
}

.posts-pagination .page-numbers.current {
    border-color: #0b1f3a;

    background-color: #0b1f3a;
    color: #ffffff;
}

/* ============================================================
   11. BRAK WPISÓW
   ============================================================ */

.posts-empty {
    padding: 48px;

    border-left: 4px solid #c62032;

    background-color: #f3f7fb;
}

.posts-empty h2 {
    margin: 0 0 12px;

    color: #0b1f3a;

    font-size: 1.7rem;
}

.posts-empty p {
    margin: 0;

    color: #34465b;

    line-height: 1.7;
}

.posts-empty-link {
    display: inline-flex;

    margin-top: 22px;

    color: #0b1f3a;

    font-weight: 700;

    text-decoration: none;
}

.posts-empty-link:hover,
.posts-empty-link:focus-visible {
    color: #c62032;

    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ============================================================
   12. OGRANICZENIE ANIMACJI
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .blog-filter::after,
    .featured-post-image,
    .post-image,
    .post-more span {
        transition: none;
    }

    .featured-post-image-link:hover .featured-post-image,
    .featured-post-image-link:focus-visible .featured-post-image,
    .post-image-link:hover .post-image,
    .post-image-link:focus-visible .post-image,
    .post-more:hover span,
    .post-more:focus-visible span {
        transform: none;
    }
}/* =========================================================
   POLITYKA PRYWATNOŚCI
   ========================================================= */

.kmkzzprm-privacy .privacy-content {
    padding: 64px 0 72px;
}

.kmkzzprm-privacy .privacy-entry-content > :first-child {
    margin-top: 0;
}

.kmkzzprm-privacy .privacy-entry-content > :last-child {
    margin-bottom: 0;
}