/* ==================================
     HORIZONTAL TIMELINE
  ================================== */
  .horizontal-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    width: 100%;
    padding: 30px 0;
  }
  /* Main Horizontal Line */
  .timeline-center-line {
    position: absolute;
    top: 50%;
    left: 4%;
    right: 4%;
    height: 3px;
    background: #dfe3e8;
    transform: translateY(-50%);
    z-index: 1;
  }
  /* Each Timeline Step */
  .timeline-box {
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  /* Number Circle */
  .timeline-dot {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  }
  /* Timeline Card */
  .timeline-card {
    position: relative;
    width: calc(100% - 20px);
    min-height: 150px;
    padding: 20px 15px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  }
  /* Top Card */
  .timeline-box.top .timeline-card {
    margin-bottom: 30px;
  }

  /* Bottom Card */
  .timeline-box.bottom .timeline-card {
    margin-top: 30px;
  }

  /* ==================================
     CARD → NUMBER CONNECTOR
  ================================== */

  /* Top Card to Number */
  .timeline-box.top .timeline-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 2px;
    height: 30px;
    background: #d7206a;
    transform: translateX(-50%);
  }

  /* Number to Bottom Card */
  .timeline-box.bottom .timeline-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -30px;
    width: 2px;
    height: 30px;
    background: #d7206a;
    transform: translateX(-50%);
  }


  /* ==================================
     TABLET
     992px - 1199px
  ================================== */

  @media (max-width: 1199.98px) {

    .horizontal-timeline {
      grid-template-columns: repeat(3, 1fr);
      row-gap: 30px;
    }

    .timeline-center-line {
      display: none;
    }

    .timeline-box {
      min-height: 330px;
    }

    .timeline-card {
      width: calc(100% - 15px);
      padding: 18px 12px;
    }

    .timeline-dot {
      width: 50px;
      height: 50px;
    }
  }
  /* ==================================
     MOBILE
     Below 768px
  ================================== */

  @media (max-width: 767.98px) {

    .horizontal-timeline {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 20px 0;
      position: relative;
    }

    /* Vertical Main Line */
    .timeline-center-line {
      display: block;
      top: 20px;
      bottom: 20px;
      left: 25px;
      right: auto;
      width: 3px;
      height: auto;
      transform: none;
    }

    /* Timeline Box */
    .timeline-box,
    .timeline-box.top,
    .timeline-box.bottom {
      min-height: auto;
      width: 100%;
      display: grid;
      grid-template-columns: 50px 1fr;
      column-gap: 15px;
      align-items: center;
      margin-bottom: 30px;
    }

    /* Number */
    .timeline-dot {
      grid-column: 1;
      grid-row: 1;
      width: 50px;
      height: 50px;
      margin: 0;
    }

    /* Card */
    .timeline-card,
    .timeline-box.top .timeline-card,
    .timeline-box.bottom .timeline-card {
      grid-column: 2;
      grid-row: 1;
      width: 100%;
      min-height: auto;
      margin: 0;
      padding: 18px 15px;
      text-align: left;
    }

    /* Remove Desktop Connectors */
    .timeline-box.top .timeline-card::after,
    .timeline-box.bottom .timeline-card::before {
      display: none;
    }

    /* Card Heading */
    .timeline-card h4,
    .timeline-card h5,
    .timeline-card h6 {
      margin-bottom: 8px;
    }

    /* Card Text */
    .timeline-card p {
      margin-bottom: 0;
    }
  }

  /* ==================================
     SMALL MOBILE
     Below 576px
  ================================== */

  @media (max-width: 575.98px) {

    .horizontal-timeline {
      padding: 15px 0;
    }

    .timeline-center-line {
      left: 22px;
    }

    .timeline-box,
    .timeline-box.top,
    .timeline-box.bottom {
      grid-template-columns: 44px 1fr;
      column-gap: 12px;
      margin-bottom: 25px;
    }

    .timeline-dot {
      width: 44px;
      height: 44px;
      font-size: 14px;
      border-width: 4px;
    }

    .timeline-card,
    .timeline-box.top .timeline-card,
    .timeline-box.bottom .timeline-card {
      padding: 15px 12px;
      border-radius: 12px;
    }
  }