.archive-header { padding: 42px 0 0; }
.archive-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-grid.cols-1 { grid-template-columns: 1fr; }
.post-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pc-border); border-radius: 18px; background: var(--pc-paper); box-shadow: var(--pc-shadow); }
.post-card__image { overflow: hidden; aspect-ratio: 16 / 10; background: #eee; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__date { color: var(--pc-muted); font-size: .88rem; font-weight: 800; }
.post-card__title { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.22; }
.post-card__title a { color: var(--pc-text); text-decoration: none; }
.home-hero { padding: 74px 0; background: linear-gradient(135deg, #fff5d1, #e7f3e8); }
.home-hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; }
.home-notice { display: inline-flex; margin-top: 22px; padding: 14px 20px; border-radius: 18px; color: var(--pc-text); background: #fff; font-weight: 900; box-shadow: var(--pc-shadow); }
.home-posts { padding: 44px 0; }

/* Kategorie wpisów — indywidualny widok szkoły. */
.category-school-section {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--category-section-bg, #fffaf0);
    isolation: isolate;
}

.category-corner-decoration {
    position: absolute;
    z-index: 0;
    width: min(var(--category-corner-size, 150px), 18vw);
    height: auto;
    opacity: var(--category-corner-opacity, .7);
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.category-corner-decoration--top-left { top: 26px; left: 22px; }
.category-corner-decoration--top-right { top: 26px; right: 22px; }
.category-corner-decoration--bottom-left { bottom: 28px; left: 22px; }
.category-corner-decoration--bottom-right {
    right: 22px;
    bottom: 28px;
    width: min(var(--category-corner-bottom-right-size, var(--category-corner-size, 150px)), 34vw);
}

.category-header {
    position: relative;
    z-index: 2;
    padding: 34px 0 42px;
    text-align: center;
}
.category-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-header__icon {
    width: var(--category-icon-size, 50px);
    height: var(--category-icon-size, 50px);
    margin-bottom: 7px;
    object-fit: contain;
}
.category-header .category-header__title {
    max-width: 980px;
    margin: 0;
    color: var(--category-title-color, #173f37);
    font-family: "Baloo 2", var(--font-heading);
    font-size: clamp(2.55rem, 4.5vw, 4.35rem);
    font-weight: var(--category-title-weight, 600);
    line-height: 1.04;
    letter-spacing: -.018em;
    text-wrap: balance;
}
/* Jedyna definicja ozdobnej kreski nagłówka kategorii. */
.category-header__accent,
.category-header__accent-image {
    display: block;
    width: min(220px, 62vw);
    margin: 12px auto 0;
}
.category-header__accent {
    height: 12px;
    background: var(--category-accent, #f3bd2f);
    -webkit-mask: radial-gradient(circle at 2% 55%, transparent 0 2px, #000 3px) left / 100% 100%;
    clip-path: polygon(2% 58%,8% 48%,16% 53%,26% 45%,39% 49%,53% 44%,67% 47%,80% 43%,92% 48%,98% 56%,94% 64%,82% 60%,68% 66%,53% 61%,39% 67%,24% 61%,12% 66%,4% 61%);
}
.category-header__accent-image {
    height: auto;
    max-height: 24px;
    object-fit: contain;
}
.category-header__description {
    max-width: 760px;
    margin-top: 5px;
    color: #4c5552;
    font-size: 1.06rem;
    line-height: 1.55;
}
.category-header__description p { margin: 0; }

.category-year-switcher {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: min(100%, 650px);
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.category-year-switcher__viewport {
    min-width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: transparent;
    isolation: isolate;
}
.category-year-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
    will-change: transform, opacity;
}
.category-year-tabs.is-moving-left {
    animation: category-years-out-left .15s ease both;
}
.category-year-tabs.is-moving-right {
    animation: category-years-out-right .15s ease both;
}
.category-year-tabs.is-entering-left {
    animation: category-years-in-left .22s ease both;
}
.category-year-tabs.is-entering-right {
    animation: category-years-in-right .22s ease both;
}
.category-year-tabs__link {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid rgba(31, 78, 62, .11);
    border-radius: 999px;
    background: rgba(255, 253, 246, .97);
    color: #344b44;
    font-size: .96rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(38, 62, 54, .075);
    transition: transform .18s ease, color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.category-year-tabs__link.is-visible { display: inline-flex; }
.category-year-tabs__link:hover,
.category-year-tabs__link:focus-visible {
    transform: translateY(-2px);
    color: #163e31;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(38, 62, 54, .13);
}
.category-year-tabs__link.is-active {
    border-color: #174d3b;
    background: #174d3b;
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--category-accent, #f3bd2f), 0 10px 23px rgba(23, 77, 59, .2);
}
.category-year-switcher__arrow {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(31, 78, 62, .12);
    border-radius: 50%;
    background: rgba(255, 253, 246, .97);
    color: #174d3b;
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(38, 62, 54, .075);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.category-year-switcher__arrow:hover,
.category-year-switcher__arrow:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 10px 24px rgba(38, 62, 54, .13);
}
.category-year-switcher__arrow:disabled {
    opacity: .32;
    cursor: default;
    transform: none;
    box-shadow: none;
}
@keyframes category-years-out-left {
    to { opacity: 0; transform: translateX(-28px); }
}
@keyframes category-years-out-right {
    to { opacity: 0; transform: translateX(28px); }
}
@keyframes category-years-in-left {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes category-years-in-right {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

.category-content {
    position: relative;
    z-index: 2;
    padding-top: 38px;
    padding-bottom: 58px;
}
.category-content-decorations {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}
.category-content-decoration {
    position: absolute;
    left: var(--decor-x, 50%);
    top: var(--decor-y, 50%);
    width: var(--decor-size, 60px);
    max-width: 14vw;
    height: auto;
    opacity: var(--category-content-decor-opacity, .65);
    transform: translate(-50%, -50%) rotate(-2deg);
    object-fit: contain;
    user-select: none;
}
.category-content-decoration:nth-child(even) {
    transform: translate(-50%, -50%) rotate(3deg);
}

.category-post-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 96px;
}
.category-post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 18px;
    background: var(--pc-paper);
    box-shadow: 0 12px 30px rgba(34, 63, 55, .11);
    transition: transform .22s ease, box-shadow .22s ease;
}
.category-post-card:hover,
.category-post-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(34, 63, 55, .14);
}
.category-post-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8ece8;
}
.category-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.category-post-card:hover .category-post-card__image img,
.category-post-card:focus-within .category-post-card__image img { transform: scale(1.035); }
.category-post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #edf2ed, #dfe8df);
}
.category-post-card__date {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #324b43;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(25, 48, 40, .12);
}
.category-post-card__body {
    display: flex;
    min-height: 150px;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 26px;
}
.category-post-card__title {
    margin: 0 0 24px;
    font-size: clamp(1.18rem, 1.7vw, 1.42rem);
    line-height: 1.28;
}
.category-post-card__title a { color: var(--pc-text); text-decoration: none; }
.category-post-card__title a:hover,
.category-post-card__title a:focus-visible {
    color: #2e7448;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.category-post-card__more {
    display: inline-flex;
    min-width: 170px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 11px;
    margin-top: auto;
    padding: 9px 18px 8px;
    border: 1px solid #e2ad24;
    border-bottom-width: 3px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffdc72 0%, #f7c43f 100%);
    color: #173e32;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(222, 164, 24, .20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.category-post-card__more-arrow {
    display: inline-block;
    font-size: 1.12em;
    line-height: 1;
    transition: transform .2s ease;
}
.category-post-card__more:hover,
.category-post-card__more:focus-visible {
    transform: translateY(-2px);
    border-color: #d69d12;
    background: linear-gradient(180deg, #ffe58d 0%, #f8c640 100%);
    color: #102f26;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(222, 164, 24, .28);
}
.category-post-card__more:hover .category-post-card__more-arrow,
.category-post-card__more:focus-visible .category-post-card__more-arrow {
    transform: translateX(4px);
}
.category-post-card__more:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 5px 12px rgba(222, 164, 24, .18);
}

/* Komunikaty — jasne karty z lekkimi, szkolnymi ilustracjami. */
.category-school-section--announcements .category-post-card--announcement {
    position: relative;
    border-color: rgba(74, 108, 77, .25);
    background:
        radial-gradient(circle at 92% 12%, rgba(185, 207, 174, .22), transparent 38%),
        linear-gradient(135deg, #fffdf7 0%, #f1f6ec 100%);
    box-shadow: 0 12px 28px rgba(42, 70, 52, .10);
}
.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured)::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 9px;
    border-radius: 18px 18px 5px 5px;
    background: #356f3b;
    content: "";
    pointer-events: none;
}
.category-post-card__announcement-main {
    position: relative;
    display: flex;
    min-height: 245px;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 34px 27px 30px;
    overflow: hidden;
    border-bottom: 0;
    background: transparent;
}
.category-post-card__announcement-icon {
    position: absolute;
    top: 30px;
    right: 27px;
    width: 94px;
    height: 94px;
    background: #fde79a;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(243,189,47,.28);
    color: #356f3b;
    opacity: .48;
    pointer-events: none;
}
.category-post-card__announcement-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.category-post-card__announcement-icon.has-custom-icon,
.category-post-card__featured-icon.has-custom-icon {
    background-image: var(--announcement-custom-icon);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.category-post-card__announcement-title {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: "Baloo 2", var(--font-heading);
    font-size: clamp(1.5rem, 2.1vw, 1.95rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.015em;
    text-align: center;
    text-wrap: balance;
}
.category-post-card__announcement-title a {
    color: #173f37;
    text-decoration: none;
}
.category-post-card__announcement-title a:hover,
.category-post-card__announcement-title a:focus-visible {
    color: #2d6841;
    text-decoration: none;
}
.category-post-card__body--announcement {
    position: relative;
    min-height: 96px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-block: 19px;
    background: transparent;
}
.category-post-card__date--announcement {
    position: absolute;
    left: 24px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #4a5e56;
    font-size: .9rem;
    box-shadow: none;
}
.category-post-card__body--announcement .category-post-card__more {
    min-width: 148px;
    margin-top: 0;
    margin-inline: auto;
    align-self: center;
}

.category-school-section--announcements .category-post-card--announcement-featured {
    position: relative;
    display: block;
    min-height: 410px;
    grid-column: 1 / -1;
    border: 1px solid rgba(74, 108, 77, .28);
    border-left: 10px solid #356f3b;
    background-image:
        radial-gradient(circle at 88% 50%, rgba(185, 207, 174, .22), transparent 31%),
        linear-gradient(100deg, #fffdf7 0%, #fffdf7 57%, #f1f6ec 100%);
    color: #173f37;
    box-shadow: 0 16px 36px rgba(42, 70, 52, .12);
    isolation: isolate;
}
.category-post-card--announcement-featured::after {
    content: none;
}
.category-post-card--announcement-featured:hover,
.category-post-card--announcement-featured:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 21px 44px rgba(42, 70, 52, .16);
}
.category-post-card__featured-inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 410px;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
    align-items: center;
    gap: 30px;
    padding: clamp(34px, 5vw, 64px);
}
.category-post-card__featured-content {
    width: 100%;
    max-width: 870px;
}
.category-post-card__featured-badge {
    display: inline-flex;
    margin-bottom: 25px;
    padding: 9px 16px 8px;
    border: 0;
    border-radius: 999px;
    background: #356f3b;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}
.category-post-card__featured-title {
    max-width: 870px;
    margin: 0;
    font-family: "Baloo 2", var(--font-heading);
    font-size: clamp(2.15rem, 4.1vw, 3.75rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.category-post-card__featured-title a {
    color: #143f35;
    text-decoration: none;
}
.category-post-card__featured-title a:hover,
.category-post-card__featured-title a:focus-visible {
    color: #2d6841;
    text-decoration: none;
}
.category-post-card__more--featured {
    margin-top: 30px;
}
.category-post-card__featured-icon {
    display: flex;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 5 / 4;
    align-items: center;
    justify-content: center;
    justify-self: end;
    color: #8cab7d;
    opacity: .45;
    pointer-events: none;
}
.category-post-card__featured-icon svg {
    display: block;
    width: 100%;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.category-content .navigation.pagination {
    position: relative;
    z-index: 2;
    margin-top: 38px;
}
.category-content .navigation.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.category-content .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.category-content .page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(46, 116, 72, .24);
    border-radius: 999px;
    background: #fffdf7;
    color: #245b39;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(34, 63, 55, .07);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-content a.page-numbers:hover,
.category-content a.page-numbers:focus-visible {
    transform: translateY(-2px);
    border-color: #2e7448;
    background: #edf6ef;
    color: #183f28;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(34, 63, 55, .12);
}
.category-content .page-numbers.current {
    border-color: #2e7448;
    background: #2e7448;
    color: #fff;
    box-shadow: 0 9px 22px rgba(46, 116, 72, .22);
}
.category-content .page-numbers.dots {
    min-width: 28px;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.category-content .page-numbers.prev,
.category-content .page-numbers.next { padding-inline: 18px; }

@media (max-width: 980px) {
    .category-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-post-card--announcement-featured { grid-column: 1 / -1; }
    .category-post-card__featured-inner { grid-template-columns: minmax(0, 1fr) minmax(190px, 30%); }
    .category-post-card__featured-icon { max-width: 260px; }
    .category-corner-decoration { width: min(var(--category-corner-size, 150px), 22vw); }
    .category-corner-decoration--bottom-right {
        width: min(var(--category-corner-bottom-right-size, var(--category-corner-size, 150px)), 38vw);
    }
    .category-content-decoration { max-width: 12vw; }
}

@media (max-width: 620px) {
    .category-header { padding: 28px 0 32px; }
    .category-header__icon { width: 42px; height: 42px; }
    .category-header .category-header__title { font-size: clamp(2.1rem, 11vw, 3rem); }
    .category-header__description { font-size: .98rem; }
    .category-year-switcher { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 7px; }
    .category-year-switcher__arrow { width: 40px; height: 40px; }
    .category-year-tabs { grid-template-columns: 1fr; gap: 0; }
    .category-year-tabs__link { min-height: 40px; padding: 7px 12px; font-size: .9rem; }
    .category-post-grid { grid-template-columns: 1fr; column-gap: 20px; row-gap: 54px; }
    .category-post-card__body { min-height: 130px; padding: 20px; }
    .category-post-card__announcement-main { min-height: 220px; padding: 30px 21px 25px; }
    .category-post-card__announcement-icon { top: 25px; right: 21px; width: 82px; height: 82px; }
    .category-post-card__announcement-title { font-size: clamp(1.42rem, 7vw, 1.85rem); }
    .category-post-card__body--announcement {
        min-height: 92px;
        flex-direction: column;
        padding-block: 17px;
    }
    .category-post-card__date--announcement { position: static; }
    .category-post-card__body--announcement .category-post-card__more {
        min-width: 138px;
        padding-inline: 14px;
    }
    .category-post-card--announcement-featured,
    .category-post-card__featured-inner { min-height: 330px; }
    .category-post-card--announcement-featured { border-left-width: 8px; }
    .category-post-card__featured-inner { grid-template-columns: 1fr; padding: 30px 24px; }
    .category-post-card__featured-icon { display: none; }
    .category-post-card__featured-badge { margin-bottom: 13px; font-size: .72rem; }
    .category-post-card__featured-title { font-size: clamp(2rem, 10vw, 2.75rem); }
    .category-corner-decoration {
        width: min(var(--category-corner-size, 150px), 30vw);
        opacity: calc(var(--category-corner-opacity, .7) * .7);
    }
    .category-corner-decoration--top-left,
    .category-corner-decoration--bottom-left { left: -12px; }
    .category-corner-decoration--top-right,
    .category-corner-decoration--bottom-right { right: -12px; }
    .category-corner-decoration--bottom-right {
        width: min(var(--category-corner-bottom-right-size, var(--category-corner-size, 150px)), 48vw);
    }
    .category-content-decoration {
        width: calc(var(--decor-size, 60px) * .72);
        max-width: 18vw;
        opacity: calc(var(--category-content-decor-opacity, .65) * .72);
    }
    .category-content .navigation.pagination { margin-top: 28px; }
    .category-content .nav-links { gap: 7px; }
    .category-content .page-numbers { min-width: 40px; min-height: 40px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .category-year-tabs__link,
    .category-post-card,
    .category-post-card__image img,
    .category-post-card__more,
    .category-content .page-numbers { transition: none; }
}

/* 4.2.29 — dopracowanie kategorii „Komunikaty”. */
.category-school-section--announcements .category-header {
    padding-bottom: 28px;
}
.category-school-section--announcements .category-header__description {
    margin-top: 8px;
}
.category-school-section--announcements .category-content {
    padding-top: 22px;
}

.category-school-section--announcements .category-post-card--announcement-featured {
    border-left-width: 6px;
    background-image:
        radial-gradient(circle at 84% 48%, rgba(183, 205, 171, .14), transparent 34%),
        linear-gradient(105deg, rgba(255, 253, 247, .99) 0%, rgba(255, 253, 247, .98) 62%, rgba(245, 248, 241, .96) 100%);
    box-shadow: 0 14px 34px rgba(42, 70, 52, .10);
}
.category-school-section--announcements .category-post-card--announcement-featured:hover,
.category-school-section--announcements .category-post-card--announcement-featured:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 19px 42px rgba(42, 70, 52, .14);
}
.category-school-section--announcements .category-post-card__featured-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 39%);
    gap: clamp(28px, 5vw, 70px);
}
.category-school-section--announcements .category-post-card__featured-icon {
    max-width: 430px;
    opacity: .38;
}
.category-post-card__featured-meta {
    max-width: 690px;
    margin-top: 18px;
    color: #4b5e56;
}
.category-post-card__featured-meta time {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.category-post-card__featured-meta p {
    margin: 8px 0 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured) {
    background-image:
        radial-gradient(circle at 88% 18%, rgba(190, 209, 180, .10), transparent 29%),
        linear-gradient(145deg, rgba(255, 253, 247, .99), rgba(247, 249, 244, .97));
}

.category-school-section--announcements .category-post-card__more {
    min-height: 42px;
    padding: 9px 19px;
    border: 1px solid rgba(207, 151, 13, .66);
    border-bottom-width: 1px;
    border-radius: 999px;
    background: #f7c84b;
    box-shadow: 0 6px 14px rgba(185, 132, 12, .16);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.category-school-section--announcements .category-post-card__more:hover,
.category-school-section--announcements .category-post-card__more:focus-visible {
    transform: translateY(-2px);
    background: #f9cf61;
    box-shadow: 0 9px 20px rgba(185, 132, 12, .22);
}
.category-school-section--announcements .category-post-card__more-arrow {
    transition: transform .18s ease;
}
.category-school-section--announcements .category-post-card__more:hover .category-post-card__more-arrow,
.category-school-section--announcements .category-post-card__more:focus-visible .category-post-card__more-arrow {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .category-school-section--announcements .category-post-card__featured-inner {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
    }
    .category-school-section--announcements .category-post-card__featured-icon {
        max-width: 300px;
    }
}

@media (max-width: 620px) {
    .category-school-section--announcements .category-header { padding-bottom: 22px; }
    .category-school-section--announcements .category-content { padding-top: 16px; }
    .category-school-section--announcements .category-post-card--announcement-featured { border-left-width: 5px; }
    .category-post-card__featured-meta p { font-size: .98rem; }
}


/* 4.2.30 — korekta proporcji wyróżnionego komunikatu. */
.category-school-section--announcements .category-post-card--announcement-featured,
.category-school-section--announcements .category-post-card__featured-inner {
    min-height: 340px;
}
.category-school-section--announcements .category-post-card__featured-inner {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, .75fr);
    gap: clamp(22px, 3vw, 42px);
    padding: clamp(32px, 4vw, 50px) clamp(36px, 5vw, 62px);
}
.category-school-section--announcements .category-post-card__featured-content {
    max-width: 760px;
}
.category-school-section--announcements .category-post-card__featured-badge {
    margin-bottom: 18px;
}
.category-school-section--announcements .category-post-card__featured-title {
    max-width: 760px;
    font-size: clamp(2.15rem, 3.35vw, 3.2rem);
    line-height: 1.06;
    text-wrap: pretty;
}
.category-school-section--announcements .category-post-card__more--featured {
    margin-top: 24px;
}
.category-school-section--announcements .category-post-card__featured-icon {
    max-width: 330px;
    opacity: .34;
}

@media (max-width: 980px) {
    .category-school-section--announcements .category-post-card__featured-inner {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 28%);
        gap: 24px;
    }
    .category-school-section--announcements .category-post-card__featured-title {
        font-size: clamp(2rem, 4.8vw, 2.85rem);
    }
    .category-school-section--announcements .category-post-card__featured-icon {
        max-width: 250px;
    }
}

@media (max-width: 620px) {
    .category-school-section--announcements .category-post-card--announcement-featured,
    .category-school-section--announcements .category-post-card__featured-inner {
        min-height: 300px;
    }
    .category-school-section--announcements .category-post-card__featured-inner {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }
    .category-school-section--announcements .category-post-card__featured-title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }
}


/* Komunikaty — tytuły, zajawki i proporcje kart.
 * Skonsolidowane reguły zastępują wcześniejsze nadpisania z wersji 4.2.31–4.2.33.
 */
.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured) {
    overflow: visible;
}

.category-school-section--announcements .category-post-card__announcement-main {
    min-height: 330px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding: 74px 14px 20px;
    overflow: visible;
}

.category-school-section--announcements .category-post-card__announcement-title {
    width: 100%;
    max-width: none;
    font-size: clamp(1.34rem, 1.72vw, 1.72rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: pretty;
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 132px;
    align-items: flex-end;
    justify-content: center;
    padding-right: 0;
    text-align: center;
}

.category-school-section--announcements .category-post-card__announcement-excerpt {
    position: relative;
    z-index: 2;
    display: -webkit-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    color: #4b5e56;
    font-size: .96rem;
    line-height: 1.42;
    text-align: center;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.category-school-section--announcements .category-post-card__announcement-icon {
    top: -31px;
    right: 3px;
    z-index: 5;
    width: 82px;
    height: 82px;
    color: #356f3b;
    opacity: 1;
    pointer-events: none;
    object-fit: contain;
    border: 0;
    border-radius: 50%;
    background-size: 72%;
    box-shadow: 0 6px 16px rgba(38, 72, 48, .14);
    filter: none;
}

.category-school-section--announcements .category-post-card__body--announcement {
    min-height: 92px;
    padding-block: 13px 26px;
}

.category-school-section--announcements .category-post-card__featured-excerpt {
    display: -webkit-box;
    max-width: 720px;
    margin: 16px 0 0;
    overflow: hidden;
    color: #4b5e56;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.5;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.category-school-section--announcements .category-post-card__featured-excerpt + .category-post-card__more--featured {
    margin-top: 20px;
}

@media (max-width: 980px) and (min-width: 621px) {
    .category-school-section--announcements .category-post-card__announcement-title {
        font-size: clamp(1.42rem, 3vw, 1.78rem);
    }
}

@media (max-width: 620px) {
    .category-school-section--announcements .category-post-card__announcement-main {
        min-height: 310px;
        gap: 11px;
        padding: 64px 16px 18px;
    }

    .category-school-section--announcements .category-post-card__announcement-title {
        min-height: 112px;
        font-size: clamp(1.38rem, 6.4vw, 1.72rem);
        padding-right: 0;
        text-align: center;
    }

    .category-school-section--announcements .category-post-card__announcement-excerpt {
        font-size: .95rem;
        -webkit-line-clamp: 8;
    }

    .category-school-section--announcements .category-post-card__announcement-icon {
        top: -24px;
        right: 3px;
        width: 68px;
        height: 68px;
    }

    .category-school-section--announcements .category-post-card__featured-excerpt {
        margin-top: 14px;
        font-size: .98rem;
        -webkit-line-clamp: 5;
    }
}

/* Karty komunikatów — końcowe, wspólne ustawienia geometrii.
 * Tytuły mają wspólny obszar i są wyrównane do jego dolnej krawędzi.
 * Dzięki temu odstęp między tytułem a zajawką jest identyczny niezależnie
 * od liczby wierszy tytułu i położenia kafla w siatce.
 */
.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured) {
    box-shadow: 0 9px 22px rgba(42, 70, 52, .075);
}

.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured):hover,
.category-school-section--announcements .category-post-card--announcement:not(.category-post-card--announcement-featured):focus-within {
    box-shadow: 0 14px 30px rgba(42, 70, 52, .11);
}

.category-school-section--announcements .category-post-card__announcement-icon {
    top: -17px;
    right: 14px;
    border: 0;
    background-color: #f9d86b;
    box-shadow: 0 5px 13px rgba(38, 72, 48, .11);
}

.category-school-section--announcements .category-post-card__announcement-title {
    min-height: 132px;
    flex: 0 0 132px;
}

.category-school-section--announcements .category-post-card--announcement-featured {
    background-image: linear-gradient(100deg, #fffdf7 0%, #fffdf7 60%, #f3f7ef 100%);
    box-shadow: 0 12px 30px rgba(42, 70, 52, .09);
}

.category-school-section--announcements .category-post-card--announcement-featured:hover,
.category-school-section--announcements .category-post-card--announcement-featured:focus-within {
    box-shadow: 0 17px 38px rgba(42, 70, 52, .13);
}

.category-school-section--announcements .category-post-card__featured-icon {
    filter: none;
    box-shadow: none;
    opacity: .38;
}

/* Własny plik PNG/SVG zachowuje oryginalne nasycenie i kolor.
   Przygaszenie dotyczy wyłącznie wbudowanej ikony SVG. */
.category-school-section--announcements .category-post-card__featured-icon.has-custom-icon,
.category-school-section--announcements .category-post-card__announcement-icon.has-custom-icon {
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

@media (max-width: 620px) {
    .category-school-section--announcements .category-post-card__announcement-icon {
        top: -14px;
        right: 12px;
    }

    .category-school-section--announcements .category-post-card__announcement-title {
        min-height: 112px;
        flex-basis: 112px;
    }
}

