.timeline-mobile .timeline-desktop {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  padding-top: 2.5rem;
}

.timeline-mobile .timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  margin-top: 1rem;
}

.timeline-mobile .timeline-row::before {
  content: '';
  position: absolute;
  top: 0rem;
  left: 33px;
  width: 3px;
  height: calc(100% + 6%);
  background-color: #3cb2c9;
  z-index: 1;
}

.timeline-mobile .timeline-row:last-child::before {
  display: none;
}

.timeline-mobile .timeline-row .year {
  min-width: 70px;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 10px 0;
}

.timeline-mobile .timeline-row:last-child .year {
  color: #7f7f7f;
  background: #fff;
  padding: 10px 0;
}

.year p {
  text-align: start;
  margin-bottom: 0;
  padding: 0;
}

.timeline-row:last-child h5 {
  color: #7f7f7f;
}

.timeline-row:last-child p {
  color: #a8a8a8;
}

.timeline-row:last-child h5::after {
  background-color: #f2f2f2;
}

.timeline-mobile .timeline-events-container {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.timeline-mobile .timeline-events-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.timeline-mobile .timeline-events-scroll {
  display: flex;
  gap: 40px;
  padding-bottom: 0.5rem;
  min-width: max-content;
}

.timeline-mobile .timeline-row:last-child .timeline-events-container {
  opacity: 0.5;
}

.timeline-mobile .timeline-event {
  padding-top: 0;
  max-width: 100%;
  max-height: 100%;
}

.timeline-row:nth-last-child(2)::before {
  background: linear-gradient(
    to bottom,
    #3cb2c9 0%,
    #3cb2c9 70%,
    hsla(190, 57%, 51%, 0.1) 100%
  );
}

.timeline-mobile .year p {
  font-size: 20px !important;
  padding-left: 0.35rem;
}

.timeline-mobile .timeline-event h5::after {
  content: '';
  position: absolute;
  width: 0.938rem;
  height: 0.938rem;
  left: 1.7rem;
  top: 0.313rem;
  border-radius: 3.125rem;
  background-color: #d9d9d9;
  z-index: 2;
}
.timeline-mobile .timeline-event h5::before {
  content: '';
  position: absolute;
  width: 2rem;
  height: 2rem;
  left: 1.2rem;
  top: -0.2rem;
  border-radius: 0rem;
  background-color: #ffffff;
  z-index: 2;
}
