/*
Theme Name: PhuKienThep Custom
Theme URI: https://phukienthep.vn
Author: Cong ty CP Thep Cong Nghiep Ha Noi
Author URI: https://thepcongnghiep.com.vn
Description: Theme WordPress tuy chinh cho phukienthep.vn, chuyen doi tu bo giao dien tinh (Industrial Modern - Navy + Orange). Danh muc san pham quan ly qua Custom Post Type "San Pham", khong dung gio hang/thanh toan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phukienthep
*/

/* =========================================================
   PHUKIENTHEP.VN — Global Stylesheet
   Design: Industrial Modern | Colors: Navy + Orange + White
   (Noi dung CSS goc giu nguyen 100% tu ban thiet ke tinh,
    chi bo sung it class ho tro WordPress o cuoi file)
   ========================================================= */


/* ── CSS Variables ── */
:root {
  --primary:   #0a2e5c;   /* Navy deep */
  --primary-2: #1e4d8c;   /* Navy mid */
  --accent:    #f97316;   /* Orange */
  --accent-2:  #ea580c;   /* Orange dark */
  --red:       #dc2626;
  --success:   #16a34a;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --font:      'Be Vietnam Pro', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --shadow:    0 4px 16px rgba(0,0,0,.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,.14);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius:    8px;
  --radius-lg: 12px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--gray-600); }

/* ── Utility ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-gray { background: var(--gray-50); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.badge-accent { background: #fff7ed; color: var(--accent-2); }
.badge-primary { background: #eff6ff; color: var(--primary-2); }
.badge-success { background: #f0fdf4; color: var(--success); }
.badge-red { background: #fef2f2; color: var(--red); }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block; color: var(--accent);
  font-size: .85rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .5rem;
}
.section-header h2 { color: var(--primary); margin-bottom: 1rem; }
.section-header p { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; margin: .75rem auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--primary);
  border-color: var(--gray-200);
}
.btn-outline-dark:hover { background: var(--gray-50); border-color: var(--primary); }
.btn-navy {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-navy:hover { background: var(--primary-2); border-color: var(--primary-2); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* Top bar */
.header-topbar {
  background: var(--primary);
  padding: .4rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.header-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.topbar-left a, .topbar-right a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.topbar-left a:hover, .topbar-right a:hover { color: var(--accent); }
.topbar-item { display: flex; align-items: center; gap: .35rem; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Main nav */
.header-main { padding: .7rem 0; }
.header-main .container { display: flex; align-items: center; gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 28px; height: 28px; fill: var(--white); }
.logo-text .name { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.logo-text .tagline { font-size: .7rem; color: var(--accent); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Main navigation */
.main-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: .25rem; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  padding: .5rem .85rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--gray-800);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--gray-100); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link .caret { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + .5rem); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1rem; font-size: .88rem;
  color: var(--gray-800); transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown a:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.nav-dropdown a:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-hotline { text-align: right; }
.header-hotline .label { font-size: .7rem; color: var(--gray-400); font-weight: 500; }
.header-hotline .number { font-size: 1.1rem; font-weight: 800; color: var(--red); line-height: 1.1; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Body offset for fixed header */
body { padding-top: 100px; }

/* =========================================================
   HERO / BANNER
   ========================================================= */
.hero {
  position: relative; min-height: 620px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, #1a5276 100%);
  display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3);
  color: var(--accent); padding: .35rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--accent); }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .2rem; }
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(135deg, rgba(249,115,22,.15), rgba(249,115,22,.05));
  overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(249,115,22,.1);
}
.hero-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr);
  gap: 2px; padding: 2px;
}
.hero-grid-item {
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: rgba(249,115,22,.3);
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.product-card-img {
  aspect-ratio: 4/3; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-img svg { width: 80px; height: 80px; color: var(--gray-400); }
.product-card-body { padding: 1.25rem; }
.product-card-cat {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem;
}
.product-card-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; line-height: 1.3; }
.product-card-code { font-size: .8rem; color: var(--gray-400); margin-bottom: .75rem; }
.product-card-price { font-size: 1.1rem; font-weight: 800; color: var(--red); margin-bottom: 1rem; }
.product-card-price .unit { font-size: .8rem; font-weight: 400; color: var(--gray-400); }
.product-card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px;
}

/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.cat-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); padding: 2rem 1.5rem;
  text-align: center; transition: var(--transition); cursor: pointer;
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.cat-icon svg { width: 36px; height: 36px; color: var(--accent-2); }
.cat-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; }
.cat-count { font-size: .82rem; color: var(--gray-400); }

/* =========================================================
   FEATURE / REASON CARDS
   ========================================================= */
.feature-card {
  display: flex; gap: 1.25rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.feature-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--white); }
.feature-body h3 { color: var(--primary); margin-bottom: .4rem; font-size: 1rem; }
.feature-body p { font-size: .88rem; color: var(--gray-600); line-height: 1.55; }

/* =========================================================
   PRICE TABLE
   ========================================================= */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table thead { background: var(--primary); color: var(--white); }
.price-table thead th { padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.price-table tbody tr { border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: #fff7ed; }
.price-table tbody td { padding: .85rem 1.25rem; color: var(--gray-800); }
.price-table .product-link { color: var(--primary-2); font-weight: 600; cursor: pointer; transition: color var(--transition); }
.price-table .product-link:hover { color: var(--accent); text-decoration: underline; }
.price-table .price-cell { color: var(--red); font-weight: 700; font-size: .95rem; }
.price-table .unit-cell { color: var(--gray-400); font-size: .82rem; }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-table tr:nth-child(even):hover td { background: #fff7ed; }

/* =========================================================
   BLOG CARDS
   ========================================================= */
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--accent); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .05em;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-meta { display: flex; gap: .75rem; font-size: .78rem; color: var(--gray-400); margin-bottom: .6rem; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: .5rem; }
.blog-card-title:hover { color: var(--accent); }
.blog-card-excerpt { font-size: .88rem; color: var(--gray-600); line-height: 1.55; }

/* =========================================================
   TECH TABLE
   ========================================================= */
.tech-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tech-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tech-table thead { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: var(--white); }
.tech-table thead th { padding: .9rem 1rem; font-weight: 600; font-size: .82rem; white-space: nowrap; text-align: center; }
.tech-table thead th:first-child { text-align: left; }
.tech-table tbody tr:nth-child(odd) { background: var(--white); }
.tech-table tbody tr:nth-child(even) { background: var(--gray-50); }
.tech-table tbody tr:hover { background: #eff6ff; }
.tech-table tbody td { padding: .75rem 1rem; color: var(--gray-800); text-align: center; border-bottom: 1px solid var(--gray-200); }
.tech-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--primary-2); }

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-800); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); font-size: .9rem; color: var(--gray-800);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(30,77,140,.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 1.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.filter-group { flex: 1; min-width: 180px; }
.filter-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-600); margin-bottom: .4rem; }
.filter-input {
  width: 100%; padding: .65rem .9rem; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); font-size: .88rem;
  outline: none; transition: border-color var(--transition);
}
.filter-input:focus { border-color: var(--primary-2); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: .75rem 0; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--gray-800); font-weight: 500; }
.breadcrumb .sep { color: var(--gray-400); }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,.8); position: relative; max-width: 560px; margin: .75rem auto 0; font-size: 1.05rem; }
.page-hero-eyebrow {
  display: inline-block; background: rgba(249,115,22,.2);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: .75rem; position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--gray-800); color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text .name { color: var(--white); }
.footer-brand .logo-text .tagline { color: var(--accent); }
.footer-brand p { font-size: .88rem; margin-top: 1rem; line-height: 1.7; }
.footer-heading { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color var(--transition); display: flex; align-items: center; gap: .4rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .75rem; font-size: .88rem; }
.footer-contact svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: rgba(255,255,255,.7);
}
.social-btn:hover { background: var(--accent); color: var(--white); }
.social-btn svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; flex-wrap: wrap; gap: .5rem;
}
.footer-cert { display: flex; align-items: center; gap: .75rem; }
.cert-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: .3rem .75rem;
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: .35rem;
}
.cert-badge svg { width: 14px; height: 14px; color: var(--accent); }

/* =========================================================
   STICKY BUTTONS
   ========================================================= */
.sticky-actions {
  position: fixed; right: 1.25rem; bottom: 1.5rem;
  z-index: 999; display: flex; flex-direction: column; gap: .65rem;
  align-items: flex-end;
}
.sticky-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: var(--transition); white-space: nowrap; border: none;
  text-decoration: none;
}
.sticky-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.sticky-btn:hover { transform: scale(1.05) translateX(-3px); }
.sticky-btn-zalo { background: #0068ff; color: var(--white); }
.sticky-btn-call { background: var(--red); color: var(--white); }
.sticky-btn-quote { background: var(--accent); color: var(--white); }
.sticky-btn-top {
  background: var(--primary); color: var(--white);
  width: 42px; padding: .7rem; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.sticky-btn-top.show { opacity: 1; pointer-events: all; }
.sticky-label { display: block; }

/* =========================================================
   MODAL / POPUP
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: scale(.95); transition: transform var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { color: var(--primary); font-size: 1.1rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--gray-600);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 1.5rem; }

/* =========================================================
   ARTICLE / BLOG POST
   ========================================================= */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.article-content h1 { color: var(--primary); margin-bottom: 1.5rem; }
.article-content h2 { color: var(--primary); margin: 2rem 0 1rem; font-size: 1.5rem; }
.article-content h3 { color: var(--primary-2); margin: 1.5rem 0 .75rem; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--gray-600); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content ul li, .article-content ol li { margin-bottom: .5rem; color: var(--gray-600); line-height: 1.7; }
.article-content img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article-content blockquote {
  border-left: 4px solid var(--accent); padding: 1rem 1.5rem;
  background: #fff7ed; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--gray-600);
}
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.article-meta-item { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--gray-400); }
.article-meta-item svg { width: 15px; height: 15px; }

/* Article layout grid slots */
.article-main  { min-width: 0; }
.article-sidebar { position: sticky; top: 120px; }

/* article-header, article-body — aliases for article-content styles */
.article-header { margin-bottom: 2rem; }
.article-header h1 { color: var(--primary); margin-bottom: 1rem; line-height: 1.25; }
.article-meta-bar {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: .85rem; color: var(--gray-400);
}
.article-meta-bar span { display: flex; align-items: center; gap: .3rem; }
.article-body h2 { color: var(--primary); margin: 2rem 0 1rem; font-size: 1.5rem; }
.article-body h3 { color: var(--primary-2); margin: 1.5rem 0 .75rem; font-size: 1.15rem; }
.article-body p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--gray-600); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul li, .article-body ol li { margin-bottom: .5rem; color: var(--gray-600); line-height: 1.7; }
.article-body img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem;
  background: #fff7ed; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0; color: var(--gray-700);
}
.article-body blockquote cite { font-size: .82rem; color: var(--gray-400); font-style: normal; display: block; margin-top: .5rem; }
.article-lead {
  font-size: 1.1rem; line-height: 1.85; color: var(--gray-700);
  font-weight: 400; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 2px solid var(--gray-100);
}

/* section-subtitle alias */
.section-subtitle { max-width: 580px; margin: .75rem auto 0; font-size: 1.05rem; color: var(--gray-600); }

/* blog-card-image alias → same as blog-card-img */
.blog-card-image {
  aspect-ratio: 16/9; background: var(--gray-100);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* form-label alias */
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-800); margin-bottom: .4rem; }

/* toc-heading alias */
.toc-heading { font-weight: 700; color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }

/* TOC */
.toc-box {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem; margin: 2rem 0;
}
.toc-title { font-weight: 700; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: .4rem; }
.toc-list a { font-size: .88rem; color: var(--primary-2); transition: color var(--transition); }
.toc-list a:hover { color: var(--accent); }
.toc-list .toc-h3 { padding-left: 1.2rem; }
.toc-list .toc-h3 a { font-size: .82rem; color: var(--gray-600); }

/* Sidebar */
.sidebar-box {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--accent); }
.sidebar-post { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.sidebar-post-title { font-size: .85rem; font-weight: 600; color: var(--primary); line-height: 1.35; }
.sidebar-post-title:hover { color: var(--accent); }
.sidebar-post-date { font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-800); transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); }
.stat-card { text-align: center; padding: 2rem 1.5rem; }
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: .4rem; }
.stat-divider { width: 1px; background: rgba(255,255,255,.12); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: var(--radius-lg); padding: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 500px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--gray-200);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-card::before {
  content: '"'; font-size: 5rem; color: var(--accent); opacity: .15;
  position: absolute; top: 0; left: 1rem; line-height: 1; font-family: serif;
}
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text { font-size: .92rem; color: var(--gray-600); line-height: 1.7; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--primary); }
.testimonial-role { font-size: .8rem; color: var(--gray-400); }

/* =========================================================
   PARTNERS STRIP
   ========================================================= */
.partners-strip {
  background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}
.partner-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; font-weight: 700; color: var(--gray-400);
  transition: color var(--transition);
}
.partner-item:hover { color: var(--primary-2); }
.partner-item svg { width: 28px; height: 28px; }
.partners-list { display: flex; gap: 3rem; align-items: center; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   TAG CLOUD
   ========================================================= */
.tag-cloud { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag {
  padding: .3rem .8rem; border-radius: 4px; font-size: .8rem;
  background: var(--gray-100); color: var(--gray-600);
  transition: var(--transition); cursor: pointer; font-weight: 500;
}
.tag:hover { background: var(--primary); color: var(--white); }

/* =========================================================
   NOTICE BARS
   ========================================================= */
.notice-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem; border-radius: var(--radius); font-size: .88rem;
}
.notice-bar.info { background: #eff6ff; border: 1px solid #bfdbfe; color: var(--primary-2); }
.notice-bar.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.notice-bar.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.notice-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.animate-fade-up { animation: fadeInUp .6s ease forwards; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }
.call-pulse { animation: pulse-ring 2s ease-out infinite; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { padding-top: 76px; }
  .header-topbar { display: none; }
  .main-nav, .header-hotline { display: none; }
  .hamburger { display: flex; }
  .header-main .container { gap: .75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 500px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 1.5rem; }
  .cta-banner { text-align: center; flex-direction: column; }
  .filter-bar { flex-direction: column; }
  .section-pad { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sticky-label { display: none; }
  .sticky-btn { width: 48px; height: 48px; padding: .7rem; justify-content: center; }
  .stats-section .container { flex-direction: column; }
  .stat-divider { width: 60%; height: 1px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .container { padding: 0 1rem; }
  .price-table { font-size: .8rem; }
  .price-table thead th, .price-table tbody td { padding: .65rem .75rem; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 85%; max-width: 340px;
  background: var(--white); z-index: 2001; transform: translateX(-100%);
  transition: transform .3s ease; overflow-y: auto; padding: 5rem 0 2rem;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem; font-size: .95rem; font-weight: 500;
  color: var(--gray-800); border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.mobile-nav-list a:hover { background: var(--gray-50); color: var(--primary); }
.mobile-nav-list a.active { color: var(--primary); font-weight: 700; background: #eff6ff; }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-hotline {
  padding: 1.5rem; background: var(--gray-50); margin: 1rem;
  border-radius: var(--radius-lg); text-align: center;
}
.mobile-hotline .label { font-size: .8rem; color: var(--gray-400); }
.mobile-hotline .number { font-size: 1.5rem; font-weight: 800; color: var(--red); }

/* =========================================================
   WORDPRESS CORE COMPATIBILITY CLASSES
   ========================================================= */
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--gray-400); text-align: center; margin-top: .5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery-item img { border-radius: var(--radius); }
/* WP admin bar offset (khi dang nhap) */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
