/* =========================================================
   QUY TRÌNH STYLE GIỐNG THIẾT KẾ
========================================================= */
#quytrinh {
  position: relative;
  background: #242635;
  border-radius: 34px;
  padding: 60px 120px 90px;
  overflow: hidden;
  color: #fff;
}

/* ================= HEADER ================= */

.qt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  margin-bottom: 40px;
}

/* LEFT */

.qt-header-left {
  max-width: 600px;

  display: flex;
  flex-direction: column;
}

/* label nằm trên */

.qt-label {
  display: block;

  font-size: 15px;
  font-weight: 700;

  margin-bottom: 10px;

  color: #fff;
}

/* title dưới */

.qt-title {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;

  color: #fff;
}

/* RIGHT */

.qt-sub {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  padding-top: 8px;
}

/* ================= GRID ================= */

.qt-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: flex-start;
}

/* ================= STEP ================= */

.qt-step {
  position: relative;
  z-index: 2;
}

/* tạo layout zigzag giống mẫu */
.qt-step:nth-child(2) {
  margin-top: 55px;
}

.qt-step:nth-child(4) {
  margin-top: 55px;
}

/* ================= IMAGE ================= */

.qt-img-wrap {
  position: relative;
  margin-bottom: 22px;
}

.qt-img {
  width: 275px;
  height: 245px;

  object-fit: cover;

  border-radius: 16px;
  border: 3px solid #fff;

  display: block;
  background: #ddd;

  transform: rotate(-1.85deg);
}

/* ================= NUMBER ================= */

.qt-num {
  position: absolute;
  left: -20px;
  bottom: -24px;

  font-size: 86px;
  font-weight: 900;
  line-height: 1;

  color: #242635;

  -webkit-text-stroke: 3px #fff;

  text-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ================= TEXT ================= */

.qt-step-title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #fff;
}

.qt-step-desc {
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255,255,255,0.82);
  max-width: 270px;
}

/* ================= PLACEHOLDER ================= */

.qt-img-placeholder {
  display: none;
  width: 100%;
  height: 175px;

  border-radius: 16px;
  background: rgba(255,255,255,0.08);

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.qt-placeholder-icon {
  font-size: 32px;
}

.qt-placeholder-text {
  font-size: 13px;
}

/* ================= DASH LINE ================= */

.qt-grid::before,
.qt-grid::after {
  content: "";
  position: absolute;
  border-top: 3px dashed rgba(255,255,255,0.8);
  border-radius: 999px;
  z-index: 1;
}

/* line 1 -> 2 */
.qt-grid::before {
  width: 260px;
  height: 120px;

  top: -25px;
  left: 160px;

  transform: rotate(10deg);
}

/* line 3 -> 4 */
.qt-grid::after {
  width: 250px;
  height: 120px;

  top: -5px;
  right: 125px;

  transform: rotate(8deg);
}

/* line giữa 2 -> 3 */
.qt-step:nth-child(2)::after {
  content: "";
  position: absolute;

  width: 260px;
  height: 150px;

  border-bottom: 3px dashed rgba(255,255,255,0.8);
  border-radius: 999px;
  transform: rotate(-10deg);

  left: 50%;
  top: 220px;

  z-index: 1;
}
/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {

  #quytrinh {
    padding: 50px 28px 80px;
  }

  /* HEADER */

  .qt-header {
    flex-direction: column;
    gap: 20px;

    margin-bottom: 40px;
  }
  .qt-label{
    text-align: center;
  }
  .qt-title{
    text-align: center;
  }

  .qt-header-left,
  .qt-sub {
    max-width: 100%;
  }
  .qt-sub{
    display: none;
  }

  /* GRID */

  .qt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;

    align-items: start;
  }

  /* bỏ line */

  .qt-grid::before,
  .qt-grid::after,
  .qt-step:nth-child(2)::after,
  .qt-step::before {
    display: none;
  }

  /* reset stagger */

  .qt-step:nth-child(2),
  .qt-step:nth-child(4) {
    margin-top: 0;
  }

  /* STEP */

  .qt-step {
    width: 100%;
    text-align: center;
    font-size: 10px;
  }

  /* IMAGE WRAP */

  .qt-img-wrap {
    width: 100%;

    display: flex;
    justify-content: center;
  }

  /* IMAGE */

  .qt-img {
    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;

    display: block;

    border-radius: 18px;

    transform: rotate(-1deg);
  }

  /* TEXT */

  .qt-step-body {
    width: 100%;
    text-align: center;
  }

  .qt-step-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .qt-step-desc {
    font-size: 15px;
    line-height: 1.3;
  }
}








