*,
*::before,
*::after {
  box-sizing: border-box;
}

@media only screen and (max-width: 540px)
{
    .desktoponly
    {
        display: none;
    }
    .mobileonly
    {
        display: block;
    }
  }

  @media only screen and (min-width: 540px)
{
    .desktoponly
    {
        display: block;
    }
    .mobileonly
    {
        display: none;
    }
  }

.timeline {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: #b4131c;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.containertimeline {
  padding: 15px 30px;
  position: relative;
  background: inherit;
  width: 50%;
}

.containertimeline.left {
  left: 0;
}

.containertimeline.right {
  left: 50%;
}

.containertimeline::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  right: -8px;
  background: #ffffff;
  border: 2px solid #b4131c;
  border-radius: 16px;
  z-index: 1;
}

.containertimeline.right::after {
  left: -8px;
}

.containertimeline::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  top: calc(50% - 1px);
  right: 8px;
  background: #b4131c;
  z-index: -1;
}

.containertimeline.right::before {
  left: 8px;
}

.containertimeline .date {
  position: absolute;
  display: inline-block;
  top: calc(50% - 8px);
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #b4131c;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

.containertimeline.left .date {
  right: -75px;
}

.containertimeline.right .date {
  left: -75px;
}

.containertimeline .icon {
  position: absolute;
  display: inline-block;
  width: 40px;
  height: 40px;
  padding: 9px 0;
  top: calc(50% - 20px);
  background-color: #8f8e8e;
  border: 2px solid #8f8e8e;
  border-radius: 40px;
  text-align: center;
  font-size: 18px;
  color: #8f8e8e;
  z-index: 1;
}

.containertimeline.left .icon {
  right: 56px;
}

.containertimeline.right .icon {
  left: 56px;
}

.containertimeline .content {
  padding: 30px 90px 30px 30px;
  background-color: #8f8e8e;
  position: relative;
  border-radius: 0 500px 500px 0;
}

.containertimeline.right .content {
  padding: 30px 30px 30px 90px;
  border-radius: 500px 0 0 500px;
}

.containertimeline .content h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.containertimeline .content p {
  margin: 0;
  font-size: 1rem;
  line-height: 22px;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .timeline::after {
    left: 90px;
  }

  .containertimeline {
    width: 100%;
    padding-left: 120px;
    padding-right: 30px;
  }

  .containertimeline.right {
    left: 0%;
  }

  .containertimeline.left::after, 
  .containertimeline.right::after {
    left: 82px;
  }

  .containertimeline.left::before,
  .containertimeline.right::before {
    left: 100px;
    border-color: transparent #006E51 transparent transparent;
  }

  .containertimeline.left .date,
  .containertimeline.right .date {
    right: auto;
    left: 15px;
  }

  .containertimeline.left .icon,
  .containertimeline.right .icon {
    right: auto;
    left: 146px;
  }

  .containertimeline.left .content,
  .containertimeline.right .content {
    padding: 30px 30px 30px 90px;
    border-radius: 500px 0 0 500px;
  }
}