.astw-timeline-section {
  background: #efe4d4;
  padding: 80px 20px;
  overflow: hidden;
  position: relative;
}

.astw-timeline-wrapper {
  --astw-year-col: 160px;
  --astw-marker-col: 40px;
  --astw-gap: 55px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.astw-progress-line,
.astw-progress-fill {
  position: absolute;
  top: 0;
  left: calc(var(--astw-year-col) + var(--astw-gap) + (var(--astw-marker-col) / 2));
  width: 1px;
  transform: translateX(-50%);
}

.astw-progress-line {
  height: 100%;
  background: rgba(17, 19, 26, 0.22);
  z-index: 1;
}

.astw-progress-fill {
  height: 0;
  background: #11131a;
  z-index: 2;
  transition: height 0.08s linear;
}

.astw-timeline-item {
  display: grid;
  grid-template-columns: var(--astw-year-col) var(--astw-marker-col) 1fr;
  column-gap: var(--astw-gap);
  min-height: 175px;
  position: relative;
}

.astw-left {
  text-align: right;
  position: relative;
  z-index: 4;
}

.astw-small-label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #8c857c;
  margin-bottom: 44px;
  text-transform: uppercase;
}

.astw-year {
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: #11131a;
  margin: 0;
}

.astw-marker {
  position: relative;
  z-index: 5;
}

.astw-marker::before {
  display: none !important;
  content: none !important;
}

.astw-marker::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: #efe4d4;
  border: 1px solid rgba(17, 19, 26, 0.75);
  transform: translateX(-50%) rotate(45deg);
  z-index: 6;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.astw-marker.is-active::after {
  background: #11131a;
  border-color: #11131a;
}

.astw-content {
  position: relative;
  z-index: 4;
  max-width: 620px;
}

.astw-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: #11131a;
  margin: 0 0 18px;
}

.astw-description {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(17, 19, 26, 0.62);
  max-width: 540px;
  margin: 0;
}

@media (max-width: 1024px) {
  .astw-timeline-section {
    padding: 70px 24px;
  }
  .astw-timeline-wrapper {
    --astw-year-col: 150px;
    --astw-marker-col: 40px;
    --astw-gap: 55px;
    max-width: 820px;
  }
}

@media (max-width: 767px) {
  .astw-timeline-section {
    padding: 55px 24px;
  }

  .astw-mobile-stacked .astw-timeline-wrapper {
    max-width: 350px;
  }

  .astw-mobile-stacked .astw-progress-line,
  .astw-mobile-stacked .astw-progress-fill,
  .astw-mobile-stacked .astw-marker {
    display: none !important;
  }

  .astw-mobile-stacked .astw-timeline-item {
    display: block;
    min-height: auto;
    margin-bottom: 62px;
  }

  .astw-mobile-stacked .astw-timeline-item:last-child {
    margin-bottom: 0;
  }

  .astw-mobile-stacked .astw-left {
    text-align: left;
  }

  .astw-mobile-stacked .astw-small-label {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 22px;
  }

  .astw-mobile-stacked .astw-year {
    font-size: 44px;
    line-height: 0.95;
    margin-bottom: 2px;
  }

  .astw-mobile-stacked .astw-title {
    font-size: 21px;
    line-height: 1.15;
    margin: 0 0 22px;
  }

  .astw-mobile-stacked .astw-description {
    font-size: 16px;
    line-height: 1.65;
    max-width: 100%;
  }

  .astw-mobile-timeline .astw-timeline-wrapper {
    --astw-year-col: 72px;
    --astw-marker-col: 28px;
    --astw-gap: 14px;
  }

  .astw-mobile-timeline .astw-timeline-item {
    min-height: 165px;
  }

  .astw-mobile-timeline .astw-small-label {
    font-size: 8px;
    letter-spacing: 1.8px;
    margin-bottom: 10px;
    white-space: nowrap;
  }

  .astw-mobile-timeline .astw-year {
    font-size: 29px;
  }

  .astw-mobile-timeline .astw-title {
    font-size: 25px;
    margin-bottom: 12px;
  }

  .astw-mobile-timeline .astw-description {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .astw-mobile-stacked .astw-timeline-wrapper {
    max-width: 330px;
  }

  .astw-mobile-stacked .astw-year {
    font-size: 42px;
  }

  .astw-mobile-stacked .astw-title {
    font-size: 20px;
  }

  .astw-mobile-stacked .astw-description {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .astw-timeline-section {
    padding: 50px 20px;
  }

  .astw-mobile-stacked .astw-timeline-wrapper {
    max-width: 310px;
  }

  .astw-mobile-stacked .astw-year {
    font-size: 38px;
  }

  .astw-mobile-stacked .astw-description {
    font-size: 15px;
  }
}
