/* Gotham Font Faces */
@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-Black.woff2') format('woff2'),
        url('../../fonts/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-BlackIta.woff2') format('woff2'),
        url('../../fonts/Gotham-BlackIta.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-Medium.woff2') format('woff2'),
        url('../../fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-MediumIta.woff2') format('woff2'),
        url('../../fonts/Gotham-MediumIta.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-Ultra.woff2') format('woff2'),
        url('../../fonts/Gotham-Ultra.otf') format('opentype');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../../fonts/Gotham-UltraIta.woff2') format('woff2'),
        url('../../fonts/Gotham-UltraIta.otf') format('opentype');
    font-weight: 950;
    font-style: italic;
    font-display: swap;
}

body>header {
    z-index: 9999;
}

body.search {
    background-color: #eff3f7;
}

.search .breadcrumps {
    margin-bottom: 80px;
}

.columns_list {
    columns: 3;
    display: block;
}

.columns_list .col {
    width: 100%;
}

.columns_list .col.mt-2 {
    margin-top: 0 !important;
}

.searchBar {
    height: 97px;
    margin-top: -107px;
    opacity: 0;
}

.searchBar.show {
    opacity: 1;
    margin-top: -10px;
}

.search_result .searchBar {
    margin-top: 0;
    border-radius: 15px;
}

.searchBar form {
    display: flex;
    gap: 0.5rem;
}

.searchBar>.search_wp {
    background-color: color-mix(in srgb, #033768 90%, transparent);
    color: #fff;
    padding-inline: 80px 20px;
    padding-block: 28px 18px;
    gap: 20px;
    border-radius: 0 0 10px 10px;
}

@media (max-width: 568px) {
    .searchBar>.search_wp {
        border-radius: 0;
    }

    .searchBar.show {
        margin-bottom: -40px;
    }
}

.searchpage_bar {
    margin-bottom: 55px;
}

.searchpage_bar.searchBar>.search_wp {
    padding-inline: 40px 20px;
    border-radius: 15px;
}

.search_result--title {
    font-size: 60px;
    font-weight: 900;
    margin-top: 0;
}

.search_result--title:first-letter {
    text-transform: uppercase;
}

.search_result--label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 0;
    color: #033e75;
}

.searchBar--title {
    font-weight: 700;
    font-size: 14px;
    margin-right: 11%;
}

.search_result--term {
    margin-bottom: 80px;
}

.search_result .searchBar--title {
    display: none;
}

.searchBar--input-wrapper {
    width: 45%;
    height: 100%;
}

.search_result .searchBar--input-wrapper {
    width: 63%;
}

.search_result--item {
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23033768'%3E%3Cpath d='M694-466H212v-28h482L460-728l20-20 268 268-268 268-20-20 234-234Z'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: left 40px top 20px;
    background-size: 20px 20px;
    transition: background-color 0.3s;
    overflow: clip;
}

.search-section-separator {
    background-color: #d9e2ea;
    margin-block: 10px 15px;
}

.search_section--header p {
    font-size: 14px;
    color: #033768;
    font-weight: 500;
    margin: 0;
}

.search_result--item:hover {
    background-color: color-mix(in srgb, #315c84 20%, #fff);
}


.search_result--item a {
    display: block;
    padding: 15px 75px 35px;
}

.search_result--item.post a {
    padding: 0;
}

.search_result--item.post .search_result--item-title {
    padding: 15px 75px 35px;
}

.search_result--item.post img {
    width: 243px;
    max-height: 190px;
    max-width: 35%;
    object-fit: cover;
    height: 100%;
    border-radius: 0;
}

.search_result--item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.search_result--item p {
    color: #315c84;
}

.searchBar--select-wrapper {
    width: 265px;
    position: relative;
    height: 100%;
    border-radius: 4px;
    transition: outline 0.4s, background-color 0.4s;
    outline: 2px solid transparent;
}

.search_result .searchBar--select-wrapper {
    width: calc(21% - 20px);
}

.searchBar--select-wrapper.error {
    outline-color: #ff2a00;
    background-color: #45425f;
}

.searchBar--select-wrapper::before {
    content: attr(data-error);
    position: absolute;
    bottom: calc(100% - 11px);
    height: 24px;
    left: -2px;
    right: -2px;
    font-size: 9px;
    background-color: #ff2a00;
    color: #fff;
    border-radius: 4px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-left: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.searchBar--select-wrapper.error::before {
    opacity: 1;
}

.searchBar input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    all: unset;
    width: 100%;
    background-color: #315c84 !important;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    height: 100%;
    position: relative;
    z-index: 2;
    border: 1px solid #315c84;
}

.searchBar input::placeholder {
    font-size: 14px;
    color: #dadada;
}

.searchBar input:hover,
.searchBar input:focus {
    background-color: #fff !important;
    color: #033e75;
    font-size: 14px;

}

.searchBar input:hover::placeholder,
.searchBar input:focus::placeholder {
    color: #a1a1a1;
}

.searchBar form button {
    font-size: 15px;
    background-color: #0d8734;
    border-radius: 30px;
    padding-inline: 20px 30px;
    color: #fff;
    font-weight: 700;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26.1903 11.3957C30.2752 15.4806 30.2752 22.1035 26.1903 26.1884C22.1054 30.2732 15.4825 30.2732 11.3976 26.1884C7.31276 22.1035 7.31276 15.4806 11.3976 11.3957C15.4825 7.31081 22.1054 7.31081 26.1903 11.3957' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3Cpath d='M31.6669 31.6669L26.1836 26.1836' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 31% center;
    background-size: 22px 22px;
    width: 17.5%;
    height: 100%;
    margin: 0;
}

.search_result form button {
    width: calc(16% - 20px);
}

.searchBar--select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    all: unset;
    width: 100%;
    background-color: #315c84 !important;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.66699 6.66699L8.00033 10.0003L11.3337 6.66699' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px 15px;
    height: 60px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.searchBar--select-wrapper option {
    color: #000;
    background-color: #fff;
}

.emc-nice-select-wrapper {
    position: relative;
    min-width: 180px;
    background-color: #315c84 !important;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.66699 6.66699L8.00033 10.0003L11.3337 6.66699' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 25px 25px;
    transition: background-image 0.4s;
}

.emc-nice-select-wrapper.open {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.66699 9.33301L8.00033 6.00001L11.3337 9.33301' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
}

.emc-nice-select-display {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.emc-nice-select-options {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.emc-nice-select-wrapper.open .emc-nice-select-options {
    display: block;
    padding: 12px 12px 21px;
}

.emc-nice-select-options li {
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.4s, color 0.4s;
    border-radius: 4px;
    font-weight: 500;
}

.emc-nice-select-options li:hover {
    background: #033768;
    color: #fff;
}

.emc-nice-select-options li.selected {
    background: #2f587f;
    color: #fff;
}

select.emc-nice-select {
    display: none !important;
}

.search-show-more-container {
    margin-bottom: 75px;
}

.search-show-more-container .button {
    font-size: 14px;
    background-color: #0d8734;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 20px 47px;
    margin: 0 auto;
    display: block;
    max-width: 100%;
    width: max-content;
    transition: box-shadow 0.3s, transform 0.3s;
}

.search-show-more-container .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/**** AJAX SEARCH FIELD ****/
.emc-search-suggestions {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1;
    font-size: 14px;
    padding-top: 10px;
}

.emc-suggestion-item {
    padding: 12px 16px;
    padding-left: 50px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    background-position: left 20px center;
    background-repeat: no-repeat;
    background-image: url("../images/icons/ajax-lupka@2.png");
    background-size: 11px 11px;
}

.emc-suggestion-item:last-child {
    border-bottom: none;
}

.emc-suggestion-item:hover,
.emc-suggestion-item.selected {
    background-color: #f8f9fa;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: #033768;
}

.suggestion-title strong {
    padding: 0;
    font-weight: 700;
}

.search-input-container {
    position: relative;
}

/* Loading Spinner */
.emc-search-spinner {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.emc-search-spinner .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #033768;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Lista zabiegów */
div.fs18-28:first-letter {
    text-transform: uppercase;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* strona o szpitalu */
.introduction-page-image image {
    width: 100%;
    height: 129% !important;
}

@media (min-width: 992px) {

    .main-nav ul.sub-nav.collapse.show,
    .main-nav ul.sub-nav.collapsing.show {
        display: block;
        height: auto;
        max-height: 50vh;
        overflow-x: clip;
        overflow-y: auto;
    }

    .introduction-page-image image {
        width: 73%;
        height: auto;
    }
}


@media (max-width: 1366px) {
    .searchBar form button {
        background-position: right 10px center;
    }

    .search_result--title {
        font-size: 52px;
    }
}

@media (max-width: 992px) {
    select.emc-nice-select {
        display: flex !important;
    }

    .emc-nice-select-wrapper {
        display: none;
    }

    .searchBar form button {
        background-image: none;
    }

    .searchBar>.search_wp {
        padding-inline: 20px;
    }

    .search_result .searchBar--input-wrapper {
        width: 55%;
    }

    .search_result .searchBar--select-wrapper {
        width: calc(34% - 20px);
    }

    .search_result--title {
        font-size: 48px;
    }

    .searchBar--title {
        display: none;
    }

    .searchBar input::placeholder {
        font-size: 12px;
    }

    .searchBar input {
        font-size: 14px;
    }

    .searchBar--select-wrapper select {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .searchBar {
        flex-wrap: wrap;
    }

    .searchBar--input-wrapper,
    .search_result .searchBar--input-wrapper {
        width: 70%;
        height: 60px;
    }

    .searchBar--select-wrapper,
    .search_result .searchBar--select-wrapper {
        order: 3;
        width: 70%;
    }

    .searchBar>.search_wp {
        flex-wrap: wrap;
        align-items: center !important;
    }

    .searchBar form button {
        width: 25%;
        padding-block: 10px;
    }

    .searchBar {
        height: auto;
        margin-top: -200px;
    }

    .search_result .searchBar {
        margin-top: 0;
    }

    .search_result--term {
        margin-bottom: 30px;
    }

    .searchpage_bar {
        margin-bottom: 30px;
    }

    .search_result--item.post img {
        width: 243px;
        max-width: 35%;
        object-fit: cover;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 300px;
        max-height: unset;
    }

    .search_result--title {
        font-size: 44px;
    }

    .search-show-more-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 577.002px) {

    .searchBar--select-wrapper,
    .search_result .searchBar--select-wrapper {
        order: initial;
        width: 100%;
    }

    .searchBar--input-wrapper,
    .search_result .searchBar--input-wrapper {
        width: 100%;
    }

    .searchBar form button {
        width: 300px;
        max-width: 100%;
        margin: 0 auto;
    }

    .search_result--title {
        font-size: 30px;
    }

    .searchBar {
        margin-top: -300px;
    }

    .search_result .searchBar {
        margin-top: 0;
    }
}