.etw-timeline,
.etw-timeline * {
  box-sizing: border-box;
}

.etw-timeline {
  width: 100%;
  background: #eef8ff;
  font-family: inherit;
}

.etw-timeline__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 22px;
}

.etw-timeline__line {
  position: absolute;
  top: 0;
  bottom: 14px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #24418f;
  z-index: 1;
}

.etw-timeline__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
  min-height: 155px;
  z-index: 2;
}

.etw-timeline__row--left .etw-timeline__card {
  grid-column: 1;
  justify-self: end;
}

.etw-timeline__row--right .etw-timeline__card {
  grid-column: 3;
  justify-self: start;
}

.etw-timeline__row--left .etw-timeline__spacer,
.etw-timeline__row--right .etw-timeline__spacer {
  display: none;
}

.etw-timeline__marker {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.etw-timeline__dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #24418f;
}

.etw-timeline__card {
  width: min(100%, 470px);
  background: #fff;
  border: 1px solid rgba(36, 65, 143, 0.06);
  border-radius: 14px;
  padding: 22px 32px 24px;
  box-shadow: 0 2px 0 rgba(36, 65, 143, 0.15);
}

.etw-timeline__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 12px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: #e8eeff;
  color: #24418f;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.etw-timeline__title {
  margin: 0 0 12px;
  color: #24418f;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.etw-timeline__content {
  color: #24418f;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}

.etw-timeline__content p {
  margin: 0;
}

.etw-timeline__arrow {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  color: #24418f;
  font-size: 30px;
  line-height: 1;
  z-index: 3;
}

@media (max-width: 1024px) {
  .etw-timeline__row {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    min-height: 145px;
  }

  .etw-timeline__card {
    width: min(100%, 390px);
    padding: 20px 24px 22px;
  }

  .etw-timeline__title {
    font-size: 23px;
  }

  .etw-timeline__content {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .etw-timeline__inner {
    padding-left: 42px;
  }

  .etw-timeline__line {
    left: 18px;
  }

  .etw-timeline__row {
    display: block;
    min-height: auto;
    padding: 0 0 28px 0;
  }

  .etw-timeline__marker {
    position: absolute;
    left: -42px;
    top: 26px;
    width: 36px;
  }

  .etw-timeline__dot {
    width: 26px;
    height: 26px;
  }

  .etw-timeline__card {
    width: 100%;
    max-width: none;
    padding: 20px;
  }

  .etw-timeline__title {
    font-size: 22px;
  }

  .etw-timeline__arrow {
    left: 18px;
  }
}

/* Scroll reveal animation */
.etw-animate-item .etw-timeline__card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--etw-delay, 0ms);
  will-change: opacity, transform;
}

.etw-animate-item.etw-is-visible .etw-timeline__card {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .etw-animate-item .etw-timeline__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
