.timeline {
  @include flex-direction(column);
  li {
    width: 100%;
    &:last-child {
      .row .text {
        padding-bottom: 0;
        &::before {
          border-radius: 0 0 0.8rem 0.8rem;
          height: 3rem;
          @include min(desktop) {
            height: 5.6rem;
          }
        }
      }
    }
    &:first-child {
      .row .text::before {
        border-radius: 0.8rem 0.8rem 0 0;
      }
    }
  }
}
.row {
  width: 100%;
  @include flex-direction(row);
  justify-content: flex-start;
  color: black;
  &.active {
    .text::after {
      background: linear-gradient(270deg, var(--color-27) 0.34%, var(--color-28) 86.37%);
    }
    .date,
    .title {
      color: var(--color-28);
    }
  }
  .date {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: right;
    padding: 0.3rem 3rem 0 0;
    flex: 0 0 8.5rem;
    max-width: 8.5rem;
    @include min(tablet) {
      font-size: 2.4rem;
      padding: 0.4rem 2.6rem 0 0;
      flex: 0 0 9rem;
      max-width: 9rem;
    }
    @include min(desktop) {
      font-size: 3.2rem;
      padding: 0.4rem 2.4rem 0 0;
      flex: 0 0 12rem;
      max-width: 12rem;
    }
  }
  .title {
    font-size: 1.8rem;
    font-weight: 700;
    @include min(tablet) {
      font-size: 2rem;
    }
  }
  .text {
    flex-basis: 0;
    flex-grow: 1;
    position: relative;
    padding: 0.8rem 0 2.5rem 3.6rem;
    @include min(tablet) {
      padding: 0.8rem 0 4rem 3.2rem;
    }
    @include min(desktop) {
      padding: 1rem 0 4rem 3.2rem;
    }
    p {
      font-size: 1.4rem;
      @include min(tablet) {
        font-size: 1.6rem;
      }
    }
    &::before {
      content: '';
      display: block;
      width: 1.2rem;
      height: 100%;
      background-color: #cfdeff;
      position: absolute;
      left: 0;
      top: 0;
      @include min(tablet) {
        width: 0.8rem;
      }
    }
    &::after {
      content: '';
      display: block;
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 50%;
      background-color: #cfdeff;
      position: absolute;
      left: 0.6rem;
      top: 0.8rem;
      transform: translateX(-50%);
      @include min(tablet) {
        left: 0.4rem;
      }
      @include min(desktop) {
        top: 1.2rem;
      }
    }
  }
}
