/* ==========================================================================
   Huyền Thư — Public site design system
   Phong cách: Corporate tin cậy — navy chủ đạo, vàng đồng điểm nhấn,
   tiêu đề serif (Lora), nội dung Be Vietnam Pro. Admin dùng site.css riêng.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #12294a;
  --navy-700: #1b3a66;
  --navy-100: #e7edf6;
  --gold-600: #8c6420;   /* chữ vàng trên nền sáng (AA) */
  --gold-500: #b8893b;
  --gold-400: #d4af6a;   /* chữ vàng trên nền navy */
  --gold-100: #f7efe0;
  --blue-600: #1e4e9c;   /* link, EZDOC */
  --blue-50:  #eef3fb;

  /* Neutrals */
  --bg:        #ffffff;
  --bg-soft:   #f5f6f8;
  --border:    #e2e6ec;
  --border-strong: #cfd6e0;
  --ink:       #0f1b2d;
  --ink-soft:  #44516a;
  --ink-muted: #6b778c;

  --success: #16794c;
  --danger:  #c0392b;

  /* Type */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06);
  --shadow-md: 0 10px 30px -12px rgba(11, 31, 58, .18);

  /* Bí danh cho các view cũ (tuyển dụng, chi tiết bài viết) */
  --p-bg: var(--bg-soft);
  --p-surface: var(--bg);
  --p-ink: var(--ink);
  --p-ink-soft: var(--ink-soft);
  --p-ink-muted: var(--ink-muted);
  --p-border: var(--border);
  --p-accent: var(--navy-900);
  --p-accent-2: var(--gold-400);
  --p-tag: var(--bg-soft);
  --mono: var(--font-body);
  --sans: var(--font-body);
  --serif: var(--font-display);
  --muted: var(--ink-muted);
  --accent: var(--blue-600);
  --accent-bg: var(--blue-50);
  --accent-border: #c9d7ee;
  --surface: var(--bg);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-900); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold-400); color: var(--navy-950); }
.btn-gold:hover { background: #e2c487; color: var(--navy-950); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blue-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; /* không dùng backdrop-filter: nó làm .main-nav (fixed) bị neo vào header */
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); flex-shrink: 0; }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .04em; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
}
.main-nav a:hover { color: var(--navy-900); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy-900); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid transparent; background: none; color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--navy-900); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-mobile-cta { display: none; }

@media (max-width: 1080px) {
  .site-header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px var(--gutter) 32px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .main-nav a:hover { background: none; }
  .main-nav a.active::after { left: 4px; right: auto; width: 24px; bottom: 10px; }
  .nav-mobile-cta { display: flex; margin-top: 24px; }
  .nav-mobile-cta .btn { width: 100%; padding: 0 24px; border-bottom: 0; border-radius: var(--radius-sm); font-size: 15px; }
  .main-nav .nav-mobile-cta .btn-primary, .main-nav .nav-mobile-cta .btn-primary:hover { color: #fff; background: var(--navy-900); }
  .header-actions { margin-left: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 19px; }
}

/* ── Section scaffolding ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.01em; }
.section-desc { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

/* ── Page hero (trang con) ────────────────────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff; padding: 72px 0 64px;
}
.page-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(212,175,106,.18);
  box-shadow: 0 0 0 60px rgba(212,175,106,.04), 0 0 0 120px rgba(212,175,106,.03);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; color: #fff; max-width: 820px; }
.page-hero p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.75); max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* ── Home hero ────────────────────────────────────────────────────────── */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: #fff;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(212,175,106,.12), transparent 70%),
    radial-gradient(500px 400px at 10% 100%, rgba(30,78,156,.35), transparent 70%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center;
  padding-top: 104px; padding-bottom: 104px;
}
.home-hero .eyebrow { color: var(--gold-400); }
.home-hero h1 {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.12; letter-spacing: -.015em;
}
.home-hero-desc { margin-top: 24px; font-size: 18px; color: rgba(255,255,255,.78); max-width: 560px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.pillars-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 8px;
  backdrop-filter: blur(6px);
}
.pillar-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  padding: 24px; border-radius: 12px; color: #fff;
  transition: background .18s;
}
.pillar-row + .pillar-row { border-top: 1px solid rgba(255,255,255,.08); }
a.pillar-row:hover { background: rgba(255,255,255,.05); color: #fff; }
.pillar-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--gold-400); line-height: 1; }
.pillar-row h3 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pillar-row p { font-size: 14px; color: rgba(255,255,255,.7); }
.pillar-tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-400); }

/* Stats */
.stats-strip { border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: #fff; line-height: 1.1; }
.stat-label { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* ── Pillars (lĩnh vực) ───────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; min-height: 280px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.service-card-num { font-family: var(--font-display); font-size: 56px; font-weight: 600; color: var(--gold-500); line-height: 1; opacity: .9; }
.service-card h3 { margin-top: 28px; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.service-card p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.service-card .link-arrow { margin-top: auto; padding-top: 28px; }
.service-card-dark { background: var(--navy-900); border-color: var(--navy-900); }
.service-card-dark h3 { color: #fff; }
.service-card-dark p { color: rgba(255,255,255,.75); }
.service-card-dark .service-card-num { color: var(--gold-400); }
.service-card-dark .link-arrow { color: var(--gold-400); }

/* ── Product spotlight ────────────────────────────────────────────────── */
.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.spotlight-name { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 700; color: var(--navy-900); letter-spacing: .02em; line-height: 1; }
.spotlight-desc { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.spotlight-visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden;
  background: linear-gradient(145deg, var(--blue-50), #dfe8f6);
  border: 1px solid var(--border);
}
.spotlight-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Minh hoạ tài liệu (khi chưa có ảnh sản phẩm) */
.doc-illustration { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.doc-sheet {
  position: absolute; width: 44%; aspect-ratio: 3 / 4; border-radius: 10px;
  background: #fff; border: 1px solid #d6dfec; box-shadow: 0 18px 40px -18px rgba(11,31,58,.35);
  padding: 8% 7%;
}
.doc-sheet:nth-child(1) { transform: translate(-34%, 6%) rotate(-8deg); opacity: .7; }
.doc-sheet:nth-child(2) { transform: translate(30%, -2%) rotate(6deg); opacity: .85; }
.doc-sheet:nth-child(3) { transform: translate(0, 0); }
.doc-line { height: 7px; border-radius: 4px; background: #e3e9f3; margin-bottom: 9px; }
.doc-line.w60 { width: 60%; } .doc-line.w80 { width: 80%; } .doc-line.w40 { width: 40%; }
.doc-line.head { height: 10px; width: 50%; background: var(--navy-700); opacity: .85; margin-bottom: 16px; }
.doc-badge {
  position: absolute; right: 8%; bottom: 10%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-900); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md);
}
.doc-badge svg { width: 16px; height: 16px; color: var(--gold-400); }

/* ── Product cards ────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); color: var(--ink); }
.product-card-thumb { aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--blue-50), #dfe8f6); position: relative; }
.product-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card-thumb .doc-illustration { transform: scale(.7); }
.product-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.product-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.product-card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.product-card .link-arrow { margin-top: auto; padding-top: 20px; }

/* ── Filter chips ─────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ── Article cards (Insights) ─────────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.article-card { display: flex; flex-direction: column; color: var(--ink); }
.article-card:hover { color: var(--ink); }
.article-card:hover h3 { color: var(--blue-600); }
.article-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-thumb img { transform: scale(1.03); }
.article-thumb-art { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.article-thumb-art::after {
  content: ''; position: absolute; right: -20%; top: -30%; width: 70%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(212,175,106,.35);
  box-shadow: 0 0 0 30px rgba(212,175,106,.06);
}
.article-cat { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.article-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.35; transition: color .18s; }
.article-card p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { margin-top: 14px; font-size: 13px; color: var(--ink-muted); display: flex; gap: 12px; }

/* ── Partners ─────────────────────────────────────────────────────────── */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.partner-item {
  display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink-soft); font-weight: 600; text-align: center;
}
.partner-item img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-item:hover img { filter: none; opacity: 1; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band { padding: 0 0 96px; }
main:has(> section.section-soft:last-of-type) + .cta-band { padding-top: 96px; }
.cta-band-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px; padding: 56px;
  color: #fff;
}
.cta-band-inner::after {
  content: ''; position: absolute; right: -80px; bottom: -160px; width: 360px; height: 360px;
  border-radius: 50%; border: 1px solid rgba(212,175,106,.25);
  box-shadow: 0 0 0 50px rgba(212,175,106,.05);
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: #fff; max-width: 620px; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.75); max-width: 560px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: var(--gold-400); }
.footer-company { margin-top: 20px; font-weight: 600; color: #fff; }
.footer-tagline { margin-top: 6px; color: rgba(255,255,255,.6); }
.footer-contact { margin-top: 20px; display: grid; gap: 8px; }
.footer-contact span { display: block; }
.footer-contact strong { color: rgba(255,255,255,.9); font-weight: 500; }
.site-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ── Rich content (HTML từ CMS) ───────────────────────────────────────── */
.rich-content, .profile-rich-content, .detail-content { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.rich-content > * + *, .profile-rich-content > * + *, .detail-content > * + * { margin-top: 1em; }
.rich-content h2, .rich-content h3, .profile-rich-content h2, .profile-rich-content h3, .detail-content h2, .detail-content h3 {
  font-family: var(--font-display); color: var(--ink); font-weight: 600; margin-top: 1.6em;
}
.rich-content h2, .profile-rich-content h2, .detail-content h2 { font-size: 28px; }
.rich-content h3, .profile-rich-content h3, .detail-content h3 { font-size: 22px; }
.rich-content ul, .rich-content ol, .profile-rich-content ul, .profile-rich-content ol, .detail-content ul, .detail-content ol { padding-left: 1.4em; }
.rich-content li + li, .profile-rich-content li + li, .detail-content li + li { margin-top: .4em; }
.rich-content strong, .profile-rich-content strong, .detail-content strong { color: var(--ink); }
.rich-content a, .profile-rich-content a, .detail-content a { text-decoration: underline; text-underline-offset: 3px; }
.rich-content img, .profile-rich-content img, .detail-content img { border-radius: var(--radius); height: auto; }
.rich-content blockquote, .profile-rich-content blockquote, .detail-content blockquote {
  border-left: 3px solid var(--gold-500); padding: 4px 0 4px 20px; font-family: var(--font-display); font-size: 20px; color: var(--ink);
}
.detail-content figure { margin: 1.6em 0; }
.detail-content figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 8px; text-align: center; }
.detail-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.detail-content th, .detail-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.detail-content pre { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-size: 14px; }

/* ── Product detail ───────────────────────────────────────────────────── */
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.product-hero-grid .spotlight-visual { border-color: rgba(255,255,255,.12); }
.product-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.product-body { padding: 80px 0; }
.product-back { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Insights list ────────────────────────────────────────────────────── */
.no-results { text-align: center; padding: 80px 24px; color: var(--ink-muted); }
.no-results svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .5; }
.no-results h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg);
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
}
.page-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }
.page-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ── Article detail ───────────────────────────────────────────────────── */
.article-detail { max-width: 800px; margin-inline: auto; padding: 56px var(--gutter) 96px; }
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.detail-breadcrumb a { color: var(--ink-muted); }
.detail-breadcrumb a:hover { color: var(--blue-600); }
.detail-breadcrumb span:last-child { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.detail-cats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-cat { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600) !important; }
.detail-tag { font-size: 13px; color: var(--blue-600); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; }
.article-detail h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.detail-excerpt { margin-top: 20px; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-muted); }
.detail-thumb { margin: 32px 0 40px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb > div[style] { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)) !important; }
.detail-video { margin: 32px 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.detail-video iframe { width: 100%; height: 100%; border: 0; }
.detail-share { display: flex; align-items: center; gap: 10px; margin: 48px 0 32px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-label { font-size: 14px; color: var(--ink-muted); margin-right: 6px; }
.share-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--ink-soft); cursor: pointer;
}
.share-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }
.share-btn svg { width: 16px; height: 16px; }
.detail-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prevnext-item a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.prevnext-item a:hover { border-color: var(--navy-900); }
.prevnext-label { font-size: 13px; color: var(--ink-muted); }
.prevnext-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.prevnext-next a { text-align: right; }
.related-articles { margin-top: 72px; }
.related-articles h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }

/* ── Search ───────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 8px; max-width: 640px; margin-top: 28px; }
.search-input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid transparent;
}
.search-input svg { width: 20px; height: 20px; color: var(--ink-muted); flex-shrink: 0; }
.search-input input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 16px; color: var(--ink); }
.search-count { margin-bottom: 28px; color: var(--ink-muted); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.form-card > p { margin-top: 6px; color: var(--ink-soft); margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: #fff; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(27,58,102,.12); }
.field .text-danger, .text-danger { display: block; margin-top: 6px; font-size: 13px; color: var(--danger); }
.input-validation-error { border-color: var(--danger) !important; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 24px; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #eaf6ef; border: 1px solid #bfe3cd; color: var(--success); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-aside h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; }
.contact-aside > p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }
.contact-topics { margin-top: 32px; display: grid; gap: 12px; }
.contact-topic { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.contact-topic-num { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--gold-500); line-height: 1.3; }
.contact-topic h3 { font-size: 16px; font-weight: 600; }
.contact-topic p { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.contact-details { margin-top: 32px; display: grid; gap: 16px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-100); color: var(--navy-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-detail h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.contact-detail p { color: var(--ink); }
.contact-detail a { color: var(--ink); }

/* ── Profile / Giới thiệu ─────────────────────────────────────────────── */
.profile-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 48px; }
.profile-stat { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.profile-stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--navy-900); line-height: 1.1; }
.profile-stat-label { margin-top: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }

.pslider-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.pslider-tabs::-webkit-scrollbar { display: none; }
.pslider-tab {
  flex-shrink: 0; padding: 14px 20px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.pslider-tab:hover { color: var(--ink); }
.pslider-tab.active { color: var(--navy-900); font-weight: 600; border-bottom-color: var(--gold-500); }
.pslider-overflow { overflow: hidden; }
.pslider-track { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.pslider-slide { flex: 0 0 100%; min-width: 0; padding: 40px 2px 16px; }
.pslider-slide .profile-section-label { display: none; }
.pslider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 16px; }
.pslider-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); cursor: pointer;
}
.pslider-arrow:hover { border-color: var(--navy-900); color: var(--navy-900); }
.pslider-dots { display: flex; gap: 8px; }
.pslider-dot { width: 8px; height: 8px; border-radius: 4px; border: none; padding: 0; background: var(--border-strong); cursor: pointer; transition: width .2s, background .2s; }
.pslider-dot.active { width: 24px; background: var(--navy-900); }

.profile-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.profile-contact-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.profile-contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-100); color: var(--navy-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-contact-icon svg { width: 20px; height: 20px; }
.profile-contact-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.profile-contact-value { color: var(--ink); overflow-wrap: anywhere; }
.profile-contact-value a { color: var(--ink); }

/* Flipbook PDF */
.flipbook-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.flipbook-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 24px; color: var(--ink-muted); font-size: 15px; }
.flipbook-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--navy-900); animation: flip-spin .8s linear infinite; }
@keyframes flip-spin { to { transform: rotate(360deg); } }
#flip-book-container { width: 100%; max-width: 1100px; overflow: hidden; }
.flipbook-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.flipbook-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-soft); font-size: 14px; cursor: pointer; }
.flipbook-btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.flipbook-page-info { font-size: 14px; color: var(--ink-muted); white-space: nowrap; }
.flipbook-page-info strong { color: var(--ink); }
#flip-book-container.flipbook-fullscreen { position: fixed; inset: 0; z-index: 9999; background: #111; display: flex !important; align-items: center; justify-content: center; }
#flip-book-container.flipbook-fullscreen #flip-book { width: 100vw; height: 100vh; }
.flipbook-fs-overlay {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000;
  display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-radius: 999px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#flip-book-container.flipbook-fullscreen .flipbook-fs-overlay { opacity: 1; pointer-events: auto; }
.flipbook-fs-nav { background: none; border: none; color: #fff; cursor: pointer; display: flex; padding: 6px; border-radius: 8px; }
.flipbook-fs-nav:hover { background: rgba(255,255,255,.15); }
.flipbook-fs-pageinfo { font-size: 14px; color: rgba(255,255,255,.8); min-width: 60px; text-align: center; }

/* ── Error page ───────────────────────────────────────────────────────── */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-family: var(--font-display); font-size: 36px; font-weight: 600; }
.error-page p { margin-top: 12px; color: var(--ink-soft); }
.error-page .btn { margin-top: 28px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .home-hero-inner, .spotlight, .product-hero-grid, .profile-intro, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .home-hero-inner { padding-top: 72px; padding-bottom: 72px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card-grid, .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero p, .home-hero-desc { font-size: 16px; }
  .home-hero-actions .btn, .spotlight-actions .btn, .cta-band-actions .btn, .product-hero-actions .btn { flex: 1 1 100%; }
  .service-grid, .card-grid, .articles-grid, .related-grid, .detail-prevnext, .field-row { grid-template-columns: 1fr; }
  .service-card { padding: 28px; min-height: 0; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
  .cta-band { padding-bottom: 64px; }
  main:has(> section.section-soft:last-of-type) + .cta-band { padding-top: 64px; }
  .cta-band-inner { padding: 36px 24px; border-radius: 16px; }
  .form-card { padding: 24px; }
  .article-detail { padding-top: 40px; }
  .detail-excerpt { font-size: 18px; }
  .prevnext-next a { text-align: left; }
  .search-form { flex-direction: column; }
  .flipbook-controls { border-radius: var(--radius); }
}

/* ── Tư vấn tài chính ─────────────────────────────────────────────────── */
.advisory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.advisory-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.aside-card .eyebrow { margin-bottom: 10px; }
.aside-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.aside-card p { margin: 10px 0 20px; color: var(--ink-soft); font-size: 15px; }
.aside-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 14px; }
.aside-contact a { color: var(--ink-soft); }
.aside-contact strong { color: var(--ink); font-weight: 600; }
.aside-link { display: grid; gap: 4px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 16px; color: var(--ink); }
.aside-link:hover { border-color: var(--navy-900); color: var(--ink); }
.aside-link .eyebrow { margin-bottom: 4px; }
.aside-link strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.aside-link .link-arrow { margin-top: 8px; }
@media (max-width: 1080px) {
  .advisory-layout { grid-template-columns: 1fr; gap: 40px; }
  .advisory-aside { position: static; }
}
