.timeline-section {
  background: #fff;
  padding: 80px 20px;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #606060;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0px;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #35b748;
  border-radius: 50%;
  z-index: 2;
}

.timeline-img {
  width: 100%;
  max-width: 400px;
}

.timeline-img img {
  width: 100%;
  border-radius: 8px;
}

.timeline-content {
  background: #e8f8ec;
  padding: 20px 30px;
  border-left: 8px solid #35b748;
  max-width: 460px;
  position: relative;
  border-radius: 8px;
}
.timeline-txt{
  font-size: 24px;
  font-family: var(--heading-font);
  line-height: 160%;
  font-weight: 600;
}
.timeline-content p {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 16px;
 
  color: #606060;
}
.year-badge-img {
    /* max-width: 263px; */
    position: relative;
    width: 170px;
    height: 40px;
    background-image: url(http://localhost:8080/egearz_frontend/assets/Our%20History/history-year.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex
;
    align-items: center;
    justify-content: flex-start;
}
.year-badge-img .year-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
}



.timeline-item.left .timeline-content::after,
.timeline-item.right .timeline-content::after {
  content: '';
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.timeline-item.left .timeline-content::after {
  right: -20px;
  border-left: 20px solid #e8f8ec;
}

.timeline-item.right .timeline-content::after {
  left: -20px;
  border-right: 20px solid #e8f8ec;
}

.timeline-item.right .timeline-img {
  order: 1;
}

.timeline-item.right .timeline-content {
  order: 2;
  margin-left: 20px;
}

.timeline-item.left .timeline-img {
  order: 2;
}

.timeline-item.left .timeline-content {
  order: 1;
  margin-right: 20px;
}


/* ✅ Responsive Styles */
@media (max-width:991px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item  {
    flex-direction: column-reverse;
    align-items: flex-start;
    margin: 50px 0;
    padding-left: 30px;
  }

  .timeline-item .left {
    flex-direction: column-reverse!important;
    align-items: flex-start!important;
    margin: 50px 0!important;
    padding-left: 30px!important;
  }

  .timeline-item::after {
    left: 20px;
    top: 0;
  }

  .timeline-img,
  .timeline-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .timeline-content {
    margin-top: 20px;
    border-left: none;
    border-top: 6px solid #35b748;
    padding: 15px 20px;
  }

  .timeline-content::after {
    display: none;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin: 0;
  }

  .timeline-txt {
    font-size: 20px;
  }

  .timeline-content p {
    font-size: 15px;
  }
}

/* @media (max-width: 768px) {
  .timeline-container::before {
    left: 10px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
  }

  .timeline-item::after {
    left: 10px;
  }

  .timeline-img, .timeline-content {
    width: 100%;
    margin: 0;
  }

  .timeline-content {
    margin-top: 20px;
  }

  .timeline-content::after {
    display: none;
  }
} */
