.team-section {
    padding-block: 46px;
    position: relative;
}

@media (min-width: 767.8px) {
    .team-section {
        padding-block: 100px;
    }
}

.team-section__text-wrapper {
    margin-bottom: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.team-section__text-wrapper .text-content {
    max-width: 830px;
    width: 100%;
    margin-inline: auto;
}

.team-section__text-wrapper p {
    text-align: center;
    margin-bottom: 24px;
}

.team-section__text-wrapper p:last-of-type {
    margin-bottom: 0;
}

.team-section__members-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
}

.team-section__members-wrapper .members-row {
    width: 100%;
    flex-basis: 100%;
}

.team-section__members-wrapper .members-row h3 {
    text-align: left;
}

.team-section__members-wrapper .swiper-wrapper {
    display: flex;
    row-gap: 0;
}

.team-section__members-wrapper .teamSwiper-no-slider .swiper-wrapper {
    flex-wrap: wrap;
}
@media (min-width: 480.8px) {
    .team-section__members-wrapper .teamSwiper-no-slider .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 32px;
        width: 100% !important;
    }
}

@media (min-width: 767.8px) {
    .team-section__members-wrapper .swiper-wrapper,
    .team-section__members-wrapper .teamSwiper-no-slider .swiper-wrapper{
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 32px;
        width: 100% !important;
    }
}

@media (min-width: 1140px) {
    .team-section__members-wrapper .swiper-wrapper,
    .team-section__members-wrapper .teamSwiper-no-slider .swiper-wrapper{
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-section__members-wrapper .swiper-wrapper .swiper-slide {
    margin-left: 7px;
}

@media (min-width: 767.8px) {
    .team-section__members-wrapper .swiper-wrapper .swiper-slide {
        /*width: calc(50% - 30px);
        */
        /*flex-basis: calc(50% - 30px);
        */
        /*padding-inline: 15px;
        */
        width: auto !important;
        margin: 0 !important;
        padding-right: 5px;
    }
}

.team-section__members-wrapper .swiper-slide .member-link {
    text-decoration: none;
}

.team-section__members-wrapper .swiper-slide .member-link .swiper-inner {
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin: 12px auto;
    -webkit-box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-basis: 100%;
    padding: 12px;
    width: 100%;
    max-width: 290px;
    @media screen and (min-width: 767.8px) {
        margin: 32px auto;
    }
}

.team-section__members-wrapper .swiper-inner .member-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--orange-900);
    transition: 0.4s all;
}

.team-section__members-wrapper .swiper-inner .member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s all;
}

.team-section__members-wrapper .swiper-inner .member-bottom {
    position: relative;
    margin-top: auto;
    background-color: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.team-section__members-wrapper .member-bottom .member-info {
    flex: 1;
}

.team-section__members-wrapper .member-bottom .arrow {
    width: 32px;
    flex-basis: 32px;
    height: 32px;
    border-radius: 50%;
    transition: 0.4s all;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.team-section__members-wrapper .member-bottom .arrow .icon {
    mask: url('./images/arrow-right.svg') no-repeat center;
    -webkit-mask: url('./images/arrow-right.svg') no-repeat center;
    background-color: var(--orange-200);
    width: 16px;
    height: 16px;
    display: block;
    transition: 0.4s all;
}

.team-section__members-wrapper .member-bottom .member-name {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--black);
}

.team-section__members-wrapper .member-bottom .member-position {
    font-size: 16px;
    line-height: 18px;
    font-weight: 500;
    color: var(--black);
}

.team-section .swiper-wrapper .swiper-slide .member-link:hover .member-image img {
    transform: scale(1.05);
}

.team-section .swiper-wrapper .swiper-slide .member-link:hover .member-bottom .arrow {
    background-color: var(--orange-200);
}

.team-section .swiper-wrapper .swiper-slide .member-link:hover .member-bottom .arrow .icon {
    background-color: var(--white);
}

.team-section .member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, .17);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.team-section .member-modal .modal-wrapper {
    background: rgba(255, 255, 255, 0);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    width: 555px;
    max-width: 100%;
    padding: 20px;
}

.team-section .member-modal .modal-inner {
    width: 555px;
    max-width: 100%;
    margin-inline: auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--white);
    padding: 16px 12px;
    background-image: url("./images/popup-bg.svg");
    background-position-x: center;
    background-position-y: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    height: calc(100vh - 60px);
}

@media (min-width: 767.8px) {
    .team-section .member-modal .modal-inner {
        padding: 32px 24px;
        height: 670px;
    }
}

.team-section .member-modal .modal-inner .modal-top .close {
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0);
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.team-section .member-modal .modal-inner .modal-top .close:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "\274c";
    font-size: 16px;
    color: #353e50;
    line-height: 20px;
    text-align: center;
}

.team-section .member-modal .modal-inner .member-image {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: auto;
    margin: 0 auto 12px auto;
}

@media (min-width: 767.8px) {
    .team-section .member-modal .modal-inner .member-image {
        width: 240px;
        height: 195px;
    }
}

.team-section .member-modal .modal-inner .member-image .image-holder {
    width: 100%;
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 767.8px) {
    .team-section .member-modal .modal-inner .member-image .image-holder {
        max-width: 195px;
        height: 195px;
    }
}

.team-section .member-modal .modal-inner .member-image .image-holder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    /*object-fit: cover;*/
}

.team-section .member-modal .modal-inner .member-image:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./images/dots.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
}

.team-section .member-modal .modal-inner .member-info {
    margin-bottom: 12px;
}

.team-section .member-modal .modal-inner .member-info h6 {
    font-size: 20px;
    color: var(--black);
    text-align: center;
}

.team-section .member-modal .modal-inner .member-info p {
    color: #a3a3a3;
    font-size: 16px;
    text-align: center;
}

.team-section .member-modal .modal-inner .member-text {
    position: relative;
    overflow-y: scroll;
    min-height: 100px;
    background-color: #fafafa;
    border-radius: 20px;
    padding: 24px;
    /*-ms-overflow-style: none;
     !* Internet Explorer and Edge *!*/
    /*scrollbar-width: none;
     !* Firefox *!*/
    /* Hide the scrollbar for Chrome, Safari and Opera */
}

.team-section .member-modal .modal-inner .member-text p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 16px;
}

.team-section .member-modal .modal-inner .member-text p.former-text {
    font-weight: 600;
}

.team-section .member-modal .modal-inner .member-text p.question {
    font-weight: 600;
    margin-bottom: 5px;
}

.team-section .member-modal .modal-inner .member-text::-webkit-scrollbar {
    width: 10px;
    /* Adjust width as needed */
    height: 10px;
    border-radius: 30px;
    padding-block: 30px;
}

.team-section .member-modal .modal-inner .member-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
    /* Track color */
    border-radius: 10px;
    /* Rounded track */
    height: 20px;
    top: 5%;
    border: none;
}

.team-section .member-modal .modal-inner .member-text::-webkit-scrollbar-thumb {
    background: var(--green-500);
    /* Scrollbar thumb color */
    border-radius: 10px;
    /* Rounded scrollbar */
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    height: 10px;
}

.team-section .member-modal .modal-inner .member-text::-webkit-scrollbar-thumb:hover {
    background: var(--orange-200);
    /* Darker blue on hover */
}

.team-section .member-modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 999;
}

.team-section .member-modal.show .modal-wrapper {
    transform: translateY(0);
}
 