/* Team section styles */
.about-team {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-team h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Dedicated Team Section */
.team {
  padding: 6rem 0;
  background: linear-gradient(
    180deg,
    #e0f2fe 0%,
    #edf7f6 50%,
    #d1faf3 100%
  ); /* Teal gradient background */
  position: relative;
  overflow: hidden;
}

.team::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(62, 186, 177, 0.1) 0%,
    rgba(62, 186, 177, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.team::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(62, 186, 177, 0.1) 0%,
    rgba(62, 186, 177, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.team .container {
  position: relative;
  z-index: 1;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
  justify-content: center;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.team-member {
  flex: 1 1 350px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
  background: #f3f4f6;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  overflow: hidden;
  height: 225px;
  margin-top: 32px;
}
.team-member-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.team-member:hover .team-member-photo img {
  transform: scale(1.05);
}

.team-member-info {
  padding: 2rem;
  text-align: center;
  background-color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-member h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3ebab1; /* Matches your teal brand color */
  margin-bottom: 0.5rem;
}

.team-member-title {
  font-size: 1rem;
  color: #64748b;
  /* margin-bottom: 2rem; */
  font-weight: 500;
}

.team-member-bio {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin-top: 1rem;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
}

.team-member-bio li.social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef2f7;
  color: #0a66c2;
  text-decoration: none;
}

.social-link i {
  font-size: 18px;
  line-height: 1;
}

.social-link:hover {
  background: #e0e8f4;
}

visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.team-member-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-grid,
  .team-members {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .team-member-photo img {
    height: auto !important;
    max-height: 320px;
  }

  .team-member {
    overflow: visible; /* ensure info shows */
  }
}
