.team-section {
  padding: 80px 0;
  background-color: #f7f7f7;
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.team-header {
  text-align: center;
  margin-bottom: 50px;
}

.team-subtitle {
  color: #c5a47e;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.team-title {
  font-size: 36px;
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 25px;
}

.team-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #595959;
}

.team-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.team-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  justify-content: center;
}

.team-carousel-track:has(.team-member:nth-last-child(-n + 3):first-child) {
  justify-content: center;
}

.team-member {
  flex: 0 0 25%;
  box-sizing: border-box;
  padding: 20px;
  background-color: rgba(249, 246, 242, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.team-member:hover {
  transform: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-member-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  filter: grayscale(20%);
}

.team-member-image:hover {
  filter: none;
  transform: scale(1.05);
}

.team-member-name {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 5px;
}

.team-member-role {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.team-member-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #eee;
  color: #777;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #c5a47e;
  color: white;
}

.team-carousel-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.team-carousel-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 12px rgba(197, 164, 126, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #c5a47e;
  margin: 0 10px;
}

.team-carousel-button:hover {
  background: #c5a47e;
  color: white;
}

@media (max-width: 768px) {
  .team-title {
    font-size: 24px;
  }

  .team-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start !important;
  }

  .team-member {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }

  .team-carousel-buttons {
    display: none;
  }
}
