/* Authority Carousel */

.authority-carousel {
  position: relative;
  overflow: hidden;
  padding: 82px 0 70px;
  background: transparent;
}

.authority-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.authority-carousel .container {
  position: relative;
  z-index: 1;
}

.authority-carousel__head {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.authority-carousel__head .section-kicker {
  margin-inline: auto;
}

.authority-carousel__head h2 {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #23172f;
}

.authority-carousel__head p {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.authority-carousel__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.authority-carousel__viewport::before,
.authority-carousel__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(120px, 10vw);
  pointer-events: none;
}

.authority-carousel__viewport::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 249, 255, 0.9),
    rgba(251, 249, 255, 0)
  );
}

.authority-carousel__viewport::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(251, 249, 255, 0.9),
    rgba(251, 249, 255, 0)
  );
}

.authority-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.authority-carousel__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 10px 0 18px;
  will-change: transform;
}

.authority-carousel__item {
  position: relative;
  flex: 0 0 clamp(260px, 24vw, 360px);
  height: clamp(310px, 31vw, 440px);
  padding: 10px;
  border: 1px solid rgba(91, 60, 164, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.42)
    ),
    linear-gradient(135deg, rgba(241, 234, 255, 0.58), rgba(233, 248, 255, 0.5));
  box-shadow:
    0 18px 46px rgba(57, 38, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.authority-carousel__item::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 23px;
  background:
    linear-gradient(
      180deg,
      rgba(35, 23, 47, 0) 45%,
      rgba(35, 23, 47, 0.16) 100%
    ),
    linear-gradient(
      135deg,
      rgba(159, 122, 234, 0.08),
      rgba(142, 220, 255, 0.06)
    );
  pointer-events: none;
}

.authority-carousel__item img {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: scale(1.01);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.authority-carousel__item:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}
