.team-modern-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(251, 146, 60, 0.12), transparent 25%),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 72%);
  padding: 58px 0 64px;
}

.team-modern-heading {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.team-modern-heading span {
  color: #0f766e;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.team-modern-heading h2 {
  color: #102a1f;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 12px;
}

.team-modern-heading p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.team-modern-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-modern-card {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.22s ease;
}

.team-modern-card:hover {
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.team-modern-photo {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(249, 115, 22, 0.1));
  height: 285px;
  overflow: hidden;
  position: relative;
}

.team-modern-photo:after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(16, 42, 31, 0.18));
  bottom: 0;
  content: "";
  height: 45%;
  left: 0;
  position: absolute;
  right: 0;
}

.team-modern-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.team-modern-body {
  padding: 22px 22px 24px;
}

.team-modern-role {
  background: #ecfdf5;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 12px;
  max-width: 100%;
  padding: 8px 11px;
  text-transform: uppercase;
}

.team-modern-body h3 {
  color: #102a1f;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.team-modern-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-modern-contact a {
  align-items: flex-start;
  color: #475569;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.team-modern-contact a:hover,
.team-modern-contact a:focus {
  color: #0f766e;
  text-decoration: none;
}

.team-modern-contact i {
  color: #dc2626;
  flex: 0 0 auto;
  line-height: 1.35;
  margin-top: 1px;
}

@media (max-width: 1199px) {
  .team-modern-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .team-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-modern-photo {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .team-modern-section {
    padding: 38px 0 44px;
  }

  .team-modern-heading h2 {
    font-size: 30px;
  }

  .team-modern-grid {
    grid-template-columns: 1fr;
  }

  .team-modern-photo {
    height: 330px;
  }
}
