#timeline ul {
    --color: rgba(30, 30, 30);
    --bgColor: rgba(245, 245, 245);	
  --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(80rem, 90%);
  margin-inline: auto;
}

/* line */
#timeline ul::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
#timeline ul li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
#timeline ul li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 1;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
#timeline ul li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);

  text-align: center;
  background-color: var(--accent-color);

  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 ul li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  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 ul li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;

  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
#timeline ul li .title,
#timeline ul li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}
#timeline ul li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}
#timeline ul li .descr {
  padding-block-end: 1.5rem;
   padding-top: 16px;	
}

/* shadows */
#timeline ul li .title::before,
#timeline ul 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 ul li .title::before {
  bottom: calc(100% + 0.125rem);
}

#timeline ul li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  #timeline ul {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }
  #timeline ul::before {
    grid-column: 2;
  }
 #timeline ul li:nth-child(odd) {
    grid-column: 1;
  }
 #timeline ul li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  #timeline ul li:nth-child(2) {
    grid-row: 1/4;
  }

  #timeline ul li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  #timeline ul li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  #timeline ul li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}

/* Basic */

#timeline h2.tab-title {
  font-weight: 300;
}
#timeline h2.tab-title.tab-primary {
  color: #636983;
}
#timeline h2.tab-title.tab-success {
  color: #51a14c;
}
#timeline h2.tab-title.tab-default {
  color: #525252;
}
#timeline h2.tab-title.tab-warning {
  color: #b12222;
}
#timeline .container {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  margin: auto;
}

#timeline .tabs {
  text-align: left;
  /* position: absolute; */
}
#timeline .tabs input {
  position: absolute;
  opacity: 0;
  margin: 0;
  padding: 0;
}

#timeline .tabs .tabsShadow {
  width: 100%;
  padding: 10px;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  position: absolute;
  height: 35px;
  z-index: 0;
  top: 0;
  pointer-events: none;
}
#timeline .content {
  margin: 0px auto;
  text-align: left;
  color: #666;
  font-size: 16px;
  line-height: 20px;
  position: relative;
  height: 220px;
   background: hsl(232deg 16% 15%);

}
#timeline .content .item {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  position: absolute;
  padding: 10px 20px;
}

#timeline .content p {
  margin: 10px 0;
}

#timeline .glider {
  /* width: 110px; */
  height: 3px;
  background: linear-gradient(90deg, #5b3cc4 0%, #3c6cc4 100%);
  border-radius: 3px;
  position: absolute;
  box-shadow: 0px 0px 8px 0px rgba(91, 60, 196, 0.4);
  transition: all 0.3s;
}

#timeline #tab-1:checked + label {
  color: #80d0ff;
}

#timeline #tab-2:checked + label {
  color: #51a14c;
}

#timeline #tab-3:checked + label {
  color: #f1e070;
}

#timeline #tab-4:checked + label {
  color: #df9898;
}
#timeline #tab-5:checked + label {
  color: #f19770;
}
#timeline #tab-6:checked + label {
  color: #70aff1;
}
#timeline #tab-7:checked + label {
  color: #f13e3e;
}
#timeline #tab-8:checked + label {
  color: #f0ed08;
}
#timeline #tab-9:checked + label {
  color: #20d1b4;
}

#timeline #tab-4:checked ~ .glider {
  left: 339px;
}


#timeline #tab-1:checked ~ section #content-1,
#timeline #tab-2:checked ~ section #content-2,
#timeline #tab-3:checked ~ section #content-3,
#timeline #tab-4:checked ~ section #content-4,
#timeline #tab-5:checked ~ section #content-5,
#timeline #tab-6:checked ~ section #content-6,
#timeline #tab-7:checked ~ section #content-7,
#timeline #tab-8:checked ~ section #content-8,
#timeline #tab-9:checked ~ section #content-9
{
  opacity: 1;
  visibility: visible;
}



@media (max-width: 700px) {
  #timeline .tabs input + label,
  .glider {
    width: 70px;
  }
  #timeline #tab-1:checked ~ .glider {
    left: 0px;
  }
  #timeline #tab-2:checked ~ .glider {
    left: 73px;
  }
  #timeline #tab-3:checked ~ .glider {
    left: 146px;
  }
  #timeline #tab-4:checked ~ .glider {
    left: 219px;
  }
}

#timeline .tabs input + label {
    margin: 9px -1px;
    width: 11%;
    transition: all 0.3s;
    text-align: center;
    border: none;
    border-bottom: 0.5px solid #1d1e22;
    color: #e7e9f5;
    display: inline-block;
    -webkit-box-pack: center;
    padding: 37px 45px;
    height: 102px;
    vertical-align: top;
    /* justify-content: flex-start; */
    box-shadow: 1px 1px 2px 1px #231f20;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    background: #26292C;
    margin-bottom: 0.5px;
    border-radius: 7px 7px 0 0 !important;
    border-top: 1px solid #3B3D3F;
    letter-spacing: .1666666667em !important;
    background: hsl(232deg 6% 17%);
}

#timeline .tabs input + label:hover {
  color: #777;
}

#timeline .content {
    margin: 0px auto;
    text-align: left;
    color: #666;
    font-size: 16px;
    line-height: 20px;
    position: absolute;
    width: 100%;
    height: 296px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 10%);
    display: block;
    padding: 1.25rem;
    z-index: 2;
    background: #26292C;
    border-top: 1px solid #3B3D3F;
    background: hsl(232deg 16% 15%);
}
#timeline .card {
    display: inline-block!important;
    border-radius: 10px;
    border: none;
    margin: 1% 3%;
    z-index: 4 !important;
    position: relative;
    background: #16181A;
    border-top: 1px solid #3B3D3F;
    background: hsl(232deg 18% 8%);
    width: 93%;
    justify-content: center;
    /* text-align: center; */
}
p {
font-family: 'Roboto', sans-serif;
}
#timeline .content p {
    margin: 10px 15px 10px 0;
    letter-spacing: 0.75px;
    font-size: 16px;
    font-style: normal;
    color: #f0f2fc;
    line-height: 30px;
    margin-top: 10px;
	font-family: 'Roboto', sans-serif;
    font-weight: 300 !important;
}

#timeline h2.tab-title.tab-rule,
#timeline h2.tab-title.tab-cult,
#timeline h2.tab-title.tab-fault,
#timeline h2.tab-title.tab-premix,
#timeline h2.tab-title.tab-mix,
#timeline h2.tab-title.tab-warning,
#timeline h2.tab-title.tab-success,
#timeline h2.tab-title.tab-primary,
#timeline h2.tab-title.tab-default {
  display: inline-flex;
  color: #fff;
  background: linear-gradient(55deg, #f37 0%, #f93 80%);
  background-position: bottom center;
  margin-bottom: 0px !important;
  margin-top: 6px;
    text-fill-color: transparent !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-background-clip: text !important;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    -ms-background-clip: text;
    -ms-text-fill-color: transparent;
      text-transform: capitalize;
    font-size: 24px;
    letter-spacing: 0px;
      font-family: 'Roboto', sans-serif;
    font-weight: 800 !important;

}

#timeline h2.tab-title.tab-primary {
    background: linear-gradient(55deg, #5E18FF, #80d0ff);
}

#timeline h2.tab-title.tab-success {
    background: linear-gradient(10deg, #02CE85, #02CEAB);
}

#timeline h2.tab-title.tab-primary {
    background: linear-gradient(300deg, hsl(205deg 100% 50%), hsl(215deg 100% 50%), hsl(245deg 100% 55%), #750EFF);
  background: linear-gradient(60deg, hsl(202deg 100% 75%),hsl(205deg 100% 64%),hsl(230deg 100% 75%), hsl(270deg 100% 72%));
}

#timeline h2.tab-title.tab-warning {
    background: linear-gradient(70deg, #d0639e, #969df4);
}

#timeline h2.tab-title.tab-mix {
    background: linear-gradient(70deg, #f6d559, #f19770);
}

#timeline h2.tab-title.tab-premix {
    background: linear-gradient(70deg, #70aff1, #7850de);
}

#timeline h2.tab-title.tab-fault {
    background: linear-gradient(70deg, #f13e3e, #20d19a);
}

#timeline h2.tab-title.tab-cult {
    background: linear-gradient(70deg, #db9987, #f0ed08);
}

#timeline h2.tab-title.tab-rule {
    background: linear-gradient(70deg, #20d1b4, #dbda87 );
}

#timeline .tabs input {
  position: absolute;
  opacity: 0;
  margin: auto !important;
  padding: 0;
}
#timeline label.tab.tab-primary {
  border-radius: 6px 0 0 6px;
}
#timeline label.tab.tab-warning {
  border-radius: 0 6px 6px 0;
}

#timeline #tab-1:checked ~ .glider {
  left: 0%;

}

#timeline #tab-2:checked ~ .glider {
    left: 11%;
    background: linear-gradient(10deg, #02ce38, #02ce85);
}
#timeline #tab-3:checked ~ .glider {
  background: linear-gradient(
    90deg,
    #faffcc 0%,
    #f5eea3 10%,
    #ffe48a 40%,
    #ffb54d 65%,
    #ff974d 85%,
    #ff8052 100%
  );
  left: 22.2%;
}
#timeline #tab-4:checked ~ .glider {
  background: linear-gradient(90deg, #b9326f 0%, #ff5ddc 100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 33.3% !important;
}

#timeline #tab-5:checked ~ .glider {
  background: linear-gradient(90deg, #f19770 0%, #f6d559 100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 44.3% !important;
}

#timeline #tab-6:checked ~ .glider {
  background: linear-gradient(90deg, #70aff1 0%, #7850de 100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 55.2% !important;
}
#timeline #tab-7:checked ~ .glider {
  background: linear-gradient(90deg, #f13e3e 0%, #20d19a 100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 66.4% !important;
}
#timeline #tab-8:checked ~ .glider {
  background: linear-gradient(90deg, #db9987 0%, #f0ed08 100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 77.6% !important;
}
#timeline #tab-9:checked ~ .glider {
  background: linear-gradient(90deg, #20d1b4 0%, #dbda87  100%);
  box-shadow: 0px 0px 8px 0px rgba(231, 13, 93, 0.57);
  left: 88.6% !important;
}

#timeline #tab-1:checked ~ .glider,
#timeline #tab-2:checked ~ .glider,
#timeline #tab-3:checked ~ .glider,
#timeline #tab-4:checked ~ .glider,
#timeline #tab-5:checked ~ .glider,
#timeline #tab-6:checked ~ .glider,
#timeline #tab-7:checked ~ .glider,
#timeline #tab-8:checked ~ .glider,
#timeline #tab-9:checked ~ .glider {
  width: 11%; /* or adjust the percentage based on your layout */
}

#timeline .glider {
    /* width: 11%; */
    padding: 0px 13px;
    height: 4.5px;
    border-radius: 0 0 1px 1px;
    position: absolute;
    box-shadow: 0px 0px 8px 0px hsl(262deg 100% 70% / 70%);
    background: linear-gradient(113deg, hsl(260deg 100% 64%) 0%, hsl(190deg 100% 55%) 100%);
    transition: all 0.3s;
    top: 109px;
    z-index: 2;
}

#timeline span.numit {
    font-size: 9px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #ffffff;
    margin-right: 2px;
    margin-left: -2px;
    padding: 0;
    text-shadow: 0.5px 0.5px 0.5px #2d3748;
}