/* ============================================================
   QUYTRINH.CSS – Section Quy Trình Thiết Kế & In Ấn Bao Bì
   ============================================================ */

#quytrinh {
  padding: 72px 6vw;
  background: #f2faf5;           /* nền xanh lá nhạt như ảnh */
}

/* ── HEADER ── */
.qt-header {
  text-align: center;
  margin-bottom: 3rem;
}

.qt-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}

.qt-title {
  font-size: 40px;
  font-weight: 800;
  color: #2d9e5f;
  margin-bottom: .8rem;
  line-height: 1.2;
}

.qt-sub {
  font-size: 15px;
  color: var(--mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── GRID 4 CỘT ── */
.qt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── STEP ── */
.qt-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── IMAGE WRAP ── */
.qt-img-wrap{
  position:relative;

  width:100%;
  aspect-ratio:1/1;

  border-radius:18px;
  overflow:visible;

  background:#e8f3e8;

  display:flex;
  align-items:center;
  justify-content:center;
}


/* IMAGE */
.qt-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
  border-radius: 20px;
}

.qt-step:hover .qt-img {
  transform: scale(1.04);
}

/* placeholder khi chưa có ảnh */
.qt-img-placeholder {
  display: none;                 /* JS bật khi ảnh lỗi */
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #d6edd9;
}

.qt-placeholder-icon { font-size: 2rem; opacity: .4; }
.qt-placeholder-text {
  font-size: .72rem;
  color: #5a8a6a;
  text-align: center;
  padding: 0 .8rem;
}

/* ── SỐ THỨ TỰ nổi góc dưới trái ── */
.qt-num {
  position:absolute;
  left:-15px;
  bottom:-12px;
  z-index:5;
  font-size:6rem;
  font-weight:900;
  line-height:1;
  color:#08a045;
  /* viền trắng */
  -webkit-text-stroke:1px #ffffff;
  /* fallback */
  text-shadow:
    -3px -3px 0 #fff,
     3px -3px 0 #fff,
    -3px  3px 0 #fff,
     3px  3px 0 #fff,
     0px  0px 12px rgba(0,0,0,.08);
}


/* ── TEXT BODY ── */
.qt-step-body {
  padding: 0 .25rem;
}

.qt-step-title {
  
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: .05em;
  margin-bottom: .4rem;
}

.qt-step-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
  
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .qt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qt-step-body{
    text-align: center;
  }
}

@media (max-width: 500px) {
  #quytrinh { padding: 52px 5vw; }
  .qt-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .qt-num { font-size: 4rem; }
}