/* Process Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-8) 0;
}

/* Central vertical track line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--color-border);
  transform: translateX(-50%);
  z-index: 1;
}

/* Individual timeline step block */
.timeline-step {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-bottom: var(--spacing-16);
  width: 50%;
  z-index: 2;
}

/* Odd steps on the right, even on the left */
.timeline-step:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  margin-left: 50%;
}

.timeline-step:nth-child(odd) {
  margin-right: 50%;
}

/* Timeline card content */
.timeline-card {
  width: 90%;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: var(--spacing-6) var(--spacing-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.timeline-step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-2);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.timeline-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Timeline center connector node dot */
.timeline-node {
  position: absolute;
  top: 24px;
  right: -6px;
  width: 12px;
  height: 12px;
  background-color: var(--color-bg-white);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-full);
  z-index: 3;
  transform: translateX(50%);
  transition: background-color var(--transition-fast);
}

.timeline-step:nth-child(even) .timeline-node {
  left: -6px;
  right: auto;
  transform: translateX(-50%);
}

.timeline-card:hover + .timeline-node,
.timeline-card:hover ~ .timeline-node {
  background-color: var(--color-secondary);
  box-shadow: 0 0 8px var(--color-secondary);
}

/* Responsive adjustment for Mobile and Tablet */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-step {
    width: 100%;
    justify-content: flex-start;
    padding-left: 40px;
    padding-bottom: var(--spacing-12);
  }
  
  .timeline-step:nth-child(even) {
    margin-left: 0;
    justify-content: flex-start;
    padding-left: 40px;
  }
  
  .timeline-step:nth-child(odd) {
    margin-right: 0;
  }
  
  .timeline-card {
    width: 100%;
  }
  
  .timeline-node {
    left: 20px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: 22px;
  }
}
