.bsv-timeline {
  --bsv-timeline-green: #5b8f32;
  --bsv-timeline-red: #ff6b6b;
  --bsv-timeline-line: #acacac;
  --bsv-timeline-text: #262626;
  --bsv-timeline-muted: #555;
  --bsv-timeline-paper: #fff;
  box-sizing: border-box;
  color: var(--bsv-timeline-text);
  font-family: inherit;
  padding: 24px 16px 56px;
}

.bsv-timeline *,
.bsv-timeline *::before,
.bsv-timeline *::after {
  box-sizing: inherit;
}

.bsv-timeline__inner {
  margin: 0 auto;
  max-width: 1170px;
}

.bsv-timeline__title {
  color: var(--bsv-timeline-green);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 56px;
  text-align: center;
}

.bsv-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.bsv-timeline__list::before {
  border-left: 1px dashed var(--bsv-timeline-line);
  content: '';
  inset: 10px auto 10px 50%;
  position: absolute;
  transform: translateX(-50%);
}

.bsv-timeline__item {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 150px;
  padding: 0 0 64px;
  position: relative;
}

.bsv-timeline__item:last-child {
  padding-bottom: 0;
}

.bsv-timeline__marker {
  background: var(--bsv-timeline-red);
  border: 3px solid var(--bsv-timeline-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 4%);
  height: 20px;
  left: 50%;
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
  width: 20px;
  z-index: 1;
}

.bsv-timeline__item:hover .bsv-timeline__marker {
  background: var(--bsv-timeline-green);
  transform: translateX(-50%) scale(1.12);
}

.bsv-timeline__period,
.bsv-timeline__content {
  margin: 0;
  min-width: 0;
}

.bsv-timeline__period {
  color: var(--bsv-timeline-muted);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.bsv-timeline__content h3 {
  color: var(--bsv-timeline-text);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin: -3px 0 14px;
}

.bsv-timeline__image {
  border: 4px solid var(--bsv-timeline-paper);
  border-radius: 5px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 15%);
  display: block;
  height: auto;
  margin-top: 16px;
  max-height: 360px;
  max-width: min(100%, 280px);
  object-fit: cover;
  width: auto;
}

.bsv-timeline__item:nth-child(odd) .bsv-timeline__period {
  grid-column: 1;
  text-align: right;
}

.bsv-timeline__item:nth-child(odd) .bsv-timeline__content {
  grid-column: 2;
  text-align: left;
}

.bsv-timeline__item:nth-child(even) .bsv-timeline__period {
  grid-column: 2;
  text-align: left;
}

.bsv-timeline__item:nth-child(even) .bsv-timeline__content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.bsv-timeline__item:nth-child(even) .bsv-timeline__image {
  margin-left: auto;
}

@media (max-width: 767px) {
  .bsv-timeline {
    padding-inline: 12px;
  }

  .bsv-timeline__title {
    margin-bottom: 40px;
    text-align: left;
  }

  .bsv-timeline__list::before {
    left: 10px;
  }

  .bsv-timeline__item {
    display: block;
    min-height: 0;
    padding: 0 0 48px 42px;
  }

  .bsv-timeline__marker {
    left: 10px;
  }

  .bsv-timeline__period,
  .bsv-timeline__content,
  .bsv-timeline__item:nth-child(n) .bsv-timeline__period,
  .bsv-timeline__item:nth-child(n) .bsv-timeline__content {
    text-align: left;
  }

  .bsv-timeline__period {
    margin-bottom: 8px;
  }

  .bsv-timeline__content h3 {
    margin-top: 0;
  }

  .bsv-timeline__item:nth-child(even) .bsv-timeline__image {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsv-timeline__marker {
    transition: none;
  }
}

