/* ===== Reset / baza ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Roboto';
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #111;
}

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

a {
    text-decoration: none;
    color: #0057A3;
}

h3{
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 26px;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.is-bip-chevron{
    background-image: url("../images/chevron-right-navy.svg");
    height: 16px;
    width: 16px;
}

/* ===== Header ===== */
.site-header {
    padding-top: 26px;
    padding-bottom: 22px;
    background-color: #fff;
}

.header-top {
    display: grid;
    grid-template-columns: 180px minmax(300px, 1fr) 260px;
    align-items: center;
    gap: 32px;
}

.header-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo img,
.custom-logo {
    height: auto;
}

.brand-logo .custom-logo-link {
    display: block;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* ===== Search ===== */
.header-search {
    display: flex;
    justify-content: center;
}

.custom-search-form {
    display: grid;
    grid-template-columns: 1fr 118px;
    width: 100%;
    max-width: 700px;
}

.search-field {
    height: 48px;
    padding: 0 20px;
    border: 1px solid #a9b4c3;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #f3f3f3;
    font-size: 16px;
    outline: none;
}

.search-field::placeholder {
    color: #6f7782;
}

.search-submit {
    height: 48px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: #f2c500;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.search-submit:hover {
    filter: brightness(0.97);
}

/* ===== Ikony po prawej ===== */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.header-icon-link img {
    max-height: 52px;
    width: auto;
}

.accessibility-link img {
    max-height: 38px;
}

/* ===== Linia pod topem ===== */
.header-divider {
    margin-top: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid #d4d4d4;
}

/* ===== Menu ===== */
.header-bottom {
    display: flex;
    justify-content: center;
}

.main-navigation {
    width: 100%;
}

.main-menu a {
    color: #111;
}

.main-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 300;
    color: #111;
    padding: 6px 0;
}

.main-menu > li.menu-item-has-children > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: rotate(45deg);
    margin-top: -3px;
}

/* ===== Dropdown ===== */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 12px 0 0;
    padding: 10px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 100;
}

.main-menu .sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    white-space: nowrap;
}

.main-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

/* ===== Accessibility ===== */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.site-footer {
    padding: 48px 0 64px;
    background-color: #fff;
}

.footer-box {
    border: 1px solid #cfd4da;
    border-radius: 24px;
    padding: 42px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
}

.footer-column {
    min-width: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0 0 18px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    font-size: 16px;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #1b1b1b;
}

.is-bip-posts-widget {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0px 2px 6px 0px rgba(18, 34, 64, 0.12);
}

.is-bip-posts-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.is-bip-posts-widget__title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.is-bip-posts-widget__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #005ca9;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.is-bip-posts-widget__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.is-bip-posts-widget__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px;
    background: transparent;
    border: 1px solid #DEE3E8;
    border-radius: 22px;
}

.is-bip-posts-widget__content {
    flex: 1 1 auto;
    min-width: 0;
}

.is-bip-posts-widget__item-title {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
}

.is-bip-posts-widget__item-title a {
    color: #005ca9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.is-bip-posts-widget__excerpt {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.6;
}

.is-bip-posts-widget__arrow {
    flex: 0 0 auto;
    color: #222;
    text-decoration: none;
    font-size: 40px;
    line-height: 1;
    margin-top: -2px;
}

.is-bip-posts-widget__empty {
    padding: 24px;
    border: 1px solid #d4d9df;
    border-radius: 18px;
    font-size: 16px;
}

.is-bip-page-hero {
    padding: 18px 0 42px;
    margin-bottom: 32px;
    background: #005ca9;
}

.is-bip-page-hero__container {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.is-bip-page-hero__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
}

.is-bip-page-hero__breadcrumbs a,
.is-bip-page-hero__breadcrumbs span {
    color: #ffffff;
    text-decoration: none;
}

.is-bip-page-hero__sep {
    font-size: 20px;
    line-height: 1;
    opacity: 0.95;
}

.is-bip-page-hero__title {
    margin: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.08;
}

.is-bip-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.is-bip-posts-list__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background: #fff;
    box-shadow: 0px 2px 6px 0px rgba(18, 34, 64, 0.12);
    border-radius: 20px;
}

.is-bip-posts-list__content {
    flex: 1 1 auto;
    min-width: 0;
}

.is-bip-posts-list__meta {
    margin-top: 10px;
}

.is-bip-posts-list__date {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.is-bip-posts-list__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.is-bip-posts-list__title a {
    color: #005ca9;
    text-underline-offset: 2px;
}

.is-bip-posts-list__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
}

.is-bip-posts-list__arrow {
    flex: 0 0 auto;
    font-size: 40px;
    line-height: 1;
    color: #222;
    text-decoration: none;
    margin-top: -2px;
}

.is-bip-posts-list__empty {
    padding: 24px;
    background: #fff;
    border: 1px solid #d7dce2;
    border-radius: 24px;
}

.is-bip-pagination {
    margin-top: 32px;
}

.is-bip-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.is-bip-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    background: #fff;
}

.is-bip-pagination .page-numbers.current {
    font-weight: 700;
    border-color: #005ca9;
    color: #005ca9;
}

@media (max-width: 767px) {
    .is-bip-posts-list__item {
        padding: 18px;
    }

    .is-bip-posts-list__title {
        font-size: 18px;
    }

    .is-bip-posts-list__excerpt {
        font-size: 15px;
    }

    .is-bip-posts-list__arrow {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .is-bip-page-hero__title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .is-bip-page-hero {
        padding: 16px 0 28px;
    }

    .is-bip-page-hero__container {
        width: min(100%, calc(100% - 32px));
    }

    .is-bip-page-hero__breadcrumbs {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 14px;
    }

    .is-bip-page-hero__sep {
        font-size: 20px;
    }

    .is-bip-page-hero__title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .is-bip-posts-widget {
        padding: 24px 18px;
    }

    .is-bip-posts-widget__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .is-bip-posts-widget__item {
        padding: 18px;
    }

    .is-bip-posts-widget__arrow {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .footer-box {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .footer-menu li {
        margin-bottom: 14px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .header-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-brand,
    .header-search,
    .header-actions {
        justify-content: center;
    }

    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 32px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 32px));
    }

    .custom-search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-field {
        border-right: 1px solid #a9b4c3;
        border-radius: 8px;
    }

    .search-submit {
        border-radius: 8px;
    }

    .header-actions {
        gap: 18px;
        flex-wrap: wrap;
    }

    .main-menu {
        flex-direction: column;
        align-items: center;
    }
}