.team-members2-element .team-member-item {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 385px;
}

.team-members2-element .item-content {
    position: relative;
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    gap: 15px;
    height: 100%;
}

.team-members2-element .item-content .item-title {
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
}

.team-members2-element .item-content .item-subtitle {
    font-size: 15px;
    color: #ffd342;
}

.team-members2-element .item-socials {
    margin-top: 5px;
    display: none;
}

.team-members2-element .team-member-item:hover .item-socials {
    display: block;
}

.team-members2-element .item-socials a {
    font-size: 22px;
    margin-left: 5px;
    color: #fff;
}

.team-members2-element .item-excerpt p {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
}

.team-members2-element .item-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    background-image: linear-gradient(165deg, rgba(0, 0, 0, 0.0) 60%, rgba(255, 211, 66, 0.44));
}

.team-members2-element .item-overlay:after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    transition: all .2s;
}

.team-members2-element .team-member-item:hover .item-overlay:after {
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scale(1.3);
}

.team-members2-element .item-head {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 15px;
    transition: all .2s;
}

.team-members2-element .team-member-item:hover .item-head {
    top: 0;
    bottom: auto;
}

.team-members2-element .item-bottom {
    width: 100%;
    position: absolute;
    bottom: -60%;
    padding: 15px;
    transition: all .2s;
    opacity: 0;
    pointer-events: none;
}

.team-members2-element .team-member-item:hover .item-bottom {
    bottom: 0;
    opacity: 1;
    pointer-events: all;
}

.team-members2-element .swiper-pagination {
    max-width: 50%;
    margin: 2rem  auto 0 auto;
    border-radius: 50px;
    height: 6px;
    text-align: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.team-members2-element .swiper-pagination .swiper-pagination-progressbar-fill {
    background-color: #ffd342;
}
