/* ==========================================================================
   Trang chủ (front-page.php) — port từ trang-chu.dc.html
   ========================================================================== */

.hc-home-stack { display: flex; flex-direction: column; gap: var(--space-9); }

/* ---------- 01 Slider banner ---------- */
.hc-home-slider { position: relative; aspect-ratio: 1920 / 658; max-height: 760px; width: 100%; overflow: hidden; background: var(--indigo-600); }
.hc-home-slide { position: absolute; inset: 0; display: block; color: var(--white); }
.hc-home-slide:hover { text-decoration: none; color: var(--white); }
.hc-home-slider:not(.is-ready) .hc-home-slide:first-child { opacity: 1; pointer-events: auto; }
.hc-home-slide__zoom { position: absolute; inset: 0; transform: scale(1); transition: transform 6s linear; }
.hc-home-slider.is-ready .hc-home-slide.is-active .hc-home-slide__zoom { transform: scale(1.06); }
.hc-home-slide__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hc-home-slide__in { position: absolute; inset: 0; display: flex; align-items: center; }
.hc-home-slide__box { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.hc-home-slide__text { max-width: 560px; display: flex; flex-direction: column; gap: var(--space-4); color: var(--white); }
.hc-home-slide__title { font-family: var(--font-display); font-size: clamp(28px, 4.2vw, var(--size-display)); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); text-transform: uppercase; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hc-home-slider__nav { position: absolute; left: 0; right: 0; bottom: 24px; pointer-events: none; }
.hc-home-slider__navin { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.hc-home-slider__dots, .hc-home-slider__arrows { display: flex; gap: var(--space-2); pointer-events: auto; }
.hc-home-slider__dot { border: 0; padding: 0; cursor: pointer; height: 8px; width: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,.5); transition: all var(--dur-base) var(--ease-standard); }
.hc-home-slider__dot.is-active { width: 32px; background: var(--white); }
@media (prefers-reduced-motion: reduce) {
	.hc-home-slide__zoom { transition: none; }
	.hc-home-slider.is-ready .hc-home-slide.is-active .hc-home-slide__zoom { transform: none; }
}

/* ---------- 02 Danh mục nổi bật ---------- */
.hc-home-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-5); }
.hc-home-cat { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--white); color: var(--text-primary); transition: border-color var(--dur-fast) var(--ease-standard); }
.hc-home-cat:hover { border-color: var(--primary); color: var(--text-primary); text-decoration: none; }
.hc-home-cat__media { flex: none; width: 128px; height: 100px; border-radius: var(--radius-md); background: var(--surface-subtle); display: flex; align-items: center; justify-content: center; }
.hc-home-cat__img { width: 96px; height: 75px; }
.hc-home-cat__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hc-home-cat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hc-home-cat__name { font-family: var(--font-display); font-size: var(--size-title); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.hc-home-cat__note { font-size: var(--size-body); color: var(--text-muted); }
.hc-home-cat__arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--primary); color: var(--primary); }

/* ---------- 03 Sản phẩm theo danh mục ---------- */
.hc-home-blocks { display: flex; flex-direction: column; gap: 64px; }
.hc-home-block { display: flex; flex-direction: column; gap: var(--space-6); }
.hc-home-block__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-bottom: var(--space-4); border-bottom: 2px solid var(--primary); }
.hc-home-block__title { margin: 0; font-family: var(--font-display); font-size: var(--size-h2); font-weight: var(--weight-bold); line-height: var(--leading-tight); text-transform: uppercase; }
.hc-home-block__actions { display: flex; align-items: center; gap: var(--space-3); }
.hc-home-block__all { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); color: var(--primary); margin-right: var(--space-2); }
.hc-home-block__all:hover { color: var(--primary-hover); text-decoration: none; }

/* ---------- 05 Video / 07 Giới thiệu (2 cột) ---------- */
.hc-home-split { display: grid; gap: var(--space-12); align-items: center; }
.hc-home-split--video { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.hc-home-split--about { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.hc-home-video__text { display: flex; flex-direction: column; gap: var(--space-5); max-width: 480px; }
.hc-home-lead-muted { margin: 0; font-size: var(--size-ui); line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.hc-home-video__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--black); }
.hc-home-video__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-home-video__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(0,0,0,.25); }
.hc-home-video__play { pointer-events: auto; width: 80px; height: 80px; border-radius: var(--radius-pill); border: 0; background: var(--white); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--dur-fast) var(--ease-standard); }
.hc-home-video__play:hover { transform: scale(1.06); }

.hc-home-about__media { aspect-ratio: 3 / 2; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-subtle); }
.hc-home-about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-home-about__text { display: flex; flex-direction: column; gap: var(--space-5); }
.hc-home-about__lead { margin: 0; font-size: var(--size-lead); line-height: var(--leading-snug); text-wrap: pretty; }
.hc-home-about__p { margin: 0; font-size: var(--size-ui); line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.hc-home-about__links { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.hc-home-about__links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-ui); font-size: var(--size-ui); font-weight: var(--weight-semibold); color: var(--text-primary); }
.hc-home-about__links a:hover { color: var(--primary); text-decoration: none; }

/* ---------- 08 Dịch vụ ---------- */
.hc-home-svc__titles { color: var(--text-primary); }
.hc-home-svc__titles .hc-eyebrow { color: inherit; }
.hc-home-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--space-5); }
.hc-home-svc { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); min-height: 280px; background: var(--white); border: 1px solid var(--border-subtle); color: var(--text-primary); transition: background-color var(--dur-fast) var(--ease-standard); }
.hc-home-svc:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.hc-home-svc__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-pill); border: 1px solid currentColor; }
.hc-home-svc__name { font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
.hc-home-svc__desc { font-size: 14px; line-height: 1.55; }
.hc-home-svc__more { margin-top: auto; display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); }

/* ---------- 09 Logo đối tác ---------- */
.hc-home-partners { display: flex; flex-direction: column; gap: var(--space-8); }
.hc-home-partners__head { padding: 0 10px; }
.hc-home-partners__arrows { display: flex; gap: var(--space-2); }
.hc-home-partners__view { overflow: hidden; margin: 0 -10px; }
.hc-home-partner { flex: 0 0 20%; padding: 0 10px; box-sizing: border-box; }
@media (max-width: 939px) { .hc-home-partner { flex-basis: 33.3333%; } }
@media (max-width: 639px) { .hc-home-partner { flex-basis: 50%; } }
.hc-home-partner__box { height: 120px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--white); display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.hc-home-partner__logo { width: 100%; height: 80px; }
.hc-home-partner__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- 06 Blog mới nhất ---------- */
.hc-home-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-5); }
.hc-home-post__media { aspect-ratio: 3 / 2; }
.hc-home-post__meta { display: flex; gap: var(--space-3); align-items: center; font-size: var(--size-body); color: var(--text-muted); }
.hc-home-post__excerpt { margin: 0; font-size: var(--size-body); line-height: var(--leading-body); color: var(--text-muted); }
.hc-home-post__more { margin-top: auto; padding-top: var(--space-2); display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); color: var(--primary); }
.hc-home-post__more .hc-icon { transition: transform var(--dur-fast) var(--ease-standard); }
.hc-home-post:hover .hc-home-post__more .hc-icon { transform: translateX(3px); }

/* Builder: tuỳ chọn vị trí ảnh, mô tả danh mục tối đa 2 dòng */
.hc-split--media-first .hc-home-video__media { order: -1; }
.hc-split--media-last .hc-home-about__media { order: 2; }
.hc-home-cat__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Mobile: slider vuông 1:1 (vd 375 × 375) */
@media (max-width: 768px) {
	.hc-home-slider { aspect-ratio: 1 / 1; max-height: none; }
}
