/* CAREER TIMELINE (USED ON THE ABOUT PAGE) */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* The line runs from under each marker to the top of the next one, so the last item has none */
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 24px;
  border-left: 2px solid var(--color-border);
}

.timeline-marker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.card .timeline-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.timeline-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Lines the name up with the middle of the marker */
  padding-top: 0.6rem;
}

.timeline-name {
  color: var(--color-text-primary);
}

.timeline-body .list {
  gap: 1rem;
}

@media (max-width: 768px) {
  .timeline-item {
    gap: 1rem;
  }

  /* Long titles like the degree wrap instead of pushing the dates off the card */
  .timeline-body .list > .entry > .heading {
    min-width: 0;
  }
}
