/* base reset */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Arial, sans-serif; }

/* container */
.timeline-alt {
  position: relative;
  margin: 280px auto;
  padding: 0 20px;
}

.timeline-alt h1 {
  margin: 50px 0;
  text-align: center;
  font-size: 4rem;
}

/* grey center line */
.timeline-alt .line,
.timeline-alt .progress {
  position: absolute;
  left: 38.3%;              /* desktop offset */
  transform: translateX(-50%);
  width: 6px;
}
.timeline-alt .line {
  top: 195px; height: 100%;
  background: #e0e0e0;
  z-index: 0;
}
.timeline-alt .progress {
  top: 195px; height: 0;
  background: #FF5700;
  z-index: 1;
}

/* each event */
.timeline-alt .item {
  position: relative;
  margin: 60px 0;
  opacity: 0.6;
  transition: opacity 0.6s ease-in-out;
}
.timeline-alt .item.in-view {
  opacity: 1;
}

/* the dot */
.timeline-alt .item .dot {
  position: absolute;
  top: 40px;
  left: 38%;                /* desktop offset */
  width: 24px; height: 24px;
  background: #FF5700;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* content wrapper */
.timeline-alt .item.combined .content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6%;
}

/* image/card widths */
.timeline-alt .item.combined img {
  width: 35%;
  border-radius: 8px;
  display: block;
}
.timeline-alt .item.combined .card {
  width: 61%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* card typography */
.timeline-alt .card .label {
  display: block;
  color: #FF5700;
  font-size: 1.2rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-alt .card h3 {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #222;
}

/* -------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------- */

/* ≤1024px: shrink heading, pull line up a bit */
@media (max-width: 1024px) {
  .timeline-alt {
    margin: 220px auto;
  }
  .timeline-alt h1 {
    font-size: 3rem;
  }
  .timeline-alt .line,
  .timeline-alt .progress {
    top: 160px;
  }
}

/* ≤768px: stack content, center line & dot */
@media (max-width: 768px) {
  .timeline .item.combined .content .card-img {
    width: 100%;
  }

  .timeline .item.left.combined .content {
    flex-direction: column;
  }
  .timeline-alt {
    margin: 180px auto;
    padding: 0 15px;
  }
  .timeline-alt h1 {
    font-size: 2.5rem;
  }
  /* center the vertical line */
  .timeline-alt .line,
  .timeline-alt .progress {
    display: none;
  }
  .timeline-alt .item .dot {
    display: none;
  }
  /* stack image + card */
  .timeline-alt .item.combined .content {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-alt .item.combined img,
  .timeline-alt .item.combined .card {
    width: 100%;
  }
  .timeline-alt .item.combined img {
    margin-bottom: 20px;
  }
}

/* ≤480px: further tweaks for phones */
@media (max-width: 480px) {
  .timeline-alt {
    margin: 120px auto;
    padding: 0 10px;
  }
  .timeline-alt h1 {
    font-size: 2rem;
  }
  .timeline-alt .item {
    margin: 40px 0;
  }
  .timeline-alt .card .label {
    font-size: 1rem;
  }
  .timeline-alt .card h3 {
    font-size: 1.2rem;
  }
}
