.timeline-container {
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e9ecef 0%, #dee2e6 50%, #e9ecef 100%);
}

.timeline-month {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-month:last-child {
  margin-bottom: 0;
}

.timeline-month-header {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 60px;
}

.timeline-month-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-left: 60px;
}

.timeline-icon {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.timeline-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.timeline-date {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.timeline-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timeline-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-subject-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.timeline-subject-link:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .timeline-container {
    padding: 1rem 0;
  }

  .timeline-line {
    left: 16px;
  }

  .timeline-month-header {
    padding-left: 48px;
  }

  .timeline-event {
    padding-left: 48px;
  }

  .timeline-icon {
    left: 8px;
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  .timeline-content {
    padding: 0.75rem;
  }
}
