/* ================================================================
   Giao diện trang tuyên truyền pháp luật xã Cẩm Khê
   (ghi đè/bổ sung assets/css/app.css của framework)
   Người dùng chính: người dân dùng điện thoại, nhiều người lớn tuổi
   → chữ ≥ 16px (phụ ≥ 14px), tương phản AA, vùng chạm ≥ 44px.
   ================================================================ */
:root {
    --blue: #0b4ea2;
    --blue-dark: #083b7c;
    --blue-soft: #e8f1fc;
    --red: #d6211a;
    --gold: #f2c230;
    --text: #1d2939;
    --muted: #5b6475;
    --line: #e4e9f0;
    --bg: #f4f7fb;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(16, 40, 80, .06);
    --container: 1240px;
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --tap: 44px;              /* vùng chạm tối thiểu */

    /* màu chuyên mục: --c-x (nền ô icon, viền) / --c-x-bg (nền nhạt) / --c-x-text (chữ, đạt AA trên nền nhạt) */
    --c-red: #e5484d;      --c-red-bg: #fff1f0;      --c-red-text: #b42318;
    --c-orange: #f08c00;   --c-orange-bg: #fff6e8;   --c-orange-text: #a34b00;
    --c-blue: #1f6fd6;     --c-blue-bg: #eef5ff;     --c-blue-text: #175cd3;
    --c-green: #1f9d55;    --c-green-bg: #ecf9f1;    --c-green-text: #137043;
    --c-purple: #7b4bd6;   --c-purple-bg: #f4efff;   --c-purple-text: #6a3bc2;
    --c-teal: #0f9fa8;     --c-teal-bg: #e9f8f9;     --c-teal-text: #0b6f77;
    --c-pink: #d6407a;     --c-pink-bg: #fff0f5;     --c-pink-text: #b0245c;

    /* chuyển động: dùng lại, không viết số cứng */
    --dur-press: 100ms;       /* phản hồi bấm, hover vào */
    --dur-fast: 160ms;        /* hover ra, đóng menu */
    --dur-base: 220ms;        /* mở menu, popover */
    --dur-reveal: 320ms;      /* hiện dần khi cuộn tới */
    --dur-slide: 450ms;       /* chuyển slide */
    --ease-out: cubic-bezier(.22, 1, .36, 1);     /* phần tử đi vào */
    --ease-in: cubic-bezier(.4, 0, 1, 1);         /* phần tử đi ra */
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* dịch chuyển tại chỗ */
    --press-scale: .97;
    --lift: -2px;
    --rise: 12px;
    --stagger: 50ms;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
a:hover { color: var(--blue); text-decoration: none; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.site-main { flex: 1; padding: 20px 0 40px; }
.container { max-width: var(--container); }

/* ===== Tiện ích chuyển động (dùng lại ở mọi trang) =====
   .u-press              thu nhỏ nhẹ khi bấm (mọi thiết bị)
   .u-lift               nâng 2px + bóng khi rê chuột (chỉ chuột)
   [data-reveal]         hiện dần + nhô lên khi cuộn tới (site.js gắn .is-revealed, chạy 1 lần)
   [data-reveal-stagger] như trên cho các con trực tiếp, lệch nhịp --stagger, tối đa 6
   Dùng thuộc tính scale/translate riêng nên không đè transform sẵn có của phần tử. */
.u-press, .btn-pill, .btn-primary-block, .slider-btn, .slider-pause, .nav-toggle, .nav-search button, .link-share {
    transition: scale var(--dur-fast) var(--ease-out);
}
.u-press:active, .btn-pill:active, .btn-primary-block:active, .slider-btn:active, .slider-pause:active,
.nav-toggle:active, .nav-search button:active, .link-share:active {
    scale: var(--press-scale); transition-duration: var(--dur-press);
}
.u-lift { transition: translate var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .u-lift:hover { translate: 0 var(--lift); box-shadow: 0 8px 18px rgba(16, 40, 80, .12); transition-duration: var(--dur-press); }
}
.js-reveal [data-reveal], .js-reveal [data-reveal-stagger] > * {
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js-reveal [data-reveal]:not(.is-revealed), .js-reveal [data-reveal-stagger]:not(.is-revealed) > * { opacity: 0; translate: 0 var(--rise); }

/* ===== Banner ===== */
.banner { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 60%, #eef7ee 100%); }
.banner-scenery { position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; }
.banner-scenery svg { width: 100%; height: 100%; display: block; }
.banner-flag { position: absolute; top: 0; right: 0; width: 120px; height: 72px; background: var(--red); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 30%); display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 14px; }
.banner-flag svg { width: 34px; height: 34px; }
.banner-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 176px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 18px; color: inherit; }
.brand:hover { color: inherit; }
.emblem { width: 96px; height: 96px; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.emblem svg { width: 100%; height: 100%; display: block; }
.emblem-sm { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-org { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: .5px; line-height: 1.3; }
.brand-title { font-size: clamp(22px, 2.35vw, 34px); white-space: nowrap; line-height: 1.15; font-weight: 800; color: var(--red); text-shadow: 0 2px 0 #fff, 0 3px 8px rgba(214, 33, 26, .18); }
.brand-slogan { font-family: "Dancing Script", cursive; font-size: 24px; line-height: 1.3; color: var(--blue-dark); margin-top: 4px; }
.banner-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8a5a00; font-weight: 800; letter-spacing: 1px; margin-right: 90px; flex: none; }
.banner-badge span { background: linear-gradient(180deg, #7a3f12, #4b2408); color: #ffd98a; padding: 8px 18px; border-radius: 8px; box-shadow: 0 6px 14px rgba(75, 36, 8, .35); font-size: 15px; }
.banner-badge-ico { width: 74px; height: 74px; color: #b07a12; stroke-width: 1.4; }

/* ===== Menu ===== */
.mainnav { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(8, 59, 124, .25); }
.mainnav-inner { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.nav-menu a { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 56px; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out); }
.nav-menu a:hover { background: rgba(255,255,255,.12); color: #fff; transition-duration: var(--dur-press); }
.nav-menu a.active { background: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--gold); }
.nav-search { display: flex; align-items: center; background: #fff; border-radius: 8px; overflow: hidden; width: 240px; flex: none; }
.nav-search input { border: 0; border-radius: 0; padding: 10px 12px; height: var(--tap); font-size: 16px; min-width: 0; flex: 1; }
.nav-search input:focus { outline: none; }
.nav-search button { border: 0; background: none; color: var(--blue); width: var(--tap); height: var(--tap); flex: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.nav-search .ico { width: 22px; height: 22px; }
.nav-toggle { display: none; align-items: center; gap: 8px; white-space: nowrap; min-height: var(--tap); background: none; border: 0; color: #fff; font: inherit; font-size: 16px; font-weight: 600; padding: 0 8px 0 4px; cursor: pointer; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .nav-ico-close, .nav-toggle[aria-expanded="true"] .nav-ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-close { display: block; }

/* ===== Hero ===== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; box-shadow: var(--shadow); background: #bfe0ff; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 34px 40px; color: inherit; opacity: 0; visibility: hidden; transition: opacity var(--dur-slide) var(--ease-in-out), visibility 0s linear var(--dur-slide); }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide:hover { color: inherit; }
.slide-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-sky { background: linear-gradient(180deg, #8ec9ff 0%, #d9efff 55%, #f2fbff 100%); }
.slide-red { background: linear-gradient(180deg, #ffd9cf 0%, #fff1e2 60%, #fffaf2 100%); }
.slide-green { background: linear-gradient(180deg, #bfe8cf 0%, #e8f8ee 60%, #f6fff9 100%); }
.slide-sunset { background: linear-gradient(180deg, #ffd29a 0%, #ffe9cc 55%, #fff8ef 100%); }
.slide-art .m1 { fill: #7fb6d9; opacity: .55; }
.slide-art .m2 { fill: #5fae6e; }
.slide-art .m3 { fill: #3f8f50; }
.slide-art .town rect { fill: #fff; opacity: .9; }
.slide-red .m1 { fill: #e9a27f; } .slide-red .m2 { fill: #d96b4c; } .slide-red .m3 { fill: #b8432c; }
.slide-sunset .m1 { fill: #e8b36d; } .slide-sunset .m2 { fill: #cc8a3e; } .slide-sunset .m3 { fill: #a5662a; }
.slide-text { position: relative; display: flex; flex-direction: column; max-width: 560px; }
.slide-title { font-family: "Dancing Script", cursive; font-size: 54px; line-height: 1.05; color: var(--blue); text-shadow: 0 2px 0 #fff; }
.slide-sub { font-family: "Dancing Script", cursive; font-size: 38px; line-height: 1.1; color: var(--red); margin-left: 60px; text-shadow: 0 2px 0 #fff; }
.slide-line { align-self: flex-start; margin: 14px 0 0 60px; background: rgba(11, 78, 162, .88); color: #fff; padding: 6px 16px; border-radius: 6px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.slider-btn { position: absolute; top: 50%; translate: 0 -50%; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: rgba(15, 30, 60, .55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; padding: 0; transition: scale var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.slider-btn:hover { background: rgba(15, 30, 60, .8); }
.slider-btn .ico { width: 24px; height: 24px; }
.slider-btn.prev { left: 12px; } .slider-btn.next { right: 12px; }
/* Chấm: nhìn thấy 12px, vùng bấm 44px */
.slider-dots { position: absolute; left: 50%; bottom: 2px; translate: -50% 0; display: flex; z-index: 2; }
.slider-dots button { width: var(--tap); height: var(--tap); border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(15, 30, 60, .25); transition: background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.slider-dots button[aria-current="true"]::before { background: var(--blue); scale: 1.15; }
.slider-pause { position: absolute; right: 8px; bottom: 6px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: rgba(15, 30, 60, .55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-pause::after { content: ""; position: absolute; inset: -2px; } /* nới vùng bấm lên 44px */
.slider-pause .ico { width: 20px; height: 20px; }
.slider-pause .ico-play, .slider-pause[aria-pressed="true"] .ico-pause { display: none; }
.slider-pause[aria-pressed="true"] .ico-play { display: block; }

.topic-card { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff7e0, #fffdf5); border: 1px solid #f5e1a8; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.topic-head { display: flex; align-items: center; gap: 10px; color: #8a4b00; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.topic-head .ico { width: 30px; height: 30px; color: #f08c00; }
.topic-title { color: var(--blue); font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.topic-card p { color: #475467; margin: 0 0 16px; position: relative; z-index: 1; max-width: 92%; }
.btn-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); background: var(--gold); color: #3d2a00; font-weight: 700; padding: 0 18px; border-radius: 8px; font-size: 16px; transition: scale var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.btn-pill:hover { background: #e5b21d; color: #3d2a00; }
.topic-art { position: absolute; right: -10px; bottom: -14px; width: 130px; height: 130px; border-radius: 50%; background: #ffe7a3; display: flex; align-items: center; justify-content: center; }
.topic-art-ico { width: 64px; height: 64px; color: var(--red); }

/* ===== Chuyên mục ===== */
.cat-grid { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%; padding: 16px 10px 14px; border-radius: var(--radius); background: var(--cb); border: 1px solid color-mix(in srgb, var(--cc) 22%, transparent); }
.cat-card:hover { color: inherit; }
@media (hover: hover) and (pointer: fine) {
    .cat-card.u-lift:hover { box-shadow: 0 8px 18px color-mix(in srgb, var(--cc) 22%, transparent); }
}
.cat-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--cc); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: 0 6px 12px color-mix(in srgb, var(--cc) 35%, transparent); }
.cat-ico .ico { width: 34px; height: 34px; }
.cat-name { font-weight: 700; color: var(--ct); font-size: 16px; line-height: 1.3; }
.cat-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
.cat-red    { --cc: var(--c-red);    --cb: var(--c-red-bg);    --ct: var(--c-red-text); }
.cat-orange { --cc: var(--c-orange); --cb: var(--c-orange-bg); --ct: var(--c-orange-text); }
.cat-blue   { --cc: var(--c-blue);   --cb: var(--c-blue-bg);   --ct: var(--c-blue-text); }
.cat-green  { --cc: var(--c-green);  --cb: var(--c-green-bg);  --ct: var(--c-green-text); }
.cat-purple { --cc: var(--c-purple); --cb: var(--c-purple-bg); --ct: var(--c-purple-text); }
.cat-teal   { --cc: var(--c-teal);   --cb: var(--c-teal-bg);   --ct: var(--c-teal-text); }
.cat-pink   { --cc: var(--c-pink);   --cb: var(--c-pink-bg);   --ct: var(--c-pink-text); }

/* ===== 3 cột ===== */
.home-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, .82fr); gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--blue); color: #fff; padding: 4px 6px 4px 16px; min-height: 52px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.35; margin: 0; }
.panel-head h2 .ico { width: 22px; height: 22px; }
.panel-head a { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 10px; border-radius: 8px; color: #fff; font-size: 15px; white-space: nowrap; }
.panel-head a:hover { color: #fff; text-decoration: underline; }
.empty { padding: 16px; color: var(--muted); margin: 0; }

/* Cả khối tin bấm được (liên kết tiêu đề phủ toàn khối) */
.news-item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background-color var(--dur-fast) var(--ease-out); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #f8fafd; transition-duration: var(--dur-press); }
.news-thumb { border-radius: 8px; aspect-ratio: 16 / 10; background: var(--cb); color: var(--ct); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb .ico { width: 44px; height: 44px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body h3 { font-size: 16px; line-height: 1.45; margin: 0 0 6px; }
.news-body h3 a { color: var(--blue-dark); }
.news-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-item:hover h3 a { color: var(--red); }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.tag { background: var(--cb); color: var(--ct); padding: 1px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.news-body p { margin: 0; font-size: 15px; line-height: 1.55; color: #475467; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.col-mid { display: flex; flex-direction: column; gap: 16px; }
.doc-list { list-style: none; margin: 0; padding: 4px 0; }
.doc-list li { position: relative; display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px dashed var(--line); transition: background-color var(--dur-fast) var(--ease-out); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li:hover { background: #f8fafd; transition-duration: var(--dur-press); }
.doc-ico { width: 36px; height: 40px; flex: none; border-radius: 6px; background: #fdecea; color: var(--red); display: flex; align-items: center; justify-content: center; }
.doc-ico .ico { width: 22px; height: 22px; }
.doc-list a { font-size: 16px; line-height: 1.45; color: var(--text); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-list a::after { content: ""; position: absolute; inset: 0; }
.doc-list li:hover a { color: var(--blue); }
.doc-list small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.law-day { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(120deg, #fff4d6 0%, #ffe3b0 55%, #ffd1c2 100%); border: 1px solid #f3cf8c; box-shadow: var(--shadow); color: inherit; }
.law-day:hover { color: inherit; }
.law-day-text { display: flex; flex-direction: column; text-align: center; flex: 1; }
.law-day-kicker { color: #b42318; font-weight: 700; font-size: 16px; line-height: 1.35; }
.law-day-date { color: var(--red); font-weight: 800; font-size: 34px; line-height: 1.15; }
.law-day-sub { font-style: italic; font-weight: 600; color: var(--blue); font-size: 16px; line-height: 1.4; }

.col-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--card); border: 1px solid #cfe0f5; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 18px; line-height: 1.35; color: var(--blue); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.side-card h2 .ico { width: 24px; height: 24px; }
.side-card p { font-size: 15px; color: #475467; margin: 0 0 12px; }
.qr-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: linear-gradient(180deg, #f3f8ff, #fff); }
.qr-box { width: 112px; height: 112px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; }
.link-share { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); background: none; border: 0; padding: 0 8px 0 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.link-share:hover { text-decoration: underline; }
.btn-primary-block { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; background: var(--blue); color: #fff; font-weight: 700; padding: 0 14px; border-radius: 8px; margin-bottom: 14px; transition: scale var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.btn-primary-block:hover { background: var(--blue-dark); color: #fff; }
.ask-contact { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ask-contact li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ask-contact a { display: inline-flex; align-items: center; min-height: var(--tap); }
.ask-contact .ico { color: var(--blue); width: 20px; height: 20px; }
.ask-contact strong { color: var(--blue-dark); font-size: 18px; }
.ask-contact small { display: block; color: var(--muted); font-size: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-dark); color: #d6e4f7; border-top: 4px solid var(--gold); padding: 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 28px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand span { font-size: 14px; }
.footer-title { color: #fff; font-size: 17px; margin: 6px 0 8px; }
.footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; min-height: var(--tap); }
.footer-contact .ico { width: 18px; height: 18px; color: var(--gold); }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer a { color: #d6e4f7; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { background: rgba(0,0,0,.18); padding: 12px 0; font-size: 14px; color: #b9cce8; text-align: center; }
.footer-credit { display: block; margin-top: 4px; }
.footer-credit a { color: #fff; display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-credit a:hover { text-decoration: underline; }

/* ===== Trang con: đường dẫn, tiêu đề, bố cục 2 cột ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs > * + *::before { content: "\203A"; margin: 0 8px; color: #98a2b3; }
.crumbs a { color: var(--blue); display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs a:hover { text-decoration: underline; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 14px; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.25; color: var(--blue-dark); font-weight: 800; padding-left: 14px; border-left: 5px solid var(--red); }
.page-lead { flex-basis: 100%; margin: 0; color: #475467; font-size: 16px; max-width: 70ch; }
.page-search { display: flex; align-items: center; width: min(360px, 100%); background: #fff; border: 1px solid #cfdaea; border-radius: 10px; overflow: hidden; }
.page-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.page-search input { border: 0; border-radius: 0; padding: 0 12px; height: 46px; font-size: 16px; min-width: 0; flex: 1; background: transparent; }
.page-search input:focus { outline: none; }
.page-search button { width: 48px; height: 46px; border: 0; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.page-search button .ico { width: 22px; height: 22px; }
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-bottom: 16px; }
.result-bar { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fafd; color: #475467; font-size: 15px; }
.result-bar strong { color: var(--blue-dark); }
.result-bar a { color: var(--blue); font-weight: 600; margin-left: 6px; text-decoration: underline; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; color: var(--muted); }
.empty-state .ico { width: 40px; height: 40px; color: #98a2b3; }
.empty-state p { margin: 0; max-width: 42ch; font-size: 15px; }
.pager { padding: 14px 16px; border-top: 1px solid var(--line); }
.pager .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-link { min-width: var(--tap); height: var(--tap); padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfdaea; border-radius: 8px; background: #fff; color: var(--blue-dark); font-weight: 600; font-size: 16px; }
.pager a.page-link:hover { border-color: var(--blue); color: var(--blue); }
.pager .page-link.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .page-link.disabled { color: #b8c2d0; background: #f8fafd; }

/* Chip chuyên mục: thanh lọc, cuộn ngang trên điện thoại */
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --cc: var(--blue); --cb: var(--blue-soft); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid #cfdaea; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.chip .ico { color: var(--ct, var(--cc)); }
@media (hover: hover) and (pointer: fine) {
    .chip:hover { color: var(--text); border-color: var(--cc); background: var(--cb); transition-duration: var(--dur-press); }
    .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
        .btn-dl:hover { background: var(--blue); color: #fff; border-color: var(--blue); transition-duration: var(--dur-press); }
}
.chip.is-active { background: var(--cc); border-color: var(--cc); color: #fff; }
.chip.is-active .ico { color: #fff; }
.chip:active, .btn-ghost:active, .btn-solid:active, .btn-dl:active { scale: var(--press-scale); transition-duration: var(--dur-press); }

.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.rank-list li { counter-increment: rank; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px dashed var(--line); }
.rank-list li:first-child { border-top: 0; padding-top: 2px; }
.rank-list li::before { content: counter(rank); font-weight: 800; font-size: 20px; line-height: 1.2; color: #c4cfde; }
.rank-list li:nth-child(-n+3)::before { color: var(--red); }
.rank-list a { font-size: 15px; line-height: 1.45; color: var(--blue-dark); font-weight: 500; }
.rank-list a:hover { color: var(--red); }

/* ===== Chi tiết bài viết ===== */
.article { padding: 24px 28px 0; }
.article-head .tag { display: inline-block; font-size: 13px; padding: 3px 12px; }
.article-head h1 { font-size: 30px; line-height: 1.3; color: var(--blue-dark); margin: 12px 0 10px; max-width: 30ch; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-lead { font-size: 18px; line-height: 1.65; font-weight: 600; color: #344054; margin: 18px 0 0; max-width: 68ch; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--text); max-width: 68ch; }
.article-body p { margin: 16px 0 0; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px -28px 0; padding: 14px 28px; background: #f8fafd; border-top: 1px solid var(--line); }
.article-source { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; color: #475467; }
.article-source > .ico { color: var(--blue); margin-top: 3px; }
.article-source a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-source a .ico { width: 15px; height: 15px; margin-left: 4px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #cfdaea; background: #fff; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.related .panel-head a { font-size: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid .news-item:nth-child(odd) { border-right: 1px solid var(--line); }
.related-grid .news-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* ===== Tủ sách: văn bản ===== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; }
.field-inline { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: #475467; min-width: 150px; }
.field-inline select, .field-inline input { height: 46px; font-size: 16px; border: 1px solid #cfdaea; border-radius: 8px; padding: 0 12px; background: #fff; color: var(--text); font-family: inherit; }
.field-inline select:focus, .field-inline input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field-grow { flex: 1 1 240px; }
.filter-actions { display: flex; gap: 8px; }
.btn-solid { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.btn-solid:hover { background: var(--blue-dark); }
.filter-actions .btn-ghost { min-height: 46px; }

.doc-rows { list-style: none; margin: 0; padding: 0; }
.doc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .doc-ico { height: 46px; width: 40px; }
.doc-kind { font-size: 14px; color: #475467; }
.doc-type { display: inline-block; background: #fdecea; color: #b42318; font-weight: 700; font-size: 13px; padding: 1px 10px; border-radius: 999px; margin-right: 2px; }
.doc-kind strong { color: var(--text); }
.doc-main h3 { font-size: 16.5px; line-height: 1.45; margin: 4px 0 6px; color: var(--blue-dark); font-weight: 600; }
.doc-dates { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--muted); }
.doc-eff.is-upcoming { color: #8a5a00; background: #fff6dd; padding: 0 8px; border-radius: 6px; font-weight: 600; }
.btn-dl { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700; white-space: nowrap; border: 1px solid #c9dcf5; transition: background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.doc-nofile { font-size: 14px; color: #98a2b3; white-space: nowrap; }
.doc-focus { background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 16px; overflow: hidden; }
.doc-focus .doc-row { background: #fffbeb; }
.doc-focus .doc-row:focus { outline: none; }

/* ===== Responsive ===== */
/* Khung nội dung tối đa 1240px: menu 9 mục + ô tìm kiếm đầy đủ không vừa ở mọi độ rộng màn hình → luôn thu gọn ô tìm kiếm */
@media (min-width: 1280px) {
    .nav-menu a { padding: 0 8px; gap: 6px; }
    /* Ô tìm kiếm thu thành nút kính lúp, bấm vào mới mở ra */
    .nav-search { position: relative; width: var(--tap); background: transparent; overflow: visible; }
    .nav-search button { color: #fff; }
    .nav-search input { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: 260px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
        opacity: 0; translate: 8px 0; pointer-events: none;
        transition: opacity var(--dur-fast) var(--ease-in), translate var(--dur-fast) var(--ease-in); }
    .nav-search:focus-within input { opacity: 1; translate: 0 0; pointer-events: auto;
        transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
}

@media (max-width: 1280px) {
    .banner-badge { display: none; }
}

@media (max-width: 1180px) {
    .page-cols { grid-template-columns: minmax(0, 1fr) 280px; }
    .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .col-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1279px) {
    /* Menu chuyển sang dạng thả xuống, đè lên nội dung bên dưới */
    .nav-toggle { display: inline-flex; }
    .nav-search { margin-left: auto; width: min(280px, 52vw); }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; max-height: calc(100dvh - 56px); overflow-y: auto;
        padding: 4px max(16px, (100% - var(--container)) / 2 + 16px) 12px; background: var(--blue); box-shadow: 0 12px 24px rgba(8, 40, 90, .3);
        opacity: 0; translate: 0 -8px; visibility: hidden;
        transition: opacity var(--dur-fast) var(--ease-in), translate var(--dur-fast) var(--ease-in), visibility 0s linear var(--dur-fast); }
    .nav-menu.is-open { opacity: 1; translate: 0 0; visibility: visible;
        transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out), visibility 0s; }
    .nav-menu a { height: 52px; padding: 0 12px; border-top: 1px solid rgba(255,255,255,.14); font-size: 17px; }
    .nav-menu li:first-child a { border-top: 0; }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .page-cols { grid-template-columns: 1fr; }
    .page-cols .col-side { display: grid; grid-template-columns: 1fr 1fr; }
    .brand-title { white-space: normal; }
}

@media (max-width: 760px) {
    .banner-inner { min-height: 0; padding-top: 12px; padding-bottom: 18px; }
    .banner-flag { width: 74px; height: 44px; padding: 4px 8px; }
    .banner-flag svg { width: 22px; height: 22px; }
    .brand { gap: 12px; padding-right: 34px; }
    .emblem { width: 56px; height: 56px; }
    .brand-org { font-size: 16px; }
    .brand-title { font-size: 19px; line-height: 1.25; }
    .brand-slogan { font-family: var(--font); font-style: italic; font-size: 15px; line-height: 1.4; }
    .site-main { padding-top: 14px; }
    .slider { min-height: 240px; }
    .slide { padding: 20px 20px 52px; }
    .slide-title { font-size: 36px; }
    .slide-sub { font-size: 27px; margin-left: 20px; }
    .slide-line { margin-left: 0; font-size: 15px; padding: 6px 12px; }
    .slider-btn { display: none; }
    .topic-card { padding: 20px 18px; }
    .topic-title { font-size: 19px; }
    .topic-art { width: 92px; height: 92px; right: -16px; bottom: -18px; }
    .topic-art-ico { width: 42px; height: 42px; }
    .topic-card p { max-width: 100%; }
    .btn-pill { margin-right: 70px; }
    /* Chuyên mục: vuốt ngang, lộ một phần thẻ kế tiếp để thấy là vuốt được */
    .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
    .cat-grid::-webkit-scrollbar { display: none; }
    .cat-grid li { flex: 0 0 calc((100% - 20px) / 2.4); scroll-snap-align: start; }
    .cat-ico { width: 52px; height: 52px; border-radius: 14px; }
    .cat-ico .ico { width: 28px; height: 28px; }
    .home-cols { grid-template-columns: 1fr; }
    .col-side { display: flex; }
    .news-item { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
    .news-thumb .ico { width: 32px; height: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    /* Trang con */
    .page-head h1 { font-size: 23px; }
    .page-search { width: 100%; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .page-cols .col-side { display: flex; }
    .article { padding: 18px 16px 0; }
    .article-head h1 { font-size: 23px; }
    .article-lead { font-size: 17px; }
    .article-foot { margin: 20px -16px 0; padding: 12px 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .related-grid .news-item:nth-child(odd) { border-right: 0; }
    .related-grid .news-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
    .field-inline { flex: 1 1 calc(50% - 6px); min-width: 0; }
    .field-grow { flex-basis: 100%; }
    .filter-actions { flex-basis: 100%; }
    .filter-actions .btn-solid { flex: 1; justify-content: center; }
    .doc-row { grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 12px; }
    .doc-row .doc-ico { width: 36px; height: 42px; }
    .doc-act { grid-column: 2; }
}

@media (max-width: 399px) {
    .brand-slogan { display: none; }
}

@media (max-width: 359px) {
    .nav-toggle span { display: none; }
    .brand-title { font-size: 17px; }
    .news-item { grid-template-columns: 1fr; }
    .news-thumb { display: none; }
}

/* ===== Biểu mẫu (hỏi - đáp, liên hệ) ===== */
.page-lead a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-card { padding: 18px; }
.form-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; line-height: 1.35; color: var(--blue-dark); }
.form-card h2 .ico { width: 24px; height: 24px; color: var(--blue); }
.form-note { margin: 0 0 14px; color: #475467; font-size: 15px; }
.form-card .field { margin-bottom: 14px; }
.form-card .field > span { font-size: 15px; color: #344054; margin-bottom: 6px; }
.form-card .field > span small { font-size: 14px; font-weight: 400; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid #cfdaea; border-radius: 8px; padding: 10px 12px; }
.form-card textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form-card .field-error { font-size: 15px; font-weight: 600; }
.form-card .field:has(.field-error) :is(input, select, textarea) { border-color: #b42318; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-card .btn-solid { width: 100%; justify-content: center; height: 50px; font-size: 17px; }
.form-privacy { display: flex; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.form-privacy .ico { flex: none; margin-top: 3px; color: var(--c-green-text); }

/* ===== Hỏi - đáp: accordion ===== */
.qa-list { list-style: none; margin: 0; padding: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: 0; }
.qa summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; align-items: start; padding: 16px; cursor: pointer; list-style: none; transition: background-color var(--dur-fast) var(--ease-out); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: #f8fafd; transition-duration: var(--dur-press); }
.qa-title { display: block; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--blue-dark); margin-top: 6px; }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.qa-chev { width: 28px; height: 28px; margin-top: 4px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; transition: rotate var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.qa-chev .ico { width: 18px; height: 18px; }
.qa[open] .qa-chev { rotate: 90deg; background: var(--blue); color: #fff; }
.qa[open] summary { background: #f8fafd; }
.qa-body { padding: 0 16px 18px; max-width: 72ch; }
.qa[open] .qa-body { animation: qa-in var(--dur-base) var(--ease-out); }
@keyframes qa-in { from { opacity: 0; translate: 0 -6px; } }
.qa-ask { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--bg); color: #344054; font-size: 16px; }
.qa-ask strong { color: var(--text); }
.qa-answer { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--c-green); }
.qa-answer h3 { margin: 0; font-size: 15px; color: var(--c-green-text); }
.qa-answer p { margin: 8px 0 0; font-size: 17px; line-height: 1.75; }
.qa-side { position: sticky; top: 70px; }

/* ===== Hòa giải ở cơ sở ===== */
.prose { font-size: 17px; line-height: 1.75; max-width: 70ch; }
.prose p { margin: 0 0 12px; }
.section-card { padding: 20px 22px; margin-bottom: 16px; }
.section-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 21px; line-height: 1.35; color: var(--blue-dark); }
.section-card > h2 .ico { width: 26px; height: 26px; color: var(--blue); }
.basis { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.scope { border-radius: 10px; padding: 14px 16px; background: var(--cb); border: 1px solid color-mix(in srgb, var(--cc) 25%, transparent); }
.scope h3 { margin: 0 0 8px; font-size: 17px; color: var(--ct); }
.scope ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.scope li + li { margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--c-green); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--c-green) 30%, transparent); }
.steps h3 { margin: 8px 0 4px; font-size: 18px; line-height: 1.4; color: var(--text); }
.steps p { margin: 0; font-size: 16px; line-height: 1.65; color: #344054; }
.principles { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.65; }
.principles li + li { margin-top: 6px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: #fff7e0; border: 1px solid #f5e1a8; color: #5c3d00; font-size: 16px; margin-bottom: 16px; }
.notice .ico { width: 24px; height: 24px; flex: none; color: #a34b00; }
.notice p { margin: 0; }

/* ===== Giới thiệu ===== */
.about-lead { font-size: 19px; line-height: 1.7; color: #344054; margin: 0 0 16px; max-width: 64ch; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--blue-soft); font-size: 16px; line-height: 1.5; }
.task-list .ico { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--blue); }
.source-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 15px; color: #475467; }
.source-note .ico { color: var(--blue); margin-top: 3px; }
.source-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about-cats { margin-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ===== Liên hệ ===== */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-ico .ico { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 14px; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 16px; font-weight: 600; color: var(--blue-dark); overflow-wrap: anywhere; }
.contact-list a { display: inline-flex; min-height: var(--tap); align-items: center; }
.contact-list a:hover { color: var(--red); text-decoration: underline; }
.contact-list .is-big { font-size: 21px; font-weight: 800; }

/* ===== Trắc nghiệm ===== */
.quiz { padding: 20px 22px; max-width: 760px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.quiz-top strong { color: var(--blue-dark); font-size: 16px; }
.quiz-bar { height: 8px; border-radius: 99px; background: var(--c-pink-bg); overflow: hidden; margin: 8px 0 18px; }
.quiz-bar span { display: block; height: 100%; background: var(--c-pink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--dur-base) var(--ease-out); }
.quiz-q { margin: 0 0 16px; font-size: 21px; line-height: 1.45; color: var(--text); }
.quiz-q:focus { outline: none; }
.quiz-opts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border: 2px solid #cfdaea; border-radius: 12px; background: #fff; font-size: 17px; line-height: 1.45; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #cfdaea; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.opt:active { scale: .99; transition-duration: var(--dur-press); }
.opt:has(input:focus-visible) { outline: 3px solid #ffb703; outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt:has(input:checked) .opt-key { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .opt:hover { border-color: #9db7da; transition-duration: var(--dur-press); }
}
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.quiz-nav .btn-solid { height: 50px; font-size: 17px; }
.quiz-nav .btn-solid:disabled { background: #98a2b3; cursor: not-allowed; }
.quiz-nav .btn-ghost { min-height: 50px; }
.quiz-step { animation: quiz-in var(--dur-base) var(--ease-out); }
@keyframes quiz-in { from { opacity: 0; translate: 0 8px; } }
.quiz-result { text-align: center; padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.quiz-score { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; color: var(--c-pink-text); line-height: 1; }
.quiz-score b { font-size: 64px; }
.quiz-score span { font-size: 28px; color: var(--muted); }
.quiz-result h2 { margin: 10px 0 6px; font-size: 22px; color: var(--blue-dark); }
.quiz-result p { margin: 0 auto 14px; max-width: 46ch; color: #475467; }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.review > li { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); border-left: 5px solid var(--c-green); }
.review > li.is-wrong { border-left-color: var(--red); }
.review h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.review h3 small { display: block; font-size: 14px; font-weight: 700; color: var(--c-green-text); }
.review .is-wrong h3 small { color: #b42318; }
.review-ans { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.review-ans li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; color: #475467; }
.review-ans li::before { content: ""; width: 18px; flex: none; }
.review-ans .is-correct { color: var(--c-green-text); font-weight: 700; }
.review-ans .is-correct::before { content: "\2713"; }
.review-ans .is-picked:not(.is-correct) { color: #b42318; text-decoration: line-through; }
.review-ans .is-picked:not(.is-correct)::before { content: "\2717"; text-decoration: none; }
.review p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; }
.review .basis { font-size: 14px; }
.quiz-state { text-align: center; padding: 28px 10px; color: var(--muted); }

@media (max-width: 760px) {
    .form-row { grid-template-columns: 1fr; }
    .qa summary { padding: 14px 12px; }
    .qa-body { padding: 0 12px 16px; }
    .qa-side { position: static; }
    .section-card { padding: 16px; }
    .section-card > h2 { font-size: 19px; }
    .scope-grid, .task-list { grid-template-columns: 1fr; }
    .about-lead { font-size: 17px; }
    .page-cols > * { min-width: 0; }
    .contact-cols > aside { order: -1; }   /* điện thoại, địa chỉ lên trước form */
    .cat-grid.about-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; overflow: visible; }
    .quiz { padding: 16px; }
    .quiz-q { font-size: 19px; }
    .quiz-nav .btn-solid { flex: 1; justify-content: center; }
}

/* Giảm chuyển động: mọi token thời lượng về 0, bỏ dịch chuyển; trạng thái cuối vẫn hiện đúng */
@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-press: 0ms; --dur-fast: 0ms; --dur-base: 0ms; --dur-reveal: 0ms; --dur-slide: 0ms;
        --press-scale: 1; --lift: 0px; --rise: 0px; --stagger: 0ms;
    }
}
