/* ==========================================================================
   CƠ KHÍ CHÍNH XÁC KNT — pages.css
   Section đặc thù: hero slider, dải thống kê, dịch vụ, sản phẩm, timeline,
   logo đối tác, testimonial, news card, trang con (breadcrumb banner),
   trang liên hệ (info + map placeholder).
   ========================================================================== */

/* ==========================================================================
   HERO SLIDER — theo mẫu hoaphat.com.vn: ảnh nền là chủ đạo, chữ tối giản
   (nhãn mảng + tagline + 1 câu), cả khối chữ là 1 link, không nút bấm.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
}
.hero__viewport { position: relative; }
.hero__track { position: relative; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }

/* Ảnh nền phủ toàn slide — giữ ảnh sáng, nổi bật */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04); /* che viền màu bake sẵn trong ảnh tạm */
}
/* Scrim rất nhẹ chỉ ở vùng chữ bên trái + đáy, không làm tối ảnh */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(13, 16, 51, .3) 72%, rgba(13, 16, 51, .68) 100%);
}

/* Khối chữ = 1 link (như hoaphat), tối giản 3 dòng */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 580px;
  min-height: clamp(400px, 56vh, 560px);
  padding-top: 40px;
  padding-bottom: 72px; /* nằm trên hàng chấm điều hướng */
  color: #fff;
}
.hero__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: clamp(.88rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
  transition: color var(--t-fast);
}
/* Mũi tên cam trước nhãn (kiểu "› BẤT ĐỘNG SẢN") */
.hero__name::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
  transition: transform var(--t-fast);
}
.hero__inner:hover .hero__name { color: #ffd9b0; }
.hero__inner:hover .hero__name::before { transform: rotate(45deg) translate(2px, -2px); }
.hero__title {
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  margin-bottom: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.hero__title .hl { color: var(--accent); }

/* Slider controls */
.hero__arrows {
  position: absolute;
  z-index: 4;
  bottom: 26px;
  right: 26px;
  display: flex;
  gap: 10px;
}
.hero__arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  transition: background var(--t-fast);
  backdrop-filter: blur(2px);
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrow svg { width: 22px; height: 22px; }

.hero__dots {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}
.hero__dot {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: background var(--t-fast), width var(--t-fast);
}
.hero__dot.is-active { background: var(--accent); width: 28px; }

/* ==========================================================================
   STATS STRIP (counter)
   ========================================================================== */
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-cell {
  text-align: center;
  padding: 30px 18px;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-cell__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--primary);
  line-height: 1.05;
}
.stat-cell__value .suffix { color: var(--accent); }
.stat-cell__label { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* Stats band on dark */
.stats-band { background: var(--primary); color: #fff; }
.stats-band .stat-cell { border-color: rgba(255, 255, 255, .14); }
.stats-band .stat-cell__value { color: #fff; }
.stats-band .stat-cell__value .suffix { color: #ffd9b0; }
.stats-band .stat-cell__label { color: var(--navy-text); }

/* ==========================================================================
   SERVICES GRID (icon cards)
   ========================================================================== */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(21, 35, 132, .1), rgba(76, 156, 255, .08));
  color: var(--primary);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card:hover .service-card__icon { background: var(--primary); color: #fff; }
.service-card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.service-card p { font-size: .95rem; margin-bottom: 16px; flex: 1; }
.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.service-card__tol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.service-card__tol svg { width: 16px; height: 16px; color: var(--accent); }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
}
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-card__media { position: relative; }
.product-card__media .img-ph { border-radius: 0; aspect-ratio: 16 / 11; }
.product-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: rgba(13, 22, 87, .82);
  color: #fff;
  backdrop-filter: blur(2px);
}
.product-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.1rem; margin-bottom: 9px; }
.product-card__body p { font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product-card__specs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.product-card__specs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--ink);
}
.product-card__specs svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.product-card__foot { margin-top: auto; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-grid { grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.why-feature:last-child { margin-bottom: 0; }
.why-feature__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  flex: none;
}
.why-feature__icon svg { width: 26px; height: 26px; }
.why-feature h3 { font-size: 1.1rem; margin-bottom: 5px; }
.why-feature p { font-size: .94rem; }
.why-visual { position: relative; }
.why-visual .img-ph { aspect-ratio: 4 / 3.6; }
/* padding-inline + cho phép xuống dòng: dòng "Bắc Ninh, Việt Nam" từng thò
   hai đầu ra ngoài vòng tròn ở khổ tablet. */
.why-badge { padding-inline: 12px; }
.why-badge span { line-height: 1.15; }
.why-badge {
  position: absolute;
  right: -16px; top: -16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  line-height: 1.1;
}
.why-badge strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.why-badge span { font-size: .72rem; margin-top: 3px; }
/* [Feedback 28/07] Biến thể logo: chip trắng bo góc chứa logo kèm slogan,
   thay vòng tròn cam. Selector 2 class thắng mọi rule .why-badge ở media query. */
.why-badge.why-badge--logo {
  width: auto;
  height: auto;
  right: -14px;
  top: -14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(21, 35, 132, .12);
}
.why-badge.why-badge--logo img {
  display: block;
  height: clamp(34px, 4.5vw, 46px);
  width: auto;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.timeline { position: relative; counter-reset: step; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 22px;
  padding-bottom: 28px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  counter-increment: step;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  flex: none;
}
.timeline__num::before { content: counter(step, decimal-leading-zero); }
.timeline__body { padding-top: 6px; }
.timeline__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline__body p { font-size: .94rem; }

/* Horizontal process variant (homepage) */
.process-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
/* Biến thể số cột — dùng chung: tpl-about.php (5 bước), archive-dich_vu.php
   (5 bước), tpl-contact.php (3 kênh). Trước đây chèn inline qua
   knt_pages_inline_css() nên chỉ có tác dụng trên 2 page template, làm
   /dich-vu/ render 5 bước trên lưới 4 cột. */
.process-grid--5 { grid-template-columns: repeat(5, 1fr); }
.process-grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Số bước do admin tự thêm/bớt qua repeater nên cần đủ rule 3..6 cột. */
.process-grid--4 { grid-template-columns: repeat(4, 1fr); }
.process-grid--6 { grid-template-columns: repeat(6, 1fr); }
.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-step__num {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  margin-bottom: 16px;
  /* [Feedback 28/07] Số bước đổi từ navy sang CAM theo màu logo. */
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}
/* Viền trên cam nhấn khối bước + mũi tên nối cùng tông cam */
.process-step { border-top: 3px solid var(--accent); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: .9rem; }
.process-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -16px; top: 48px;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   PARTNERS LOGO GRID
   ========================================================================== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 130px;
  padding: 22px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.logo-card__mark {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(21, 35, 132, .12), rgba(76, 156, 255, .08));
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.logo-card__name { font-weight: 600; font-size: .86rem; color: var(--ink); line-height: 1.25; }
.logo-card__sector { font-size: .76rem; color: var(--muted); }

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.testimonial-card__quote {
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: .35;
  margin-bottom: 8px;
}
.testimonial-card p { color: var(--ink); font-size: 1rem; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 13px; }
.testimonial-card__avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  flex: none;
}
.testimonial-card__name { font-weight: 700; color: var(--ink); font-size: .96rem; }
.testimonial-card__role { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.news-card__media { position: relative; }
.news-card__media .img-ph { border-radius: 0; aspect-ratio: 16 / 9; }
.news-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}
.news-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.news-card__date svg { width: 15px; height: 15px; color: var(--primary-light); }
.news-card__body h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.35; }
.news-card__body h3 a:hover { color: var(--primary); }
.news-card__body p { font-size: .92rem; margin-bottom: 16px; flex: 1; }
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
  margin-top: auto;
}
.news-card__more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.news-card:hover .news-card__more svg { transform: translateX(3px); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background:
    radial-gradient(120% 140% at 90% 10%, rgba(241, 101, 34, .28), transparent 55%),
    linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 18px, transparent 18px 36px);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 36px;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--navy-text); font-size: 1.05rem; margin-bottom: 18px; }
.cta-band__list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
/* flex-start: mục nào xuống 2 dòng thì dấu tick phải thẳng hàng DÒNG ĐẦU,
   nếu center thì tick tụt xuống khe giữa 2 dòng (thấy rõ trên mobile). */
.cta-band__list li { display: inline-flex; align-items: flex-start; gap: 8px; font-size: .94rem; color: var(--primary-pale); }
.cta-band__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 14px; }
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
}
.cta-band__phone svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.cta-band__phone .lbl { font-size: .78rem; color: var(--navy-text); display: block; }
.cta-band__phone .num { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: #fff; }

/* ==========================================================================
   PAGE BANNER (sub-page breadcrumb banner)
   ========================================================================== */
.page-banner {
  position: relative;
  /* [Đợt 1 — 1.10] Điểm dừng đầu đổi sang --primary: trước đây cả 2 điểm dừng
     cùng #0d1657 (--primary-dark = #0d1657) nên gradient không có chuyển màu. */
  background:
    radial-gradient(110% 130% at 88% 10%, rgba(76, 156, 255, .5), transparent 55%),
    linear-gradient(120deg, var(--primary) 0%, #0d1657 100%);
  color: #fff;
  overflow: hidden;
  /* [Vòng 2 — 30/07] Chữ NEO ĐÁY (ảnh công nghiệp có chủ thể ở giữa/trên):
     đáy mỏng, đỉnh dày để lộ ảnh — tổng chiều cao ~380-420px thay vì 455px. */
  display: flex;
  align-items: flex-end;
  padding: clamp(72px, 9vw, 120px) 0 clamp(28px, 3.4vw, 44px);
}
/* [Feedback 28/07] Banner có ẢNH NỀN admin chọn (field banner_image):
   ảnh phủ toàn khối + lớp navy đè lên để chữ trắng luôn đọc rõ. */
.page-banner--photo {
  background-size: cover;
  background-position: center;
}
/* [Vòng 2 — 30/07] Lớp phủ HAI TẦNG thay dải ngang cũ (mép phải chữ chỉ đạt
   alpha .50 → chữ trắng đè ảnh sáng không đủ tương phản): tầng 1 tối dần từ
   đáy lên giữ chữ luôn nổi, tầng 2 vệt tối phía trái KHÔNG xuống dưới .45
   trong vùng chữ. Công thức dùng CHUNG với hero trang chủ (hp-hero.css). */
.page-banner--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 10, 32, .86) 0%, rgba(6, 10, 32, .55) 42%, rgba(6, 10, 32, .18) 78%, rgba(6, 10, 32, .10) 100%),
    linear-gradient(90deg, rgba(6, 10, 32, .72) 0%, rgba(6, 10, 32, .55) 55%, rgba(6, 10, 32, .45) 100%);
}
.page-banner--photo .page-banner__inner { position: relative; z-index: 1; }
/* [Vòng 2 — 30/07] BỎ sọc chéo trắng 45° (.page-banner::after cũ) — trên ảnh
   trông như nhiễu/quét lỗi; nền gradient navy trơn đã đủ. */
.page-banner__inner { position: relative; z-index: 1; max-width: 760px; padding-bottom: clamp(8px, 1.4vw, 18px); }
.page-banner .badge { background: rgba(255, 255, 255, .14); color: #ffd9b0; margin-bottom: 14px; }
/* [Vòng 2 — 30/07] text-shadow nhẹ: bảo hiểm khi khách tải ảnh sáng. */
.page-banner h1 { color: #fff; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(4, 8, 26, .45); }
.page-banner p { color: var(--navy-text); font-size: 1.08rem; text-shadow: 0 1px 10px rgba(4, 8, 26, .4); }
.page-banner .breadcrumb { text-shadow: 0 1px 10px rgba(4, 8, 26, .4); }
.page-banner .breadcrumb { padding: 0; margin-top: 18px; color: var(--navy-text-dim); }
.page-banner .breadcrumb a { color: var(--navy-text-dim); }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb .sep { color: #6a86cf; }
.page-banner .breadcrumb [aria-current="page"] { color: #ffd9b0; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 15px; }
.contact-info-item__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(21, 35, 132, .09);
  color: var(--primary);
  flex: none;
}
.contact-info-item__icon svg { width: 22px; height: 22px; }
.contact-info-item__label { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.contact-info-item__value { font-weight: 600; color: var(--ink); }
.contact-info-item__value a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* Map placeholder */
.map-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(21, 35, 132, .08), transparent),
    repeating-linear-gradient(0deg, rgba(100, 116, 139, .12) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(100, 116, 139, .12) 0 1px, transparent 1px 40px),
    var(--primary-pale);
  display: grid;
  place-items: center;
}
.map-ph__pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  max-width: 80%;
}
.map-ph__pin svg { width: 34px; height: 34px; color: var(--accent); }
.map-ph__pin strong { font-family: var(--font-heading); color: var(--ink); }
.map-ph__pin span { font-size: .86rem; color: var(--muted); }

/* Department cards */
.dept-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.dept-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(241, 101, 34, .12);
  color: var(--accent);
  flex: none;
}
.dept-card__icon svg { width: 22px; height: 22px; }
.dept-card h3 { font-size: 1rem; margin-bottom: 4px; }
.dept-card a { color: var(--primary); font-weight: 600; font-size: .9rem; }
.dept-card a:hover { color: var(--primary-dark); }

/* ==========================================================================
   GENERIC SUB-PAGE BLOCKS (intro split, value cards, history)
   ========================================================================== */
.split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split--reverse .split__media { order: 2; }
.split__media .img-ph { aspect-ratio: 4 / 3.2; }
.split__body h2 { margin-bottom: 16px; }
.split__list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.split__list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: .97rem; }
.split__list svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }

.value-card {
  text-align: center;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  height: 100%;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.value-card__icon svg { width: 30px; height: 30px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: .94rem; }

/* ==========================================================================
   RESPONSIVE — pages
   ========================================================================== */
@media (max-width: 992px) {
  .hero__inner { max-width: 100%; min-height: clamp(300px, 42vh, 420px); padding-bottom: 64px; }
  .hero__arrows { bottom: 18px; right: 18px; }
  .hero__dots { bottom: 16px; }

  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-band .stat-cell:nth-child(-n+2) { border-bottom-color: rgba(255, 255, 255, .14); }

  .why-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid--5, .process-grid--4, .process-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .process-grid--3 { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }

  .logo-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-band__inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid--5, .process-grid--4, .process-grid--6 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .why-badge { width: 92px; height: 92px; right: 8px; top: -8px; }
  .why-badge strong { font-size: 1.2rem; }
  .cta-band__list { flex-direction: column; }
}

/* ==========================================================================
   PRODUCT PAGE — thanh lọc theo danh mục (jump-nav) + bù khoảng cuộn cho header dính
   ========================================================================== */
.product-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}
.product-filter__label {
  font-weight: 700;
  color: var(--ink);
  font-size: .92rem;
  margin-right: 4px;
}
.product-filter .btn {
  padding: 8px 16px;
  font-size: .88rem;
}
/* Bù chiều cao header dính khi nhảy tới mỏ neo danh mục */
#danh-muc-tat-ca,
#linh-kien-o-to-xe-may,
#linh-kien-khuon-mau,
#do-ga-dung-cu-cong-nghiep,
#cum-chi-tiet-may,
#vat-lieu-gia-cong { scroll-margin-top: 96px; }

/* ==========================================================================
   KNT BỔ SUNG — bố cục danh mục + sidebar, chi tiết sản phẩm/dịch vụ,
   bài viết, thư viện ảnh (bố cục tham khảo hncnc.com.vn)
   ========================================================================== */

/* ---------- Bố cục 2 cột: sidebar + nội dung ---------- */
.catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.catalog--right { grid-template-columns: 1fr 280px; }
/* Sidebar cuộn theo trang (không ghim) — tránh phải cuộn hết trang mới thấy khối dưới */
.catalog__side { display: grid; gap: 22px; align-self: start; }

.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.side-box__title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.side-box__title svg { width: 17px; height: 17px; flex: none; }
.side-box__body { padding: 8px 0 12px; }

.side-nav__group {
  display: block;
  padding: 12px 18px 4px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.side-nav__group a:hover { color: var(--accent); }
.side-nav a.side-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: .93rem;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}
.side-nav a.side-nav__link svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
.side-nav a.side-nav__link:hover,
.side-nav a.side-nav__link.is-active {
  background: rgba(21, 35, 132, .06);
  color: var(--primary);
  border-left-color: var(--accent);
}

/* "Có thể bạn quan tâm" */
.side-related { padding: 6px 0; }
.side-related__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.side-related__item:last-child { border-bottom: none; }
.side-related__thumb { width: 64px; flex: none; }
.side-related__thumb .img-ph { aspect-ratio: 1/1; border-radius: 8px; }
.side-related__thumb .img-ph::after { display: none; }
.side-related__name { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.side-related__item:hover .side-related__name { color: var(--primary); }

/* ---------- Thanh tiêu đề mục (kiểu hncnc) ---------- */
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.block-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 90px; height: 2px;
  background: var(--accent);
}
.block-title h1, .block-title h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--primary-dark);
}
.block-title .badge { flex: none; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.pd-media .img-ph { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pd-price__label { font-weight: 600; color: var(--muted); }
.pd-price__value { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.pd-attrs { display: grid; gap: 9px; margin-bottom: 22px; }
.pd-attrs li { display: flex; gap: 8px; font-size: .95rem; color: var(--muted); }
.pd-attrs li strong { color: var(--ink); font-weight: 600; flex: none; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-cta .btn svg { width: 18px; height: 18px; }

.pd-section { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Nội dung bài viết / mô tả dài ---------- */
.rich { max-width: 820px; }
.rich > * + * { margin-top: 16px; }
.rich h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 30px; color: var(--primary-dark); }
.rich h3 { font-size: clamp(1.08rem, 1.8vw, 1.25rem); margin-top: 24px; }
.rich p { color: var(--muted); }
.rich ul { display: grid; gap: 9px; padding-left: 4px; }
.rich ul li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.rich ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(241, 101, 34, .14);
}
.rich ul li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.rich strong { color: var(--ink); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 10px 0 24px;
  font-size: .9rem;
  color: var(--muted);
}
.article-meta svg { width: 15px; height: 15px; }
.article-meta__item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Thư viện ảnh ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.gallery-item { display: block; }
.gallery-item .img-ph { transition: transform var(--t); }
.gallery-item:hover .img-ph { transform: scale(1.02); }
.gallery-item__caption {
  margin-top: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.gallery-item.is-hidden { display: none; }

/* ---------- Ghi chú cập nhật (ảnh thật đang chờ khách gửi) ---------- */
.note-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(241, 101, 34, .08);
  border: 1px dashed rgba(241, 101, 34, .4);
  color: var(--accent-dark);
  font-size: .92rem;
}
.note-strip svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- Responsive bổ sung ---------- */
@media (max-width: 992px) {
  .catalog, .catalog--right { grid-template-columns: 1fr; }
  .catalog__side { position: static; order: 2; }
  .catalog--right .catalog__side { order: 2; }
  .pd-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .pd-cta .btn { width: 100%; }
}

/* Anchor scroll không bị header che */
main [id] { scroll-margin-top: 110px; }

/* ==========================================================================
   KNT V3 — ảnh thật (tạm dùng ảnh web mẫu), thẻ sản phẩm gọn, tìm kiếm + lọc
   ========================================================================== */

/* ---------- Ảnh thật thay khối màu ---------- */
.img-real {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--primary-pale);
}
.img-real--wide { aspect-ratio: 16 / 9; }
.why-visual .img-real { aspect-ratio: 4 / 3; }
.split__media .img-real { aspect-ratio: 4 / 3.2; }
.product-card__media .img-real { border-radius: 0; aspect-ratio: 16 / 11; }
.news-card__media .img-real { border-radius: 0; aspect-ratio: 16 / 9; }
.pd-media .img-real { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.side-related__thumb .img-real { aspect-ratio: 1 / 1; border-radius: 8px; }
.gallery-item .img-real { aspect-ratio: 16 / 10; }
.gallery-item .img-real { transition: transform var(--t); }
.gallery-item:hover .img-real { transform: scale(1.02); }
.sv-hero .img-real { aspect-ratio: 16 / 7; border-radius: var(--radius); }

/* ---------- Thẻ sản phẩm gọn (trang danh mục, SP cùng loại) ---------- */
.grid--compact { gap: 16px; }
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), opacity .32s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
/* Hiệu ứng khi lọc theo tab/chip: card mờ + trượt xuống trước khi ẩn hẳn */
.pcard.is-filtering-out { opacity: 0; transform: translateY(14px); pointer-events: none; }
.pcard__media { display: block; position: relative; }
.pcard__media .img-real, .pcard__media .img-ph { border-radius: 0; aspect-ratio: 4 / 3; }
.pcard__media .img-ph::after { font-size: .78rem; padding: 6px 10px; }
.pcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pcard__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.35;
  color: var(--ink);
  /* Nội dung do admin nhập — chống tràn (chuỗi dài không khoảng trắng) và
     giới hạn 2 dòng để các thẻ trong lưới giữ chiều cao đồng đều. */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pcard:hover .pcard__name { color: var(--primary); }
.pcard__cat { font-size: .76rem; color: var(--muted); }
.pcard__price { font-family: var(--font-heading); font-weight: 800; font-size: .95rem; color: var(--accent); }
.pcard__price em { font-style: normal; font-weight: 500; font-size: .76rem; color: var(--muted); }

/* ---------- Thanh tìm kiếm + chip lọc (trang sản phẩm) ---------- */
.sp-toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.sp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.sp-search:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(76, 156, 255, .12); }
.sp-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sp-search input {
  width: 100%;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: .96rem;
}
.sp-search input:focus { outline: none; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips .tab-btn { padding: 8px 15px; font-size: .86rem; }
.sp-count { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.sp-count strong { color: var(--ink); }
.sp-empty {
  padding: 28px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* Lưới sản phẩm trong cột nội dung có sidebar: 3 cột desktop */
.catalog .grid--compact { grid-template-columns: repeat(3, 1fr); display: grid; }
@media (max-width: 992px) {
  .catalog .grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .catalog .grid--compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 10px 11px 12px; }
}

/* Chip lọc căn giữa (khu sản phẩm trang chủ) + lưới gọn mobile 2 cột toàn cục */
.sp-chips--center { justify-content: center; }
@media (max-width: 600px) {
  .grid--compact.grid-4, .grid--compact.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==========================================================================
   KNT V4 — thẻ dịch vụ kiểu hàng ngang (media trái + nội dung phải)
   Thân thiện hơn 3 cột thẻ đứng: dễ quét mắt, responsive tự nhiên.
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.service-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* Chừa chỗ cho số thứ tự lớn ở góc thẻ: tên dịch vụ dài ("Gia công linh kiện,
   chi tiết theo yêu cầu") từng chạm/đè lên nét số 06. */
.service-tile__name { padding-right: 62px; }
.service-tile__num {
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(21, 35, 132, .07);
  pointer-events: none;
}
.service-tile__media { flex: none; width: 148px; }
.service-tile__media .img-real,
.service-tile__media .img-ph { aspect-ratio: 4 / 3; border-radius: 10px; }
.service-tile__media .img-ph::after { font-size: .7rem; padding: 5px 9px; }

.service-tile__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.service-tile__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  /* Nội dung do admin nhập — chống tràn (chuỗi dài không khoảng trắng) và
     giới hạn 2 dòng để các thẻ trong lưới giữ chiều cao đồng đều. */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.service-tile:hover .service-tile__name { color: var(--primary); }
.service-tile__desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent-dark);
}
.service-tile__link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.service-tile:hover .service-tile__link svg { transform: translateX(4px); }

@media (max-width: 992px) {
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .service-tile { gap: 13px; padding: 12px; }
  .service-tile__media { width: 104px; }
  .service-tile__media .img-real, .service-tile__media .img-ph { aspect-ratio: 1 / 1; }
  .service-tile__desc { -webkit-line-clamp: 2; font-size: .86rem; }
  .service-tile__num { font-size: 2rem; }
}

/* ==========================================================================
   KNT V4b — sửa theo audit thiết kế 3 breakpoint
   ========================================================================== */

/* Tiêu đề banner không rơi chữ mồ côi */
.page-banner h1 { text-wrap: balance; }

/* Ảnh chi tiết sản phẩm: 4/3 (ảnh nguồn ngang) — bớt crop + bớt vỡ nét */
.pd-media .img-real { aspect-ratio: 4 / 3; }
.pd-media .img-ph { aspect-ratio: 4 / 3; }

/* Giá trị thông số xuống dòng vẫn căn trái */
.pd-attrs li span { flex: 1; min-width: 0; text-align: left; }

/* Dòng giá ghim đáy thẻ gọn — thẳng hàng giữa các thẻ cùng hàng */
.pcard__body { flex: 1; }
.pcard__price { margin-top: auto; padding-top: 6px; }

/* Độ dài dòng bài viết dễ đọc (~68 ký tự) */
.rich { max-width: 68ch; overflow-wrap: anywhere; }
.rich p { font-size: 1.02rem; line-height: 1.75; }

/* Nội dung biên tập tự do (the_content) — chống tràn ngang.
   wp-block-library đã bị dequeue (inc/frontend-cleanup.php) nên theme phải tự lo;
   body{overflow-x:hidden} khiến phần tràn bị CẮT MẤT chứ không cuộn được. */
.rich img, .rich iframe, .rich video, .rich embed { max-width: 100%; height: auto; }
.rich pre { max-width: 100%; overflow-x: auto; }
/* Bảng có wrapper (block editor): cuộn trong wrapper, giữ nguyên semantics <table> */
.rich .wp-block-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rich .wp-block-table table { width: 100%; border-collapse: collapse; }
/* Bảng trần (classic editor, không wrapper): ép vừa cột, chữ dài tự ngắt */
.rich > table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.rich th, .rich td { overflow-wrap: anywhere; }

@media (min-width: 601px) and (max-width: 992px) {
  /* Lưới 3 thẻ xuống 2 cột: thẻ lẻ cuối trải giữa thay vì mồ côi */
  .grid-3 > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
  /* Ảnh chi tiết sản phẩm gọn lại, căn giữa */
  .pd-media { max-width: 540px; margin-inline: auto; }
}

/* [C-005] Khi admin tự nhập danh sách giá trị cốt lõi, số thẻ không còn cố định
   5 nên không dùng được rule nth-child bên dưới — lưới tự dãn theo số thẻ. */
.grid-3.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Lưới 5 thẻ (Giá trị cốt lõi) trên desktop: 3 thẻ hàng trên, 2 thẻ hàng dưới
   CĂN GIỮA cho cân đối. Dùng grid 6 cột, mỗi thẻ span 2 (= 3 thẻ/hàng); thẻ 4-5
   lệch cột để nằm giữa. Chỉ áp ≥993px — dưới ngưỡng dùng lại quy tắc 2 cột / 1 cột. */
@media (min-width: 993px) {
  .grid-3.grid--center5 { grid-template-columns: repeat(6, 1fr); }
  .grid-3.grid--center5 > * { grid-column: span 2; }
  .grid-3.grid--center5 > *:nth-child(4) { grid-column: 2 / span 2; }
  .grid-3.grid--center5 > *:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 992px) {
  /* Tap target chuẩn cảm ứng */
  .sp-chips { gap: 10px; }
  .sp-chips .tab-btn, .tabs .tab-btn { min-height: 44px; padding: 10px 18px; }
  .side-nav a.side-nav__link { padding: 12px 18px; }
  .side-nav__group { padding: 14px 18px 4px; }
  /* Badge tròn trên ảnh giới thiệu: nhỏ lại, kéo vào trong */
  .why-badge { width: 88px; height: 88px; right: 10px; top: -8px; }
  .why-badge span { font-size: .58rem; }
}

@media (max-width: 600px) {
  /* Breadcrumb bài viết dài: cắt bớt bằng dấu … */
  .breadcrumb [aria-current="page"] {
    max-width: 62vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
  }
}

/* ===== Sửa theo audit: chống tràn ở vùng dữ liệu động ===== */
/* Cột trong lưới .catalog phải co được — mặc định grid item có min-width:auto
   nên nội dung dài (URL, bảng, ảnh) đẩy cả lưới tràn ngang. */
.catalog > * { min-width: 0; }
/* Từ khóa tìm kiếm do người dùng gõ — không được đẩy tràn banner. */
.page-banner h1 { overflow-wrap: anywhere; }
/* Caption ảnh do admin nhập. */
.gallery-item__caption { overflow-wrap: anywhere; }

/* Vùng chạm tối thiểu 44px trên thiết bị cảm ứng (Apple HIG; WCAG 2.5.8 tối
   thiểu 24px). Đo được: link "Đọc tiếp" chỉ cao 23px và số điện thoại 30px —
   quá thấp để bấm trúng bằng ngón tay, nhất là số ĐT vốn là nút hành động chính. */
@media (pointer: coarse) {
  .news-card__more { min-height: 44px; }
  .channel-card__phone { padding: 8px 0; }
}

/* Form tìm kiếm: ở màn hẹp cho ô nhập chiếm trọn 1 hàng và nút xuống hàng dưới,
   nếu không ô bị bóp còn ~150px -> placeholder cụt giữa chừng và chữ đang gõ
   dính vào nút xoá ✕ của trình duyệt. */
.knt-searchform__input { flex: 1 1 220px; min-width: 0; }
@media (max-width: 600px) {
  .knt-searchform__input { flex: 1 1 100%; padding-right: 34px; }
  .knt-searchform .btn { width: 100%; }
}

/* ==========================================================================
   [Feedback 28/07] THÀNH PHẨM TIÊU BIỂU (trang chủ) — lưới ảnh portfolio
   thay thẻ sản phẩm dạng bán hàng. 4 cột → 2 cột theo khổ màn hình.
   ========================================================================== */
.tp-grid {
  display: grid;
  /* [Đợt 5 — 5.5] auto-fit thay 4 cột cứng: trang dịch vụ chỉ có 2 ảnh vẫn cân
     hàng, không hụt nửa lưới. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.tp-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 24, 64, .08);
}
.tp-card img,
.tp-card .img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.tp-card:hover img { transform: scale(1.05); }
.tp-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, rgba(13, 18, 51, 0) 0%, rgba(13, 18, 51, .82) 78%);
  color: #fff;
}
.tp-card__name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.tp-card__cat { font-size: .74rem; opacity: .85; }
@media (max-width: 992px) {
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tp-card__overlay { padding: 22px 10px 9px; }
  .tp-card__name { font-size: .82rem; }
}

/* ==========================================================================
   [Feedback 28/07] GIỚI THIỆU — bộ thiết kế lại, mỗi section một kiểu riêng
   ========================================================================== */
/* Dải NĂNG LỰC & QUY MÔ trên nền navy (tái dùng .stats-band của bản tĩnh) */
.stats-band .section-title { color: #fff; }
.stats-band .section-head p { color: var(--navy-text); }
.stats-strip__grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 8px;
}

/* HÀNH TRÌNH PHÁT TRIỂN — dòng thời gian dọc, mốc năm cam */
.ab-timeline { max-width: 760px; margin: 6px auto 40px; }
.ab-timeline__item { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.ab-timeline__item::before {
  content: "";
  position: absolute;
  left: 37px; top: 38px; bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(241, 101, 34, .15));
}
.ab-timeline__item:last-child { padding-bottom: 0; }
.ab-timeline__item:last-child::before { display: none; }
.ab-timeline__year {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 76px; height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
}
.ab-timeline__body { text-align: left; }
.ab-timeline__body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.ab-timeline__body p { font-size: .92rem; margin: 0; }

/* TẦM NHÌN / SỨ MỆNH — 2 panel hai tông màu thương hiệu */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vm-panel { border-radius: var(--radius-lg); padding: 30px 28px; color: #fff; }
.vm-panel--vision { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.vm-panel--mission { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.vm-panel__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  margin-bottom: 14px;
}
.vm-panel__icon svg { width: 24px; height: 24px; }
.vm-panel h3 { color: #fff; margin-bottom: 8px; }
.vm-panel p { color: rgba(255, 255, 255, .92); font-size: .95rem; margin: 0; }

/* GIÁ TRỊ CỐT LÕI — thẻ đánh số 01/02/… viền trái cam */
.vnum-grid {
  display: grid;
  /* [Đợt 1 — 1.9] minmax 200px để 5 thẻ vừa 1 hàng ở container 1152px
     (230px chỉ vừa 4 cột → thẻ thứ 5 rơi xuống hàng 2 lệch trái). */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.vnum-card {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.vnum-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vnum-card__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: rgba(21, 35, 132, .18);
}
.vnum-card__icon { color: var(--accent); }
.vnum-card__icon svg { width: 26px; height: 26px; }
.vnum-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vnum-card p { font-size: .9rem; margin: 0; }

/* 3 TRỤ CAM KẾT — Chính xác / Tốc độ / Uy tín */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  text-align: center;
}
.pillar { padding: 10px 14px; }
.pillar__icon {
  width: 78px; height: 78px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 26px rgba(241, 101, 34, .35);
}
.pillar__icon svg { width: 36px; height: 36px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar p { font-size: .95rem; max-width: 340px; margin: 0 auto; }

/* PHẢN HỒI CỦA KHÁCH HÀNG — video YouTube + trích dẫn */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tst-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.tst-card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1233;
}
.tst-card__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tst-card__quote {
  margin: 0;
  font-size: .95rem;
  font-style: italic;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.tst-card__who { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.tst-card__who strong { font-size: .95rem; }
.tst-card__who span { font-size: .8rem; color: var(--muted); }
.tst-card__extlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); }
.tst-card__extlink svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .vm-grid { grid-template-columns: 1fr; }
}

/* [Feedback 28/07] THƯ VIỆN — phần VIDEO (YouTube embed 16:9, lưới 2 cột) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.video-item { margin: 0; }
.video-item__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1233;
  box-shadow: 0 6px 18px rgba(16, 24, 64, .1);
}
.video-item__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item__caption { margin-top: 10px; font-size: .92rem; color: var(--muted); text-align: center; }
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* [Feedback 28/07] Icon riêng khách tải lên (đè icon chọn sẵn) */
.value-card__icon .icon-custom,
.why-feature__icon .icon-custom { width: 30px; height: 30px; object-fit: contain; }
.vnum-card__icon .icon-custom { width: 26px; height: 26px; object-fit: contain; }
.pillar__icon .icon-custom { width: 40px; height: 40px; object-fit: contain; }

/* ==========================================================================
   [Đợt 4 — 4.3] TRANG DỊCH VỤ — bố cục riêng, hết trùng với Giới thiệu
   ========================================================================== */

/* Quy trình: dòng thời gian NGANG có đường nối + mốc thời điểm */
.sv-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: 28px;
}
.sv-step { position: relative; padding-right: 22px; }
.sv-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 46px;
  right: 8px;
  height: 2px;
  background: var(--line-strong);
}
.sv-step:last-child::before { display: none; }
.sv-step__dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--primary-pale);
}
.sv-step__when {
  display: block;
  margin-top: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sv-step__title { font-size: 1.02rem; margin: 6px 0; }
.sv-step__text { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 991px) {
  /* Dọc trên màn hẹp: đường nối chạy dọc bên trái */
  .sv-steps { grid-template-columns: 1fr; row-gap: 24px; }
  .sv-step { padding: 0 0 0 54px; }
  .sv-step::before { top: 44px; bottom: -20px; left: 17px; right: auto; width: 2px; height: auto; }
  .sv-step:last-child::before { display: none; }
  .sv-step__dot { position: absolute; left: 0; top: 0; }
  .sv-step__when { margin-top: 0; }
}

/* Cam kết với từng đơn hàng: danh sách có đường kẻ (không dùng .value-card) */
.commit-list { max-width: 980px; margin: 8px auto 0; border-top: 1px solid var(--line); }
.commit-row {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 10px 32px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.commit-row__lead { display: flex; align-items: center; gap: 14px; }
.commit-row__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-pale);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  flex: none;
}
.commit-row__icon svg { width: 22px; height: 22px; }
.commit-row__icon img.icon-custom { width: 26px; height: 26px; object-fit: contain; }
.commit-row__lead h3 { font-size: 1.04rem; margin: 0; }
.commit-row > p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 767px) {
  .commit-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   [Phân hoá section 30/07] — Đợt 5: mỗi section một ngôn ngữ bố cục riêng
   (đặc tả: feedback-khach/2026-07-30-thiet-ke-section.md). CSS mới CHỈ thêm
   vào đây, không sửa rule cũ (archive-dich_vu / tpl-contact / home.php vẫn
   dùng .process-grid, .value-card, .gallery-grid, .news-card, .service-tile).
   ========================================================================== */

/* ---- 2 nền mới + nền deep có vân thước kẻ (S3/A4b/A6) ---- */
.section--deep { background: var(--primary-deep); color: var(--primary-pale); position: relative; overflow: hidden; }
.section--deep::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 72px); pointer-events: none; }
.section--deep > .container { position: relative; z-index: 1; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .eyebrow { color: var(--accent); }
.section--carbon { background: var(--carbon); color: var(--primary-pale); }
.section--carbon .section-title { color: #fff; }
.section--carbon .rich-desc { color: var(--navy-text-dim); }
.section--carbon .eyebrow { color: var(--accent); }

/* ---- Tiêu đề section 2 cột (S4/S8) — hết .section-head căn giữa lặp lại ---- */
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: end; text-align: left; max-width: none; margin-inline: 0; }
.section-head--split .section-title { margin: 0; }
@media (max-width: 600px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---- S2. Giới thiệu công ty: ảnh tràn mép + panel đè + dải điểm mạnh có đường nối ---- */
.intro-bleed { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.intro-bleed__media { margin-left: calc((100% - 100vw) / 2); width: calc(100% + (100vw - 100%) / 2); position: relative; }
.intro-bleed__media .img-real { aspect-ratio: 4 / 3; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; width: 100%; object-fit: cover; }
.intro-bleed__panel { position: relative; z-index: 1; margin-left: clamp(-72px, -4vw, -32px); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.feat-rail { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(30px, 4.5vw, 52px); }
.feat-rail::before { content: ""; position: absolute; top: 12px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, rgba(241, 101, 34, .2), var(--accent), rgba(241, 101, 34, .2)); }
.feat-rail__item { position: relative; }
.feat-rail__dot { position: relative; z-index: 1; display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); margin-bottom: 14px; }
.feat-rail__ico { display: inline-flex; color: var(--accent); margin-right: 8px; }
.feat-rail__ico svg, .feat-rail__ico .icon-custom { width: 18px; height: 18px; }
.feat-rail h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; }
.feat-rail p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 992px) {
  .intro-bleed { grid-template-columns: 1fr; }
  .intro-bleed__media { margin-left: 0; width: 100%; }
  .intro-bleed__panel { margin-left: 0; box-shadow: none; padding: 24px 0 0; }
}
@media (max-width: 768px) {
  .feat-rail { grid-template-columns: 1fr; gap: 22px; }
  .feat-rail::before { top: 0; bottom: 0; left: 12px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(241, 101, 34, .15)); }
}

/* ---- 5.4. Ba cam kết Chính xác–Tốc độ–Uy tín thành chip trong panel giới thiệu ---- */
.pledge-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pledge-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--primary); background: var(--primary-pale); }
.pledge-chips svg, .pledge-chips .icon-custom { width: 16px; height: 16px; color: var(--accent); }

/* ---- S3. Tầm nhìn & Sứ mệnh trang chủ: trích dẫn tuyên ngôn lệch trục ---- */
.vm-band { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(26px, 4.5vw, 64px); align-items: start; }
.vm-band__label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.vm-band__lead::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: clamp(3.2rem, 6vw, 5rem); line-height: .55; color: var(--accent); opacity: .55; }
.vm-band__lead p { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.42; color: #fff; margin: 0; }
.vm-band__aside { border-left: 3px solid var(--accent); padding-left: clamp(18px, 2.4vw, 30px); }
.vm-band__aside p { font-size: .99rem; line-height: 1.65; color: var(--navy-text-dim); margin: 0; }
@media (max-width: 900px) { .vm-band { grid-template-columns: 1fr; gap: 28px; } }

/* ---- S4. Dịch vụ trang chủ: bảng chỉ mục catalogue (index list) ---- */
.svc-index { margin-top: clamp(26px, 3.5vw, 40px); border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: clamp(52px, 6vw, 78px) minmax(0, 1.05fr) minmax(0, 1.35fr) 96px 34px; align-items: center; gap: clamp(12px, 2vw, 28px); padding: clamp(14px, 1.8vw, 20px) clamp(6px, 1vw, 14px); border-bottom: 1px solid var(--line); transition: background var(--t); }
.svc-row:hover { background: rgba(21, 35, 132, .04); }
.svc-row__num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--accent); line-height: 1; }
.svc-row__name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--ink); overflow-wrap: anywhere; }
.svc-row:hover .svc-row__name { color: var(--primary); }
.svc-row__desc { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-row__thumb .img-real, .svc-row__thumb .img-ph { aspect-ratio: 1 / 1; border-radius: 8px; transition: transform var(--t); width: 100%; object-fit: cover; }
.svc-row:hover .svc-row__thumb .img-real { transform: scale(1.06); }
.svc-row__go { justify-self: end; color: var(--accent); display: inline-flex; }
.svc-row__go svg { width: 20px; height: 20px; transition: transform var(--t-fast); }
.svc-row:hover .svc-row__go svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: clamp(40px, 9vw, 54px) minmax(0, 1fr) 72px; gap: 12px; }
  .svc-row__desc { display: none; }
  .svc-row__go { display: none; }
  .svc-row__thumb { grid-column: 3; }
}

/* ---- S5. Thành phẩm trang chủ: lưới mosaic không đều trên nền carbon ---- */
.tp-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(128px, 13.5vw, 186px); grid-auto-flow: dense; gap: 12px; margin-top: 26px; }
.tp-mosaic > .tp-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tp-mosaic > .tp-card:nth-child(6) { grid-column: span 2; }
.tp-mosaic .tp-card { height: 100%; }
.tp-mosaic .tp-card img, .tp-mosaic .tp-card .img-ph { height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 992px) {
  .tp-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 26vw, 170px); }
  .tp-mosaic > .tp-card:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 560px) { .tp-mosaic { gap: 10px; } }

/* ---- S6. Hình ảnh nhà xưởng: dải cuộn ngang scroll-snap ---- */
.shot-strip { position: relative; margin-inline: calc(var(--gutter) * -1); }
.shot-strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(258px, 31vw, 376px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); }
.shot-strip__track::-webkit-scrollbar { height: 6px; }
.shot-strip__track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.shot-strip__track::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.shot-strip__item { position: relative; scroll-snap-align: start; border-radius: 12px; overflow: hidden; display: block; }
.shot-strip__item .img-real { aspect-ratio: 16 / 10; border-radius: 0; transition: transform .5s ease; width: 100%; object-fit: cover; }
.shot-strip__item:hover .img-real { transform: scale(1.04); }
.shot-strip__cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(180deg, rgba(2, 9, 35, 0), rgba(2, 9, 35, .86)); color: #fff; font-size: .86rem; font-weight: 600; }
.shot-strip__fade { position: absolute; top: 0; bottom: 14px; width: 48px; pointer-events: none; }
.shot-strip__fade--l { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.shot-strip__fade--r { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
@media (prefers-reduced-motion: reduce) { .shot-strip__track { scroll-behavior: auto; } }

/* ---- S7. Phản hồi trang chủ: video/trích dẫn nổi bật + dải phản hồi phụ ---- */
.tst-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3.2vw, 44px); align-items: center; }
.tst-feature--solo { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.tst-feature__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0d1233; box-shadow: var(--shadow-lg); }
.tst-feature__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tst-feature__mark { font-family: Georgia, serif; font-size: clamp(3rem, 5vw, 4.4rem); line-height: .5; color: var(--accent); opacity: .5; }
.tst-feature__quote { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.08rem, 1.8vw, 1.44rem); line-height: 1.5; color: var(--ink); margin: 14px 0 18px; border: 0; padding: 0; font-style: normal; }
.tst-feature__who strong { display: block; font-size: 1rem; color: var(--primary); }
.tst-feature__who span { font-size: .85rem; color: var(--muted); }
.tst-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: clamp(24px, 3vw, 38px); padding-top: 22px; border-top: 1px solid var(--line); }
.tst-more__item { border-left: 2px solid var(--accent); padding-left: 14px; }
.tst-more__item p { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; }
.tst-more__item strong { font-size: .88rem; color: var(--primary); }
@media (max-width: 900px) { .tst-feature { grid-template-columns: 1fr; } }

/* ---- A7. Phản hồi trang Giới thiệu: tường trích dẫn so le ---- */
.quote-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(18px, 3vw, 34px); align-items: start; }
.quote-block { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-sm); overflow: hidden; }
.quote-wall > .quote-block:nth-child(even) { margin-top: clamp(0px, 4vw, 40px); }
.quote-block__mark { position: absolute; top: 6px; right: 18px; font-family: Georgia, serif; font-size: clamp(5rem, 8vw, 7rem); line-height: 1; color: rgba(241, 101, 34, .12); pointer-events: none; }
.quote-block__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: #0d1233; }
.quote-block__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote-block__text { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.02rem, 1.6vw, 1.24rem); line-height: 1.56; color: var(--ink); margin: 0 0 22px; border: 0; padding: 0; font-style: normal; }
.quote-block__who { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-block__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg); border: 2px solid var(--accent); }
.quote-block__initial { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; }
.quote-block__who strong { display: block; font-size: .98rem; color: var(--primary); }
.quote-block__who span { font-size: .84rem; color: var(--muted); }
@media (max-width: 768px) { .quote-wall > .quote-block:nth-child(even) { margin-top: 0; } }

/* ---- S8. Tin tức trang chủ: bài dẫn lớn + danh sách dòng ---- */
.news-split { display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(20px, 3vw, 42px); align-items: start; margin-top: clamp(22px, 3vw, 34px); }
.news-split--solo { grid-template-columns: 1fr; }
.news-lead { display: grid; grid-template-columns: 1fr; gap: 16px; }
.news-lead__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.news-lead__media .img-real { aspect-ratio: 16 / 9; border-radius: 0; transition: transform .5s ease; width: 100%; object-fit: cover; }
.news-lead:hover .img-real { transform: scale(1.03); }
.news-lead__media .news-card__cat { top: 14px; left: 14px; }
.news-lead__body h3 { font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.32; margin: 8px 0 10px; }
.news-lead__body h3 a { color: inherit; }
.news-lead__body p { font-size: .96rem; color: var(--muted); }
.news-list { border-top: 1px solid var(--line); }
.news-line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: clamp(14px, 1.8vw, 20px) 0; border-bottom: 1px dashed var(--line); align-items: start; }
.news-line__date { font-family: var(--font-heading); font-weight: 800; font-size: .84rem; line-height: 1.25; color: var(--accent); text-transform: uppercase; }
.news-line__body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 6px; }
.news-line__body h3 a { color: inherit; }
.news-line__body p { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.news-line:hover h3 a { color: var(--primary); }
@media (max-width: 900px) { .news-split { grid-template-columns: 1fr; } }

/* ---- A3. Năng lực & quy mô: dải số liệu lớn tràn ngang, gradient navy chéo ---- */
.cap-band { background: linear-gradient(104deg, var(--primary-deep) 0%, var(--primary) 62%, var(--primary-dark) 100%); color: #fff; padding-block: clamp(34px, 5vw, 64px); position: relative; overflow: hidden; }
.cap-band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .14; pointer-events: none; }
.cap-band > .container { position: relative; z-index: 1; }
.cap-band .section-title { color: #fff; }
.cap-band .eyebrow { color: var(--accent); }
.cap-band .rich-desc { color: var(--navy-text-dim); }
.cap-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 0; margin-top: clamp(20px, 2.6vw, 32px); }
.cap-figure { padding: clamp(20px, 2.8vw, 32px) clamp(14px, 2vw, 24px); border-left: 1px solid rgba(255, 255, 255, .14); }
.cap-figure:first-child { border-left: 0; padding-left: 0; }
.cap-figure__num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: .94; color: #fff; letter-spacing: -.02em; }
.cap-figure__unit { color: var(--accent); font-size: .5em; margin-left: 2px; }
.cap-figure__lbl { margin-top: 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #a9bbe9; line-height: 1.45; }
@media (max-width: 600px) {
  .cap-band__grid { grid-template-columns: 1fr 1fr; }
  .cap-figure { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-inline: 0 14px; }
  .cap-figure:nth-child(-n+2) { border-top: 0; }
}

/* ---- A2. Giới thiệu công ty: so le 2 tầng + bảng thông số + hộp thế mạnh ---- */
.ab-stagger { display: grid; gap: clamp(30px, 4.5vw, 56px); }
.ab-stagger__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ab-stagger__row--rev > *:first-child { order: 2; }
.spec-table { counter-reset: spec; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); list-style: none; padding: 0; margin: 14px 0 0; }
.spec-table li { counter-increment: spec; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.spec-table li:nth-child(2n) { border-left: 1px solid var(--line); }
.spec-table li::before { content: counter(spec, decimal-leading-zero); font-family: var(--font-heading); font-weight: 800; font-size: .78rem; color: var(--accent); flex: none; }
.strength-box { margin-top: 22px; background: var(--bg); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); border-left: 3px solid var(--accent); }
.strength-box__list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 12px 0 0; }
.strength-box__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.strength-box__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
@media (max-width: 900px) {
  .ab-stagger__row, .spec-table { grid-template-columns: 1fr; }
  .ab-stagger__row--rev > *:first-child { order: 0; }
  .spec-table li:nth-child(2n) { border-left: 0; }
}

/* ---- A4a. Câu chuyện: khối chữ 2 cột + timeline dọc zig-zag trục giữa ---- */
.story-lead { max-width: 980px; margin: 0 auto clamp(30px, 4vw, 48px); columns: 2; column-gap: clamp(26px, 4vw, 52px); text-align: left; }
.story-lead p { margin: 0 0 .8em; break-inside: avoid; }
.story-media { max-width: 980px; margin: 0 auto clamp(30px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; }
.story-media .img-real { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.story-tl { position: relative; max-width: 940px; margin-inline: auto; }
.story-tl::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, var(--accent), rgba(241, 101, 34, .12)); }
.story-tl__item { display: grid; grid-template-columns: 1fr clamp(96px, 12vw, 132px) 1fr; align-items: start; padding-block: clamp(12px, 1.8vw, 20px); }
.story-tl__item > .story-tl__body { grid-column: 1; text-align: right; padding-right: clamp(10px, 1.6vw, 22px); }
.story-tl__item:nth-child(even) > .story-tl__body { grid-column: 3; text-align: left; padding: 0 0 0 clamp(10px, 1.6vw, 22px); }
.story-tl__year { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 16px; font-family: var(--font-heading); font-weight: 800; font-size: .92rem; box-shadow: 0 0 0 6px var(--surface); }
.story-tl__body { grid-row: 1; }
.story-tl__body h3 { font-size: 1.05rem; margin-bottom: 5px; }
.story-tl__body p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 768px) {
  .story-lead { columns: 1; }
  .story-tl::before { left: 20px; }
  .story-tl__item { grid-template-columns: 56px 1fr; gap: 14px; }
  .story-tl__item > .story-tl__body, .story-tl__item:nth-child(even) > .story-tl__body { grid-column: 2; text-align: left; padding: 0; }
  .story-tl__year { grid-column: 1; grid-row: 1; justify-self: start; padding: 5px 10px; font-size: .8rem; }
}

/* ---- A4b. Tầm nhìn & Sứ mệnh Giới thiệu: 2 khối lệch tầng trên nền deep ---- */
.vm-offset { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3.2vw, 44px); align-items: start; }
.vm-offset__card { position: relative; padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); overflow: hidden; }
.vm-offset__card--b { margin-top: clamp(26px, 5vw, 64px); border-color: rgba(241, 101, 34, .45); background: rgba(241, 101, 34, .07); }
.vm-offset__idx { position: absolute; top: 8px; right: 16px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(3rem, 5.5vw, 4.6rem); line-height: 1; color: rgba(255, 255, 255, .07); pointer-events: none; }
.vm-offset__card--b .vm-offset__idx { color: rgba(241, 101, 34, .2); }
.vm-offset__title { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.vm-offset__card .rich-desc { color: #cfd9f4; font-size: 1rem; line-height: 1.68; }
.vm-offset::after { content: ""; position: absolute; left: 50%; top: 34%; width: clamp(24px, 4vw, 60px); height: 2px; background: var(--accent); transform: rotate(24deg); transform-origin: left center; opacity: .6; }
@media (max-width: 900px) {
  .vm-offset { grid-template-columns: 1fr; }
  .vm-offset__card--b { margin-top: 0; }
  .vm-offset::after { display: none; }
}

/* ---- A5. Giá trị cốt lõi: danh sách hàng ngang kiểu hồ sơ ---- */
.val-rows { border-top: 1px solid var(--line); margin-top: clamp(18px, 2.4vw, 30px); }
.val-row { display: grid; grid-template-columns: clamp(64px, 8vw, 116px) minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(14px, 2.6vw, 34px); align-items: baseline; padding: clamp(20px, 2.8vw, 30px) 0; border-bottom: 1px solid var(--line); transition: transform var(--t), border-color var(--t); }
.val-row:hover { transform: translateX(6px); border-bottom-color: var(--accent); }
.val-row__idx { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: .88; color: rgba(21, 35, 132, .14); transition: color var(--t); }
.val-row:hover .val-row__idx { color: var(--accent); }
.val-row__name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink); display: flex; align-items: center; gap: 9px; }
.val-row__ico { flex: none; color: var(--accent); display: inline-flex; }
.val-row__ico svg { width: 19px; height: 19px; }
.val-row__ico .icon-custom { width: 19px; height: 19px; object-fit: contain; }
.val-row__desc { font-size: .95rem; color: var(--muted); line-height: 1.66; }
@media (max-width: 768px) {
  .val-row { grid-template-columns: clamp(52px, 13vw, 64px) 1fr; row-gap: 8px; }
  .val-row__desc { grid-column: 2; }
}

/* ---- A6. 3 trụ cam kết: dải icon vòng viền cam trên nền deep, nối nét đứt ---- */
.commit-rail { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: clamp(18px, 3vw, 38px); text-align: center; margin-top: clamp(20px, 3vw, 34px); }
.commit-rail::before { content: ""; position: absolute; top: 42px; left: 14%; right: 14%; border-top: 2px dashed rgba(241, 101, 34, .45); }
.commit-rail__item { position: relative; z-index: 1; }
.commit-rail__ring { width: 84px; height: 84px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--accent); background: var(--primary-deep); color: var(--accent); box-shadow: 0 0 0 8px var(--primary-deep); }
.commit-rail__ring svg { width: 34px; height: 34px; }
.commit-rail__ring .icon-custom { width: 38px; height: 38px; object-fit: contain; }
.commit-rail h3 { font-family: var(--font-heading); font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: #fff; margin-bottom: 8px; }
.commit-rail p { font-size: .95rem; color: var(--navy-text-dim); max-width: 340px; margin: 0 auto; }
@media (max-width: 768px) {
  .commit-rail::before { display: none; }
  .commit-rail { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- A8. Quy trình Giới thiệu: thanh tiến trình ngang kiểu thước đo ---- */
.flow-bar { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 0; padding-top: 66px; margin-top: clamp(16px, 2.4vw, 26px); }
.flow-bar::before { content: ""; position: absolute; top: 32px; left: calc(50% / var(--steps, 5)); right: calc(50% / var(--steps, 5)); height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.flow-bar__step { position: relative; padding: 0 clamp(10px, 1.4vw, 20px); border-left: 1px solid var(--line); text-align: center; }
.flow-bar__step:first-child { border-left: 0; }
.flow-bar__no { position: absolute; top: -56px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); font-family: var(--font-heading); font-weight: 800; font-size: 1.08rem; color: var(--primary); box-shadow: 0 4px 12px rgba(241, 101, 34, .22); }
.flow-bar__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; margin-bottom: 7px; color: var(--ink); }
.flow-bar__text { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.flow-media { max-width: 980px; margin: 0 auto clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); overflow: hidden; }
.flow-media .img-real { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 820px) {
  .flow-bar { grid-template-columns: 1fr; padding: 0 0 0 62px; gap: 26px; }
  .flow-bar::before { top: 8px; bottom: 8px; left: 23px; right: auto; width: 6px; height: auto; background: linear-gradient(180deg, var(--accent), var(--primary)); }
  .flow-bar__step { border-left: 0; text-align: left; padding: 0; }
  .flow-bar__no { top: 0; left: -62px; transform: none; width: 46px; height: 46px; }
}

/* ---- A9. Thông tin công ty: nhãn máy / bảng thông số + bản đồ tràn ---- */
.plate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.plate { display: grid; grid-template-columns: minmax(112px, .4fr) 1fr; align-content: start; }
.plate__k, .plate__v { padding: 15px clamp(14px, 2vw, 20px); border-bottom: 1px solid var(--line); }
.plate__k { background: rgba(21, 35, 132, .04); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.plate__v { font-weight: 700; color: var(--ink); font-size: .98rem; overflow-wrap: anywhere; }
.plate__v a:hover { color: var(--primary); }
.plate__actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; padding: 20px clamp(14px, 2vw, 20px); }
.map-flush { border-left: 3px solid var(--accent); min-height: 100%; }
.map-flush .map-ph { height: 100%; min-height: 300px; border-radius: 0; aspect-ratio: auto; }
@media (max-width: 900px) {
  .plate-grid { grid-template-columns: 1fr; }
  .map-flush { border-left: 0; border-top: 3px solid var(--accent); }
}
@media (max-width: 520px) {
  .plate { grid-template-columns: 1fr; }
  .plate__k { border-bottom: 0; padding-bottom: 4px; }
}

/* ---- 5.6. [BỎ Ở VÒNG 9 — 31/07] Trước đây mobile gộp mọi kênh vào 1 nút chat
   phải bấm mới bung. Khách phản ánh "chỉ thấy mỗi icon chat" → nay các kênh
   hiện thường trực trên thanh đáy kiểu app (khối [Vòng 9] cuối file). ---- */
.float-contact__toggle { display: none; }

/* [Đợt 6B] Ẩn trực quan nhưng máy đọc màn hình vẫn đọc (H1 trang chủ, skip link…). */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Skip link: ẩn cho tới khi nhận focus bàn phím. */
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
}

/* [Đợt 6B.7] Lightbox <dialog> cho ảnh thư viện. */
.knt-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  /* reset chung *{margin:0} phá margin:auto mặc định của <dialog> → tự căn giữa lại. */
  margin: auto;
  min-width: min(92vw, 640px);
}
.knt-lightbox::backdrop { background: rgba(2, 9, 35, .88); }
.knt-lightbox__img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; display: block; }
.knt-lightbox__cap { color: #fff; text-align: center; font-size: .92rem; margin: 12px 0 0; }
.knt-lightbox__close {
  position: absolute;
  top: -4px;
  right: 4px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.knt-lightbox__close:hover { background: var(--accent); }

/* ==========================================================================
   [Vòng 2 — 30/07] — 4 việc: hồ sơ năng lực .cap-report (thay dải số
   .cap-band), câu chuyện .story-split (bỏ timeline năm), thẻ dịch vụ dọc
   .svc-cards (trang /dich-vu/ — KHÔNG đụng .service-grid của trang chủ +
   trang chi tiết), dải cam kết mảnh .commit-strip. CSS cũ không sửa,
   trừ lớp phủ banner (yêu cầu rõ của VIỆC 3 — sửa tại chỗ ở khối
   PAGE BANNER phía trên).
   ========================================================================== */

/* ---- V2-1. Hồ sơ năng lực (.cap-report — trang Giới thiệu) ---- */
.cap-report__intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cap-report__intro .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.cap-report__intro .section-title { margin: 10px 0 14px; }
.cap-report__photo .img-real { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); display: block; }
/* Dải số trên nền navy sâu, tràn hết chiều rộng section. */
.cap-report__figures { background: var(--primary-deep); margin-top: clamp(26px, 3.6vw, 48px); padding-block: clamp(8px, 1.2vw, 14px); }
/* Lưới in đúng SỐ Ô THỰC TẾ (--cap-n do template in ra) — hết track rỗng của
   auto-fit cũ; ngoài khoảng 2..5 ô rơi về biến thể --auto. */
.cap-report__grid { display: grid; grid-template-columns: repeat(var(--cap-n, 4), minmax(0, 1fr)); gap: 0; }
.cap-report__grid--auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cap-report__blocks { margin-top: clamp(30px, 4.5vw, 56px); }
.cap-report__blocks .img-real { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.cap-report__blocks h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin-bottom: 10px; }
.cap-report__blocks .spec-table { margin-top: 18px; }
.cap-report__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: clamp(28px, 3.6vw, 48px); }
@media (max-width: 900px) {
  .cap-report__intro { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* 2 cột trên mobile — .cap-figure tự đổi viền trái → viền trên nhờ media
     query sẵn có của Đợt 5 (rule .cap-figure trong khối A3). */
  .cap-report__grid, .cap-report__grid--auto { grid-template-columns: 1fr 1fr; }
}

/* ---- V2-2. Câu chuyện .story-split: ảnh dọc + trích dẫn đè + 3 chặng nhãn chữ ---- */
.story-split { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(26px, 4vw, 56px); align-items: start; margin-top: clamp(20px, 2.8vw, 34px); }
.story-split--noimg { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.story-split__media { position: relative; }
.story-split__media .img-real { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.story-quote {
  position: absolute;
  right: clamp(-18px, -1.4vw, -10px);
  bottom: clamp(16px, 2.4vw, 28px);
  max-width: min(80%, 340px);
  background: var(--accent);
  color: #fff;
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(.95rem, 1.3vw, 1.06rem);
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
}
.story-stages { margin-top: clamp(20px, 2.6vw, 30px); }
.story-stage { position: relative; border-top: 1px solid var(--line); padding: clamp(16px, 2.2vw, 24px) 0 clamp(16px, 2.2vw, 24px) clamp(24px, 2.6vw, 32px); }
.story-stage::before { content: ""; position: absolute; left: 0; top: calc(clamp(16px, 2.2vw, 24px) + 6px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
/* Nhãn CHỮ thay viên thuốc năm (.story-tl__year cũ) — chữ dài hơn năm nên
   không bo viên thuốc. */
.story-stage__label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.story-stage h3 { font-size: 1.06rem; margin: 0 0 6px; }
.story-stage p { font-size: .94rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .story-split { grid-template-columns: 1fr; }
  .story-split__media { max-width: 480px; }
  .story-quote { right: 12px; }
}

/* ---- V2-3. Thẻ dịch vụ DỌC ảnh lớn (.svc-cards — chỉ trang /dich-vu/) ---- */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.svc-card__media { position: relative; display: block; }
.svc-card__media .img-real,
.svc-card__media .img-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 0; transition: transform var(--t); }
.svc-card:hover .svc-card__media .img-real { transform: scale(1.04); }
.svc-card__num {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: 0 var(--radius-sm) 0 0;
}
.svc-card__body { padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-card__name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink); }
.svc-card__desc { font-size: .94rem; color: var(--muted); line-height: 1.6; flex: 1; }
.svc-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); margin-top: 4px; }
.svc-card:hover .svc-card__go { color: var(--accent); }
.svc-card__go svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.svc-card:hover .svc-card__go svg { transform: translateX(4px); }
@media (max-width: 600px) {
  .svc-cards { grid-template-columns: 1fr; }
}
/* 3 chip cam kết dưới lưới dịch vụ — tái dùng .pledge-chips, chỉ thêm căn giữa. */
.pledge-chips--center { justify-content: center; margin-top: clamp(20px, 2.8vw, 32px); }

/* ---- V2-4. Dải cam kết mảnh 4 cột trước CTA (.commit-strip — /dich-vu/) ---- */
.commit-strip-sec { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(28px, 3.6vw, 46px); }
.commit-strip__title { display: block; text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(16px, 2.2vw, 26px); }
.commit-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.commit-strip__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: start; }
.commit-strip__icon { color: var(--accent); display: inline-flex; margin-top: 2px; }
.commit-strip__icon svg { width: 20px; height: 20px; }
.commit-strip__icon .icon-custom { width: 22px; height: 22px; object-fit: contain; }
.commit-strip__item h3 { font-size: .98rem; margin: 0; }
.commit-strip__item p { grid-column: 2; font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ==========================================================================
   [Vòng 3 — 30/07] — feedback khách: giới thiệu trang chủ về bố cục why-grid
   cũ (nội dung trong card cột trái), thành phẩm repeater, panel năng lực
   tách biệt, Tầm nhìn/Sứ mệnh cân bằng, CPT phản hồi (trang riêng), thư viện
   ảnh+video 1 section bộ lọc sidebar, tin tức có sidebar/lọc/sắp xếp.
   ========================================================================== */

/* ---- V3-1. Trang chủ: giới thiệu — nội dung TRONG CARD ở cột trái ---- */
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3.2vw, 40px);
}
.about-card__features { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.why-grid .why-visual .img-real { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---- V3-2. Trang chủ: thẻ thành phẩm không có link (span) ---- */
span.tp-card { cursor: default; }

/* ---- V3-3. Giới thiệu: hồ sơ năng lực gói trong PANEL navy (tách section) ---- */
.cap-report__panel {
  background: linear-gradient(104deg, var(--primary-deep) 0%, var(--primary) 62%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cap-report__panel .cap-report__intro { padding: clamp(24px, 3.2vw, 44px); }
.cap-report__panel .section-title { color: #fff; }
.cap-report__panel .rich-desc { color: var(--navy-text); }
.cap-report__panel .cap-report__figures {
  background: rgba(2, 9, 35, .38);
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 0;
  padding: clamp(8px, 1.2vw, 14px) clamp(24px, 3.2vw, 44px);
}

/* ---- V3-4. Tầm nhìn & Sứ mệnh: 2 thẻ NGANG HÀNG cùng kiểu (hết lệch ưu tiên) ---- */
.vm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3.2vw, 44px); align-items: stretch; }
.vm-duo__card {
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3vw, 36px);
}
.vm-duo__title { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.vm-duo__card .rich-desc { color: #cfd9f4; font-size: 1rem; line-height: 1.68; }
@media (max-width: 900px) { .vm-duo { grid-template-columns: 1fr; } }

/* ---- V3-5. Phản hồi: link đọc bài đầy đủ + trang riêng /phan-hoi/ ---- */
.tst-feature__more,
.quote-block__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--primary); }
.tst-feature__more:hover,
.quote-block__more:hover { color: var(--accent); }
.tst-feature__more svg,
.quote-block__more svg { width: 15px; height: 15px; }
.tst-more__item a strong { transition: color var(--t-fast); }
.tst-more__item a:hover strong { color: var(--accent); }
.rv-single { max-width: 860px; }
.rv-single__quote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  border: 0;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px clamp(16px, 2.2vw, 26px);
  margin: 0 0 26px;
  font-style: normal;
}
.rv-single__quote .tst-feature__mark { display: block; }
.rv-single__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0d1233; box-shadow: var(--shadow); margin-bottom: 26px; }
.rv-single__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-single__content img { border-radius: var(--radius); }
.rv-single__who { margin-top: 28px; }
.rv-single__nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- V3-6. Thư viện: ảnh + video MỘT lưới, bộ lọc cột sidebar (không sticky) ---- */
.media-lib { display: grid; grid-template-columns: clamp(190px, 18vw, 240px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.media-lib__filter { display: flex; flex-direction: column; gap: 8px; }
.media-lib__filter .tab-btn { width: 100%; text-align: left; justify-content: flex-start; }
.gallery-item--video .video-item__frame { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 768px) {
  .media-lib { grid-template-columns: 1fr; }
  .media-lib__filter { flex-direction: row; flex-wrap: wrap; }
  .media-lib__filter .tab-btn { width: auto; }
}

/* ---- V3-7. Tin tức: bố cục có sidebar + thanh lọc/sắp xếp ---- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 320px); gap: clamp(24px, 3.4vw, 44px); align-items: start; }
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.news-toolbar .news-filter { margin: 0; }
.news-sort { display: inline-flex; align-items: center; gap: 8px; }
.news-sort label { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.news-sort select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  padding: 8px 12px;
  cursor: pointer;
}
.news-sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-nav__count { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 9px; }
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
}
.gallery-item__link { display: block; }

/* ==========================================================================
   [Vòng 4 — 30/07] — feedback khách trang chủ + tin tức: giới thiệu ảnh
   trái/card phải (đổi thứ tự markup, không cần CSS), VM hoán đổi vòng tròn
   (.vm-swap), slider dùng chung (.knt-slider) cho ảnh nhà xưởng + phản hồi,
   thẻ phản hồi đồng bộ (.rv-card), tin tức 5 bài + sidebar TRÁI.
   ========================================================================== */

/* ---- V4-1. Tầm nhìn / Sứ mệnh hoán đổi (.vm-swap) ---- */
/* perspective để translateZ/rotateY của FLIP có chiều sâu 3D thật. */
.vm-swap { display: flex; gap: clamp(26px, 4.5vw, 64px); align-items: stretch; perspective: 1200px; }
.vm-swap__item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  outline-offset: 6px;
  backface-visibility: hidden;
}
.vm-swap__item:focus-visible { outline: 2px solid var(--accent); }
.vm-swap__item.is-lead { flex-grow: 1.8; }
.vm-swap__item.is-lead::before {
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: .55;
  color: var(--accent);
  opacity: .55;
}
/* KHÔNG transition font-size: FLIP scale lo phần co giãn — transition cỡ chữ
   chạy song song làm phép đo rect sai và sinh double-morph giật. */
.vm-swap__text { margin: 0; transition: color .4s ease; }
.vm-swap__item.is-lead .vm-swap__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.42;
  color: #fff;
}
.vm-swap__item:not(.is-lead) { align-self: center; }
.vm-swap__item:not(.is-lead) .vm-swap__text { font-size: .99rem; line-height: 1.65; color: var(--navy-text-dim); }
@media (max-width: 900px) {
  .vm-swap { flex-direction: column; align-items: stretch; }
  .vm-swap__item:not(.is-lead) { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-swap__text { transition: none; }
}

/* ---- V4-2. Slider dùng chung (.knt-slider) — ảnh nhà xưởng + phản hồi ---- */
.knt-slider { position: relative; }
.knt-slider__viewport { overflow: hidden; padding: 4px 2px 8px; }
.knt-slider__track { display: flex; gap: clamp(16px, 2vw, 24px); align-items: stretch; will-change: transform; }
.knt-slide { flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3); min-width: 0; }
.knt-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.knt-slider__btn svg { width: 18px; height: 18px; }
.knt-slider__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.knt-slider__btn:disabled { opacity: .35; cursor: default; }
.knt-slider__btn--prev { left: -14px; }
.knt-slider__btn--next { right: -14px; }
@media (max-width: 900px) {
  .knt-slide { flex-basis: calc((100% - clamp(16px, 2vw, 24px)) / 2); }
}
@media (max-width: 600px) {
  .knt-slide { flex-basis: 100%; }
  .knt-slider__btn--prev { left: 6px; }
  .knt-slider__btn--next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .knt-slider__track { transition: none !important; }
}
/* Thẻ ảnh nhà xưởng trong slider (kế thừa vai trò shot-strip cũ). */
.shot-card { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.shot-card .img-real { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; display: block; transition: transform .5s ease; }
.shot-card:hover .img-real { transform: scale(1.04); }
.shot-card__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, rgba(2, 9, 35, 0), rgba(2, 9, 35, .86));
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}

/* ---- V4-3. Thẻ phản hồi đồng bộ (.rv-card) — slider trang chủ + lưới /phan-hoi/ ---- */
.rv-card {
  display: flex;
  flex-direction: column;
  /* KHÔNG đặt height:100% — nó vô hiệu cơ chế stretch của flex/grid khiến
     các thẻ cao thấp lệch nhau; để auto cho align-items:stretch tự cân. */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.rv-card__mark { font-family: Georgia, serif; font-size: 2.6rem; line-height: .6; color: var(--accent); opacity: .55; margin-bottom: 12px; }
.rv-card__quote {
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  font-style: normal;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-card__who strong { display: block; font-size: .98rem; color: var(--primary); }
.rv-card__who span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.rv-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
}
.rv-card__more:hover { color: var(--accent); }
.rv-card__more svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.rv-card:hover .rv-card__more svg { transform: translateX(4px); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 26px); align-items: stretch; }

/* ---- V4-4. Tin tức trang chủ: 5 bài + icon bài dẫn màu cam thương hiệu ---- */
.news-lead__body .news-card__date { color: var(--accent); }
@media (max-width: 768px) {
  .news-line--desktop { display: none; }
}

/* ---- V4-5. Trang Tin tức: sidebar chuyển sang TRÁI + ô tìm bài viết ---- */
.news-layout { grid-template-columns: clamp(250px, 24vw, 300px) minmax(0, 1fr); }
.news-toolbar__count { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.side-box__body--pad { padding: 14px 16px 16px; }
.side-search { display: flex; flex-direction: column; gap: 10px; }
.side-search .form-control,
.side-search .btn { width: 100%; }
.side-nav__link.is-active { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-layout__side { order: 2; }
  .news-layout__main { order: 1; }
}
/* Thuộc tính hidden phải thắng display:grid của nút slider. */
.knt-slider__btn[hidden] { display: none; }
/* [Vòng 4 — fix] Các hộp sidebar tin tức phải có khoảng cách, không dính nhau. */
.news-layout__side { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }

/* ---- [Vòng 5c — 31/07] vm-swap dùng chung trang chủ + Giới thiệu ---- */
/* Nội dung rich (nhiều đoạn) nằm trong div .vm-swap__text — p con kế thừa cỡ chữ. */
.vm-swap__text p { margin: 0 0 .6em; font-size: inherit; line-height: inherit; color: inherit; }
.vm-swap__text p:last-child { margin-bottom: 0; }
/* Bản đầy đủ ở Giới thiệu dài hơn → hạ cỡ chữ khối lead cho cân mắt. */
.vm-swap--rich .vm-swap__item.is-lead .vm-swap__text { font-size: clamp(1.12rem, 1.9vw, 1.5rem); line-height: 1.55; }
.vm-swap--rich .vm-swap__item:not(.is-lead) .vm-swap__text { font-size: .95rem; }

/* ---- [Vòng 5e — 31/07] Năng lực & quy mô: bỏ panel navy, section nền --alt ---- */
/* Khung dưới của section --alt để tách với "Câu chuyện" nền trắng ngay sau. */
.cap-report.section--alt { border-bottom: 1px solid var(--line); }
/* Câu chuyện giờ nền TRẮNG: ô trích dẫn cam cần bóng viền surface thay bg xám. */
.section:not(.section--alt) .story-tl__year { box-shadow: 0 0 0 6px var(--surface); }

/* ==========================================================================
   [Vòng 6 — 31/07] TRANG TIN TỨC CHỈNH ĐƯỢC TRONG WP-ADMIN
   (Bài viết → Cài đặt trang Tin tức — inc/scf-news.php)
   Số cột, vị trí cột bên, các thành phần của thẻ bài, cỡ chữ tiêu đề hộp.
   ========================================================================== */

/* ---- V6-1. Cỡ chữ tiêu đề hộp cột bên: mặc định NHỎ LẠI (.88rem thay .98rem),
   đổi được ở wp-admin qua biến --knt-side-title in ra ở wp_head. ---- */
.side-box__title { font-size: var(--knt-side-title, .88rem); }

/* ---- V6-2. Lưới bài viết theo số cột khách chọn ---- */
.news-layout__grid { display: grid; gap: var(--gutter); align-items: stretch; }
.news-layout__grid--c1 { grid-template-columns: minmax(0, 1fr); }
.news-layout__grid--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-layout__grid--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Cột nội dung hẹp dần thì tự bớt cột cho thẻ khỏi bóp méo. */
@media (max-width: 1200px) {
  .news-layout__grid--c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .news-layout__grid--c2,
  .news-layout__grid--c3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- V6-3. Vị trí cột bên: trái (mặc định) / phải / ẩn ---- */
.news-layout--side-right { grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 300px); }
.news-layout--side-right .news-layout__side { order: 2; }
.news-layout--side-right .news-layout__main { order: 1; }
.news-layout--no-side { grid-template-columns: minmax(0, 1fr); }

/* ---- V6-4. Dòng thông tin của thẻ: ngày + thời gian đọc (+ chuyên mục khi tắt ảnh) ---- */
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 10px; }
.news-card__meta .news-card__date { margin-bottom: 0; }
.news-card__read { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); }
.news-card__read svg { width: 15px; height: 15px; color: var(--primary-light); }
/* Tắt ảnh đại diện: nhãn chuyên mục hết chỗ bám (đang absolute trên ảnh) → về dòng chữ. */
.news-card__cat--inline { position: static; padding: 3px 10px; font-size: .72rem; }

/* ---- V6-5. Kiểu hiện số bài của chuyên mục trong cột bên ---- */
.side-nav__count--plain { background: none; padding: 2px 0; }
.side-nav__count--icon { display: inline-flex; align-items: center; gap: 5px; background: none; padding: 2px 0; }
.side-nav__count--icon svg { width: 14px; height: 14px; }

/* ---- [Vòng 6b — 31/07] Chữ & ảnh của thẻ bài viết chỉnh được trong wp-admin.
   Mọi biến đều CÓ GIÁ TRỊ DỰ PHÒNG = đúng thiết kế đang chạy, nên khi khách
   để ô trống/0 thì trang không đổi một pixel nào. ---- */
.news-card { font-family: var(--knt-news-font, inherit); }
.news-card__body { padding: var(--knt-news-pad, 22px); }
.news-card__body h3 { font-size: var(--knt-news-title-size, 1.08rem); font-weight: var(--knt-news-title-weight, 700); }
.news-card__body p { font-size: var(--knt-news-desc-size, .92rem); }
.news-card__date,
.news-card__read { font-size: var(--knt-news-meta-size, .82rem); }
.news-card__more { font-size: var(--knt-news-more-size, .88rem); }
/* Khung ảnh: tỉ lệ + cách lấp khung (ảnh thật và khối giữ chỗ đi cùng nhau). */
.news-card__media .img-real,
.news-card__media .img-ph { aspect-ratio: var(--knt-news-thumb-ratio, 16 / 9); }
.news-card__media .img-real { object-fit: var(--knt-news-thumb-fit, cover); width: 100%; height: 100%; }
/* "Theo đúng ảnh gốc": aspect-ratio:auto → cần bỏ chiều cao ép để ảnh tự cao. */
.news-card__media .img-real { max-height: none; }

/* ==========================================================================
   [Vòng 7 — 31/07] RESPONSIVE & DỄ ĐỌC — soát toàn site ở 1440/1024/768/500px.
   Kết quả soát: không trang nào tràn ngang; còn lại là chữ nhãn nhỏ dưới 12px
   và phần nội dung khách tự nhập sau này (bảng, video nhúng) cần chống tràn.
   ========================================================================== */

/* ---- V7-1. Sàn cỡ chữ 12px cho các nhãn nhỏ (dưới mức này đọc rất mỏi mắt).
   .73rem ≈ 11.7px nên trên màn nhỏ phải nâng lên. ---- */
.news-card__cat,
.tp-card__cat,
.plate__k,
.rv-card__role,
.header-hotline__label,
.brand__tag { font-size: max(12px, .73rem); }

/* ---- V7-2. Nội dung khách tự nhập (bài viết, phản hồi) không được phá khung ---- */
.post-content img,
.rv-single__content img,
.rich-desc img { max-width: 100%; height: auto; }
.post-content iframe,
.rv-single__content iframe,
.post-content video,
.rv-single__content video { max-width: 100%; }
/* Bảng dài: cho cuộn ngang TRONG khối, không đẩy cả trang lệch. */
.post-content table,
.rv-single__content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
/* Link/từ khoá dài (mã vật liệu, URL dán thẳng) tự xuống dòng thay vì tràn. */
.post-content,
.rv-single__content,
.news-card__body h3,
.side-nav__link span { overflow-wrap: anywhere; }
.post-content pre { overflow-x: auto; max-width: 100%; }

/* ---- V7-3. Điện thoại: nới nhẹ lề trong và giữ khoảng bấm đủ lớn ---- */
@media (max-width: 560px) {
  .news-card__body { padding: var(--knt-news-pad, 18px); }
  .news-toolbar { gap: 10px; }
  .news-toolbar__count { width: 100%; }
  .news-sort { width: 100%; justify-content: space-between; }
  .news-sort select { flex: 1; min-height: 44px; }
  .side-search .btn,
  .side-search .form-control { min-height: 44px; }
}

/* ==========================================================================
   [Vòng 8 — 31/07] NHIỀU KÊNH LIÊN HỆ VẪN XẾP GỌN
   Khách thêm được bao nhiêu kênh tuỳ ý (Cài đặt chung → Kênh liên hệ tự tạo)
   nên cả cụm nút nổi lẫn dải icon chân trang phải chịu được số lượng lớn.
   ========================================================================== */

/* ---- V8-1. Chân trang: dải icon tự xuống dòng thay vì bị nén/tràn ---- */
.footer-socials { flex-wrap: wrap; row-gap: 10px; }

/* ---- V8-2. Cụm nút nổi khi có nhiều kênh ----
   [Sửa ở Vòng 9b — 31/07] BỎ `max-height + overflow-y:auto` của bản V8: đặt
   overflow lên cụm là trình duyệt CẮT mọi thứ tràn ra ngoài khung — vòng sóng
   lan toả quanh nút gọi (::before scale tới 1.35) bị xén thành hình vuông,
   nhìn như góc cạnh che mất. Cụm xếp dọc từ đáy lên, 8 kênh cũng chỉ cao
   ~520px nên không cần cuộn; ưu tiên hiệu ứng hiển thị trọn vẹn. */
.float-contact { padding: 2px; overflow: visible; }
@media (max-width: 560px) {
  /* Điện thoại: nút nhỏ lại một chút để 5-6 kênh vẫn đủ chỗ trong tầm ngón tay. */
  .float-contact { max-height: 62vh; gap: 8px; }
}

/* ---- V8-3. Màu nhận diện cho các kênh mới (nền nút nổi + hover icon chân trang) ---- */
.float-contact__btn--youtube { background: #ff0000; }
.float-contact__btn--facebook { background: #1877f2; }
.float-contact__btn--instagram { background: #d62976; }
.float-contact__btn--tiktok { background: #010101; }
.float-contact__btn--telegram { background: #29a9eb; }
.float-contact__btn--viber { background: #7360f2; }
.float-contact__btn--line { background: #06c755; }
.float-contact__btn--wechat { background: #07c160; }
.float-contact__btn--kakao { background: #fee500; color: #3c1e1e; }
.float-contact__btn--skype { background: #00aff0; }
.float-contact__btn--linkedin { background: #0a66c2; }
.float-contact__btn--twitter { background: #0f1419; }
.float-contact__btn--threads { background: #101010; }
.float-contact__btn--pinterest { background: #e60023; }
.float-contact__btn--mail { background: var(--primary); }
.float-contact__btn--map { background: #ea4335; }
.float-contact__btn--globe,
.float-contact__btn--chat { background: var(--primary); }

/* ==========================================================================
   [Vòng 9 — 31/07] THANH LIÊN HỆ ĐÁY KIỂU APP (mobile / tablet)
   Khách phản ánh: trên điện thoại cụm liên hệ chỉ còn MỘT bong bóng chat, phải
   bấm mới bung ra kênh. Nay bỏ hẳn nút gộp: mọi kênh hiện thường trực trên một
   thanh ở đáy màn hình, chia đều bề ngang, mỗi kênh là icon tròn + nhãn chữ
   nhỏ bên dưới — đúng kiểu thanh điều hướng dưới cùng của ứng dụng điện thoại.
   ========================================================================== */

@media (max-width: 1319px) {
  .float-contact {
    gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* KHÔNG dùng overflow ở đây: đặt overflow-x lên thanh sẽ ép overflow-y
       thành auto và cắt mất popup "nhiều số" bung lên trên. Nhiều kênh quá thì
       cho XUỐNG DÒNG — thanh cao thêm một hàng, JS đo lại --knt-float-h nên
       phần đệm đáy trang tự khớp. */
    max-height: none;
    overflow: visible;
  }

  /* Mỗi kênh = một ô dọc: icon tròn + nhãn. Chia đều nhau. */
  .float-contact > .float-contact__btn,
  .float-contact > .float-contact__group {
    flex: 1 1 0;
    min-width: 64px;
    max-width: 132px;
  }
  .float-contact__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 6px 2px 4px;
    border-radius: 12px;
    background: transparent !important;   /* nền thanh là trắng — icon mới mang màu kênh */
    box-shadow: none;
    color: var(--ink);
  }
  .float-contact__btn:hover { transform: none; color: var(--ink); }
  .float-contact__btn:active { background: var(--bg) !important; }

  /* Icon nằm trong đĩa tròn mang MÀU KÊNH (kế thừa từ nền nút bản desktop). */
  .float-contact__btn svg {
    width: 22px;
    height: 22px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 50%;
    color: #fff;
    background: var(--knt-ch, var(--primary));
  }
  .float-contact__btn--zalo svg { width: 30px; height: 30px; padding: 1px; }

  /* Nhãn: hiện thường trực dưới icon, 1 dòng, dài quá thì cắt bằng dấu … */
  .float-contact__label {
    /* style.css ẩn nhãn bằng display:none ở mobile — phải bật lại, nếu không
       thanh chỉ còn icon không chữ. */
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }

  /* Nút bung nhiều số: cùng khuôn với các ô còn lại. */
  .float-contact__group { display: flex; }
  .float-contact__group > .float-contact__btn { border: 0; cursor: pointer; font: inherit; }
  .float-contact__badge { top: 2px; right: 50%; margin-right: -22px; }

  /* Vòng nhấp nháy bám ĐÚNG đĩa icon (32px) và canh giữa ô — không dùng inset
     vì ô nay cao hơn icon (có thêm nhãn chữ bên dưới). */
  .float-contact__btn--phone::before {
    inset: auto;
    /* Vòng phải LỚN HƠN đĩa icon (32px) mới thấy được sóng lan ra; bằng đúng
       đĩa thì cả chu kỳ nằm khuất sau icon. */
    top: 2px;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
  }

  /* Nút "lên đầu trang" nằm TRÊN thanh, không chen vào dải icon nữa. */
  .back-to-top {
    right: 14px;
    left: auto;
    bottom: calc(var(--knt-float-h, 66px) + 12px);
    z-index: 940;
  }
  /* Chừa đáy trang đúng bằng chiều cao thật của thanh (JS đo, đặt --knt-float-h). */
  body { padding-bottom: calc(var(--knt-float-h, 66px) + env(safe-area-inset-bottom, 0px)); }
}

/* Màu nhận diện của từng kênh cho đĩa icon trên thanh đáy. */
.float-contact__btn--zalo { --knt-ch: #0068ff; }
.float-contact__btn--phone { --knt-ch: #2fa84f; }
.float-contact__btn--messenger { --knt-ch: #0084ff; }
.float-contact__btn--whatsapp { --knt-ch: #25d366; }
.float-contact__btn--youtube { --knt-ch: #ff0000; }
.float-contact__btn--facebook { --knt-ch: #1877f2; }
.float-contact__btn--instagram { --knt-ch: #d62976; }
.float-contact__btn--tiktok { --knt-ch: #010101; }
.float-contact__btn--telegram { --knt-ch: #29a9eb; }
.float-contact__btn--viber { --knt-ch: #7360f2; }
.float-contact__btn--line { --knt-ch: #06c755; }
.float-contact__btn--wechat { --knt-ch: #07c160; }
.float-contact__btn--kakao { --knt-ch: #fee500; }
.float-contact__btn--skype { --knt-ch: #00aff0; }
.float-contact__btn--linkedin { --knt-ch: #0a66c2; }
.float-contact__btn--twitter { --knt-ch: #0f1419; }
.float-contact__btn--threads { --knt-ch: #101010; }
.float-contact__btn--pinterest { --knt-ch: #e60023; }
.float-contact__btn--mail { --knt-ch: var(--primary); }
.float-contact__btn--map { --knt-ch: #ea4335; }
/* KakaoTalk nền vàng → icon phải đổi sang chữ đậm cho đọc rõ. */
.float-contact__btn--kakao svg { color: #3c1e1e; }

/* Điện thoại nhỏ: bớt đệm, nhãn nhỏ hơn một nấc cho đủ 5 kênh trên màn 360px. */
/* Điện thoại nhỏ: siết kích thước để 6-7 kênh vẫn nằm gọn MỘT hàng (390px:
   7 × 48px + đệm = 348px). Nhiều hơn nữa mới xuống dòng, hàng lẻ tự canh giữa. */
@media (max-width: 460px) {
  .float-contact { padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px)); }
  .float-contact > .float-contact__btn,
  .float-contact > .float-contact__group { min-width: 48px; }
  .float-contact__btn { min-height: 52px; padding: 5px 1px 3px; gap: 2px; }
  .float-contact__label { font-size: 10px; }
  .float-contact__btn svg { width: 18px; height: 18px; padding: 4px; }
  .float-contact__btn--zalo svg { width: 26px; height: 26px; padding: 0; }
  .float-contact__btn--phone::before { width: 34px; height: 34px; top: 1px; margin-left: -17px; }
}
