.about-teams h3 {
    line-height: 100%;
    color: #001B29;
    text-align: center;
}
.about-teams-bock {
    padding-top: 40px;
    display: flex;
    align-items: start;
    gap: 40px 21px;
    flex-wrap: wrap;
    perspective: 1200px;
}
.team-card {
    width: 32.2%;
    transform: translateZ(0); /* prevents subpixel flicker */
}
.team-info {
    text-align: center;
}
.team-info h4 {
    color: #1A94CF;
    margin-bottom: 5px;
}
.team-info h5 {
    color: #808284;
    font-weight: 400;
    line-height: 100%;
}
.team-content {
    background: #1A94CF;
    border-radius: 2px;
    padding: 20px;
    transform: rotateY(180deg);
    z-index: 1;
    overflow-y: auto !important;
}

.team-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.team-content h4 {
    color: #fff;
    margin-bottom: 5px;
}
.team-content h5 {
    color: #fff;
    line-height: 100%;
    margin-bottom: 20px;
    font-weight: 400;
}
.team-content p {
    color: #fff;
}

.team-content ul li,
.team-content ol li {
    color: #fff;
}


.team-card-member {
    margin-bottom: 20px;
    position: relative;
    min-height: 430px;
    transform-style: preserve-3d; /* Crucial for 3D effect */
    transition: transform 0.6s ease-in-out;
}

.page-id-45 .team-card-member {
    min-height: 300px;
    width: 300px;
}
.page-id-45 .about-teams-bock {
    gap: 40px 50px;
    justify-content: center;
}
.page-id-45 .team-card {
    width: 23.438%;
}
.about-teams-bock .team-card {
    perspective: 1000px;
    cursor: pointer;
}




.team-img,
.team-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* For Safari */
  border-radius: 8px; /* Match your design */
    overflow: hidden;
}
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}
.team-card:hover .team-card-member {
    transform: rotateY(180deg);
}
.about-teams {
    margin-bottom: 80px;
}
.about-teams:last-child {
    margin-bottom: 0;
}




.team-card-member:hover {
    transform: rotateY(180deg);
  }

@media only screen and (max-width: 1399px){
    .team-card {
        width: 32%;
    }
}

@media only screen and (max-width: 1199px){
    .team-card {
        width: 48.8%;
    }
}
  
@media only screen and (max-width: 991px){
    .team-info h5{
        font-size: 14px;
    }
    .team-card {
        width: 48.4%;
    }

  
}


  
  
@media only screen and (max-width: 767px){
    .about-teams {
        margin-bottom: 40px;
    }
    .about-teams-bock {
        flex-direction: column;
    }
    .team-card {
        width: 100%;
    }

    .page-id-45 .team-card {
        width: 100%;
    }
    .page-id-45 .team-card-member {
        margin: 0 auto 20px;
    }
}



.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    transform: translateZ(0);
}
.team-card-member:hover {
    transform: rotateY(180deg);
}
.about-teams {
    margin-bottom: 80px;
}
.about-teams:last-child {
    margin-bottom: 0;
}




.team-card-member:hover {
    transform: rotateY(180deg) translateZ(0); /* fixed */
}

@media only screen and (max-width: 1399px){
    .team-card {
        width: 32%;
    }
    .page-id-45 .team-card {
        width: 27.438%;
    }
}

@media only screen and (max-width: 1199px){
    .team-card {
        width: 48.8%;
    }
    .page-id-45 .team-card {
        width: 33%;
    }
}
  
@media only screen and (max-width: 991px){
    .team-info h5{
        font-size: 14px;
    }
    .team-card {
        width: 48.4%;
    }

    .page-id-45 .team-card {
        width: 46.3%;
    }
}


  
  
@media only screen and (max-width: 767px){
    .about-teams {
        margin-bottom: 40px;
    }
    .about-teams-bock {
        flex-direction: column;
    }
    .team-card {
        width: 100%;
    }
    .page-id-45 .team-card {
        width: 100%;
    }
}

@media only screen and (max-width: 374px){
    .team-card-member {
        min-height: 500px;
    }
    .page-id-45 .team-card-member {
        min-height: 250px;
        width: 250px;
    }
    
}