section.timeline {
  margin: var(--margin-y-mobile) 0;
  padding: 0 var(--margin-x-mobile);
  --cover-color: white;
}

section.timeline.with-background {
  padding: var(--margin-y-mobile) var(--margin-x-mobile);
  --cover-color: var(--component-background-color-solid);
}

section.timeline .content {
  margin: 40px 0 0 0;
  position: relative;
}

section.timeline .more-events {
  transition: all 1.6s 0.2s;
  grid-column: span 12;
  text-align: center;
  opacity: 1;
  translate: 0;
}

section.timeline .more-events.initially-hidden {
  opacity: 0;
  translate: 0 150px;
}

section.timeline .line {
  height: 0%;
  background: var(--secondary-brand-100);
  width: 4px;
  position: absolute;
  left: calc(100% / 12 - 4px);
  z-index: -1;
}

section.timeline .line-background {
  height: 100%;
  background: var(--secondary-brand-25);
  width: 4px;
  position: absolute;
  left: calc(100% / 12 - 4px);
  z-index: -1;
}

section.timeline .content > ul {
  display: flex;
  list-style-type: none;
  grid-column: 2/12;
  flex-direction: column;
  margin: 0;
  padding: 0;
  word-break: normal;
}

section.timeline .content > ul > li {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 5fr;
}

section.timeline .content > ul > li > .time {
  display: none;
}

section.timeline > div > h2,
section.timeline > div > div:first-of-type {
  grid-column: 3/11;
}

section.timeline .box {
  transition: all 1.4s 0.2s;
  opacity: 1;
  padding: 30px;
  margin: 20px 0;
  border: 1px solid rgba(162, 169, 177, 1);
  background: white;
  hyphens: auto;
  direction: ltr;
  word-break: normal;
}

section.timeline li.initially-hidden .box {
  opacity: 0;
  translate: 0 150px;
}

section.timeline .box > .heading-3 {
  word-break: auto-phrase;
  margin-bottom: 0;
  font-size: 22px;
}

section.timeline .box > .time {
  margin-bottom: 16px;
  font-size: 24px;
}

section.timeline .icon {
  justify-self: center;
  display: flex;
  align-items: center;
}

section.timeline .circle {
  border-radius: 50%;
  padding: 9px;
  background-color: var(--secondary-brand-100);
}

section.timeline .circle > object {
  filter: var(--filter-white);
}

section.timeline .content > ul > li svg,
section.timeline .content > ul > li object {
  width: 26px;
  height: 26px;
}

section.timeline .content > p {
  grid-column: span 12;
  text-align: center;
}

@media screen and (min-width: 900px) {
  section.timeline {
    margin: var(--margin-y-desktop) 0;
    padding: 0 var(--margin-x-desktop);
  }

  section.timeline.with-background {
    padding: var(--margin-y-desktop) var(--margin-x-desktop);
  }

  section.timeline > div {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin: var(--margin-x-desktop) 0;
  }

  section.timeline .content {
    margin: 70px 0 0 0;
    padding: 0;
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

  section.timeline .line,
  section.timeline .line-background {
    left: calc(50% - 3px);
  }

  section.timeline .box > .heading-3 {
    font-size: 32px;
    word-break: auto-phrase;
  }

  section.timeline > div > .content > ul > li {
    grid-template-columns: 3fr 1fr 3fr;
    gap: 0;
  }

  section.timeline > div > .content > ul > li:nth-child(odd) {
    direction: rtl;
  }

  section.timeline > div > .content > ul > li > .time {
    display: block;
    font-size: 36px;
    justify-self: end;
    align-self: center;
  }

  section.timeline > div > .content > ul > li > .box {
    padding: 50px;
    margin: 60px 0;
  }

  section.timeline > div > .content > ul > li svg,
  section.timeline > div > .content > ul .icon > .circle > object {
    width: 48px;
    height: 48px;
  }

  section.timeline .circle {
    padding: 16px;
    left: -40px;
  }

  section.timeline .box > .time {
    display: none;
  }
}

@media screen and (min-width: 1500px) {
  section.timeline > div {
    max-width: var(--max-width);
    margin: var(--margin-y-mobile) auto;
  }
}
