.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: start;
  /*   background: #d7eaea; */
  padding: 60px 30px;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px){
  .teams-grid {padding: 20px 0px;}
}

@media (max-width: 600px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
  background: transparent;
  max-width: 400px;
}

.team-photo img {
  border-radius: 50%;
  width: 206px;
  height: 206px;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-name {
  font-size: 28px!important;
  font-weight: 600;
  color: #2d6272;
  margin-bottom: 5px;
}
.team-role {
  font-size: 18px;
  font-weight: 600;
  color: #2d6272;
  margin-bottom: 10px;
}
.team-bio {
  font-size: 18px;
  color: #2d6272;
  line-height: 21px;
  margin-bottom: 15px;
}

.team-btn {
  display: inline-block;
  background: #e75263;
  color: #fff;
  border-radius: 30px;
  padding: 8px 25px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 24px;
}
.team-btn svg {
  width: 16px;
  fill: #fff;
  margin-left: 10px;
}

.team-btn:hover {
  background: #00aa9e;
  color: #fff;
}

/* === Updated Modal Styles === */
.team-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.team-modal .modal-content {
  background: #fff;
  padding: 20px 40px;
  max-width: 760px;
  width: 90%;
  border-radius: 0;
  position: relative;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;
}

/* Header with Close Button */
.modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.modal-header .close-btn {
  /* font-size: 22px;
  background: #e75263;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center; */
  cursor: pointer;
  /* font-weight: bold;
  transition: 0.3s; */
}

.modal-header .close-btn:hover {
  /* background: #00aa9e; */
}

.close-btn {
  cursor: pointer;
}
.close-text {
  color: #2d6272;
  padding-right: 17px;
  font-size: 18px;
  line-height: 24px;
}
/* Modal Body (Centered Layout) */
.modal-body {
  text-align: center;
  padding-top: 0px;
}

.modal-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.modal-body .modal-img {
  width: 137px;
  height: 137px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
}

.modal-body h3.modal-name {
  font-size: 24px;
  font-weight: 700;
  color: #2d6272;
  margin-bottom: 6px;
}

.modal-body .designation {
  font-weight: 700;
  color: #2d6272;
  margin-bottom: 15px;
}

.modal-body .bio {
  font-size: 18px;
  line-height: 24px;
  color: #2d6272;
  text-align: left;
  margin: 0 auto;
  max-width: 90%;
}

.modal-cta {
  text-align: center;
  margin-top: 25px;
}

.modal-cta .cta-btn {
  font-family: "Regards", Sans-serif;
  display: inline-block;
  background: #eb6070;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 20px;
  transition: 0.3s;
  font-size: 18px;
  line-height: 24px;
}

.modal-cta .cta-btn:hover {
  background: #00aa9e;
}
.cta-btn svg {
  width: 16px;
  fill: #fff;
  position: relative;
  top: 4px;
  margin-left: 5px;
}

@media (max-width: 767px) {
  .modal-cta .cta-btn {
    padding: 10px 10px;
  }
}

/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
