/* Base styles for the timeline */
.tpl-timeline {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Vertical line with breathing space */
.tpl-timeline::before {
  content: '';
  position: absolute;
  left: 11%;
  width: 0px;
  height: 95%;
  background: #e0e0e0;
  z-index: 1;
  transform: translateX(-50%);
}

/* Timeline entry */
.tpl-entry {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  min-height: 100px;
}

/* Animation on scroll */
.tpl-entry.tpl-visible {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

/* Year circle positioning */
.tpl-year {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transform: translateY(-50%);
}

/* Right-side years */
.tpl-entry:nth-child(odd) .tpl-year {
  left: calc(10% - 120px); /* Position left of center line */
}

/* Left-side years */
.tpl-entry:nth-child(even) .tpl-year {
  left: calc(90% + 60px); /* Position right of center line */
}

/* Connecting lines */
.tpl-year::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 4px;
  background: #4CAF50;
  z-index: 1;
}

/* Right-side connector */
.tpl-entry:nth-child(odd) .tpl-year::after {
  left: 100%;
  transform: translate(10px, -50%);
}

/* Left-side connector */
.tpl-entry:nth-child(even) .tpl-year::after {
  right: 100%;
  transform: translate(-10px, -50%);
}

/* Content boxes with spacing */
.tpl-content {
  position: relative;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border-top-left-radius: 5px 5px;
  border-bottom-left-radius: 5px 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eeeeee;
  border-left: 6px solid #4CAF50;
  width: 90%;
  margin: -10px 0%; /* Increased spacing from center line */
}

/* First content entry - no top margin */
.tpl-entry:first-child .tpl-content {
  margin-top: 0;
}

/* Right-aligned content */
.tpl-entry:nth-child(odd) .tpl-content {
  margin-left: calc(50% + 100px); /* Spaced from center line */
  float: right;
}

/* Left-aligned content */
.tpl-entry:nth-child(even) .tpl-content {
  margin-right: calc(50% + 100px); /* Spaced from center line */
  float: left;
  z-index: 1;
  border: 1px solid #eeeeee;
  border-top-right-radius: 5px 5px;
  border-bottom-right-radius: 5px 5px;
  border-right: 6px solid #4CAF50;
}

/* Clearfix */
.tpl-entry::after {
  content: '';
  display: table;
  clear: both;
}

/* Mobile Responsiveness */

@media (max-width: 1000px) {
  .tpl-timeline::before {
    left: 40px;
  }
	
	.head-right {
    color: #303641;
    font-weight: bold;
    text-align: center;
    font-size: 20px !important;
    line-height: 1.25;
    letter-spacing: -0.1rem;
	}
	
	.child-content .container .child--main h2 {
    font-size: 20px !important;
    color: #050505;
    margin-bottom: 0;
    line-height: 1.25;
}

  .tpl-year {
    left: 40px !important;
    transform: translateY(-50%);
  }

  .tpl-content {
    width: calc(100% - 100px);
    margin-left: 80px !important;
    margin-right: 0 !important;
    float: none !important;
  }

  .tpl-year::after {
    display: none;
  }
	
	
}



@media (max-width: 768px) {
  .tpl-timeline::before {
    left: 40px;
  }

  .tpl-year {
    left: 40px !important;
    transform: translateY(-50%);
  }

  .tpl-content {
    width: calc(100% - 100px);
    margin-left: 80px !important;
    margin-right: 0 !important;
    float: none !important;
  }

  .tpl-year::after {
    display: none;
  }
	
	
}

/* Keyframe for fade-in and move effect */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the animation to entries */
.tpl-entry.tpl-visible {
  animation: fadeInUp 1s ease-out;
}
