/* Timeline styles */
  .timeline-nav {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 70px 0 42px 0;
  }

  .timeline-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #9ca3af;
    z-index: 0;
  }

  .timeline-btn {
    position: relative;
    background: none !important;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    color: #9ca3af;
    z-index: 1;
    padding: 0;
    transition: all 0.3s ease;
  }

  .timeline-btn::before {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: #9ca3af;
    transition: all 0.3s ease;
  }

  .timeline-btn::after {
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    display: block;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: transparent;
    z-index: -1;
    transition: all 0.3s ease;
  }

  .timeline-btn.active {
    font-size: 24px;
    font-weight: 700;
    color: #000;
  }

  .timeline-btn.active::before {
    top: 35px;
    background: #000;
  }

  .timeline-btn.active::after {
    top: 31px;
  }

  .timeline-btn:hover:not(.active) {
    color: #666;
  }

  .timeline-btn:hover:not(.active)::before {
    background: #666;
  }

  .timeline-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    min-height: 300px;
  }

  .timeline-panel.active {
    display: flex;
  }

  .timeline-panel h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .timeline-panel h3 {
    font-size: 22px;
    font-weight: 400;
  }

  .timeline-panel .mt-4 {
    margin-top: 30px !important;
  }

  .timeline-panel p {
    font-size: 16px;
  }

  .timeline-panel img {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* --- Timeline Slider with Connecting Lines --- */
  .timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px 50px;
    box-sizing: border-box;
    overflow: visible !important;
  }

  /* wide grey base line across wrapper (behind everything) */
  .timeline-base-line {
    position: absolute;
    left: 50px;
    right: 50px;
    top: 65px;
    height: 2px;
    background: #666;
    z-index: 1;
    border-radius: 2px;
  }

  .active-seg {
    position: absolute;
    top: 65px;
    height: 2px;
    background: #000;
    z-index: 2;
    width: 0;
    pointer-events: none;
    opacity: 1 !important;
    border-radius: 2px;
  }

  .active-seg.left {
    transform-origin: right center;
  }

  .active-seg.right {
    transform-origin: left center;
  }

  /* track & slides */
  .timeline-track-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .timeline-track {
    display: flex;
    position: relative;
    z-index: 3;
    transition: transform 0.8s cubic-bezier(.22, .9, .37, 1);
    width: calc(100% * var(--slide-count));
  }

  .timeline-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 10px;
    box-sizing: border-box;
    min-height: 70px;
    position: relative;
    width: 100%;
  }

  /* arrows */
  .timeline-arrow {
    position: absolute;
    top: 73%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: 1px solid #000;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .timeline-arrow:hover:not(:disabled) {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .timeline-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }

  .timeline-arrow.arrow-left {
    left: 0;
  }

  .timeline-arrow.arrow-right {
    right: 0;
  }

  .timeline-arrow img {
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  /* responsive tweaks */
  @media (max-width: 1200px) {
    .timeline-wrapper {
      padding: 10px 70px;
    }

    .timeline-base-line {
      left: 70px;
      right: 70px;
    }
  }

  @media (max-width: 992px) {
    .timeline-panel {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .timeline-panel img {
      max-width: 600px;
      margin: 0 auto;
    }

    .timeline-wrapper {
      padding: 10px 60px;
    }

    .timeline-base-line {
      left: 60px;
      right: 60px;
    }
  }

  @media (max-width: 768px) {
    .timeline-wrapper {
      padding: 10px 50px;
    }

    .timeline-base-line {
      left: 50px;
      right: 50px;
      top: 69px;
    }

    .timeline-btn {
      font-size: 16px;
      min-width: 50px;
    }

    .timeline-btn.active {
      font-size: 20px;
    }

    .timeline-panel.active {
      flex-direction: column;
    }

    .timeline-arrow {
      width: 40px;
      height: 40px;
    }

    .timeline-arrow.arrow-left {
      left: 5px;
    }

    .timeline-arrow.arrow-right {
      right: 5px;
    }

    .timeline-arrow img {
      width: 16px;
      height: 16px;
    }

    .timeline-panel {
      gap: 25px;
      margin-top: 40px;
    }

    .timeline-panel h2 {
      font-size: 24px;
    }

    .timeline-panel h3 {
      font-size: 16px;
    }
  }

  @media (max-width: 576px) {
    .timeline-wrapper {
      padding: 10px 40px;
    }

    .timeline-base-line {
      left: 40px;
      right: 40px;
    }

    .timeline-btn {
      font-size: 14px;
      min-width: 40px;
    }

    .timeline-btn.active {
      font-size: 18px;
    }

    .timeline-arrow {
      width: 36px;
      height: 36px;
    }

    .timeline-arrow img {
      width: 14px;
      height: 14px;
    }
  }

  @media (max-width: 400px) {
    .timeline-wrapper {
      padding: 10px 35px;
    }

    .timeline-base-line {
      left: 35px;
      right: 35px;
    }

    .timeline-btn {
      font-size: 12px;
      min-width: 35px;
    }

    .timeline-btn.active {
      font-size: 16px;
    }
  }