/* ===========================================================
   Xét Nghiệm Trường Khánh — main stylesheet
   Medical / laboratory tone: deep clinical blue + teal accent
   =========================================================== */

:root {
  --primary: #0b5fa8;
  --primary-dark: #073a66;
  --primary-light: #e8f2fb;
  --accent: #12b8a6;
  --accent-dark: #0d9483;
  --cta: #ff7a1a;
  --cta-dark: #e3620a;
  --ink: #16233a;
  --ink-soft: #4a5a72;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-navy: #082744;
  --border: #e3ebf2;
  --success: #1fa971;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 40, 74, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 40, 74, 0.10);
  --shadow-lg: 0 20px 55px rgba(11, 40, 74, 0.16);
  --container: 1200px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--primary-dark); }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-dark); background: rgba(18,184,166,.1);
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { font-size: 17px; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 24px rgba(255,122,26,.35); }
.btn-primary:hover { background: var(--cta-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255,122,26,.4); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-ghost:hover { background: var(--primary-light); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 999; background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar {
  background: var(--primary-dark); color: #cfe4f7; font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #fff; }
.topbar .topbar-links { display: flex; gap: 22px; }
.topbar .topbar-links span, .topbar .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.navbar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--primary-dark); font-size: 19px; flex: none; }
.brand .logo-mark {
  width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm); flex: none;
}
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav { flex-wrap: nowrap; }
.main-nav .nav-item { position: relative; flex: none; }
.main-nav .nav-item > a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 14px; font-weight: 600; color: var(--ink); border-radius: 999px; font-size: 15px;
  transition: all .2s ease; position: relative;
}
.main-nav .nav-item > a:hover, .main-nav .nav-item > a.active { color: var(--primary); background: var(--primary-light); }
.brand-logo-img { max-height: 46px; max-width: 200px; width: auto; object-fit: contain; }
.nav-caret { font-size: 11px; transition: transform .2s ease; }
.nav-item.open > a .nav-caret { transform: rotate(180deg); }

/* Dropdown submenu (desktop) */
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 50;
}
.dropdown-panel a {
  padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink);
  white-space: nowrap; transition: all .15s ease;
}
.dropdown-panel a:hover { background: var(--primary-light); color: var(--primary); }
@media (min-width: 901px) {
  .nav-item.has-dropdown:hover .dropdown-panel,
  .nav-item.has-dropdown.open .dropdown-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header-hotline { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.header-hotline .icon-pulse {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.header-hotline .icon-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.header-hotline .num { font-weight: 800; font-size: 17px; color: var(--primary-dark); white-space: nowrap; }
.header-hotline small { display: block; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .header-hotline small, .header-hotline .num { display: none; }
}
@media (max-width: 900px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 auto; width: min(340px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 18px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; gap: 2px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-item > a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
    align-items: center; justify-content: center; background: #fff; cursor: pointer; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(8,39,68,.4); z-index: 900; }
  .nav-scrim.is-open { display: block; }

  /* Dropdown becomes an inline accordion inside the mobile drawer */
  .dropdown-panel {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    background: var(--bg-soft); margin: 2px 0 6px 12px;
    max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .25s ease, padding .25s ease;
  }
  .nav-item.open .dropdown-panel { max-height: 600px; padding: 8px; }
}

/* Compact header for phones: topbar info moves to footer/contact page, header row shrinks
   so the logo, hotline icon, CTA and hamburger all fit on one line without overflowing. */
@media (max-width: 640px) {
  .topbar { display: none; }
  :root { --header-h: 68px; }
  .navbar { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand .logo-mark { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
  .brand small { font-size: 9.5px; }
  .header-cta { gap: 8px; }
  .header-hotline .icon-pulse { width: 34px; height: 34px; }
  .header-cta .btn.btn-primary.btn-sm { padding: 9px 12px; font-size: 12.5px; }
  .nav-toggle { width: 36px; height: 36px; }
  .main-nav { inset: var(--header-h) 0 0 auto; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .header-cta .btn.btn-primary.btn-sm { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 15% 0%, #0e75c4 0%, var(--primary-dark) 55%, var(--bg-navy) 100%);
  padding: 90px 0 110px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.hero-blob.b1 { width: 420px; height: 420px; background: var(--accent); top: -120px; right: -80px; animation: float1 9s ease-in-out infinite; }
.hero-blob.b2 { width: 300px; height: 300px; background: var(--cta); bottom: -100px; left: 8%; animation: float2 11s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0);} 50% { transform: translate(-30px, 30px);} }
@keyframes float2 { 0%,100% { transform: translate(0,0);} 50% { transform: translate(20px, -25px);} }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.hero h1 .accent-text { color: #7fe6d6; }
.hero p.lead { color: #d7e8f7; font-size: 18px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 28px; color: #fff; }
.hero-stats .stat span { color: #b9d5ec; font-size: 13.5px; }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); position: relative; z-index: 2;
}
.hero-card img { border-radius: var(--radius-sm); }
.hero-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--primary-dark);
  font-size: 13.5px;
}
.hero-badge.b-top { top: -18px; right: -10px; }
.hero-badge.b-bottom { bottom: -18px; left: -18px; }
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,169,113,.2); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ============ Hero slider (image carousel, admin-managed) ============ */
.hero-slider { padding: 0; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg-navy); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .9s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-video-fixed { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #04152a; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,26,46,.88) 0%, rgba(6,36,64,.8) 45%, rgba(7,45,80,.72) 100%); }
.hero-slide-inner { position: relative; z-index: 2; padding: 90px 0 60px; max-width: 640px; }
.hero-slide-inner h1 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.hero-slide-inner .lead { color: #d7e8f7; font-size: 17px; }
.hs-arrow {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease; backdrop-filter: blur(4px);
}
.hs-arrow:hover { background: rgba(255,255,255,.3); }
.hs-prev { left: 20px; } .hs-next { right: 20px; }
.hs-dots { position: absolute; bottom: 132px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 9px; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s ease; }
.hs-dot.active { background: #fff; width: 26px; border-radius: 5px; }
.hero-stats-slider { position: relative; z-index: 3; padding-bottom: 10px; }
@media (max-width: 700px) {
  .hero-slider { min-height: 460px; }
  .hero-slide-overlay { background: rgba(6, 30, 54, .85); }
  .hero-slide-inner { padding: 80px 0 50px; }
  .hs-arrow { display: none; }
  .hs-dots { bottom: 145px; }
}

/* Trust strip */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 26px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-strip .t-label { font-weight: 700; color: var(--ink-soft); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; }
.trust-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; opacity: .85; }
.trust-logos span { font-weight: 800; color: var(--primary); font-size: 15px; letter-spacing: .02em; border: 1.5px solid var(--border); padding: 8px 16px; border-radius: 999px; background: #fff; }

/* Why choose us */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  transition: all .25s ease; height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  display: block; padding: 26px 22px; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--border); transition: all .25s ease;
}
.cat-card:hover { background: var(--primary-dark); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card:hover h3, .cat-card:hover p, .cat-card:hover .cat-arrow { color: #fff; }
.cat-card .feature-icon { background: #fff; }
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; margin-bottom: 14px; }
.cat-arrow { font-weight: 700; font-size: 13.5px; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: all .3s ease; height: 100%; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.product-card .thumb { aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badge-cat { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.product-card .badge-featured { position: absolute; top: 12px; right: 12px; background: var(--cta); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.product-card .badge-authentic {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--primary-dark); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 6px 11px 6px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
}
.product-card .badge-authentic i { font-size: 10px; color: #6fd6c4; }
.product-card .thumb .brand-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(255,255,255,.94);
  border-radius: 8px; padding: 5px 9px; box-shadow: var(--shadow-sm); display: flex; align-items: center;
}
.product-card .thumb .brand-badge img { width: auto; height: 13px; padding: 0; display: block; }

/* Flagship / chính hãng section on the products catalog page */
.flagship-section { background: var(--bg-soft); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flagship-section .product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .flagship-section .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flagship-section .product-grid { grid-template-columns: 1fr; } }
.flagship-section .product-card { border: 1.5px solid var(--primary-light); }
.flagship-section .product-card:hover { border-color: var(--primary); }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 16.5px; margin: 0; }
.product-card .subtitle { color: var(--accent-dark); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.product-card p.desc { font-size: 13.8px; margin: 0; flex: 1; }
.product-card .card-actions { display: flex; gap: 10px; margin-top: 10px; }

/* Stats band */
.stats-band { background: var(--bg-navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
@media (max-width: 780px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stats-grid .stat b { display: block; font-size: 42px; color: #7fe6d6; font-weight: 800; }
.stats-grid .stat span { color: #b9d5ec; font-size: 14.5px; }
.stats-band-compact { padding: 30px 0; }
.stats-band-compact .hero-stats { justify-content: center; gap: 70px; margin-top: 0; }
@media (max-width: 560px) { .stats-band-compact .hero-stats { gap: 30px; } }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-dark) 100%); color: #fff;
  border-radius: 24px; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; font-size: 26px; }
.cta-banner p { color: #eaf7f4; margin: 0; }

/* About page */
.about-hero { background: var(--bg-soft); padding: 60px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split img, .split .img-frame { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.timeline { border-left: 3px solid var(--primary-light); padding-left: 26px; }
.timeline .t-item { position: relative; padding-bottom: 30px; }
.timeline .t-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.timeline .t-item b { display: block; color: var(--primary); font-size: 15px; }

.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }

/* Product detail */
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
@media (max-width: 960px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-gallery-main { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4/3.4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; }
.pd-thumbs img.active { border-color: var(--primary); }
.pd-title .subtitle { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.pd-title h1 { font-size: clamp(24px,3vw,32px); margin: 6px 0 14px; }
.pd-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 22px 0; }
@media (max-width: 560px) { .pd-highlights { grid-template-columns: 1fr; } }
.pd-highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.pd-highlights li .ico { color: var(--accent-dark); flex: none; margin-top: 2px; }
.pd-cta-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.pd-cta-box .btn { flex: 1; min-width: 180px; }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0052cc; transform: translateY(-2px); }

.pd-share { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pd-share-label { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.pd-share-btn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: all .2s ease; font-family: inherit;
}
.pd-share-btn i { font-size: 15px; }
.pd-share-btn.fb { color: #1877f2; }
.pd-share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.pd-share-btn.zalo { color: #0068ff; }
.pd-share-btn.zalo:hover { background: #0068ff; color: #fff; border-color: #0068ff; }
.pd-share-btn.pd-share-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-share-btn.pd-share-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }
@media (max-width: 560px) { .pd-share-btn span { display: none; } .pd-share-btn { padding: 0 12px; } }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 60px 0 0; overflow-x: auto; }
.tab-btn { padding: 14px 22px; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; background: none; border-top:0; border-left:0; border-right:0; font-size: 15px; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; padding: 34px 0; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 14px 12px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--ink-soft); font-weight: 600; width: 40%; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.testmenu-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 10px; }
.testmenu-grid span { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 10px; text-align: center; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--bg-navy); color: #fff; border-radius: var(--radius); padding: 34px; }
.contact-info-card h3 { color: #fff; }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item span.label { display: block; font-size: 12.5px; color: #9dc0dd; text-transform: uppercase; letter-spacing: .04em; }
.contact-item strong { font-size: 15.5px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.social-row a:hover { background: var(--accent); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; transition: border-color .2s ease; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 26px; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; font-size: 14.5px; }
.alert-success { background: #e7f8ef; color: #14804f; }
.alert-error { background: #fdecec; color: #b3261e; }

/* Footer */
.site-footer { background: var(--bg-navy); color: #b9d5ec; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9dc0dd; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 11px; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Quick contact floating buttons */
.quickbar { position: fixed; right: 18px; bottom: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.qb-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); color: #fff; position: relative; transition: transform .2s ease;
}
.qb-btn:hover { transform: scale(1.08); }
.qb-btn.phone { background: var(--success); animation: qb-shake 4s ease infinite; }
.qb-btn.zalo { background: #0068ff; }
.qb-btn.messenger { background: linear-gradient(135deg,#00c6ff,#0068ff); }
.qb-btn.top { background: var(--primary-dark); width: 46px; height: 46px; opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease; }
.qb-btn.top.show { opacity: 1; pointer-events: auto; }
@keyframes qb-shake { 0%,88%,100% { transform: rotate(0);} 90% { transform: rotate(-12deg);} 92% { transform: rotate(10deg);} 94% { transform: rotate(-8deg);} 96% { transform: rotate(6deg);} 98% { transform: rotate(0);} }
.qb-label {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.qb-btn:hover .qb-label { opacity: 1; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-white { color: #fff; }
[data-aos] { }
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px);} to { opacity: 1; transform: none; } }

.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 56px 0; text-align: center;
  background-size: cover; background-position: center; position: relative;
}
.page-hero.has-image { padding: 90px 0; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,58,102,.9), rgba(11,95,168,.72)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #cfe4f7; margin: 0; }

.badge-list { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.badge-pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 8px; }

/* ============ News / Knowledge grid ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 18px 20px 22px; }
.news-type { color: var(--accent-dark); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.news-body h3 { font-size: 17px; margin: 8px 0; }
.news-body p { font-size: 14px; margin-bottom: 10px; }
.news-date { color: var(--ink-soft); font-size: 12.5px; }

/* Rich content (product descriptions, page/news bodies) — defensive so admin HTML can't break layout */
.rich-content { font-size: 15.5px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.rich-content table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 1.4em; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content * { max-width: 100%; }

/* Video tab on product page */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background: var(--bg-soft); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card p { margin: 10px 14px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }

/* ============ Floating tutorial-video widget (bottom-left corner) ============ */
.video-widget { position: fixed; left: 18px; bottom: 22px; z-index: 999; }
.vw-toggle {
  display: flex; align-items: center; gap: 10px; background: var(--primary-dark); color: #fff;
  border-radius: 999px; padding: 13px 20px 13px 14px; box-shadow: var(--shadow-md); font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
}
.vw-toggle .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.vw-panel {
  position: absolute; bottom: 66px; left: 0; width: 320px; max-width: 86vw; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.video-widget.is-open .vw-panel { opacity: 1; transform: none; pointer-events: auto; }
.vw-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg-navy); color: #fff; }
.vw-panel-head strong { font-size: 14.5px; }
.vw-panel-head button { background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; opacity: .8; }
.vw-player { aspect-ratio: 16/9; background: #000; }
.vw-player iframe { width: 100%; height: 100%; border: 0; }
.vw-list { max-height: 260px; overflow-y: auto; }
.vw-item { display: flex; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.vw-item:hover, .vw-item.active { background: var(--primary-light); }
.vw-item img { width: 62px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.vw-item span { font-size: 12.8px; font-weight: 600; color: var(--ink); line-height: 1.35; }
@media (max-width: 560px) {
  .video-widget { left: 10px; bottom: 10px; }
  .quickbar { right: 10px; bottom: 10px; gap: 9px; }
  .qb-btn { width: 46px; height: 46px; font-size: 15px; }
  .qb-btn.top { width: 38px; height: 38px; }
  .vw-toggle { padding: 10px 16px 10px 10px; font-size: 12.5px; gap: 8px; }
  .vw-toggle .ico { width: 24px; height: 24px; }
  .vw-panel { width: 280px; }
}
@media (max-width: 380px) {
  .vw-toggle span, .vw-toggle { font-size: 0; padding: 0; width: 46px; height: 46px; border-radius: 50%; justify-content: center; }
  .vw-toggle .ico { width: 100%; height: 100%; }
}

/* ============ Hero background video (autoplay, muted, no YouTube chrome) ============ */
.hero-video-bg-frame { position: relative; width: 100%; height: 100%; }
.hero-video-bg-frame iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* ============ Getein manufacturer stats + certifications ============ */
.mfr-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.mfr-intro p { font-size: 16px; }
.mfr-stats-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; }
.mfr-stats-bar .stat { flex: 1 1 150px; text-align: center; padding: 0 10px; position: relative; }
.mfr-stats-bar .stat:not(:last-child)::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 1px; height: 46px; background: var(--border); }
.mfr-stats-bar .stat b { display: block; font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.mfr-stats-bar .stat span { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 6px; }
@media (max-width: 780px) {
  .mfr-stats-bar .stat:not(:last-child)::after { display: none; }
  .mfr-stats-bar .stat { flex: 1 1 45%; }
}
.cert-strip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert-chip { background: var(--bg-navy); border-radius: 12px; padding: 15px 22px; display: flex; align-items: center; justify-content: center; height: 56px; transition: transform .2s ease; }
.cert-chip:hover { transform: translateY(-3px); }
.cert-chip img { height: 22px; width: auto; display: block; }
@media (max-width: 560px) { .cert-chip { padding: 10px 16px; height: 46px; } .cert-chip img { height: 18px; } }

/* ============ Business model tag (about page) ============ */
.model-tag { display: inline-block; color: var(--accent-dark); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
