.benefits-section {
  width: min(1150px, 100% - 10px);
  padding: 60px 10px;
  scroll-snap-align: center;

  & > h1 {
    width: 100%;
    color: var(--blue-darkest);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    text-align: center;
  }

  & > p {
    width: 100%;
    margin: 10px 0 40px;
    color: var(--blue-darkest);
    text-align: center;
  }
}

.benefits-section-wrapper {
  position: relative;
  display: grid;
  align-items: center;
  width: min(450px, 90dvw);
  margin: auto;

  @media (width >= 48rem) {
    width: 100%;
    margin: auto;
  }
}

.benefits-slider-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 280px);
  padding: 10px;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  @media (width >= 48rem) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 30px;
    width: 100%;
  }
}

.benefit-wrapper-dots {
  display: flex;
  gap: 10px;
  margin: auto;
  padding-top: 16px;

  & > li {
    width: 16px;
    height: 16px;
    border-radius: var(--rounded-full);
    background-color: var(--blue-darkest);
    transition: all 500ms ease-in-out;
    cursor: pointer;
  }

  @media (width >= 48rem) {
    display: none;
  }
}

.benefit-card {
  display: grid;
  align-items: center;
  gap: 10px;
  width: 280px;
  padding: 20px;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  background-color: var(--blue-haze);
  transition: all 500ms ease-in-out;
  scroll-snap-align: center;
  cursor: pointer;

  & > h2 {
    color: var(--blue-sapphire);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    text-align: center;
    letter-spacing: 1px;
  }

  & > p {
    color: var(--blue-royal);
    text-align: center;
  }

  @media (width >= 48rem) {
    cursor: default;
  }
}

.benefit-card-image {
  justify-self: center;
  width: 100px;
  height: 100px;
}

.benefit-card-active {
  transform: scale(1);

  @media (width >= 48rem) {
    transform: scale(1);
    opacity: 1;
  }
}

.benefit-card-deactivate {
  opacity: 0.5;
  transform: scale(0.95);

  @media (width >= 48rem) {
    transform: scale(1);
    opacity: 1;
  }
}

.dot-active {
  opacity: 0.8;
  scale: 1;
}

.dot-deactivate {
  opacity: 0.3;
  scale: 0.8;
}
