 .timeline-slider {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
  overflow: hidden;
  padding: 20px 0;
  box-sizing: border-box;
  font-family: Montserrat;
}

 .timeline-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.nav-arrow {
  background: #88c74a;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

.nav-arrow:hover {
  background-color: #001a40;
}

.nav-arrow:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  }


.timeline-line-container {
  flex-grow: 1;
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}



.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #88c74a;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-nodes-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  z-index: 3;
}


.timeline-nodes-wrapper::-webkit-scrollbar {
  display: none;
}

.timeline-nodes {
  display: flex;
  height: 100%;
  align-items: center;
  position: relative;
}

.timeline-node {
  position: relative;
  width: 30px;
  height: 30px;
  background-color: #88c74a;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: var(--node-spacing, 100px);
}

.timeline-node:last-child {
  margin-right: 0;
}


.timeline-node .node-year {
  position: absolute;
  top: 35px;
  white-space: nowrap;
  font-size: 1.3em;	
  color: #333;
  font-weight: bold;
}



.timeline-node.active {
  background-color: #fff;
  width: 52px;
  height: 52px;
  border: 3px solid #88c74a;
  transform: translateY(0);
}


.timeline-node.active .node-year {
  color: #000;
  top: 14px;
}

 
.timeline-content-wrapper {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.timeline-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  z-index: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}


.timeline-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}


.timeline-item.animate-out-left {
  opacity: 0;
  transform: translateX(-100%);
}

.timeline-item.animate-out-right {
  opacity: 0;
  transform: translateX(100%);
}


.timeline-item img {
  max-width: 300px;
  max-height: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-item p {
  max-width: 700px;
  font-family: Montserrat;
  line-height: 1.6; 
  font-size: 1.3em; 
  color: #000; 
  margin: 0;
}


@media (max-width: 768px) {

  .timeline-slider {
    width: 100%;
    margin: 20px auto;
    padding: 10px 0;
  }


  .timeline-navigation {
    margin-bottom: 20px;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
  }

  .nav-arrow svg {
    width: 20px;
    height: 20px;
  }


  .timeline-line-container {
    height: 50px; 
  }

  .timeline-node {
    width: 15px;
    height: 15px;
    margin-right: var(--node-spacing, 60px); 
  }
 


  .timeline-node.active { 
    width: 42px; 
    height: 42px; 
  }
 
  .timeline-node .node-year { 
    font-size: 0.75em; 
    top: 22px; 
  }
 
  .timeline-content-wrapper { 
    min-height: 250px; 
  } 

  .timeline-item img { 
    max-width: 200px; 
    max-height: 150px; 
  } 


  .timeline-item p { 
    font-size: 0.9em; 
    padding: 0 10px;

  } 
}
