
.responsive-container {
  display: flex;
  flex-direction: column-reverse; /* Stacks elements vertically */
  gap: 16px;              /* Adds spacing between items */
}
@media (min-width: 768px) {
  main {
    margin-left: 15%;       /* Pushes it slightly left of center */
    margin-right: auto;
  }
}
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Background track line */
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  width: 4px;
  height: 100%;
  background: #f3ecec;
  z-index: 1;
}

/* Active filling line */
.dynamic-progress-line {
  position: absolute;
  left: 27px;
  top: 0;
  width: 4px;
  height: 0%; 
  background: #a07d7d;
  z-index: 2;
  transition: height 0.1s ease-out;
}

.timeline-row {
  display: flex;
  position: relative;
  margin-bottom: 30px;
  align-items: flex-start;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f3ecec;
  border: 4px solid #e1cbcb;
  margin-left: 20px;
  margin-right: 30px;
  z-index: 3;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
  top: 60px;
}

/* Triggered state for marker node */
.timeline-row.visible .timeline-marker {
  border-color: #a07d7d;
  background: #a07d7d;
  transform: scale(1.1);
}

.timeline-contents {
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Triggered state for text container */
.timeline-row.visible .timeline-contents {
  opacity: 1;
  transform: translateX(0);
}