h2 {
    font-size: 1.5em;
}

.text-nowrap {
    white-space: nowrap;
}

body, .wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
/* =========================================================================================== */

header .header-user-menu {
    position: sticky;
    z-index: 99;
    top: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0.8em 1em 0.4em 5.5em;
    background-color: rgb(225, 7, 19);
    transition: all 1s ease;
}

header .header-user-menu form {
    display: block;
    align-items: center;
}

header .header-user-menu .search-bar {
    padding: unset !important;
    border-bottom: unset !important;
    background-color: unset !important;
}

header .header-user-menu .search-bar .search-field[type=text]:focus {
    border: 2px hidden !important;
    box-shadow: unset !important;
}

header .header-user-menu .search-bar .search-exec[type=submit] {
    color: black;
    background-color: #e0e0e0;
}

header .header-user-menu .search-bar .container:last-of-type {
    padding: unset !important;
}

header .header-user-menu > .container {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

header .header-user-menu .item {
    margin: 0em 0.2em;
    padding: 0.7em 0.4em;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 0.5em;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    vertical-align: middle;
}

header .header-user-menu .item:hover {
    border: 2px solid rgba(255, 255, 255, 1);
    color: white;
    text-decoration: none;
}

header .header-user-menu .item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2em;
    width: 2em;
    margin-right: 0.2em;
    border: 2px solid #ffffff;
    border-radius: 2em;
    background-size: 100%;
    transition: all 0.2s ease;
}

header .header-user-menu .item:hover > .icon {
    background-color: #000000;
}

header .header-user-menu .item > .text {
    display: inline-block;
    transition: all 0.2s ease;
    vertical-align: middle;
}

header .header-user-menu .separator {
    min-height: 3em;
    margin: 0 0.2em;
    border-left: 2px solid white;
    vertical-align: middle;
}

/* DuĹźy sygnet */
header .header-user-menu .logo-sygnet {
    position: absolute;
    top: 0.5em;
    left: 0.75em;
    height: 5em;
    width: 4em;
    background-repeat: no-repeat;
    background-position: 50% 0;

    background-size: contain;
    transition: all 1s ease;
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1));
}

/* Sam logotyp */
header .header-user-menu .logo-logotyp {
    display: inline-block;
    flex: 0 0 auto;
    height: 2.5em;
    width: 10em;
    margin-top: 1em;
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: contain;
    transition: all 0.2s ease;
    vertical-align: middle;
}

@media (max-width: 768px) {
    header .header-user-menu .logo-logotyp {
        display: none;
    }
}


/* =========================================================================================== */
/* FOOTER */

footer {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 10em;
    margin-top: auto;
    margin-right: 0;
    margin-left: 0;
    border-top: 3px solid #e10713;
    box-shadow: 0 0 .5em rgb(0 0 0 / .5);
    transition: all 0.2s ease;
}

footer .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1em 2em;
    color: #ffffff;
    background-color: #000000;
    box-sizing: border-box;
}

footer .logo {
    height: 4em;
    width: 8em;
    margin-left: 4em;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}

@media (max-width: 1200px) {
    footer .logo {
        margin-left: 0;
    }
}

footer .copyright {
    flex: 1 0 max-content;
    margin-left: 1em;
    color: #a0a0a0;
}

footer .menu {
    display: flex;
    flex: 1 0 max-content;
    flex: 1 0 max-content;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

footer .menu .item {
    margin: 0em 1em;
    padding: 0.5em;
    border: 2px solid transparent;
    border-radius: 0.4em;
    color: white;

    text-decoration: none;
    transition: all 0.2s ease;
}

footer .menu .footer-menu-options {
    display: flex;
    flex-flow: row wrap;
}

footer .menu a.item:hover {
    border: 2px solid #ffffff;
    color: white;
    text-decoration: none;
}

.footer-nav {
    margin: 0;
    padding: 0;
}

/* Paginacja */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
}

.pagination .page-numbers {
    margin: 0 0.25em;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 0.75em;
    border: 1px solid #e10713;
    border-radius: 0.25em;
    color: #e10713;
    background-color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    border-color: #e10713;
    color: #ffffff;
    background-color: #e10713;
}

.pagination .page-numbers.current {
    border-color: #e10713;
    color: #ffffff;
    background-color: #e10713;
    pointer-events: none;
}

.pagination .page-numbers.disabled {
    border-color: #dddddd;
    color: #cccccc;
    background-color: #ffffff;
    pointer-events: none;
}

/* Przeciążenie kolorów odnośników */
a:not(.ab-item) {
    color: #e10713;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover:not(.ab-item),
a:focus:not(.ab-item) {
    color: #b3060f;
    text-decoration: underline;
}


/* Przeciążenie btn-primary na czerwony */
.btn-primary {
    border-color: #e10713 !important;
    color: #ffffff !important;
    background-color: #e10713 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #b3060f !important;
    color: #ffffff !important;
    background-color: #b3060f !important;
}

.btn-outline-secondary {
    border-color: #e10713 !important;
    color: #e10713 !important;
}

/* Featured image styling */
.article-thumbnail img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 0.5em;
    object-fit: cover;
}

/* Featured image and article layout */
.article-item .article-thumbnail {
    padding-right: 1em;
}

.article-item .article-thumbnail img {
    border-radius: 0.5em;
}

.article-item {
    margin-bottom: 0.6em;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.article-item .excerpt p {
    margin: 0;
}

.article-item .excerpt .btn {
    padding: 0.1em 0.6em;
}

/* Mobile-specific adjustments */
@media (max-width: 999px) {
    .article-item {
        font-size: 0.8em;
    }

    .article-item .article-info span {
        display: block;
    }

    .article-item .article-info .divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-thumbnail img {
        object-fit: contain;
    }

    .article-item .article-thumbnail {
        margin-bottom: 1em;
        padding-right: 0;
    }
}
