.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #6372ff;
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-left {
  margin-right: calc(50% - 40px);
}

.timeline-right {
  margin-left: calc(50% - 40px);
}
.timeline-content {
  display: flex;
  align-items: flex-start;
  padding: 0;
  position: relative;
  font-size: 1em;
}

.timeline-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #eee;
  margin-right: 1.5em;
  /* Space between logo and details */
  margin-left: 0;
  margin-bottom: 0;
  /* Remove bottom margin since logo is now horizontal */
}

.timeline-logo-left {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #eee;
  margin-left: 1.5em;
  margin-bottom: 0;
  /* Remove bottom margin since logo is now horizontal */
}

.timeline-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.timeline-details h3 {
  margin: 0 0 0.2em 0;
}

.timeline-date {
  color: #555;
  font-size: 0.95em;
  margin-bottom: 0.3em;
}

.timeline-role {
  font-weight: 600;
  color: #2d4ea2;
  margin-bottom: 0.5em;
}

.timeline-left .timeline-content {
  margin-left: 80px;
  flex-direction: row-reverse;
  text-align: right;
}
.timeline-right .timeline-content {
  margin-right: 80px;
}

.timeline-text-left {
  line-height: 1.5em;
  color: #333;
}

.timeline-text-right {
  line-height: 1.5em;
  color: #333;
}


/* Responsive Design */
@media (max-width: 900px) {
  .timeline {
    max-width: 100%;
    padding: 1em 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-left,
  .timeline-right {
    width: 100%;
    left: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    margin: 0 0 0 3em;
    max-width: 90vw;
  }
}
