.milestone-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  padding: 0 40px;
}

.milestone-title::before,
.milestone-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 120px;
  height: 2px;
  background-color: #231f20;
  opacity: 0.5;
}

.milestone-title::before {
  right: 100%;
}

.milestone-title::after {
  left: 100%;
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-row {
  display: flex;
  justify-content: start;
  width: 100%;
  margin: 20px;
}

.bottom-row {
  margin-top: 20px;
}

.spacer {
  flex: 1;
  /* width: calc(100% - 300px); */
  max-width: 100px;
}

.spacer2 {
  flex: 1;
  max-width: 180px;
}

.cardProced {
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  /* max-width: 320px; */
  flex: 0 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blue-card {
  border: 1px solid #231f20;
}

.blue-card:hover {
  border: 1px solid #1ba0e1;
}

.green-card {
  border: 1px solid #231f20;
}
.chart-box {
  width: 100%;
  height: 100px;
  overflow: hidden; /* CẮT PHẦN DƯ */
  border-radius: 12px;
}

.procedureImg {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Connector Lines */
.connector-linemobile,
.connector-line {
  position: absolute;
  bottom: -22px;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #231f20;
}

.connector-line:hover,
.connector-line:hover.top {
  background-color: #1ba0e1;
}

.connector-line.top {
  top: -22px;
  bottom: auto;
  background-color: #231f20;
}

/* Arrow Timeline Styles */
.arrow-timelinemobile,
.arrow-timeline {
  display: none;
  width: 100%;
  height: 60px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

/* arrow-timelinemobile */
.arrow-timelinemobile {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.arrow {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  position: relative;
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%);
  margin-right: -15px;
}

.arrow-mobile {
  width: 250px;
  /* flex: 1; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  position: relative;
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%);
  margin-right: -15px;
}

.arrow:first-child {
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

.blue-arrow {
  background-color: #1ba0e1;
}

.black-arrow {
  background-color: #231f20;
}

/* Charts Implementation */
.circular-progress {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#1ba0e1 calc(var(--percent) * 1%), #e0e0e0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circular-progress::after {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
}

.percent-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
}

.slider-container {
  width: 80%;
  text-align: center;
}

.slider-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1ba0e1;
  margin-bottom: 8px;
}

.slider-track {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  position: relative;
}

.slider-fill {
  height: 100%;
  background: #1ba0e1;
  border-radius: 3px;
}

.slider-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid #1ba0e1;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}

.bar {
  width: 8px;
  background: #1ba0e1;
  border-radius: 2px 2px 0 0;
}

.bar:nth-child(even) {
  background: #231f20;
}

.pie-chart {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#231f20 calc(var(--percent) * 1%), #e0e0e0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pie-chart::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  top: 5px;
  left: 5px;
  opacity: 0.5;
}

.line-chart {
  width: 100px;
  height: 50px;
  background-image:
    linear-gradient(#eee 1px, transparent 1px),
    linear-gradient(90deg, #eee 1px, transparent 1px);
  background-size: 10px 10px;
}
/* PC / Laptop */
@media (min-width: 1024px) {
  .cardProced {
    width: 320px; /* ✅ PC cố định 320 */
  }
  .arrow-timeline {
    display: flex;
  }
  .arrow-timelinemobile {
    display: none;
  }
  .connector-linemobile {
    display: none;
  }
}

/* ✅ MOBILE + TABLET ( < 1024px ) => ẨN */
@media (max-width: 1023px) {
  .connector-line.top {
    display: none;
  }
}
