/* how_it_works.css - Page-specific styles for how_it_works.html */

/* Alternating Timeline Layout (Two Column) */
.guide-steps {
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
  counter-reset: step;
}

.guide-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.guide-step {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
  margin-bottom: 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  counter-increment: step;
}

/* Remove inheritance from static-pages.css */
.guide-step::before {
  content: none !important;
  display: none !important;
}

.guide-step h3 {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-contrast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-step p {
  margin: 0;
  line-height: 1.6;
}

.guide-step:nth-child(odd) {
  left: 0;
  text-align: left;
}

.guide-step:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Step Dot */
.guide-step::after {
  content: counter(step);
  position: absolute;
  top: 1.5rem;
  /* Align with the padded content (header) */
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-contrast);
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary-contrast);
  border-radius: 50%;
  z-index: 2;
  box-shadow: none;
}

.guide-step:nth-child(odd)::after {
  right: -17px;
}

.guide-step:nth-child(even)::after {
  left: -17px;
}

@media screen and (max-width: 768px) {
  .guide-steps::before {
    left: 20px;
  }

  .guide-step {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 0;
    text-align: left !important;
    margin-bottom: 2.5rem;
  }

  .guide-step::after {
    left: 4px !important;
    right: auto !important;
  }
}