@media (min-width: 1000px) {

  #timeline .demo-card:nth-child(even) .head::after,
  #timeline .demo-card:nth-child(odd) .head::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
  }

  #timeline .demo-card:nth-child(even) .head::before,
  #timeline .demo-card:nth-child(odd) .head::before {
    position: absolute;
    content: "";
    width: 9px;
    height: 9px;
    background-color: #bdbdbd;
    border-radius: 9px;
    box-shadow: 0px 0px 2px 8px #f7f7f7;
  }
}

/* Border Box */
* {
  box-sizing: border-box;
}

/* Fonts */
body {
  font-family: Roboto;
}

#timeline {
  padding: 50px 0;
  background-image: linear-gradient(60deg, whitesmoke, rgb(254, 243, 232));
  border-top: 1px solid rgba(191, 191, 191, 0.4);
  border-bottom: 1px solid rgba(191, 191, 191, 0.4);
}

#timeline h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 6rem;
  color: rgb(95, 93, 93);
  text-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#timeline p.leader {
  text-align: center;
  max-width: 90%;
  margin: auto;
  margin-bottom: 45px;
}

#timeline .demo-card-wrapper {
  position: relative;
  margin: auto;
}

@media (min-width: 1000px) {
  #timeline .demo-card-wrapper {
    display: flex;
    flex-flow: row wrap;
    width: 1170px;
    height: auto;
    margin: 5rem auto 0 auto;
  }
}

#timeline .demo-card-wrapper::after {
  z-index: 1;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid rgba(191, 191, 191, 0.4);
}

@media (min-width: 1000px) {
  #timeline .demo-card-wrapper::after {
    border-left: 1px solid #bdbdbd;
  }
}

#timeline .demo-card {
  position: relative;
  display: block;
  margin: 10px auto 80px;
  width: 94%;
  z-index: 2;
  transition: all linear .5s;
}

@media (min-width: 480px) {
  #timeline .demo-card {
    width: 60%;
    box-shadow: 0px 1px 22px 4px rgba(0, 0, 0, 0.07);
  }
}

@media (min-width: 720px) {
  #timeline .demo-card {
    width: 40%;
  }
}

@media (min-width: 1000px) {
  #timeline .demo-card {
    width: 450px;
    max-height: 400px;
    margin: 90px;
    margin-top: 45px;
    margin-bottom: 45px;
  }

  #timeline .demo-card:nth-child(odd) {
    margin-right: 45px;
  }

  #timeline .demo-card:nth-child(odd) .head::after {
    border-left-width: 15px;
    border-left-style: solid;
    left: 100%;
  }

  #timeline .demo-card:nth-child(odd) .head::before {
    left: 491.5px;
  }

  #timeline .demo-card:nth-child(even) {
    margin-left: 45px;
  }

  #timeline .demo-card:nth-child(even) .head::after {
    border-right-width: 15px;
    border-right-style: solid;
    right: 100%;
  }

  #timeline .demo-card:nth-child(even) .head::before {
    right: 489.5px;
  }

  #timeline .demo-card:nth-child(2n) {
    margin-top: 50px;
  }

  #timeline .demo-card:nth-child(2n+1){
    margin-top: -50px;
  }

}

#timeline .demo-card:hover {
  cursor: pointer;
  transform: scale(1.02) translateY(-10%);
}

#timeline .demo-card .body {
  overflow: hidden;
}

#timeline .demo-card .body img {
  transition: all linear .5s;
}


#timeline .demo-card:hover .body img {
  transform: scale(1.02);
}

#timeline .demo-card .head {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 400;
}
#timeline .demo-card .head .memora-title{
    text-align: center;
    flex: 1;
}
#timeline .demo-card .head .memora-title p{
  margin-bottom: 2px;
}

#timeline .demo-card .head .number-box {
  display: inline;
  float: left;
  margin: 15px;
  padding: 10px;
  font-size: 35px;
  line-height: 35px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.17);
}

#timeline .demo-card .head h2 {
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: inherit;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: 6px;
  line-height: 1rem;
}

@media (min-width: 480px) {
  #timeline .demo-card .head h2 {
    font-size: 165%;
    line-height: 1.2rem;
  }
}

#timeline .demo-card .head h2 span {
  display: block;
  font-size: 0.6rem;
  margin: 0;
}

@media (min-width: 480px) {
  #timeline .demo-card .head h2 span {
    font-size: 0.8rem;
  }
}

#timeline .demo-card .body {
  background: #fff;
  border: 1px solid rgba(191, 191, 191, 0.4);
  border-top: 0;
  padding: 15px;
}

@media (min-width: 1000px) {
  #timeline .demo-card .body {
    height: 315px;
  }
}

#timeline .demo-card .body p {
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 15px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

#timeline .demo-card .body img {
  display: block;
  width: 100%;
  height: 80%;

  object-fit: cover;
  object-position: center;
}

.demo-card-wrapper .demo-card:nth-child(6n) {
  background-color: rgb(205, 192, 57);
}

.demo-card-wrapper .demo-card:nth-child(6n) .head::after {
  border-color: rgb(205, 192, 57);
}

.demo-card-wrapper .demo-card:nth-child(6n+1) {
  background-color: #46b8e9;
}

.demo-card-wrapper .demo-card:nth-child(6n+1) .head::after {
  border-color: #46b8e9;
}

.demo-card-wrapper .demo-card:nth-child(6n+2) {
  background-color: #3ee9d1;
}

.demo-card-wrapper .demo-card:nth-child(6n+2) .head::after {
  border-color: #3ee9d1;
}

.demo-card-wrapper .demo-card:nth-child(6n+3) {
  background-color: #ce43eb;
}
.demo-card-wrapper .demo-card:nth-child(6n+3) .head::after {
  border-color: #ce43eb;
}

.demo-card-wrapper .demo-card:nth-child(6n+4) {
  background-color: #4d92eb;
}

.demo-card-wrapper .demo-card:nth-child(6n+4) .head::after {
  border-color: #4d92eb;
}

.demo-card-wrapper .demo-card:nth-child(6n+5) {
  background-color: rgb(123, 120,182);
}
.demo-card-wrapper .demo-card:nth-child(6n+5) .head::after {
  border-color: rgb(123, 120,182);
}