.education-timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
}
.education-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color) 0%, rgba(var(--primary-color-rgb), 0.3) 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 10px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}
.timeline-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}
.timeline-date {
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  font-size: calc(var(--font-size-xs) * 0.95);
  font-weight: var(--font-weight-light);
  margin-bottom: 8px;
}
.timeline-title {
  margin: 0 0 5px;
  font-size: calc(var(--font-size-sm) * 0.95);
  color: var(--text-color);
  font-weight: var(--font-weight-normal);
}
.timeline-subtitle {
  margin: 0 0 10px;
  font-size: calc(var(--font-size-xs) * 0.95);
  color: var(--text-muted);
  font-weight: var(--font-weight-bold); 
}
.timeline-description {
  font-size: calc(var(--font-size-xs) * 0.9);
  color: var(--text-color);
  line-height: 1.5;
  font-weight: var(--font-weight-light);
}
.dark-theme .timeline-dot {
  border-color: var(--bg-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.4);
}
@media screen and (max-width: 768px) {
  .education-timeline {
    padding-left: 25px;
  }
  .timeline-dot {
    left: -29px;
    width: 14px;
    height: 14px;
  }
  .timeline-content {
    padding: 12px;
  }
}
@media screen and (max-width: 480px) {
  .education-timeline {
    padding-left: 20px;
  }
  .timeline-dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }
  .timeline-content {
    padding: 10px;
  }
  .timeline-title {
    font-size: var(--font-size-sm);
  }
  .timeline-subtitle {
    font-size: var(--font-size-xs);
  }
}
