.timeline_map {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(60rem, 90%);
  margin-inline: auto;
}

.title.enquires {
  font-size: 22px;
  text-align: center;
}

/* line */
.timeline_map::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: #DFD2AF;
  border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
.timeline_map li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
.timeline_map li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timeline_map li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);

  text-align: center;
  background-color: #C2A252;

  color: white;
  font-size: 1.25rem;
  font-weight: 700;

  display: grid;
  place-content: center;
  position: relative;

  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline_map li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: #C2A252;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;

  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline_map li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: #fff;
  border: 0.3rem solid #3D0A20;
  border-radius: 50%;
  top: 50%;

  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.timeline_map li .title,
.timeline_map li .descr {
  background: #fff;
  position: relative;
  padding-inline: 1.5rem;
}

.timeline_map li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.timeline_map li .descr {
  padding-block-end: 1.5rem;
  /* padding-block-start: 1.5rem; */
  font-weight: 300;
}

/* shadows */
.timeline_map li .title::before,
.timeline_map li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline_map li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline_map li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .timeline_map {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }

  .timeline_map::before {
    grid-column: 2;
  }

  .timeline_map li:nth-child(odd) {
    grid-column: 1;
  }

  .timeline_map li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline_map li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline_map li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline_map li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }

  .timeline_map li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }

}

@media screen and (max-width:580px) {
  .timeline_map {
    padding-left: 0;
    --col-gap: 1rem;
  }

  .timeline_map li .date::after {
    width: 1.5rem;
  }

  .timeline_map li .descr {
    padding-inline: 0;
    padding-block-end: 0.9rem;
  }
}







/* time line css  */
#timeline .timeline-item:after,
#timeline .timeline-item:before {
  content: "";
  display: block;
  width: 100%;
  clear: both;
}

#timeline {
  width: 100%;
  margin: 30px auto;
  position: relative;
  padding: 0 10px;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

#timeline:before {
  content: "";
  width: 3px;
  height: calc(100% - 20%);
  background: #d2e1e7;
  left: 50%;
  top: 14px;
  position: absolute;
}

#timeline:after {
  content: "";
  clear: both;
  display: table;
  width: 100%;
}

#timeline .timeline-item {
  margin-bottom: 5px;
  position: relative;
}

#timeline .timeline-item .timeline-icon {
  background: #ffffff;
  border: 4px solid #3E92CC;
  width: 20px;
  height: 20px;
  position: relative;
  top: 15px;
  left: 51.35%;
  margin-left: -23px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
}

#timeline .timeline-item .timeline-icon img.left_circle {
  width: 96px;
  position: absolute;
  top: -23px;
  left: -53px;
}

#timeline .timeline-item .timeline-icon img.right_circle {
  width: 96px;
  position: absolute;
  top: -20px;
  left: -19px;
}

#timeline .timeline-item .timeline-icon svg {
  position: relative;
  top: 14px;
  left: 14px;
}

#timeline .timeline-item .timeline-content {
  width: 45%;
  background: #fff;
  padding: 0px 20px 20px;
  /* -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
    -ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); */
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#timeline .timeline-item .timeline-content h3 {
  position: relative;
  padding: 15px;
  background: #c2a252;
  color: #fff;
  margin: -20px -20px 0 -20px;
  font-weight: 300;
  -webkit-border-radius: 0px 50px 50px 0;
  -moz-border-radius: 0px 50px 50px 0;
  -ms-border-radius: 0px 50px 50px 0;
  border-radius: 0px 50px 50px 0;
  font-size: 18px;
  text-align: center;
}

#timeline .timeline-item .timeline-content h3::before {
  content: "";
  width: 1.5rem;
  aspect-ratio: 1;
  background: #C2A252;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  left: 0;
}

/* #timeline .timeline-item .timeline-content:before {
    content: "";
    position: absolute;
    left: 45%;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #ee4d4d;
  } */
#timeline .timeline-item .timeline-content.right {
  float: right;
}

/* #timeline .timeline-item .timeline-content.right:before {
    content: "";
    right: 45%;
    left: inherit;
    border-left: 0;
    border-right: 7px solid #ee4d4d;
  } */
#timeline .timeline-item .timeline-content.right h3::before {
  content: "";
  width: 1.5rem;
  aspect-ratio: 1;
  background: #C2A252;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
  left: auto;
}

#timeline .timeline-item .timeline-content.right h3 {
  -webkit-border-radius: 50px 0px 0px 50px;
  -moz-border-radius: 50px 0px 0px 50px;
  -ms-border-radius: 50px 0px 0px 50px;
  border-radius: 50px 0px 0px 50px;
}

.desk_none {
  display: none;
}

@media screen and (max-width: 768px) {
  #timeline {
    margin: 18px;
    padding: 0px;
    width: 90%;
  }

  .mobile_none {
    display: none;
  }

  .desk_none {
    display: block;
  }

  #timeline:before {
    left: 0;
  }

  #timeline .timeline-item .timeline-content {
    width: 90%;
    float: right;
  }

  #timeline .timeline-item .timeline-content:before,
  #timeline .timeline-item .timeline-content.right:before {
    left: 10%;
    margin-left: -6px;
    border-left: 0;
    border-right: 7px solid #ee4d4d;
  }

  #timeline .timeline-item .timeline-icon {
    left: 10px;
  }

  #timeline:before {
    content: "";
    height: calc(100% - 20%) !important;
  }

  #timeline .timeline-item .timeline-icon img.right_circle {
    width: 70px;
    left: -13px;
  }
}

@media screen and (min-width:769px) and (max-width:991px) {
  #timeline:before {
    content: "";
    height: calc(100% - 300px);
  }
}



.timeline-content .timeline-content-body {
  padding: 0px;
  text-align: center;
}






@media only screen and (max-width: 768px) {
  #timeline .timeline-item .timeline-icon {
    left: 16px;
  }

  #timeline .timeline-item .timeline-content {
    margin-top: -8px;
  }

  .title.enquires {
    text-align: left;
  }

  p.descr {
    text-align: left;
  }
}