.cd-horizontal-timeline {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2em auto;
}

.cd-horizontal-timeline::before {
  content: '';
  display: table;
  clear: both;
}

.timeline {
  position: relative;
  height: 100px;
  margin: 2em 0;
}

.events-wrapper {
  position: relative;
  height: 100%;
  margin: 0 40px;
  overflow: hidden;
}

.events {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 35px;
  height: 2px;
  background: #dfdfdf;
  width: 1000px;
  transition: transform 0.4s;
}

.events a {
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-align: left;
  font-size: 14px;
  padding: 0.5em;
  background: #f5f5f5;
  border-radius: 2px;
  white-space: nowrap;
  transform: translateX(-50%);
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

.events a.selected {
  background: #bd9a5f;
  color: #fff;
}

.filling-line {
  position: absolute;
  top: 35px;
  height: 2px;
  background: #bd9a5f;
  z-index: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.4s;
}

.cd-timeline-navigation a {
  position: absolute;
  top: 30px;
  width: 30px;
  height: 30px;
  background: #dfdfdf;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.cd-timeline-navigation a.prev {
  left: 0;
}

.cd-timeline-navigation a.next {
  right: 0;
}

.events-content {
  position: relative;
  width: 100%;
  margin-top: 30px;
}

.events-content li {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  width: 100%;
}

.events-content li.selected {
  display: flex;
}

.timeline-cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #bd9a5f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.timeline-cta-button:hover {
  background-color: #000000; 
  color: #ffffff;
}

.events-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cd-horizontal-timeline .events a {
  white-space: nowrap;
}
