/* ══════════════════════════════════════════════════════
   Quy Trình Tuyển Sinh — styles
   ══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.vs-qt-hero {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: 50% 78%;
  display: flex;
  align-items: flex-end;
}
.vs-qt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,77,90,0.72) 0%, rgba(30,77,90,0.28) 60%, transparent 100%);
}
.vs-qt-hero__inner {
  position: relative;
  padding-bottom: 40px;
}
.vs-qt-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.vs-qt-hero__breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.vs-qt-hero__breadcrumb a:hover { color: #ffffff; }
.vs-qt-hero__breadcrumb span:last-child { color: #ffffff; }
.vs-qt-hero__title {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

/* ── Sáu bước ─────────────────────────────────────────── */
.vs-qt-sau-buoc {
  background: #ffffff;
  padding: 80px 0 96px;
}
.vs-qt-sb-inner { /* positioned via container */ }

.vs-qt-sb-title {
  font-size: 30px;
  font-weight: 700;
  color: #1E4D5A;
  text-align: center;
  margin: 0 0 56px;
}

/* Grid 6 cột + progress track */
.vs-qt-sb-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 24px;
}

/* Track background — horizontal desktop */
.vs-qt-sb-track-bg {
  position: absolute;
  top: 30.5px;
  left: 32px;
  right: calc((100% - 120px) / 6 - 32px);
  height: 3px;
  background: rgba(30,77,90,0.08);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
/* Track fill — horizontal desktop */
.vs-qt-sb-track-fill {
  position: absolute;
  top: 30.5px;
  left: 32px;
  right: calc((100% - 120px) / 6 - 32px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #E2F4F0 0%, #C5E9E1 20%, #A9DDD0 40%, #8CD2BF 60%, #6FC7B6 80%, #1E4D5A 100%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms ease;
  pointer-events: none;
  z-index: 0;
}
.vs-qt-sb-track-fill.is-filled {
  clip-path: inset(0 0% 0 0);
}

/* Track mobile vertical (hidden on desktop) */
.vs-qt-sb-track-bg-v,
.vs-qt-sb-track-fill-v { display: none; }

/* Step item */
.vs-qt-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.vs-qt-step__circle-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vs-qt-step__circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

/* Ring state before animation */
.vs-qt-sb-wrap:not(.is-animated) .vs-qt-step__circle {
  box-shadow: inset 0 0 0 1px rgba(30,77,90,0.15);
  background: #FFFFFF !important;
  color: #1E4D5A !important;
}

.vs-qt-step__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vs-qt-step__num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(30,77,90,0.45);
}

.vs-qt-step__title {
  font-size: 14px;
  font-weight: 700;
  color: #1E4D5A;
  margin: 0;
  line-height: 1.3;
}

.vs-qt-step__desc {
  font-size: 13px;
  color: rgba(30,77,90,0.72);
  line-height: 1.55;
  margin: 0;
}

.vs-qt-step__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #D2E0D7;
  color: #1E4D5A;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
}

.vs-qt-step__time {
  font-size: 11px;
  font-weight: 600;
  color: rgba(30,77,90,0.5);
  margin-top: 4px;
}

/* ── Hồ sơ ────────────────────────────────────────────── */
.vs-qt-ho-so {
  background: #D2E0D7;
  padding: 80px 0 96px;
}
.vs-qt-hs-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

/* Left col */
.vs-qt-hs-left { display: flex; flex-direction: column; gap: 24px; }

.vs-qt-hs-title {
  font-size: 30px;
  font-weight: 700;
  color: #1E4D5A;
  margin: 0;
}
.vs-qt-hs-desc {
  font-size: 15px;
  color: rgba(30,77,90,0.78);
  line-height: 1.65;
  margin: 0;
}
.vs-qt-hs-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.vs-qt-hs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right col */
.vs-qt-hs-right { display: flex; flex-direction: column; gap: 0; }

.vs-qt-hs-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(30,77,90,0.12);
  border-bottom: none;
}
.vs-qt-hs-tab {
  height: 56px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #1E4D5A;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(30,77,90,0.1);
}
.vs-qt-hs-tab:last-child { border-right: none; }
.vs-qt-hs-tab.is-active,
.vs-qt-hs-tab:focus-visible {
  background: #1E4D5A;
  color: #ffffff;
  outline: none;
}
.vs-qt-hs-tab:not(.is-active):hover { background: #B6B6DB; }

.vs-qt-hs-panels {
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  border: 1px solid rgba(30,77,90,0.12);
  border-top: none;
  min-height: 260px;
}
.vs-qt-hs-panel {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  padding: 28px;
}

.vs-qt-hs-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,77,90,0.07);
}
.vs-qt-hs-item:last-child,
.vs-qt-hs-item:nth-last-child(-n+2) { border-bottom: none; }

.vs-qt-hs-item__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6FC7B6;
  color: #1E4D5A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.vs-qt-hs-item__text {
  font-size: 13.5px;
  color: #1E4D5A;
  line-height: 1.5;
}

.vs-qt-hs-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #1E4D5A;
  text-decoration: none;
  background: rgba(30,77,90,0.06);
  padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.2s;
}
.vs-qt-hs-download:hover { background: rgba(30,77,90,0.12); }
.vs-qt-hs-download--placeholder {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.vs-qt-hs-download__icon { display: flex; align-items: center; }

/* ── Đánh giá đầu vào ─────────────────────────────────── */
.vs-qt-danh-gia {
  background: #ffffff;
  padding: 80px 0 96px;
}

.vs-qt-dg-title {
  font-size: 30px;
  font-weight: 700;
  color: #1E4D5A;
  text-align: center;
  margin: 0 0 48px;
}

.vs-qt-dg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.vs-qt-dg-card {
  background: #D2E0D7;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vs-qt-dg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,77,90,0.12);
}

.vs-qt-dg-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1E4D5A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-qt-dg-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1E4D5A;
  margin: 0;
  line-height: 1.3;
}

.vs-qt-dg-card__desc {
  font-size: 14px;
  color: rgba(30,77,90,0.78);
  line-height: 1.6;
  margin: 0;
}

.vs-qt-dg-reassurance {
  background: #D2E0D7;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.vs-qt-dg-reassurance__icon {
  color: #6FC7B6;
  flex-shrink: 0;
  display: flex;
}
.vs-qt-dg-reassurance__text {
  font-family: Kanit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #1E4D5A;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* ── Reveal animation ─────────────────────────────────── */
.vs-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.vs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */

/* Tablet 768–1023px */
@media (max-width: 1023px) {
  .vs-qt-sb-wrap {
    grid-template-columns: repeat(3, minmax(0,1fr));
    row-gap: 40px;
  }
  /* Ẩn horizontal track, hiện vertical dọc toàn cột */
  .vs-qt-sb-track-bg,
  .vs-qt-sb-track-fill { display: none; }

  .vs-qt-hs-inner { grid-template-columns: 1fr; gap: 32px; }
  .vs-qt-hs-img-wrap { max-width: 480px; }
  .vs-qt-dg-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .vs-qt-hero { height: 280px; }
  .vs-qt-hero__title { font-size: 26px; }

  .vs-qt-sb-title { margin-bottom: 40px; }

  .vs-qt-sb-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Ẩn horizontal track */
  .vs-qt-sb-track-bg,
  .vs-qt-sb-track-fill { display: none; }

  /* Vertical track */
  .vs-qt-sb-track-bg-v,
  .vs-qt-sb-track-fill-v {
    display: block;
    position: absolute;
    left: 30.5px;
    top: 32px;
    bottom: 32px;
    width: 3px;
    border-radius: 2px;
    pointer-events: none;
  }
  .vs-qt-sb-track-bg-v {
    background: rgba(30,77,90,0.08);
    z-index: 0;
  }
  .vs-qt-sb-track-fill-v {
    background: linear-gradient(180deg, #E2F4F0 0%, #C5E9E1 20%, #A9DDD0 40%, #8CD2BF 60%, #6FC7B6 80%, #1E4D5A 100%);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 900ms ease;
    z-index: 0;
  }
  .vs-qt-sb-track-fill-v.is-filled { clip-path: inset(0 0 0% 0); }

  .vs-qt-step {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr);
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    position: relative;
    z-index: 1;
  }
  .vs-qt-step__circle-wrap { justify-content: flex-start; }

  .vs-qt-hs-panel { grid-template-columns: 1fr; }
  .vs-qt-hs-tabs { border-radius: 10px 10px 0 0; }
  .vs-qt-hs-tab { height: 48px; font-size: 13px; }
  .vs-qt-hs-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(30,77,90,0.07); }
  .vs-qt-hs-item:last-child { border-bottom: none; }

  .vs-qt-dg-cards { grid-template-columns: 1fr; }
  .vs-qt-dg-reassurance { flex-direction: column; gap: 12px; padding: 20px 20px; }
}
