.sr-cards-team-03 .team-card {
  color: rgb(0, 0, 0) !important;
  background-color: #fff;
  position: relative;
  width: 100%;
  border: solid 1px;
  border-color: #e5e7ea;
  text-align: center;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}



.sr-cards-team-03 .team-column {
  margin-top: 78px;
}

.sr-cards-team-03 .team-card .card-user-img {
  width: 100%;
  height: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 100%;
}

.sr-cards-team-03 .card-text-wrapper .card-title {
  font-weight: 600;
  line-height: 1.563rem;
  margin-bottom: 0.625rem;
  font-size: 35px;
  color: rgb(0, 0, 0) !important;
}

.sr-cards-team-03 .card-text-wrapper .card-text {
  color: rgb(0, 0, 0) !important;
}

.sr-cards-team-03 .team-card .card-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/*   transform: translateY(101%);
  transition: 0.3s all; */
  pointer-events: none; /* Disable pointer events */
  display: none;
  
}

.sr-cards-team-03 .team-card:hover .card-text-wrapper {
  display: block;
  transform: translateY(0);
  animation: fadeInAnimation ease 0.8s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  pointer-events: auto; /* Enable pointer events */
}

  @keyframes fadeInAnimation {
    0% {
        background-color: rgba(255,255,255,0);
    }
    100% {
        background-color: rgba(255,255,255,0.65);
     }
}

.sr-cards-team-03 .team-card .card-text-wrapper .card-content-wrapper {
  z-index: 2;
  position: relative;
}

.sr-cards-team-03 .card-link-wrapper {
  display: block;
  width: 100%;
}

.sr-cards-team-03 ul.social {
  margin: 0;
  padding: 0;
  text-align: right;
}

.sr-cards-team-03 ul.social li {
  display: inline-block;
  font-size: 1.2rem;
  margin-left: 0.3rem;
}

.sr-cards-team-03 ul.social li i {
  color: var(--primary);
  font-size: 0.75rem;
}

.sr-cards-team-03 ul.social li i svg,
.sr-cards-team-03 ul.social li i svg g {
  fill: inherit;
}

.sr-cards-team-03 ul.social li a {
  display: flex;
  height: 1.3rem;
  width: 1.3rem;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .sr-cards-team-03 .team-card .card-text-wrapper .mt-auto * {
    color: #fff;
  }

  .sr-cards-team-03 .team-card .card-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.8s all;
  pointer-events: none; /* Disable pointer events */
}

.sr-cards-team-03 .team-card:hover .card-text-wrapper {
  pointer-events: auto; /* Enable pointer events */
}

.sr-cards-team-03 .team-card .card-text-wrapper .card-content-wrapper {
  z-index: 2;
  position: relative;
}

.sr-cards-team-03 .team-card .card-text-wrapper:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  z-index: 1;
}

.sr-cards-team-03 .team-column:nth-child(-n+3) {
  margin-top: 48px;
}


@media (max-width: 767px) {
  .sr-cards-team-03 .intro-section {
    padding-bottom: 2.778rem;
  }

  .sr-cards-team-03 h5.card-title {
    font-size: 1.128rem;
    line-height: 1.389rem;
    margin-bottom: 0;
  }

  .sr-cards-team-03 .card-text {
    font-size: 1.5rem;
    line-height: 1.319rem;
  }

  .sr-cards-team-03 .team-column {
    margin-top: 78px;
  }
}

.sr-cards-team-03 .section-content .row > div {
  margin-bottom: 30px;
}

.sr-cards-team-03 ul.social li a svg,
.sr-cards-team-03 ul.social li a svg g {
  fill: var(--primary);
  height: 0.75rem;
  width: 0.75rem;
}

.sr-cards-team-03 ul.social li a span {
  display: flex;
  align-items: center;
  justify-self: center;
}

@media (max-width: 575px) {
  .sr-cards-team-03 .team-card {
    width: 80%;
    margin: 0 auto;
  }
}



/* Existing CSS styles */

.card-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 9999;
}

.card-popup-content {
  border-radius: 15px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 44px;
  text-align: center;
  max-width: 850px;
  max-height: 90%;
  overflow: auto;
  text-align: left;
  z-index: 100;
}

.close-popup {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='53.7' height='53.7' viewBox='0 0 53.7 53.7'><path opacity='.6' fill='%23666E6E' d='M35.6 34.4L28 26.8l7.6-7.6c.2-.2.2-.5 0-.7l-.5-.5c-.2-.2-.5-.2-.7 0l-7.6 7.6-7.5-7.6c-.2-.2-.5-.2-.7 0l-.6.6c-.2.2-.2.5 0 .7l7.6 7.6-7.6 7.5c-.2.2-.2.5 0 .7l.5.5c.2.2.5.2.7 0l7.6-7.6 7.6 7.6c.2.2.5.2.7 0l.5-.5c.2-.2.2-.5 0-.7z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  cursor: pointer;
  padding-left: 5px;
  width: 50px;
  height: 50px;
  border: none;
  background-color: transparent;
  right: 0;
  top: 0;
  z-index: 400
}
  
.sr-cards-team-03 .team-card:hover .team-bio {
  z-index: 100;
  animation: textFadeInAnimation ease 0.8s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

  @keyframes textFadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.85;
     }
}
 