.tl-grid {
  display: grid;
  grid-template-columns: 80px 1fr; 
  gap: 1rem;
}

.tl-rail {
  position: relative;
  padding: .5rem 0;
  max-height: 80vh;            
  overflow-y: visible; /* removed scrollbar */
  display: flex;
  justify-content: center;
}

.tl-main {
  position: relative;
  padding-bottom: 56px; 
}

.tl-bottombar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;           
}

.tl-bottombar .tl-arrow {
  min-height: 44px;
  font-size: .9rem;
  padding: .25rem .5rem;
}

/* Timeline dots container with vertical line */
#timeline-dots {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 20px; /* space for the vertical line */
  gap: 2rem; /* increased gap for bigger spacing */
}

/* The vertical timeline line */
#timeline-dots::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px; /* center line behind links */
  width: 4px;
  background: #fbd454; /* timeline line color */
  border-radius: 2px;
  z-index: 0; /* behind links */
}

/* Timeline links as nodes */
#timeline-dots > a {
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 1; /* above the vertical line */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  text-decoration: none;
}


#timelineCarousel .carousel-item {
  text-align: center;
}

#timelineCarousel .carousel-item img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: .5rem;
}

.tl-bottombar { 
  gap: .5rem; 
}


.tl-arrow {
  flex: 1 1 0;
  min-height: 56px;
  font-size: 2rem;      /* bigger font size */
  font-weight: 700;       /* bold font */
  display: inline-flex;   /* inline-flex so button size fits content */
  align-items: center;    /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;
  height: 56px;           /* ensure fixed height to center */
  line-height: normal;    /* reset line-height */
  padding: 0 1rem;        /* horizontal padding */
}




/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  #timeline-dots {
    gap: 1rem; /* smaller spacing on mobile */
    padding-left: 15px; /* less padding for vertical line */
  }

  #timeline-dots > a {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    border-width: 2px;
  }

  #timeline-dots > a.btn-warning {
    transform: scale(1.1); /* slightly smaller scale on active link */
  }
}
