/* Team Section - Redesigned */
.team-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.team-intro .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modern-team {
  margin-top: 2rem;
}

.modern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  overflow: hidden;
}

.modern-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 250px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.modern-card:hover .team-image img {
  transform: scale(1.05);
}

.team-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: absolute;
  bottom: -20px;
  left: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
}

.team-info {
  flex: 1;
}

.team-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.team-title {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.team-social {
  display: flex;
  gap: 1rem;
}

.team-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: var(--primary);
  border-radius: 50%;
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--primary);
  color: white;
}

.team-cta {
  margin-top: 3rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .team-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}