.timeline-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  display: flex;
  gap: 2rem;
  scroll-snap-type: x proximity; /* optional */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;
}

[dir="rtl"] .timeline-wrapper {
  direction: rtl; /* allow RTL when site language is RTL */
}

.timeline-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.timeline-entry {
  flex: 0 0 auto;
  display: inline-block;
  white-space: normal;
}

.timeline-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.timeline-dot-nav {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  transition: background 0.3s;
  padding: 0;
}

.timeline-dot-nav.active {
  background: var(--custom-primary-color-red);
}

.timeline-nav {
  background: none;
  border: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform 0.2s ease;
}

/* Create the arrow shape */
.timeline-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--custom-primary-color-red);;
  border-right: 2px solid var(--custom-primary-color-red);;
  transform-origin: center;
  transition: border-color 0.2s ease;
}

/* Left arrow */
.timeline-prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

/* Right arrow */
.timeline-next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Hover & disabled styles */
.timeline-nav:hover::before {
  border-color: #333;
}

.timeline-nav:disabled::before {
  border-color: #aaa;
  cursor: default;
}

html[dir="rtl"] .timeline-prev::before {
    transform: translate(-50%, -50%) rotate(45deg); 
}

html[dir="rtl"] .timeline-next::before {
    transform: translate(-50%, -50%) rotate(225deg); 
}

