.monthly-offers {
  --offer-gap: clamp(0.85rem, 2vw, 1.35rem);
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
  color: #effaff;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 188, 255, 0.13), transparent 31rem),
    linear-gradient(180deg, #04121d 0%, #071b29 100%);
}

.monthly-offers-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.monthly-offers-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.05;
  color: #ffffff;
}

.monthly-offers-all {
  flex: none;
  color: #9ee8ff;
  font-weight: 800;
  text-decoration: none;
}

.monthly-offers-all:hover,
.monthly-offers-all:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.monthly-offers-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem 0 1rem;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.monthly-offers-viewport::-webkit-scrollbar {
  display: none;
}

.monthly-offers-carousel {
  position: relative;
}

.monthly-offers-track {
  display: flex;
  width: max-content;
  min-width: 100%;
}

.monthly-offers-group {
  display: flex;
  gap: var(--offer-gap);
  padding-right: var(--offer-gap);
}

.monthly-offer-card {
  display: block;
  width: clamp(220px, 22vw, 335px);
  overflow: hidden;
  border: 1px solid rgba(146, 225, 255, 0.2);
  border-radius: 1.15rem;
  background: #07131d;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.monthly-offer-card:hover,
.monthly-offer-card:focus-visible {
  border-color: rgba(114, 226, 255, 0.85);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.4);
  transform: translateY(-0.4rem);
  outline: none;
}

.monthly-offer-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.monthly-offers.is-user-interacting .monthly-offers-viewport {
  scroll-snap-type: x proximity;
}

.monthly-offer-card {
  scroll-snap-align: start;
}

.monthly-offers-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(158, 232, 255, 0.52);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(3, 16, 26, 0.86);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.monthly-offers-arrow span {
  font-size: 2.25rem;
  line-height: 1;
  transform: translateY(-0.08em);
}

.monthly-offers-arrow:hover,
.monthly-offers-arrow:focus-visible {
  border-color: #9ee8ff;
  background: #0b6b8f;
  outline: 3px solid rgba(158, 232, 255, 0.35);
  outline-offset: 2px;
}

.monthly-offers-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.monthly-offers-arrow-prev {
  left: clamp(0.35rem, 1.4vw, 1.25rem);
}

.monthly-offers-arrow-next {
  right: clamp(0.35rem, 1.4vw, 1.25rem);
}

@media (max-width: 700px) {
  .monthly-offers-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .monthly-offer-card {
    width: min(76vw, 285px);
  }

  .monthly-offers-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  }

  .monthly-offers-arrow {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monthly-offers-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x proximity;
  }

  .monthly-offers-track {
    transform: none;
  }

  .monthly-offers-group[aria-hidden="true"] {
    display: none;
  }

  .monthly-offer-card {
    scroll-snap-align: start;
    transition: none;
  }

  .monthly-offers-arrow {
    transition: none;
  }
}
