.senate-timeline {
  background: #f5f5f5;
  padding: 40px 0;
}

.senate-timeline .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-header {
  text-align: left;
  margin-bottom: 40px;
  padding: 0 40px;
}

.timeline-header h1 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 16px;
  text-align: center;
}

.timeline-header p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.timeline-stats h2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #003366;
  margin: 20px 0 10px;
}

.timeline-stats ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.timeline-stats li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.timeline-header a {
  color: #0066cc;
  text-decoration: underline;
}

.timeline-funding {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 16px;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #003366;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 4px solid #003366;
  border-radius: 50%;
  top: 24px;
  z-index: 1;
}

.timeline-left::after {
  right: -8px;
}

.timeline-right::after {
  left: -8px;
}

.timeline-card {
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 12px;
}

.timeline-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-clip {
  display: inline-block;
  margin-top: 12px;
  color: #003366;
  font-weight: 600;
  text-decoration: none;
}

.timeline-clip:hover {
  text-decoration: underline;
}

.timeline-clip .play-icon::before {
  content: '\25B6';
  margin-right: 4px;
}

.timeline-year-marker {
  position: relative;
  width: 100%;
  text-align: center;
  clear: both;
  padding: 20px 0;
  z-index: 2;
}

.timeline-year-marker .year-label {
  background: #003366;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
}

.timeline-pair {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.timeline-pair::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 4px solid #003366;
  border-radius: 50%;
  top: 24px;
  left: 50%;
  margin-left: -8px;
  z-index: 1;
}

.timeline-pair .timeline-item {
  width: 50%;
  position: static;
}

.timeline-pair .timeline-item::after {
  display: none;
}

.timeline-pair .timeline-left {
  left: auto;
}

.timeline-pair .timeline-right {
  left: auto;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
    left: 0 !important;
  }

  .timeline-item::after {
    left: 12px !important;
    right: auto !important;
  }

  .timeline-header h1 {
    font-size: 1.5rem;
  }

  .timeline-pair .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
    left: 0 !important;
  }

  .timeline-pair::after {
    left: 20px;
    margin-left: 0;
  }
}
