/* HEADER */

.ast-builder-grid-row>.site-header-section {
    flex-wrap: wrap;
}

.ast-primary-header-bar .site-primary-header-wrap {
    max-height: 60vh;
    ;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
    color: var(--ast-global-color-2);
}

.ast-builder-grid-row>.site-header-section {
    flex-wrap: wrap;
    width: 100%;
}

.site-header-section>div:last-child {
    width: 100%;
}

.wpml-ls-item .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-2);
    background: var(--ast-global-color-5);
}

.main-header-menu .menu-link,
.main-header-menu>a {
    padding-top: 0px;
    padding-right: 0;
    padding-bottom: 0px;
    padding-left: 2em;
}

.site-header-section>* {
    padding: 0;
}


@media (min-width: 922px) {
    .ast-primary-header-bar {
        border-bottom-width: 0;
    }
}

.site-primary-header-wrap.ast-container {
    padding: 24px 12.5%;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--ast-global-color-0);
    background: var(--ast-global-color-5);
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item {
    margin: 0 0 0 4%;
}

@media only screen and (min-width: 992px) {

    #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:focus,
    a.menu-link span.menu-text:hover {
        content: "";
        border-bottom: 1px solid var(--ast-global-color-2);
    }
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover {
    text-decoration: underline;
}

/* SEARCH */

.main-header-bar .ast-search-menu-icon .search-form {
    background-color: transparent;
}

.ast-search-menu-icon .search-form {
    border: none;
}


input[type=email]:focus,
input[type=password]:focus,
input[type=reset]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    background-color: transparent;
}

.ast-header-search .ast-icon.icon-search svg {
    margin-top: 0px;
    margin-right: 0px;
}

.site-header .ast-inline-search.ast-search-menu-icon .search-field {
    margin-right: 3em;
    border: 1px solid var(--ast-global-color-4);
    padding-top: 2.2px;
    padding-bottom: 3.2px;
}

.ast-search-menu-icon input::placeholder {
    color: var(--ast-global-color-3);
}

.ast-header-search .astra-search-icon {
    padding: 4px 7px;
    border: 1px solid var(--ast-global-color-4);
    color: var(--ast-global-color-2);
}

.ast-header-search .ast-search-menu-icon.slide-search .search-form,
.ast-header-search .ast-search-menu-icon.ast-inline-search .search-form {
    height: 34px;
}

.site-header .ast-inline-search.ast-search-menu-icon .search-form {
    padding-left: 2em !important;
}

.header-widget-area img {
    vertical-align: middle;
}

/* PRIMARY MENU */

.main-header-menu .sub-menu {
    width: 130%;
    padding: 15px 2%;
}

ul .sub-menu li {
    text-transform: capitalize;
}

.main-header-menu .sub-menu .menu-link {
    padding: 0.7em 1em;
}

.main-header-menu .wpml-ls-item .sub-menu {
    width: 130%;
    padding: 0;
}

.ast-menu-shadow .ast-icon.icon-arrow svg {
    content: url('assets/images/icon-down-arrow-black.svg');
    height: 0.8em;
    width: 0.8em;
}

.ast-desktop .ast-mega-menu-enabled .ast-builder-menu-1 div:not(.astra-full-megamenu-wrapper) .sub-menu,
.ast-builder-menu-1 .inline-on-mobile .sub-menu,
.ast-desktop .ast-builder-menu-1 .astra-full-megamenu-wrapper,
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu {
    box-shadow: none;
}

.site-header-section .ast-main-header-bar-alignment {
    width: 100%;
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator::after {
    content: url('assets/images/icon-down-arrow-black.svg');
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator:hover::after {
    content: url('assets/images/icon-arrow-up-black.svg');
}

.ast-builder-menu-2 .menu-item:hover>.menu-link {
    color: var(--ast-global-color-3);
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    color: var(--ast-global-color-2);
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:hover {
    color: var(--ast-global-color-2);
}

/* HEADER MOBILNIE */
@media (max-width: 921px) {

    #ast-mobile-header .content-align-flex-start {
        padding-left: 7%;
        padding-right: 7%;
    }

    #ast-mobile-header .content-align-flex-start {
        max-height: 300vh !important;
        padding-bottom: 50px;
    }

    .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
        flex-direction: row-reverse;
        gap: 10px;
    }

    .site-header-section>div:last-child {
        justify-content: end;
    }

    .header-widget-area .wp-block-separator {
        border: none;
    }

    .ast-header-break-point .site-header .ast-inline-search.ast-search-menu-icon .search-field {
        width: 86% !important;
    }

    .header-widget-area .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
        margin: 15px 0 20px 0;
    }

    .ast-mobile-header-wrap .main-header-menu .sub-menu {
        width: 130%;
        padding: 0px 2%;
    }

    .ast-header-break-point .main-navigation ul .sub-menu .menu-item:not(.menu-item-has-children) .menu-link .icon-arrow:first-of-type {
        display: none;
    }

    .ast-header-break-point .header-widget-area[data-section="sidebar-widgets-header-widget-4"] {
        margin-left: 0;
        margin-right: 0;
    }

    .wpml-ls-item .sub-menu {
        border: 0;
    }

    .widget_nav_menu ul ul.sub-menu li {
        padding-left: 0px;
    }

    .widget_nav_menu li {
        margin-bottom: 20px;
    }

    .ast-mobile-header-content .ast-builder-layout-element:not(.ast-builder-menu):not(.ast-header-divider-element),
    .ast-mobile-popup-content .ast-builder-layout-element:not(.ast-builder-menu):not(.ast-header-divider-element) {
        padding: 20px 0 !important;
    }

    .ast-header-break-point .main-navigation ul .menu-item .menu-link {
        padding: 0;
    }

    nav.menu-menu-naglowek-container {
        padding-bottom: 20px;
    }

    #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
        border-bottom: 2px solid var(--ast-global-color-0);
    }

    .ast-builder-menu-mobile .main-navigation .menu-item:hover>.menu-link,
    .ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item:hover>.ast-menu-toggle {
        color: var(--ast-global-color-3);
        background: transparent;
        font-weight: 700;
    }

    .site-header .ast-inline-search.ast-search-menu-icon .search-form {
        padding-left: 0 !important;
    }

}

@media(min-width: 919px) and (max-width: 920px) {
    .ast-builder-menu-2.ast-builder-menu.ast-flex.ast-builder-menu-2-focus-item.ast-builder-layout-element.site-header-focus-item {
        display: none;
    }
}


/* STICKY HEADER */

.ast-hfb-header.ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img img {
    max-height: 72px !important;
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .site-primary-header-wrap {
    border-radius: 0;
    border-bottom: 1px solid var(--ast-global-color-0);
    background: var(--ast-global-color-5);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .ast-inline-search.ast-search-menu-icon .search-field {
    margin-right: 3em;
    border: 1px solid var(--ast-global-color-4);
    padding-top: 2.2px;
    padding-bottom: 3.2px;
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .ast-search-menu-icon input::placeholder {
    color: var(--ast-global-color-3);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .ast-header-search .astra-search-icon {
    padding: 4px 7px;
    border: 1px solid var(--ast-global-color-4);
    color: var(--ast-global-color-2);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .site-header-primary-section-right .menu-item>.menu-link {
    color: var(--ast-global-color-2);
}

.ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    color: var(--ast-global-color-2);
}

.ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:hover {
    color: var(--ast-global-color-2);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .site-logo-img {
    content: url('assets/images/logo-UIK-black.svg');
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar aside img {
    content: url('assets/images/logo-unia-europejska-color.svg');
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .astra-mm-icon-label.icon-item-180 img {
    content: url('assets/images/icon-map-black.svg');
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-2);
    background: var(--ast-global-color-5);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    color: rgb(20, 43, 72);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-flyout ul.mega-sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-2);
    background: var(--ast-global-color-5);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    color: var(--ast-global-color-2);
}


.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .wpml-ls-item .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-2);
    background: var(--ast-global-color-5);
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .ast-container {
    padding-left: 12.5%;
    padding-right: 12.5%;
    margin-left: 0;
    margin-right: 0;
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center {
    padding: 24px 0;
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator::after {
    content: url('assets/images/icon-down-arrow-black.svg');
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator:hover::after {
    content: url('assets/images/icon-arrow-up-black.svg');
}

@media only screen and (min-width: 992px) {

    .home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:focus,
    .home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar a.menu-link span.menu-text:hover {
        content: "";
        border-bottom: 1px solid var(--ast-global-color-2);
    }
}

/* HEADER HOME */

.home .ast-primary-header-bar .site-primary-header-wrap {
    border-radius: 0px 0px 24px 24px;
    border-bottom: 4px solid var(--ast-global-color-0);
    background: rgba(37, 50, 56, 0.90);
}

.home .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center {
    padding: 24px 2.5%;
}

.home .site-header-primary-section-right .menu-item>.menu-link,
.home .site-header-primary-section-right .menu-item>.menu-link:hover,
.home .ast-builder-menu-1 .inline-on-mobile .menu-item:hover>.ast-menu-toggle {
    color: var(--ast-global-color-5);
}

.home .site-header .ast-inline-search.ast-search-menu-icon .search-field {
    margin-right: 3em;
    border: 1px solid var(--ast-global-color-5);
    padding-top: 2.2px;
    padding-bottom: 3.2px;
}

.home .ast-search-menu-icon input::placeholder {
    color: var(--ast-global-color-5);
}

.home .ast-header-search .astra-search-icon {
    padding: 4px 7px;
    border: 1px solid var(--ast-global-color-5);
    color: var(--ast-global-color-5);
}

.site-primary-header-wrap.ast-container {
    padding: 24px 12.5%;
}

.home .main-header-bar .site-logo-img {
    content: url('assets/images/logo-UIK-white.svg');
}

.home .site-header-section aside img {
    content: url('assets/images/logo-unia-europejska-white.svg');
}

.home .astra-mm-icon-label.icon-item-180 img {
    content: url('assets/images/icon-map-white.svg');
}

.home #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    color: var(--ast-global-color-5);
}

.home #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-flyout ul.mega-sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-5);
    background: var(--ast-global-color-3);
}

.home #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    color: var(--ast-global-color-5);
}

.home .wpml-ls-item .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-5);
    background: var(--ast-global-color-3);
}

.home .site-primary-header-wrap.ast-container {
    margin-left: 12.5%;
    margin-right: 12.5%;
    padding-left: 0;
    padding-right: 0;
}

.home .site-primary-header-wrap.ast-container {
    padding-top: 0;
    padding-bottom: 0;
}

.home #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator::after {
    content: url('assets/images/icon-down-arrow-white.svg');
}

.home #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children>a.mega-menu-link>span.mega-indicator:hover::after {
    content: url('assets/images/icon-arrow-up-white.svg');
}

@media only screen and (min-width: 992px) {

    .home #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link:focus,
    .home a.menu-link span.menu-text:hover {
        content: "";
        border-bottom: 1px solid var(--ast-global-color-5);
    }
}

/* LANGUAGE ICON */

@media(min-width:921px) {
.home .wpml-ls-menu-item a.menu-link::before {
    content: url('assets/images/icon-globe-white.svg');
    padding-right: 10px;
}
}

.home .wpml-ls-menu-item ul.sub-menu a.menu-link::before {
    display: none;
}

.home .ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .wpml-ls-item a.menu-link:before {
    content: url('assets/images/icon-globe-black.svg');
    padding-right: 10px;
}

.ast-sticky-active.ast-sticky-shrunk.ast-primary-header-bar .wpml-ls-item a.menu-link:before {
    content: url('assets/images/icon-globe-black.svg');
    padding-right: 10px;
}

.wpml-ls-menu-item a.menu-link::before {
    content: url('assets/images/icon-globe-black.svg');
    padding-right: 10px;
}

.wpml-ls-menu-item ul.sub-menu a.menu-link::before {
    display: none;
}

/* HEADER - HOME MOBILNIE */
@media (max-width: 921px) {

    .home #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
        border-radius: 0px 0px 16px 16px;
        border-bottom: 2px solid var(--ast-global-color-0);
        background: rgba(37, 50, 56, 0.90);
    }

    .home .main-header-bar .site-logo-img {
        content: url('assets/images/logo-UIK-white.svg');
        width: 100%;
    }

    .home [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu {
        color: var(--ast-global-color-5);
    }

    .home [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
        fill: var(--ast-global-color-5);
    }

    .home .site-header .ast-inline-search.ast-search-menu-icon .search-field {
        border: 1px solid var(--ast-global-color-4);
    }

    .home .ast-header-search .astra-search-icon {
        color: var(--ast-global-color-2);
        border: 1px solid var(--ast-global-color-4);
    }

    .home .ast-search-menu-icon input::placeholder {
        color: var(--ast-global-color-3);
    }

    .home .wpml-ls-item .sub-menu {
        border: 0;
        background: transparent;
    }


}

/* SECONDARY MENU - SUB MENU */

.home.ast-desktop .ast-builder-menu-2 .menu-item .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-5);
    background: var(--ast-global-color-3);
}

.ast-desktop .ast-builder-menu-2 .menu-item .sub-menu {
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-3);
    background: var(--ast-global-color-5);
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link {
	color: var(--ast-global-color-2);
}


.home .ast-site-identity .site-title a {
    color: white;
}