.timeline-container {
    width: 100%;
    overflow-x: auto;
  }
  
  .timeline {
    display: grid;
    grid-auto-columns: minmax(200px, 1fr);
    grid-auto-flow: column;
    grid-gap: 5px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #E00828;
    z-index: 1;
  }
  .timeline::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E00828;
    z-index: 0;
  }
  
  .timeline-item {
    position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  }
  
  .timeline-item-top {
    margin-bottom: 150%;
    justify-content: flex-end;
  }
  
  
  .timeline-item-bottom {
    margin-top: 150%;
  }
  
  .timeline-item-top::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 50%;
    background-image: linear-gradient(to bottom, #E00828 50%, transparent 50%);
    background-repeat: repeat-y;
    background-size: 2px 10px;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  .timeline-item-bottom::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 50%;
    background-image: linear-gradient(to bottom, #E00828 50%, transparent 50%);
    background-repeat: repeat-y;
    background-size: 2px 10px;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  
  .timeline-image {
    z-index: 1;
    width: 100%;
    height: 140px;
    object-fit: cover;
  }
  
  .timeline-content {
    background-color: #f9f9f9;
    padding: 10px;
    z-index: 1;
  }
  
  .timeline-year {
    font-size: 20px;
    font-weight: bold;
    padding: 0;
    color: #E00828;
  }
  
  .timeline-description {
    font-size: 16px;
    margin: 5px 0 0;
  }
/* CSS */
@media (max-width: 767px) {
  .timeline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  

  .timeline::before {
    display: none;
  }

  .timeline::after {
    display: none;
  }
  .timeline-item-top::before, .timeline-item-bottom::before{
    display: none;
  }

  .timeline-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
  }
  .timeline-item-bottom {
    margin-top: 0;
}
  .timeline-image {
    width: 30%;
    height: auto;
  }
  .timeline-item:nth-child(even) .timeline-image {
    order: 2;
    margin-right: 0;
  }

  .timeline-item:nth-child(even) .timeline-content {
    order: 1;
    margin-left: 0;
  }
  .timeline-content {
    width: 70%;
  }
}
