.timeline-02 .timeline-module {
  padding: 50px 20px;
}

.timeline-02 .timeline {
  position: relative;
  display: grid;
  margin: 0 auto;
}

.timeline-02 .timeline > div {
  position: relative;
}

.timeline-02 .timeline-item {
  display: flex;
  align-items: flex-start;
}

.timeline-02 .text-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.timeline-02 .featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.timeline-02 .continuous-timeline-divider-wrapper {
  position: absolute;
  left: 45%;
  top: 0;
  bottom: 0;
  width: 4px;
  display: flex;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}


.timeline-item.visible, .text-content.visible {
  opacity: 1;
  transform: translateY(0);
}


.timeline-02 .timeline-item.visible, .timeline-02 .text-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-02  .timeline-marker.visible svg {
  animation: beat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(65, 25, 124, 0.8)) drop-shadow(0 0 12px rgba(65, 25, 124, 0.4));
}


.timeline-item.visible, .text-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-02 .timeline-marker {
  position: absolute;
  left: calc(45% - 17.1px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

@media (max-width: 767px) {
  .timeline-02 .timeline-marker {
    left: -11px; 
  }
}

.timeline-02 .timeline-marker.visible {
  opacity: 1;
}

/* Enhanced SVG Circle beating effect with lighter glow */
.timeline-marker.visible svg {
  animation: beat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(147, 112, 219, 0.8)) 
         drop-shadow(0 0 20px rgba(147, 112, 219, 0.6))
         drop-shadow(0 0 30px rgba(147, 112, 219, 0.4));
}

@keyframes beat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(147, 112, 219, 0.8)) 
           drop-shadow(0 0 20px rgba(147, 112, 219, 0.6))
           drop-shadow(0 0 30px rgba(147, 112, 219, 0.4));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(147, 112, 219, 0.9)) 
           drop-shadow(0 0 25px rgba(147, 112, 219, 0.7))
           drop-shadow(0 0 35px rgba(147, 112, 219, 0.5));
  }
}

.timeline-02 .timeline-connector {
  position: absolute;
  left: calc(45% + .4px);
  width: 2px;
  background: linear-gradient(to bottom, #9f5cf7 25%, transparent 25%, transparent 75%, #9f5cf7 75%);
  background-size: 2px 8px;
  z-index: 1;
  transform-origin: top;
  height: 0; /* Start with 0 height instead of using transform */
  transition: height 0.3s ease-out; /* Smooth height transition */
}


@media (max-width: 767px) {
  .timeline-02 .timeline-connector {
    left: 0;
  }
}

.timeline-02 .timeline-connector.visible {
  transform: scaleY(1);
}

.timeline-02 .timeline-item, .timeline-02 .text-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.timeline-item.visible, .text-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-02 .timeline-02_heading-text {
  line-height: 1.4;
}

.timeline-02 .timeline-02_heading-text > span {
  font-weight: bold; 
}


/* Mobile */
@media (max-width: 767px) {
  .timeline-02  .timeline-02_repeater-wrapper {
    display: flex !important; /* Override the grid layout */
    flex-direction: column !important;
  }
  
  /* Force image to always be first */
  .timeline-02  .timeline-02_repeater-wrapper > .timeline-item {
    order: 1;
  }
  
  /* Force text content to always be second */
  .timeline-02  .timeline-02_repeater-wrapper > .text-content {
    order: 2;
    margin-left: 3.5rem !important;
    margin-right: 0 !important;
  }
  

@media (max-width: 767px) {
  .timeline-02 .timeline-item {
    padding-top: 4rem;

  }
}