/* ============================================================
   Đồng phục Core – Quy Trình Triển Khai
   ============================================================ */

.qttk-section *, .qttk-section *::before, .qttk-section *::after { box-sizing: border-box; }

.qttk-section {
  font-family: 'Be Vietnam Pro', 'SVN-Gilroy', sans-serif;
  background: #fff;
  padding: 56px 0;
}

/* ── Layout: 3 columns ───────────────────────────────────── */
.qttk-layout {
  display: grid;
  grid-template-columns: 200px 1fr 1.15fr;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0 32px;
}

/* ============================================================
   LEFT COLUMN – STEP TIMELINE
   ============================================================ */
.qttk-col--steps { padding-top: 4px; }

.qttk-steps-nav {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
}

.qttk-step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  cursor: pointer;
  position: relative;
  margin: 0;            /* ← added */
}
.qttk-step-item--last { padding-bottom: 0; }

/* Circle */
.qttk-step-circle {
  grid-column: 1;
  grid-row: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #d8d8d8;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  position: relative; z-index: 2;
  transition: border-color .3s, background .3s;
  flex-shrink: 0;
}
.qttk-step-num {
  font-size: 12px; font-weight: 700;
  color: #aaa; transition: color .3s; line-height: 1;
}

/* Vertical line */
.qttk-step-line {
  grid-column: 1; grid-row: 2;
  width: 2px; margin: 0 auto;
  background: #e4e4e4;
  position: relative; min-height: 32px;
  overflow: hidden; border-radius: 1px;
  justify-self: center;
}
.qttk-step-line-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%; background: #f5a623;
  border-radius: 1px;
  transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.qttk-step-item--active .qttk-step-line .qttk-step-line-fill,
.qttk-step-item--passed  .qttk-step-line .qttk-step-line-fill { height: 100%; }

/* Label */
.qttk-step-label {
  grid-column: 2; grid-row: 1;
  font-size: 13.5px; font-weight: 600;
  color: #bbb; line-height: 36px;
  white-space: nowrap;
  transition: color .3s, font-weight .3s;
}
/* REMOVED: .qttk-step-item:not(.qttk-step-item--last) .qttk-step-label::after */

/* Active */
.qttk-step-item--active .qttk-step-circle { border-color: #f5a623; background: #f5a623; }
.qttk-step-item--active .qttk-step-num    { color: #fff; }
.qttk-step-item--active .qttk-step-label  { color: #111; font-weight: 700; }

/* Passed */
.qttk-step-item--passed .qttk-step-circle { border-color: #f5a623; background: #fff4e0; }
.qttk-step-item--passed .qttk-step-num    { color: #f5a623; }
.qttk-step-item--passed .qttk-step-label  { color: #888; }

/* Hover */
.qttk-step-item:not(.qttk-step-item--active):hover .qttk-step-circle { border-color: #f5a623; }
.qttk-step-item:not(.qttk-step-item--active):hover .qttk-step-label  { color: #555; }

/* ============================================================
   CENTER COLUMN – IMAGE
   ============================================================ */
.qttk-col--image { position: relative; }

.qttk-img-panel { display: none; animation: qttkFade .4s ease; border-radius: 10px; overflow: hidden; }
.qttk-img-panel--active { display: block; }

.qttk-img-panel img {
  width: 100%; height: auto; max-height: 380px;
  object-fit: cover; display: block; border-radius: 10px;
}

.qttk-img-placeholder {
  width: 100%; background: #f5f7fb; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; min-height: 240px;
}
.qttk-img-placeholder svg { width: 100%; max-width: 320px; height: auto; }

@keyframes qttkFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RIGHT COLUMN – ACCORDION
   ============================================================ */
.qttk-acc-panel { display: none; animation: qttkFade .35s ease; }
.qttk-acc-panel--active { display: block; }

/* Accordion spacing ← added gap between items */
.qttk-accordion {
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 4px;      /* khoảng cách giữa các accordion */
}
.qttk-accordion:first-child { border-top: 1px solid #e8e8e8; }
.qttk-accordion:last-child  { margin-bottom: 0; }

/* Trigger */
.qttk-accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: none; border: none; outline: none;
  padding: 16px 0; cursor: pointer; text-align: left;
}
.qttk-accordion__title {
  font-size: 15px; font-weight: 700; color: #111;
  line-height: 1.3; flex: 1; transition: color .2s;
}
.qttk-accordion__trigger:hover .qttk-accordion__title { color: #f5a623; }

.qttk-accordion__icon {
  flex-shrink: 0; color: #999;
  display: flex; align-items: center;
  transition: transform .3s ease, color .2s;
}
.qttk-accordion--open .qttk-accordion__icon { transform: rotate(180deg); color: #111; }
.qttk-accordion--open .qttk-accordion__trigger .qttk-accordion__title { color: #111; }

/* Body collapse – CSS grid trick */
.qttk-accordion__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.qttk-accordion--open .qttk-accordion__body { grid-template-rows: 1fr; }

.qttk-accordion__inner { overflow: hidden; padding-bottom: 16px; }

.qttk-accordion__desc {
  font-size: 13.5px; color: #555; line-height: 1.75; margin: 0 0 14px;
}

/* Bullets */
.qttk-accordion__bullets {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 9px;
}
.qttk-accordion__bullets li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: #333; line-height: 1.5;
}
.qttk-bullet-icon { flex-shrink: 0; margin-top: 1px; display: flex; }

/* CTA */
.qttk-accordion__cta { margin-top: 6px; }
.qttk-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f5a623; color: #fff; font-size: 14px; font-weight: 700;
  padding: 11px 24px; border-radius: 6px; text-decoration: none;
  transition: background .2s, transform .2s; border: none; cursor: pointer;
}
.qttk-cta-btn:hover { background: #e09612; transform: translateY(-1px); }

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 900px) {
  .qttk-layout {
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
    gap: 24px 20px;
  }
  .qttk-col--steps     { grid-column: 1; grid-row: 1 / 3; }
  .qttk-col--image     { grid-column: 2; grid-row: 1; }
  .qttk-col--accordion { grid-column: 2; grid-row: 2; }
}

/* ============================================================
   RESPONSIVE – MOBILE
   Nav: horizontal scrollable, no line wrap, slide on click
   ============================================================ */
@media (max-width: 600px) {
  .qttk-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ── Steps nav horizontal ── */
  .qttk-col--steps     { grid-column: 1; grid-row: 1; }
  .qttk-steps-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
  }
  .qttk-steps-nav::-webkit-scrollbar { display: none; }

  /* Each step: circle on top, label below, NO text wrap */
  .qttk-step-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: max-content;
    padding: 0 16px 10px;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color .3s;
    margin: 0;
  }
  .qttk-step-item--active {
    border-bottom-color: #f5a623;
  }

  /* Circle row */
  .qttk-step-circle {
    grid-column: unset; grid-row: unset;
    order: 1;
  }
  /* Label row */
  .qttk-step-label {
    grid-column: unset; grid-row: unset;
    order: 2;
    line-height: 1.3;
    font-size: 11.5px;
    white-space: nowrap;  /* ← no wrap */
  }
  /* Hide the vertical line on mobile */
  .qttk-step-line { display: none; }

  /* Content below */
  .qttk-col--image     { grid-column: 1; grid-row: 2; }
  .qttk-col--accordion { grid-column: 1; grid-row: 3; }
}
