.horizontal-timeline-section {
  text-align: center;
}
.horizontal-timeline-section .title span{
  color: #FFAA17;
}
.timeline-wrap {
  height: 400px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outer-wrap {
  display: flex;
  justify-content: center;
  align-items:center;
}
.outer-wrap .main-wrap {
  display: flex;
  justify-content: center;
  padding: 0;
  flex-wrap: wrap;
}
.timeline {
  width: 10%;
}
.horizontal-line {
  position: relative;
  /*   background-color: #0d6a3d;
  height: 3px;
  border-radius: 4px;
  margin: 5em 0; */
}
.vertical-line {
  position: absolute;
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  width: 100%;
}
.vertical-line svg {
  width: 90%;
margin-bottom: 25px;}
.number {
  position: relative;
  text-align: center;
  top: -66px;
  color: #0d6a3d;
}
.number-box {
  content: "";
  width: 60px;
  height: 60px;
  border-radius: 10px;
  font-family: 'Pangea Afrikan Trial';
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  background-color: #4096FF;
  margin: 0; 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  transform: translateX(-50%);
  position: absolute;
  top: 70px;
  left: 50%;
}
.panel {
  position: relative;
}
.content {
  width: 100%;
  padding: 15px 0;
  text-align: center;
  position: relative;
  top: 80px;
  word-wrap: break-word;
  font-family: 'Pangea Afrikan Trial';
  hyphens: auto;
  word-break: break-word;
  white-space: normal;
}
.content *{
  font-family: 'Pangea Afrikan Trial';
}
.timeline:nth-child(even) .panel {
  top: -100%;
}
.timeline:nth-child(even) .panel .content {
  top: 0px;
  margin-bottom: 2px;
}

.timeline:nth-child(even) .date {
  top: -5px;
}
.timeline:nth-child(even) .date:after {
  top: -37px;
}

/* @media only screen and (max-width: 500px) {

  .timeline {
    margin-top: 0px;
  }
  .timeline .main-wrap {
    flex-direction: column;
  }

  /*   .horizontal-line {
  height: auto;
  background: white;
} 

  .vertical-line {
    border-left: 6px solid #0d6a3d;
    height: 100%;
    position: absolute;
    left: 0;
  }

  .date {
    left: 10px;
    top: -40px;
  }

  .date::after {
    left: -7px;
    top: 200%;
  }

  .content {
    width: 175px;
    top: -50px;
    left: 45px;
  }


  .timeline:nth-child(even) .panel {
    top: -50px;
  }

  .timeline:nth-child(even) .date {
    top: -40px;
  }
  .timeline:nth-child(even) .date:after {
    top: 40px;
  }
} 










/* ========================================= */
/* ✅ IMPROVED RESPONSIVE MEDIA QUERIES */
/* ========================================= */

/* ---------- 1200px and below ---------- */
@media (max-width: 1200px) {
  .timeline {
    width: 13%;
  }
  .number-box {
    width: 55px;
    height: 55px;
    font-size: 26px;
    top: 65px;
  }
  .content {
    top: 100px;
    font-size: 15px;
    line-height: 1.4;
  }
  .timeline:nth-child(even) .panel {
    top: -80%;
  }
  .timeline:nth-child(even) .panel .content {
    top: -10px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .timeline-wrap {
    flex-wrap: nowrap;
    height: auto;
    justify-content: center;
    align-items: flex-start;
    gap: 2px; /* smaller horizontal gap between boxes */
  }

  .vertical-line {
    display: none !important;
  }

  .timeline {
    width: 8%;
    position: relative;
    text-align: center;
    margin-top:75px;
  }

  .number-box {
    width: 55px;
    height: 55px;
    font-size: 24px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    margin-bottom: 10px; /* tighter gap between box and text */
  }

  .panel {
    position: relative;
    top: 0;
  }

  .content {
    width: 100%;
    text-align: center;
    position: relative;
    top: -80;
    font-size: 15px;
    
    margin: 0 auto;
  }

  /* Keep all even-numbered timelines aligned the same */
  .timeline:nth-child(even) .panel,
  .timeline:nth-child(even) .panel .content {
    top: 0;
  }
}

/* ---------- 780px and below ---------- */
@media (max-width: 780px) {
  .timeline-wrap {
    flex-direction: column;
    height: auto;
    gap: 40px;
  }

  .timeline {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }

  .number-box {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 10px auto -70px;
  }

  .content {
    position: relative;
    top: 10;
    width: 85%;
    font-size: 14px;
    margin: 0 auto;
  }

  /* Reset all offset for stacked layout */
  .timeline:nth-child(even) .panel {
    top: 0;
  }
  .timeline:nth-child(even) .panel .content {
    top: 10;
  }

  .vertical-line {
    display: none;
  }
}

/* ---------- 576px and below ---------- */
@media (max-width: 576px) {
  .timeline-wrap {
    gap: 28px;
  }
  .number-box {
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 8px;
  }
  .content {
    width: 90%;
    font-size: 13px;
    line-height: 1.4;
  }
}

/* ---------- 400px and below ---------- */
@media (max-width: 400px) {
  .timeline-wrap {
    gap: 24px;
  }
  .number-box {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .content {
    width: 95%;
    font-size: 12px;
  }
}





