/* Aktualności — ZJ v1.9
   Lekka sekcja dopasowana do aktualnego hero i rekrutacji. */
.zm2-section--news {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(206, 221, 206, 0.38) 0%,
            rgba(206, 221, 206, 0) 20rem
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffaf7 100%
        );
}

/* Nagłówek sekcji */
.zm2-section--news .zm2-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #6d3b52;
}

.zm2-section--news .zm2-eyebrow::before {
    width: 2.4rem;
    height: 0.18rem;
    flex: 0 0 auto;
    margin-right: 0.65rem;
    background: linear-gradient(90deg, #e98b73 0%, #d7b85f 100%);
    border-radius: 999px;
    content: "";
}

.zm2-section--news .zm2-section-heading h2 {
    color: #365b43 !important;
}

.zm2-section--news .zm2-section-heading p {
    color: #455944;
}

.zm2-section--news .zm2-section-heading--split > .zm2-text-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 0.9rem;
    color: #365b43 !important;
    background: #edf4ea;
    border: 1px solid rgba(54, 91, 67, 0.16);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.zm2-section--news .zm2-section-heading--split > .zm2-text-link:hover {
    color: #ffffff !important;
    background: #365b43;
    border-color: #365b43;
    transform: translateY(-0.08rem);
}

.zm2-section--news .zm2-section-heading--split > .zm2-text-link:focus-visible {
    outline: 0.2rem solid #365b43;
    outline-offset: 0.2rem;
}

/* Układ aktualności */
.zm2-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 1.25rem;
    margin-top: 2.7rem;
}

.zm2-news-card {
    color: #263238;
    background: #ffffff;
    border: 1px solid rgba(54, 91, 67, 0.13);
    border-radius: var(--zm2-radius);
    box-shadow: 0 0.75rem 2rem rgba(54, 91, 67, 0.065);
}

/* Główna wiadomość */
.zm2-news-card--featured {
    display: grid;
    grid-template-columns: minmax(13rem, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border-color: rgba(54, 91, 67, 0.15);
    border-radius: 1.25rem;
    box-shadow:
        0 1.1rem 2.8rem rgba(54, 91, 67, 0.09),
        0 0.15rem 0.5rem rgba(54, 91, 67, 0.035);
}

.zm2-news-card__visual {
    position: relative;
    min-height: 24rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #365b43;
    background:
        radial-gradient(
            circle at 25% 22%,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0) 9rem
        ),
        linear-gradient(
            145deg,
            #ceddce 0%,
            #e7efe4 48%,
            #d3e3e7 100%
        );
}

.zm2-news-card__visual::after {
    position: absolute;
    width: 9rem;
    height: 9rem;
    right: -4rem;
    bottom: -4rem;
    background: rgba(233, 139, 115, 0.20);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.zm2-news-card__visual picture,
.zm2-news-card__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.zm2-news-card__visual img {
    object-fit: cover;
}

.zm2-news-card__placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    color: #365b43;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.zm2-news-card__placeholder::after {
    width: 0.7rem;
    height: 0.7rem;
    position: absolute;
    left: calc(50% + 2.4rem);
    top: calc(50% - 2rem);
    background: #e98b73;
    border-radius: 50%;
    box-shadow: 0 0 0 0.32rem rgba(233, 139, 115, 0.15);
    content: "";
}

.zm2-news-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.zm2-news-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.32rem 0.68rem;
    color: #6d3b52;
    background: #fbe4de;
    border: 1px solid rgba(233, 139, 115, 0.28);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.zm2-news-card__date {
    margin: 0;
    color: #5d696e;
    font-size: 0.82rem;
}

.zm2-news-card h3 {
    margin: 0.7rem 0 0;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.zm2-news-card h3 a {
    color: #365b43 !important;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.zm2-news-card h3 a:hover {
    color: #6d3b52 !important;
    text-decoration: underline;
}

.zm2-news-card h3 a:focus-visible,
.zm2-news-card .zm2-text-link:focus-visible {
    outline: 0.2rem solid #365b43;
    outline-offset: 0.2rem;
    border-radius: 0.2rem;
}

.zm2-news-card__excerpt {
    margin: 0.85rem 0 1.2rem;
    color: #455944;
}

/* Lista trzech mniejszych aktualności */
.zm2-news-list {
    display: grid;
    gap: 0.85rem;
}

.zm2-news-card--compact {
    position: relative;
    overflow: hidden;
    padding: 1.3rem 1.35rem;
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(54, 91, 67, 0.12);
    border-left-width: 0.3rem;
    box-shadow: 0 0.7rem 1.8rem rgba(54, 91, 67, 0.055);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.zm2-news-list .zm2-news-card:nth-child(1) {
    border-left-color: #9dbb9d;
}

.zm2-news-list .zm2-news-card:nth-child(2) {
    border-left-color: #e98b73;
}

.zm2-news-list .zm2-news-card:nth-child(3) {
    border-left-color: #d7b85f;
}

.zm2-news-card--compact:hover {
    border-color: rgba(54, 91, 67, 0.20);
    box-shadow: 0 1rem 2.2rem rgba(54, 91, 67, 0.10);
    transform: translateY(-0.12rem);
}

.zm2-news-card--compact h3 {
    margin-top: 0.35rem;
    font-size: 1.06rem;
    line-height: 1.35;
}

.zm2-news-card--compact .zm2-news-card__excerpt {
    margin: 0.45rem 0 0;
    color: #526257;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Stan bez aktualności */
.zm2-news-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    color: #455944;
    background: #fffaf7;
    border: 1px dashed rgba(54, 91, 67, 0.28);
    border-radius: var(--zm2-radius);
    text-align: center;
}

.zm2-news-empty h3 {
    margin: 0;
    color: #365b43 !important;
}

.zm2-news-empty p {
    margin: 0.6rem 0 0;
    color: #526257;
}

@media (max-width: 48rem) {
    .zm2-section--news .zm2-section-heading--split > .zm2-text-link {
        width: fit-content;
    }

    .zm2-news-card__visual {
        min-height: 15rem;
    }

    .zm2-news-card__placeholder::after {
        left: calc(50% + 1.8rem);
        top: calc(50% - 1.5rem);
    }
}

@media (max-width: 30rem) {
    .zm2-section--news .zm2-eyebrow::before {
        width: 1.8rem;
        margin-right: 0.5rem;
    }

    .zm2-news-card--compact {
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zm2-section--news .zm2-section-heading--split > .zm2-text-link,
    .zm2-news-card--compact {
        transition: none;
    }

    .zm2-section--news .zm2-section-heading--split > .zm2-text-link:hover,
    .zm2-news-card--compact:hover {
        transform: none;
    }
}

@media print {
    .zm2-section--news {
        background: #ffffff !important;
    }

    .zm2-section--news .zm2-eyebrow::before,
    .zm2-news-card__visual::after,
    .zm2-news-card__placeholder::after {
        display: none !important;
    }

    .zm2-news-card,
    .zm2-news-card--featured,
    .zm2-news-card--compact {
        background: #ffffff !important;
        border: 1px solid #777777 !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

