.hanh-trinh-main {
  /* background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
}

.hanh-trinh-main .timeline {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hanh-trinh-main .timeline h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.hanh-trinh-main .timeline::before {
  content: "";
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: calc(100% - 220px);
  background: #EDAD23;
  border-radius: 2px;
  z-index: 1;
}

.hanh-trinh-main .timeline-container {
  position: relative;
}

.hanh-trinh-main .timeline-item {
  position: relative;
  width: 45%;
  padding: 10px 0;
  margin-bottom: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

.hanh-trinh-main .timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  justify-content: flex-end;
}

.hanh-trinh-main .timeline-item:last-child {
  margin-bottom: 24px;
}

.hanh-trinh-main .timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
  justify-content: flex-start;
}

/* Chấm tròn cho item lẻ (trái) */

.hanh-trinh-main .timeline-item:nth-child(odd)::before {
  content: "";
  position: absolute;
  top: calc(50% - 19px);
  left: 109.5%;
  width: 18px;
  height: 18px;
  background: #ffd700;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
    /* Bóng đổ cơ bản */
    0 0 12px rgba(255, 215, 0, 0.8),
    /* Ánh sáng gần */
    0 0 24px rgba(255, 215, 0, 0.6);
  /* Ánh sáng lan tỏa */
  animation: pulse-glow 1.2s ease-in-out infinite;
  /* Hiệu ứng tỏa ra/tỏa vào */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Hiệu ứng mượt khi hover */
}

/* Chấm tròn cho item chẵn (phải) */

.hanh-trinh-main .timeline-item:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 70px;
  right: 109.5%;
  /* Đặt chấm bên trái của item chẵn */
  transform: translateX(50%);
  width: 18px;
  height: 18px;
  background: #ffcc00;
  /* Màu khác để phân biệt */
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
    /* Bóng đổ cơ bản */
    0 0 12px rgba(255, 215, 0, 0.8),
    /* Ánh sáng gần */
    0 0 24px rgba(255, 215, 0, 0.6);
  /* Ánh sáng lan tỏa */
  animation: pulse-glow 1.2s ease-in-out infinite;
  /* Hiệu ứng tỏa ra/tỏa vào */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Hiệu ứng mượt khi hover */
}

/* Hiệu ứng hover cho item lẻ */

.hanh-trinh-main .timeline-item:nth-child(odd)::before:hover {
  transform: translateX(-50%) scale(1.3);
  /* Phóng to khi hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Bóng đổ đậm hơn */
    0 0 20px rgba(255, 215, 0, 1),
    /* Ánh sáng mạnh */
    0 0 40px rgba(255, 215, 0, 0.8);
  /* Ánh sáng lan tỏa xa */
}

/* Hiệu ứng hover cho item chẵn */

.hanh-trinh-main .timeline-item:nth-child(even)::before:hover {
  transform: translateX(50%) scale(1.3);
  /* Phóng to khi hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Bóng đổ đậm hơn */
    0 0 20px rgba(255, 204, 0, 1),
    /* Ánh sáng mạnh */
    0 0 40px rgba(255, 204, 0, 0.8);
  /* Ánh sáng lan tỏa xa */
}

/* Keyframes cho hiệu ứng tỏa ra/tỏa vào */

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    /* Kích thước bình thường */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 215, 0, 0.8),
      0 0 24px rgba(255, 215, 0, 0.6);
  }

  50% {
    transform: scale(1.15);
    /* Phóng to nhẹ giữa chu kỳ */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 215, 0, 1),
      /* Ánh sáng mạnh hơn */
      0 0 40px rgba(255, 215, 0, 0.8);
    /* Lan tỏa xa hơn */
  }

  100% {
    transform: scale(1);
    /* Trở về kích thước ban đầu */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 215, 0, 0.8),
      0 0 24px rgba(255, 215, 0, 0.6);
  }
}

/* Icon bên trong card, điều chỉnh vị trí */

.hanh-trinh-main .timeline-item:nth-child(odd) .card .card-icon {
  position: absolute;
  top: -20px;
  /* Di chuyển lên trên card để gần đường line */
  /* left: 50%; */
  /* Căn giữa theo card */
  transform: translateX(-50%);
  font-size: 1.6rem;
  background: #e1c08873;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
  transition: transform 0.3s;
}

.hanh-trinh-main .timeline-item:nth-child(even) .card .card-icon {
  position: absolute;
  top: -20px;
  /* Di chuyển lên trên card để gần đường line */
  /* left: 50%; */
  /* Căn giữa theo card */
  transform: translateX(-50%);
  font-size: 1.6rem;
  background: #e1c08873;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
  transition: transform 0.3s;
}

/* Hover cho cả card và card-icon */

.hanh-trinh-main .card {
  background: #FFF8E0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 2px 2px 2px #A09D9D40;
  width: 100%;
  max-width: 510px;
  position: relative;
  /* Đảm bảo card là tham chiếu cho card-icon */
  transition: transform 0.3s, box-shadow 0.3s;
}

.hanh-trinh-main .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hanh-trinh-main .card:hover .card-icon {
  transform: translateY(-5px) translateX(-50%);
  /* Di chuyển icon lên cùng card */
}

.hanh-trinh-main .card h3 {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: #464646;
  margin-bottom: 8px;
}

.hanh-trinh-main .card p {
  font-size: 16px;
  line-height: 18px;
  color: #464646;
  margin-bottom: 8px;
}

.hanh-trinh-main .card blockquote {
  font-style: italic;
  color: #757575;
  font-size: 16px;
  line-height: 18px;
  padding: 0;
  border: 0;
  margin-bottom: 0;
}

.hanh-trinh-main .card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.hanh-trinh-main .timeline-item:nth-child(even) .card .card-actions {
  justify-content: flex-start;
}

.hanh-trinh-main .btn {
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

.hanh-trinh-main .btn-primary {
  background: #EDAD23;
  color: #fff;
  border: none;
}

.hanh-trinh-main .btn-primary:hover {
  background: rgb(217, 117, 2);
  transform: translateY(-2px);
}

.hanh-trinh-main .btn-secondary {
  background: #edf2f7;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

.hanh-trinh-main .btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.hanh-trinh-main .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hanh-trinh-main .modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hanh-trinh-main .modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
}

.page-content blockquote {
  padding-left: 12px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hanh-trinh-main .timeline::before {
    left: 25px;
    top: 0;
    height: 100%;
    width: 3px;
  }

  .hanh-trinh-main .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    margin-left: 30px;
    margin-bottom: 20px;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hanh-trinh-main .timeline-item:nth-child(odd)::before {
    left: -30px;
    /* Căn giữa với đường line */
    transform: none;
  }

  .hanh-trinh-main .timeline-item:nth-child(even)::before {
    left: -30px;
    top: 45%;
    /* Căn giữa với đường line */
    transform: none;
  }

  .hanh-trinh-main .timeline-item:nth-child(odd) .card .card-icon {
    left: 15px;
    /* Căn giữa với đường line */
    transform: none;
  }



  .hanh-trinh-main .timeline-item:nth-child(even) .card .card-icon {
    left: 15px;
    /* Căn giữa với đường line */
    transform: none;
  }

  .hanh-trinh-main .card {
    max-width: calc(100% - 30px);
    margin-left: 4px;
  }

  .hanh-trinh-main .card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hanh-trinh-main .btn {
    min-width: 120px;
    padding: 8px 16px;
  }

  .hanh-trinh-main .timeline h2 {
    font-size: 1.8rem;
  }
}