/* Team Hero */
.team-hero {
  background-color: #e3f2fd;
  background-image: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)), url("/media/images/team/hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.team-hero h1,
.team-hero p {
  color: #fff;
}

/* Team Introduction */
.team-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}

.team-intro p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Team Sections */
.team-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #1a5276;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.team-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

/* Team Member Cards */
.team-member {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  color: #1a5276;
  margin-bottom: 0.25rem;
}

.member-info h4 {
  color: #3498db;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.member-credentials {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.member-credentials p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

/* Join Our Team Section */
.join-team {
  background-color: #f8f9fa;
  padding: 4rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.join-team h2 {
  color: #1a5276;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.join-team h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.join-team p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .member-image {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .team-section {
    padding: 2.5rem 1.5rem;
  }

  .member-image {
    height: 300px;
  }

  .join-team {
    padding: 3rem 1.5rem;
  }
}
