/*
Theme Name: VietSCI Editing (AcadEdit)
Theme URI: https://vietscies.com/
Author: VietSCI Editing Services
Author URI: https://vietscies.com/
Description: Theme tiếng Việt chuẩn SEO cho website dịch vụ biên tập, dịch thuật, phân tích trắc lượng thư mục và hỗ trợ xuất bản học thuật - Sản phẩm của VietSCI Editing Services. Dùng kèm plugin AcadEdit Core.
Version: 1.5.1
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: acadedit
Tags: business, education, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Thiết kế: biến màu theo nhận diện thương hiệu VietSCI
   ========================================================================== */
:root {
	--brand: #1800ad;          /* Xanh VietSCI */
	--brand-700: #13008c;
	--brand-900: #0c0561;      /* Nền tối */
	--brand-950: #070339;
	--brand-50: #f1efff;
	--brand-100: #e3dfff;
	--accent: #ff6600;         /* Cam VietSCI */
	--accent-600: #e85a00;
	--coral: #ff572e;
	--accent-50: #fff3ea;
	--ink: #16133d;            /* Màu tiêu đề */
	--text: #2b2a3d;
	--muted: #6b6a80;
	--line: #e6e5f0;
	--bg: #ffffff;
	--bg-alt: #f7f7fc;
	--green: #14804a;
	--green-50: #ecfdf3;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(22,19,61,.06);
	--shadow: 0 1px 3px rgba(22,19,61,.06), 0 8px 24px rgba(22,19,61,.06);
	--shadow-lg: 0 18px 50px rgba(12,5,97,.16);
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 700; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(255,102,0,.55); outline-offset: 2px; border-radius: 4px; }
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.container--narrow { max-width: 880px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow-lg); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ==========================================================================
   2. Nút
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s; font-family: inherit; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; box-shadow: 0 8px 20px rgba(255,102,0,.28); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--light:hover { background: #fff; color: var(--brand-900); }
.btn--lg { min-height: 52px; padding: 13px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ==========================================================================
   3. Thanh trên cùng & header (nền trắng - nổi bật logo)
   ========================================================================== */
.topbar { background: var(--brand-900); color: #d8d6f5; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #e9e8fb; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__contact, .topbar__links { display: flex; gap: 22px; align-items: center; }
.topbar__account { font-weight: 600; color: #fff !important; }

/* Không dùng backdrop-filter/transform ở đây: chúng làm menu di động (position: fixed) bị giới hạn trong thanh đầu trang. */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12,5,97,.08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 46px; width: auto; }
.custom-logo { max-height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__list { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: block; padding: 26px 13px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; }
.nav__list > li > a::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a, .nav__list > .current_page_parent > a { color: var(--brand); }
.nav__list > li > a:hover::before, .nav__list > .current-menu-item > a::before, .nav__list > .current-menu-ancestor > a::before { transform: scaleX(1); }
.nav__list > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-left: 8px; }
.sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: -10px; min-width: 340px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.sub-menu a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.sub-menu a:hover { background: var(--brand-50); color: var(--brand); }
.nav__list > li:hover > .sub-menu, .nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.submenu-toggle { display: none; }
.nav__cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle__close { display: none; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero { position: relative; color: #fff; overflow: hidden; background:
	radial-gradient(900px 420px at 88% 0%, rgba(255,102,0,.20), transparent 60%),
	radial-gradient(700px 500px at 0% 100%, rgba(255,255,255,.07), transparent 60%),
	linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--coral)); }
.hero__slides { position: relative; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; min-height: 480px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd2b3; background: rgba(255,102,0,.16); border: 1px solid rgba(255,102,0,.35); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero__title { font-size: clamp(30px, 4.2vw, 48px); color: #fff; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.15; }
.hero__lead { font-size: 18px; color: #dcdaf7; max-width: 620px; }
.hero__promo { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); border-radius: 12px; padding: 12px 16px; display: inline-block; font-size: 15px; color: #fff; }
.promo-code { background: #fff; color: var(--brand); font-weight: 800; letter-spacing: .08em; padding: 3px 10px; font-family: ui-monospace, monospace; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.hero__art--icon { color: rgba(255,255,255,.16); }
.hero__art--icon svg { filter: none; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.hero__nav:hover { background: rgba(255,255,255,.2); }
.hero__nav--prev { left: 16px; }
.hero__nav--prev svg { transform: rotate(180deg); }
.hero__nav--next { right: 16px; }
.hero__dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.hero__dots button[aria-current="true"] { width: 28px; background: var(--accent); }

/* ==========================================================================
   5. Khối chung
   ========================================================================== */
.section { padding-top: 80px; padding-bottom: 80px; }
.section--tight { padding-top: 44px; padding-bottom: 44px; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(26px, 3vw, 36px); text-align: center; margin-bottom: 40px; }
.section__title::after { content: ""; display: block; width: 56px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--coral)); border-radius: 2px; margin: 14px auto 0; }
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }
.intro { text-align: center; padding-top: 56px; max-width: 900px; font-size: 17px; }
.intro__q { font-size: 20px; color: var(--ink); font-weight: 700; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card__title { font-size: 19px; margin-bottom: 14px; }
.card--hl { border-color: rgba(255,102,0,.4); background: linear-gradient(180deg, #fff, var(--accent-50)); }
.card--center { text-align: center; }
.card--sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.list-check { list-style: none; padding: 0 !important; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314804a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ==========================================================================
   6. Dịch vụ
   ========================================================================== */
.tabs__list { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs__list [role="tab"] { background: #fff; border: 1px solid var(--line); padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 999px; white-space: nowrap; transition: all .15s; }
.tabs__list [role="tab"]:hover { color: var(--brand); border-color: var(--brand-100); }
.tabs__list [role="tab"][aria-selected="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.svc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.svc-card__badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.svc-card__badge--static { position: static; display: inline-block; margin-bottom: 14px; }
.svc-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card__title { font-size: 19px; margin-bottom: 10px; }
.svc-card__title a { color: var(--ink); text-decoration: none; }
.svc-card__title a:hover { color: var(--brand); }
.svc-card__desc { color: #4f4e63; font-size: 15px; flex: 1; }
.svc-card__price { font-size: 15px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 16px; }
.svc-card__price strong { color: var(--brand); font-size: 22px; }
.svc-card__price del { color: #9ca3af; margin-left: 6px; }
.svc-card__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.svc-card__actions .btn { min-width: 0; padding: 8px 10px; font-size: 14px; min-height: 42px; white-space: normal; text-align: center; line-height: 1.25; }
.services__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

.scorer-band { background: var(--accent-50); border-top: 1px solid #ffe0cc; border-bottom: 1px solid #ffe0cc; padding: 40px 0; }
.scorer-band__inner { display: flex; align-items: center; gap: 28px; }
.scorer-band__inner > div:nth-child(2) { flex: 1; }
.scorer-band h2 { font-size: 24px; margin-bottom: 6px; }
.scorer-band p { margin: 0; }
.scorer-band__icon { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); flex: none; box-shadow: var(--shadow); }

/* ==========================================================================
   7. Cách làm việc, chính sách, đánh giá, quy trình
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item { padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.why__icon { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.why__item h3 { font-size: 18px; }
.why__item p { color: #4f4e63; font-size: 15px; margin: 0; }

.stats-band { background: linear-gradient(135deg, var(--brand-900), var(--brand)); color: #fff; padding: 48px 0; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band strong { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #ffb27a; line-height: 1.25; }
.stats-band span { color: #d8d6f5; font-size: 15px; }

.testimonials { background: var(--bg-alt); }
.tst { position: relative; max-width: 860px; margin: 0 auto; min-height: 280px; padding-bottom: 44px; }
.tst__item { margin: 0; position: absolute; inset: 0 0 44px; opacity: 0; visibility: hidden; transition: opacity .5s; background: #fff; border-radius: var(--radius); padding: 40px 48px; box-shadow: var(--shadow); text-align: center; }
.tst__item.is-active { position: relative; inset: auto; opacity: 1; visibility: visible; }
.tst__quote { color: var(--accent); }
.tst__stars { color: #f59e0b; font-size: 20px; letter-spacing: 2px; margin: 0 0 8px; }
.tst blockquote { margin: 0 0 20px; font-size: 18px; font-style: italic; color: #3b3a50; }
.tst figcaption strong { display: block; color: var(--ink); font-size: 17px; }
.tst figcaption span { display: block; color: var(--muted); font-size: 14px; }
.tst .hero__dots { bottom: 0; }
.tst .hero__dots button { background: #cfcde6; }
.tst .hero__dots button[aria-current="true"] { background: var(--accent); }

.how__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.how__steps li { text-align: center; position: relative; padding: 0 6px; }
.how__steps li::after { content: ""; position: absolute; top: 76px; right: -16px; width: 10px; height: 10px; border: solid var(--accent); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.how__steps li:last-child::after { display: none; }
.how__num { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.how__steps svg { display: block; margin: 0 auto 12px; color: var(--accent); width: 60px; height: 60px; padding: 12px; border-radius: 50%; background: var(--accent-50); box-sizing: content-box; }
.how__steps p { font-size: 15px; color: #3b3a50; }

.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.faq-blog { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.faq__item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.faq__item[open] summary::after { content: "-"; background: var(--brand); color: #fff; }
.faq__item summary h2 { display: inline; font-size: 17px; margin: 0; }
.faq__item p { padding: 0 20px 18px; margin: 0; color: #4f4e63; }
.post-mini { list-style: none; margin: 0; padding: 0; }
.post-mini li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-mini a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.post-mini a:hover { color: var(--brand); }
.post-mini time { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   8. Trang con
   ========================================================================== */
.page-hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%); color: #fff; padding: 30px 0 52px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,102,0,.25), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 12px; }
.page-hero__lead, .page-hero__lead p { color: #dcdaf7; font-size: 17px; max-width: 780px; }
.page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero__price { font-size: 17px; color: #dcdaf7; }
.page-hero__price strong { color: #fff; font-size: 26px; }
.page-hero__price del { opacity: .7; }
.page-hero__row { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.page-hero__icon { color: rgba(255,255,255,.18); flex: none; }
.page-hero__icon svg { width: 170px; height: 170px; }
.page-hero .post-card__meta { color: #c9c6f0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 14px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: inherit; opacity: .85; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.page-hero .breadcrumbs { color: #c9c6f0; }

/* Trang cổng (đăng nhập, đặt hàng, tài khoản…) */
.portal-main { background: var(--bg-alt); min-height: 60vh; }
.portal-main .breadcrumbs { color: var(--muted); margin-bottom: 18px; }
.portal-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 26px; }
.is-portal .cta-band, .is-portal .quick-contact { display: none; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.sidebar > .card { margin-bottom: 24px; }
/* Cột bên kéo dài bằng nội dung chính để khung 'card--sticky' bám theo khi cuộn. */
.layout-sidebar > .sidebar { align-self: stretch; display: flex; flex-direction: column; }
/* Khung bám luôn nằm cuối cột: không khung nào khác trượt đè lên khi cuộn. */
@media (min-width: 1081px) { .sidebar > .card--sticky { order: 99; z-index: 2; } }
.admin-bar .card--sticky { top: calc(var(--header-h) + 52px); }

/* Nội dung bài viết / trang */
.entry__content { font-size: 17.5px; line-height: 1.8; color: #2f2e44; }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .7em; padding-top: .2em; }
.entry__content h3 { font-size: 21px; margin: 1.5em 0 .6em; }
.entry__content .lead { font-size: 19.5px; color: var(--ink); line-height: 1.7; }
.entry__content ul, .entry__content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry__content li { margin-bottom: 8px; }
.entry__content li::marker { color: var(--accent); }
.entry__content img { border-radius: 12px; }
.entry__content figure { margin: 2em 0; }
.entry__content figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.entry__content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.entry__content blockquote { border-left: 4px solid var(--accent); margin: 1.6em 0; padding: 6px 22px; color: #3b3a50; font-style: italic; background: var(--accent-50); border-radius: 0 10px 10px 0; }
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry__content thead th { background: var(--brand); color: #fff; font-weight: 600; }
.entry__content tbody tr:nth-child(even) { background: var(--bg-alt); }
.entry__content a { font-weight: 500; }
.entry__thumb { margin: 0 0 32px; }
.entry__thumb img { border-radius: var(--radius); display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.entry__footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.tags a { display: inline-block; background: var(--brand-50); color: var(--brand); padding: 4px 12px; border-radius: 999px; font-size: 13.5px; text-decoration: none; margin: 0 4px 6px 0; }
.tags a:hover { background: var(--brand); color: #fff; }

/* Khối đặc biệt trong bài viết */
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 0 2em; font-size: 16px; }
.toc strong { display: block; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }
.toc a { text-decoration: none; }
.key-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 18px 22px; margin: 1.8em 0; }
.key-box strong:first-child { color: var(--brand); }
.key-box p:last-child, .key-box ul:last-child { margin-bottom: 0; }
.keywords { font-size: 14px; color: var(--muted); }
.integrity-note { border-left: 4px solid var(--green); background: var(--green-50); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 15px; margin: 24px 0; line-height: 1.7; }
.integrity-note strong { color: #0f5132; }

.table-wrap { overflow-x: auto; margin-bottom: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; }
.price-table tbody th a { font-weight: 600; color: var(--ink); text-decoration: none; }
.price-table tbody th a:hover { color: var(--brand); }
.price-table tbody th small { display: block; color: var(--muted); font-weight: 400; }
.price-table tbody tr:hover { background: #fbfbfe; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.compare__col--hl { border: 2px solid var(--brand); }

/* Bảng gói dịch vụ (VD: phân tích trắc lượng thư mục) */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 1.6em 0; }
.pkg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.pkg--hl { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.pkg__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pkg h3 { font-size: 19px; margin: 0 0 6px; }
.pkg__price { font-size: 28px; font-weight: 800; color: var(--brand); line-height: 1.2; margin: 6px 0 4px; }
.pkg__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.pkg ul { list-style: none; padding: 0 !important; margin: 0 0 18px; font-size: 15px; flex: 1; }
.pkg li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.55; }
.pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pkg .btn { width: 100%; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.contact-cards .card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); text-align: center; align-items: center; margin: 0; transition: border-color .15s, transform .15s; }
.contact-cards a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.contact-cards svg { color: var(--accent); }
.contact-cards strong { color: var(--ink); }
.contact-cards span { overflow-wrap: anywhere; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--brand-50); }
.post-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.post-card__title { font-size: 19px; line-height: 1.35; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brand); }
.post-card__body > p { color: #4f4e63; font-size: 15px; }
.post-card__more { margin-top: auto; font-weight: 600; text-decoration: none; }
.pagination, .nav-links { display: flex; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); text-align: center; background: #fff; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.post-navigation { margin-top: 36px; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; text-decoration: none; font-weight: 600; max-width: 380px; color: var(--ink); }
.post-navigation span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d3d1e3; border-radius: 10px; font: inherit; }
.search-submit { min-height: 44px; padding: 10px 16px; border: 0; background: var(--brand); color: #fff; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600; }
.widget { margin-bottom: 20px; }
.widget-title { font-size: 18px; }
.notfound { text-align: center; }
.notfound__code { font-size: 120px; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin: 0 0 10px; }
.notfound .search-form { max-width: 480px; margin: 20px auto; }
.notfound__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.comments { margin-top: 40px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; padding: 10px; border: 1px solid #d3d1e3; border-radius: 10px; font: inherit; }

/* Công cụ tự đánh giá ngôn ngữ */
.scorer__label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.scorer textarea { width: 100%; padding: 14px; border: 1px solid #d3d1e3; border-radius: 12px; font: inherit; font-size: 15px; resize: vertical; }
.scorer textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24,0,173,.15); }
.scorer__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.scorer__score { display: flex; gap: 28px; align-items: center; margin-bottom: 24px; }
.scorer__ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), #e8e7f2 0); }
.scorer__ring strong { font-size: 40px; color: var(--ink); line-height: 1; }
.scorer__ring span { color: var(--muted); font-size: 14px; }
.scorer__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.scorer__metric { background: var(--bg-alt); border-radius: 10px; padding: 14px; }
.scorer__metric span { display: block; font-size: 13px; color: var(--muted); }
.scorer__metric strong { font-size: 20px; color: var(--ink); }

/* ==========================================================================
   9. CTA, chân trang, liên hệ nhanh, cookie
   ========================================================================== */
.cta-band { background: linear-gradient(90deg, var(--accent), var(--coral)); color: #fff; padding: 44px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.cta-band p { margin: 0; color: #fff4ec; }
.cta-band .btn--primary { background: var(--brand-900); }
.cta-band .btn--primary:hover { background: var(--brand-950); box-shadow: none; }

.site-footer { background: var(--brand-950); color: #b9b6dc; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.25fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; line-height: 0; }
.footer__logo img { height: 42px; width: auto; }
.footer__about p { margin: 16px 0; }
.footer__product { color: #fff; font-weight: 600; margin-bottom: 0 !important; }
.footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer__contact svg { color: var(--accent); flex: none; margin-top: 3px; }
.site-footer a { color: #dcdaf7; text-decoration: none; }
.site-footer a:hover { color: #ffb27a; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer__legal p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__bct { border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 6px 12px; font-size: 13px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 14px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 90; }
.to-top svg { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); color: #fff; }
.quick-contact { position: fixed; right: 20px; bottom: 78px; display: flex; flex-direction: column; gap: 10px; z-index: 95; }
.quick-contact__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.18); font-weight: 800; font-size: 12.5px; transition: transform .15s; }
.quick-contact__btn:hover { transform: scale(1.08); color: #fff; }
.quick-contact__btn--zalo { background: #0068ff; }
.quick-contact__btn--wa { background: #25d366; }
.quick-contact__btn--call { background: var(--accent); }
.cookie-bar { position: fixed; left: 20px; bottom: 20px; max-width: 520px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 120; display: flex; gap: 16px; align-items: center; font-size: 14px; line-height: 1.55; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar .btn { flex: none; min-height: 40px; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (min-width: 1081px) {
	.hero__inner { padding-left: 64px; padding-right: 64px; }
}
@media (max-width: 1240px) {
	.nav__list > li > a { padding: 26px 9px; font-size: 14.5px; }
	.nav__list > li > a::before { left: 9px; right: 9px; }
	.brand img { height: 40px; }
}
@media (max-width: 1100px) {
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.why__grid { grid-template-columns: 1fr 1fr; }
	.pkg-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 1080px) {
	:root { --header-h: 66px; }
	.nav-toggle { display: block; }
	.nav { position: fixed; top: 104px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 24px 32px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; margin: 0; gap: 0; border-top: 1px solid var(--line); }
	.nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 14px 2px; font-size: 16px; }
	.nav__list > li > a::before, .nav__list > .menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; min-width: 0; background: var(--bg-alt); border: 0; border-radius: 10px; margin: 0 0 10px; }
	.is-open > .sub-menu { display: block; }
	.nav__cta { margin: 20px 0 0; }
	.hero__inner { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 76px; min-height: 0; }
	.hero__art, .hero__nav { display: none; }
	.stats-band__grid { grid-template-columns: 1fr 1fr; }
	.how__steps { grid-template-columns: 1fr 1fr; }
	.how__steps li::after { display: none; }
	.quote__grid, .faq-blog, .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.card--sticky { position: static; }
	.page-hero__icon { display: none; }
	.contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.container { padding-left: 16px; padding-right: 16px; }
	.hide-sm { display: none !important; }
	.topbar__contact, .topbar__links { gap: 14px; }
	.brand img { height: 34px; }
	.section { padding-top: 56px; padding-bottom: 56px; }
	.hero__lead { font-size: 16px; }
	.hero__actions .btn { flex: 1; }
	.why__grid, .stats-band__grid, .how__steps, .compare, .contact-cards { grid-template-columns: 1fr; }
	.svc-grid { grid-template-columns: 1fr; }
	.scorer-band__inner, .cta-band__inner { flex-direction: column; text-align: center; }
	.tst__item { padding: 28px 22px; }
	.tst blockquote { font-size: 16px; }
	.footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.scorer__score { flex-direction: column; text-align: center; }
	.scorer__metrics { grid-template-columns: 1fr 1fr; }
	.entry__content { font-size: 16.5px; }
	.cookie-bar { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; }
	.quick-contact { right: 12px; bottom: 70px; }
	.quick-contact__btn { width: 44px; height: 44px; }
	.to-top { right: 12px; bottom: 14px; }
}

/* ==========================================================================
   11. Bản 1.4 - menu có biểu tượng, lưới dịch vụ cân đối, vùng chạm
   ========================================================================== */
.menu-ico { display: inline-grid; place-items: center; flex: none; color: var(--brand); opacity: .78; transition: opacity .15s, color .15s; }
.menu-ico svg { display: block; }
.nav__list > li > a { display: inline-flex; align-items: center; gap: 7px; }
.nav__list > li > a:hover .menu-ico, .nav__list > .current-menu-item > a .menu-ico, .nav__list > .current-menu-ancestor > a .menu-ico { opacity: 1; color: var(--accent); }
.nav__list > .menu-item-has-children > a::after { margin-left: 2px; transform: rotate(45deg) translate(-2px, -2px); }

/* Menu con: mỗi mục có ô biểu tượng; "Dịch vụ" dạng lưới 2 cột, các menu khác dạng danh sách */
@media (min-width: 1081px) {
	.nav__list .sub-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 300px; min-width: 0; padding: 10px; }
	.nav__list .menu-item--mega > .sub-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 620px; padding: 12px; }
	.sub-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; line-height: 1.35; }
	.sub-menu .menu-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); opacity: 1; }
	.sub-menu a:hover .menu-ico, .sub-menu .current-menu-item .menu-ico { background: var(--brand); color: #fff; }
	.sub-menu .current-menu-item > a { background: var(--brand-50); color: var(--brand); }
}
@media (min-width: 1081px) and (max-width: 1240px) {
	.nav__list > li > a { gap: 5px; padding-left: 7px; padding-right: 7px; }
	.nav__list > li > a::before { left: 7px; right: 7px; }
	.nav__list > li > a > .menu-ico svg { width: 16px; height: 16px; }
}
@media (max-width: 1080px) {
	.nav__list > li > a { display: flex; gap: 12px; }
	.nav__list > li > a > .menu-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); opacity: 1; }
	.sub-menu { padding: 6px; }
	.sub-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
	.sub-menu .menu-ico { opacity: 1; }
}

/* Lưới thẻ dịch vụ: độ rộng thẻ đồng đều; ở trang chủ (tiêu đề căn giữa) hàng cuối thiếu thẻ được căn giữa */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.tabs .svc-grid { justify-content: center; }
.svc-grid > .svc-card { flex: 0 1 calc((100% - 72px) / 4); min-width: 0; }
@media (max-width: 1180px) { .svc-grid > .svc-card { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 900px) { .svc-grid > .svc-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .svc-grid > .svc-card { flex-basis: 100%; } }

/* Chấm chuyển slide: vùng chạm 44px, hình hiển thị giữ nguyên */
.hero__dots { gap: 2px; }
.hero__dots button { position: relative; background-clip: content-box; width: 10px; height: 10px; box-sizing: content-box; padding: 17px 8px; background-color: transparent; }
.hero__dots button::after { content: ""; position: absolute; left: 8px; right: 8px; top: 17px; bottom: 17px; border-radius: 999px; background: rgba(255,255,255,.45); transition: background .2s; }
.hero__dots button[aria-current="true"] { width: 28px; background: transparent; }
.hero__dots button[aria-current="true"]::after { background: var(--accent); }
.tst .hero__dots button { background: transparent; }
.tst .hero__dots button::after { background: #cfcde6; }
.tst .hero__dots button[aria-current="true"]::after { background: var(--accent); }
.hero__dots { bottom: 10px; }
.tst .hero__dots { bottom: -16px; }

/* Chân trang: biểu tượng cho từng liên kết */
.footer__links li { margin-bottom: 8px; }
.footer__links a { display: inline-flex; align-items: flex-start; gap: 11px; padding: 2px 0; transition: color .15s; }
.footer-ico { flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #ff8a3d; transition: background .15s, color .15s, transform .15s; }
.footer-ico svg { display: block; }
.footer__links a:hover .footer-ico, .footer__links a:focus-visible .footer-ico { background: var(--accent); color: #fff; transform: translateX(2px); }
.footer__links .current-menu-item > a .footer-ico { background: var(--accent); color: #fff; }

/* Dấu phân cách " · ": chấm tròn màu thương hiệu, căn giữa dòng chữ */
.sep { display: inline-block; width: 5px; height: 5px; margin: 0 4px; border-radius: 50%; background: var(--accent); font-size: 0; line-height: 0; vertical-align: middle; position: relative; top: -1px; opacity: .85; flex: none; }
.site-footer .sep, .page-hero .sep, .hero .sep { background: #ff8a3d; }
.faq__item[open] summary::after { content: ""; background: var(--brand) linear-gradient(#fff, #fff) center / 12px 2px no-repeat; }
