.team--homepage {
    padding: 48px 0;
}

.team {
    background: #f9fafb;
}

.team__card,
.team__image {
    width: 100%;
}

.team__content {
    text-align: center;
}

.team__content-bottom {
    padding: 20px 2px 0;
}

.team__content h2 {
    padding-bottom: 3px;
}

.team-slider-nav {
    display: flex;
    max-width: 88px;
    justify-content: space-between;
    margin: 32px auto 0;
}

.team-slider-nav.js__team-slider-nav .slick-arrow {
    position: relative;
    left: auto;
    right: auto;
}

@media (min-width: 768px) {
    .team__content {
        text-align: left;
        display: flex;
    }
    .team__content-bottom {
        padding: 0 0 0 58px;
        width: calc(100% - 232px);
    }
    .team__content-top {
        width: 232px;
    }
    .team--homepage {
        padding: 64px 0;
    }
}

@media (min-width: 1200px) {
    .team--homepage {
        padding: 96px 0 0 0;
    }
    .team {
        background-color: #ffffff;
    }
    .team__content {
        display: block;
        width: 359px;
        text-align: center;
    }
    .team__content-top {
        width: 100%;
    }
    .team__content-bottom {
        padding: 0;
        width: calc(100%);
    }
    .team__wrap {
        display: flex;
        align-items: center;
    }
    .team__right {
        width: calc(100% - 359px);
        padding-left: 65px;
    }
    .team-item {
        width: 283px !important;
        height: 369px;
        margin: 0 17px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.11);
    }
    .js-team-slider .slick-list {
        width: 1220px;
        padding: 15px 0;
        margin-left: -17px;
    }
    .js-team-slider .slick-prev {
        left: -286px;
        bottom: 48px;
    }
    .js-team-slider .slick-next {
        left: -238px;
        bottom: 48px;
    }
    .team__card {
        position: relative;
        display: inline-block;
        overflow: hidden;
    }
    .team__card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(25, 40, 70, 0.3981793400954131) 0%, rgba(25, 40, 70, 0) 100%);
        z-index: 1;
    }
    .team__image {
        height: 369px;
    }
    .team__info {
        position: absolute;
        top: calc(100% - 52px);
        left: 0;
        width: 100%;
        padding: 30px;
        padding-top: 0;
        height: max-content;
        z-index: 2;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease-in-out;
        justify-content: end;
    }
    .team__info .btn {
        width: max-content;
        color: #ffffff;
        font-size: 16px;
        opacity: 0;
    }
    .team__info .btn::after {
        color: #fff;
    }
    .team__card:hover .team__info .btn {
        opacity: 1;
    }
    .team__info h4 {
        font-size: 20px;
        color: #ffffff;
        padding: 0 0;
    }
    .team__info p {
        font-size: 16px;
        color: #ffffff;
        line-height: 1.375em;
        font-weight: 400;
        padding: 8px 0 16px;
        opacity: 0;
    }
    .team__card:hover .team__info {
        top: 0px;
        padding: 30px;
        padding-top: 30px;
        height: 100%;
        background: transparent linear-gradient(180deg, #192846 0%, #081633 100%) 0% 0% no-repeat padding-box;
        opacity: 0.8;
        /* background: rgb(25, 40, 70);
    background: linear-gradient(
      306deg,
      rgba(25, 40, 70, 0.57) 0%,
      rgba(21, 147, 255, 0.57) 100%
    ); */
    }
    .team__card:hover .team__info p {
        opacity: 1;
    }
    .team__card:hover::before {
        display: none;
    }
}

@media (min-width: 1920px) {
    .team__content {
        width: 576px;
        padding: 0 26px;
    }
    .team__right {
        width: calc(100% - 576px);
        padding-left: 32px;
    }
    .team-item {
        width: 271px !important;
        height: 354px;
    }
    .team__info {
        bottom: -96px;
    }
    .js-team-slider .slick-next {
        left: -314px;
        bottom: 16px;
    }
    .js-team-slider .slick-prev {
        left: -363px;
        bottom: 16px;
    }
}


/* Team Grid */

.team-grid .section__content {
    text-align: center;
}

.team-grid .team-grid__item+.team-grid__item {
    margin-top: 30px;
}

.team-grid .team-grid__image {
    border-radius: 100%;
    height: 160px;
    max-width: 160px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: hidden;
}

.team-grid .team-grid__card {
    text-decoration: none;
}

.team-grid .team-grid__info {
    text-align: center;
}

.team-grid .team-grid__info h4 {
    color: var(--darkblue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-grid .team-grid__info p {
    color: var(--blue);
    font-size: 14px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .team-grid .team-grid__item+.team-grid__item {
        margin-top: 0;
    }
    .team-grid .team-grid__item:nth-child(n+3) {
        margin-top: 30px;
    }
}

@media (min-width: 1025px) {
    .team-grid .team-grid__item:nth-child(n+3) {
        margin-top: 0;
    }
    .team-grid .team-grid__item:nth-child(n+4) {
        margin-top: 30px;
    }
    .team-grid .team-grid__info h4 {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .team-grid .section__content {
        text-align: left;
    }
    .team-grid .team-grid__item:nth-child(n+4) {
        margin-top: 0;
    }
    .team-grid .team-grid__item:nth-child(n+5) {
        margin-top: 30px;
    }
}

@media (min-width: 1200px) {
    .js-team-slider:not(.slick-initialized) {
        display: flex;
    }
    .js-team-slider:not(.slick-initialized) .fx-slide {
        display: block;
        width: 33.33% !important;
    }
}

@media (min-width: 1920px) {
    .team-count-4 .slick-arrow,
    .team-count-3 .slick-arrow,
    .team-count-2 .slick-arrow,
    .team-count-1 .slick-arrow,
    .team-count-0 .slick-arrow {
        display: none !important;
    }
}