/* TIMELINE BASE */



.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ccc;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-entry {
  position: relative;
  width: 100%;
  margin: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.5s ease-out;
}

.timeline-entry.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  position: relative;
  width: 45%;
}

.timeline-left .timeline-content {
  margin-right: 55%;
  text-align: right;
}


.timeline-entry.stagger {
  margin-top: -180px !important;
}

.timeline-right .timeline-content {
  margin-left: 55%;
  text-align: left;

}

/* Connection lines */
.timeline-left::before,
.timeline-right::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 30px;
  height: 4px;
  background-color: #ccc;
  z-index: 1;
}

.timeline-left::before {
  right: calc(50% - 2px);
}

.timeline-right::before {
  left: calc(50% - 2px);
}

.timeline-date {
  font-size: 30px;
  font-weight: bold;
  color: #065EA6;
}

.timeline-image img {
	max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 0 auto 15px;
}

.timeline h3 {
  text-transform: none;
	font-size: 22px;
	line-height: 26px;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-content,
  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .timeline-right .timeline-content {
    margin-top: 0;
  }

  .timeline::before {
    left: 20px; /* Move line to left */
  }

  .timeline-left::before,
  .timeline-right::before {
    display: none;
  }
}
