/** Demo **/
body {
    margin: 0;
}
header {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
}


/** Styles **/

.history-section {
 padding: 100px 0; 
}
 
#timeline {
  padding: 0;
  border-left: 2px solid #D4D700;
}
.tl-container {
  width: 100%;
}
.heading-side-inner {
  padding: 0 50px;
}
.heading-side h1{
  font-weight: 400;
  font-size: 90px;
  line-height: 81px;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0 0 50px 0;
}
.heading-description {
font-weight: 300;
font-size: 22px;
line-height: 36px;
letter-spacing: -0.015em;
color: #FFFFFF;
}
.tl-text {
  font-weight: 400;
  font-size: 22px;
  line-height: 36px;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
.tl-year {
  font-weight: 400;
  font-size: 90px;
  line-height: 71px;
  letter-spacing: -0.015em;
  color: #D4D700;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .tl-year {
    font-size: 60px;
    line-height: 55px;
    margin-bottom: 30px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .tl-item {
    width: 100%;
    float: none;
    transform: none;
  }
  .tl-item-inner {
    flex-direction: column-reverse; /* Stacks image above content */
    align-items: center;
    text-align: center; /* Center-align content for mobile */
  }
  .tl-image {
    margin: 0 0 15px 0; /* Adjust margins for spacing */
    width: auto; /* Adjust image size for mobile */
  }
  .tl-content {
    text-align: center; /* Center-align text on mobile */
  }
  .tl-year {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 20px;
  }
}

.tl-item.left {
  float: left; /* Align to the left */
  transform: translateX(-20px); /* Slightly move it left */
}

.tl-item.right {
  float: right; /* Align to the right */
  transform: translateX(20px); /* Slightly move it right */
}
 
.tl-item-inner {
  display: flex;
  flex-direction: row-reverse; /* Reverses the order, placing image on the right */
  align-items: center;
  padding: 25px 50px;
}

.tl-item:first-child .tl-item-inner {
  padding-top: 0;
}
img {
    width: 100%;
}
.tl-item {
  position: relative; 
}
.tl-item:before {
    content: ' ';
    height: 20px;
    width: 20px;
    background: #D4D700;
    display: block;
    position: absolute;
    top: calc(50% - 10px);
    border-radius: 50%;
    left: -10px;
}
 
.tl-image {
  width: 40%;
  margin-left: 20px;
}
.tl-content {
  width: 60%;
  padding-left: 50px;
  text-align: right;
}
@media only screen and (min-width: 992px)  {
.tl-row {
  display: flex;
}
 
.heading-side {
  width: 40%;
}
.timeline-side {
  width: 60%;
}
 .tl-content {
  padding-left: 25px;
}
}
/** animations **/

.js-scroll .tl-item-inner {
  opacity: 0;
	transform: translateX(-100%);
 /*transition: all .65s ease-out;*/
}
.js-scroll.scrolled .tl-item-inner {

 /* transition: all .65s ease-out; */
  
  	/** animation: slide-in-anim 1s ease-out forwards;  **/
  animation-name: slide-in-anim;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
   
@keyframes slide-in-anim {
	20% {
		opacity: 0;
	}
  40% {
    opacity: .3;
   
  }
	80% {
		transform: translateX(20px);
	}
	90% {
		transform: translateX(10px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.scrolled.tl-item:before {
 
box-shadow: 0 0 0 0 rgb(240 209 26 / 20%);
	transform: scale(1);
	/** animation: pulse 1.5s 1; **/
  animation-iteration-count: 1;
  animation-name: pulse;
  animation-duration: 1.5s;
}
 
@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0  rgb(240 209 26 / 0%);
	}

	65% {
		transform: scale(.9);
		box-shadow: 0 0 0 10px  rgb(240 209 26 / 20%);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0  rgb(240 209 26 / 0%);
	}
}

.ani-delay-1 .tl-item-inner, .ani-delay-1.tl-item:before {
  animation-delay: 0s;
}
.ani-delay-2 .tl-item-inner, .ani-delay-2.tl-item:before {
  animation-delay: .5s;
}
.ani-delay-3 .tl-item-inner, .ani-delay-3.tl-item:before {
  animation-delay: 1s;
}
.ani-delay-4 .tl-item-inner, .ani-delay-4.tl-item:before {
  animation-delay: 1.5s;
}



/** STICKY **/
@media only screen and (min-width: 992px)  {
 

.heading-side {
  position: relative;
}
 
 
.heading-side-inner{
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-height: calc(100vh - 110px);
      display: flex;
    align-items: center;
}
 
.heading-side-inner.sticky {
    position: fixed;
    top: 110px;
    right: 0;
    left: 0;
    width: calc(40vw - 100px);
}
.heading-side-inner.sticky-end {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  top: auto;
  width: calc(40vw - 100px);
} 
  }

.header-line {
  width: 50px; /* Adjust the width to your preference */
  height: 2px; /* Thickness of the line */
  background-color: white; /* Color of the line */
  margin: 0 auto; /* Centers the div */
}
