/* =============================================
   C Hành Trình Phát Triển Widget
   ============================================= */

.c-hanh-trinh-phat-trien {
  direction: ltr;
  width: 100%;
}

/* =============================================
   TIMELINE BAR PHÍA TRÊN
   ============================================= */

.c-htpt__timeline-bar {
  position: relative;
  padding: 24px 0 36px;
  /* margin-bottom: 36px; */
}

.c-htpt__timeline-line {
  position: relative;
  height: 0;
  border-top: 2px dashed #ccc;
  width: 80%;
  margin: 0 auto;
}

/* Mốc tròn 26x26 nằm trên đường kẻ */
.c-htpt__timeline-node {
  position: absolute;
  top: 20px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}

/* Dot nền (đặt trước icon trong DOM) */
.c-htpt__timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d9d9d9;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.3s ease;
}

.is-current .c-htpt__timeline-dot {
  background: #ffd1d0;
}

/* Icon active đè lên dot nền */
.c-htpt__timeline-icon {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  width: 64px;
  height: 64px;
  animation: c-htpt__bounce 2s ease-in-out infinite;
}

.c-htpt__timeline-icon img,
.c-htpt__timeline-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

@keyframes c-htpt__bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Năm ở dưới */
.c-htpt__timeline-label {
  font-size: 16px;
  font-weight: 600;
  color: #061a53;
  white-space: nowrap;
  margin-top: 12px;
  transition: color 0.3s ease;
}

.c-htpt__timeline-node.is-current .c-htpt__timeline-label {
  color: #e74c3c;
}

@media (max-width: 768px) {
  .c-htpt__timeline-bar {
    /* overflow-x: auto; */
    padding: 16px 0 30px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
  }

  .c-htpt__timeline-line {
    width: 100%;
  }

  .c-htpt__timeline-label {
    font-size: 12px;
  }
  .c-htpt__timeline-dot {
    width: 14px;
    height: 14px;
    bottom: 35px;
  }
  .c-htpt__timeline-icon{
    width: 30px;
    height: 30px;
    bottom: 24px;
  }
}

/* =============================================
   DANH SÁCH ITEM
   ============================================= */

.c-htpt__list {
  display: flex;
  flex-direction: column;
}

.c-htpt__item + .c-htpt__item {
  border-top: 1px solid #e8e8e8;
}

/* =============================================
   ITEM ROW — Grid 20% 40% 40%
   ============================================= */

.c-htpt__item {
  display: grid;
  grid-template-columns: 10% 40% 50%;
  column-gap: 30px;
  align-items: start;
}

.c-htpt__item > * {
  min-width: 0;
}

/* =============================================
   KHỐI NĂM (20%)
   ============================================= */

.c-htpt__year-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 80px 0; */
  height: 100%;
}

.c-htpt__year-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.c-htpt__year-line1,
.c-htpt__year-line2 {
  font-size: 100px;
  font-weight: 900;
  color: #dfdfdf;
  letter-spacing: -2px;
  line-height: 90px;
}

/* =============================================
   KHỐI ẢNH (40%)
   ============================================= */

.c-htpt__image-block {
  padding: 80px 0;
}

.c-htpt__image-wrap {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
}

.c-htpt__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.c-htpt__item:hover .c-htpt__image-wrap img {
  transform: scale(1.04);
}

/* =============================================
   KHỐI NỘI DUNG (40%)
   ============================================= */

.c-htpt__content-block {
  display: flex;
  align-items: center;
  height: 100%;
  /* padding: 40px 0; */
}

.c-htpt__content-inner {
  width: 100%;
}

/* Tiêu đề */
.c-htpt__title {
  font-size: 30px;
  font-weight: 700;
  color:#061A53;
  line-height: 30px;
  margin: 0 0 12px;
}

/* Nội dung */
.c-htpt__desc {
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 22px;
  margin: 0;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Expandable */
.c-htpt__desc-wrap {
  position: relative;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.c-htpt__desc-wrap p {
  font-weight: 400;
  font-size: 16px;
}

.c-htpt__desc-wrap.is-expanded {
  max-height: 2000px;
}

.c-htpt__desc-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
  transition: opacity 0.3s ease;
}

.c-htpt__desc-wrap.is-expanded::after {
  opacity: 0;
}

/* Nút Xem thêm */
.c-htpt__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #d82221;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.c-htpt__toggle:hover {
  color: #c0392b;
}

.c-htpt__toggle-icon {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.c-htpt__toggle.is-open .c-htpt__toggle-icon {
  transform: rotate(180deg);
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */

@media (max-width: 768px) {
  .c-htpt__item {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
    align-items: stretch;
  }

  .c-htpt__item + .c-htpt__item {
    border-top: 1px solid #e8e8e8;
  }

  /* Năm: full width, 1 dòng */
  .c-htpt__year-block {
    padding: 28px 20px 24px;
    row-gap: 12px;
  }

  .c-htpt__year-split {
    flex-direction: row;
    align-items: baseline;
  }

  .c-htpt__year-line1,
  .c-htpt__year-line2 {
    font-size: 70px;
    line-height: 30px;
  }

  .c-htpt__year-line2 {
    margin-left: 4px;
  }

  /* Ảnh: full width */
  .c-htpt__image-block {
    padding: 0 20px 30px;
  }

  .c-htpt__image-wrap {
    min-height: 200px;
  }

  .c-htpt__image-wrap img {
    min-height: 200px;
  }

  /* Nội dung: full width */
  .c-htpt__content-block {
    padding: 0 20px 32px;
  }

  .c-htpt__title {
    font-size: 20px;
  }

  .c-htpt__desc {
    font-size: 16px;
  }
}
