.t888-history-wrapper {
  position: relative;
  width: 100%;

}

.t888-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 700px;
}

.t888-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  z-index: 1;
}

.t888-timeline-item {
  position: relative;
  width: calc(100% / var(--item-count));
  z-index: 2;
}

.t888-timeline-dot {
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 3;
  position: relative;
}

/* Hiển thị nội dung trên/dưới dòng timeline */
.t888-timeline-content-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  color: white;
}

.t888-timeline-item.top .t888-timeline-content-wrapper {
  bottom: calc(50% + 77px);
}

.t888-timeline-item.bottom .t888-timeline-content-wrapper {
  top: calc(50% + 52px);
}

/* Nội dung */
.t888-timeline-year {
  font-size: 18px;
  font-family: var(--font-family);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.t888-timeline-title {
  font-size: 18px;
  font-family: var(--font-family);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.t888-timeline-description {
  font-size: 18px;
  font-weight: 400;
    font-family: var(--font-family);
  line-height: normal;
  color: white;
  width: 106%;
}
@media (max-width: 1024px) {
.t888-timeline-title,
.t888-timeline-description,
.t888-timeline-year {
  font-size: 16px;
}

}
@media (max-width: 991px) {
.t888-timeline{
  min-height: 900px;
}
}
@media (max-width: 767px) {
  .t888-timeline {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-left: 20px;
    position: relative;
  }

  .t888-timeline-line {
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
  }

  .t888-timeline-item {
    width: 100%;
    margin-bottom: 60px;
  }

  .t888-timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    transform: translateY(0);
  }

  .t888-timeline-content-wrapper {
    position: relative;
    left: auto;
    transform: none;
    margin-left: 30px;
    top: auto !important;
    bottom: auto !important;
  }

  .t888-timeline-item.top .t888-timeline-content-wrapper,
  .t888-timeline-item.bottom .t888-timeline-content-wrapper {
   width: 90%;
  }
}
