.timeline-container {
  width: 100%;
  display: flex;
  padding: 40px 20px;
}

.timeline-outer {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 0 70px 0 20px; 
}

.timeline-line {
  position: absolute;
  right: 42px;
  top: 30px;
  bottom: 120px;
  width: 4px;
  border-radius: 2px;
  z-index: 1;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to bottom, #4f8cff, #38bdf8);
  border-radius: 2px;
  transition: height 0.3s ease-out;
  height: var(--line-progress);
}

.timeline-step {
  position: relative;
  margin-bottom: 50px;
  /* display: flex; */
  align-items: flex-start;
  gap: 20px;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9ca3af;
  font-weight: bold;
  z-index: 2;
  position: absolute; 
  right: -42px; 
  transition: all 0.3s ease;
}

.timeline-step.active .timeline-dot {
  border-color: #4f8cff;
  background-color: #4f8cff;
  color: white;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.2);
}

.timeline-content {
  flex: 1;
  padding-bottom: 20px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .timeline-dot {
       right: -42px; 
  }
  
}

@media (max-width: 768px) {
  .timeline-outer {
    padding: 0 50px 0 10px;
  }
  
  .timeline-line {
    top: 20px;
    right: 20px;
  }
  
  .timeline-dot {
    width: 28px;
    height: 28px;
    font-size: 13px;
    right: -42px;
  }
}