/* type `g2-num-slider` — include/internet-advertising-sections/g2-num-slider.php */

.g2-num-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 120px) / 4);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.g2-num-slider__track::-webkit-scrollbar {
  display: none;
}

.g2-num-slider__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  min-height: 372px;
  padding: 40px;
  background: var(--background-light);
  scroll-snap-align: start;
}

.iad-sec--light .g2-num-slider__card {
  background: var(--background-white);
}

.g2-num-slider__num {
  color: var(--txt-gray);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
}

.g2-num-slider__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iad-sec .g2-num-slider__title {
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.g2-num-slider__text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.g2-num-slider__progress {
  display: none;
  position: relative;
  height: 2px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--outher-light-gray);
}

.g2-num-slider__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--purple-normal);
  transition: transform 0.2s;
}

@media screen and (max-width: 1240px) {
  .g2-num-slider__track {
    grid-auto-columns: calc((100% - 40px) / 2.5);
  }
}

@media screen and (max-width: 640px) {
  .g2-num-slider__track {
    grid-auto-columns: calc(100% - 16px);
    gap: 16px;
  }

  .g2-num-slider__card {
    gap: 40px;
    min-height: 224px;
    padding: 24px;
  }

  .g2-num-slider__num {
    font-size: 32px;
    line-height: 1;
  }

  .iad-sec .g2-num-slider__title {
    font-size: 18px;
  }

  .g2-num-slider__progress {
    display: block;
  }

  .g2-num-slider__progress[hidden] {
    display: none;
  }
}
