/* Card container */

.timeline-cards {
  position: relative;
  /*max-width: 800px;*/
  /*max-width: 700px;*/
}

/* setting padding based on even or odd */

.timeline-cards:nth-child(odd) {
  padding: 50px 0 50px 50px;
}

.timeline-cards:nth-child(even) {
  padding: 50px 50px 50px 0;
}

@media (max-width: 991px) {
  .timeline-cards:nth-child(even), .timeline-cards:nth-child(odd) {
    padding: 30px !important;
  }
}

@media (min-width: 992px) {
  .timeline-cards:nth-child(even) {
    text-align: end;
  }
}

/* Global ::before */

.timeline-cards::before {
  content: "";
  position: absolute;
  width: 50%;
  border-style: solid;
  /*border-image: linear-gradient(359.1deg, #1D1D1B 1.2%, #A2A4A8 35.59%, #EFF4FF 98.3%);*/
  /*border-image-slice: 1;*/
  /*border-radius: 50px !important;*/
  border: solid var(--bs-primary);
  /*border-radius: 50px;*/
  /*border: 10px solid transparent;*/
  /*background: linear-gradient(359.1deg, #1D1D1B 1.2%, #A2A4A8 35.59%, #EFF4FF 98.3%);*/
  /*-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);*/
  /*-webkit-mask-composite: xor;*/
  /*mask-composite: exclude;*/
}

/* Setting the border of top, bottom, left */

.timeline-cards:nth-child(odd)::before {
  left: 0.5px;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

@media (min-width: 767px) {
  .timeline-cards:nth-child(odd)::before {
    bottom: -4.5px !important;
  }
}

/* Setting the border of top, bottom, right */

.timeline-cards:nth-child(even)::before {
  right: 0.1px;
  top: 0px;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */

.timeline-cards:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */

.timeline-cards:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */

.timeline-cards:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */

.info {
  display: flex;
  flex-direction: column;
  background: #333;
  color: gray;
  border-radius: 10px;
  padding: 10px;
}

/* Title of the card */

.title {
  color: var(--bs-primary);
  position: relative;
}

/* Timeline dot */

.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  border: 3px solid var(--bs-primary);
}

/* text right if the card is even */

.timeline-cards:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */

.timeline-cards:nth-child(odd) > .info > .title::before {
  left: -45px;
}

/* setting dot to the right if the card is odd */

.timeline-cards:nth-child(even) > .info > .title::before {
  right: -45px;
}

.timeline-cards h2 {
  font-size: 40px;
  font-weight: 700;
  font-family: var(--primary-font);
  color: var(--bs-secondary);
}

@media (max-width: 991px) {
  .timeline-cards h2 {
    font-size: 20px !important;
  }
}

.padding-bt {
  padding-bottom: 50px;
}

.padding-tp {
  padding-top: 50px;
}

@media (max-width: 576px) {
  .timeline-img {
    width: 25%;
  }
}

@media (min-width: 991px) {
  .timeline-cards h2 > br {
    display: none !important;
  }
}

