.tl {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.tl::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(29, 124, 110, .12);
  transform: translateX(-50%);
}

.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #1D7C6E, #4ADE80);
  transform: translateX(-50%);
  transition: height .08s linear;
  z-index: 1;
  box-shadow: 0 0 12px rgba(29, 124, 110, .5);
}

.tl-i {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s cubic-bezier(.16, 1, .3, 1);
}

.tl-i:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.tl-i:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
  text-align: left;
}

.tl-i.on {
  opacity: 1;
  transform: translateY(0);
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(29, 124, 110, .3);
  background: var(--bg-dark);
  z-index: 2;
  transition: all .4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1D7C6E;
  transition: all .4s;
}

.tl-i.on .tl-dot {
  border-color: #1D7C6E;
  box-shadow: 0 0 30px rgba(29, 124, 110, .4);
}

.tl-i.on .tl-dot::after {
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74, 222, 128, .6);
}

.tl-c {
  background: rgba(18, 58, 52, .3);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  flex: 1;
}

.tl-i.on .tl-c {
  border-color: rgba(29, 124, 110, .2);
}

.tl-time {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  background: rgba(29, 124, 110, .12);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.tl-c h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .4rem;
  line-height: 1.2;
}

.tl-c p {
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
  font-size: .85rem;
}

/* connector lines from dot to card */
.tl-i:nth-child(odd) .tl-c::after,
.tl-i:nth-child(even) .tl-c::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 32px;
  height: 2px;
  background: rgba(29, 124, 110, .2);
}

.tl-i:nth-child(odd) .tl-c::after {
  right: -42px;
}

.tl-i:nth-child(even) .tl-c::after {
  left: -42px;
}

@media (max-width: 768px) {
  .tl::before {
    left: 16px;
    transform: none;
  }

  .tl-line {
    left: 16px;
    transform: none;
  }

  .tl {
    padding-left: 0;
    max-width: 100%;
  }

  .tl-i {
    flex-direction: row !important;
    padding-left: 44px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-bottom: 2rem;
  }

  .tl-dot {
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    transform: none;
  }

  .tl-dot::after {
    width: 8px;
    height: 8px;
  }

  .tl-c::after {
    display: none !important;
  }

  .tl-c {
    padding: 1.25rem 1.5rem;
    flex: 1;
  }
}
