/* ============================================================
   GIỚI THIỆU — page-specific overrides & new sections
   Prefix: gt-  (không đè class dùng chung)
   Brand tokens: var(--c-red) accent only, --c-ink, --c-ink-2,
   --c-mute, --c-bg-soft, --c-line, --ff-display, --ff-body
   ============================================================ */

/* ============================================================
   #3 — HÀNH TRÌNH (timeline NGANG dạng carousel mốc thời gian)
   ============================================================ */

/* Header 2 cột: tiêu đề lớn trái + mô tả phải (tái dùng .page-block__head có sẵn) */

/* Wrapper: chứa track scroll ngang + dòng gợi ý kéo */
.gt-timeline-wrap {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
}

/* Track: các mốc dàn HÀNG NGANG, scroll ngang nếu tràn */
.gt-timeline {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 22px;
  /* Auto-slide carousel — ẩn hẳn thanh kéo ngang (vẫn vuốt được trên mobile) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gt-timeline::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Trục NGANG nối liền — chạy giữa theo chiều dọc của track */
.gt-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: linear-gradient(
    to right,
    var(--c-line) 0%,
    rgba(218, 33, 40, 0.35) 50%,
    var(--c-line) 100%
  );
}

/* Mỗi mốc = 1 cột cố định bề rộng, cao đủ để xen kẽ trên/dưới trục */
.gt-tl-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(224px, 23vw, 280px);
  height: clamp(320px, 38vw, 360px);
  scroll-snap-align: center;
  padding: 0 14px;
}

/* Marker tròn nằm chính giữa trục ngang */
.gt-tl-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-red);
  box-shadow: 0 0 0 5px rgba(218, 33, 40, 0.10);
  z-index: 2;
}

/* Đường nối dọc ngắn từ trục lên/xuống tới card */
.gt-tl-item::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 26px;
  transform: translateX(-50%);
  background: var(--c-line);
  z-index: 1;
}

/* Card chứa nội dung — đặt tuyệt đối, căn giữa cột, text center */
.gt-tl-item__card {
  position: absolute;
  left: 14px;
  right: 14px;
  text-align: center;
}

/* Mốc lẻ — card NẰM TRÊN trục */
.gt-tl-item:nth-child(odd) .gt-tl-item__card {
  bottom: calc(50% + 30px);
}
.gt-tl-item:nth-child(odd)::after {
  bottom: 50%;
}
/* Mốc chẵn — card NẰM DƯỚI trục */
.gt-tl-item:nth-child(even) .gt-tl-item__card {
  top: calc(50% + 30px);
}
.gt-tl-item:nth-child(even)::after {
  top: 50%;
}

.gt-tl-item__year {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--c-red);
  margin: 0 0 6px;
}
.gt-tl-item__title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.gt-tl-item__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-ink-2);
  margin: 0 auto;
  max-width: 30ch;
}

/* Dòng gợi ý kéo ngang — đã bỏ, thay bằng auto-slide + dots */
.gt-timeline__hint { display: none; }

/* Chấm điều hướng (dots) cho carousel tự chạy */
.gt-timeline-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.gt-timeline-dots__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-line);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.gt-timeline-dots__dot:hover { background: rgba(218, 33, 40, 0.45); }
.gt-timeline-dots__dot.is-active {
  background: var(--c-red);
  transform: scale(1.25);
}

/* ============================================================
   #4 — GIÁ TRỊ CỐT LÕI (vertical alternating: ảnh + chữ)
   ============================================================ */

.gt-pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
}

.gt-pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.gt-pillar__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
}
.gt-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.gt-pillar:hover .gt-pillar__media img { transform: scale(1); }

.gt-pillar__body { min-width: 0; }

.gt-pillar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
/* Reset margin-bottom mặc định của .sec-num (global) — nó làm hộp eyebrow
   bị cao lên khiến icon tụt xuống, không thẳng hàng với chữ */
.gt-pillar__eyebrow .sec-num {
  margin: 0;
  line-height: 1;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.gt-pillar__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-red);
}
.gt-pillar__icon svg { width: 28px; height: 28px; }

.gt-pillar__title {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 16px;
}
.gt-pillar__divider {
  width: 48px;
  height: 2px;
  background: var(--c-red);
  margin: 0 0 16px;
}
.gt-pillar__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink-2);
  margin: 0;
  max-width: 52ch;
}

/* Desktop: 2 cột, xen kẽ ảnh trái–chữ phải / chữ trái–ảnh phải */
@media (min-width: 860px) {
  .gt-pillar {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
  }
  /* Hàng chẵn (Sứ mệnh): đảo — chữ trái, ảnh phải */
  .gt-pillar--reverse .gt-pillar__media { order: 2; }
  .gt-pillar--reverse .gt-pillar__body { order: 1; }
}

/* ============================================================
   TASK45 — Khôi phục section "facts" ngay dưới hero (nền tối).
   Nguyên nhân vỡ: global inner.css (task27) đổi contract sang
   .facts > .facts__inner > .facts__item dạng card NỀN TRẮNG, trong
   khi markup trang này vẫn để .facts__item trực tiếp + chữ trắng trên
   nền page-block--ink → mỗi item thành card trắng full-width, số trắng
   tàng hình chỉ còn dấu "+" đỏ. Scoped lại đúng band tối để không
   ảnh hưởng các trang khác đang dùng style card mới.
   ============================================================ */
.page-block--ink .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
@media (min-width: 800px) {
  .page-block--ink .facts { grid-template-columns: repeat(4, 1fr); }
}
.page-block--ink .facts__item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 8px;
}
.page-block--ink .facts__item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
