/* ============================================================
   TIEUCHUAN.CSS – Section 3 Tiêu Chuẩn Cốt Lõi
============================================================ */

#tieuchuan {
  padding: 90px 6vw;
  background: #f5f5f5;
}

.tc-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.tc-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.tc-label {
  font-size: 35px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: -.4rem;
}

.tc-title {
  font-size: 35px;
  font-weight: 800;
  color: #2d9e5f;
  line-height: 1.25;
}

.tc-intro {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.5;
  padding-top: .4rem;
}

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

.tc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

/* ================= CARD ================= */

.tc-item {
  position: relative;

  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 20px;

  padding: 26px;

  min-height: 430px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition:
    transform .45s ease,
    background .45s ease,
    border-color .45s ease,
    box-shadow .45s ease;
}

/* hover */

.tc-item:hover {
  background: #151515;
  border-color: #151515;

  transform:
    rotate(-1.85deg)
    translateY(-8px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.18);
}

/* ================= ITEM 1 & 3 ================= */

.tc-item:not(:nth-child(2)) .tc-item-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  margin-bottom: 28px;
}

.tc-item:not(:nth-child(2)) .tc-num {
  flex-shrink: 0;
}

.tc-item:not(:nth-child(2)) .tc-item-title {
  padding-top: 10px;
}

.tc-item:not(:nth-child(2)) .tc-icon-wrap {
  margin: 0 auto 28px;
}

.tc-item:not(:nth-child(2)) .tc-item-desc {
  margin-top: auto;
}

/* ================= ITEM 2 NGƯỢC LAYOUT ================= */

.tc-item:nth-child(2) {
  justify-content: space-between;
}

/* desc lên trên */

.tc-item:nth-child(2) .tc-item-desc {
  order: 1;
  margin-bottom: 30px;
}

/* icon giữa */

.tc-item:nth-child(2) .tc-icon-wrap {
  order: 2;
  margin: 0 auto 30px;
}

/* title xuống dưới */

.tc-item:nth-child(2) .tc-item-top {
  order: 3;

  display: flex;
  align-items: flex-end;
  gap: 14px;

  margin-top: auto;
}

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

.tc-num {
  font-size: 78px;
  line-height: .9;
  font-weight: 900;

  letter-spacing: -4px;

  color: #272342;

  transition: color .4s ease;
}

.tc-item:hover .tc-num {
  color: #fff;
}

/* ================= TITLE ================= */

.tc-item-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;

  text-transform: uppercase;

  color: #272342;

  transition: color .4s ease;
}

.tc-item:hover .tc-item-title {
  color: #fff;
}

/* ================= ICON ================= */



.tc-item:hover .tc-icon-wrap {
  background: rgba(255,255,255,0.08);
  transform: scale(1.05);
}

.tc-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

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

.tc-icon-placeholder {
  display: none;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  font-size: 2rem;

  border-radius: 50%;
}

/* ================= DESC ================= */

.tc-item-desc {
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.85;

  transition: color .4s ease;
}

.tc-item:hover .tc-item-desc {
  color: rgba(255,255,255,0.82);
}

/* ================= MOBILE ================= */

/* ============================================================
   MOBILE - TIEUCHUAN
============================================================ */

@media (max-width: 900px) {

  #tieuchuan {
    padding: 60px 5vw;
  }

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

  .tc-header {
    grid-template-columns: 1fr;
    gap: 14px;

    margin-bottom: 32px;
  }

  .tc-label {
    font-size: 35px;
    line-height: 1.2;
  }

  .tc-title {
    font-size: 30px;
    line-height: 1.3;
  }

  .tc-intro {
    font-size: 14px;
    line-height: 1.8;
    padding-top: 0;
  }

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

  .tc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* ================= CARD ================= */

  .tc-item,
  .tc-item:nth-child(2) {
    margin-top: 0;
    min-height: auto;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    border-radius: 18px;
  }

  /* hover mobile nhẹ hơn */
  .tc-item:hover {
    transform:
      rotate(-1deg)
      translateY(-4px);
  }
  /* ================= TOP ================= */
  .tc-item-top,
  .tc-item:nth-child(2) .tc-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    order: unset;
  }

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

  .tc-num {
    font-size: 55px;
    line-height: 1;
    letter-spacing: -2px;
    flex-shrink: 0;
  }

  /* ================= TITLE ================= */

  .tc-item-title {
    font-size: 30px;
    line-height: 1.45;

    padding: 0;
  }

  /* ================= ICON ================= */

.tc-icon-wrap,
.tc-item:nth-child(2) .tc-icon-wrap {
  margin: 0 auto;
  order: unset;
  flex-shrink: 0;
}

.tc-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
  /* ================= DESC ================= */

  .tc-item-desc{
    font-size: 1rem;
    line-height: 1.4rem;
  }
  .tc-item:nth-child(2) .tc-item-desc {

    margin: 0;

    order: unset;

    font-size: 1rem;
    line-height: 1.2rem;
  }
}

