.timeline-item {
  display: flex;
  flex-direction: column;
}
.timeline-item__card {
  padding: 1.5rem 1.5rem 81px;
  border-radius: 16px;
  background: var(--color-neutral--white);
  box-shadow: -1px 22px 49px 0px rgba(92, 92, 92, 0.10), -4px 90px 90px 0px rgba(92, 92, 92, 0.09);
  max-width: 390px;
  width: 100%;
  transform: rotate(-4.811deg);
  margin: auto;
}
.timeline-item__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.timeline-item__image::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: block;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%);
  opacity: 0.8;
  z-index: 9;
}
.timeline-item__texts {
  width: fit-content;
  margin: 3.5rem 0 1.5rem 0;
  position: relative;
}
.timeline-item__title {
  color: var(--color-brand--dark-orange-2);
  font-weight: 800;
  line-height: 130%;
  font-size: 35px;
}
.timeline-item .timeline-item__texts::before {
  position: absolute;
  content: '';
  width: 4px;
  height: 124px;
  left: 36px;
  top: -122px;
  z-index: -1;
  background-image: url(../../images/timeline/way-mobile.svg);
  background-size: cover;
  background-repeat: no-repeat;
}
.timeline-item__subtitle {
  font-weight: 700;
  line-height: 140%;
  font-size: 25px;
}
@media all and (min-width: 450px) {
  .timeline-item__texts {
    width: fit-content;
    margin: 3.5rem auto 1.5rem auto;
  }
}

@media screen and (min-width: 1000px) {
  .timeline-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .timeline-item__texts {
    margin: unset;
    padding: 0 2rem;
  }
  .timeline-item__title {
    line-height: 160%;
    font-size: 75px;
  }
  .timeline-item__card {
    margin: unset;
    max-width: 630px;
    padding: 1.5rem 1.5rem 101px;
  }
}



/**
 * Modifiers Left
 */

@media all and (min-width: 1000px) {
  .timeline-item:nth-child(odd) {
    max-width: 949px;
    margin-right: auto;
  }
  .timeline-item:nth-child(odd) .timeline-item__card {
    transform: rotate(-4.811deg) translateX(-30px);
  }
  .timeline-item:nth-child(odd) .image-with-text__content {
    margin-left: auto;
  }
  .timeline-item:nth-child(odd) .timeline-item__texts::before {
    position: absolute;
    content: '';
    width: 6px;
    height: 668px;
    right: 0;
    left: unset;
    top: 0;
    z-index: -1;
    background-image: url(../../images/timeline/way3.svg);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .timeline-item:nth-child(odd) .timeline-item__texts::after {
    position: absolute;
    content: '';
    width: 668px;
    height: 6px;
    right: 0;
    top: 0;
    z-index: -1;
    background-image: url(../../images/timeline/way-horizontal.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
  }
}
@media all and (min-width: 1300px) {
  .timeline-item:nth-child(even) .timeline-item__card {
    transform: rotate(-4.811deg);
  }
}


/**
 * Modifiers right
 */

@media all and (min-width: 1000px) {
  .timeline-item:nth-child(even) {
    max-width: 1132px;
    margin-left: auto;
  }
  .timeline-item:nth-child(even) .timeline-item__card {
    transform: rotate(6.222deg) translateX(30px);
    order: 2;
  }
  .timeline-item:nth-child(even) .image-with-text__content {
    margin-right: auto;
    order: 1;
  }
  .timeline-item:nth-child(even) .timeline-item__texts::before {
    position: absolute;
    content: '';
    width: 6px;
    height: 668px;
    left: -1rem;
    top: 0;
    z-index: -1;
    background-image: url(../../images/timeline/way3.svg);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .timeline-item:nth-child(even) .timeline-item__texts::after {
    position: absolute;
    content: '';
    width: 668px;
    height: 6px;
    left: -16px;
    top: 0;
    z-index: -1;
    background-image: url(../../images/timeline/way-horizontal.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
  }
}
@media all and (min-width: 1300px) {
  .timeline-item:nth-child(even) .timeline-item__card {
    transform: rotate(6.222deg);
  }
}



/**
 * Modifiers last
 */

 @media all and (min-width: 1000px) {

  .timeline-item:last-child .timeline-item__texts::before,
  .timeline-item:last-child .timeline-item__texts::after {
    content: none;
  }

}

