/* ===== tai-ung-dung.css ===== */
.page-tai-ung-dung {
  color: #FFF1E8;
  background-color: #140C0C;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

}
.page-tai-ung-dung * {
  box-sizing: border-box;

}

/* ---------- HERO ---------- */
.page-tai-ung-dung__hero-section {
  background-color: #140C0C;
  padding: 10px 16px 24px;
}
.page-tai-ung-dung__hero-image-wrapper {
  width: 100%;
  margin: 0 auto;
}
.page-tai-ung-dung__hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 17 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 16px;

}
.page-tai-ung-dung__hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 16px auto 0;
  padding: 0;
  text-align: center;

}
.page-tai-ung-dung__main-title {
  color: #FFF1E8;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
  max-width: 26ch;
  margin: 0 auto 12px;
}
.page-tai-ung-dung__hero-description {
  color: #D0DDE7;
  max-width: 85ch;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.page-tai-ung-dung__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.page-tai-ung-dung__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 44px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;

}
.page-tai-ung-dung__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #2B0A0A;

}
.page-tai-ung-dung__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 176, 74, 0.35);

}
.page-tai-ung-dung__btn-secondary {
  background: transparent;
  border-color: #F3C54D;
  color: #F3C54D;

}
.page-tai-ung-dung__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.15);

}

/* ---------- SECTION LOGO GRID ---------- */
.page-tai-ung-dung__logo-section {
  padding: 40px 16px;
  background-color: #1A0F0F;

}
.page-tai-ung-dung__section-title,
.page-tai-ung-dung__guide-title,
.page-tai-ung-dung__features-title,
.page-tai-ung-dung__faq-title {
  font-weight: 800;
  color: #FFF1E8;
  text-align: center;
  margin-top: 0;
  margin-bottom: 12px;
}
.page-tai-ung-dung__section-subtitle {
  color: #D0DDE7;
  text-align: center;
  max-width: 75ch;
  margin: 0 auto 36px;

}
.page-tai-ung-dung__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

}
.page-tai-ung-dung__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  background-color: #2A1212;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #6A1E1E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.page-tai-ung-dung__logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);

}
.page-tai-ung-dung__logo-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: contain;
  background-color: #2A1212;

}
.page-tai-ung-dung__logo-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background-color: #C61F1F;
  color: #FFF1E8;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;

}
.page-tai-ung-dung__logo-cta:hover {
  background-color: #E53030;
  transform: scale(1.05);

}
.page-tai-ung-dung__logo-item:nth-child(5) {
  grid-column: 2;

}
.page-tai-ung-dung__logo-item:nth-child(6) {
  grid-column: 3;

}

/* ---------- GUIDE SECTION ---------- */
.page-tai-ung-dung__guide-section {
  background-color: #140C0C;
  padding: 48px 16px;

}
.page-tai-ung-dung__guide-inner {
  max-width: 1200px;
  margin: 0 auto;

}
.page-tai-ung-dung__guide-title {
  color: #F3C54D;

}
.page-tai-ung-dung__guide-intro {
  color: #D0DDE7;
  max-width: 75ch;
  margin: 0 auto 48px;
  line-height: 1.7;
  text-align: center;

}
.page-tai-ung-dung__guide-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;

}
.page-tai-ung-dung__guide-block {
  background-color: #2A1212;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #6A1E1E;

}
.page-tai-ung-dung__guide-figure {
  margin: 0 0 24px;

}
.page-tai-ung-dung__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;

}
.page-tai-ung-dung__guide-block-title {
  color: #F3C54D;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 16px;

}
.page-tai-ung-dung__guide-steps {
  list-style: decimal;
  color: #FFF1E8;
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.8;

}
.page-tai-ung-dung__guide-steps li {
  margin-bottom: 8px;

}

/* ---------- FEATURES SECTION ---------- */
.page-tai-ung-dung__features-section {
  background-color: #1A0F0F;
  padding: 40px 16px;

}
.page-tai-ung-dung__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;

}
.page-tai-ung-dung__feature-card {
  background-color: #2A1212;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #6A1E1E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.page-tai-ung-dung__feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);

}
.page-tai-ung-dung__feature-figure {
  margin: 0;

}
.page-tai-ung-dung__feature-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;

}
.page-tai-ung-dung__feature-name {
  color: #FFF1E8;
  padding: 16px 16px 8px;
  font-size: 18px;
  margin: 0;
  line-height: 1.4;

}
.page-tai-ung-dung__feature-description {
  color: #D0DDE7;
  padding: 0 16px 20px;
  margin: 0;
  line-height: 1.6;
  flex: 1;

}

/* ---------- FAQ ---------- */
.page-tai-ung-dung__faq-section {
  padding: 40px 16px 60px;
  background-color: #140C0C;

}
.page-tai-ung-dung__faq-list {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;

}
.page-tai-ung-dung__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;

}
.page-tai-ung-dung__faq-question {
  list-style: none;
  font-weight: 600;
  color: #F3C54D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;

}
.page-tai-ung-dung__faq-question::-webkit-details-marker {
  display: none;

}
.page-tai-ung-dung__faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #C61F1F;
  color: #FFF1E8;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;

}
.page-tai-ung-dung__faq-answer {
  color: #D0DDE7;
  line-height: 1.7;
  padding-top: 16px;
  margin-bottom: 0;

}

/* ========== RESPONSIVE 1024px ========== */
@media (max-width: 1024px) {
  .page-tai-ung-dung__features-grid {
    grid-template-columns: repeat(2, 1fr);

  }
  .page-tai-ung-dung__logo-grid {
    grid-template-columns: repeat(3, 1fr);

  }
  .page-tai-ung-dung__logo-item:nth-child(5) {
    grid-column: auto;

  }
  .page-tai-ung-dung__logo-item:nth-child(6) {
    grid-column: auto;

  }
}

/* ========== RESPONSIVE 768px ========== */
@media (max-width: 768px) {
  .page-tai-ung-dung {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-tai-ung-dung__hero-section {
    padding: 8px 12px 20px;
  }
  .page-tai-ung-dung__hero-image {
    aspect-ratio: 2 / 1;
    max-width: 100%;
    height: auto;
  }
  .page-tai-ung-dung__hero-content {
    text-align: center;
  }
  .page-tai-ung-dung__hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .page-tai-ung-dung__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-tai-ung-dung__logo-section,
  .page-tai-ung-dung__guide-section,
  .page-tai-ung-dung__features-section,
  .page-tai-ung-dung__faq-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-tai-ung-dung__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .page-tai-ung-dung__logo-item:nth-child(5),
  .page-tai-ung-dung__logo-item:nth-child(6) {
    grid-column: auto;
  }
  .page-tai-ung-dung__logo-item {
    padding: 10px;
    gap: 8px;
  }
  .page-tai-ung-dung__logo-cta,
  .page-tai-ung-dung__btn {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }
  .page-tai-ung-dung__logo-image {
    max-width: 180px;
  }
  .page-tai-ung-dung__guide-figure img {
    aspect-ratio: 2 / 1;
    max-width: 100%;
    height: auto;
  }
  .page-tai-ung-dung__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-ung-dung__feature-card {
    display: flex;
    flex-direction: column;
  }
  .page-tai-ung-dung__feature-figure img {
    max-width: 100%;
    height: auto;
  }
  .page-tai-ung-dung img {
    max-width: 100%;
    height: auto;
  }
  .page-tai-ung-dung__faq-question {
    font-size: 15px;
  }
}