/* ==========================================================================
   Trang giới thiệu EZDOC – Module Số hóa tài liệu (/san-pham/ezdoc)
   Dùng chung token trong public.css.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ez-hero { padding: 64px 0 72px; }
.ez-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.ez-hero h1 { letter-spacing: .02em; }
.page-hero p.ez-tagline { margin-top: 10px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); color: var(--gold-400); }
.ez-hero-points { list-style: none; margin-top: 22px; display: grid; gap: 8px; }
.ez-hero-points li { position: relative; padding-left: 26px; color: rgba(255,255,255,.85); font-size: 15px; }
.ez-hero-points li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400); transform: rotate(-45deg);
}

/* ── Video ────────────────────────────────────────────────────────────── */
.ez-video { border-radius: 16px; overflow: hidden; background: var(--navy-950); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.ez-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ez-video figcaption { padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,.65); }
.ez-hero-video { border: 1px solid rgba(255,255,255,.12); }
.ez-video-main { max-width: 960px; margin-inline: auto; }

/* ── Sub nav ──────────────────────────────────────────────────────────── */
.ez-subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.ez-subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ez-subnav .container::-webkit-scrollbar { display: none; }
.ez-subnav a { flex-shrink: 0; padding: 14px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.ez-subnav a:hover { color: var(--navy-900); border-bottom-color: var(--gold-500); }
#bai-toan, #quy-trinh, #tinh-nang, #quan-ly, #xuat-du-lieu, #trien-khai, #video { scroll-margin-top: calc(var(--header-h) + 56px); }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.ez-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* So sánh truyền thống / EZDOC */
.ez-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ez-compare-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg-soft); }
.ez-compare-col.is-ez { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.ez-compare-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.is-ez .ez-compare-label { color: var(--gold-400); }
.ez-compare ol { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.ez-compare li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ez-compare li::before {
  content: counter(s); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--border); color: var(--ink-soft);
}
.is-ez li::before { background: var(--gold-400); color: var(--navy-950); }

/* Quy trình */
.ez-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.ez-steps li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy-900);
}
.ez-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-size: 12px; }

/* Ảnh chụp màn hình */
.ez-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ez-shot .ez-zoom, .ez-card .ez-zoom { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-md); }
.ez-zoom img { width: 100%; height: auto; transition: transform .3s; }
.ez-zoom:hover img { transform: scale(1.015); }
.ez-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.ez-shot-wide { max-width: 1040px; margin-inline: auto; }

/* Khối tối: điểm khác biệt + số liệu */
.ez-dark { background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); color: #fff; }
.ez-dark .section-title { color: #fff; }
.ez-dark .section-desc { color: rgba(255,255,255,.75); }
.ez-dark .eyebrow { color: var(--gold-400); }
.ez-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.ez-stat { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.ez-stat:first-child { border-left: 0; }
.ez-stat-value { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 600; color: var(--gold-400); line-height: 1.1; white-space: nowrap; }
.ez-stat-label { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.ez-footnote { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); }
.ez-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.ez-diff { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ez-diff h3 { color: #fff; font-size: 18px; font-weight: 600; }
.ez-diff p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.72); }

/* Tính năng */
.ez-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ez-feature + .ez-feature { margin-top: 88px; }
.ez-feature.is-reverse .ez-feature-text { order: 2; }
.ez-feature-no { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gold-600); letter-spacing: .1em; }
.ez-feature h3 { margin-top: 6px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.ez-feature p { margin-top: 14px; color: var(--ink-soft); }
.ez-flow-inline { padding: 12px 16px; border-left: 3px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; font-weight: 500; color: var(--ink) !important; }

.ez-checks { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.ez-checks li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15px; }
.ez-checks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4e9c' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ez-checks-lg li { font-size: 16px; }
.ez-checks-lg li + li { margin-top: 4px; }

/* Thẻ ảnh có chú thích */
.ez-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ez-card { display: flex; flex-direction: column; }
.ez-card figcaption { padding-top: 16px; }
.ez-card h3 { font-size: 18px; font-weight: 600; }
.ez-card p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.ez-gallery .ez-zoom { aspect-ratio: 16 / 9; }
.ez-gallery .ez-zoom img { height: 100%; object-fit: cover; object-position: top left; }

/* Xuất dữ liệu */
.ez-export { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.ez-export-list { display: grid; gap: 16px; }
.ez-export-item { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.ez-export-item h3 { font-size: 17px; font-weight: 600; }
.ez-export-item p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.ez-oais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.ez-oais-item { padding: 26px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid #c9d7ee; }
.ez-oais-code { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--blue-600); line-height: 1; }
.ez-oais-name { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.ez-oais-item p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* Triển khai */
.ez-benefit { padding: 32px; border-radius: 16px; background: var(--navy-900); color: #fff; }
.ez-benefit h3 { color: var(--gold-400); font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ez-benefit ul { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.ez-benefit li { position: relative; padding-left: 22px; color: rgba(255,255,255,.85); }
.ez-benefit li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); }
.ez-distributed { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; margin-top: 80px; }
.ez-distributed h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.ez-distributed-text > p { margin-top: 14px; color: var(--ink-soft); }

/* Lightbox */
.ez-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; margin: auto; overflow: visible; }
.ez-lightbox::backdrop { background: rgba(7, 21, 40, .88); }
.ez-lightbox img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: var(--radius-sm); cursor: zoom-out; }
.ez-lightbox-close {
  position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .ez-hero-grid, .ez-split, .ez-feature, .ez-distributed { grid-template-columns: 1fr; gap: 36px; }
  .ez-feature.is-reverse .ez-feature-text { order: 0; }
  .ez-feature + .ez-feature { margin-top: 64px; }
  .ez-export { grid-template-columns: 1fr 1fr; }
  .ez-export-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .ez-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ez-stat:nth-child(3) { border-left: 0; }
  .ez-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 720px) {
  .ez-hero { padding: 48px 0 56px; }
  .ez-compare, .ez-gallery, .ez-diff-grid, .ez-oais, .ez-export, .ez-export-list { grid-template-columns: 1fr; }
  .ez-stat { padding: 20px 16px; }
  .ez-benefit { padding: 24px; }
}
