.team-section {
  padding: 60px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.team-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.team-slider-wrap {
  position: relative;
  width: 100%;
  padding: 0 40px;
}

#teamCarousel {
  width: 100%;
}

#teamCarousel .carousel-inner {
  width: 100%;
}

#teamCarousel .carousel-item {
  width: 100%;
  padding: 20px;
}

#teamCarousel .carousel-item .row {
  margin-left: -15px;
  margin-right: -15px;
  width: auto;
}

#teamCarousel .carousel-item .row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex: 0 0 auto;
}

.team-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  height: 100%;
  width: 100%;
  border: 4px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  border-color: var(--first-color);
  box-shadow: 0 16px 20px rgba(0, 0, 0, 0.28);
}

.team-img {
  height: 260px;
  background: #f3f3f3;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
}

.team-body {
  padding: 14px 16px 16px;
  min-height: 135px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.team-name {
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.team-role,
.team-company {
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

.carousel-control-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  background: var(--first-color);
  user-select: none;
  opacity: 0.92;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-custom:hover {
  filter: brightness(1.05);
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

.carousel-control-prev-custom {
  left: -40px;
}

.carousel-control-next-custom {
  right: -40px;
}

/* Mobile + small tablets: show ONLY 1 card per slide */
@media (max-width: 767.98px) {
  #teamCarousel .carousel-item .row > div:not(:first-child) {
    display: none !important;
  }

  #teamCarousel .carousel-item .row > div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
