/* EndoDental Team Carousel Widget Styles */

.team-section {
  background: #0c1a2e;
  padding: 80px 0;
  overflow: hidden;
}

/* Carousel Stage */
.carousel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-stage::before,
.carousel-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6vw, 100px);
  z-index: 2;
  pointer-events: none;
}

.carousel-stage::before {
  left: 0;
  background: linear-gradient(to right, #0c1a2e, transparent);
}

.carousel-stage::after {
  right: 0;
  background: linear-gradient(to left, #0c1a2e, transparent);
}

/* Carousel Belt - Auto-scrolling */
.team-carousel__belt {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: beltScroll 50s linear infinite;
  will-change: transform;
  padding: 16px 0 24px;
}

.team-carousel__belt.paused {
  animation-play-state: paused;
}

.team-carousel__belt.speed-burst {
  animation-duration: 16s !important;
}

@keyframes beltScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Team Cards - 4 visible across viewport */
.team-card {
  flex: 0 0 calc(25vw - 18px);
  width: calc(25vw - 18px);
  min-width: 260px;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
  cursor: default;
}

.team-card:hover {
  border-color: rgba(0, 180, 216, 0.7);
  transform: translateY(-12px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
}

/* Photo - Tall portrait */
.team-avatar {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  background: #0d2035;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}

.team-card:hover .team-avatar img {
  transform: scale(1.06);
}

/* Gradient overlay at bottom of photo */
.team-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(12, 26, 46, 0.92) 0%, transparent 100%);
  pointer-events: none;
}

/* Text below photo */
.team-info {
  padding: 20px 22px 26px;
  background: rgba(255, 255, 255, 0.04);
}

.team-card .role {
  font-size: 0.68rem;
  color: #00b4d8;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.team-card .name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  padding: 0 24px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 119, 182, 0.5);
  background: rgba(0, 119, 182, 0.1);
  color: #00b4d8;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: #0077b6;
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-btn.active {
  background: #0077b6;
  color: #ffffff;
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: #0077b6;
  transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .team-card {
    flex: 0 0 calc(33.333vw - 16px);
    width: calc(33.333vw - 16px);
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 60px 0;
  }

  .team-card {
    flex: 0 0 calc(50vw - 12px);
    width: calc(50vw - 12px);
    min-width: 200px;
  }

  .team-card .name {
    font-size: 0.95rem;
  }

  .team-card .role {
    font-size: 0.6rem;
  }

  .team-info {
    padding: 16px 18px 20px;
  }

  .carousel-controls {
    margin-top: 24px;
    gap: 12px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}
