/* Court interpreters: roster grid, language filter chips and carousel.
   Used by part/interpreters-all.twig, part/interpreter-card.twig and
   part/interpreters-slider.twig. */

/* ---------- card ---------- */
.interpreter-card {
  overflow: hidden;
}

.interpreter-card img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.interpreter-card .interpreter-card-info {
  gap: 1rem;
}

/* Equal-height behaviour only inside the carousel (mirrors .professor-card in
   professors-slider.css). In the roster grid the card flows naturally, so the
   white flag footer sits directly under the name bar instead of being pushed
   out and clipped by overflow:hidden. */
.interpreters-swiper .interpreter-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.interpreters-swiper .interpreter-card img {
  flex: 1 1 auto;
}

.interpreters-swiper .interpreter-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.interpreters-swiper .interpreter-card .interpreter-card-info {
  margin-top: auto;
}

/* ---------- filter chips ---------- */
.interpreter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--grey-light, #dee2e6);
  border-radius: 2rem;
  background: var(--white, #fff);
  color: var(--grey-olive, #403d39);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .interpreter-chip:hover {
    border-color: var(--color-primary, #ff7319);
    color: var(--color-primary, #ff7319);
  }
}

.interpreter-chip.is-active {
  background: var(--color-primary, #ff7319);
  border-color: var(--color-primary, #ff7319);
  color: #fff;
}

/* grid filter bar: sits directly on the page — no panel background or border,
   just breathing room around the chips and the search box */
.interpreters-filter {
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
}

/* ---------- carousel (mirrors .professors-swiper in professors-slider.css) ---------- */

/* One flex column with a single gap distributes heading / slides / dropdown /
   description / CTA evenly, and scales the rhythm down on small screens. */
.interpreters-slider-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.interpreters-slider-inner > * {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .interpreters-slider-inner {
    gap: 2rem;
  }
}

.interpreters-slider-filter {
  width: 100%;
  padding: 0.25rem 0;
}

.interpreters-swiper {
  width: 100%;
  padding: 0.5rem 0;
}

.interpreters-swiper .swiper-slide {
  height: 100%;
  transition: opacity 0.35s ease;
  opacity: 0.25;
}

.interpreters-swiper .swiper-slide-active {
  opacity: 1;
}

/* language dropdown, sitting under the slides */
.interpreters-lang-select {
  max-width: 320px;
  border-radius: 2rem;
}

.interpreters-swiper-prev,
.interpreters-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  z-index: 10;
}

.interpreters-swiper-prev {
  left: 0;
}

.interpreters-swiper-next {
  right: 0;
}

@media (max-width: 575px) {
  .interpreter-chip {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }
}
