.timeline-section {
  position: relative;
  padding: 4rem 2rem 0rem;
  background: #fff;
}
.timeline-content {
  direction: ltr;
  text-align: left;
}
.timeline-row.reverse .timeline-content {
  text-align: right;
}
.timeline-inner {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  height: auto !important;
	 overflow: visible;
}
.timeline-line {
  position: absolute;
  top: 0;
height:100%;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #F36d24 20%, #D41c5a 35%, #692c8b 50%, #00addc 65%, #97c93f 80%, #fbd603 95%);
  border-radius: 6px;
  z-index: 0;
  transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-end-cap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%); /* offset it just below */
  width: 20px;
  height: 20px;
  background: #fff; /* match the section background */
  border: 6px solid #692c8b; /* last color in gradient or match your marker */
  border-radius: 50%;
  z-index: 2;
}
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
 align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
	  min-height: 400px;   /* ← add this */
}
.timeline-image {
	margin-right:0;
	margin-left: auto;
}
.reverse .timeline-image {
	margin-left:0;
}
@media (min-width: 769px){
.timeline-row.reverse {
  grid-template-columns: 1fr 40px 1fr !important;
	/*direction: rtl;*/
}

.reverse .timeline-col {
	text-align:left;
	}
}

.timeline-section-title {
	text-align: center;
	text-transform:uppercase;
	padding:0rem 0rem 3rem;
}
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 6px solid #D60056;
  border-radius: 50%;
  z-index: 2;
}

.timeline-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
transition: transform 0.4s ease;
}

.timeline-image:hover img {
  transform: scale(1.05) rotateZ(-1deg);
}
.timeline-marker.is-visible {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.timeline-marker.highlight {
  background: #d41c5a;
  border-color: #fff !important;
}

.timeline-content {
 /* max-width: 500px;*/
	position:relative;
}

.timeline-year {
  color: #F36d24;
  margin: 0 0 10px;
  font-weight: bold;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}
@media (max-width: 768px) {

  .timeline-col.timeline-center {
 /* Adjust until it aligns with the date visually */
  }

	.timeline-row.reverse .timeline-content {
		text-align:left;}
	.timeline-line {
    left: 10px; /* or match your left grid column width */
    transform: none;
    width: 4px; /* thinner line for mobile */
  }
  .timeline-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px;
    direction: ltr !important; /* override reverse grid flip */
  }

  .timeline-marker {
    position: relative;
    left: -15%;
    transform: none;
    margin-left: 0;
    margin-right: auto;
    width: 30px;
    height: 30px;
    border-width: 5px;
  }

  .timeline-image,
  .timeline-content {
    grid-column: 2;
    padding: 0;
    max-width: 100%;
  }

  .timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .timeline-content {
    text-align: left;
  }
	.timeline-row.reverse .timeline-col.timeline-image,
.timeline-row .timeline-col.timeline-image {
  order: 1;
}

.timeline-row.reverse .timeline-col.timeline-content,
.timeline-row .timeline-col.timeline-content {
  order: 2;
}

.timeline-row.reverse .timeline-col.timeline-center,
.timeline-row .timeline-col.timeline-center {
  order: 3;
}
}

/* Hide mobile version of date on desktop */
.timeline-date {
  display: none;
}

/* Only show the mobile layout date and hide desktop one on smaller screens */
@media (max-width: 768px) {
  .timeline-date {
    grid-area: date;
    display: block;
    font-weight: bold;
    font-size: 1.6rem;
    color: #F36d24;
    margin-top: 0.25rem;
  }

  .timeline-year.original-date {
    display: none;
  }

  .timeline-row {
    grid-template-rows: auto auto;
    grid-template-areas:
      "dot date"
      "dot content";
  }

  .timeline-col.timeline-center {
    grid-area: dot;
  }

  .timeline-col.timeline-content {
    grid-area: content;
  }
	.timeline-end-cap {
    position: absolute;
    bottom: 0;
    left: 4%;
}

/* Restore the original date display on desktop */
@media (min-width: 769px) {
  .timeline-date {
    display: none;
  }

  .timeline-year.original-date {
    display: block;
  }
}