.team-slider {
  max-width: 1600px;
  width: 100%;
  position: relative;
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;
  padding: 0;          
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 0;
  line-height: 0;
}

.team-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.team-arrow { color: #222; }
.team-arrow#left { left: -22px; }
.team-arrow#right { right: -22px; }

.team-slider .team-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar {
  display: none;
}
.team-carousel.no-transition {
  scroll-behavior: auto;
}
.team-carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.team-carousel.dragging .team-card {
  cursor: grab;
  user-select: none;
}
.team-carousel :where(.team-card, .team-img) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-carousel .team-card {
  scroll-snap-align: start;
  height: 342px;
  list-style: none;
  background: #f5f5f5;
  cursor: pointer;
  padding-bottom: 15px;
  flex-direction: column;
  border-radius: 8px;
}
.team-carousel .team-card .team-img {
  background: #8b53ff;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  overflow: hidden;
}
.team-card .team-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}
.team-carousel .team-card h2 {
  font-weight: 500;
  font-size: 1.56rem;
  margin: 30px 0 5px;
}
.team-carousel .team-card span {
  color: #6a6d78;
  font-size: 1.31rem;
}
@media screen and (max-width: 900px) {
  .team-slider .team-carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
}
@media screen and (max-width: 600px) {
  .team-slider .team-carousel {
    grid-auto-columns: 100%;
  }
}
.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}
.team-dots .dot {
  width: 12px;
  height: 12px;
  background: #d1d1d1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.team-dots .dot.active {
  background: #8b53ff;
}