/*
Theme Name: Truong Hero
Description: Nhat ky song cua mot doi nguoi. Khong gian toi, mot nguon sang, mot vet do.
Version: 4.0.57
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: truonghero
*/

:root {
	--black: #080808;
	--ink: #111;
	--line: rgba(255, 255, 255, .13);
	--white: #f3f1ec;
	--soft: #d9d6d0;
	--dim: #96938d;
	--red: #c8101a;
	--red-bright: #ef2b34;
	--serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
	--sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
	--gutter: clamp(20px, 7vw, 120px);
	--space: clamp(96px, 15vw, 220px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.7;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--red-bright); outline-offset: 4px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--red); color: #fff;
}

/* Vet do ngan: dau an cua ca trang */
.mark { display: block; width: 44px; height: 1px; background: var(--red-bright); }

.eyebrow {
	margin: 0;
	font-size: 12px; font-weight: 400;
	letter-spacing: .42em; text-transform: uppercase;
	color: var(--soft);
}

/* Thanh tren cung */
.bar {
	position: fixed; inset: 0 0 auto 0; z-index: 30;
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px var(--gutter);
	background: linear-gradient(rgba(8, 8, 8, .75), rgba(8, 8, 8, 0));
	transition: transform .35s ease;
}
.bar.is-hidden { transform: translateY(-110%); }
body.admin-bar .bar.is-hidden { transform: translateY(-200%); }
.bar__brand { font-size: 12px; font-weight: 400; letter-spacing: .42em; text-transform: uppercase; }
.bar__toggle {
	min-height: 44px; padding: 0 18px;
	background: var(--red); color: #fff;
	font-size: 11px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
	transition: background .2s ease;
}
.bar__toggle:hover { background: var(--red-bright); }

/* Chu so chi muc ben trai */
.index {
	position: fixed; left: clamp(14px, 2.2vw, 36px); top: 50%; z-index: 15;
	transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 12px;
	font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.index a { color: rgba(255, 255, 255, .34); transition: color .25s ease; }
.index a:hover { color: #fff; }
.index a.is-active { color: #fff; }
.index a.is-active::after { content: ""; display: block; width: 1px; height: 42px; margin: 10px 0 0 7px; background: var(--red-bright); }
@media (max-width: 1100px) { .index { display: none; } }

/* Tien do doc bai */
.thread {
	position: fixed; top: 0; left: 0; z-index: 40;
	width: 100%; height: 2px;
	background: var(--red-bright);
	transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* Menu toan man hinh */
.rooms-nav {
	position: fixed; inset: 0; z-index: 20;
	background: var(--black);
	padding: 96px var(--gutter) 40px;
	overflow-y: auto;
	visibility: hidden; opacity: 0;
	transition: opacity .3s ease, visibility .3s;
}
.rooms-nav.is-open { visibility: visible; opacity: 1; }
.rooms-nav ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gutter); }
.rooms-nav li { break-inside: avoid; }
.rooms-nav a {
	display: flex; gap: 18px; align-items: baseline; padding: 9px 0;
	font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-weight: 400; line-height: 1.2;
	transition: color .15s ease;
}
.rooms-nav a:hover { color: var(--red-bright); }
.rooms-nav small { flex: 0 0 1.8em; font-family: var(--sans); font-size: 12px; font-weight: 300; color: var(--dim); }

/* Mo dau */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translateX(21%); }
@media (max-width: 760px) { .hero__img { transform: translateY(-14%); } }
.hero__dark {
	position: absolute; inset: 0;
	--x: 50%; --y: 40%;
	background:
		radial-gradient(circle 42vmax at var(--x) var(--y), rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, .62) 58%, rgba(8, 8, 8, .9) 100%),
		linear-gradient(rgba(8, 8, 8, 0) 45%, var(--black) 92%);
}
.hero__body { position: relative; width: 100%; padding: 120px var(--gutter) clamp(36px, 6vw, 72px); }
.hero__title {
	margin: 0;
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(50px, 9.4vw, 158px);
	line-height: 1.02; letter-spacing: -.02em;
	text-shadow: 0 2px 34px rgba(8, 8, 8, .7);
}
.hero__body .mark { margin: clamp(22px, 3vw, 36px) 0 clamp(18px, 2.4vw, 26px); }
.hero__intro { margin: 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: clamp(32px, 5vw, 64px); }
.hero__down { font-size: 11px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; color: var(--soft); }
.hero__down:hover { color: var(--red-bright); }

/* Loi mo */
.manifesto { padding: var(--space) var(--gutter); text-align: center; }
.manifesto p:last-child {
	max-width: 21em; margin: 28px auto 0;
	font-family: var(--serif); font-size: clamp(32px, 4.6vw, 68px); font-weight: 400; line-height: 1.22; letter-spacing: -.01em;
}
.manifesto .mark { margin: 24px auto 0; }

/* Dau muc */
.section { padding: 0 var(--gutter) var(--space); }
.section__head { margin-bottom: clamp(44px, 6vw, 84px); text-align: center; }
.section__head .mark { margin: 16px auto 22px; }
.section__title { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; }

/* Hanh trinh */
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.chapter { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.05) contrast(1.05); transition: filter .7s ease, transform 1.4s ease; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 8, 8, 0) 34%, rgba(8, 8, 8, .78) 62%, rgba(8, 8, 8, .95) 100%); }
.chapter:hover img { filter: grayscale(1) brightness(1.4); transform: scale(1.04); }
.chapter__text { position: absolute; z-index: 1; left: clamp(18px, 2vw, 30px); right: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 28px); }
.chapter__no { font-size: 11px; font-weight: 400; letter-spacing: .34em; color: var(--soft); }
.chapter__title { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 56px); font-weight: 400; line-height: 1.1; }
.chapter__text .mark { margin: 14px 0 10px; transition: width .4s ease; }
.chapter:hover .mark { width: 88px; }
.chapter__meta { margin: 0; font-size: 14px; color: var(--soft); }

/* Dai anh toan man hinh */
.band { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; margin-bottom: var(--space); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--black), rgba(8, 8, 8, .12) 26%, rgba(8, 8, 8, .12) 74%, var(--black)); }
.band__text { position: relative; z-index: 1; padding: 0 var(--gutter); text-align: center; }
.band__text p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(42px, 7.6vw, 124px); line-height: 1.06; letter-spacing: -.02em; }
.band__text .mark { margin: 28px auto 0; }

/* Cac can phong */
.rooms-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rooms { list-style: none; margin: 0; padding: 0; }
.room a {
	display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; gap: 14px;
	padding: clamp(7px, .8vw, 11px) 0;
	transition: color .15s ease, transform .3s ease;
}
.room__no { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.room__name { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 52px); font-weight: 400; line-height: 1.16; }
.room__count { font-size: 13px; color: var(--dim); }
.room a:hover, .room a:focus-visible { color: var(--red-bright); transform: translateX(8px); }
.rooms-view { position: sticky; top: 90px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.rooms-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); opacity: 0; transition: opacity .6s ease; }
.rooms-view img.is-on { opacity: 1; }

/* Danh sach bai */
.entries { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; }
.entry { border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry a { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 24px; padding: clamp(24px, 2.8vw, 38px) 0; }
.entry__date { font-size: 13px; color: var(--dim); padding-top: .9em; font-variant-numeric: tabular-nums; }
.entry__title { display: block; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.18; transition: color .15s ease; }
.entry__excerpt { display: block; margin-top: 8px; color: var(--dim); font-size: 16px; line-height: 1.65; }
.entry a:hover .entry__title { color: var(--red-bright); }
.empty { color: var(--dim); font-size: 19px; text-align: center; }

/* Dau trang chuyen muc va bai */
.cover { position: relative; min-height: 76vh; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: clamp(56px, 7vw, 100px); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 8, 8, .25), rgba(8, 8, 8, .12) 40%, var(--black)); }
.cover__body { position: relative; z-index: 1; width: 100%; padding: 120px var(--gutter) clamp(24px, 3vw, 40px); }
.cover__title { margin: 14px 0 0; max-width: 15em; font-family: var(--serif); font-size: clamp(46px, 7.6vw, 118px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cover__body .mark { margin: 22px 0 16px; }
.cover__desc { margin: 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); }
.cover__desc p { margin: 0; }
.cover__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13px; color: var(--soft); }
.cover__meta a { color: var(--red-bright); }
.cover__meta a:hover { color: #fff; }
.list-wrap { padding: 0 var(--gutter); }
.pagination { padding: 40px var(--gutter) 0; }
.pagination .nav-links { display: flex; justify-content: center; gap: 22px; }
.pagination .current { color: var(--red-bright); }

/* Noi dung bai */
.prose { max-width: 720px; margin: 0 auto; padding: 0 20px; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.95; color: #e6e3dd; }
.prose > * { margin-top: 0; margin-bottom: 1.5em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin-top: 2em; color: var(--white); }
.prose h2 { font-size: 2.3em; }
.prose h3 { font-size: 1.7em; }
.prose strong { font-weight: 600; color: var(--white); }
.prose a { color: var(--red-bright); text-decoration: underline; text-underline-offset: .2em; }
.prose blockquote { margin: 2.4em 0; padding: 0; border: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.85em; line-height: 1.3; color: var(--white); }
.prose blockquote::after { content: ""; display: block; width: 44px; height: 1px; margin: 26px auto 0; background: var(--red-bright); }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; color: var(--dim); font-size: 14px; line-height: 1.5; text-align: center; }
.prose .alignwide, .prose .alignfull { max-width: none; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: var(--space) auto 0; padding: 0 var(--gutter); }
.article-nav a { display: block; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.article-nav a:hover { color: var(--red-bright); }
.article-nav small { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 12px; font-weight: 300; color: var(--dim); }
.article-nav__next { text-align: right; }

/* Chan trang */
.foot { position: relative; margin-top: var(--space); overflow: hidden; }
.foot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.foot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--black), rgba(8, 8, 8, .25) 40%, rgba(8, 8, 8, .85)); }
.foot__body { position: relative; z-index: 2; padding: clamp(140px, 20vw, 280px) var(--gutter) 28px; }
.foot__line { margin: 0 0 clamp(40px, 6vw, 80px); font-family: var(--serif); font-style: italic; font-size: clamp(38px, 6vw, 92px); line-height: 1.08; letter-spacing: -.015em; }
.foot__rooms { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--soft); }
.foot__rooms a:hover { color: #fff; }
.foot__copy { margin: 0; font-size: 12px; color: var(--dim); }

/* Ban 3: ngan nap, co dau muc, chia theo nam */
.hero { min-height: 84svh; }
.hero__title { font-size: clamp(46px, 7.4vw, 124px); }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: clamp(24px, 3vw, 36px); }
.hero__links a { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .35); font-size: 14px; font-weight: 400; transition: border-color .2s ease, color .2s ease; }
.hero__links a:hover { border-color: var(--red-bright); color: var(--red-bright); }
.section { padding-top: clamp(72px, 9vw, 130px); padding-bottom: 0; }
.section__head { text-align: left; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .mark { margin: 14px 0 18px; }
.band { margin: clamp(72px, 9vw, 130px) 0 0; min-height: 60vh; }

.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.room { border-bottom: 1px solid var(--line); }
.room a { grid-template-columns: 2.4em minmax(0, 1fr) auto; padding: 16px 0; align-items: start; }
.room a:hover, .room a:focus-visible { transform: none; }
.room__no { padding-top: .55em; }
.room__text { display: block; }
.room__name { display: block; font-size: clamp(25px, 2.2vw, 32px); }
.room__desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--dim); }
.room__count { padding-top: .5em; }

.years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.year { padding: 22px; background: var(--black); }
.year__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.year__no { font-family: var(--serif); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; transition: color .15s ease; }
.year__head:hover .year__no { color: var(--red-bright); }
.year__count { font-size: 13px; color: var(--dim); }
.year__list { list-style: none; margin: 12px 0 0; padding: 0; }
.year__list a { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: 15px; line-height: 1.45; }
.year__list a:hover { color: var(--red-bright); }
.year__list time { color: var(--dim); font-size: 13px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.year__empty { margin: 12px 0 0; color: var(--dim); font-size: 14px; }

.year-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vw, 44px); }
.year-nav a { padding: 7px 14px; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.year-nav a:hover { border-color: var(--white); }
.year-nav a.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.group-title { max-width: 1000px; margin: 40px auto 12px; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; }
.group-title:first-child { margin-top: 0; }
.list-wrap .entry a { grid-template-columns: 7em minmax(0, 1fr); }

.cover--small { min-height: 52vh; margin-bottom: clamp(32px, 4vw, 52px); }
.cover__title--post { max-width: 22em; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.12; margin-top: 0; }
.cover__meta, .cover__meta a { color: var(--soft); }
.cover__meta a:hover { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; font-size: 13px; color: var(--soft); }
.crumbs a:hover { color: #fff; }
.prose h3 { font-family: var(--sans); font-size: 1.05em; font-weight: 600; margin-top: 1.8em; margin-bottom: .6em; }
.prose > p { margin-bottom: 1.1em; }
.prose .wp-block-gallery { gap: 8px; }

.rooms-nav__label { margin: 0 0 12px; color: var(--dim); }
.rooms-nav__years { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 32px; padding: 0; }
.rooms-nav__years a { padding: 4px 0; }
.foot__rooms + .foot__rooms { margin-top: -12px; }

@media (max-width: 900px) {
	.rooms { grid-template-columns: 1fr; }
	.years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.years { grid-template-columns: 1fr; }
	.list-wrap .entry a { grid-template-columns: 1fr; }
}

/* Album va Google Keep */
.bar__nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); font-size: 13px; }
.bar__nav > a:hover { color: var(--red-bright); }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.album-card { display: block; }
.album-card__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card:hover .album-card__img img { transform: scale(1.04); }
.album-card__title { display: block; margin-top: 10px; font-size: 15px; font-weight: 400; line-height: 1.4; }
.album-card:hover .album-card__title { color: var(--red-bright); }
.album-card__meta { display: block; font-size: 13px; color: var(--dim); }
.group-title--wide { max-width: none; margin: 40px 0 16px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding: 0 var(--gutter); }
.album-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.album-grid img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .95); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; padding: 14px 18px; color: #fff; font-size: 26px; line-height: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bar__brand { letter-spacing: .2em; font-size: 11px; }
	.bar__toggle { padding: 0 10px; }
}
/* Kho luu tru: tren man nho chi giu Album, cac kho xem trong Muc luc */
.year-nav--sub { margin-top: calc(-1 * clamp(16px, 3vw, 30px)); }
.year-nav--sub a { font-size: 13px; padding: 5px 12px; }
.store-path { max-width: 760px; margin: 0 auto 18px; padding: 0 var(--gutter); font-size: 14px; color: var(--dim); }
@media (max-width: 1100px) {
	.bar__store { display: none; }
}

/* Hien dan */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Khi dang nhap */
body.admin-bar .bar, body.admin-bar .rooms-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bar, body.admin-bar .rooms-nav { top: 46px; } }
#wpadminbar #wp-admin-bar-truonghero-sealed > .ab-item { background: #c8101a; color: #fff; font-weight: 700; }

@media (max-width: 900px) {
	.chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rooms-wrap { grid-template-columns: 1fr; }
	.rooms-view { display: none; }
}
@media (max-width: 640px) {
	.rooms-nav ol { columns: 1; }
	.chapters { grid-template-columns: 1fr; }
	.chapter { aspect-ratio: 5 / 4; }
	.hero__foot { flex-direction: column; align-items: flex-start; }
	.band { min-height: 66vh; }
	.room a { grid-template-columns: 2em minmax(0, 1fr) auto; gap: 8px; }
	.entry a { grid-template-columns: 1fr; gap: 4px; }
	.entry__date { padding-top: 0; }
	.article-nav { grid-template-columns: 1fr; gap: 0; }
	.article-nav__next { text-align: left; }
	.eyebrow { letter-spacing: .3em; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.chapter img, .room a, .rooms-nav, .rooms-view img, .bar { transition: none; }
}

/* =========================================================================
   Ban 4: site gioi thieu. Nen toi den-do, chu de doc:
   tieu de Be Vietnam Pro, than bai Lora, co chu >= 17px, dong 60-75 ky tu.
   ====================================================================== */
:root {
	--read: "Lora", Georgia, "Times New Roman", serif;
	--head: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
	--measure: 42rem;
}

/* Menu tren cung: 6 muc tren may tinh, nut Menu tren dien thoai */
.bar { background: rgba(8, 8, 8, .9); backdrop-filter: blur(6px); }
.bar__brand { letter-spacing: .28em; }
.bar__menu { display: flex; gap: clamp(14px, 1.6vw, 26px); font-size: 14px; font-weight: 400; }
.bar__menu a { padding: 6px 0; border-bottom: 1px solid transparent; color: var(--soft); transition: color .15s ease, border-color .15s ease; }
.bar__menu a:hover { color: #fff; }
.bar__menu a.is-active { color: #fff; border-bottom-color: var(--red-bright); }
@media (max-width: 1080px) { .bar__menu { display: none; } }
.site-nav { columns: 1 !important; margin-bottom: 40px !important; }
.site-nav a { font-family: var(--head) !important; font-weight: 600 !important; font-size: clamp(26px, 4vw, 40px) !important; }
.private-nav { padding-top: 28px; border-top: 1px solid var(--line); }

/* Dau trang */
.page-head { max-width: var(--measure); margin: 0 auto; padding: clamp(110px, 14vw, 160px) 20px clamp(24px, 3vw, 36px); }
.page-title { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-head .mark { margin: 20px 0 18px; }
.page-desc { margin: 0 0 14px; font-family: var(--read); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--soft); }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 13px; color: var(--dim); }
.page-meta__private { color: var(--red-bright); }
.crumbs { font-size: 13px; color: var(--dim); }

/* Than bai */
.prose { max-width: var(--measure); font-family: var(--read); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.75; color: #e8e5df; }
.prose > p { margin-bottom: 1.15em; }
.prose h2 { font-family: var(--head); font-weight: 600; font-size: clamp(23px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.01em; margin: 2.2em 0 .7em; scroll-margin-top: 90px; }
.prose h3 { font-family: var(--head); font-weight: 600; font-size: clamp(18px, 1.4vw, 20px); margin: 1.8em 0 .5em; scroll-margin-top: 90px; }
.prose strong { font-weight: 600; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--red-bright); text-align: left; font-family: var(--read); font-style: italic; font-size: 1.06em; line-height: 1.7; color: var(--white); }
.prose blockquote::after { display: none; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote strong { font-style: normal; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--soft); }
.prose hr { margin: 2.6em 0 1.6em; }
.prose a { color: #fff; text-decoration-color: var(--red-bright); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-bright); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--head); font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--white); border-bottom-color: rgba(255, 255, 255, .3); }
.prose td:first-child { white-space: nowrap; }
mark.can { background: rgba(239, 43, 52, .16); color: #ffb9bc; padding: 1px 4px; font-family: var(--head); font-size: .86em; font-style: normal; }

/* Muc luc bai dai */
.toc { max-width: var(--measure); margin: 0 auto 2.4em; padding: 0 20px; }
.toc__label { margin: 0 0 8px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.toc ol { margin: 0; padding: 14px 0 14px 1.4em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; columns: 2; column-gap: 32px; }
.toc a { color: var(--soft); }
.toc a:hover { color: var(--red-bright); }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc--plain ol { list-style: none; padding-left: 0; }

/* Nut */
.btn { display: inline-block; padding: 12px 20px; background: var(--red); color: #fff !important; font-family: var(--head); font-size: 15px; font-weight: 400; text-decoration: none !important; transition: background .2s ease; }
.btn:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: transparent; border-color: var(--red-bright); color: var(--red-bright) !important; }

/* Danh sach bai viet va bo loc */
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--measure); margin: 2em auto 1.4em; padding: 0 20px; font-family: var(--head); }
.filters a { padding: 6px 12px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.filters a:hover { border-color: var(--white); color: #fff; }
.filters a.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.filters__sep { flex-basis: 100%; height: 0; }
.page .entries, .home-body .entries { max-width: var(--measure); padding: 0 20px; }
.home-body .entries { padding: 0; margin: 1em 0 1.4em; }
.page .entry a, .home-body .entry a { grid-template-columns: 6.5em minmax(0, 1fr); gap: 18px; padding: 20px 0; text-decoration: none; }
.page .entry__title, .home-body .entry__title { font-family: var(--head); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; color: var(--white); }
.page .entry__date, .home-body .entry__date { padding-top: .25em; font-family: var(--head); }
.entry__excerpt { font-family: var(--read); }
.entry__tags { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); }
@media (max-width: 560px) { .page .entry a, .home-body .entry a { grid-template-columns: 1fr; gap: 4px; } }

/* Cuoi bai */
.post-foot { max-width: var(--measure); margin: 2.4em auto 0; padding: 0 20px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.post-tags a { padding: 4px 10px; border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.post-tags a:hover { border-color: var(--red-bright); color: #fff; }
.next-card { display: block; margin-bottom: 22px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--head); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.35; }
.next-card small { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 400; color: var(--dim); }
.next-card:hover { color: var(--red-bright); }

/* Trang chu moi */
.home-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.home-hero__body { position: relative; width: 100%; max-width: 980px; padding: 130px var(--gutter) clamp(40px, 7vw, 80px); }
.home-hero__body h1 { margin: 0 0 22px; font-family: var(--head); font-weight: 700; font-size: clamp(40px, 7.4vw, 96px); line-height: 1.03; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(8, 8, 8, .7); }
.home-hero__body p { max-width: 34em; margin: 0 0 12px; font-family: var(--read); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--soft); }
.home-hero__body p:first-of-type { color: var(--white); }
.home-hero__body p:has(> a:only-child) { margin-top: 28px; }
.home-hero__body p > a:only-child { display: inline-block; padding: 13px 22px; background: var(--red); color: #fff; font-family: var(--head); font-size: 16px; transition: background .2s ease; }
.home-hero__body p > a:only-child:hover { background: var(--red-bright); }
.home-body { padding-top: clamp(40px, 6vw, 72px); }
.home-body h2 { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.home-body h2:first-child { margin-top: 0; }
.home-body ul, .home-body ol:not(.entries) { padding-left: 1.2em; }

/* Chan trang moi */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot::before { display: none; }
.foot__body { padding: clamp(48px, 7vw, 90px) var(--gutter) 28px; }
.foot__line { max-width: 20em; margin-bottom: 24px; font-family: var(--read); font-style: italic; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.3; }
.foot__body .btn { margin-bottom: 36px; }
/* Trang "Mọi người nói về mình": một câu trích, ảnh tin nhắn, nguồn. */
.prose .nx { margin: 0; padding: 2.6em 0; text-align: center; }
.prose .nx + .nx { border-top: 1px solid var(--line); }
.prose h2 + .nx { padding-top: 1.2em; }
.prose .nx__quote { margin: 0 auto .9em; max-width: 34rem; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; color: var(--white); }
.prose .nx img { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.prose .nx figcaption { margin-top: 12px; font-family: var(--head); font-size: 13px; letter-spacing: .04em; color: var(--dim); }
.prose .nx figcaption::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 10px 4px 0; background: var(--red-bright); vertical-align: middle; }

/* 4.0.4: bieu tuong mang xa hoi canh nut Ket noi */
.foot__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-bottom: 36px; }
.foot__body .foot__cta .btn { margin-bottom: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: var(--soft); transition: color .2s ease, border-color .2s ease; }
.social a:hover, .social a:focus-visible { color: #fff; border-color: var(--red-bright); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* 4.0.6: logo Xuân Trường + tên một dòng và nghĩa Hán Nôm ở trang chủ */
.bar__brand.logo { display: inline-flex; align-items: center; gap: 11px; letter-spacing: 0; text-transform: none; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: #080808; font-family: var(--head); font-weight: 900; font-size: 14px; letter-spacing: -.04em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .2s ease; }
.logo__word { display: flex; flex-direction: column; font-family: var(--head); font-weight: 800; font-size: 13px; line-height: 1.12; letter-spacing: .2em; text-transform: uppercase; }
.logo__a { color: var(--white); }
.logo__b { color: var(--red-bright); }
.bar__brand.logo:hover .logo__mark { background: var(--red-bright); }

.home-hero__body h1 { font-size: clamp(30px, 6.2vw, 80px); white-space: nowrap; margin-bottom: 26px; }
.name-meaning { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 34px); max-width: 46em; margin: 0 0 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.name-meaning__item { padding-left: 14px; border-left: 2px solid var(--red); }
.home-hero__body .name-meaning__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-family: var(--head); font-size: clamp(19px, 1.9vw, 26px); font-weight: 700; line-height: 1.2; color: var(--white); }
.name-meaning__han { font-family: "Noto Serif TC", "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif; font-weight: 700; color: var(--red-bright); }
.home-hero__body .name-meaning__text { margin: 0; font-family: var(--read); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.55; color: var(--soft); }
.home-hero__body .name-meaning__sum { grid-column: 1 / -1; margin: 18px 0 0; font-family: var(--read); font-style: italic; font-size: clamp(14px, 1.1vw, 15px); color: var(--soft); }
.name-meaning__sum strong { font-style: normal; color: var(--white); }
.home-hero__body .name-meaning ~ p { font-size: clamp(14px, 1.15vw, 16px); }
@media (max-width: 760px) {
	.name-meaning { grid-template-columns: 1fr; gap: 16px; }
	.logo__word { font-size: 12px; letter-spacing: .16em; }
	.logo__mark { width: 30px; height: 30px; font-size: 13px; }
}

/* 4.0.7: khối nghĩa tên dễ đọc trên ảnh, logo to hơn */
.name-meaning { max-width: min(660px, 47vw); padding: 20px 22px; border-top: 0; background: rgba(8, 8, 8, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.home-hero__body h1 { font-size: clamp(30px, 5.4vw, 74px); }
.home-hero__body .name-meaning__text { font-size: clamp(14px, 1.1vw, 15.5px); }
.home-hero__body .name-meaning ~ p { font-size: clamp(14px, 1.05vw, 15px); max-width: min(34em, 47vw); }
.logo__mark { width: 38px; height: 38px; font-size: 15px; }
.logo__word { font-size: 14px; }
@media (max-width: 760px) {
	.name-meaning, .home-hero__body .name-meaning ~ p { max-width: none; }
	.name-meaning { padding: 16px; }
	.logo__mark { width: 32px; height: 32px; font-size: 13px; }
	.logo__word { font-size: 12px; }
}

/* 4.0.9: logo một dòng – dấu X (nét mảnh trắng + nét đậm đen trên nền đỏ), "Xuân" serif nghiêng, "Trường" sans đậm đỏ */
.bar__brand.logo { gap: 12px; text-transform: none; letter-spacing: 0; }
.logo__mark { display: block; width: 38px; height: 38px; flex: none; background: none; box-shadow: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bar__brand.logo:hover .logo__mark { background: none; transform: rotate(-8deg) scale(1.05); }
.logo__word { flex-direction: row; align-items: baseline; gap: 7px; white-space: nowrap; line-height: 1; letter-spacing: 0; text-transform: none; }
.logo__a { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 29px; letter-spacing: .005em; color: var(--white); }
.logo__b { position: relative; font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: -.015em; color: var(--red-bright); }
.logo__b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: linear-gradient(90deg, var(--red-bright), transparent); transform-origin: left; transform: scaleX(.55); transition: transform .35s ease; }
.bar__brand.logo:hover .logo__b::after { transform: scaleX(1); }
@media (max-width: 760px) {
	.logo__mark { width: 32px; height: 32px; }
	.logo__a { font-size: 24px; }
	.logo__b { font-size: 16px; }
	.bar__brand.logo { gap: 10px; }
}

/* 4.0.10: menu chữ to, rõ, gọn */
.bar__menu { gap: clamp(18px, 1.9vw, 30px); font-family: var(--head); font-size: 16.5px; font-weight: 500; letter-spacing: .005em; }
.bar__menu a { position: relative; padding: 8px 0; border-bottom: 0; color: #e7e3dc; }
.bar__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-bright); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.bar__menu a:hover { color: #fff; }
.bar__menu a:hover::after, .bar__menu a.is-active::after { transform: scaleX(1); }
.bar__menu a.is-active { color: #fff; font-weight: 600; }
@media (max-width: 1200px) { .bar__menu { display: none; } }
.bar__menu { margin-left: 28px; }

/* 4.0.12: icon ket noi cuoi trang Lam viec voi minh */
.page-social { max-width: var(--measure, 720px); margin: 48px auto 0; padding: 28px 20px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.page-social p { margin: 0; font-weight: 700; font-size: 18px; color: #fff; }

/* 4.0.14: anh bang goi dong hanh, bam de phong to */
.prose .goi { margin: 1.6em 0; }
.prose .goi a { display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .2s ease; }
.prose .goi a:hover { transform: translateY(-2px); }
.prose .goi img { display: block; width: 100%; height: auto; }
.prose .goi figcaption { margin-top: .6em; font-size: 14px; color: var(--soft, #a9a49c); text-align: center; }
.lightbox--one .lightbox__prev, .lightbox--one .lightbox__next { display: none; }
.lightbox img { background: #fff; }

/* 4.0.15: cau dinh vi noi bat o trang Lam viec voi minh */
.prose .promise { position: relative; margin: 1.4em 0 2.2em; padding: 36px 40px 30px; border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--red-bright, #e5243b); border-radius: 16px; background: linear-gradient(135deg, rgba(200,16,46,.16), rgba(255,255,255,.03) 60%); }
.prose .promise__text { margin: 0; font-family: var(--head, inherit); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.45; font-weight: 600; color: #fff; }
.prose .promise__text strong { color: #fff; font-weight: 800; background: linear-gradient(transparent 62%, rgba(229,36,59,.55) 62%); }
.prose .promise__name { margin-top: 22px; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-bright, #e5243b); }
.prose .promise__name::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 12px; vertical-align: middle; background: currentColor; }
@media (max-width: 600px) { .prose .promise { padding: 28px 22px 24px; } }

/* 4.0.16: chu Truong cung font nghieng voi chu Xuan, van mau do */
.logo__b { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 29px; letter-spacing: .005em; }
@media (max-width: 760px) { .logo__b { font-size: 24px; } }

/* 4.0.17: trang Thanh qua - so lieu va anh chung minh */
.prose .proof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0 2.4em; }
.prose .proof-stats a { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--red-bright, #ef2b34); border-radius: 14px; background: rgba(255,255,255,.04); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.prose .proof-stats a:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.prose .proof-stats b { font-family: var(--head); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.05; color: #fff; letter-spacing: -.02em; }
.prose .proof-stats span { font-size: 14px; line-height: 1.4; color: var(--soft, #a9a49c); }
.prose .proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 1.4em 0 2.6em; counter-reset: proof; }
.prose .proof__item { margin: 0; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; background: #111; counter-increment: proof; }
.prose .proof__item a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; cursor: zoom-in; }
.prose .proof__item a::before { content: counter(proof, decimal-leading-zero); position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 8px; border-radius: 20px; font: 800 12px/1.5 var(--head); color: #fff; background: var(--red-bright, #ef2b34); }
.prose .proof__item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.prose .proof__item a:hover img { transform: scale(1.04); }
.prose .proof__item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
.prose .proof__item figcaption b { font-family: var(--head); font-size: 21px; font-weight: 800; line-height: 1.15; color: #fff; }
.prose .proof__item figcaption span { font-size: 13.5px; line-height: 1.35; color: #e8e5df; }
.prose .proof__item figcaption small { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--soft, #a9a49c); }
.prose .proof-wide { margin: 0 0 2.6em; }
.prose .proof-wide a { display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.prose .proof-wide img { display: block; width: 100%; height: auto; }
.prose .proof-wide figcaption { margin-top: .6em; font-size: 14px; text-align: center; color: var(--soft, #a9a49c); }
@media (max-width: 520px) { .prose .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .prose .proof__item figcaption b { font-size: 18px; } }

/* 4.0.18: menu nhom tha xuong */
.bar__menu { align-items: center; }
.menu-drop { position: relative; }
.menu-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.menu-drop__caret { width: 10px; height: 6px; opacity: .7; transition: transform .2s ease; }
.menu-drop:hover .menu-drop__caret, .menu-drop:focus-within .menu-drop__caret { transform: rotate(180deg); }
.menu-drop__list { position: absolute; top: 100%; left: -14px; z-index: 30; min-width: 230px; margin-top: 10px; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #0e0e0e; box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.menu-drop__list::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu-drop:hover .menu-drop__list, .menu-drop:focus-within .menu-drop__list { opacity: 1; visibility: visible; transform: none; }
.bar__menu .menu-drop__list a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15.5px; font-weight: 500; white-space: nowrap; color: #e7e3dc; }
.bar__menu .menu-drop__list a::after { display: none; }
.bar__menu .menu-drop__list a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-nav .site-nav__sub { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 20px; margin: -2px 0 16px 2.6em; padding: 0; }
.site-nav .site-nav__sub a { font-family: var(--sans) !important; font-size: 16px !important; font-weight: 400 !important; color: var(--soft); padding: 4px 0; }
.site-nav .site-nav__sub a:hover { color: var(--red-bright); }

/* 4.0.18: the anh muc Trai nghiem */
.prose .hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.8em 0 2.4em; }
.prose .hub__item { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); text-decoration: none; background: #111; }
.prose .hub__item img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.prose .hub__item:hover img { transform: scale(1.05); }
.prose .hub__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; font-size: 15px; line-height: 1.35; color: #e7e3dc; background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,0)); }
.prose .hub__item b { display: block; font-family: var(--head); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.prose .exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 1.4em 0 2.6em; }
.prose .exp-grid--sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.prose .exp { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #111; }
.prose .exp__pics { display: grid; grid-template-columns: 1fr; gap: 2px; aspect-ratio: 4 / 3; background: #000; }
.prose .exp__pics.n2 { grid-template-columns: 1fr 1fr; }
.prose .exp__pics.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.prose .exp__pics.n3 a:first-child { grid-row: span 2; }
.prose .exp__pics a { display: block; min-height: 0; overflow: hidden; cursor: zoom-in; }
.prose .exp__pics img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; transition: transform .35s ease; }
.prose .exp__pics a:hover img { transform: scale(1.05); }
.prose .exp__name { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 12px 16px 14px; font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; }
.prose .exp__name b { font-size: 13px; font-weight: 800; color: var(--red-bright, #ef2b34); }
.prose .exp--text { justify-content: flex-end; min-height: 90px; border-style: dashed; background: rgba(255,255,255,.03); }
/* 4.0.19: anh trong the luon giu khung 4:3, khong bi anh doc keo dai */
.prose .exp__pics { overflow: hidden; grid-auto-rows: minmax(0, 1fr); }
.prose .exp__pics a { position: relative; }
.prose .exp__pics img { position: absolute; inset: 0; }
/* 4.0.20: video trong the Trai nghiem */
.prose .exp__vid { position: relative; min-height: 0; overflow: hidden; background: #000; }
.prose .exp__vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.prose .exp__pics.n3 .exp__vid:first-child { grid-row: span 2; }
.prose .exp__name small { margin-left: auto; padding: 2px 8px; border-radius: 20px; font: 600 11px/1.6 var(--sans); color: #fff; background: var(--red-bright, #ef2b34); text-transform: uppercase; letter-spacing: .04em; }
/* 4.0.21: the co nhieu hon 3 anh: o thu 3 hien +N, anh con lai an, van xem duoc trong lightbox */
.prose .exp__more { display: none !important; }
.prose .exp__pics a[data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 26px/1 var(--head); color: #fff; background: rgba(0,0,0,.55); transition: background .2s ease; }
.prose .exp__pics a[data-more]:hover::after { background: rgba(0,0,0,.35); }
/* 4.0.22: so ghi chep kieu Google Keep (trang MBTI) */
.prose .keep-grid { columns: 2 260px; column-gap: 14px; margin: 1.4em 0 2.6em; }
.prose .keep { break-inside: avoid; margin: 0 0 14px; padding: 18px 20px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: #2a1d0c; }
.prose .keep--a { background: #3a2508; border-color: rgba(214,140,40,.35); }
.prose .keep--b { background: #10343d; border-color: rgba(70,170,190,.35); }
.prose .keep--c { background: #14382a; border-color: rgba(80,180,130,.35); }
.prose .keep--d { background: #2d1f3f; border-color: rgba(160,120,220,.35); }
.prose .keep h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; color: #fff; }
.prose .keep ol { margin: 0; padding-left: 1.35em; font-size: 15px; line-height: 1.55; color: #ece7df; }
.prose .keep li { margin: 2px 0; }
.prose .keep ul { margin: 4px 0 8px; padding-left: 1.1em; list-style: "→  "; color: #d9d2c7; }
.prose .keep b { color: #fff; }
.prose .keep__src { margin: 10px 0 0; font-size: 13px; color: #bdb5a8; }
.prose .promise ol { margin: 0; padding-left: 1.3em; font-family: var(--head, inherit); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; font-weight: 600; color: #fff; }
.prose .promise ol li { margin: 6px 0; }
.prose .promise ol strong { color: #fff; font-weight: 800; background: linear-gradient(transparent 62%, rgba(229,36,59,.55) 62%); }
/* 4.0.23: so ghi chep xep theo hang, dung thu tu nhu Keep */
.prose .keep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; columns: auto; }
.prose .keep { margin: 0; }
.prose .keep--wide { grid-column: 1 / -1; }
/* 4.0.24: Mau thuan trong toi - cac cap doi lap */
.prose .duality { display: grid; gap: 18px; margin: 1.6em 0 2em; }
.prose .duality__pair { margin: 0; padding: 22px 22px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #101010; }
.prose .duality__pair h3 { margin: 0 0 14px; font-size: clamp(20px, 2vw, 24px); color: #fff; }
.prose .duality__pair h3 span { font-weight: 400; color: var(--soft, #a9a49c); }
.prose .duality__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prose .duality__sides p { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 15.5px; line-height: 1.55; color: #e7e3dc; }
.prose .duality__sides b { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 15px; letter-spacing: .02em; color: #fff; }
.prose .duality__in { background: linear-gradient(160deg, rgba(40,90,170,.32), rgba(20,30,60,.35)); border: 1px solid rgba(90,140,230,.3); }
.prose .duality__out { background: linear-gradient(160deg, rgba(229,36,59,.30), rgba(90,30,10,.35)); border: 1px solid rgba(239,80,60,.35); }
.prose .duality__line { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--red-bright, #ef2b34); font-family: var(--head); font-size: clamp(16px, 1.6vw, 18px); font-weight: 600; line-height: 1.5; color: #fff; }
@media (max-width: 600px) { .prose .duality__sides { grid-template-columns: 1fr; } }
/* 4.0.24: diem manh, diem yeu: moi y mot the, tu khoa noi bat */
.prose .traits { display: grid; gap: 10px; margin: .8em 0 2em; }
.prose .trait { position: relative; padding: 14px 18px 14px 52px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.prose .trait::before { position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--head); color: #fff; }
.prose .trait--plus::before { content: "+"; background: #1f8a4c; }
.prose .trait--minus::before { content: "−"; background: var(--red-bright, #ef2b34); }
.prose .trait b { display: block; margin-bottom: 4px; font-family: var(--head); font-size: clamp(17px, 1.7vw, 19px); font-weight: 700; color: #fff; }
.prose .trait p { margin: 0; font-size: 16px; line-height: 1.6; color: #ddd8cf; }
/* 4.0.25: cau trich ban be (trang Gia tri) */
.prose .quotes { list-style: none; display: grid; gap: 12px; margin: 1.2em 0 1.8em; padding: 0; }
.prose .quotes li { margin: 0; padding: 16px 20px; border-left: 4px solid var(--red-bright, #ef2b34); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.04); font-family: var(--head); font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; line-height: 1.45; color: #fff; }
.prose .quotes li span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--soft, #a9a49c); }
/* 4.0.26: bang diem manh / diem yeu doi xung */
.prose .sw-wrap { margin: 1.2em 0 1.6em; overflow-x: auto; }
.prose .sw { width: 100%; border-collapse: separate; border-spacing: 8px 6px; table-layout: fixed; margin: 0 -8px; }
.prose .sw th { padding: 14px 16px; border-radius: 12px; font-family: var(--head); font-size: clamp(18px, 2vw, 22px); font-weight: 800; text-align: left; color: #fff; }
.prose .sw__plus { background: #1f6b40; }
.prose .sw__minus { background: #8f1a24; }
.prose .sw td { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); font-family: var(--head); font-size: clamp(15.5px, 1.6vw, 18px); font-weight: 600; line-height: 1.35; color: #fff; vertical-align: middle; }
.prose .sw td i { display: inline-block; min-width: 1.7em; font-style: normal; font-weight: 800; color: #6fd39a; }
.prose .sw td + td i { color: #ff7a85; }
@media (max-width: 520px) { .prose .sw td { padding: 10px; font-size: 14.5px; } .prose .sw td i { min-width: 1.4em; } }
/* 4.0.27: bang diem manh/yeu tren dien thoai: chu xuong dong, khong de len cot ben */
.prose .sw td, .prose .sw th { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) { .prose .sw { border-spacing: 5px 5px; margin: 0 -5px; } .prose .sw th { padding: 10px; font-size: 16px; } .prose .sw td { padding: 9px 10px; font-size: 14px; line-height: 1.35; } .prose .sw td i { display: block; min-width: 0; margin-bottom: 2px; font-size: 12px; } }
/* 4.0.30: cau chuyen ngan duoi moi the Trai nghiem, anh chan dung trang Toi la ai */
.prose .exp__note { margin: -6px 0 0; padding: 0 16px 16px; font-size: 14.5px; line-height: 1.55; color: var(--soft, #a9a49c); }
.prose .portrait { margin: 1.6em 0 2em; }
.prose .portrait a { display: block; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.prose .portrait img { width: 100%; max-height: 520px; margin: 0; border-radius: 16px; object-fit: cover; object-position: center 35%; }
.prose .portrait figcaption { margin-top: 10px; font-size: 14px; color: var(--soft, #a9a49c); }

/* 4.0.34: trang chu chia doi - chu ben trai tren nen den, anh ben phai ro net */
.home-hero { background: var(--black); }
@media (min-width: 961px) {
	.home-hero .hero__img { left: auto; right: 0; width: 42%; transform: none; object-position: 50% 0%; }
	.home-hero .hero__dark { background: linear-gradient(90deg, var(--black) 58%, rgba(8, 8, 8, .5) 60%, rgba(8, 8, 8, 0) 65%), linear-gradient(rgba(8, 8, 8, 0) 80%, var(--black) 100%); }
	.home-hero__body { max-width: 57%; }
	.home-hero__body h1 { font-size: clamp(34px, 4.3vw, 76px); text-shadow: none; }
	.name-meaning, .home-hero__body .name-meaning ~ p { max-width: 100%; }
	.name-meaning { background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 960px) {
	.home-hero { display: block; min-height: 0; }
	.home-hero .hero__img { position: relative; display: block; height: 62vh; transform: none; object-position: 50% 0%; }
	.home-hero .hero__dark { inset: 0 0 auto 0; height: 62vh; background: linear-gradient(rgba(8, 8, 8, 0) 60%, var(--black) 100%); }
	.home-hero__body { padding-top: 8px; }
	.name-meaning { background: rgba(255, 255, 255, .03); }
}
@media (max-width: 960px) { .name-meaning, .home-hero__body .name-meaning ~ p { max-width: none; } }

/* 4.0.37: the "Nhung cho chung noi khac nhau" (thay bang 2 cot bi lech) */
.prose .vs-list { display: grid; gap: 14px; margin: 1.4em 0 2.2em; }
.prose .vs { display: grid; grid-template-columns: 1fr 1.15fr; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; background: #101010; }
.prose .vs__q, .prose .vs__a { padding: 18px 20px; }
.prose .vs__q { background: rgba(255,255,255,.035); border-right: 1px solid rgba(255,255,255,.08); }
.prose .vs span { display: block; margin-bottom: 8px; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prose .vs__q span { color: #ff7a85; }
.prose .vs__a span { color: #6fd39a; }
.prose .vs p { margin: 0; font-family: var(--head); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55; color: #e7e3dc; }
.prose .vs__q p { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
	.prose .vs { grid-template-columns: 1fr; }
	.prose .vs__q { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.prose .vs__q, .prose .vs__a { padding: 14px 16px; }
}

/* 4.0.37: trang "Bai viet" chia 4 muc con */
.post-tags span { padding: 4px 10px; border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.cat-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 1.6em auto 3em; padding: 0 20px; }
.cat-hub__item { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 26px 26px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(160deg, #141414, #0c0c0c); text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.cat-hub__item:hover { border-color: var(--red-bright); transform: translateY(-2px); }
.cat-hub__no { font-family: var(--head); font-size: 14px; font-weight: 800; color: var(--red-bright); letter-spacing: .06em; }
.cat-hub__title { font-family: var(--head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; color: #fff; }
.cat-hub__desc { flex: 1; font-size: 15.5px; line-height: 1.6; color: #cfcac2; }
.cat-hub__count { font-family: var(--head); font-size: 14px; font-weight: 700; color: #fff; }
.cat-hub__item:hover .cat-hub__count { color: var(--red-bright); }
@media (max-width: 700px) { .cat-hub { grid-template-columns: 1fr; } .cat-hub__item { min-height: 0; padding: 20px; } }

/* 4.0.38: link tu Hanh trinh, Gia tri toi dung the anh (#id) */
.prose .exp[id] { scroll-margin-top: 110px; }
.prose .exp:target { border-color: var(--red-bright); box-shadow: 0 0 0 2px var(--red-bright), 0 18px 50px rgba(225, 29, 46, .25); animation: exp-flash 2.4s ease 1; }
@keyframes exp-flash { 0%, 40% { transform: scale(1.02); } 100% { transform: none; } }

/* 4.0.39: muc trong bai co anh minh chung (bam la mo anh) */
.prose a.proof-link { text-decoration: underline; text-decoration-color: rgba(239, 43, 52, .7); text-underline-offset: 3px; cursor: zoom-in; }
.prose a.proof-link::after { content: "ảnh"; display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: var(--red-bright); color: #fff; font-family: var(--head); font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: 2px; text-transform: uppercase; letter-spacing: .04em; }
.prose a.proof-link:hover { color: #fff; text-decoration-color: var(--red-bright); }

/* 4.0.40: doan "Bai hoc minh rut ra" / "Dieu do khien minh nhan ra" tach rieng */
.prose p.lesson { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red-bright); }
.prose p.lesson strong:first-child { display: block; margin-bottom: 4px; color: #fff; }

/* 4.0.41: anh mo dau moi la anh doc (mat o tren) - giu khuon mat khi cat */
#mo-dau .hero__img { object-position: 50% 10%; }

/* 4.0.42: dat mua ebook + cua so ma QR thanh toan (trang Lam viec voi minh) */
.order { max-width: var(--measure, 720px); margin: 56px auto 0; padding: 0 20px; }
.order h2 { margin: 0 0 18px; font-family: var(--head); font-size: clamp(24px, 2.4vw, 30px); color: #fff; }
.order__item { display: flex; gap: 22px; align-items: flex-start; padding: 22px; background: #111; border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--red); border-radius: 14px; }
.order__cover { width: 112px; flex: 0 0 112px; height: auto; border-radius: 4px; box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.order__body { min-width: 0; }
.order__kicker { margin: 0 0 4px; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-bright); }
.order__title { margin: 0 0 6px; font-family: var(--head); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; color: #fff; }
.order__meta { margin: 0 0 12px; font-size: 15px; color: var(--soft); }
.order__meta b { color: #fff; }
.order__steps { margin: 0 0 16px; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.order__steps b { color: #fff; }
.pay-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font-family: var(--head); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.pay-btn::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm2 2v4h4V5zm8-2h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4zm8-2h2v2h-2zm4 0h4v2h-4zm-4 4h2v4h-2zm4 0h2v2h2v4h-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm2 2v4h4V5zm8-2h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4zm8-2h2v2h-2zm4 0h4v2h-4zm-4 4h2v4h-2zm4 0h2v2h2v4h-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pay-btn:hover { background: var(--red-bright); transform: translateY(-1px); }
.order__note { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--soft); }
.order__note b { color: #fff; }
.pay-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pay-modal[hidden] { display: none; }
.pay-modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pay-modal__box { position: relative; width: min(380px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 18px; background: #fff; color: #111; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: payIn .22s ease; }
@keyframes payIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pay-modal__x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #666; cursor: pointer; }
.pay-modal__x:hover { color: #111; }
.pay-modal__h { margin: 0 0 10px; font-family: var(--head); font-size: 17px; font-weight: 700; text-align: center; }
.pay-modal__qr { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 12px; }
.pay-modal__info { margin: 0 0 14px; font-size: 14px; border-top: 1px solid #eee; }
.pay-modal__info div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eee; }
.pay-modal__info dt { color: #666; flex: 0 0 auto; }
.pay-modal__info dd { margin: 0; text-align: right; font-weight: 700; }
.pay-modal__info small { font-weight: 400; color: #666; }
.pay-copy { margin-left: 6px; padding: 3px 8px; border: 1px solid #c8102e; border-radius: 6px; background: #fff; color: #c8102e; font-size: 12px; font-weight: 700; cursor: pointer; }
.pay-copy.is-done { background: #c8102e; color: #fff; }
.pay-modal__zalo { display: block; padding: 11px; border-radius: 8px; background: #0068ff; color: #fff; text-align: center; font-family: var(--head); font-weight: 700; font-size: 15px; }
.pay-modal__zalo:hover { background: #0057d6; color: #fff; }
@media (max-width: 560px) {
	.order__item { flex-direction: column; }
	.order__cover { width: 96px; flex-basis: auto; }
}

/* 4.0.45: khu qua tang ebook (thay khu dat mua) */
.order__meta s { color: #8d8a85; margin-right: 8px; }
.gift__free { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; }
.gift__text { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.gift__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gift__read::before { -webkit-mask: none; mask: none; content: '\1F4D6'; background: none; width: auto; height: auto; font-size: 15px; }
.gift__read:hover { color: #fff; }
.gift__dl { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: #fff; font-family: var(--head); font-size: 15px; font-weight: 700; }
.gift__dl:hover { border-color: var(--red-bright); color: var(--red-bright); }
.pay-link { padding: 0; border: 0; background: none; color: var(--red-bright); font: inherit; text-decoration: underline; cursor: pointer; }

/* 4.0.46: anh rieng cho dien thoai - nguoi giua khung, dau cach vien */
.hero__pic { display: contents; }
@media (max-width: 960px) {
	.home-hero .hero__img { object-position: 50% 0%; }
}

/* 4.0.49: anh bia toan khung cho trang chi co chu (phong cach dien anh, den trang, diem do) */
.page-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; max-width: none; min-height: min(86vh, 860px); margin: 0; padding: 150px 20px clamp(64px, 8vw, 96px); text-align: center; overflow: hidden; background: var(--black); }
.page-cover__bg { position: absolute; inset: 0; z-index: -2; }
.page-cover__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.12) brightness(.7); transform: scale(1.06); animation: thCoverIn 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes thCoverIn { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1.06); } }
.page-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(ellipse 70% 60% at 50% 45%, rgba(8, 8, 8, .15), rgba(8, 8, 8, .78) 100%),
	linear-gradient(180deg, rgba(8, 8, 8, .82) 0%, rgba(8, 8, 8, .2) 22%, rgba(8, 8, 8, .35) 55%, var(--black) 100%); }
.page-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 120%, rgba(200, 16, 26, .28), transparent 55%); pointer-events: none; }
.page-cover__inner { max-width: 920px; animation: thCoverUp 1s .25s ease both; }
@keyframes thCoverUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-cover .crumbs { position: absolute; top: clamp(92px, 9vw, 110px); left: var(--gutter); right: var(--gutter); justify-content: flex-start; margin: 0; font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 241, 236, .62); }
.page-cover__kick { margin: 0 0 18px; font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red-bright); }
.page-cover .page-title { font-size: clamp(36px, 6.2vw, 78px); line-height: 1.06; letter-spacing: -.035em; color: #fff; text-shadow: 0 4px 40px rgba(8, 8, 8, .65); text-wrap: balance; }
.page-cover .mark { width: 56px; height: 2px; margin: 26px auto 22px; background: var(--red-bright); }
.page-cover .page-desc { max-width: 640px; margin: 0 auto 22px; color: rgba(243, 241, 236, .86); text-shadow: 0 1px 18px rgba(8, 8, 8, .8); }
.page-cover .page-meta { justify-content: center; gap: 10px; }
.page-cover .page-meta span { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(8, 8, 8, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--head); font-size: 13px; color: rgba(243, 241, 236, .88); }
.page-cover .page-meta .page-meta__private { color: var(--red-bright); }
.page-cover__down { position: absolute; bottom: 22px; left: 50%; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; }
.page-cover__down::after { content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red-bright); animation: thScroll 1.8s ease-in-out infinite; }
@keyframes thScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.page-cover + #noi-dung { display: block; scroll-margin-top: 70px; }
.page-cover ~ .toc, .page-cover ~ .prose { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) {
	.page-cover { min-height: 78svh; padding: 130px 18px 72px; }
	.page-cover .crumbs { top: 82px; font-size: 10.5px; letter-spacing: .1em; }
	.page-cover__kick { font-size: 11px; letter-spacing: .18em; }
	.page-cover .page-title { font-size: clamp(32px, 9vw, 44px); }
	.page-cover .page-meta span { padding: 6px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .page-cover__bg img, .page-cover__inner, .page-cover__down::after { animation: none; } }

/* =========================================================================
 * 4.0.50: trang Hoc tap — the danh sach phat YouTube
 * ====================================================================== */
.ht-nav {
	position: sticky; top: 0; z-index: 25; transition: top .35s ease;
	margin: clamp(8px, 2vw, 20px) 0 0;
	background: rgba(8, 8, 8, .92); backdrop-filter: blur(8px);
	border-top: 1px solid rgba(243, 241, 236, .08); border-bottom: 1px solid rgba(243, 241, 236, .08);
}
.ht-nav__list {
	display: flex; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter);
	list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ht-nav__list::-webkit-scrollbar { display: none; }
.ht-nav a {
	display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
	min-height: 40px; padding: 10px 16px; border-radius: 999px;
	font-family: var(--head); font-size: 13.5px; color: var(--soft);
	border: 1px solid rgba(243, 241, 236, .12);
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.ht-nav a small { font-size: 11px; color: var(--red-bright); letter-spacing: .08em; }
.ht-nav a:hover { color: var(--white); border-color: rgba(243, 241, 236, .35); }
.ht-nav a.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.ht-nav a.is-active small { color: #fff; opacity: .8; }

.ht-body { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 120px); }
.ht-group { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: 40px; }
.ht-group__head { display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-start; margin-bottom: clamp(22px, 3vw, 34px); }
.ht-group__no {
	font-family: var(--head); font-weight: 300; font-size: clamp(38px, 5vw, 60px); line-height: .9;
	color: var(--red-bright); letter-spacing: -.02em;
}
.ht-group__head h2 { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; margin: 0; color: var(--white); }
.ht-group__tag { margin: 6px 0 0; font-family: var(--read); font-style: italic; font-size: clamp(15px, 1.4vw, 17px); color: var(--dim); }
.ht-group__road { margin: 10px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-bright); }
.ht-sub {
	display: flex; align-items: center; gap: 14px;
	margin: 26px 0 16px; font-family: var(--head); font-size: 12px; font-weight: 500;
	letter-spacing: .24em; text-transform: uppercase; color: var(--soft);
}
.ht-sub::after { content: ""; flex: 1; height: 1px; background: rgba(243, 241, 236, .12); }

.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.ht-card { min-width: 0; }
.ht-card__in {
	display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
	background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
}
.ht-card__in.is-soon { cursor: default; }
.ht-card__shot {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
	background: linear-gradient(135deg, #1a1a1a, #0e0e0e); border: 1px solid rgba(243, 241, 236, .08);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.ht-card__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .5s ease, filter .35s ease; filter: brightness(.86); }
.ht-card__play {
	position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
	display: grid; place-items: center; border-radius: 50%;
	background: rgba(200, 16, 26, .92); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
	opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease;
}
.ht-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.ht-card__soon {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.ht-card__num {
	position: absolute; left: 10px; top: 10px; min-width: 34px; height: 34px; padding: 0 8px;
	display: grid; place-items: center; border-radius: 999px;
	background: var(--red); color: #fff; font-family: var(--head); font-weight: 600; font-size: 15px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.ht-card__name { display: block; margin-top: 12px; font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--white); transition: color .2s ease; }
.ht-card__desc { display: block; margin-top: 4px; font-family: var(--read); font-style: italic; font-size: 14px; line-height: 1.45; color: var(--dim); }
.ht-card__in[data-list]:hover .ht-card__shot,
.ht-card__in[data-list]:focus-visible .ht-card__shot { transform: translateY(-4px); border-color: rgba(239, 43, 52, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.ht-card__in[data-list]:hover img { transform: scale(1.07); filter: brightness(1); }
.ht-card__in[data-list]:hover .ht-card__play,
.ht-card__in[data-list]:focus-visible .ht-card__play { opacity: 1; transform: none; }
.ht-card__in[data-list]:hover .ht-card__name { color: var(--red-bright); }
.ht-card__in:focus-visible { outline: none; }
.ht-card__in:focus-visible .ht-card__shot { outline: 2px solid var(--red-bright); outline-offset: 3px; }
@media (hover: none) { .ht-card__play { opacity: .9; transform: none; width: 44px; height: 44px; margin: -22px 0 0 -22px; } }

.ht-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.ht-modal[hidden] { display: none; }
.ht-modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); backdrop-filter: blur(4px); }
.ht-modal__box { position: relative; width: min(1000px, 100%); animation: htIn .3s ease; }
@keyframes htIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ht-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ht-modal__t { margin: 0; font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--white); }
.ht-modal__x {
	flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 241, 236, .25);
	background: rgba(8, 8, 8, .6); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer;
}
.ht-modal__x:hover { background: var(--red); border-color: var(--red); }
.ht-modal__video { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.ht-modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ht-modal__yt {
	display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 20px;
	background: var(--red); color: #fff; border-radius: 999px;
	font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.ht-modal__yt:hover { background: var(--red-bright); }

@media (max-width: 760px) {
	.ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.ht-card__name { font-size: 14px; margin-top: 8px; }
	.ht-card__desc { font-size: 12.5px; }
	.ht-card__num { min-width: 28px; height: 28px; font-size: 13px; left: 7px; top: 7px; }
	.ht-nav a { min-height: 38px; padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.ht-card__shot, .ht-card__shot img, .ht-card__play, .ht-modal__box { transition: none; animation: none; }
}

/* 4.0.52: anh bia thap con khoang mot nua (may tinh va dien thoai) */
.page-cover { min-height: min(46vh, 470px); padding: 128px 20px clamp(36px, 4vw, 52px); }
.page-cover .crumbs { top: 88px; }
.page-cover__kick { margin-bottom: 12px; }
.page-cover .page-title { font-size: clamp(32px, 4.6vw, 58px); }
.page-cover .mark { margin: 18px auto 16px; }
.page-cover .page-desc { margin-bottom: 16px; font-size: clamp(16px, 1.3vw, 18px); }
.page-cover__down { display: none; }
@media (max-width: 760px) {
	.page-cover { min-height: 42svh; padding: 112px 18px 32px; }
	.page-cover .crumbs { top: 80px; }
	.page-cover__kick { margin-bottom: 10px; }
	.page-cover .page-title { font-size: clamp(28px, 8vw, 36px); }
	.page-cover .mark { margin: 14px auto 12px; }
	.page-cover .page-desc { font-size: 15.5px; line-height: 1.55; margin-bottom: 12px; }
}

/* 4.0.53: menu 7 muc (them Hoc tap) khong xuong dong tren may tinh 1200-1500px */
.bar__menu > a, .bar__menu > .menu-drop > a { white-space: nowrap; }
@media (max-width: 1500px) {
	.bar__menu { gap: clamp(12px, 1.25vw, 20px); margin-left: 20px; font-size: 15px; }
}
@media (max-width: 1320px) { .bar__menu { display: none; } }
