/**
 * @file
 * Subtheme specific CSS.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-white: #ffffff;
    /* --color-dark-blue: #00195E; */
    --color-dark-blue: #24195d;
    --color-blue: #0095db;
    --color-grey: #d2d3d5;
    --color-light-blue: #EEF2FF;
    --color-black: #000000;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 36px;
    line-height: 46px;
    font-weight: 500;
    color: var(--color-dark-blue);
}

body:not(.path-frontpage) h1 {
    margin-bottom: 1em;
}

h2 {
    font-size: 28px;
    line-height: 40px;
    font-weight: 500;
    color: var(--color-dark-blue);
}

h3,
h3 a {
    font-size: 24px;
    line-height: 34px;
    color: initial;
    text-decoration: unset;
}

h3 a {
    display: flex;
    justify-content: space-between;
    padding-right: 10px;
}

h1::after,
h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background-color: var(--color-blue);
    display: block;
    margin-top: 12px;
}

h2.text-align-center::after {
    margin-right: auto;
    margin-left: auto;
}

.title:not(h1) {
    font-size: 20px;
    line-height: 30px;
    color: var(--color-black);
    font-weight: 500;
}

.title a {
    color: #000;
    text-decoration: none;
}

.text-white {
    color: var(--color-white);
}

.text-blue {
    font-size: 22px;
    line-height: 30px;
    color: var(--color-dark-blue);
    font-weight: 600;
    max-width: 515px;
}

.bg-blue {
    background-color: var(--color-blue);
    padding: 5px 35px 5px 12px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    font-size: 24px;
    display: inline-block;
    margin-bottom: 2em;
}

/* .text-indent {
    padding-left: calc(22vw - 10px);
} */

.semi-bold {
    font-weight: 600;
}

.alert-wrapper {
    position: relative;
    z-index: 0;
}

body.user-logged-in {
    padding-top: 5em;
}

.primary.nav-tabs .nav-link {
    color: var(--bs-nav-tabs-link-active-color);
}

.primary.nav-tabs .nav-link.active {
    background-color: #f6f6f2;
}

p.text-indent:last-child,
p.text-blue,
h2 {
    margin-bottom: 30px;
}

.main-content {
    padding: 0 !important;
}

body:not(.path-frontpage) .layout-main-wrapper {
    margin-top: 5em;
}

.bg-image {
    position: relative;
}

.bg-image .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    line-height: 42px;
}

.description p {
    font-size: 20px;
    color: #293682;
}

.bg-light {
    background-color: var(--color-light-blue) !important;
    padding: 5em 0;
}

.primary.nav-tabs {
    max-width: 1450px;
    justify-content: center;
    padding: 20px 0 0px;
}

a.button-link,
.back-link a {
    background-color: var(--color-blue);
    color: var(--color-black);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5em;
}

.field--type-image img {
    margin: 0;
}

.field--name-field-media-oembed-video .field__item {
    position: relative;
    padding-bottom: 56.25%;
}

.field--name-field-media-oembed-video .field__item .media-oembed-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

body:not(.path-frontpage) .paragraph--type--zdjecie-tekst {
    padding: 6em 0;
}

.text-left.paragraph--type--zdjecie-tekst img,
.text-right.paragraph--type--zdjecie-tekst img {
    border-radius: 30px;
    width: 100%;
    height: auto;
}

.paragraph--type--zdjecie-tekst .col-two {
    padding-top: 2em;
}

.paragraph--type--zdjecie-tekst ul,
.home-block-third ul,
.home-block-five ul {
    list-style-type: none;
}

.paragraph--type--zdjecie-tekst ul li,
.home-block-third ul li,
.home-block-five ul li {
    position: relative;
    margin-bottom: 5px;
}

.paragraph--type--zdjecie-tekst ul li::before,
.home-block-third ul li::before,
.home-block-five .col-one li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    display: inline-block;
    font-weight: bold;
    color: var(--color-blue);
    position: absolute;
    left: -25px;
}

ol li ul {
    list-style-type: disc;
}

ol>li {
    margin-bottom: 1em;
}

.bg-image .subtitle {
    font-size: 32px;
    line-height: 42px;
    padding-right: 30px;
}

.bg-image .field--type-link {
    
}

.bg-image .field--type-link a {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    padding: 12px 35px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 500;
    display: ruby-text;
}

.taxonomy-term--type-obszary-terapeutyczne .field--type-text-long .align-right img {
    border-radius: 30px;
    margin-left: 4em;
    margin-bottom: 2em;
}

.pagination {
    gap: 10px;
    justify-content: center;
    margin-top: 2em;
}

.pagination .page-link,
.pagination .page-link.active {
    color: var(--color-dark-blue);
    border: 2px solid var(--color-dark-blue);
    border-radius: 20px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    border-radius: 20px;
    background-color: var(--color-dark-blue);
    color: #fff;
}

.pagination .page-item:last-child .page-link,
.pagination .page-item:first-child .page-link {
    border: unset;
}

/* .gallery-bg {
    background-color: #F2F2F7;
    border-top: 130px solid #fff;
}

.slick--optionset--galeria-o-nas {
    position: relative;
    top: -80px;
}

.slick__arrow {
    position: absolute;
    right: 32px;
    bottom: 48px;
}

.slick-prev,
 .slick-next {
    width: 30px;
    height: 30px;
}

.slick-next:before,
.slick-prev:before {
    display: inline-block;
    transform: scale(0.8);
    color: var(--color-white);
    font-size: 22px;
    border-radius: 100%;
    padding: 4px 5px;
    opacity: 1;
}

.slick-next:before {
    content: "\2192";
    background-color: #B91F2C;
}

.slick-prev {
    left: -45px;
}

.slick-prev:before {
    content: "\2190";
    background-color: #5178CD;
}

.description p {
    font-size: 20px;
    color: #293682;
    line-height: 28px;
} */


/* ----------- Main navigation ----------- */

#navbar-top {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.block-ucwbk-socialmedia .content ul {
    display: flex;
    padding: 0;
    gap: 10px;
    list-style-type: none;
    margin-bottom: 0;
    align-items: center;
}

.block-ucwbk-socialmedia .content ul li {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-ucwbk-socialmedia .content ul li:not(.contact-item) {
    border: 1.5px solid var(--color-dark-blue);
    border-radius: 50px;
    width: 40px;
}

.block-ucwbk-socialmedia .content ul li a {
    color: var(--color-dark-blue);
    display: block;
    text-align: center;
}

.block-ucwbk-socialmedia .content ul li.contact-item {
    background-color: var(--color-blue);
    border-radius: 20px;
    padding-left: 25px;
    padding-right: 25px;
    margin-left: 10px;
}

.block-ucwbk-socialmedia .content ul li.contact-item a {
    text-decoration: unset;
    color: var(--color-black);
}

.block-ucwbk-socialmedia .fa-brands {
    font-size: 1.3rem;
    line-height: 2;
}

#navbar-main {
    background-color: var(--color-dark-blue);
    padding-top: 15px;
    padding-bottom: 15px;
    filter: drop-shadow(0 5px 9px rgba(0, 25, 94, 0.35));
    z-index: 99;
}

#navbar-main .navbar-nav {
    justify-content: center;
}

.menu--main a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 18px;
}

.menu--main a:focus {
    color: var(--color-white);
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.is-active,
.navbar-nav .show>.nav-link,
.navbar-nav .nav-link:hover {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,25,94,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media screen and (max-width: 992px) {
    .region-top-header {
        display: contents !important;
    }

    .navbar-brand {
        margin-left: 2em;
        width: 80%;
    }

    .region-top-header .block-ucwbk-socialmedia {
        margin-right: 110px;
        position: absolute;
        right: 0;
        top: 40px;
    }

    .offcanvas-header {
        justify-content: flex-end;
    }

    #navbar-main .navbar-toggler {
        margin-right: 2em;
        position: absolute;
        top: 40px;
        right: 0;
        background-color: #ffffff;
        border: 2px solid var(--color-dark-blue);
        border-radius: 50px;
    }

    #navbar-main {
        display: contents;
    }

    #navbar-main a {
        color: #000;
    }

}

@media screen and (max-width: 767px) {
    .region-top-header {
        display: flex !important;
    }

    #navbar-main .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-brand {
        margin-left: 15px;
    }

    .region-top-header .block-ucwbk-socialmedia {
        margin-right: 85px;
    }
        .header .block-ucwbk-socialmedia .content ul li:not(:last-child) {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 635px) {
    #navbar-top {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .region-top-header {
        align-items: stretch !important;
        flex-direction: column;
        align-content: space-between;
    }

    .navbar-brand {
        width: auto;
        display: inline-flex;
        margin: 0;
    }

    .navbar-brand img {
        width: auto;
        height: 50px;
    }

    .region-top-header .block-ucwbk-socialmedia {
        margin-right: initial;
        width: 100%;
        position: unset;
    }

    .header .block-ucwbk-socialmedia .content ul {
        justify-content: flex-end;
    }

    .contact-item {
        position: absolute;
        top: 30px;
        right: 85px;
    }

    #navbar-main .navbar-toggler {
        top: 30px;
    }
}
@media screen and (max-width: 480px) {
    #navbar-top {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
        .block-ucwbk-socialmedia .content ul {
        margin-top: 20px;
    }
    #navbar-main .navbar-toggler {
        top: 20px;
    }

    .block-ucwbk-socialmedia .content ul li.contact-item {
        position: unset;
        margin-left: 0;
    }
}

@media screen and (max-width: 400px) {
    
}

/* ----------- Breadcrumb ----------- */

.highlighted {
    background-color: var(--color-blue);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 1.5em 0;
}

ol.breadcrumb>li {
    margin-bottom: 0;
}

.breadcrumb-item.active,
.breadcrumb li a {
    color: var(--color-white);
    text-transform: uppercase;
    text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--color-white);
    font-weight: 400;
}

.breadcrumb-item.active {
    font-weight: 600;
}

/* ----------- Home ----------- */

.path-frontpage h1::after {
    display: none;
}

.path-frontpage .banner.bg-image .title {
    text-align: left;
    color: var(--color-dark-blue);
}

.path-frontpage .banner.bg-image img {
    height: 80vh;
    object-fit: cover;
    max-height: 800px;
}

.path-frontpage .banner.bg-image .field--name-field-media-image {
    position: relative;
    max-width: 2400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.path-frontpage .banner.bg-image .field--name-field-media-image::after {
    content: '';
    background-image: url('../images/ikona-baner.png');
    background-image: url('../images/ikona-baner-blue.png');
    background-image: url('../images/ikona-baner-dark-blue.png');
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    height: 75vh;
    width: 100%;
    /* opacity: 0.7; */
}

.path-frontpage .bg-image h1 {
    max-width: 550px;
}

.path-frontpage .bg-image .subtitle {
    font-size: 22px;
    line-height: 33px;
}

.home-block-second.bg-image {
    margin-top: 4em;
    margin-bottom: 5em;
}

.home-block-second.bg-image img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.home-block-second .title .title {
    font-size: 52px;
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    margin-bottom: 2rem;
}

.home-block-third .col-one ul {
    max-width: 510px;
}

.home-block-third .col-two img {
    max-height: 140px;
    width: auto;
}

.home-block-third .col-two p {
    max-width: 260px;
}

.bg-light .news-view h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
    text-align: center;
}

.home-block-five .col-two {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-end;
}

.home-block-five {
    position: relative;
}

.home-block-five::before {
    content: '';
    height: 100%;
    width: 45%;
    background-color: var(--color-blue);
    display: block;
    position: absolute;
    right: 0;
    border-radius: 350px 0 0 350px;
}

.sm-home p {
    font-size: 22px;
    line-height: 30px;
    color: var(--color-white);
    font-weight: 600;
    text-align: center;
    position: relative;
}

.sm-home ul {
    margin-top: 2em;
}

#main .content .sm-home ul li {
    background: #fff;
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 1em;
    border: 1px solid var(--color-dark-blue);
    border-radius: 5px;
}

#main .content .sm-home i.fa-brands {
    font-size: 25px;
    margin-right: 5px;
}

.sm-home a {
    color: var(--color-dark-blue);
    text-decoration: unset;
}



/* ----------- O nas ----------- */

.about .block-second .paragraph:nth-of-type(2) .col-one>div,
.about.block-four .paragraph:nth-of-type(1) .col-one>div {
    position: relative;
}

.about .block-second .paragraph:nth-of-type(2) .col-one>div::before {
    content: '';
    background-image: url('../images/ikonki2_1.png');
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: -75px;
    top: -75px;
    width: 255px;
    height: 100%;
}

.about.block-four .paragraph:nth-of-type(1) .col-one>div::before {
    content: '';
    background-image: url('../images/ikonki_ucwbk_1.svg');
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: -5px;
    bottom: -440px;
    width: 210px;
    height: 100%;
}

.about.bg-image .field--type-image .field__item::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: var(--color-dark-blue);
    opacity: 0.85;
}

.about.bg-image .field--type-image img {
    object-fit: cover;
    height: 500px;
}

.about.bg-image .title {
    line-height: unset;
}

.about.bg-image .title p {
    font-size: 16px;
    font-weight: 400;
}

.about.bg-image .title>p {
    max-width: 975px;
    margin: 0 auto;
}

.about.bg-image h2,
.about.home-block-five h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
    color: var(--color-white);
}

.paragraph--type--liczby .field--name-field-liczba {
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    margin-top: 0.7em;
}

.paragraph--type--liczby .field--name-field-tytul {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 1em;
}

.paragraph--type--liczby .field--name-field-tresc {
    padding-right: 2.5em;
}

.about.block-five>div {
    max-width: 1100px;
    margin-bottom: 4em;
}

.about.block-four {
    margin-bottom: 7em;
}

/* ----------- News ----------- */

.view-news img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.news-view .text-group {
    text-align: center;
    padding: 2.5em;
}

.news-view .news-date {
    font-size: 14px;
    font-weight: 500;
    color: #2961FE;
    padding: 0 0 1.5em;
}

.news-view .wydarzenia .news-date {
    color: var(--color-dark-blue);
}

.news-view .img-group {
    position: relative;
}

.news-view .aktualności {
    background-color: var(--color-white);
    border-radius: 15px;
}

.news-view .wydarzenia {
    background-color: var(--color-blue);
    border-radius: 15px;
}

.news-category {
    position: absolute;
    bottom: -14px;
    right: 35px;
    padding: 6px 32px;
    border-radius: 30px;
    line-height: 1;
    font-size: 14px;
    font-weight: 500;

}

.aktualności .news-category {
    background: var(--color-blue);
    color: var(--color-black);
    border: 2px solid var(--color-blue);
}

.wydarzenia .news-category {
    background: var(--color-white);
    color: var(--color-dark-blue);
    border: 2px solid var(--color-dark-blue);
}

.news-view .view-footer {
    text-align: center;
}

.path-frontpage .bg-light {
    margin-bottom: 7em;
}

/* .back-link a {
    font-size: 24px;
    color: var(--color-dark-blue);
    text-decoration: unset;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 50px;
    line-height: 0;
}

.back-link a::before {
    content: "\2192";
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: 23px;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    transform: rotate(180deg);
} */

.news-view.all .aktualności {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.news-view.all .view-filters .js-form-item {
    width: 100%;
}

.news-view.all .bef-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    margin-top: 3em;
    margin-bottom: 3em;
    position: relative;
    gap: 30px;
}

.news-view.all .bef-links ul::after {
    content: '';
    background: var(--color-dark-blue);
    height: 3px;
    width: 100%;
    max-width: 815px;
    position: absolute;
    bottom: -20px;
}

.news-view.all .bef-links ul li a {
    font-size: 18px;
    color: var(--color-black);
    font-weight: 600;
    text-decoration: unset;
    padding: 20px 40px;
}

.news-view.all .bef-links .bef-link--selected {
    background-color: var(--color-blue);
    padding: 6px 40px;
    border-radius: 20px;
}

/* ----------- Single News ----------- */

.page-node-type-story h2 {
    margin-top: 30px;
}
.page-node-type-story .field--name-field-hero-image img {
    display: block;
    margin: 0 0 2em 2em;
    border-radius: 30px;
    float: right;
}
.text-formatted .align-right.media-embed-resized {
    margin: 0 0 2em 2em;
        border-radius: 30px;
}
.text-formatted .align-left.media-embed-resized {
    margin: 0 2em 2em 0;
}
.text-formatted .media-embed-resized img {    
            border-radius: 30px;
}

.event-date time {
    font-size: 15px;
    color: #777;
}

/* ----------- Team ----------- */

.team .block-one img {
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.team .block-two .text-blue {
    max-width: unset;
}

.team .team-item .section-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team .team-item .section-row .col-one .field--name-field-image,
.team .team-item .section-row .col-one .field--name-field-media-image {
    margin: 0;
}

.team .team-item .paragraph {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.team .team-item img {
    height: 180px;
    width: auto;
    max-width: unset;
}

.team .team-item .section-row .col-two {
    text-align: center;
    width: 100%;
}

.team .team-item a {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark-blue);
    text-decoration: none;
}

.team .team-item .field--name-field-tresc {
    text-align: center;
}

.team-group {
    gap: 30px;
    align-items: center;
    margin-bottom: 2.5em;
}
.team-position {
    font-size: 18px;
    margin: 10px 0;
    color: var(--color-dark-blue);
}
.team-group img {
    width: 245px;
    height: 265px;
    object-fit: cover;
    border-radius: 30px;
    object-position: top;
}
/* ----------- Obszary strona ----------- */

.view-obszary-lista ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.view-obszary-lista ul li {
    margin-bottom: 20px;
}

.view-obszary-lista a {
    color: var(--color-black);
    background: var(--color-blue);
    padding: 7px 30px;
    text-decoration: unset;
    border-radius: 30px;
    font-weight: 500;
}

.obszary.bg-image>.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.obszary.bg-image .field--type-image .field__item::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: var(--color-dark-blue);
    opacity: 0.85;
}

.badania-view-block {
    max-width: unset;
    margin-top: 2em;
}

.badania-view__toggle {
    background: unset;
    padding: 0;
    border: 0;
    gap: 30px;
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.badania-view__toggle button {
    font-size: 20px;
    color: #000 !important;
    font-weight: 500;
    text-decoration: unset;
    padding: 5px 25px;
}

.badania-view__toggle::after {
    content: '';
    background: var(--color-dark-blue);
    height: 3px;
    max-width: 815px;
    width: 100%;
    position: absolute;
    bottom: -20px;
}

.badania-view--btn.is-active {
    background-color: var(--color-blue);
    border-radius: 0 20px 20px 0;
    box-shadow: unset;
    border: unset;
}

.komercyjne::before,
.niekomercyjne::before {
    content: '';
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
    top: 15px;
    left: 20px;
    position: absolute;
}

.komercyjne,
.niekomercyjne {
    position: unset;
}

.komercyjne::before {
    background-image: url('../images/ikonki2_1.png');
}

.niekomercyjne::before {
    background-image: url('../images/ikonki2_2.png');
}

.view-obszary-terapeutyczne-projekty-osoby .item-list ul li,
.badacz-projekty__item {
    border: 1.5px solid var(--color-blue);
    border-radius: 5px;
    padding: 15px 15px 15px 80px;
    margin-bottom: 1em;
    position: relative;
}

.obszary-terapeutyczne-projekty .researcher {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.obszary-terapeutyczne-projekty .researcher a {
    color: #000;
    text-decoration: unset;
}

.obszary-terapeutyczne-osoby .item-list ul li {
    padding: 15px;
}

.obszary-terapeutyczne-osoby .item-list ul li>div {
    display: flex;
    align-items: center;
    gap: 30px;
}

.obszary-terapeutyczne-osoby .item-list ul li img {
    border-radius: 50px;
    border: 1.5px solid var(--color-blue);
}

.obszary-terapeutyczne-osoby .tab-group p {
    margin: 0;
}

.projekt-badacze a {
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    /* text-decoration-color: var(--color-blue);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px; */
}

.projekt-badacze a::before {
    content: '';
    background-color: var(--color-blue);
    opacity: 0.75;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.projekt-badacze a:hover::before {
    bottom: 0;
    height: 100%;
}

.page-node-type-projekt .item-list {
    display: flex;
    gap: 15px;
}

/* ----------- Osoba strona ----------- */

.node--type-osoba.node--view-mode-full .view-obszary-lista {
    margin-bottom: 2em;
}
.node--type-osoba.node--view-mode-full .header-group {
    display: flow-root;
}
.node--type-osoba.node--view-mode-full .header-group img {
    border-radius: 150px;
    border: 1.5px solid var(--color-blue);
    width: 220px;
    height: auto;
    float: left;
    margin-right: 2em;
}

.node--type-osoba.node--view-mode-full .view-obszary-lista .field-label-above {
    line-height: 2;
    margin: 1em 0 0.5em;
}

.node--type-osoba.node--view-mode-full .view-obszary-lista .item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badacz-projekty__list {
    margin: unset;
    border: unset;
    border-radius: unset;
    overflow: unset;
}

.badacz-projekty__item:last-child {
    border: 1.5px solid var(--color-blue);
}

.badacz-projekty__link {
    font-size: 20px;
    line-height: 30px;
    color: var(--color-dark-blue);
    font-weight: 500;
}

/* ----------- Kontakt ----------- */

.contact .block-one {
    position: relative;
}

.contact .block-one h2 {
    color: var(--color-white);
}

.contact .block-one h2::after {
    display: none;
}

.contact .text-group-inner .col-one {
    padding-right: 8em;
}

.contact .bg-image .field--type-image::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: var(--color-dark-blue);
    opacity: 0.85;
    border-radius: 30px;
}

.contact .bg-image>div {
    position: unset;
}

.contact .bg-image .field--type-image img {
    border-radius: 30px;
}

.contact .bg-image .field--name-field-media-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.contact .bg-image .field--name-field-media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact .bg-image .text-group {
    position: relative;
    z-index: 1;
    padding: 3em;
    color: #fff;
}

.contact .bg-image .text-group-inner {
    display: flex;
    flex-wrap: wrap;
}

.contact .block-one .col-three>.row {
    justify-content: center;
    margin-top: 3em;
}

.contact .block-one .col-three .form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3em;
}

.contact .block-one .col-three .form-links a {
    background: #fff;
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 150px;
    color: var(--color-dark-blue);
    font-size: 22px;
    font-weight: 600;
    text-decoration: unset;
    position: relative;
    transition: all 0.3s ease;
}

.contact .block-one .col-three .form-links a::after {
    content: "";
    position: absolute;
    bottom: 90px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-dark-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contact .block-one .col-three .form-links a:hover {
    background: var(--color-blue);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact .block-one .col-three .form-links a:hover::after {
    width: 60%;
}

.contact .block-two h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
    margin-top: 1em;
}

.contact .block-two {
    padding-left: 8em;
    padding-right: 8em;
}

.contact .faq h3 {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    color: var(--color-dark-blue);
    background-color: var(--color-light-blue);
    border-radius: 10px;
    border: 1px solid #E6D9FE;
    padding: 15px 50px;
    line-height: 1.5;
}

.contact .faq h3 span {
    display: none;
}

.contact .faq h3:not(.ui-state-active),
.faq .ui-accordion-content-active {
    margin-bottom: 1.5em;
}

.contact .faq h3.ui-state-active {
    background: unset;
    border: 1.5px solid #3875FC;
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq .ui-accordion-content-active {
    border: 1.5px solid #3875FC;
    border-top: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 10px 50px 0;
}

.contact .block-three .paragraph--type--zdjecie-tekst {
    padding: initial;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 1.5em;
}
.contact .block-three .col-two {
    padding-left: 4em;
}
.contact .block-ucwbk-socialmedia .content ul {
    margin-top: 10px;
}

.contact .block-ucwbk-socialmedia .content ul li {
    border: 2.5px solid var(--color-blue);
    width: 50px;
    height: 50px;
}

.contact .block-ucwbk-socialmedia .content ul li a {
    color: var(--color-blue);
}

/* ----------- Stopka ----------- */

.region-featured-bottom-third {
    margin-top: 2em;
}

.region-featured-bottom-third .field--name-field-media-image .field__item {
    text-align: center;
}

.site-footer {
    background: var(--color-dark-blue) !important;
    margin-top: 1em;
    padding-bottom: 0;
}

.site-footer__bottom {
    border: none;
}

.site-footer .content {
    color: var(--color-white);
    font-size: 16px;
}

.site-footer .block {
    margin: 0;
    border: unset;
    border-color: unset;
    padding: 0;
}

.site-footer .region-footer-third .block {
    margin-top: 1em;
}

.region-footer-third>nav,
.region-footer-fourth>div {
    display: flex;
    justify-content: flex-end;
}

.region-footer-third>nav li a {
    font-size: 16px;
    font-weight: 400;
    padding: 0;
}

.region-footer-third>nav .nav-link.active {
    text-decoration: unset;
}

.region-footer-fifth {
    border-top: 1px solid #fff;
    padding-top: 1em;
}

.copyright .node--type-strona .container-xl {
    display: flex;
    justify-content: space-between;
}

.copyright .node--type-strona .container-xl p:nth-of-type(2) {
    display: flex;
    gap: 10px;
}

.copyright .node--type-strona .container-xl p a {
    color: #fff;
    text-decoration: unset;
}

.copyright .node--type-strona .container-xl p a:hover {
    text-decoration: underline;
}

/* ----------- Mobile footer ----------- */

@media only screen and (min-width: 768px) {
    footer .container-fluid {
        max-width: 720px;
    }
}

@media only screen and (min-width: 992px) {
    footer .container-fluid {
        max-width: 960px;
    }
}

@media only screen and (min-width: 1200px) {
    footer .container-fluid {
        max-width: 1140px;
    }
}

@media only screen and (min-width: 1500px) {
    footer .container-fluid {
        max-width: 1460px !important;
    }
}

/* ----------- Mobile ----------- */

@media only screen and (min-width: 1500px) {
    .container-xl {
        max-width: 1460px !important;
    }
}


@media only screen and (max-width: 1200px) {
    .about.block-four {
        margin-bottom: 3em;
    }

    .obszary.bg-image .field--name-body {
        max-width: 500px;
    }
    .contact .block-two {
    padding: 0;
    }
    .taxonomy-term--type-obszary-terapeutyczne .field--type-text-long .align-right img {
    margin-left: 2em;
    margin-bottom: 2em;
    max-width: 500px;
    }
}



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

    .mobile {
        display: none;
    }

    .page-node-type-story p,
.page-node-type-sttrona p {
    max-width: 80%;
}

    .home-block-second>.title {
        padding-left: 5%;
    }

    .text-left .col-one {
        order: 2;
    }

    .text-right.paragraph--type--zdjecie-tekst .col-two {
        padding-left: 3em;
        padding-right: 12px;
    }

    .text-left.paragraph--type--zdjecie-tekst .col-two {
        padding-left: 12px;
        padding-right: 4em;
    }

    .team .block-two {
        padding: 0 10em 0 7em;
    }
}

@media only screen and (max-width: 992px) {
    body:not(.path-frontpage) .layout-main-wrapper {
        margin-top: 2em;
    }

    body:not(.path-frontpage) .paragraph--type--zdjecie-tekst {
        padding: 2em 0;
    }

    .paragraph--type--zdjecie-tekst .col-two {
        padding-top: 1em;
    }

    .text-blue,
    .home-block-third .col-one ul,
    .home-block-third .col-two p {
        max-width: unset;
    }
    .page-node-type-story #block-ucwbk-content img,
    .page-node-type-story #block-ucwbk-content .media-embed-resized {
            max-width: 100%;
        height: auto;
    }

    .block-ucwbk-socialmedia .fa-brands {
        font-size: 1.1rem;
    }

    .path-frontpage .banner.bg-image .field--name-field-media-image::after {
        max-height: 370px;
    }

    .home-block-second.bg-image {
        margin-top: 0em;
        margin-bottom: 3em;
    }

    .home-block-third .paragraph--type--zdjecie-tekst .col-two {
        padding-top: 0;
    }

    .home-block-five .col-two {
        margin-top: 4em;
    }

    .sm-home {
        width: 100%;
    }

    .sm-home p {
        color: var(--color-dark-blue);
    }

    .sm-home ul {
        display: flex;
        gap: 20px;
        padding-left: 0;
        flex-wrap: wrap;
    }

    #main .content .sm-home ul li {
        width: 48%;
    }

    .home-block-five::before {
        height: 40%;
        width: 40%;
        bottom: -45px;
    }

    .about.bg-image .field--type-image {
        position: absolute;
        height: 100%;
    }

    .about.bg-image .field--type-image div {
        height: 100%;
    }

    .about.bg-image .field--type-image img {
        height: 100%;
    }

    .about.bg-image .title {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
        padding-top: 1em;
        padding-bottom: 1em;
    }
    .obszary-lista {
        margin-bottom: 2em;
    }
    .obszary.bg-image>.title {
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .obszary.bg-image .title .title {
        margin-bottom: 20px;
    }

    .obszary.bg-image .field--name-body {
        max-width: 100%;
    }

    .obszary.bg-image .field--type-link {
        margin-left: auto;
        display: flex;
    }
    .news-view.all .bef-links ul {
        margin-top: 1em;
    }
        .page-node-type-story #block-ucwbk-content img, .page-node-type-story #block-ucwbk-content .media-embed-resized {
        width: 100% !important;
        margin-right: 0;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .taxonomy-term--type-obszary-terapeutyczne .field--type-text-long .align-right img {
        margin-left: 0;
        margin-bottom: 2em;
        max-width: 100%;
    }
    .contact .block-one .col-three .form-links a {
    width: 175px;
    height: 175px;
    }
    .contact .block-three .col-two {
        padding-top: 2em;
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
    .region-footer-third>nav,
    .region-footer-fourth>div {
        justify-content: flex-start;
    }

    .copyright .node--type-strona .container-xl {
        flex-direction: column;
    }
}

@media only screen and (max-width: 767px) {

    .container,
    .container-sm {
        max-width: 100%;
    }

    h1 {
        font-size: 32px;
        line-height: 40px;
    }

    h2 {
        font-size: 28px;
        line-height: 35px;
    }

    .bg-image {
        margin-left: -3px;
        margin-right: -3px;
    }

    .main-content ol,
    .main-content ol>ul {
        padding-left: 1rem;
    }

    .main-content ol,
    .main-content ul {
        margin-top: 10px;
    }
     .block-ucwbk-socialmedia ul {
        margin-top: 2px;
    }
    .block-ucwbk-socialmedia .content ul li.contact-item {
        margin-left: 0;
    }
    .path-frontpage .bg-light {
        margin-bottom: 4em;
    }
    .path-frontpage .bg-image.home-block-second .subtitle br {
        display: none;
    }

    .path-frontpage .banner.bg-image .field--name-field-media-image::after {
        top: 0;
        max-height: 335px;
    }
    .obszary.bg-image>.title {
    gap: 45px;
    }  
    .bg-image .title .title {
        font-size: 46px;
    }
      .bg-image .subtitle {
        font-size: 26px;
        line-height: 32px;
    }
    .bg-image .field--type-link a {
        font-size: 18px;
            padding: 5px 25px;
    }
    .home-block-five .col-one {
        margin-bottom: 3em;
    }

    #main .content .sm-home ul li {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .about .paragraph--type--liczby {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .paragraph--type--liczby .field--name-field-tresc {
        padding-right: 0;
    }

    .about .block-second .paragraph:nth-of-type(2) .col-one>div::before,
    .about.block-four .paragraph:nth-of-type(1) .col-one>div::before {
        display: none;
    }
    .obszary-terapeutyczne-projekty .researcher {
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
    margin-top: 15px;
    }
    .node--type-osoba.node--view-mode-full .header-group {
        margin-top: 2em;
    }
    .news-view.all .bef-links ul {
        gap: 10px;
    }
        .news-view.all .bef-links ul li a {
        padding: 6px 25px;
    }
    .contact .block-one .col-three .form-links a {
        width: 140px;
        height: 135px;
        font-size: 20px;
    }
}

@media only screen and (max-width: 575px) {

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        padding-right: 15px;
        padding-left: 15px;
    }
    .path-frontpage .banner.bg-image .title {
    top: 70%;
}

    .home-block-third .col-two .col-one .field__item,
    .home-block-third .col-two .col-two .field--name-field-tresc {
        text-align: center;
    }

    .bg-light {
        padding: 4em 0;
    }
    .bg-image .subtitle br {
        display: none;
    }
    .path-frontpage .banner.bg-image .field--name-field-media-image::after {
        height: 40vh;
    }

    .home-block-five .col-two {
        margin-top: 0em;
    }

    .home-block-five::before {
        width: 55%;
    }

    .sm-home ul {
        display: flex;
        gap: 0px;
        padding-left: 0;
        flex-wrap: wrap;
        align-items: center;
    }

    #main .content .sm-home ul li {
        width: 100%;
        flex-direction: unset;
    }
    .news-view.all .bef-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .news-view.all .bef-links ul li:first-child {
            width: 100%;
    text-align: center;
    margin-bottom: 15px;
    }
    .team-group img {
        width: 145px;
        height: 165px;
    }
    .node--type-osoba.node--view-mode-full .header-group {
            display: flex;
    flex-direction: column;
    }
    .contact .text-group-inner .col-one {
        padding-right: 0;
    }
    .contact .bg-image .text-group {
    padding: 3em 2em;
}
    .contact .block-one .col-three>.row {
    margin-top: 2em;
}
    .contact .block-one .col-three .form-links {
    margin-bottom: 2em;
    width: auto;
}
    .contact .block-one .col-three .form-links a {
    width: auto;
    height: auto;
    font-size: 20px;
    padding: 6px 25px;
}
    .faq .ui-accordion-content-active {
        padding-top: 0;
    }
}

@media only screen and (max-width: 480px) {
    .title:not(h1) {
    font-size: 18px;
    line-height: 24px;
}
.page-node-type-projekt h1 {
        font-size: 24px;
    line-height: 30px;
}

.path-frontpage .banner.bg-image .field--name-field-media-image::after {
    height: 35vh;
    top: 45px;
}
    .paragraph--view-mode--bg-image-text-link .text-group {
        top: 63%;
        left: 27%;
        transform: translate(-19%, -50%);
        height: 224px;
    }

    .home-block-second.bg-image img {
        height: 400px;
    }
  .home-block-third .row > .col-two {
        margin-bottom: 0 !important;
    }
    .team .team-item img {
        height: 140px;
    }
    .badania-view__toggle {
        gap: 10px;
        margin-bottom: 2rem !important;
    }
    .view-obszary-terapeutyczne-projekty-osoby .item-list ul li, .badacz-projekty__item {
        padding: 15px;
    }
    .komercyjne::before, .niekomercyjne::before {
        top: 5px;
        left: 0px;
        position: relative;
        float: left;
        margin-right: 15px;
        margin-bottom: 8px;
    }
    .bg-image .field--type-link a {
    font-size: 16px;
    }
    .team-group {
    flex-direction: column;
    }
     .team-group .col-two {
        text-align: center;
    }
    .team-position {
        margin: 5px 0;
    }
    .node--type-osoba.node--view-mode-full .header-group img {
        width: 175px;
    }
    .contact .faq h3, .faq .ui-accordion-content-active {
        padding: 15px;
    }
}

@media only screen and (max-width: 400px) {
    #navbar-top .logo svg {
        max-width: 170px;
    }
.path-frontpage .banner.bg-image .field--name-field-media-image::after {
    top: 10px;
}
.path-frontpage .banner.bg-image .title {
    top: 65%;
}
.path-frontpage .bg-image .subtitle {
    font-size: 20px;
    line-height: 28px;
}
.path-frontpage .bg-image h1 {
        font-size: 30px;
    line-height: 36px;
}
    .bg-light {
        padding: 3em 0;
    }

    #main .content .sm-home ul li {
        text-align: start;
        justify-content: flex-start;
    }

    .paragraph--view-mode--bg-image-text-link .text-group {
        left: 16%;
        transform: translate(-10%, -50%);
        height: 224px;
    }

    .home-block-five .col-two {
        margin-top: 2em;
        margin-bottom: -4em;
    }
    .obszary-terapeutyczne-osoby .item-list ul li>div {
        gap: 15px;
        flex-direction: column;
    }
    .home-block-five::before {
        width: 80%;
        height: 35%;
        bottom: -50px;
        border-radius: 350px 0 0 350px;
    }
    .badania-view__toggle button {
        padding: 7px 25px;
    }
    .news-view.all .bef-links ul li a {
        padding: 6px 13px;
    }  
    .contact .block-three .paragraph--type--zdjecie-tekst {
        align-items: flex-start;
    }
}