/* Dhaara — team carousel: compact horizontal auto-scroller
   Replaces the broken vertical stack (Owl was never initialized: jQuery absent).
   Loaded on every page that has .team-carousel. No dependencies. */

/* Default (JS off / reduced motion): horizontal swipe strip */
.team-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 18px;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar { display: none; }

/* Active mode (JS on): seamless marquee */
.team-carousel.tc-active { overflow: hidden; }
.tc-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
}

/* Optimum card size */
.team-carousel .single-team-member {
  flex: 0 0 230px;
  max-width: 230px;
  margin: 0;
  background: #fff;
}
.team-carousel .img-holder img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.team-carousel .text-holder { padding: 12px 8px 8px; }
.team-carousel .text-holder h3 {
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.team-carousel .text-holder span {
  font-size: 12.5px;
  display: block;
  line-height: 1.35;
}

@media (max-width: 575px) {
  .team-carousel .single-team-member { flex: 0 0 200px; max-width: 200px; }
}

/* Reduced motion: no auto-scroll; keep swipe strip */
@media (prefers-reduced-motion: reduce) {
  .team-carousel.tc-active { overflow-x: auto; }
  .tc-track { transform: none !important; }
}
