/* ==========================================================================
   Page: Journey — Hành Trình Dự Án
   Sections: Hero · HowItWorks (5 phases) · CaseStudy · Contact Form
   Values extracted from src/Wihub-v1.1/src/journey.html (Desktop frame ≥1280)
   ========================================================================== */


/* --------------------------------------------------------------------------
   SECTION: Hero — Hành trình kiến tạo giá trị
   v1.1 #Background_Image_1{padding:320px 48px 60px; row-gap:170px}
        #Highlight_Title_1 46px/130%/800 white
        #Breadcrumb_Link_1 14px/150%/500 white
        Gradient overlay tương tự Competence (dùng giá trị 88deg
        linear-gradient(88deg,#17144db3 35.7%,#11054300 99.3%))
   -------------------------------------------------------------------------- */
.journey-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-brand-dark);
}

.journey-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;         /* farm hiện rõ (v1.1: ảnh sáng, tím đậm chỉ bên trái do overlay) */
  z-index: 0;
}

.journey-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* v1.1 #__12: gradient TRÁI→PHẢI, tím đậm bên trái (vùng chữ) → trong suốt bên phải */
  background-image: linear-gradient(89.5deg,
    rgba(23, 20, 77, 0.70) 35.7%,
    rgba(17, 5, 67, 0.00) 99.3%);
  pointer-events: none;
}

.journey-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 220px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-hero__breadcrumb {
  display: flex;
  align-items: center;
}

.journey-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity var(--transition-base);
  &:hover { opacity: 0.85; }
}

.journey-hero__breadcrumb-icon {
  display: block;
  flex-shrink: 0;
  transform: rotate(180deg);   /* v1.1: mũi tên ← (back) */
}

.journey-hero__title {
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  max-width: 1170px;
}

@media (max-width: 991.98px) {
  .journey-hero { min-height: 420px; }
  .journey-hero__inner {
    padding-top: 160px;
    padding-bottom: 40px;
    gap: 20px;
  }
  .journey-hero__title { font-size: 38px; }
}
@media (max-width: 575.98px) {
  .journey-hero { min-height: 340px; }
  .journey-hero__inner { padding-top: 120px; padding-bottom: 32px; }
  .journey-hero__title { font-size: 28px; }
}


/* --------------------------------------------------------------------------
   SECTION: HowItWorks — Hành trình 5 Giai Đoạn
   v1.1 white section, padding 120px 48px (desktop), row-gap 60px
        Heading: section-title 46px/130%/800 (em accent gradient)
        Subtitle: 18px/160%/400 secondary
        Phase grid: row-gap 32px between media & content; 80px between phases
        Phase video: border 2px white, border-radius 12px, height 250px,
                     shadow 0 .5px 2px #243f611f, 0 2px 12px #243f611c
        Phase badge "Giai đoạn N" (v1.1 Whiteboard id):
          background:var(--Brand-Dark); border-radius 40px 10px;
          padding 8px 20px; width:min-content; row-gap 40px
          Text: 20px/150%/700 white
        Phase title: 26px/150%/700 var(--Text-Main)
        Phase desc: 16px/150%/400 var(--Text-Secondary)
   -------------------------------------------------------------------------- */
.journey-howitworks {
  background-color: var(--color-white);
  padding-top: 120px;
  padding-bottom: 120px;
}

.journey-howitworks__header {
  max-width: 1170px;
  margin-bottom: 60px;
}

.journey-howitworks__title {
  font-family: var(--font-family);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--color-text-main);
  & em {
    font-style: normal;
    background-image: linear-gradient(98.5deg, #6598ea 29.5%, #1b5bd2 70.7%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

.journey-howitworks__desc {
  color: var(--color-text-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}


/* --- Phase list ----------------------------------------------------------- */
.journey-phases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: phase;
}

/* v1.1: timeline 3 cột — media (trái) | chấm+đường nối (giữa) | text (phải) */
.journey-phase {
  position: relative;
  display: flex;
  gap: 48px;                 /* v1.1 #Phase gap 48 */
  align-items: stretch;
  padding-bottom: 80px;      /* v1.1 #Video_container padding-bottom 80 — đường nối chạy qua đây */
  &:last-child { padding-bottom: 0; }
}

.journey-phase__media {
  flex: 1 1 0;
  min-width: 0;
  align-self: flex-start;    /* video không kéo cao theo phase */
  border: 2px solid var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  background-color: #e5edf5;
  box-shadow: 0 0.5px 2px rgba(36, 63, 97, 0.12),
              0 2px 12px rgba(36, 63, 97, 0.11);
}

/* Timeline giữa: chấm tròn 10px + đường nối dọc (v1.1 #Ellipse_20 + #Rectangle, #c8d2e1) */
.journey-phase__timeline {
  flex: 0 0 28px;            /* v1.1 #Container_43 width 28 */
  position: relative;
  align-self: stretch;
  /* đường nối — line & chấm CÙNG ở tâm timeline (50%) → khớp tuyệt đối; overlap -84px chống hở sub-pixel */
  &::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: -84px;             /* xuống qua padding 80 + 4px overlap vào phase kế → liền tuyệt đối */
    width: 1px;
    background-color: var(--color-border-divider);   /* #c8d2e1 */
  }
}
.journey-phase:first-child .journey-phase__timeline::before { top: 13px; }                 /* node đầu: bắt đầu từ chấm */
/* phase CUỐI: line chạy HẾT chiều cao phase (v1.1 #Rectangle_3 flex-grow:1) — không dừng ở chấm */
.journey-phase:last-child .journey-phase__timeline::before { top: 0; bottom: 0; height: auto; }
/* node (chấm) nằm ĐÈ TRÊN đường */
.journey-phase__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border-divider);
  z-index: 1;
}

.journey-phase__video {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.journey-phase__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.journey-phase__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 8px 20px;
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 40px 10px;
  margin-bottom: 8px;
}

.journey-phase__title {
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.journey-phase__desc {
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  & + .journey-phase__desc { margin-top: 12px; }
}

@media (max-width: 991.98px) {
  .journey-howitworks { padding-top: 80px; padding-bottom: 80px; }
  .journey-howitworks__header { margin-bottom: 40px; }
  .journey-howitworks__title { font-size: 36px; }
  /* TIMELINE DỌC (v1.1 mobile): rail dot+line bên TRÁI | nội dung phải; dot thẳng badge, line LIỀN */
  .journey-phases { gap: 0; }
  .journey-phase {
    display: grid;
    grid-template-columns: 24px 1fr;   /* rail | nội dung */
    gap: 16px;
    padding-bottom: 40px;              /* khoảng cách phase — line chạy qua để liền */
  }
  .journey-phase:last-child { padding-bottom: 0; }
  .journey-phase__timeline {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;              /* rail trải HẾT chiều cao phase (content + media) */
  }
  .journey-phase__content { grid-column: 2; grid-row: 1; }   /* badge ở TRÊN → dot thẳng badge */
  .journey-phase__media   { grid-column: 2; grid-row: 2; }
  .journey-phase__video { height: 220px; }
  .journey-phase__title { font-size: 22px; }
  /* dot căn giữa badge + line liền mạch xuyên các phase */
  .journey-phase__dot { top: 14px; }
  .journey-phase__timeline::before { top: 0; bottom: -40px; height: auto; }
  .journey-phase:first-child .journey-phase__timeline::before { top: 14px; }
  .journey-phase:last-child .journey-phase__timeline::before { top: 0; bottom: 0; }
}
@media (max-width: 575.98px) {
  .journey-howitworks { padding-top: 56px; padding-bottom: 56px; }
  .journey-howitworks__title { font-size: 28px; }
  .journey-howitworks__desc { font-size: 16px; }
  .journey-phases { gap: 0; }   /* cách phase = padding-bottom (để line chạy qua liền) */
  .journey-phase__video { height: 220px; }
  .journey-phase__badge { font-size: 16px; padding: 6px 16px; }
  .journey-phase__title { font-size: 20px; }
  .journey-phase__desc { font-size: 15px; }
}


/* --------------------------------------------------------------------------
   SECTION: CaseStudy — Dự Án WiHub
   v1.1 #_Journey_CaseStudy{
        background: linear-gradient(171.6deg,#041d47cc 33.3%,#6c798e7a 99.3%),
                    url(...background...);
        padding: 120px 48px (desktop);
        row-gap: 80px; align-items center; max-width 1170px }
        Header row-gap 16px; title 46px/130%/800 light gradient
        (linear-gradient(92.2deg,#e5e7f9 .3%,#fdfdff 99.6%));
        subtitle 18px/160%/500 white-80
        Carousel inner card (#Section):
          background:linear-gradient(90.2deg,#e5e7f9 .3%,#fdfdff 99.6%);
          backdrop-filter: blur(20px); border 1px #fff3; border-radius 24px;
          padding 15px; row-gap 8px; max-width 1170px
        Project image: border-radius 16px; height 330px
        Project content: padding 16px 0; row-gap 10px
        Title 26px/150%/700; Desc 16px/150%/400 secondary
        Meta: 14px/100%/500 secondary
        CTA: 16px/100%/600 brand-dark
   -------------------------------------------------------------------------- */
.journey-casestudy {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;
  background-color: var(--color-brand-dark);
}

.journey-casestudy__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.journey-casestudy__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(171.6deg,
                    rgba(4, 29, 71, 0.80) 33.3%,
                    rgba(108, 121, 142, 0.48) 99.3%);
}

.journey-casestudy__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.journey-casestudy__header {
  width: 100%;
  max-width: 1170px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.journey-casestudy__title {
  font-family: var(--font-family);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  background-image: linear-gradient(92.2deg, #e5e7f9 0.3%, #fdfdff 99.6%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  & em {
    font-style: normal;
    /* same gradient as base — em retained to mirror html semantics */
    background-image: inherit;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

.journey-casestudy__desc {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  color: var(--color-white-80);
}


/* --- Carousel wrapper + nav buttons --------------------------------------- */
.journey-casestudy__carousel {
  position: relative;
  width: 100%;
  max-width: 1170px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.journey-casestudy__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-white-50);
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  &:hover {
    background-color: rgba(255, 255, 255, 0.32);
    border-color: var(--color-white);
  }
  &:focus-visible {
    outline: 2px solid var(--color-brand-light);
    outline-offset: 2px;
  }
}

.journey-casestudy__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  &::-webkit-scrollbar { display: none; }
}

.journey-casestudy__track {
  display: flex;
  gap: 24px;
  padding-bottom: 4px;
}


/* --- Case card (matches v1.1 #Section) ------------------------------------ */
.case-card {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 15px;
  background-image: linear-gradient(90.2deg, #e5e7f9 0.3%, #fdfdff 99.6%);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(4, 29, 71, 0.25);
}

@media (min-width: 768px) {
  /* v1.1 #Section_2: row, gap 32, content top-aligned */
  .case-card { flex-direction: row; align-items: stretch; gap: 32px; }
}

.case-card__media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #e5edf5;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  /* v1.1 #Project_Image_4 ~330px — stretch lấp đầy chiều cao card (không hở) */
  .case-card__media { width: 48%; min-height: 330px; }
}

.case-card__image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 8px 4px;
}
@media (min-width: 768px) {
  .case-card__body { padding: 16px 8px 16px 0; flex: 1 1 auto; }
}

.case-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #082e54;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 4px 10px;
  background-color: rgba(8, 46, 84, 0.08);
  border-radius: 999px;
  width: max-content;
}

.case-card__category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.case-card__title {
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.case-card__desc {
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.case-card__meta {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.case-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.case-card__meta-icon {
  display: block;
  flex-shrink: 0;
}

/* v1.1 #Button_Container_1: full-width, align-items:end → nút căn phải & đáy */
.case-card__cta {
  align-self: flex-end;
  margin-top: auto;
}

/* --- Pagination dots (v1.1 #Dot_Indicators) ------------------------------- */
.journey-casestudy__dots {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
}
.journey-casestudy__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);   /* v1.1 --White-60 */
  background-color: transparent;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base);
  &:hover { border-color: rgba(255, 255, 255, 0.9); }
  &:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
  }
  &.is-active {
    background-color: #ffffff;                      /* v1.1 --White-100 active */
    border-color: #ffffff;
  }
}

@media (max-width: 991.98px) {
  .journey-casestudy { padding-top: 80px; padding-bottom: 80px; }
  .journey-casestudy__title { font-size: 36px; }
  .case-card__title { font-size: 20px; }
}
/* Mobile: ẩn mũi tên điều hướng (dùng vuốt + chấm) → card FULL-WIDTH, canh đều header
   (mũi tên 2 bên đẩy card thụt vào, lệch so với tiêu đề) */
@media (max-width: 767.98px) {
  .journey-casestudy__nav { display: none; }
  .journey-casestudy__carousel { gap: 0; }
}
@media (max-width: 575.98px) {
  .journey-casestudy { padding-top: 56px; padding-bottom: 56px; }
  .journey-casestudy__title { font-size: 28px; }
  .journey-casestudy__desc { font-size: 16px; }
  .journey-casestudy__carousel { gap: 8px; }
  .journey-casestudy__nav { width: 36px; height: 36px; }
  .case-card { padding: 10px; border-radius: 20px; }
  .case-card__title { font-size: 18px; }
  .case-card__desc { font-size: 14px; }
}

/* Contact section CSS → main.css (shared, 1 nguồn) */
