/* =====================

   Zmienne globalne i kontrast
   
   ===================== */
body {
    --color-primary: #991421;
    --color-secondary: #4a4f51;
    --color-accent: #da5f06;
    --color-accent-light: #F0BF9B;
    --color-accent-light-bg: #fff;
    --color-bg: #f1f1f1;
    --color-white: #fff;
    --color-black: #000;
    --color-placeholder: #fafafa;
    --color-pagination: #e27a05;
    --color-border: #e1e3e4;
    --color-border-light: #f0f0f0;
    --color-yellow: yellow;
    --color-article-bg: #fafafa;
}

body.highContrastBody {
    --color-primary: #aaaaaa;
    /* jaskrawa czerwień */
    --color-secondary: #ffffff;
    /* biały tekst na czarnym tle */
    --color-accent: #ff9900;
    /* mocny pomarańcz */
    --color-accent-light: #444;
    --color-accent-light-bg: #111111;
    --color-bg: #111111;
    /* tło całkowicie czarne */
    --color-white: #000000;
    /* biały */
    --color-black: #FFFFFF;
    /* czarny */
    --color-placeholder: #666;
    /* jasna szarość – czytelna na czerni */
    --color-pagination: #ffff00;
    /* żółty – jaskrawy */
    --color-border: #ffffff;
    /* biały, żeby odcinał się na czarnym */
    --color-border-light: #999999;
    /* mniej jaskrawa granica */
    --color-yellow: #ffff00;
    /* żółty */
    --color-article-bg: #111111;
}

body.highContrastBody a {
    color: var(--color-yellow) !important;
}

/* =====================

   Reset i typografia
   
   ===================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 14px;
    /* WCAG – prevent sticky header/footer from obscuring focused elements */
    scroll-padding-top: 60px;
    scroll-padding-bottom: 60px;
}

/* WCAG – extra safety: focused interactive elements offset from sticky edges */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    scroll-margin-top: 60px;
    scroll-margin-bottom: 60px;
}

/* Skip navigation link – WCAG AAA */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    z-index: 100000;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

body {
    background-color: var(--color-white);
    margin: 0 auto;
    color: var(--color-secondary);
    /* font-family: 'Century Gothic', sans-serif; */
    font-family: 'Calibri', sans-serif;
    font-style: normal;
    font-weight: 300;
    overflow-x: unset !important;
}

html:has(.primaryMenuWrapper.show),
body:has(.primaryMenuWrapper.show) {
    overflow-y: hidden;
}

strong {
    font-weight: 600;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--color-placeholder);
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--color-placeholder);
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: var(--color-placeholder);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =====================

   Pasek górny (topBar)
   
   ===================== */

.topBar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background-color: var(--color-primary);
    text-align: center;
    padding: 10px 0;
}

.topBar .container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

@media only screen and (min-width: 951px) {
    .primaryMenuWrapper {
        display: flex;
        align-items: center;
        justify-content: start;
    }

    .primaryMenuWrapper ul.nav {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: start;
        align-items: center;
        list-style-type: none;
    }

    .primaryMenuWrapper ul.nav>li,
    .primaryMenuWrapper ul.nav>li a {
        display: inline-block;
        white-space: wrap;
        text-align: left;
        font-size: 100%;
    }

    .primaryMenuWrapper a {
        color: var(--color-white);
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 10px;
        transition: .3s all;
        font-weight: 500;
    }

    .primaryMenuWrapper a:hover {
        color: var(--color-primary);
        background: var(--color-white);
        font-weight: 500;
    }

    .primaryMenuWrapper .menuToggle {
        display: none;
    }
}

@media only screen and (max-width: 950px) {
    .primaryMenuWrapper {
        display: flex;
        align-items: center;
        justify-content: start;
        padding-right: 15px;
    }

    .primaryMenuWrapper .menuToggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 30px;
        width: 30px;
        cursor: pointer;
    }

    .primaryMenuWrapper .menuToggle .bar {
        height: 2px;
        width: 100%;
        background-color: var(--color-white);
        transition: all .2s ease-in-out;
    }

    .primaryMenuWrapper.show .menuToggle {
        justify-content: space-between;
        height: 25px;
        width: 25px;
    }

    .primaryMenuWrapper.show .menuToggle .bar:nth-of-type(1) {
        transform: rotate(45deg);
        transform-origin: top left;
        width: 35px;
    }

    .primaryMenuWrapper.show .menuToggle .bar:nth-of-type(2) {
        transform-origin: center;
        width: 0;
    }

    .primaryMenuWrapper.show .menuToggle .bar:nth-of-type(3) {
        transform: rotate(-45deg);
        transform-origin: bottom left;
        width: 35px;
    }

    .primaryMenuWrapper ul.nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        list-style-type: none;
        padding: 0;
        margin: 0;
        text-align: center;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        z-index: 1000;
        overflow-y: auto;

        transition: .2s all;
    }

    .primaryMenuWrapper:not(.show) ul.nav {
        opacity: 0;
        pointer-events: none;
    }

    .primaryMenuWrapper.show ul.nav {
        opacity: 1;
        pointer-events: auto;
    }

    .primaryMenuWrapper.show ul.nav>li {
        width: 100%;
    }

    .primaryMenuWrapper.show ul.nav>li a {
        display: block;
        width: 100%;
        padding: 15px 0;
        color: var(--color-white);
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
        background-color: var(--color-primary);
        transition: background-color 0.3s;
    }

    .primaryMenuWrapper.show ul.nav>li a:hover {
        background-color: var(--color-accent);
    }

    .primaryMenuWrapper.show .menuToggle {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
    }

}

.searchMenuWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 250px;
    width: 100%;
}

.searchMenuWrapper .topSearchWrapper {
    width: 100%;
}

/* Nowa szukajka (searchform.php) */
.custom-search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.custom-search-form .search-inputs-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
}

.custom-search-form .search-field,
.custom-search-form .search-submit {
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    text-align: center;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all .2s ease;
}

.custom-search-form .search-field {
    cursor: text;
    flex-grow: 1;
    width: auto;
}

.custom-search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.custom-search-form .search-submit {
    cursor: pointer;
    width: auto;
    padding-left: 15px;
    padding-right: 15px;
    white-space: nowrap;
}

.custom-search-form .search-submit:hover,
.custom-search-form .search-submit:focus {
    background: var(--color-white);
    color: var(--color-primary);
}

.searchMenuWrapper .accBar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.searchMenuWrapper .accBar>div {
    color: var(--color-white);
}

.fontMinus,
.fontDef,
.fontPlus,
.highContrast {
    cursor: pointer;
}

.topUserMenuWrapper {
    display: flex;
    align-items: center;
    justify-content: end;
}

.topUserMenuWrapper ul.nav {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: end;
    align-items: center;
    list-style-type: none;
}

.topUserMenuWrapper ul.nav>li,
.topUserMenuWrapper ul.nav>li a {
    display: inline-block;
    white-space: wrap;
    text-align: right;
    font-size: 100%;
}

.topUserMenuWrapper a {
    color: var(--color-white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 10px;
    transition: .3s all;
    font-weight: 500;
}

.topUserMenuWrapper a:hover {
    color: var(--color-primary);
    background: var(--color-white);
    font-weight: 500;
}

/* =====================

   Sekcja z logotypami
   
   ===================== */

.logoBar {
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.logoBar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.logoBar .container>div {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoBar .container>div img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

/************** poprzednie_edycje */

.poprzednie-edycje-container {
    margin-top: 50px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.poprzednie-edycje-container>div {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poprzednie-edycje-container>div img {
    width: 100%;
    height: auto;
}

/* =====================

   Główne menu pod logotypami
   
   ===================== */

.mainMenuBar {
    padding-top: 10px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.mainMenuBar ul.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.mainMenuBar li {
    display: inline-block;
}

/* Chevron dla elementów z podmenu */
.mainMenuBar li.parent>a {
    position: relative;
    padding-right: 24px;
}

.mainMenuBar li.parent>a::after {
    content: '';
    display: inline-block;
    border: solid var(--color-secondary);
    border-width: 0 1px 1px 0;
    padding: 4px;
    margin-left: 8px;
    position: absolute;
    right: 8px;
    top: 45%;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .3s;
}

.mainMenuBar li.parent:hover>a::after,
.mainMenuBar li.parent:focus-within>a::after {
    transform: translateY(-50%) rotate(-135deg);
}

.mainMenuBar li a {
    display: inline-block;
    color: var(--color-secondary);
    padding: 10px 15px;
    transition: all .3s;
    text-decoration: none;
}

.mainMenuBar li.active>a,
.mainMenuBar li.current>a {
    font-weight: bold;
    background: var(--color-primary);
    border-radius: 10px 10px 0 0;
    color: var(--color-white);
}

.mainMenuBar ul.nav-child>li.active>a,
.mainMenuBar ul.nav-child>li.current>a {
    border-radius: 0;
}

.mainMenuBar li.parent.active>a::after,
.mainMenuBar li.parent.current>a::after {
    border: solid var(--color-white);
    border-width: 0 1px 1px 0;
}

.mainMenuBar li>a:hover,
.mainMenuBar li>a:hover {
    color: var(--color-primary);
}

.mainMenuBar li.active>a:hover,
.mainMenuBar li.current>a:hover {
    color: var(--color-white);
}

.nav-child {
    display: none;
    position: absolute;
    background-color: var(--color-bg);
    min-width: 260px;
    z-index: 1;
    padding: 0;
    left: 6%;
    list-style-type: none;
    margin-left: 0;
}

.parent:hover .nav-child,
.parent a:focus-visible~.nav-child,
.parent:focus-within .nav-child {
    display: block;
}

.nav-child li {
    width: 100%;
    border: none;
}

.nav-child li a {
    width: 100%;
    padding-bottom: 8px;
    display: block;
    text-align: left;
}

/* =====================

   Pasek hero/slider
   
   ===================== */

.sliderWrapper {
    margin-bottom: 50px;
}

.thinBanner {
    padding: 10px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.thinBanner h2 {
    margin: 0;
    font-size: 1.75rem;
}

/* =====================

   Nawigacja okruszkowa (breadcrumb)
   
   ===================== */

.breadcrumbWrapper a {
    color: var(--color-secondary);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
}

/* =====================

   Główna zawartość (mainContent, contentWrapper)
   
   ===================== */

.importantArticlesWrapper {
    margin-bottom: 50px;
}

.importantArticlesWrapper .container .importantArticlesCarousel {
    padding: 0 45px;
    position: relative;
}

.importantArticlesCarousel .owl-stage {
    display: flex;
}

.importantArticlesCarousel .owl-item {
    display: flex;
    align-items: stretch;
    padding: 5px;
}

.art-item {
    background: var(--color-accent-light-bg);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-accent);
}

.art-item h3 {
    color: #b34d05;
}

.art-item p {
    color: var(--color-black);
}

.art-item a {
    background: var(--color-accent-light);
    color: var(--color-black);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all .2s;
}

.art-item a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

body.highContrastBody .art-item a:hover {
    background: var(--color-white) !important;
}

.owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    left: 0;
    top: 35%;
    font-size: 52px;
}

.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    right: 0;
    top: 35%;
    font-size: 52px;
}

@media only screen and (min-width: 1154px) {
    .owl-has-few-items .owl-carousel .owl-stage-outer {
        display: flex;
        justify-content: center;
    }
}

.mainContent {
    margin: 50px 0;
}

.page-header h1 {
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.page-header h2 a {
    color: var(--color-primary);
}

.items-row h2 a {
    font-size: 18px;
    font-weight: 600;
}

.items-leading {
    column-count: 2;
    column-gap: 25px;
    margin: 25px 0;
}

.items-leading>div {
    break-inside: avoid;
    margin-bottom: 25px;
    background: var(--color-article-bg);
    padding: 25px;
}

.items-leading>div p {
    white-space: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    color: var(--color-secondary);
}

.page-header {
    margin-bottom: 15px;
}

@media only screen and (max-width: 1000px) {
    .items-leading {
        column-count: 1;
    }
}

/* =====================

   Newsletter
   
===================== */

.newsletterWrapper {
    width: 100%;
    background-image: url('../images/newsletter_bg.jpg');
    background-color: var(--color-primary);
    background-position: center;
    background-size: cover;
    padding: 50px 0;
}

body.highContrastBody .newsletterWrapper {
    filter: brightness(2.5) contrast(2) saturate(0);
}

.newsletterWrapper .container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    max-width: 1000px;
}

.newsletterLeft {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.newsletterLeft h3 {
    color: var(--color-white);
    font-size: 240%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.newsletterRight {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

@media only screen and (max-width: 750px) {
    .newsletterWrapper .container {
        flex-direction: column;
        align-items: center;
    }

    .newsletterLeft {
        justify-content: center;
    }

    .newsletterLeft h3 {
        text-align: center;
        font-size: 180%;
    }

    .newsletterRight {
        margin-top: 25px;
    }
}

.acymailing_module {
    min-width: 250px;
    width: 100%;
}

.fieldacyemail span {
    width: 100%;
}

.acymailing_form>p {
    display: flex;
    justify-content: end;
}

p.fieldacyemail input {
    border: none;
    background: transparent;
    text-align: center;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding-bottom: 3px;
    width: 100% !important;
}

p.fieldacyemail label {
    color: var(--color-white);
}

.acysubbuttons>input {
    border-radius: 5px;
    border: 1px solid var(--color-white);
    padding: 12px;
    background-color: var(--color-primary);
    color: var(--color-white);
    margin-top: 4px;
    font-size: 120%;
}

.acysubbuttons>input:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* =====================

   Stopka (footer)
   
   ===================== */

.footer {
    background-color: var(--color-bg);
    width: 100%;
    padding: 50px 0;
}

.footer .footerWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}

.footerQuarter h3 {
    margin: 0 0 35px 0;
    position: relative;
    display: inline-block;
}

.footerQuarter h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    background-color: var(--color-primary);
    bottom: -10px;
    left: 0;
}

.footer-menu-container ul.nav {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.footer-menu-container a {
    text-decoration: none;
    color: var(--color-secondary);
    padding: 5px 0;
    transition: .1s all;
    font-size: 120%;
    display: block;
    width: 100%;
}

.footer-menu-container a:hover {
    color: var(--color-primary);
}

.footer-legal-menu,
.footer-links-menu {
    list-style: none;
    padding-left: 0;
}

@media only screen and (max-width: 880px) {
    .footer .footerWrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 500px) {
    .footer .footerWrapper {
        grid-template-columns: 1fr;
    }
}

/**************************/

.projectFooter {
    margin: 50px 0;
}

.projectFooter .footerWrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.projectFooter .footerWrapper>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/**************************/

.ueFooter {
    margin: 75px 0 50px 0;
}

.footer-project-text-container {
    margin: 40px 0;
}

.footer-project-text-container h4 {
    font-size: 150%;
}

.ueFooter .footerWrapper {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.ueFooter .footerWrapper>div {
    all: unset;
}

.ueFooter .footerWrapper>div img {
    all: unset;
    max-width: 100%;
    max-height: 120px;
}

@media only screen and (max-width: 600px) {
    .ueFooter .footerWrapper {
        flex-direction: column;
    }

    .ueFooter .footerWrapper>div {
        text-align: center;
    }
}

/* =====================

   Pozostałe elementy i narzędzia
   
   ===================== */


.latestnews a {
    font-size: 16px;
    line-height: 1.75em;
    color: var(--color-accent);
}

.latestnews a:hover {
    text-decoration: underline;
}

.latestnews {
    list-style: none;
}

.moduletable h3 {
    padding-bottom: 40px;
    padding-left: 40px;
}

/* .sr-only */
.element-invisible {
    display: block;
}

.search .form-inline {
    text-align: center;
}

.pagination {
    text-align: center;
    display: block;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination li {
    display: inline-block;
    text-transform: capitalize;
}

.pagination li a {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: var(--color-bg);
    transition: background-color .1s, color .1s;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
}

.pagination li a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.pagination li span {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-white);
    cursor: default;
    display: inline-block;
}


.pagination .counter {
    display: none;
}

.pagination li.pagination-start {
    border: none;
}

.pagination li.pagination-prev,
.pagination li.pagination-next {
    display: none;
}

.parent {
    position: relative;
    display: inline-block;
}

.icons {
    text-align: right;
}

.items-leading .icons {
    display: none;
}

span.caret {
    display: none;
}

.items-row .span6 {
    display: inline-block;
    width: 47%;
    vertical-align: top;
}

.items-row .span6:nth-child(2) {
    margin-left: 3%;
}

[class*="leading-"] img {
    width: 100%;
}

body.highContrastBody [class*="leading-"] img {
    filter: saturate(0);
}

.item-page .page-header {
    display: block;
}

#sw {
    position: fixed;
    padding: 1px 1px 1px 0;
    margin: 0;
    top: 25%;
    left: 0;
    z-index: 9999;
    width: 32px;
    border-radius: 2px;
    border: 2px solid var(--color-white);
    border-left: none;
    background-color: var(--color-white);
}

#sw img {
    display: block;
    width: 100%;
    margin-top: 1px;
    margin-bottom: 1px;
}

.umSizer {
    vertical-align: middle;
}

div.login,
div.registration {
    text-align: right;
}

div.login legend,
div.registration legend {
    text-align: center;
}

.controls,
.control-label {
    display: inline-block;
    width: 49%;
}

.control-label {
    text-align: right;
    padding-right: 20px;
}

.controls {
    text-align: left;
}

.controls .btn {
    text-align: right;
}

.article-index li {
    display: block;
    width: 100%;
}

.contentWrapper a {
    color: var(--color-secondary);
}

.contentWrapper a:hover {
    color: var(--color-secondary);
}

.contentWrapper a:active {
    color: var(--color-secondary);
}

.article-index li {
    display: block;
}

.article-index {
    display: block;
}

div[itemprop=articleBody] {
    display: block;
}

.pager {
    list-style: none;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.pager li {
    display: inline-block;
    width: 49%;
}

.pager li:last-child {
    text-align: right;
    padding-right: 6%;
}

#search-searchword {
    width: 300px;
    height: 30px;
    font-size: 14px;
    color: var(--color-secondary);
    text-align: center;
}

.radio input,
.checkbox input {
    margin-right: 8px;
}

.radio,
.checkbox {
    padding-right: 16px;
}

.phrases,
.only {
    display: block;
    width: 100%;
}

.form-limit {
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
    margin-top: 24px;
}

.searchintro,
.form-limit {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 24px;
}

#searchForm .counter {
    display: none;
}

.ordering-box {
    padding-top: 24px;
}

@media only screen and (min-width: 960px) {

    .latestnews a {
        font-size: 16px;
        line-height: 1.75em;
        color: var(--color-accent);
    }

    .latestnews a:hover {
        text-decoration: underline;
    }

    .latestnews {
        list-style: none;
    }

    .moduletable h3 {
        padding-bottom: 40px;
        padding-left: 40px;
    }

    .search .form-inline {
        text-align: center;
    }

    .icons {
        text-align: right;
    }

    span.caret {
        display: none;
    }

    .items-row .span6 {
        display: inline-block;
        width: 47%;
        vertical-align: top;
    }

    .items-row .span6:nth-child(2) {
        margin-left: 3%;
    }

    [class*="leading-"] img {
        width: 100%;
    }

}

.phrases .controls {
    display: block;
    width: 100%;
}


/* =====================

   Kontrast i dostępność
   
   ===================== */

.belkaImageWrapper a,
.projectFooter a {
    all: unset;
    cursor: pointer;
}

body.highContrastBody .belkaImageWrapper {
    display: none;
}

body.highContrastBody .n2-section-smartslider {
    filter: saturate(0);
}

div#n2-ss-2 .nextend-arrow img {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =====================

   Widoczny fokus i kontrast

   ===================== */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus,
[role="button"]:focus,
:focus {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 2px !important;
}


.item-page .icons {
    display: none;
}

/* =====================

   Publikacje Template
   
   ===================== */
.publication-group-section {
    margin-bottom: 60px;
}

.publication-group-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.publication-group-title::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 12px;
    background-color: #cbd0d4;
    margin-right: 15px;
}

.publication-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-left: 75px;
}

.publication-item {
    width: 140px;
    height: 200px;
    transition: transform 0.3s ease;
}

.publication-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.publication-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.publication-item:hover {
    transform: translateY(-5px);
}

.publication-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    /* Czerwone tło z motywu */
    color: var(--color-white);
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.3;
}

.no-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 600px) {
    .publication-grid {
        padding-left: 0;
        justify-content: center;
    }
}

/* =====================
   O Radzie (Council)
   ===================== */
.council-wrapper {
    margin-top: 40px;
}

.council-group-section {
    margin-bottom: 60px;
}

.council-group-title {
    color: var(--color-accent);
    /* orange color */
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.council-group-title::before {
    content: '';
    display: inline-block;
    width: 120px;
    height: 14px;
    background-color: var(--color-accent);
    margin-right: 20px;
}

.council-members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: center;
    padding-left: 140px;
    /* Aligns roughly with the text after the orange block */
}

@media only screen and (max-width: 900px) {
    .council-members-grid {
        padding-left: 0;
    }
}

.council-member-item {
    width: 200px;
}

.council-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--color-accent);
    /* orange circle for placeholder or bg */
}

.council-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-accent);
}

.council-member-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-black);
    margin-bottom: 5px;
}

.council-member-bio {
    font-size: 0.95rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

.council-member-bio p {
    margin-bottom: 5px;
}

.council-logos-section {
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    margin-top: 60px;
}

.council-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.council-logo-item {
    transition: transform 0.3s ease;
}

.council-logo-item:hover {
    transform: scale(1.05);
}

.council-logo-item img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
}

/* =====================
   Oś czasu (Kalendarium)
   ===================== */
.timeline-filter-box {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.timeline-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.timeline-form .filter-row:last-child {
    margin-bottom: 0;
}

.timeline-form .filter-col {
    flex: 1;
    min-width: 150px;
}

.timeline-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.timeline-form input[type="text"],
.timeline-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.timeline-form input[type="text"]:focus,
.timeline-form select:focus {
    border-color: var(--color-accent);
    outline: none;
}

.timeline-form .filter-cats-row {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    align-items: center;
}

.timeline-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.timeline-form .cat-checkbox {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    margin-bottom: 0;
}

.timeline-form .cat-checkbox input {
    margin-right: 8px;
    margin-top: 0;
    cursor: pointer;
}

.timeline-form .filter-submit {
    flex: 0 0 auto;
    text-align: right;
}

.timeline-form .btn-filter {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.timeline-form .btn-filter:hover {
    background: #7a0014;
}

.timeline-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.timeline-pagination .page-numbers.current,
.timeline-pagination .page-numbers:hover {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.timeline-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-legend {
    margin-bottom: 40px;
    font-size: 0.95rem;
    background: #fdfdfd;
    padding: 15px 20px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid #eaeaea;
}

.timeline-legend strong {
    display: inline-block;
    margin-right: 15px;
    color: var(--color-black);
}

.timeline-legend ul {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-legend li {
    display: inline-block;
    margin-right: 20px;
    position: relative;
    color: var(--color-secondary);
}

.timeline-legend li::before {
    content: '•';
    color: var(--color-accent);
    margin-right: 6px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.timeline {
    position: relative;
    padding-left: 60px;
    /* space for the timeline line */
}

.timeline-year-group {
    position: relative;
    margin-bottom: 50px;
}

.timeline-year-label {
    position: absolute;
    left: -60px;
    top: 50px;
    width: 30px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-black);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
    text-align: center;
}

.timeline-year-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: -50px;
    width: 2px;
    background-color: var(--color-accent);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    min-height: 80px;
}

.timeline-item-point {
    position: absolute;
    left: 0;
    top: 25px;
    width: 20px;
    height: 2px;
    background-color: var(--color-accent);
}

.timeline-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-secondary);
    width: 220px;
    flex-shrink: 0;
    padding-top: 15px;
}

.timeline-item-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    padding: 20px;
    flex-grow: 1;
    max-width: 600px;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.timeline-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.timeline-item-card::before {
    display: none;
}

.card-image {
    width: 120px;
    flex-shrink: 0;
    margin-right: 20px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.card-content {
    flex-grow: 1;
}

.card-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    color: var(--color-black);
}

.card-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h4 a:hover {
    color: var(--color-accent);
}

.card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.card-meta-wrap {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.card-meta {
    margin-bottom: 5px;
}

.card-meta strong {
    font-weight: 600;
    color: var(--color-black);
    display: inline-block;
    width: 110px;
}

.cat-meta {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* RWD */
@media only screen and (max-width: 900px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline-year-label {
        writing-mode: horizontal-tb;
        transform: none;
        position: relative;
        left: 0;
        top: 0;
        width: auto;
        text-align: left;
        margin-top: 0;
        margin-bottom: 20px;
        padding-left: 10px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-item-title {
        width: 100%;
        padding-top: 5px;
        margin-bottom: 10px;
    }

    .timeline-item-card {
        width: 100%;
        margin-left: 0;
        max-width: 100%;
    }
}

/* =====================
   Footer - Bottom Sections
   ===================== */
.projectFooter {
    text-align: center;
    padding: 40px 0;
}

.projectFooter .project-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projectFooter .footerWrapper {
    display: flex;
    justify-content: center;
}

.projectFooter .project-footer-title {
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
    font-size: 1.2rem;
}

.projectFooter .project-footer-logo {
    height: 60px;
}

.ueFooter {
    text-align: center;
    padding-bottom: 50px;
}

.ueFooter .ue-footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.ueFooter .footer-project-text-container {
    margin-bottom: 30px;
}

.ueFooter .ue-footer-text {
    color: #555;
    font-size: 1.4rem;
}

.ueFooter .ue-footer-logo {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* =====================
   Header Refactor
   ===================== */
.header-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-col-2 h1 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    color: #333;
}

body.highContrastBody .header-col-2 h1 {
    color: #FFF;
}

.header-col img {
    max-width: 100%;
    height: auto;
}

.header-row-1-desktop {
    display: block;
}

.header-row-1-mobile {
    display: none;
}

@media (max-width: 768px) {
    .header-row-1-desktop {
        display: none;
    }

    .header-row-1-mobile {
        display: block;
    }

    .header-row-2 {
        flex-direction: column;
        gap: 20px;
    }
}