:root {
    --content-width: calc(58vw - 84px);
    --margin: 20px;
    --spacing: 20px;
    --bdrs: 6px;
    --circle-size: 40px;
    --icon-size: 32px;
    --bdrs-icon: 100%;
    --color1: #11416b;
    --color2: #f29111;
    --color3: #11416b;
    --color4: #f29111;
    --color5: #24b47e;
    --color6: #aff1b6;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    font-size: 14px;
  }
  
  body {
    background: #fff;
    font-family: "Open Sans", sans-serif;
    color: #525f7f;
  }
  
  h2 {
    margin: 5%;
    text-align: center;
    font-size: 2rem;
    font-weight: 100;
  }
  
  .timeline {
    display: flex;
    flex-direction: column;
    margin: var(--margin) auto;
    position: relative;
  }
  
  .timeline__event {
    margin-bottom: var(--spacing);
    position: relative;
    display: flex;
    margin: var(--spacing) 0;
    border-radius: var(--bdrs);
    align-self: center;
    width: 95vw;
    margin: 12px;
    justify-content: center;
  }
  
  .timeline__event:nth-child(2n + 1) {
    flex-direction: row-reverse;
  }
  
  .timeline__event:nth-child(2n + 1) .timeline__event__date {
    border-radius: 0 var(--bdrs) var(--bdrs) 0;
  }
  
  .timeline__event:nth-child(2n + 1) .timeline__event__content {
    border-radius: var(--bdrs) 0 0 var(--bdrs);
  }
  
  .timeline__event:nth-child(2n + 1) .timeline__event__icon:before {
    content: "";
    width: 2px;
    height: 100%;
    background: var(--color2);
    position: absolute;
    top: 0%;
    left: 50%;
    right: auto;
    z-index: -1;
    transform: translateX(-50%);
    animation: fillTop 2s forwards 4s ease-in-out;
  }
  
  .timeline__event:nth-child(2n + 1) .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--color2);
    position: absolute;
    right: 0;
    z-index: -1;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    animation: fillLeft 2s forwards 4s ease-in-out;
  }
  
  .timeline__event__title {
    font-size: 1.2rem;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color1);
    letter-spacing: 1.5px;
  }
  
  .timeline__event__content {
    padding: var(--spacing);
    box-shadow: 0 0px 0px -2px rgba(50, 50, 93, 0.25), 0 8px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    background: #fff;
    width: var(--content-width);
    border-radius: 0 var(--bdrs) var(--bdrs) 0;
  }
  
  .timeline__event__date {
    color: var(--color2);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 var(--spacing);
    border-radius: var(--bdrs) 0 0 var(--bdrs);
    
  }
  
  .timeline__event__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color1);
    padding: var(--spacing);
    align-self: center;
    margin: 0 var(--spacing);
    background: var(--color2);
    border-radius: var(--bdrs-icon);
    width: var(--circle-size);
    box-shadow: 0 0px 0px -2px rgba(50, 50, 93, 0.25), 0 8px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    padding: 40px;
    height: var(--circle-size);
    position: relative;
  }
  
  .timeline__event__icon i {
    font-size: var(--icon-size);
  }
  
  .timeline__event__icon:before {
    content: "";
    width: 2px;
    height: 100%;
    background: var(--color2);
    position: absolute;
    top: 0%;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    animation: fillTop 2s forwards 4s ease-in-out;
  }
  
  .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--color2);
    position: absolute;
    left: 0%;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    animation: fillLeftOdd 2s forwards 4s ease-in-out;
  }
  
  .timeline__event__description {
    flex-basis: 60%;
  }
  
  .timeline__event--type2:after {
    background: var(--color4);
  }
  
  .timeline__event--type2 .timeline__event__date {
    color: var(--color3);
    background: var(--color4);
  }
  
  .timeline__event--type2:nth-child(2n + 1) .timeline__event__icon,
  .timeline__event--type2 .timeline__event__icon {
    background: var(--color3);
    color: var(--color4);
  }
  
  .timeline__event--type2:nth-child(2n + 1) .timeline__event__icon:before,
  .timeline__event--type2:nth-child(2n + 1) .timeline__event__icon:after,
  .timeline__event--type2 .timeline__event__icon:before,
  .timeline__event--type2 .timeline__event__icon:after {
    background: var(--color3);
  }
  
  .timeline__event--type2 .timeline__event__title {
    color: var(--color4);
  }
  
  .timeline__event--type3:after {
    background: var(--color5);
  }
  
  .timeline__event--type3 .timeline__event__date {
    color: var(--color6);
    background-color: var(--color5);
  }
  
  .timeline__event--type3:nth-child(2n + 1) .timeline__event__icon,
  .timeline__event--type3 .timeline__event__icon {
    background: var(--color6);
    color: var(--color5);
  }
  
  .timeline__event--type3:nth-child(2n + 1) .timeline__event__icon:before,
  .timeline__event--type3:nth-child(2n + 1) .timeline__event__icon:after,
  .timeline__event--type3 .timeline__event__icon:before,
  .timeline__event--type3 .timeline__event__icon:after {
    background: var(--color6);
  }
  
  .timeline__event--type3 .timeline__event__title {
    color: var(--color5);
  }
  
  .timeline__event:last-child .timeline__event__icon:before {
    content: none;
  }
  
  @media (max-width: 786px) {

    .timeline {
      padding-top: 0px!important;
      padding-bottom: 10px!important;
      margin: 0px!important;
    }
    .timeline__event {
      flex-direction: column;
      align-self: center;
      display:unset;
      margin:8px;
    }
  
    .timeline__event .timeline__event__content {
      width: 100%;
      width:100%;
      float:left;
      padding: 7px;
    }
  
    .timeline__event .timeline__event__icon {
      border-radius: var(--bdrs) var(--bdrs) 0 0;
      width:20%;
      float:left;
      margin: 0;
      box-shadow: none;
      border-radius:0px!important;
      height: 40px!important;
      padding:0px!important;
    }
  
    .timeline__event .timeline__event__icon:before,
    .timeline__event .timeline__event__icon:after {
      display: none;
    }
  
    .timeline__event--type2 .timeline__event__date {
      color: #ffffff;
      background: #f29111;
      border-radius: 0;
      padding: var(--spacing);
      width:80%;
      float:left;
      border-radius:0px!important;
      height: 20px!important;
  }
  
    .timeline__event:nth-child(2n + 1) {
      flex-direction: column;
      align-self: center;
    }
  
    .timeline__event:nth-child(2n + 1) .timeline__event__date {
      border-radius: 0;
      padding: var(--spacing);
      width:80%;
      float:left;
      border-radius:0px!important;
      height: 20px!important;
    }
  
    .timeline__event:nth-child(2n + 1) .timeline__event__icon {
      border-radius: var(--bdrs) var(--bdrs) 0 0;
      margin: 0;
    }
  }
  
  @keyframes fillLeft {
    100% {
      right: 100%;
    }
  }
  
  @keyframes fillTop {
    100% {
      top: 100%;
    }
  }
  
  @keyframes fillLeftOdd {
    100% {
      left: 100%;
    }
  }

  
  
  .timeline__event--type2 .timeline__event__date {
    color: #ffffff;
    background: #f29111;
}

.timeline__event--type2:nth-child(2n + 1) .timeline__event__icon, .timeline__event--type2 .timeline__event__icon {
    background: #ffffff;
    color: #f29111;
}