.stories {
  padding: 8rem 0 8rem;
  background-color: #fff;
}

.stories__header {
  margin-bottom: 5.6rem;
}

.stories__header-logo {
  height: 6.4rem;
}

.stories__header svg {
  width: 14rem;
  fill: #18422b;
  margin-right: 4px;
}

.stories__link {
  position: absolute;
  right: 4.8rem;
  top: 4rem;
}

.text-link-green .icon {
  margin-left: 4px;
}

.stories-carousel {
  padding-left: var(--padding-inline);
}

.stories-carousel > * {
  margin-right: 9px;
}

.story-item {
  width: 22.4rem;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  margin-bottom: 3px;
  overflow: hidden;
}

.story-item a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-item__img {
  height: 22.4rem;
}

.story-item__img img {
  width: 100%;
  height: 22.4rem;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}

.story-item__content {
  flex: 1 1;
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-item__content__desc {
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 1.3rem;
  line-height: 2rem;
  color: rgba(0, 0, 0, 0.87);
}

.story-item__content__time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.story-item__content__time span {
  font: inherit;
  /* flex: 0 0 49%; */
  font-size: 1rem;
  line-height: 2.1rem;
  color: #00754a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.6px;
}

.story-item__content__time .text-left {
  flex: 1;
}

.story-item__content__time span:last-child {
  color: rgba(0, 0, 0, 0.7);
}

@media screen and (min-width: 640px) {
  .stories__container .carousel-wrap .arrow-button--prev {
    left: 48px;
    top: 50%;
  }

  .stories__container .carousel-wrap .arrow-button--next {
    right: 48px;
    top: 50%;
  }
}

/* @media screen and (max-width: 767px) {
  .stories__link {
    position: static;
    margin-top: 3.2rem;
    padding: 0 1.6rem;
  }
} */

/* new styles 4.10.2022 */

@media screen and (max-width: 1023px) {
  .stories__link {
    position: static;
    margin-top: 3.2rem;
    padding: 0 4rem;
  }
}

@media screen and (max-width: 519px) {
  .stories__link {
    position: static;
    margin-top: 3.2rem;
    padding: 0 1.6rem;
  }
}

@media screen and (max-width: 1023px) {
  .stories {
    padding: 5.6rem 0 5.6rem;
  }

  .stories__header {
    margin-bottom: 4rem;
  }

  .stories-carousel {
    padding-left: 16px;
  }

  .stories-carousel > * {
    margin-right: 8px;
  }

  .stories__container .carousel-wrap .arrow-button--prev {
    top: 50%;
  }

  .stories__container .carousel-wrap .arrow-button--next {
    top: 50%;
  }

  .stories__header-logo {
    height: 5.6rem;
  }
}

/* @media screen and (max-width: 520px) {
  .stories {
    padding: 5.6rem 0 5.6rem;
  }

  .stories__header {
    margin-bottom: 4rem;
  }

  .stories-carousel {
    padding-left: 16px;
  }

  .stories-carousel > * {
    margin-right: 8px;
  }

  .stories__container .carousel-wrap .arrow-button--prev {
    top: 50%;
  }

  .stories__container .carousel-wrap .arrow-button--next {
    top: 50%;
  }

  .stories__header-logo {
    height: 5.6rem;
  }
} */
