      /* Timeline container */
body.timeline .timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 800px;
}

/* Timeline vertical line (KEEP IT) */
body.timeline .timeline {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

body.timeline .timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--bg-timeline); /* was #1c3a57 */
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline items */
body.timeline .timeline-item {
  position: relative;
  margin: 10px 0;
  width: 50%;
  margin-top: -5%;
}

body.timeline .timeline-item:first-child {
  margin-top: 10px;
}

/* Proper alignment to avoid overlap */
body.timeline .timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  transform: translateX(-10%);
}

body.timeline .timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  transform: translateX(10%);
}

/* Card */
body.timeline .timeline-item-content {
  position: relative;
  padding: 10px;
  background: var(--bg-surface);          /* was #fff */
  border-radius: 8px;
  border: 1px solid var(--border-table-row); /* was #ddd */
  box-shadow: var(--evidence-shadow);     /* was rgba(0,0,0,0.1) */
  z-index: 2;
}

/* Connector arrows */
body.timeline .timeline-item-content:before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

body.timeline .timeline-item:nth-child(odd) .timeline-item-content:before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bg-surface); /* was #fff */
}

body.timeline .timeline-item:nth-child(even) .timeline-item-content:before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg-surface) transparent transparent; /* was #fff */
}

/* Filter Buttons */
body.timeline .filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

body.timeline .filter-button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--button-bg);   /* was #1c3a57 */
  color: var(--button-text);           /* was #fff */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.timeline .filter-button:hover {
  background-color: var(--button-bg-hover); /* was #ff8c00 */
}

body.timeline .filter-button.active {
  background-color: var(--primary); /* was #ff8c00 */
}

/* Titles and descriptions (different emphasis) */
body.timeline .timeline-item h3 {
  margin: 0;
  color: var(--text-main);    /* was #1c3a57 */
  font-size: 0.95rem;         /* slightly stronger */
  font-weight: 800;
  line-height: 1.25;
}

body.timeline .timeline-item p {
  margin: 6px 0 0;
  color: var(--text-muted);   /* was #555 */
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Links */
body.timeline .timeline-item a {
  color: var(--sort-active-bg); /* was #007bff */
  text-decoration: none;
}

body.timeline .timeline-item a:hover {
  text-decoration: underline;
}