/* Timeline styles specific to about page */

.mb-12 {
  margin-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-background);
}

.feature-card--gold-top {
  border-top: 4px solid var(--color-gold);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-gold);
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.35rem; /* center the dot on the line */
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

.timeline__content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.timeline__content p {
  color: rgba(250, 249, 246, 0.8);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline__item {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
  }
  
  .timeline__item:nth-child(even) {
    justify-content: flex-end;
  }
  
  .timeline__item::before {
    left: 50%;
    transform: translateX(-50%);
    top: 0.5rem;
  }
  
  .timeline__year {
    width: 45%;
    text-align: right;
    padding-right: 2rem;
  }
  
  .timeline__content {
    width: 45%;
    padding-left: 2rem;
  }
  
  .timeline__item:nth-child(even) .timeline__year {
    order: 2;
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
  }
  
  .timeline__item:nth-child(even) .timeline__content {
    order: 1;
    text-align: right;
    padding-right: 2rem;
    padding-left: 0;
  }
}
