/* ==========================================================================
   Học Lịch Sử – giao diện
   Bảng màu: đỏ sơn mài · vàng đồng · nền giấy dó
   ========================================================================== */

:root {
	--hls-red: #8e2a1e;
	--hls-red-700: #6f1f15;
	--hls-red-900: #3d110b;
	--hls-gold: #c9972b;
	--hls-gold-600: #a87a1c;
	--hls-gold-100: #f6ead0;
	--hls-ink: #231d19;
	--hls-ink-2: #4a3f37;
	--hls-muted: #75685d;
	--hls-paper: #fbf7f0;
	--hls-paper-2: #f4ede1;
	--hls-card: #ffffff;
	--hls-line: #e8ddcc;
	--hls-line-2: #d9cab3;

	--hls-serif: "Lora", Georgia, "Times New Roman", serif;
	--hls-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--hls-radius: 14px;
	--hls-radius-sm: 10px;
	--hls-shadow-sm: 0 1px 2px rgba(61, 17, 11, .06), 0 2px 8px rgba(61, 17, 11, .04);
	--hls-shadow: 0 2px 4px rgba(61, 17, 11, .05), 0 12px 32px rgba(61, 17, 11, .08);
	--hls-shadow-lg: 0 24px 60px rgba(30, 8, 4, .35);
	--hls-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Nền tảng ---------- */

body.hls {
	font-family: var(--hls-sans);
	color: var(--hls-ink-2);
	background: var(--hls-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.hls #wrapper,
.hls #main {
	background: var(--hls-paper);
}

.hls h1, .hls h2, .hls h3, .hls h4, .hls h5, .hls h6,
.hls .heading-font {
	font-family: var(--hls-serif);
	color: var(--hls-ink);
	letter-spacing: -.01em;
}

.hls a { color: var(--hls-red); }
.hls a:hover { color: var(--hls-red-700); }

.hls ::selection { background: var(--hls-gold-100); color: var(--hls-ink); }

.hls :focus-visible {
	outline: 2px solid var(--hls-gold);
	outline-offset: 2px;
}

.hls-icon { flex: none; vertical-align: middle; }

.hls-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 768px) { .hls-wrap { padding-inline: 24px; } }

/* ---------- Header Flatsome ---------- */

.hls .header-main {
	background: rgba(251, 247, 240, .92) !important;
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--hls-line);
}
.hls .header-wrapper.stuck .header-main { box-shadow: 0 6px 24px rgba(61, 17, 11, .08); }

.hls .header-nav-main > li > a,
.hls .nav-dropdown > li > a,
.hls .nav-dropdown .menu-item > a {
	font-family: var(--hls-sans);
	font-weight: 600;
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hls-ink-2);
}
.hls .header-nav-main > li > a:hover,
.hls .header-nav-main > li.active > a,
.hls .header-nav-main > li.current-menu-item > a {
	color: var(--hls-red);
}
.hls .header-nav-main > li.hls-menu-cta > a {
	background: var(--hls-red);
	color: #fff;
	padding: 0 18px;
	border-radius: 999px;
	line-height: 40px;
	margin-left: 6px;
	transition: background .2s;
}
.hls .header-nav-main > li.hls-menu-cta > a:hover { background: var(--hls-red-700); color: #fff; }

.hls .nav-dropdown {
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius-sm);
	box-shadow: var(--hls-shadow);
	padding: 8px;
}
.hls .nav-dropdown > li > a { border-radius: 8px; padding: 10px 14px; }
.hls .nav-dropdown > li > a:hover { background: var(--hls-paper-2); color: var(--hls-red); }

/* ---------- Chữ & nút dùng chung ---------- */

.hls-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--hls-sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hls-gold-600);
	margin-bottom: 10px;
}
.hls-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.hls-eyebrow--light { color: #e9c77a; }

.hls-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	font-family: var(--hls-sans);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .2s var(--hls-ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
	white-space: nowrap;
}
.hls-btn:hover { transform: translateY(-1px); }
.hls-btn--primary { background: var(--hls-red); color: #fff; box-shadow: 0 6px 18px rgba(142, 42, 30, .25); }
.hls-btn--primary:hover { background: var(--hls-red-700); color: #fff; }
.hls-btn--gold { background: var(--hls-gold); color: var(--hls-red-900); box-shadow: 0 6px 18px rgba(201, 151, 43, .3); }
.hls-btn--gold:hover { background: #d8a83c; color: var(--hls-red-900); }
.hls-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.hls-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: inherit; }

.hls-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
	color: var(--hls-red);
	text-decoration: none;
	white-space: nowrap;
}
.hls-link .hls-icon { transition: transform .2s var(--hls-ease); }
.hls-link:hover .hls-icon { transform: translateX(3px); }

.hls-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hls-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hls-gold-100);
	color: var(--hls-gold-600);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.5;
}
.hls-badge:hover { background: var(--hls-gold); color: #fff; }

/* ---------- Ô tìm kiếm ---------- */

.hls-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background: #fff;
	border: 1px solid var(--hls-line-2);
	border-radius: 999px;
	padding: 5px 5px 5px 46px;
	box-shadow: var(--hls-shadow-sm);
	transition: border-color .2s, box-shadow .2s;
	margin: 0;
}
.hls-search:focus-within { border-color: var(--hls-gold); box-shadow: 0 0 0 4px rgba(201, 151, 43, .18); }
.hls-search > .hls-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hls-muted);
}
.hls .hls-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 8px 0 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	font-family: var(--hls-sans);
	font-size: 16px;
	color: var(--hls-ink);
}
.hls .hls-search input[type="search"]::placeholder { color: #9b8e82; }
.hls .hls-search button {
	flex: none;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--hls-red);
	color: #fff;
	font-family: var(--hls-sans);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	line-height: 44px;
	cursor: pointer;
	transition: background .2s;
}
.hls .hls-search button:hover { background: var(--hls-red-700); }
@media (max-width: 479px) {
	.hls .hls-search button { padding: 0 16px; font-size: 14px; }
}

/* ==========================================================================
   Trang chủ
   ========================================================================== */

.hls-hero {
	position: relative;
	overflow: hidden;
	color: #f5e9de;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(201, 151, 43, .22), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(0, 0, 0, .35), transparent 60%),
		linear-gradient(135deg, var(--hls-red-700) 0%, var(--hls-red) 45%, #7a2318 100%);
	padding: 48px 0 56px;
}
/* Họa tiết vòng đồng (gợi mặt trống đồng) */
.hls-hero::before {
	content: "";
	position: absolute;
	width: 900px;
	height: 900px;
	right: -340px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background:
		repeating-radial-gradient(circle at center,
			rgba(233, 199, 122, .10) 0 1px,
			transparent 1px 28px),
		conic-gradient(from 0deg,
			rgba(233, 199, 122, .07) 0 2.5deg, transparent 2.5deg 15deg);
	-webkit-mask: radial-gradient(circle, #000 0 62%, transparent 70%);
	mask: radial-gradient(circle, #000 0 62%, transparent 70%);
	pointer-events: none;
}
.hls-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--hls-gold), transparent);
	opacity: .6;
}

.hls-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 36px;
	align-items: center;
}
@media (min-width: 992px) {
	.hls-hero { padding: 72px 0 80px; }
	.hls-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; }
}

.hls .hls-hero__title {
	color: #fff;
	font-size: clamp(32px, 5.2vw, 54px);
	line-height: 1.12;
	font-weight: 700;
	margin: 0 0 18px;
	text-wrap: balance;
}
.hls-hero__title em {
	font-style: italic;
	color: #f0cd80;
}
.hls-hero__lead {
	font-size: clamp(16px, 1.6vw, 18.5px);
	line-height: 1.65;
	color: rgba(255, 240, 228, .86);
	max-width: 36em;
	margin: 0 0 28px;
}

.hls-search--hero {
	max-width: 560px;
	border-color: transparent;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hls .hls-search--hero button { background: var(--hls-gold); color: var(--hls-red-900); }
.hls .hls-search--hero button:hover { background: #d8a83c; }

.hls-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.hls-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid rgba(240, 205, 128, .45);
	background: rgba(255, 255, 255, .06);
	color: #fbe9c4 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}
.hls-chip:hover { background: rgba(240, 205, 128, .18); border-color: #f0cd80; }

.hls-hero__facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(240, 205, 128, .22);
	max-width: 560px;
}
.hls-hero__facts li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.4;
	color: rgba(255, 240, 228, .72);
}
.hls-hero__facts .hls-icon { color: #f0cd80; margin-top: 1px; }
.hls-hero__facts strong { display: block; color: #fff; font-size: 14.5px; font-weight: 600; }
@media (max-width: 549px) {
	.hls-hero__facts { grid-template-columns: 1fr; gap: 14px; }
}

/* Thẻ chat */
.hls-chatcard {
	position: relative;
	background: var(--hls-card);
	border-radius: 20px;
	padding: 10px;
	box-shadow: var(--hls-shadow-lg);
	color: var(--hls-ink-2);
}
.hls-chatcard::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 21px;
	padding: 1px;
	background: linear-gradient(160deg, rgba(240, 205, 128, .9), rgba(240, 205, 128, 0) 40%, rgba(240, 205, 128, .5));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.hls-chatcard > p { margin: 0; }
.hls-chatcard > p:last-child,
.hls-chatcard > p + p {
	font-size: 13px;
	line-height: 1.5;
	color: var(--hls-muted);
	text-align: center;
	padding: 10px 8px 4px;
}
.hls-chatcard > p br { display: none; }
.hls-chatcard .mxchat-chatbot-wrapper {
	box-shadow: none !important;
	border-radius: 14px !important;
}
.hls-chatcard .mxchat-chatbot-wrapper:not(.floating-chatbot .mxchat-chatbot-wrapper) {
	height: 540px;
	max-height: 70vh;
	min-height: 420px;
}
@media (min-width: 992px) {
	.hls-chatcard .mxchat-chatbot-wrapper:not(.floating-chatbot .mxchat-chatbot-wrapper) { height: 580px; max-height: 76vh; }
}

/* ---------- Khu vực nội dung ---------- */

.hls-section { padding: 56px 0; }
@media (min-width: 992px) { .hls-section { padding: 80px 0; } }
.hls-section + .hls-section:not(.hls-section--tint) { padding-top: 0; }
.hls-section--tint {
	background:
		linear-gradient(var(--hls-paper-2), var(--hls-paper-2)) padding-box;
	border-block: 1px solid var(--hls-line);
}
.hls-section--tint + .hls-section { padding-top: 56px; }
@media (min-width: 992px) { .hls-section--tint + .hls-section { padding-top: 80px; } }

.hls-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.hls .hls-section__title {
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.2;
	margin: 0;
}
.hls .hls-section__title--sm { font-size: clamp(22px, 2.4vw, 26px); }

/* Khối lớp */
.hls-grades {
	display: grid;
	gap: 16px;
}
@media (min-width: 768px) { .hls-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.hls-grade {
	position: relative;
	display: flex;
	gap: 18px;
	padding: 24px;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius);
	text-decoration: none;
	color: inherit !important;
	overflow: hidden;
	transition: transform .25s var(--hls-ease), box-shadow .25s, border-color .25s;
}
.hls-grade::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--hls-red), var(--hls-gold));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--hls-ease);
}
.hls-grade:hover { transform: translateY(-3px); box-shadow: var(--hls-shadow); border-color: var(--hls-line-2); }
.hls-grade:hover::after { transform: scaleX(1); }
@media (min-width: 768px) { .hls-grade { flex-direction: column; padding: 28px; } }

.hls-grade__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--hls-red), var(--hls-red-700));
	color: #f6dc9f;
	font-family: var(--hls-serif);
	font-size: 28px;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(240, 205, 128, .35);
}
.hls-grade__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hls-grade__name { font-family: var(--hls-serif); font-size: 21px; font-weight: 700; color: var(--hls-ink); }
.hls-grade__desc { font-size: 14.5px; line-height: 1.6; color: var(--hls-muted); }
.hls-grade__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hls-red);
}

/* Loại tra cứu */
.hls-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (min-width: 640px) { .hls-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .hls-types { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }

.hls-type {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 20px;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius);
	text-decoration: none;
	color: inherit !important;
	transition: transform .25s var(--hls-ease), box-shadow .25s, border-color .25s;
}
.hls-type:hover { transform: translateY(-3px); box-shadow: var(--hls-shadow); border-color: var(--hls-gold); }
.hls-type__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: var(--hls-gold-100);
	color: var(--hls-red);
	transition: background .25s, color .25s;
}
.hls-type:hover .hls-type__icon { background: var(--hls-red); color: #f6dc9f; }
.hls-type__name { font-family: var(--hls-serif); font-size: 18px; font-weight: 700; color: var(--hls-ink); }
.hls-type__count { font-size: 13px; color: var(--hls-muted); }

/* Bộ lọc chữ cái */
.hls-az {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 24px 0 0;
}
.hls-az__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--hls-muted);
	margin-right: 6px;
}
.hls-az a {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 9px;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	color: var(--hls-ink-2);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.hls-az a:hover { border-color: var(--hls-red); color: var(--hls-red); }
.hls-az a.is-active { background: var(--hls-red); border-color: var(--hls-red); color: #fff; }

.hls-types + .hls-az + .hls-grid { margin-top: 32px; }

/* ---------- Lưới & thẻ ---------- */

.hls-grid {
	display: grid;
	gap: 16px;
}
@media (min-width: 640px) {
	.hls-grid--2, .hls-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
	.hls-grid { gap: 20px; }
	.hls-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hls-grid__full { grid-column: 1 / -1; }

.hls-card {
	position: relative;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius);
	padding: 20px 22px;
	transition: transform .25s var(--hls-ease), box-shadow .25s, border-color .25s;
}
.hls-card:hover { transform: translateY(-2px); box-shadow: var(--hls-shadow); border-color: var(--hls-line-2); }
.hls .hls-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 6px;
}
.hls-card__title a {
	color: var(--hls-ink) !important;
	text-decoration: none;
}
/* Cả thẻ có thể bấm */
.hls-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hls-card .hls-badge { position: relative; z-index: 1; }
.hls-card:hover .hls-card__title a { color: var(--hls-red) !important; }
.hls-card__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hls-muted); }
.hls-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.hls-card__type {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hls-gold-600);
}
.hls-card__time {
	font-family: var(--hls-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--hls-red);
	background: #fbeee9;
	padding: 2px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.hls-card--doc { display: flex; gap: 18px; align-items: flex-start; }
.hls-card--doc .hls-card__body { min-width: 0; flex: 1; }
.hls-card--doc .hls-card__type { margin-bottom: 4px; }
.hls-card--doc .hls-card__title { margin-bottom: 10px; }

.hls-doc-icon {
	flex: none;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 56px;
	height: 68px;
	border-radius: 8px 16px 8px 8px;
	background: #fbeee9;
	color: var(--hls-red);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
}
.hls-doc-icon--doc, .hls-doc-icon--docx { background: #e8f0fb; color: #2858a6; }
.hls-doc-icon--ppt, .hls-doc-icon--pptx { background: #fdf0e3; color: #b85314; }
.hls-doc-icon--xls, .hls-doc-icon--xlsx { background: #e6f4ea; color: #227a43; }

.hls-card--post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hls-card--post .hls-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.hls-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hls-paper-2); }
.hls-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hls-ease); }
.hls-card--post:hover .hls-card__thumb img { transform: scale(1.04); }

.hls-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 48px 24px;
	text-align: center;
	color: var(--hls-muted);
	background: var(--hls-card);
	border: 1px dashed var(--hls-line-2);
	border-radius: var(--hls-radius);
}
.hls-empty .hls-icon { color: var(--hls-gold); }
.hls-empty p { margin: 0; max-width: 36em; }

/* ---------- Kêu gọi giáo viên ---------- */

.hls-cta {
	position: relative;
	display: grid;
	gap: 24px;
	align-items: center;
	padding: 32px 24px;
	border-radius: 20px;
	color: #f5e9de;
	background:
		radial-gradient(600px 300px at 100% 0, rgba(201, 151, 43, .28), transparent 60%),
		linear-gradient(135deg, var(--hls-red-900), var(--hls-red-700));
	overflow: hidden;
}
@media (min-width: 900px) {
	.hls-cta { grid-template-columns: auto minmax(0, 1fr) auto; padding: 40px 44px; gap: 32px; }
}
.hls-cta__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: rgba(240, 205, 128, .14);
	color: #f0cd80;
	box-shadow: inset 0 0 0 1px rgba(240, 205, 128, .3);
}
.hls .hls-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 8px; }
.hls-cta p { margin: 0; color: rgba(255, 240, 228, .8); line-height: 1.65; max-width: 40em; }
.hls-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hls-cta .hls-btn--ghost { color: #fbe9c4; border-color: rgba(240, 205, 128, .5); }

/* ==========================================================================
   Trang danh sách & bài đọc
   ========================================================================== */

.hls-pagehead {
	position: relative;
	padding: 28px 0 32px;
	background:
		radial-gradient(700px 260px at 100% 0, rgba(201, 151, 43, .14), transparent 70%),
		var(--hls-paper-2);
	border-bottom: 1px solid var(--hls-line);
}
@media (min-width: 992px) { .hls-pagehead { padding: 40px 0 44px; } }
.hls .hls-pagehead__title {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}
.hls-pagehead__desc {
	margin: 12px 0 0;
	max-width: 46em;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--hls-muted);
}
.hls-pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hls-pagehead .hls-btn--ghost { color: var(--hls-red); }
.hls-pagehead .hls-btn--ghost:hover { background: #fff; }

.hls-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13.5px;
	color: var(--hls-muted);
	margin-bottom: 16px;
}
.hls-crumbs a { color: var(--hls-muted); text-decoration: none; }
.hls-crumbs a:hover { color: var(--hls-red); }
.hls-crumbs span { color: var(--hls-line-2); }

.hls-facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
}
.hls-facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid var(--hls-line);
	border-radius: 999px;
	font-size: 14px;
}
.hls-facts .hls-icon { color: var(--hls-gold-600); }
.hls-facts span { color: var(--hls-muted); }
.hls-facts strong { color: var(--hls-ink); font-weight: 600; }

.hls-archive { padding-top: 28px; padding-bottom: 64px; }
.hls-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.hls-toolbar .hls-search { max-width: 640px; }
.hls-toolbar .hls-az { margin: 0; }

.hls-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
}
.hls-tabs::-webkit-scrollbar { display: none; }
.hls-tabs a {
	flex: none;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	color: var(--hls-ink-2);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.hls-tabs a:hover { border-color: var(--hls-red); color: var(--hls-red); }
.hls-tabs a.is-active { background: var(--hls-ink); border-color: var(--hls-ink); color: #fff; }

.hls-subsection + .hls-subsection,
.hls-ad + .hls-subsection,
.hls-subsection + .hls-ad { margin-top: 44px; }

.hls-grade-ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	margin-bottom: 40px;
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	border-left: 4px solid var(--hls-gold);
	border-radius: var(--hls-radius);
}
.hls-grade-ask > .hls-icon { color: var(--hls-red); }
.hls-grade-ask > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.hls-grade-ask strong { color: var(--hls-ink); font-size: 16px; }
.hls-grade-ask span { color: var(--hls-muted); font-size: 14.5px; }

.hls-pagination { margin-top: 36px; }
.hls-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hls-pagination li { margin: 0; }
.hls-pagination a,
.hls-pagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--hls-line);
	background: var(--hls-card);
	color: var(--hls-ink-2);
	font-weight: 600;
	text-decoration: none;
}
.hls-pagination a:hover { border-color: var(--hls-red); color: var(--hls-red); }
.hls-pagination .current { background: var(--hls-red); border-color: var(--hls-red); color: #fff; }

/* Bài đọc 2 cột */
.hls-reading {
	display: grid;
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 72px;
}
@media (min-width: 1024px) {
	.hls-reading { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
}
.hls-article { min-width: 0; }
.hls-article__lead {
	font-size: 18px;
	line-height: 1.7;
	color: var(--hls-ink-2);
	margin: 0 0 24px;
}
.hls-article__figure { margin: 0 0 28px; }
.hls-article__figure img { width: 100%; border-radius: var(--hls-radius); }
.hls-article__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--hls-line);
}
.hls-article__foot .hls-btn { white-space: normal; text-align: left; }

.hls-pdf {
	position: relative;
	margin: 0 0 28px;
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius);
	overflow: hidden;
	background: var(--hls-paper-2);
	box-shadow: var(--hls-shadow-sm);
}
.hls-pdf iframe { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; }
@media (max-width: 767px) { .hls-pdf iframe { height: 70vh; min-height: 420px; } }

.hls-aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hls-aside__sticky { position: sticky; top: 110px; }
.hls-panel {
	background: var(--hls-card);
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius);
	padding: 20px 22px;
}
.hls .hls-panel__title {
	font-size: 17px;
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hls-line);
}
.hls-list { list-style: none; margin: 0; padding: 0; }
.hls-list li { margin: 0; border-bottom: 1px dashed var(--hls-line); }
.hls-list li:last-child { border-bottom: 0; }
.hls-list a {
	display: block;
	padding: 10px 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--hls-ink-2);
	text-decoration: none;
}
.hls-list a:hover { color: var(--hls-red); }

/* ---------- Nội dung văn bản (bài viết, trang, tra cứu) ---------- */

.hls-prose,
.hls.single-post .entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--hls-ink-2);
}
.hls-prose > :first-child { margin-top: 0; }
.hls-prose h2,
.hls.single-post .entry-content h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.3;
	margin: 1.8em 0 .6em;
}
.hls-prose h3,
.hls.single-post .entry-content h3 {
	font-size: clamp(19px, 2.2vw, 22px);
	margin: 1.6em 0 .5em;
}
.hls-prose p,
.hls.single-post .entry-content p { margin: 0 0 1.1em; }
.hls-prose strong,
.hls .entry-content strong { color: var(--hls-ink); }
.hls-prose blockquote,
.hls .entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--hls-gold);
	background: var(--hls-gold-100);
	border-radius: 0 var(--hls-radius-sm) var(--hls-radius-sm) 0;
	font-family: var(--hls-serif);
	font-style: italic;
	font-size: 1.05em;
	color: var(--hls-ink);
}
.hls .entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1.4em 0;
	font-size: 15.5px;
	line-height: 1.6;
	background: #fff;
	border: 1px solid var(--hls-line);
	border-radius: var(--hls-radius-sm);
	overflow: hidden;
}
.hls .entry-content th,
.hls .entry-content td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--hls-line);
	border-right: 1px solid var(--hls-line);
	vertical-align: top;
	text-align: left;
}
.hls .entry-content tr > :last-child { border-right: 0; }
.hls .entry-content tr:last-child > * { border-bottom: 0; }
.hls .entry-content thead th,
.hls .entry-content tr:first-child > td strong:only-child { color: var(--hls-red-700); }
.hls .entry-content thead th { background: var(--hls-paper-2); font-weight: 700; }
.hls .entry-content tbody tr:nth-child(even) td { background: #fdfbf7; }
@media (max-width: 767px) {
	.hls .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Trang thường: giới hạn độ rộng dòng để dễ đọc */
.hls-page { padding-top: 36px; padding-bottom: 72px; }
.hls-page > .hls-prose { max-width: 820px; margin-inline: auto; }
.hls-page--own-title { padding-top: 48px; }
.hls-page .hls-prose h1 {
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
	margin: 0 0 .8em;
	padding-bottom: .5em;
	border-bottom: 1px solid var(--hls-line);
}
.hls-page .hls-prose .row { margin-inline: 0; }
.hls-page .hls-prose img { border-radius: var(--hls-radius-sm); }

/* ---------- Quảng cáo ---------- */

.hls-ad {
	display: block;
	text-align: center;
	margin: 32px auto;
	clear: both;
}
.hls-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a99c90;
}
.hls-ad__unit { min-height: 90px; display: flex; justify-content: center; align-items: center; }
.hls-ad__unit > * { max-width: 100%; }
.hls-ad--home-top { margin-top: 32px; margin-bottom: 0; }
.hls-ad--home-top + .hls-section { padding-top: 40px; }
.hls-ad--sidebar { margin: 0; }
.hls-ad--sidebar .hls-ad__unit { min-height: 250px; }
.hls-ad--in-content,
.hls-ad--article-top,
.hls-ad--article-end { margin: 28px 0; }
.hls-ad--archive.hls-grid__full { margin: 8px 0; }
.hls-ad ins.adsbygoogle { display: block; width: 100%; }

/* ---------- Chân trang ---------- */

.hls #footer .footer-widgets,
.hls #footer .section {
	border-top: 1px solid var(--hls-line);
}
.hls .absolute-footer {
	background: var(--hls-red-900) !important;
	color: rgba(255, 240, 228, .7);
	font-size: 13.5px;
}
.hls .absolute-footer a { color: #f0cd80; }
.hls .absolute-footer strong { color: #fff; }

/* ---------- Giảm chuyển động ---------- */

@media (prefers-reduced-motion: reduce) {
	.hls *, .hls *::before, .hls *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
