/* Các mục dưới phần đầu trang chủ. Phong cách CFC: khung vuông góc, không làm mờ viền, nền trắng và xám nhạt xen kẽ, điểm nhấn cam, nâu. */
.hs { padding: 72px 0; }
.hs-alt { background: var(--color-surface-section-alt, #f4f5f7); }
.hs-dark { background: var(--color-primary-deep, #3e2723); color: #fff; }
.hs-title, #bestseller-heading { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-transform: uppercase; color: var(--color-ink, #191c1d); }
.hs-title span { color: var(--color-primary, #e67e22); }
.hs-dark .hs-title { color: #fff; }
.hs-lead { margin: 12px 0 0; max-width: 720px; font-size: 15px; line-height: 1.7; color: var(--color-ink-muted, #4b5563); }
.hs-dark .hs-lead { color: rgba(255, 255, 255, .72); }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.hs-more { flex: none; font-size: 14px; font-weight: 700; color: var(--color-ink, #191c1d); text-decoration: none; border-bottom: 2px solid var(--color-primary, #e67e22); padding-bottom: 2px; }
.hs-more:hover { color: var(--color-primary, #e67e22); }
.hs-dark .hs-more { color: #fff; }
.hs-dark .hs-more:hover { color: var(--color-accent, #f39c12); }
.hs-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; height: 44px; padding: 0 22px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; background: var(--color-primary, #e67e22); transition: background .2s; }
.hs-link:hover { background: var(--color-primary-hover, #d35400); }
.hs-link-ic { width: 16px; height: 16px; }

/* Về CFC */
.hs-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hs-about-img { background: var(--color-surface-tint, #f1f3f5); box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); }
.hs-about-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 0; background: #fff; box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); }
.hs-nums > div { padding: 16px 10px; text-align: center; border-left: 1px solid var(--color-line, #e5e7eb); }
.hs-nums > div:first-child { border-left: 0; }
.hs-nums dd { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--color-primary, #e67e22); }
.hs-nums dt { margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--color-ink-muted, #4b5563); }

/* Nhóm sản phẩm */
.hs-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hs-cat { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); transition: box-shadow .25s; }
.hs-cat:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, .15), 0 6px 6px rgba(0, 0, 0, .18); }
.hs-cat-img { display: block; overflow: hidden; background: var(--color-surface-tint, #f1f3f5); aspect-ratio: 1 / 1; }
.hs-cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hs-cat:hover .hs-cat-img img { transform: scale(1.04); }
.hs-cat-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px; }
.hs-cat-body b { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--color-ink, #191c1d); }
.hs-cat:hover b { color: var(--color-primary, #e67e22); }
.hs-cat-body small { font-size: 13px; line-height: 1.5; color: var(--color-ink-muted, #4b5563); }
.hs-cat-body em { margin-top: auto; padding-top: 4px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--color-primary-hover, #d35400); }

/* Quy trình */
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(255, 255, 255, .14); gap: 1px; border: 1px solid rgba(255, 255, 255, .14); }
.hs-steps li { display: flex; gap: 14px; padding: 22px 20px; background: var(--color-primary-deep, #3e2723); }
.hs-steps span { flex: none; font-size: 26px; font-weight: 800; line-height: 1; color: var(--color-primary, #e67e22); }
.hs-steps b { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; }
.hs-steps p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .7); }

/* Năng lực */
.hs-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.hs-line { padding: 22px; background: var(--color-surface-section-alt, #f4f5f7); border-top: 3px solid var(--color-primary, #e67e22); }
.hs-line-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; background: #fff; color: var(--color-primary, #e67e22); }
.hs-line-ic svg { width: 22px; height: 22px; }
.hs-line h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--color-ink, #191c1d); }
.hs-line p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-ink-muted, #4b5563); }
.hs-line ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.hs-line li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--color-ink, #191c1d); }
.hs-line li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--color-eco, #15803d); }

/* Đối tác */
.hs-partners { padding-bottom: 0; }
.hs-partners .hs-title { margin-bottom: 24px; }
.pt-marquee { overflow: hidden; padding: 6px 0; }
.pt-track { display: flex; width: max-content; animation: pt-scroll var(--pt-dur, 96s) linear infinite; }
.pt-marquee:hover .pt-track, .pt-marquee:focus-within .pt-track { animation-play-state: paused; }
.pt-group { display: flex; gap: 12px; padding-right: 12px; }
@keyframes pt-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pt-marquee { overflow-x: auto; }
  .pt-track { animation: none; }
}
.pt-tile { flex: none; display: grid; place-items: center; width: 240px; height: 92px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .2); transition: box-shadow .25s; }
.pt-tile a { display: grid; place-items: center; width: 100%; height: 100%; }
.pt-tile a img { width: 65%; height: 65%; }
.pt-tile img { display: block; width: 65%; height: 65%; object-fit: contain; }

/* Tin tức trên trang chủ dùng cùng kiểu tiêu đề */
.hs-news .nw { max-width: 1280px; }
.hs-news .nw-head h2 { font-size: 21px; text-transform: uppercase; }
.hs-news .nw-head { align-items: flex-end; }
.hs-news .nw-all { border-bottom: 2px solid var(--color-primary, #e67e22); padding-bottom: 2px; }

/* Câu hỏi thường gặp */
.hs-faq { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.hs-cta { margin-top: 24px; padding: 24px; background: var(--color-primary-deep, #3e2723); color: #fff; }
.hs-cta h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.hs-cta p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.hs-cta a { display: inline-flex; align-items: center; height: 42px; margin-top: 16px; padding: 0 20px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; background: var(--color-primary, #e67e22); }
.hs-cta a:hover { background: var(--color-primary-hover, #d35400); }
.hs-qa details { border-top: 1px solid var(--color-line, #e5e7eb); }
.hs-qa details:last-child { border-bottom: 1px solid var(--color-line, #e5e7eb); }
.hs-qa summary { position: relative; cursor: pointer; list-style: none; padding: 7.5px 32px 7.5px 0; font-size: 15px; font-weight: 600; color: var(--color-ink, #191c1d); }
.hs-qa summary::-webkit-details-marker { display: none; }
.hs-qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--color-primary, #e67e22); }
.hs-qa details[open] summary::after { content: '–'; }
.hs-qa details > div { padding: 0 0 16px; }
.hs-qa p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; color: var(--color-ink-muted, #4b5563); }

/* Khoảng cách tới dải cam kết ở cuối trang */
.hs-end { --space-trust-strip-top: 40px; --space-trust-strip-top-lg: 48px; }

@media (max-width: 1024px) {
  .hs-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-about, .hs-faq { gap: 32px; }
}
@media (max-width: 767px) {
  .hs-title, #bestseller-heading, .hs-news .nw-head h2 { font-size: 18px; }
  .hs { padding: 40px 0; }
  .hs-partners { padding-bottom: 0; }
  .hs-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .hs-lead { font-size: 14px; }
  .hs-about, .hs-faq, .hs-lines { grid-template-columns: 1fr; }
  .hs-nums { grid-template-columns: repeat(2, 1fr); }
  .hs-nums > div { border-left: 0; }
  .hs-nums > div:nth-child(even) { border-left: 1px solid var(--color-line, #e5e7eb); }
  .hs-nums > div:nth-child(n+3) { border-top: 1px solid var(--color-line, #e5e7eb); }
  .hs-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hs-cat:last-child { grid-column: 1 / -1; flex-direction: row; }
  .hs-cat:last-child .hs-cat-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 120px; }
  .hs-cat-body { padding: 10px; }
  .hs-cat-body small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hs-steps { grid-template-columns: 1fr; }
  .hs-steps li { padding: 16px; }
  .hs-line { padding: 16px; }
  .pt-group { gap: 8px; padding-right: 8px; }
  .pt-tile { width: 150px; height: 64px; padding: 8px 10px; }
  .hs-end { --space-trust-strip-top: 24px; }
}

/* Video năng lực: tràn hết bề ngang, sát hai mép và sát mục kế tiếp */
.hs-with-video { padding-bottom: 0; }
.hs-video { margin-top: 40px; }
.hs-video .custom-video-player { display: block; border: 0; box-shadow: none; max-height: calc(100svh - 90px); }
.hs-video .video-element { object-fit: cover; }
.hs-video .custom-video-player:fullscreen { max-height: none; }
.hs-video .custom-video-player:fullscreen .video-element { object-fit: contain; }
@media (max-width: 767px) {
  .hs-video { margin-top: 28px; }
}
