.milestone {
      background-image: url("images/about/bg-mile.html");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      padding: 50px 0;
      width: 100%;
      height: auto;
      min-height: 400px;
}

/* Timeline Styling */
.timeline-container {
      width: 100%;
      padding: 20px 0;
      margin-top: 40px;
      position: relative;
}

.timeline-navigation {
      display: flex;
      justify-content: space-between;
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      z-index: 10;
      pointer-events: none;
}

.timeline-prev,
.timeline-next {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: white;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: none;
      color: #333;
      transition: all 0.3s ease;
      pointer-events: auto;
}

.timeline-prev:hover,
.timeline-next:hover {
      background-color: #C11A22;
      color: white;
}

.timeline-prev {
      margin-left: -20px;
}

.timeline-next {
      margin-right: -20px;
}

.timeline-track {
      position: relative;
      padding: 60px 0;
      margin: 0 40px;
      overflow: hidden;
}

.timeline-slider {
      width: 100%;
      overflow: hidden;
}

.timeline-line {
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      height: 2px;
      background-color: #ccc;
      z-index: 1;
}

.timeline-progress {
      position: absolute;
      top: 120px;
      left: 0;
      height: 2px;
      background-color: #C11A22;
      z-index: 2;
      transition: width 0.4s ease-in-out;
      will-change: width;
}

.timeline-items {
      display: flex;
      position: relative;
      z-index: 3;
      transition: transform 0.5s ease;
      flex-wrap: nowrap;
}

.timeline-item {
      flex: 0 0 auto;
      width: 300px;
      min-width: 250px;
      position: relative;
      text-align: center;
      padding: 0 10px;
      transition: all 0.3s ease;
      opacity: 0.7;
}

.timeline-item.active {
      opacity: 1;
}

.timeline-dot {
      position: absolute;
      width: 20px;
      height: 20px;
      background-color: #ccc;
      border-radius: 50%;
      left: 50%;
      top: 60px;
      transform: translate(-50%, -50%);
      z-index: 5;
      transition: background-color 0.3s ease;
}

.timeline-item.active .timeline-dot {
      background-color: #C11A22;
      transform: translate(-50%, -50%) scale(1.2);
      box-shadow: 0 0 0 3px rgba(193, 26, 34, 0.3);
}

.timeline-item.active .timeline-date {
      color: #C11A22;
}

.timeline-date {
      font-weight: bold;
      margin-bottom: 10px;
      font-size: 14px;
      position: absolute;
      width: 100%;
      top: 15px;
      left: 0;
      text-align: center;
}

.timeline-content-wrapper {
      margin-top: 80px;
}

.timeline-content {
      padding: 15px;
      border-radius: 5px;
      margin-top: 15px;
      color: #53565A;
      /* background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.timeline-content h3 {
      font-weight: bold;
      margin-bottom: 5px;
      font-size: 16px;
}

.timeline-content p {
      font-size: 12px;
      color: #666;
}

.bg-custom-blur {
      padding: 30px 50px;
      border-radius: 8px;
      background: radial-gradient(157.32% 125.57% at 47.19% -2.64%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%);
      backdrop-filter: blur(23.04355239868164px);
}

.timeline-prev.disabled,
.timeline-next.disabled {
      opacity: 0.5;
      background-color: #f1f1f1;
      cursor: not-allowed;
}

.timeline-prev.disabled:hover,
.timeline-next.disabled:hover {
      background-color: #f1f1f1;
      color: #ccc;
}

.ulCms ul {
      list-style-type: disc;
      padding-left: 20px;
}

/* Tablet Styles - Horizontal improved Timeline */
@media (min-width: 769px) and (max-width: 1024px) {
      .milestone {
            padding: 40px 0;
      }

      .timeline-prev,
      .timeline-next {
            width: 50px;
            height: 50px;
      }

      .timeline-prev.tablet-nav,
      .timeline-next.tablet-nav {
            background-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
      }

      .bg-custom-blur {
            padding: 10px 20px;
            border-radius: 8px;
            background: radial-gradient(157.32% 125.57% at 47.19% -2.64%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%);
            backdrop-filter: blur(23.04355239868164px);
      }

      .timeline-dot {
            width: 24px;
            height: 24px;
            cursor: pointer;
      }

      .timeline-item.active .timeline-dot {
            transform: translate(-50%, -50%) scale(1.3);
            box-shadow: 0 0 0 4px rgba(193, 26, 34, 0.3);
      }

      .timeline-item {
            width: 280px;
            min-width: 280px;
            padding: 0 15px;
      }

      .timeline-content h3 {
            font-size: 18px;
      }

      .timeline-content p {
            font-size: 14px;
      }
}

/* Mobile Styles - Vertical Timeline */
@media (max-width: 768px) {
      .bg-custom-blur {
            padding: 12px;
            border-radius: 8px;
            background: radial-gradient(157.32% 125.57% at 47.19% -2.64%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%);
            backdrop-filter: blur(23.04355239868164px);
      }
      .milestone {
            padding: 30px 0;
            min-height: auto;
      }

      .timeline-container {
            margin-top: 20px;
      }

      /* Sembunyikan navigasi timeline di mobile */
      .timeline-navigation {
            display: none;
      }

      /* Mengubah layout menjadi vertikal */
      .timeline-track {
            padding: 0;
            margin: 0 20px;
            overflow: visible;
            height: auto;
      }

      .timeline-slider {
            overflow: visible;
      }

      .timeline-items {
            display: block;
            transform: none !important;
      }

      .timeline-item {
            width: 100%;
            min-width: 100%;
            margin-bottom: 40px;
            padding-left: 50px;
            text-align: left;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
            pointer-events: auto;
      }

      .timeline-item.active {
            opacity: 1;
            transform: translateY(0);
      }

      /* Item yang sudah pernah aktif tidak akan turun ke bawah lagi dan tetap terlihat */
      .timeline-item.was-active {
            opacity: 1;
            transform: translateY(0);
      }

      .timeline-dot {
            position: absolute;
            left: 0;
            top: 10px;
            width: 16px;
            height: 16px;
            transform: none;
            z-index: 5;
            transition: all 0.3s ease;
            opacity: 0.5;
      }

      .timeline-item.active .timeline-dot {
            background-color: #C11A22;
            transform: scale(1.3);
            box-shadow: 0 0 0 3px rgba(193, 26, 34, 0.3);
            opacity: 1;
      }

      .timeline-date {
            position: relative;
            width: auto;
            text-align: left;
            left: 0;
            top: 0;
            margin-bottom: 20px;
      }

      .timeline-content-wrapper {
            margin-top: 10px;
            margin-left: 0;
      }

      .timeline-content {
            padding: 15px;
            border-left: 2px solid #C11A22;
            margin-top: 5px;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      }

      /* Garis timeline vertikal untuk mobile */
      .timeline-line {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 8px;
            width: 2px;
            height: 100%;
            right: auto;
            z-index: 1;
      }

      .timeline-progress {
            position: absolute;
            top: 0;
            left: 8px;
            width: 2px;
            height: 0;
            right: auto;
            transition: height 0.25s ease-out;
            z-index: 2;
            -webkit-transition: height 0.25s ease-out;
            -moz-transition: height 0.25s ease-out;
            -ms-transition: height 0.25s ease-out;
            -o-transition: height 0.25s ease-out;
      }

      .ulCms ul {
            list-style-type: disc;
            padding-left: 13px;
      }
}