
.ourTeam__header {
    margin-top: 10vh;
    margin-bottom: 6.5vh;
}

.ourTeam__cards > div {
    margin-bottom: 20px;
}

.ourTeam__card {
    position: relative;
    background-image: url("../imgs/mainpage/ourTeam/ourTeam__card_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 15px;
    margin: 0 10px;
    height: 100%;

    display: flex;
    flex-direction: column;
    order: 0;

    transition: all 0.3s ease;
}
.ourTeam__card:hover {
    transform: scale(1.05);
}

.ourTeam__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 4px;
    background: linear-gradient(
            120deg,
            rgba(251, 231, 142, 0.2) 0%,
            rgba(46, 43, 35, 1) 22%,
            rgba(11, 12, 16, 1) 75%,
            rgba(251, 231, 142, 0.2) 99%
    );
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}


.ourTeam__card_BG_filter {
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.79);
    width: 100%;
    height: 100%;
}

.ourTeam__card_content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;
}

.ourTeam__card_header {
    font-weight: 600;
    padding-top: 30px;
}

.ourTeam__card_text_wrapper {
    text-align: center;
    padding: 0 12%;
    margin: 15px 0 0 0;
}

.ourTeam__card_text_wrapper p {
    font-size: 16px;
    margin-bottom: 10px;
}

.ourTeam__card_img_wrapper {
    flex-grow: 1;
    display: flex;
}
.ourTeam__card_img_wrapper.second {
    align-items: center;
}
.ourTeam__card_img_wrapper.third {
    padding-bottom: 2px;
}

.ourTeam__card.for-tablet {
    display: none;
}

@media (max-width: 1199px) {
    .ourTeam__card_header {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .ourTeam__card.no-tablet {
        display: none;
    }
    .ourTeam__card.for-tablet {
        display: flex;
    }
    .ourTeam__card.for-tablet.investment-club {
        margin: 0 25%;
    }
    .ourTeam__card.for-tablet.investment-club .ourTeam__card_img_wrapper {
        padding: 70px 0;
    }
}

@media (max-width: 767px) {
    .ourTeam__card.no-tablet {
        display: flex;
    }
    .ourTeam__card.for-tablet {
        display: none;
    }

    .ourTeam__card {
        margin: 0 10vw;
    }

    .ourTeam__card_img_wrapper.second {
        padding: 35px 0;
    }
}
@media (max-width: 575px) {
    .ourTeam__header {
        font-size: 22px;
    }

    .ourTeam__card {
        margin: 0 20vw;
    }
    .ourTeam__card_img_wrapper.second {
        padding: 15px 0;
    }
    .ourTeam__card_img_wrapper img {
        height: 150px;
    }
    .ourTeam__card_img_wrapper.second img {
        height: 120px;
    }
    .ourTeam__card_header {
        font-size: 12px;
    }
    .ourTeam__card_text_wrapper p {
        font-size: 10px;
        margin-bottom: 2px;
    }
}

@media (max-width: 355px) {
    .ourTeam__card_header {
        font-size: 11px;
    }
}


