.ffl-heroes {
  background: var(--ffl-bg-soft);
}

.ffl-heroes__slider {
  position: relative;
}

.ffl-heroes__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.ffl-heroes__viewport.is-dragging {
  cursor: grabbing;
}

.ffl-heroes__track {
  display: flex;
  gap: 12px;
  width: 100%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffl-heroes__track.is-dragging {
  transition: none;
}

.ffl-heroes__card {
  flex: 0 0 70%;
  width: 70%;
  max-width: 70%;
  background: #fff;
  border: 1px solid var(--ffl-line);
  border-radius: var(--ffl-radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  min-width: 0;
}

.ffl-heroes__photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(135deg, #d7dde5, #9aa7b5);
  overflow: hidden;
  position: relative;
}

.ffl-heroes__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ffl-heroes__photo--1,
.ffl-heroes__photo--2,
.ffl-heroes__photo--3 {
  filter: none;
}

.ffl-heroes__name {
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.ffl-heroes__role {
  margin: 0;
  color: var(--ffl-muted);
  font-size: 14px;
}

.ffl-heroes__arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ffl-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ffl-teal);
  box-shadow: 0 8px 22px rgba(15, 40, 60, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ffl-heroes__arrow:hover:not(:disabled) {
  background: var(--ffl-teal);
  color: #fff;
}

.ffl-heroes__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ffl-heroes__arrow[hidden] {
  display: none !important;
}

.ffl-heroes__arrow--prev {
  left: -6px;
}

.ffl-heroes__arrow--next {
  right: -6px;
}

.ffl-heroes__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 14px;
}

.ffl-heroes__dots[hidden] {
  display: none;
}

.ffl-heroes__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7c2ce;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.ffl-heroes__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--ffl-teal);
}

/* Mobile peek */
@media (max-width: 899px) {
  .ffl-heroes .ffl-container {
    overflow: visible;
  }

  .ffl-heroes__viewport {
    margin-right: calc(var(--ffl-gutter) * -1);
  }

  .ffl-heroes__arrow {
    display: none;
  }
}

/* Tablet: 2 visible */
@media (min-width: 900px) {
  .ffl-heroes__track {
    gap: 18px;
  }

  .ffl-heroes__card {
    flex: 0 0 calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
    max-width: none;
  }

  .ffl-heroes__arrow--prev {
    left: -10px;
  }

  .ffl-heroes__arrow--next {
    right: -10px;
  }
}

/* Desktop: 4 visible, then swipe / arrows */
@media (min-width: 1024px) {
  .ffl-heroes__slider {
    padding: 0 8px;
  }

  .ffl-heroes__card {
    flex: 0 0 calc((100% - 54px) / 4);
    width: calc((100% - 54px) / 4);
    max-width: none;
  }

  .ffl-heroes__arrow--prev {
    left: -4px;
  }

  .ffl-heroes__arrow--next {
    right: -4px;
  }
}
