/* ==========================================================================
   Thành Đô Tuyển sinh – hệ thiết kế
   Màu theo nhận diện Trường Đại học Thành Đô: xanh hoàng gia + vàng cam; nền sáng, điểm nhấn vàng tiết chế.
   Điểm gãy: <600 một cột · 600–899 hai cột · 900–1199 hai/ba cột · ≥1200 lưới đầy đủ.
   ========================================================================== */

:root {
	/* Nhận diện Trường Đại học Thành Đô: xanh hoàng gia #1E439B + vàng cam #FAA21A (logo, thanhdo.edu.vn). */
	--c-bg: #ffffff;
	--c-text: #0f1d3a;
	--c-muted: #4a5670;
	--c-brand: #1e439b;
	--c-brand-dark: #112e73;
	--c-brand-soft: #f3f6fc;
	--c-accent: #faa21a;
	--c-accent-ink: #8a5300;
	--c-ivory: #fbf8f2;
	--c-border: #dce3ee;
	--c-error: #b42318;
	--c-success: #087443;
	--c-warn-bg: #fdf6e6;
	--c-warn-text: #6b4a00;
	--c-info-bg: #eef3fb;
	--c-footer: #0b1f4d;

	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-body: 1rem;
	--fs-lead: clamp(1.0625rem, 0.9rem + 0.4vw, 1.1875rem);
	--fs-h1: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
	--fs-h2: clamp(1.625rem, 1.35rem + 1vw, 2.25rem);
	--fs-h3: 1.1875rem;
	--fs-small: 0.875rem;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;

	--radius: 10px;
	--radius-sm: 8px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(24, 33, 47, .06), 0 4px 16px rgba(24, 33, 47, .06);
	--shadow-hover: 0 2px 4px rgba(24, 33, 47, .08), 0 12px 28px rgba(24, 33, 47, .10);
	--container: 1240px;
	--gutter: 16px;
	--header-h: 64px;
	--focus: 0 0 0 3px #fff, 0 0 0 5px var(--c-brand);
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --header-h: 76px; } }

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-3); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 var(--space-4); }
a { color: var(--c-brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
dl, dd { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
	background: var(--c-brand); color: #fff; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

/* ---------- Nút ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 48px; padding: 10px 20px; border-radius: var(--radius-sm);
	border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.3;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
	text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); color: #fff; }
.btn--secondary { background: var(--c-text); color: #fff; }
.btn--secondary:hover { background: #000; color: #fff; }
.btn--outline { border-color: var(--c-brand); color: var(--c-brand); background: #fff; }
.btn--outline:hover { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.btn--ghost { border-color: var(--c-border); color: var(--c-text); background: #fff; }
.btn--ghost:hover { border-color: var(--c-text); color: var(--c-text); }
.btn--light { background: #fff; color: var(--c-brand); }
.btn--light:hover { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--light:focus-visible, .btn--outline-light:focus-visible { box-shadow: 0 0 0 3px var(--c-brand), 0 0 0 5px #fff; }

.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-group--stack { flex-direction: column; }
.cta-group--stack .btn { width: 100%; }
.cta-note { font-size: var(--fs-small); color: var(--c-muted); margin: var(--space-3) 0 0; max-width: 60ch; }
.consult .cta-note { color: rgba(255, 255, 255, .85); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
	border: 1px solid var(--c-border); background: #fff; cursor: pointer; color: var(--c-text);
}
.icon-btn:hover { border-color: var(--c-text); }
.icon-btn[aria-expanded="true"] { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand); }

/* ---------- Nhãn ---------- */
.badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
	font-size: .8125rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
	background: var(--c-info-bg); color: var(--c-text);
}
.badge .icon { width: 14px; height: 14px; }
.badge--active { background: #e3f4ea; color: var(--c-success); }
.badge--superseded, .badge--expired { background: #eceff3; color: #3d4654; }
.badge--superseded { text-decoration: line-through; text-decoration-thickness: 1px; }
.badge--upcoming { background: var(--c-warn-bg); color: var(--c-warn-text); }
.badge--year { background: var(--c-brand-soft); color: var(--c-brand); }
.badge--pinned { background: var(--c-accent); color: #2b1a00; }

.chips, .tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.chip {
	display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 6px 14px;
	border-radius: 999px; border: 1px solid var(--c-border); background: #fff; color: var(--c-text);
	text-decoration: none; font-size: .9375rem; font-weight: 500; cursor: pointer;
}
a.chip:hover, .chip--radio:hover { border-color: var(--c-brand); color: var(--c-brand); }
.chip__count { font-size: .8125rem; color: var(--c-muted); }
.chip--radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip--radio:has(input:checked) { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.chip--radio:has(input:focus-visible) { box-shadow: var(--focus); }

/* ---------- Header (vùng A) ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--c-border);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .container { max-width: 1400px; }
.site-header__bar { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { flex: none; margin-right: auto; }
.brand__link { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--c-text); min-height: 44px; }
.brand__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
	background: var(--c-brand); color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .02em;
	box-shadow: inset 0 -3px 0 var(--c-accent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand__sub { font-size: .8125rem; color: var(--c-muted); white-space: nowrap; }
@media (max-width: 379px) {
	.site-header__bar { gap: var(--space-2); }
	.brand__link { gap: var(--space-2); }
	.brand__name { white-space: normal; font-size: .9375rem; max-width: 9ch; }
	.brand__sub { display: none; }
	.menu-toggle { padding: 0 10px; }
}
.custom-logo { max-height: 48px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.site-header__cta { display: none; }
@media (min-width: 600px) { .site-header__cta { display: inline-flex; } }

.menu-toggle {
	display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 14px;
	border-radius: var(--radius-sm); border: 1px solid var(--c-text); background: #fff; cursor: pointer;
	font-weight: 600; white-space: nowrap;
}
.menu-toggle .menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] { background: var(--c-text); color: #fff; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

/* Menu dạng thu gọn (< 1024px); từ 1024px menu nằm ở hàng thứ hai của đầu trang. */
.nav-primary {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: 0 16px 32px rgba(24, 33, 47, .12);
	max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
	padding: var(--space-4) var(--gutter) var(--space-5);
}
.nav-primary.is-open { display: block; }
.nav-primary .menu { list-style: none; margin: 0; padding: 0; max-width: var(--container); margin-inline: auto; }
.nav-primary .menu a {
	display: flex; align-items: center; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid var(--c-border);
	color: var(--c-text); text-decoration: none; font-weight: 600;
}
.nav-primary .menu a:hover { color: var(--c-brand); }
.nav-primary .current-menu-item > a, .nav-primary .current-menu-ancestor > a { color: var(--c-brand); }
.nav-primary .sub-menu { list-style: none; padding-left: var(--space-4); margin: 0; }
.nav-primary .sub-menu a { font-weight: 500; }
.nav-primary__mobile-tools { max-width: var(--container); margin: 0 auto var(--space-4); }
.nav-primary__mobile-tools:last-child { margin: var(--space-5) auto 0; }

@media (min-width: 1024px) {
	.menu-toggle, .nav-primary__mobile-tools { display: none !important; }
	.nav-primary {
		display: block; position: static; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; background: none;
	}
	.brand { margin-right: 0; }
	.nav-primary { flex: 1 1 auto; min-width: 0; }
	.nav-primary .menu { display: flex; justify-content: center; gap: 0; }
	.site-header__bar { gap: var(--space-5); }
	.brand__sub { display: none; }
	.nav-primary .menu > li { position: relative; }
	.nav-primary .menu > li > a {
		border: 0; min-height: 44px; padding: 8px 9px; font-size: .875rem; border-radius: var(--radius-sm); white-space: nowrap;
	}
	.nav-primary .menu > li > a:hover { background: var(--c-brand-soft); }
	.nav-primary .menu > .current-menu-item > a, .nav-primary .menu > .current-menu-ancestor > a {
		box-shadow: inset 0 -2px 0 var(--c-brand); border-radius: 0;
	}
	.nav-primary .sub-menu {
		position: absolute; left: 0; top: 100%; min-width: 240px; padding: var(--space-2); background: #fff;
		border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.nav-primary li:hover > .sub-menu, .nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav-primary .sub-menu a { border: 0; border-radius: var(--radius-sm); padding: 8px 12px; }
}

.site-search { border-top: 1px solid var(--c-border); background: var(--c-brand-soft); padding: var(--space-4) 0; }
.search-form { display: flex; gap: var(--space-2); max-width: 720px; }
.site-search .search-form { margin-inline: auto; }
.search-form__input, .major-search__input, .filter input[type="search"], .filter select {
	flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #8c96a3; border-radius: var(--radius-sm); background: #fff;
}
.search-form__input:focus, .major-search__input:focus, .filter input:focus, .filter select:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(30, 67, 155, .2); }
.search-form__submit {
	display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 18px;
	border: 0; border-radius: var(--radius-sm); background: var(--c-brand); color: #fff; font-weight: 600; cursor: pointer;
}
.search-form__submit:hover { background: var(--c-brand-dark); }
@media (max-width: 380px) { .search-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Hero (vùng B) ---------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(1200px 400px at 110% -10%, rgba(250, 162, 26, .16), transparent 60%),
		linear-gradient(180deg, var(--c-brand-soft), #fff);
	padding: var(--space-6) 0 var(--space-7);
}
.hero__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) {
	.hero { padding: var(--space-8) 0; min-height: 440px; }
	.hero__grid { grid-template-columns: 55fr 45fr; gap: var(--space-7); }
}
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4);
	padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border);
	color: var(--c-brand); font-weight: 700; font-size: .9375rem;
}
.hero__title { font-size: var(--fs-h1); margin-bottom: var(--space-3); max-width: 18ch; }
.hero__school { font-weight: 600; color: var(--c-brand); margin-bottom: var(--space-3); }
.hero__text { font-size: var(--fs-lead); color: var(--c-muted); max-width: 52ch; margin-bottom: var(--space-5); }
.hero__links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
@media (max-width: 420px) { .hero__links .btn { flex: 1 1 100%; } }

.major-search { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); max-width: 600px; }
.major-search__label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.major-search__row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.major-search__row .major-search__input { flex: 1 1 220px; }
@media (max-width: 480px) { .major-search__row .btn { flex: 1 1 100%; } }

.hero__picture { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--c-brand-soft); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel {
	position: relative; background: var(--c-brand); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6);
	box-shadow: var(--shadow); overflow: hidden;
}
.hero__panel::after {
	content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
	border: 20px solid var(--c-accent); opacity: .85; pointer-events: none;
}
.hero__panel-title { font-weight: 700; font-size: 1.25rem; margin-bottom: var(--space-4); }
.hero__panel .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero__panel .chip:hover { background: #fff; color: var(--c-brand); }
.hero__panel .chip__count { color: inherit; opacity: .8; }
.hero__panel-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); color: #fff; font-weight: 700; min-height: 44px; }
.hero__panel-link:hover { color: var(--c-accent); }

/* ---------- Lối vào nhanh (vùng C) ---------- */
.quick { margin-top: calc(-1 * var(--space-5)); position: relative; z-index: 2; }
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .quick__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.quick__list a {
	display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 100%; min-height: 88px;
	padding: var(--space-4); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
	box-shadow: var(--shadow); text-decoration: none; color: var(--c-text);
	border-top: 3px solid var(--c-brand); transition: box-shadow .15s, transform .15s;
}
.quick__list a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--c-brand); }
.quick__title { font-weight: 700; line-height: 1.3; }
.quick__desc { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.45; }
@media (max-width: 420px) { .quick__desc { display: none; } .quick__list a { min-height: 64px; } }

/* ---------- Khối/section ---------- */
.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: var(--space-8); } }
.section--tight { padding-block: var(--space-6) var(--space-7); }
.section--tint { background: var(--c-brand-soft); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.section__title { font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.section__lead { color: var(--c-muted); margin: 0; max-width: 60ch; }

.grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .grid { gap: var(--space-5); } }
.grid--majors { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--majors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--majors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--majors:not(.grid--three) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--methods { list-style: none; padding: 0; margin: 0 0 var(--space-4); grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 600px) { .grid--methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--methods { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.grid--duo { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--duo { grid-template-columns: 1fr 1fr; } }
.grid--contact { grid-template-columns: 1fr; margin-bottom: var(--space-6); }
@media (min-width: 600px) { .grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--contact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ---------- Thẻ ---------- */
.card {
	position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border);
	border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #c3cad3; }
.card:has(.card__link:focus-visible) { box-shadow: var(--focus); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.card__eyebrow { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-brand); margin-bottom: var(--space-2); }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.card__link { color: var(--c-text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { box-shadow: none; }
.card:hover .card__link { color: var(--c-brand); }
.card__text { color: var(--c-muted); font-size: .9375rem; margin-bottom: var(--space-4); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: auto 0 0; font-size: var(--fs-small); color: var(--c-muted); }
.card__more { display: inline-flex; align-items: center; gap: 4px; color: var(--c-brand); font-weight: 600; margin-left: auto; }
.card__more .icon { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .card__more .icon { transform: translateX(3px); }
.card--method { padding: var(--space-5); border-top: 3px solid var(--c-accent); }
.card__num { font-size: 1.75rem; font-weight: 700; color: var(--c-brand); line-height: 1; margin-bottom: var(--space-3); font-variant-numeric: tabular-nums; }

/* ---------- Thông báo (vùng F) ---------- */
.notices { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .notices { grid-template-columns: 5fr 7fr; gap: var(--space-5); } }
.notices__lead .notice {
	height: 100%; padding: var(--space-6); border-radius: var(--radius); background: var(--c-brand-soft);
	border: 1px solid #ecdfe3; border-left: 4px solid var(--c-brand);
}
.notices__lead .notice__title { font-size: 1.375rem; }
.notices__list { display: flex; flex-direction: column; border-top: 1px solid var(--c-border); }
.notices__list .notice { padding: var(--space-4) 0; border-bottom: 1px solid var(--c-border); }
.notices__list--page .notice { padding: var(--space-5) 0; }
.notice { position: relative; }
.notice__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--c-muted); margin-bottom: var(--space-2); }
.notice__meta time { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.notice__meta .icon { width: 16px; height: 16px; }
.notice__title { font-size: 1.0625rem; margin: 0; }
.notice__title .card__link:hover { color: var(--c-brand); text-decoration: underline; }
.notice__text { color: var(--c-muted); margin: var(--space-3) 0 0; }

/* ---------- Khối học bổng (vùng G) ---------- */
.feature { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; }
.feature p { color: var(--c-muted); }
.feature .link-arrow { margin-top: auto; }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand); margin-bottom: var(--space-4); }
.feature__title { font-size: 1.375rem; }
.feature__img { width: 100%; border-radius: var(--radius-sm); margin-bottom: var(--space-4); aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Tư vấn (vùng H) ---------- */
.consult { background: var(--c-brand); color: #fff; padding: var(--space-7) 0; position: relative; overflow: hidden; }
.consult::before { content: ""; position: absolute; left: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 32px solid rgba(233, 183, 95, .22); }
.consult__grid { position: relative; display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .consult__grid { grid-template-columns: 7fr 5fr; } }
.consult__title { font-size: var(--fs-h2); }
.consult__text { color: rgba(255, 255, 255, .9); max-width: 56ch; margin-bottom: var(--space-5); }
.consult a:not(.btn) { color: #fff; }
.consult a:not(.btn):focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .icon { margin-top: 3px; }
.contact-list__label { display: block; font-size: var(--fs-small); opacity: .85; }
.consult__contacts a { font-weight: 700; font-size: 1.125rem; }

/* ---------- Đầu trang nội dung ---------- */
.page-header { background: var(--c-brand-soft); padding: var(--space-5) 0 var(--space-6); border-bottom: 1px solid #ecdfe3; }
@media (min-width: 900px) { .page-header { padding: var(--space-6) 0 var(--space-7); } }
.page-header__title { font-size: var(--fs-h1); margin-bottom: var(--space-3); max-width: 24ch; }
.page-header__lead { font-size: var(--fs-lead); color: var(--c-muted); max-width: 62ch; margin: 0; }
.page-header__eyebrow { font-weight: 700; margin-bottom: var(--space-2); }
.page-header__eyebrow a { text-decoration: none; }
.page-header__code { color: var(--c-muted); }
.page-header > .container > p:not([class]) { max-width: 62ch; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 var(--space-4); padding: 0; font-size: var(--fs-small); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb [aria-current] { color: var(--c-text); font-weight: 500; }

.toc { margin-top: var(--space-5); }
.toc ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--c-text); }
.toc a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.toc__label { font-weight: 600; margin-bottom: var(--space-2); }
.round-detail .toc { margin: 0 0 var(--space-6); }

/* ---------- Bố cục có cột phụ ---------- */
.layout-aside { display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-7); }
@media (min-width: 900px) {
	.layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-7); }
	.layout-aside__side .summary { position: sticky; top: calc(var(--header-h) + 24px); }
}
.summary { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); background: #fff; box-shadow: var(--shadow); }
.summary__title { font-weight: 700; font-size: 1.125rem; }
.summary__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.summary__list dt { font-size: var(--fs-small); color: var(--c-muted); }
.summary__list dd { font-weight: 600; }
.summary .cta-note { margin-top: var(--space-4); }

.block { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--c-border); }
.layout-aside__main > .block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.block__title { display: flex; align-items: center; gap: var(--space-3); font-size: 1.5rem; }
.block__title .icon { color: var(--c-brand); }
.block--cta { background: var(--c-brand-soft); border: 0; border-radius: var(--radius); padding: var(--space-6); }

.round { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-4); }
.round__title { font-weight: 700; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.method-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.method-list li { padding-left: var(--space-4); border-left: 3px solid var(--c-accent); }
.method-list a { font-weight: 600; }
.method-list p { margin: 4px 0 0; color: var(--c-muted); font-size: .9375rem; }
.programs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.programs li { padding: var(--space-4); border-radius: var(--radius-sm); background: var(--c-brand-soft); }
.programs p { margin: 4px 0 0; }

/* ---------- Phương thức ---------- */
.round-detail__head { margin-bottom: var(--space-5); }
.round-detail__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; color: var(--c-muted); }
.round-detail__dates { display: inline-flex; align-items: center; gap: 6px; }
.method { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--c-border); }
.method__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-brand); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }
.method__title { font-size: 1.375rem; }
.method__summary { font-size: var(--fs-lead); color: var(--c-muted); }
.method__scope { font-size: .9375rem; }

.tabs { margin-bottom: var(--space-6); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs ul { display: flex; gap: var(--space-2); list-style: none; padding: 0 0 4px; margin: 0; }
.tabs__item { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: #fff; color: var(--c-text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tabs__item:hover { border-color: var(--c-brand); color: var(--c-brand); }
.tabs__item.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.tabs__state { font-weight: 400; font-size: .8125rem; opacity: .85; }
.tabs--small { margin: var(--space-5) 0 var(--space-3); }

/* ---------- Học phí ---------- */
.fee-group + .fee-group { margin-top: var(--space-7); }
.fee { padding: var(--space-5) 0; border-top: 1px solid var(--c-border); }
.fee__title { font-size: 1.25rem; }
.fee__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--c-muted); font-size: .9375rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.table thead th { background: var(--c-brand-soft); font-weight: 700; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-hint { font-size: var(--fs-small); color: var(--c-muted); }
@media (min-width: 600px) { .table-hint { display: none; } }

/* ---------- Bộ lọc ---------- */
.filter { display: grid; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; margin-bottom: var(--space-5); }
.filter label, .filter legend { display: block; font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.filter label.chip { display: inline-flex; padding: 6px 14px; margin: 0; font-weight: 500; }
.filter fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter__search input { width: 100%; }
.filter__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter--inline { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 600px) { .filter--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .filter--inline { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } }
.filter select { width: 100%; }
.js .filter [data-filter-submit-hidden] { display: none; }
.result-count { font-weight: 600; color: var(--c-muted); margin-bottom: var(--space-4); }

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); border: 2px dashed var(--c-border); border-radius: var(--radius); }
.empty-state__title { font-weight: 700; font-size: 1.25rem; }
.empty-state .tag-list { justify-content: center; }
.empty { color: var(--c-muted); }

/* ---------- Callout ---------- */
.callout { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius); margin: var(--space-4) 0; }
.callout > .icon { margin-top: 3px; }
.callout p { margin-bottom: var(--space-2); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; }
.callout--info { background: var(--c-info-bg); border-left: 4px solid #2f5b8a; }
.callout--warn { background: var(--c-warn-bg); border-left: 4px solid #b7791f; color: var(--c-warn-text); }
.callout--warn a { color: var(--c-warn-text); font-weight: 700; }
.contact-inline { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.contact-inline a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 32px; }

/* ---------- Nguồn và tài liệu ---------- */
.source-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-small); color: var(--c-muted); margin: var(--space-4) 0 0; }
.source-note .icon { width: 16px; height: 16px; margin-top: 3px; }
.docs { margin-top: var(--space-5); }
.docs__title { font-size: 1.125rem; }
.docs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.docs__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.docs__link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; min-height: 32px; }
.docs__meta { font-size: var(--fs-small); color: var(--c-muted); }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3) var(--space-5); margin-top: var(--space-5); padding: var(--space-4) var(--space-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.meta-grid dt { font-size: var(--fs-small); color: var(--c-muted); }
.meta-grid dd { font-weight: 600; }
.history { padding-left: 1.25em; }
.history [aria-current] { font-weight: 600; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); }
.updated { margin-top: var(--space-6); font-size: var(--fs-small); color: var(--c-muted); }

/* ---------- Liên hệ ---------- */
.contact-card { padding: var(--space-5); border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.contact-card__title { font-size: 1.125rem; }
.contact-card__value { font-size: 1.125rem; font-weight: 700; }
.contact-card .contact-list__label { color: var(--c-muted); }

/* ---------- Kết quả tìm kiếm ---------- */
.results { list-style: none; padding: 0; margin: 0; }
.result { padding: var(--space-5) 0; border-bottom: 1px solid var(--c-border); }
.result__type { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-brand); margin-bottom: var(--space-2); }
.result__type .badge { text-transform: none; letter-spacing: 0; }
.result__title { font-size: 1.25rem; margin-bottom: var(--space-2); }
.result__text { color: var(--c-muted); margin: 0; }
.link-grid { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.link-grid a { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4); border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.link-grid a:hover { border-color: var(--c-brand); }

.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--c-text); }
.nav-links .page-numbers.current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* ---------- Nội dung soạn thảo ---------- */
.prose { max-width: 72ch; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-6); }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-5); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-3) var(--space-5); border-left: 4px solid var(--c-accent); background: var(--c-brand-soft); }
.prose img { border-radius: var(--radius-sm); }
.prose--steps { counter-reset: step; }
.prose--steps h2 { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--c-border); }
.prose--steps h2:first-of-type { border-top: 0; padding-top: 0; }
.page-figure { margin: 0 0 var(--space-5); }
.page-figure img { border-radius: var(--radius); width: 100%; }

/* ---------- Chân trang ---------- */
.site-footer { background: var(--c-footer); color: #d8def0; border-top: 4px solid var(--c-accent); font-size: .9375rem; }
.site-footer a:not(.btn) { color: #fff; }
.site-footer a:focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }
.site-footer__grid { display: grid; gap: var(--space-6); padding-block: var(--space-7); }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 5fr 3fr 4fr; } }
.site-footer__name { font-weight: 700; font-size: 1.125rem; color: #fff; margin-bottom: 0; }
.site-footer__tag { color: var(--c-accent); font-weight: 600; }
.site-footer__heading { font-weight: 700; color: #fff; text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; }
.site-footer .contact-list { gap: var(--space-3); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.social { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); text-decoration: none; }
.social a:hover { background: rgba(255, 255, 255, .08); }
.site-footer .cta-group--stack { max-width: 320px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: var(--space-5) 0; font-size: var(--fs-small); color: #aeb6c2; }
.site-footer__bottom p { margin: 0 0 var(--space-2); }

/* ---------- Chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.quick__list a:hover, .card:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- In ---------- */
@media print {
	.site-header, .site-footer, .consult, .filter, .cta-group, .toc, .skip-link { display: none !important; }
	body { font-size: 12pt; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ---------- Chỉ tiêu, tổ hợp ---------- */
.quota { display: grid; gap: var(--space-2) var(--space-5); grid-template-columns: 1fr; margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--c-brand-soft); border-radius: var(--radius-sm); }
@media (min-width: 600px) { .quota { grid-template-columns: auto 1fr; } }
.quota dt { font-size: var(--fs-small); color: var(--c-muted); }
.quota dd { font-weight: 600; }
.round-detail__sub { font-size: 1.25rem; margin: var(--space-6) 0 var(--space-4); }
.round-detail__intro { margin-bottom: var(--space-4); }
.table--quota td:nth-child(2) { text-align: center; }
.table--quota td:nth-child(3) { white-space: normal; min-width: 260px; }
.programs__level { font-size: 1.0625rem; margin: var(--space-4) 0 var(--space-3); }
.programs__level span { font-weight: 500; color: var(--c-muted); }
.programs { grid-template-columns: 1fr; }
@media (min-width: 600px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card--major .card__text { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Đa ngôn ngữ ---------- */
html:lang(zh) { --font: "Be Vietnam Pro", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { letter-spacing: 0; }

.topbar { display: none; background: var(--c-footer); color: #d6dbe2; font-size: .875rem; }
@media (min-width: 900px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; max-width: 1400px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0; }
.topbar__info a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.topbar__info .icon { width: 16px; height: 16px; }
.topbar a:focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }

.lang-switch ul { display: flex; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.lang-switch--bar li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.lang-switch--bar a { color: #d6dbe2; min-height: 32px; }
.lang-switch--bar a:hover { color: #fff; }
.lang-switch--bar a.is-current { color: var(--c-accent); }
.lang-switch--menu { margin-bottom: var(--space-3); }
.lang-switch--menu ul { gap: var(--space-2); }
.lang-switch--menu a { border: 1px solid var(--c-border); border-radius: var(--radius-sm); color: var(--c-text); min-height: 44px; }
.lang-switch--menu a.is-current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

.translation-notice { background: var(--c-warn-bg); color: var(--c-warn-text); font-size: .9375rem; border-bottom: 1px solid #f0e2bd; }
.translation-notice .container { display: flex; gap: var(--space-2); align-items: flex-start; padding-block: var(--space-3); }
.translation-notice p { margin: 0; }
.translation-notice a { color: var(--c-warn-text); font-weight: 700; }
.translation-notice .icon { margin-top: 2px; }

/* Chữ Hán – W3C clreq: không gõ khoảng trắng tay; trình duyệt tự giãn giữa chữ Hán và số/Latin. */
html:lang(zh) body { text-autospace: normal; line-break: strict; word-break: normal; }
html:lang(zh) .prose, html:lang(zh) p { text-align: start; line-height: 1.8; }
html:lang(en) .prose { hyphens: auto; }

.lang-note { font-size: var(--fs-small); color: var(--c-muted); }

.lang-suggest { background: var(--c-info-bg); border-bottom: 1px solid var(--c-border); font-size: .9375rem; }
.lang-suggest .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-2); }
.lang-suggest p { margin: 0; }
.lang-suggest a { font-weight: 700; }
.lang-suggest__close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--c-text); }

/* Reflow 320px (WCAG 1.4.10): phần tử lưới không được nở theo bề rộng tối thiểu của nội dung. */
.grid > *, .consult__grid > *, .hero__grid > *, .layout-aside > *, .site-footer__grid > *, .notices > * { min-width: 0; }
.contact-card__value, .contact-list a, .contact-inline a, .prose a { overflow-wrap: anywhere; }
.prose .table-wrap { margin: 0 0 var(--space-4); }
.prose .table-wrap table { display: table; min-width: 100%; }

.contact-card__name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }

/* Khung nhìn ≤ 340px (320px + thanh cuộn, hoặc zoom 400%): header vừa khít, vẫn giữ nhãn “Menu” và vùng chạm ≥ 24px (WCAG 2.5.8). */
@media (max-width: 340px) {
	.site-header__bar { gap: 6px; }
	.brand__mark { width: 34px; height: 34px; font-size: .875rem; }
	.brand__name { font-size: .875rem; max-width: 8ch; }
	.icon-btn { width: 40px; height: 40px; }
	.menu-toggle { padding: 0 8px; gap: 4px; }
}

/* ==========================================================================
   Nâng cấp sau phản biện 6 vai trò
   ========================================================================== */
.muted { color: var(--c-muted); }
.callout--success { background: #e3f4ea; border-left: 4px solid var(--c-success); color: #064e2f; align-items: flex-start; }
.callout--error { background: #fde8e7; border-left: 4px solid var(--c-error); color: #7a1a12; }

/* Hệ đào tạo */
.level-grid { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.level-card { flex-direction: row; gap: var(--space-4); padding: var(--space-5); }
.level-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand); }
.level-card__body { display: flex; flex-direction: column; min-width: 0; }
.level-card .card__text { margin-bottom: var(--space-3); font-size: .9375rem; }
.level-card__meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: var(--fs-small); color: var(--c-muted); }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.paths__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-4); border: 1px solid var(--c-border); border-radius: var(--radius); }
.paths__who { font-weight: 600; }
.paths__go { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.paths .chip .icon { width: 16px; height: 16px; }
.level-programs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.level-programs li { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--c-brand-soft); }
.level-programs__major { font-weight: 700; }
.round__dates { display: flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: .9375rem; }
.round__dates .icon { width: 16px; height: 16px; }

/* Trang chủ: năm tới + các đợt theo đối tượng */
.next-year { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .next-year { grid-template-columns: 6fr 5fr; } }
.next-year__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.next-year__form .lead-box { margin: 0; }
.audience { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audience__group { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); }
.audience__who { font-size: 1.0625rem; color: var(--c-brand); }
.audience__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.audience__list a { font-weight: 600; }
.audience__date { display: block; font-size: var(--fs-small); color: var(--c-muted); }

/* Biểu mẫu tư vấn */
.lead-box { margin-top: var(--space-6); padding: var(--space-5); border: 1px solid var(--c-border); border-top: 4px solid var(--c-brand); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 600px) { .lead-box { padding: var(--space-6); } }
.lead-box__title { font-size: 1.375rem; }
.lead-box__lead { color: var(--c-muted); }
.lead-form__grid { display: grid; gap: 0 var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .lead-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lead-form--compact .lead-form__grid { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 var(--space-4); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8c96a3; border-radius: var(--radius-sm); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(30, 67, 155, .2); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.field__error:empty { display: none; }
.field--check { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
.field--check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-brand); }
.field--check label { font-weight: 400; }
.field--inline { flex-direction: row; align-items: center; gap: var(--space-3); }
.field--inline label { min-width: 80px; }
.field--inline input { width: 110px !important; }
.req { color: var(--c-error); }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; }
.lead-form__note { font-size: var(--fs-small); color: var(--c-muted); }
.lead-form__msg { color: var(--c-error); font-weight: 600; margin: var(--space-3) 0 0; }
.lead-box__result:focus { outline: none; }

/* Chi phí ước tính */
.cost { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); background: #fff; }
.cost__figures { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 600px) { .cost__figures { grid-template-columns: 1fr 1fr; } }
.cost__figures dt { font-size: var(--fs-small); color: var(--c-muted); }
.cost__figures dd { font-size: 1.5rem; font-weight: 700; color: var(--c-brand); font-variant-numeric: tabular-nums; }
.cost__how { font-weight: 600; }
.cost__note { font-size: var(--fs-small); color: var(--c-muted); }
.table--num td { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Máy tính xét tuyển */
.calc { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .calc { grid-template-columns: 6fr 5fr; align-items: start; } }
.calc fieldset { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-4); min-width: 0; }
.calc legend { font-weight: 700; padding: 0 6px; }
.calc__method { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0 0 var(--space-3); }
.calc__method input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-brand); }
.calc__method label { display: flex; flex-direction: column; gap: 2px; }
.calc__round, .calc__scale, .calc__hint { font-size: var(--fs-small); color: var(--c-muted); }
.calc__result { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); scroll-margin-top: calc(var(--header-h) + 16px); }
.calc__score { font-size: 1.5rem; font-weight: 700; color: var(--c-brand); }
.calc__checks { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.calc__check { display: flex; gap: var(--space-2); align-items: flex-start; }
.calc__check .icon { flex: none; margin-top: 3px; }
.calc__check--ok .icon { color: var(--c-success); }
.calc__check--no .icon { color: var(--c-error); }

/* Lịch tuyển sinh */
.filter-chips { margin-bottom: var(--space-5); }
.chip.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.cal { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.cal__month h3 { font-size: 1.0625rem; color: var(--c-brand); margin: var(--space-5) 0 var(--space-2); }
.cal__item { display: grid; grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--c-border); }
@media (min-width: 600px) { .cal__item { grid-template-columns: 130px minmax(0, 1fr) auto; align-items: start; gap: var(--space-4); } }
.cal__date { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__title { font-weight: 600; margin: 0; }
.cal__ctx { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }
.cal__add { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.cal__add .icon { width: 16px; height: 16px; }
.cal-past summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Hỏi đáp */
.faq-group + .faq-group { margin-top: var(--space-6); }
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq__q { cursor: pointer; font-weight: 600; padding: var(--space-4) var(--space-6) var(--space-4) 0; position: relative; list-style: none; min-height: 48px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: var(--space-4); font-size: 1.25rem; line-height: 1; color: var(--c-brand); }
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { padding: 0 0 var(--space-4); }
.faq__item:target { background: var(--c-brand-soft); }

/* Thông báo có khung */
.notice-sections { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.notice-section { border-left: 4px solid var(--c-accent); padding: var(--space-2) 0 var(--space-2) var(--space-4); }
.notice-section__title { font-size: 1.1875rem; }

/* Sự kiện */
.event-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-3); }
.event-facts dt { font-size: var(--fs-small); color: var(--c-muted); }
.event-facts dd { font-weight: 600; }
.card--event .card__meta .icon, .card--intl .card__meta .icon { width: 16px; height: 16px; vertical-align: -3px; }

/* Nút Zalo nổi (S3) */
.zalo-float {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px;
	background: #0055d4; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.zalo-float:hover { background: #0044aa; color: #fff; }
.zalo-float:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0055d4; }
.zalo-float .icon { width: 22px; height: 22px; }
@media (max-width: 599px) {
	.zalo-float > span:not(.screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.zalo-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
	body { padding-bottom: 76px; }
}
@media print { .zalo-float { display: none; } }

/* Reflow 320px cho các thành phần mới (WCAG 1.4.10). */
.layout-aside > *, .calc > *, .next-year > *, .audience > * { min-width: 0; }
.card--intl .badge, .level-card .badge { white-space: normal; }
.calc__method label { min-width: 0; overflow-wrap: anywhere; }
.layout-aside, .calc, .next-year, .audience { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	.layout-aside { grid-template-columns: minmax(0, 1fr) 320px; }
	.calc { grid-template-columns: 6fr 5fr; }
	.next-year { grid-template-columns: 6fr 5fr; }
	.audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Chữ dành cho trình đọc màn hình (position: absolute) nằm trong vùng cuộn/nút: giữ trong khung chứa để không tạo cuộn ngang. */
.table-wrap, .btn, .cal__add, .link-arrow { position: relative; }
.source-note a, .docs__link, .callout a, .prose a { position: relative; }
.calc fieldset { overflow-x: clip; overflow-clip-margin: 8px; } .calc .badge { white-space: normal; }

.docs__link--text { color: var(--c-text); }

/* ---------- Nhận diện: điểm nhấn vàng tiết chế, chuẩn mực quốc tế ---------- */
.site-header { border-top: 3px solid var(--c-accent); }
.block__title, .section__title { position: relative; padding-bottom: var(--space-3); }
.block__title::after, .section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--c-accent); }
.section--alt, .section--ivory { background: var(--c-ivory); }
.page-header { background: linear-gradient(180deg, var(--c-brand-soft), #fff); }
.page-header__eyebrow, .hero__eyebrow { letter-spacing: .02em; }
.btn--primary { box-shadow: 0 1px 0 rgba(11, 31, 77, .15); }
.site-footer__tag { color: var(--c-accent); }

/* ---------- Tuyển dụng ---------- */
.career-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .career-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .career-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.career-nav__link {
	position: relative; display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-5);
	background: #fff; border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent); border-radius: var(--radius);
	box-shadow: var(--shadow); color: var(--c-text); text-decoration: none; transition: box-shadow .15s, border-color .15s;
}
.career-nav__link:hover { box-shadow: var(--shadow-hover); color: var(--c-text); }
.career-nav__title { font-weight: 700; font-size: 1.125rem; color: var(--c-brand); }
.career-nav__desc { color: var(--c-muted); font-size: .9375rem; }
.card--job { border-left: 3px solid var(--c-brand); }
.card--job .card__meta { justify-content: flex-start; align-items: center; }
.card--job .card__meta .icon { width: 16px; height: 16px; vertical-align: -3px; }
.job-filter { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; margin-bottom: var(--space-6); padding: var(--space-4); background: var(--c-brand-soft); border-radius: var(--radius); }
.job-filter .field { flex: 1 1 220px; margin: 0; min-width: 0; }
.job-filter label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.job-filter select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8c96a3; border-radius: var(--radius-sm); background: #fff; }
.job-filter__actions { margin: 0; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn--block { width: 100%; justify-content: center; }
.accordion { border-top: 1px solid var(--c-border); }
.accordion__item { border-bottom: 1px solid var(--c-border); scroll-margin-top: calc(var(--header-h) + 16px); }
.accordion__summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; padding: var(--space-4) var(--space-6) var(--space-4) 0; position: relative; list-style: none; min-height: 48px; }
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after { content: "+"; position: absolute; right: 4px; top: var(--space-4); font-size: 1.25rem; line-height: 1; color: var(--c-brand); }
.accordion__item[open] .accordion__summary::after { content: "3"; }
.accordion__body { padding: 0 0 var(--space-5); }
.accordion__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }
.accordion__item:target { background: var(--c-brand-soft); }
.prose--guide h2 { margin-top: var(--space-6); }

/* ---------- Trợ lý hỏi đáp AI ---------- */
.chatbot__launch {
	position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 91;
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid var(--c-accent); border-radius: 999px;
	background: var(--c-brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 31, 77, .28);
}
.chatbot__launch:hover { background: var(--c-brand-dark); }
.chatbot__launch:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c-brand); }
.chatbot__launch .icon { width: 22px; height: 22px; }
.chatbot.is-open .chatbot__launch { display: none; }
.chatbot__panel {
	position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column;
	width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 32px)); background: #fff; color: var(--c-text);
	border: 1px solid var(--c-border); border-top: 4px solid var(--c-accent); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(11, 31, 77, .28); overflow: hidden;
}
.chatbot__panel[hidden] { display: none; }
.chatbot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); background: var(--c-brand); color: #fff; }
.chatbot__title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 1.0625rem; }
.chatbot__title .icon { width: 20px; height: 20px; color: var(--c-accent); }
.chatbot__sub { margin: 2px 0 0; font-size: .8125rem; color: #dfe6f5; }
.chatbot__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.chatbot__close:hover { background: rgba(255, 255, 255, .24); }
.chatbot__close:focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }
.chatbot__close .icon { width: 20px; height: 20px; }
.chatbot__log { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); background: var(--c-brand-soft); overscroll-behavior: contain; }
.chatbot__msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.chatbot__msg p { margin: 0 0 6px; }
.chatbot__msg p:last-of-type { margin-bottom: 0; }
.chatbot__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-border); border-bottom-left-radius: 4px; }
.chatbot__msg--me { align-self: flex-end; background: var(--c-brand); color: #fff; border-bottom-right-radius: 4px; }
.chatbot__msg.is-wait { color: var(--c-muted); font-style: italic; }
.chatbot__msg .chatbot__src-title { margin-top: 8px; font-size: .8125rem; font-weight: 700; color: var(--c-muted); }
.chatbot__src { margin: 4px 0 0; padding: 0; list-style: none; font-size: .8125rem; }
.chatbot__src li + li { margin-top: 2px; }
.chatbot__cta { display: inline-block; margin-top: 8px; font-weight: 700; }
.chatbot__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: var(--space-2) var(--space-4) 0; list-style: none; background: var(--c-brand-soft); }
.chatbot__chips[hidden] { display: none; }
.chatbot__chip { min-height: 36px; padding: 4px 12px; border: 1px solid var(--c-brand); border-radius: 999px; background: #fff; color: var(--c-brand); font: inherit; font-size: .8125rem; cursor: pointer; }
.chatbot__chip:hover { background: var(--c-brand); color: #fff; }
.chatbot__form { display: flex; gap: var(--space-2); align-items: flex-end; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--c-border); background: #fff; }
.chatbot__form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid #8c96a3; border-radius: var(--radius-sm); font: inherit; resize: vertical; }
.chatbot__form textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(30, 67, 155, .2); }
.chatbot__send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--c-brand); color: #fff; cursor: pointer; }
.chatbot__send:hover { background: var(--c-brand-dark); }
.chatbot__send .icon { width: 20px; height: 20px; }
.chatbot__foot { margin: 0; padding: 0 var(--space-4) var(--space-3); font-size: .75rem; color: var(--c-muted); background: #fff; }
@media (max-width: 599px) {
	.chatbot__launch { width: 52px; height: 52px; padding: 0; justify-content: center; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.chatbot__launch > span:not(.screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.chatbot__panel { inset: 0; width: auto; height: auto; border-radius: 0; border-width: 4px 0 0; }
	body { padding-bottom: 140px; }
}
@media print { .chatbot { display: none; } }

.chatbot__guide { margin: 4px 0 0; padding-left: 1.25em; font-size: .875rem; }
.chatbot__guide li + li { margin-top: 2px; }
.chatbot__contact { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); background: var(--c-ivory); font-size: .8125rem; }
.chatbot__msg .chatbot__contact-name { margin: 0 0 4px; font-weight: 700; color: var(--c-text); }
.chatbot__msg .chatbot__contact-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.chatbot__contact-acts a { font-weight: 600; }
.chatbot__msg .chatbot__contact-hours { margin: 4px 0 0; color: var(--c-muted); }

.chatbot__chips--inline { margin-top: 8px; padding: 0; background: transparent; }
/* Vùng bấm tối thiểu 24px (WCAG 2.2 – 2.5.8) cho liên kết xếp dọc trong câu trả lời. */
.chatbot__src a, .chatbot__guide a, .chatbot__contact-acts a { display: inline-block; min-height: 24px; padding: 2px 0; }

/* ---------- Nhận diện (phản biện 26/09): logo trường, tiêu đề cổng, điện thoại luôn hiện ---------- */
.brand__logo { display: block; width: auto; height: 52px; }
.brand__text { gap: 2px; }
.brand__name { font-size: .9375rem; color: var(--c-text); }
.brand .brand__sub { display: block; max-width: 24ch; white-space: normal; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; font-size: .6875rem; line-height: 1.3; color: var(--c-brand); }
.topbar__badge { display: inline-flex; align-items: center; padding: 1px 10px; border: 1px solid var(--c-accent); border-radius: 999px; color: var(--c-accent); font-weight: 600; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 2px solid var(--c-accent); border-radius: 999px; color: var(--c-brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover { background: var(--c-accent); color: #2b1a00; }
.header-phone .icon { width: 18px; height: 18px; }
@media (max-width: 1279px) { .header-phone__name { display: none; } }
@media (max-width: 1099px) { .site-header__cta { display: none; } }
@media (max-width: 599px) {
	.brand__logo { height: 40px; }
	.brand .brand__name { display: none; }
	.brand .brand__sub { font-size: .625rem; max-width: 17ch; }
	.header-phone { padding: 0 10px; }
	.header-phone__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Dưới 480px số của Cô Trang luôn hiện ở thanh thao tác cuối màn hình (“Gọi 0985023619”) nên bỏ nút gọi ở đầu trang. */
@media (max-width: 767px) { .header-phone { padding: 0 10px; } .header-phone__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 479px) { .header-phone { display: none; } }
@media (max-width: 359px) {
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.brand .brand__sub { max-width: 15ch; }
}
/* Đầu trang 2 hàng từ 1024px: hàng 1 logo – tiêu đề cổng – công cụ; hàng 2 menu chính trải ngang. */
@media (min-width: 1024px) {
	.site-header__bar { flex-wrap: wrap; row-gap: 0; }
	.brand { margin-right: auto; }
	.brand .brand__sub { display: block; max-width: none; font-size: .75rem; }
	.nav-primary { order: 3; flex: 1 0 100%; border-top: 1px solid var(--c-border); }
	.nav-primary .menu { justify-content: flex-start; gap: var(--space-1); }
	.nav-primary .menu > li > a { font-size: .9375rem; padding: 8px 14px; }
	.site-header__actions { order: 2; }
}
@media (min-width: 1024px) { .brand { padding: 10px 0 8px; } }

/* ---------- Thanh hành động (Nhận tư vấn – Gọi – Đăng ký học – Cộng tác viên) ---------- */
.action-rail { position: fixed; z-index: 90; }
.action-rail ul { list-style: none; margin: 0; padding: 0; }
.action-rail__link { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; color: #fff; background: var(--c-brand); }
.action-rail__link:hover { background: var(--c-brand-dark); color: #fff; }
.action-rail__link:focus-visible { box-shadow: inset 0 0 0 3px var(--c-accent); outline: none; }
.action-rail__link--phone { background: var(--c-accent); color: #2b1a00; }
.action-rail__link--phone:hover { background: #e8900a; color: #2b1a00; }
.action-rail__link--zalo { background: #0055d4; }
.action-rail__link--zalo:hover { background: #0044aa; }
.action-rail__link .icon { width: 22px; height: 22px; flex: none; }
@media (min-width: 1024px) {
	.action-rail { right: 0; top: 50%; transform: translateY(-50%); }
	.action-rail ul { display: flex; flex-direction: column; gap: 2px; }
	.action-rail__link { flex-direction: column; gap: 4px; width: 92px; min-height: 72px; padding: 8px 6px; font-size: .75rem; line-height: 1.25; text-align: center; border-radius: 12px 0 0 12px; box-shadow: 0 6px 18px rgba(11, 31, 77, .22); }
	.chatbot__launch { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 108px; }
}
@media (max-width: 1023px) {
	.action-rail { left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--c-border); box-shadow: 0 -6px 18px rgba(11, 31, 77, .12); }
	.action-rail ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.action-rail__link { flex-direction: column; gap: 2px; min-height: 60px; padding: 6px 2px; font-size: .6875rem; line-height: 1.2; text-align: center; }
	.action-rail__label { max-width: 100%; overflow-wrap: anywhere; }
	body { padding-bottom: 72px; }
	.chatbot__launch { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .action-rail { display: none; } }
/* Menu nhiều cột cho “Ngành đào tạo” (17 ngành) và “ThaDo EduPark”; menu con của 2 mục cuối căn phải để không tràn màn hình. */
@media (min-width: 1024px) {
	.nav-primary .menu > .menu-item--mega > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px var(--space-2); width: min(780px, calc(100vw - 48px)); }
	.nav-primary .menu > .menu-item--mega > .sub-menu > li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--c-border); }
	.nav-primary .menu > .menu-item--mega-plain > .sub-menu > li:first-child { grid-column: auto; border-bottom: 0; }
	.nav-primary .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
}

/* ---------- Phản biện 2: du học theo nước, EduPark, cộng tác viên ---------- */
.summary__links { list-style: none; margin: var(--space-3) 0 var(--space-5); padding: 0; display: grid; gap: 2px; }
.summary__links a { display: flex; align-items: center; min-height: 44px; padding: 6px var(--space-3); border-radius: 8px; color: var(--c-text); text-decoration: none; font-weight: 600; }
.summary__links a:hover { background: var(--c-surface, #f4f6f9); color: var(--c-brand); }
.summary__links a[aria-current="page"] { background: var(--c-brand); color: #fff; }
.block__sub { font-size: 1.125rem; margin: var(--space-5) 0 var(--space-2); }
.page-figure--wide img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.card--page .card__media img { aspect-ratio: 16 / 9; }
.level-links { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }

/* ---------- Trang chủ: dòng tin chạy, banner tin tiêu biểu (phản biện mục 3) ---------- */
.ticker { background: var(--c-brand); color: #fff; font-size: .9375rem; }
.ticker__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.ticker__label { flex: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8125rem; background: var(--c-accent); color: #0b2a4a; padding: 4px 10px; border-radius: 999px; }
.ticker__viewport { flex: 1; min-width: 0; overflow-x: auto; display: flex; scrollbar-width: none; }
.ticker__viewport::-webkit-scrollbar { display: none; }
.ticker__list { list-style: none; margin: 0; padding: 0 var(--space-6) 0 0; display: flex; gap: var(--space-6); white-space: nowrap; flex: none; }
.ticker__item a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ticker__item a:hover { text-decoration: underline; }
.ticker__item a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }
.ticker__type { opacity: .85; font-size: .8125rem; margin-right: 4px; }
.ticker.is-running .ticker__viewport { overflow: hidden; }
.ticker.is-running .ticker__list { animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker.is-running:hover .ticker__list, .ticker.is-running:focus-within .ticker__list, .ticker.is-paused .ticker__list { animation-play-state: paused; }
.ticker__pause, .slider__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; }
.ticker__pause .icon, .slider__btn .icon { width: 18px; height: 18px; }
.ticker__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.slider__when-run, .slider__when-paused { display: inline-flex; }
.slider__when-paused, [aria-pressed="true"] > .slider__when-run { display: none; }
[aria-pressed="true"] > .slider__when-paused { display: inline-flex; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker.is-running .ticker__list { animation: none; } }

.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--c-brand-soft); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.slider.is-ready .slider__track { overflow: hidden; display: block; }
.slider.is-ready .slider__slide { display: none; }
.slider.is-ready .slider__slide.is-active { display: block; animation: slider-in .4s ease; }
@keyframes slider-in { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slider.is-ready .slider__slide.is-active { animation: none; } }
.slider__link { display: block; position: relative; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; }
.slider__link picture, .slider__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider__body { position: absolute; inset: auto 0 0 0; padding: var(--space-6) var(--space-5) 64px; background: linear-gradient(to top, rgba(6, 24, 46, .94) 0%, rgba(6, 24, 46, .8) 60%, rgba(6, 24, 46, 0) 100%); display: flex; flex-direction: column; gap: 6px; }
.slider__type { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--c-accent); color: #0b2a4a; padding: 3px 10px; border-radius: 999px; }
.slider__title { color: #fff; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slider__link:hover .slider__title { text-decoration: underline; }
.slider__link:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; box-shadow: none; }
.slider__controls { position: absolute; right: var(--space-4); bottom: var(--space-3); display: flex; align-items: center; gap: 6px; color: #fff; }
.slider__btn { background: rgba(6, 24, 46, .6); border-color: rgba(255, 255, 255, .8); }
.slider__btn:hover { background: rgba(6, 24, 46, .9); }
.slider__btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.slider__count { font-size: .875rem; font-weight: 600; min-width: 3.5em; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.slider:not(.is-ready) .slider__controls { display: none; }
.site-footer__logo { display: block; width: 94px; height: auto; margin-bottom: var(--space-3); }

/* ---------- Trang chủ theo “màn hình” (như thanhdo.edu.vn): mỗi lượt cuộn là một khung ---------- */
/* Dòng tin, banner luôn chạy (yêu cầu của Nhà trường) kể cả khi hệ điều hành tắt hiệu ứng; có nút dừng. */
.ticker.is-running .ticker__list { animation: ticker var(--ticker-duration, 60s) linear infinite !important; }
.ticker.is-running:hover .ticker__list, .ticker.is-running:focus-within .ticker__list, .ticker.is-paused .ticker__list { animation-play-state: paused !important; }

.home-screen { position: relative; }
.home-screen--banner { display: flex; flex-direction: column; }
.home-screen--banner .slider { flex: 1; border-radius: 0; box-shadow: none; }
.home-screen--banner .slider__track, .home-screen--banner .slider__slide, .home-screen--banner .slider__link { height: 100%; }
.home-screen--banner .slider__link { aspect-ratio: auto; min-height: 420px; }
.home-screen--banner .slider__link picture, .home-screen--banner .slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-screen--banner .slider__body { inset: 0; padding: 0; gap: 0; background: linear-gradient(90deg, rgba(6, 24, 46, .88) 0%, rgba(6, 24, 46, .62) 45%, rgba(6, 24, 46, .1) 80%), linear-gradient(to top, rgba(6, 24, 46, .55), rgba(6, 24, 46, 0) 50%); display: flex; flex-direction: column; justify-content: flex-end; }
.slider__inner { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: var(--container, 1200px); margin: 0 auto; padding: 0 var(--space-5) 96px; }
.home-screen--banner .slider__title { font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem); line-height: 1.2; max-width: 22ch; -webkit-line-clamp: 3; line-clamp: 3; }
.slider__text { display: none; color: #e6ecf7; font-size: 1.0625rem; max-width: 60ch; }
.slider__more { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: var(--c-accent); color: #0b2a4a; font-weight: 700; }
.slider__more .icon { width: 18px; height: 18px; }
.home-screen--banner .slider__controls { right: 50%; transform: translateX(50%); bottom: var(--space-5); }
.home-screen--banner .slider__link:focus-visible { outline-offset: -6px; }
@media (min-width: 768px) {
	.slider__text { display: block; }
	.slider__inner { padding: 0 var(--space-6) 104px; }
	.home-screen--banner .slider__controls { right: var(--space-6); transform: none; bottom: var(--space-6); }
}

/* Máy tính, máy tính bảng ngang: mỗi khung cao đúng một màn hình và cuộn dừng đúng đầu khung. */
@media (min-width: 900px) and (min-height: 600px) {
	html.home-screens { scroll-snap-type: y proximity; scroll-padding-top: var(--head-real, var(--header-h)); }
	.home-screen { min-height: calc(100vh - var(--head-real, var(--header-h))); min-height: calc(100svh - var(--head-real, var(--header-h))); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; }
	.home-screen > .section, .home-screen > .hero { padding-block: var(--space-6); }
	.home-screen--banner { height: calc(100svh - var(--head-real, var(--header-h))); justify-content: flex-start; }
	.home-screen--hero { justify-content: space-evenly; }
	.home-screen .grid--majors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.home-screen .card--major .card__text { -webkit-line-clamp: 3; line-clamp: 3; }
}
/* Điện thoại: banner cao gần một màn hình, các khung cuộn tự nhiên (tránh kẹt cuộn trên màn hình nhỏ). */
@media (max-width: 899px) {
	.home-screen--banner .slider__link { height: calc(100svh - var(--head-real, var(--header-h)) - 44px - 72px); min-height: 360px; }
}
@media (min-width: 900px) and (max-width: 1023px) and (min-height: 600px) { .home-screen--banner { height: calc(100svh - var(--head-real, var(--header-h)) - 72px); } }
/* Màn hình thấp (laptop 768px): thu gọn thẻ để mỗi khung vừa một màn hình. */
@media (min-width: 900px) and (min-height: 600px) and (max-height: 900px) {
	.home-screen > .section, .home-screen > .hero { padding-block: var(--space-4); }
	.home-screen .section__head { margin-bottom: var(--space-3); }
	.home-screen .section__title { font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); }
	.home-screen .section__lead { font-size: .9375rem; margin-bottom: 0; }
	.home-screen .card__body { padding: var(--space-4); }
	.home-screen .card--major .card__text { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: var(--space-2); }
	.home-screen .card__media img { aspect-ratio: 16 / 7; }
	.home-screen .hero__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem); margin-bottom: var(--space-2); }
	.home-screen--hero .hero { padding-block: var(--space-3); }
	.home-screen--hero .quick { padding-block: var(--space-2); }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 900px) {
	.home-screen .level-card { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
	.home-screen .level-card .card__text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--space-2); font-size: .875rem; }
	.home-screen .level-card__icon { width: 36px; height: 36px; }
}
@media (min-width: 900px) and (min-height: 600px) { .home-screen .level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } .home-screen .level-card { flex-direction: column; gap: var(--space-2); } }
/* Nút điều khiển banner đặt bên trái, thẳng hàng nội dung (tránh nút “Hỏi nhanh” ở góc phải). */
@media (min-width: 768px) {
	.home-screen--banner .slider__controls { left: max(var(--space-6), calc((100vw - var(--container)) / 2 + var(--gutter))); right: auto; bottom: var(--space-5); }
	.slider__inner { padding-bottom: 112px; }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 900px) {
	.home-screen .level-card__date { display: none; }
	.home-screen .level-card .card__text { -webkit-line-clamp: 2; }
}

/* ---------- Chia sẻ nhanh bài viết (góc trên của bài) ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--space-3); }
.share__label { font-size: .8125rem; font-weight: 600; color: var(--c-muted); margin-right: 2px; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; color: var(--c-brand); text-decoration: none; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.share__btn--x:hover { background: #111; border-color: #111; }
.share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share__btn--telegram:hover { background: #229ed9; border-color: #229ed9; }
.share__btn--native { background: var(--c-accent); border-color: var(--c-accent); color: #0b2a4a; }
.share__btn--native:hover { background: #e8920c; border-color: #e8920c; color: #0b2a4a; }
.share__status { font-size: .8125rem; color: #087443; font-weight: 600; min-height: 1em; }
.share__status:empty { display: none; }
/* Điện thoại có bảng chia sẻ của máy: gọn lại, chỉ giữ nút “Chia sẻ” (có Zalo, Messenger…), Facebook và chép liên kết. */
@media (max-width: 767px) {
	.share.has-native .share__btn--x, .share.has-native .share__btn--linkedin, .share.has-native .share__btn--telegram, .share.has-native .share__btn--email { display: none; }
}
/* Góc trên bên phải phần đầu bài (trên dòng đường dẫn), không chen vào tiêu đề. */
.page-header > .container:has(> .share) { display: flex; flex-direction: column; }
.page-header > .container > .share { order: -1; align-self: flex-end; }
@media (min-width: 900px) {
	.page-header > .container > .share { background: rgba(255, 255, 255, .9); padding: 4px 6px 4px 12px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: var(--space-3); }
}
@media print { .share { display: none; } }

/* =====================================================================
   Trang chủ 1.7.0 – theo hành trình ra quyết định (phản biện 27/09/2026),
   tham khảo bố cục VinUni: tiêu đề khung căn giữa, số liệu lớn, ô ảnh có nhãn, khối so le, lời mời cuối trang.
   ===================================================================== */
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: #0b2a4a; }
.btn--accent:hover { background: #e8920c; border-color: #e8920c; color: #0b2a4a; }
.btn--glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---- Màn hình đầu ---- */
.home-screen--banner { height: auto !important; }
.home-hero__stage { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--head-real, var(--header-h)) - 44px); background: #0b1f4d; border-radius: 0; box-shadow: none; overflow: hidden; }
.home-hero__stage .slider__track { position: absolute; inset: 0; height: auto; }
.home-hero__stage .slider__slide { position: absolute; inset: 0; }
.home-hero__stage:not(.is-ready) .slider__slide:not(:first-child) { display: none; }
.home-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__stage picture { position: absolute; inset: 0; }
.home-hero__stage .slider__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 24, 46, .92) 0%, rgba(6, 24, 46, .74) 42%, rgba(6, 24, 46, .18) 78%), linear-gradient(to top, rgba(6, 24, 46, .55), rgba(6, 24, 46, 0) 45%); pointer-events: none; }
.home-hero__content { position: relative; z-index: 2; width: 100%; padding: var(--space-7) 0 var(--space-7); color: #fff; pointer-events: none; }
.home-hero__content .container > * { pointer-events: auto; max-width: 660px; }
.home-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(250, 162, 26, .95); color: #0b2a4a; font-weight: 700; font-size: .875rem; margin: 0 0 14px; }
.home-hero__eyebrow .icon { width: 18px; height: 18px; }
.home-hero__title { color: #fff; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.01em; }
.home-hero__text { color: #e6ecf7; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; margin: 0 0 14px; }
.home-status { background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 10px 14px; margin: 0 0 18px; }
.home-status__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0; }
.home-status__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: #fff; font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.home-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .3); }
.home-status__chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #0b2a4a; font-weight: 600; font-size: .8125rem; text-decoration: none; }
.home-status__chip span { color: #4a5a70; font-weight: 500; }
.home-status__chip:hover { background: var(--c-accent); color: #0b2a4a; }
.home-status__chip--soon { background: rgba(255, 255, 255, .16); color: #fff; }
.home-status__chip--soon span { color: #dfe7f3; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.home-hero__search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff; color: var(--c-muted); }
.home-hero__search:focus-within { box-shadow: 0 0 0 3px var(--c-accent); }
.home-hero__search .icon { width: 20px; height: 20px; flex: none; }
.home-hero__search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; color: var(--c-text); outline: none; }
.home-hero__search .btn { border-radius: 999px; min-height: 44px; }
.home-hero__feature { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 84px; width: min(360px, 36vw); display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--c-text); text-decoration: none; box-shadow: var(--shadow); }
.home-hero__feature:hover { background: #fff; color: var(--c-text); }
.home-hero__feature:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.home-hero__feature-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #b36b00; }
.home-hero__feature-title { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-hero__feature-more { display: inline-flex; align-items: center; gap: 4px; color: var(--c-brand); font-weight: 600; font-size: .875rem; }
.home-hero__feature-more .icon { width: 16px; height: 16px; }
.home-hero .home-hero__stage .slider__controls { left: auto; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 28px; transform: none; z-index: 4; }
@media (max-width: 1023px) {
	.home-hero__stage { flex-direction: column; align-items: stretch; min-height: 0; }
	.home-hero__stage .slider__track { position: relative; order: 2; height: 260px; }
	.home-hero__content { order: 1; padding: var(--space-6) 0; background: #0b1f4d; }
	.home-hero__stage .slider__slide::after { background: linear-gradient(to top, rgba(6, 24, 46, .75), rgba(6, 24, 46, 0) 60%); }
	.home-hero__feature { left: var(--gutter); right: auto; bottom: 64px; width: auto; max-width: calc(100% - 2 * var(--gutter)); padding: 10px 14px; }
	.home-hero .home-hero__stage .slider__controls { right: var(--gutter); bottom: 12px; }
}
@media (max-width: 599px) {
	.home-hero__search { flex-wrap: wrap; border-radius: 16px; padding: 8px; }
	.home-hero__search .btn { width: 100%; }
	.home-hero__actions .btn { flex: 1 1 100%; }
}
/* Thanh thao tác bên phải: ẩn khi màn hình đầu đang hiện (đã có 2 nút chính), hiện lại khi cuộn xuống. */
@media (min-width: 1024px) {
	.action-rail { transition: transform .3s ease, opacity .3s ease; }
	body.hero-in-view .action-rail { transform: translateX(110%); opacity: 0; pointer-events: none; }
}

/* ---- Tiêu đề khung ---- */
.home-sec { padding-block: clamp(48px, 7vw, 88px); }
.home-head { max-width: 780px; margin: 0 auto var(--space-6); text-align: center; }
.home-head::before { content: ""; display: block; width: 56px; height: 3px; margin: 0 auto 14px; background: var(--c-accent); border-radius: 2px; }
.home-head__kicker { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.home-head__title { margin: 0; font-size: clamp(1.375rem, 1rem + 1.3vw, 2rem); letter-spacing: .04em; text-transform: uppercase; color: var(--c-brand); }
.home-head__lead { margin: 10px auto 0; max-width: 62ch; color: var(--c-muted); font-size: 1rem; }
.home-sec__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }

/* ---- Dấu ấn nổi bật + Bạn là ai? ---- */
.home-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 0; text-align: center; }
.home-stats__item { padding: 6px 16px; }
.home-stats__item + .home-stats__item { border-left: 1px solid var(--c-border); }
.home-stats__num { display: block; font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem); font-weight: 800; line-height: 1.1; color: var(--c-brand); }
.home-stats__label { display: block; max-width: 24ch; margin: 8px auto 0; color: var(--c-muted); font-size: .9375rem; line-height: 1.45; }
.home-stats__src { margin: 14px 0 var(--space-7); text-align: center; font-size: .8125rem; color: var(--c-muted); }
.home-persona__title { margin: 0 0 16px; text-align: center; font-size: 1.25rem; color: var(--c-text); }
.home-persona { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.home-persona__link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border: 1px solid var(--c-border); border-radius: 14px; background: #fff; color: var(--c-text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.home-persona__link:hover { border-color: var(--c-brand); box-shadow: var(--shadow-hover); color: var(--c-text); }
.home-persona__who { font-weight: 700; font-size: 1.0625rem; color: var(--c-brand); line-height: 1.3; }
.home-persona__desc { color: var(--c-muted); font-size: .9375rem; }
.home-persona__link .badge { align-self: flex-start; white-space: normal; }
.home-persona__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; color: var(--c-brand); font-weight: 600; font-size: .9375rem; }
.home-persona__more .icon { width: 16px; height: 16px; }
@media (max-width: 767px) { .home-stats__item + .home-stats__item { border-left: 0; } .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Ngành học ---- */
.home-chips { justify-content: center; margin: 0 0 24px; }
@media (max-width: 767px) {
	.home-rail { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
	.home-rail > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---- Học phí, học bổng ---- */
.home-fees { display: grid; gap: 20px; }
@media (min-width: 900px) { .home-fees { grid-template-columns: 1fr 1fr; } }
.home-fees__col { padding: 24px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; }
.home-fees__big { margin: 0 0 12px; color: var(--c-muted); }
.home-fees__big span { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.1; color: var(--c-brand); }
.home-fees__table { width: 100%; }
.home-fees__table th { text-align: left; font-weight: 500; }
.home-fees__table td { font-weight: 700; text-align: right; white-space: nowrap; }
.home-fees__note { margin: 10px 0 0; font-size: .8125rem; color: var(--c-muted); }
.home-fees__h { margin: 0 0 10px; font-size: 1.0625rem; color: var(--c-brand); }
.home-sch { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.home-sch__item { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 2px 14px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--c-brand-soft); }
.home-sch__value { grid-row: span 2; font-weight: 800; color: var(--c-brand); line-height: 1.3; }
.home-sch__name { font-weight: 700; }
.home-sch__note { font-size: .875rem; color: var(--c-muted); }
.home-sch--small .home-sch__item { background: #f6f7f9; }
@media (max-width: 479px) { .home-sch__item { grid-template-columns: 1fr; } .home-sch__value { grid-row: auto; } }

/* ---- Ra trường làm gì: khối so le ---- */
.home-stories { display: grid; gap: 20px; }
.home-story { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; }
@media (min-width: 768px) {
	.home-story { grid-template-columns: 300px 1fr; }
	.home-story--alt { grid-template-columns: 1fr 300px; }
	.home-story--alt .home-story__panel { order: 2; }
}
.home-story__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: linear-gradient(135deg, var(--c-brand), #0b1f4d); color: #fff; }
.home-story--alt .home-story__panel { background: linear-gradient(135deg, #faa21a, #f08a00); color: #0b2a4a; }
.home-story__num { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 800; line-height: 1; }
.home-story__numlabel { margin-top: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-story__body { padding: 24px 28px; }
.home-story__title { margin: 0 0 8px; font-size: 1.25rem; color: var(--c-brand); }
.home-story__text { margin: 0 0 12px; color: var(--c-muted); }
.home-abroad { margin-top: 28px; text-align: center; }
.home-abroad__title { margin: 28px 0 12px; font-size: 1.125rem; text-align: center; color: var(--c-text); }
.home-abroad .chips { justify-content: center; }
.chip--lg { min-height: 44px; padding: 0 16px; gap: 6px; font-size: .9375rem; }
.chip--lg .icon { width: 18px; height: 18px; }

/* ---- Cuộc sống sinh viên: ô ảnh có nhãn ---- */
.home-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.home-tile__link { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; background: #0b1f4d; }
.home-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-tile__link:hover .home-tile__img { transform: scale(1.04); }
.home-tile__label { position: absolute; inset: auto 0 0 0; padding: 48px 18px 18px; background: linear-gradient(to top, rgba(6, 24, 46, .9), rgba(6, 24, 46, 0)); color: #fff; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: .9375rem; }
.home-tile__link:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 599px) { .home-tile__link { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .home-tile__img { transition: none; } }

/* ---- Đăng ký: 3 bước, đối tác ---- */
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: none; }
.home-steps__item { padding: 22px; border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.home-steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--c-accent); color: #0b2a4a; font-weight: 800; }
.home-steps__t { margin: 0 0 6px; font-size: 1.0625rem; color: var(--c-brand); }
.home-steps__item p { margin: 0; color: var(--c-muted); font-size: .9375rem; }
.home-final__notify { max-width: 780px; margin: 36px auto 0; }
.home-partners { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--c-border); text-align: center; }
.home-partners__title { margin: 0 0 16px; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand); }
.home-partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.home-partners__list li { display: flex; flex-direction: column; min-width: 180px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; }
.home-partners__name { font-weight: 700; color: var(--c-text); }
.home-partners__kind { font-size: .8125rem; color: var(--c-muted); }
/* Màn hình đầu vừa laptop 768px: thu gọn chữ, trạng thái một dòng cuộn ngang. */
.home-stats__num { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); white-space: nowrap; }
@media (min-width: 1024px) and (max-height: 860px) {
	.home-hero__content { padding: var(--space-5) 0; }
	.home-hero__eyebrow { margin-bottom: 10px; }
	.home-hero__title { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); }
	.home-hero__text { font-size: 1rem; margin-bottom: 14px; }
	.home-hero__actions { margin-bottom: 14px; }
	.home-status { padding: 8px 12px; margin-bottom: 14px; }
	.home-status__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.home-status__row::-webkit-scrollbar { display: none; }
	.home-status__chip { flex: none; }
}
.home-status__label { flex: none; white-space: nowrap; }
@media (min-width: 1024px) {
	/* Tin tiêu biểu và nút điều khiển ở góc phải trên (góc phải dưới dành cho nút “Hỏi nhanh”). */
	.home-hero .home-hero__stage .slider__controls { top: 28px; bottom: auto; }
	.home-hero__feature { top: 84px; bottom: auto; }
}
@media (min-width: 1024px) and (max-height: 860px) {
	.home-status__row + .home-status__row { display: none; }
}
.home-fees > * { min-width: 0; }
@media (max-width: 599px) {
	.home-fees__col { padding: 16px; }
	.home-fees__table td { white-space: normal; }
	.home-fees__table th, .home-fees__table td { display: block; padding-inline: 0; text-align: left; }
	.home-fees__table td { padding-top: 0; }
}
.home-fees__table { min-width: 0; }
.home-stats__item { min-width: 0; }
@media (max-width: 1199px) { .home-stats__num { white-space: normal; overflow-wrap: anywhere; } }
/* Thanh thao tác khi màn hình đầu đang hiện: ẩn tại chỗ (không đẩy ra ngoài khung nhìn). */
@media (min-width: 1024px) {
	body.hero-in-view .action-rail { transform: none; visibility: hidden; opacity: 0; }
	.action-rail { transition: opacity .3s ease, visibility .3s; }
}

/* ---------- 1.8.0: Biểu mẫu tư vấn 3 bước ---------- */
.lead-progress { display: flex; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; counter-reset: none; }
.lead-progress__item { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-2); border-top: 4px solid var(--c-border); color: var(--c-muted); font-size: var(--fs-small); font-weight: 600; }
.lead-progress__num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); font-size: .8125rem; }
.lead-progress__label { overflow-wrap: anywhere; }
.lead-progress__item[aria-current="step"], .lead-progress__item.is-done { border-top-color: var(--c-brand); color: var(--c-text); }
.lead-progress__item[aria-current="step"] .lead-progress__num, .lead-progress__item.is-done .lead-progress__num { background: var(--c-brand); color: #fff; }
@media (max-width: 479px) { .lead-progress__item:not([aria-current="step"]) .lead-progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.lead-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-step + .lead-step { margin-top: var(--space-5); }
.lead-form--steps .lead-step[hidden] { display: none; }
.lead-step__title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 var(--space-4); padding: 0; color: var(--c-brand-dark); }
.lead-step__nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.field--choices { border: 0; padding: 0; }
.field--choices legend { font-weight: 600; font-size: .9375rem; margin-bottom: var(--space-2); padding: 0; }
.field--choices .chip { min-height: 44px; }
.chip--check:has(input:checked)::before { content: "✓"; font-weight: 700; }
.chip.is-disabled { opacity: .5; cursor: not-allowed; }
.field input[type="text"][name="birth_year"] { max-width: 10ch; }

/* ---------- 1.8.0: Trắc nghiệm chọn ngành ---------- */
.quiz-promise { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0 0 var(--space-5); padding: 0; font-weight: 600; }
.quiz-promise li { display: inline-flex; align-items: center; gap: var(--space-2); }
.quiz-promise .icon { width: 20px; height: 20px; color: var(--c-brand); flex: none; }
.quiz { max-width: 760px; padding: var(--space-5); border: 1px solid var(--c-border); border-top: 4px solid var(--c-accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
@media (min-width: 600px) { .quiz { padding: var(--space-6); } }
.quiz__progress { margin-bottom: var(--space-4); }
.quiz__count { margin: 0 0 var(--space-2); font-size: var(--fs-small); font-weight: 700; color: var(--c-muted); }
.quiz__track { display: block; height: 8px; border-radius: 999px; background: var(--c-brand-soft); overflow: hidden; }
.quiz__fill { display: block; height: 100%; width: 0; background: var(--c-brand); border-radius: inherit; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .quiz__fill { transition: none; } }
.quiz__q { border: 0; margin: 0 0 var(--space-5); padding: 0; min-width: 0; }
.quiz__q[hidden] { display: none; }
.quiz__legend { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 0 0 var(--space-4); padding: 0; }
.quiz__num { color: var(--c-brand); }
.quiz__opts { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .quiz__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz__opt { position: relative; margin: 0; }
.quiz__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz__opt label { display: flex; align-items: center; min-height: 56px; height: 100%; padding: var(--space-3) var(--space-4); border: 2px solid var(--c-border); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 500; overflow-wrap: anywhere; }
.quiz__opt label:hover { border-color: var(--c-brand); }
.quiz__opt input:checked + label { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-dark); font-weight: 700; }
.quiz__opt input:focus-visible + label { box-shadow: var(--focus); }
.quiz__subjects .chip { min-height: 44px; }
.quiz__hint, .quiz__note { font-size: var(--fs-small); color: var(--c-muted); }
.quiz__note { margin: var(--space-4) 0 0; }
.quiz__nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.quiz__nav [hidden] { display: none; }
.quiz-result { max-width: 860px; }
.quiz-result:focus { outline: none; }
.quiz-profile { padding: var(--space-5); border-radius: var(--radius); background: var(--c-brand-soft); margin-bottom: var(--space-5); }
.quiz-profile__lead { font-size: 1.125rem; margin: 0 0 var(--space-4); }
.quiz-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.quiz-bars__row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3.5rem; align-items: center; gap: var(--space-3); }
.quiz-bars__label { font-size: var(--fs-small); overflow-wrap: anywhere; }
.quiz-bars__track { display: block; height: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
.quiz-bars__fill { display: block; height: 100%; border-radius: inherit; background: #9aabd3; }
.quiz-bars__row.is-top .quiz-bars__fill { background: var(--c-brand); }
.quiz-bars__row.is-top .quiz-bars__label { font-weight: 700; }
.quiz-bars__value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .quiz-bars__row { grid-template-columns: minmax(0, 1fr) 3rem; } .quiz-bars__track { grid-column: 1 / -1; grid-row: 2; } }
.quiz-result__sub { font-size: 1.25rem; margin: var(--space-5) 0 var(--space-3); }
.quiz-majors { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.quiz-major { padding: var(--space-4) var(--space-5); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius); background: #fff; }
.quiz-major__title { font-size: 1.125rem; margin: 0 0 var(--space-2); }
.quiz-major__why, .quiz-major__jobs { margin: 0 0 var(--space-2); color: var(--c-muted); }
.quiz-major__jobs { display: flex; gap: var(--space-2); align-items: flex-start; }
.quiz-major__jobs .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.quiz-major__more { margin: 0; font-weight: 600; }
.quiz-result__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0 0; }

/* ---------- 1.8.0: Thanh hành động 5 mục; ẩn khi đang nhập liệu trên điện thoại ---------- */
@media (max-width: 1023px) {
	.action-rail ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
	body.is-typing .action-rail, body.is-typing .chatbot__launch, body.is-typing .zalo-float { display: none; }
}
.action-rail__link--compass { background: var(--c-brand-dark); }
.action-rail__link--compass:hover { background: var(--c-text); }

/* ---------- 1.7.7: Bài viết chuyên ngành – lưới chuyên mục con và menu con ---------- */
.section-grid { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Tối đa 3 cột cho tới khi màn hình đủ rộng để dải hành động bên phải không che cột cuối. */
@media (min-width: 1500px) { .section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--c-border); border-left: 4px solid var(--c-brand); border-radius: var(--radius); background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.section-card:hover, .section-card:focus-within { border-color: var(--c-brand); box-shadow: var(--shadow); }
.section-card__title { font-size: 1.0625rem; margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.section-card__link { color: var(--c-text); text-decoration: none; }
.section-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.section-card__link:focus-visible { outline: none; }
.section-card:has(.section-card__link:focus-visible) { box-shadow: var(--focus); }
.section-card__text { color: var(--c-muted); font-size: var(--fs-small); margin: 0 0 var(--space-3); }
.section-card__meta { margin: auto 0 0; }
.section-nav { border-bottom: 1px solid var(--c-border); background: var(--c-brand-soft); }
.section-nav__list { list-style: none; margin: 0; padding: var(--space-3) 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.section-nav .chip { min-height: 44px; white-space: nowrap; }
.section-nav .chip .icon { width: 16px; height: 16px; }
.section-nav .chip.is-active .chip__count { color: inherit; }
@media (max-width: 899px) {
	/* Điện thoại: một hàng cuộn ngang để không đẩy danh sách bài xuống quá xa. */
	.section-nav__list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
	.section-nav__list > li { flex: none; }
}
@media print { .section-nav { display: none; } }

/* ---------- 1.7.8: Video YouTube trong nội dung ([td_videos] / [td_video]) ---------- */
.video-grid { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: minmax(0, 1fr); margin: var(--space-4) 0 var(--space-2); }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video-embed { margin: 0; min-width: 0; }
.video-embed__label { display: inline-block; margin: 0 0 var(--space-2); padding: 2px 10px; border-radius: 999px; background: var(--c-brand); color: #fff; font-weight: 700; font-size: var(--fs-small); }
.video-embed__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1f4d; }
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-embed__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease, filter .2s ease; }
.video-embed__icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.video-embed__icon path:first-child { fill-opacity: .9; }
.video-embed__play:hover img { transform: scale(1.03); filter: brightness(.9); }
.video-embed__play:hover .video-embed__icon path:first-child, .video-embed__play:focus-visible .video-embed__icon path:first-child { fill-opacity: 1; }
.video-embed__play:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .video-embed__play img { transition: none; } .video-embed__play:hover img { transform: none; } }
.video-embed__caption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--c-muted); }
.video-grid__note { font-size: var(--fs-small); color: var(--c-muted); }
.prose .video-grid figure { margin: 0; }
@media print { .video-embed__frame { display: none; } }
/* Mục có neo (#video…): chừa chỗ cho thanh đầu trang 2 hàng trên máy tính. */
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 900px) { .prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 72px); } }
