/* NVP Trang chủ. Mọi thứ nằm trong .nth để không ảnh hưởng phần còn lại của web. */

.nth {
	--nth-ink: #14233d;
	--nth-ink-2: #0c1628;
	--nth-brass: #b47c22;
	--nth-brass-soft: #e6bf73;
	--nth-mist: #eef2f6;
	--nth-tile: #f4f6f9;
	--nth-line: #d8dfe8;
	--nth-text: #3c4a5d;
	--nth-sale: #b42318;
	--nth-zalo: #0068ff;
	--nth-radius: 12px;
	--nth-font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;

	font-family: var(--nth-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--nth-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.nth *, .nth *::before, .nth *::after { box-sizing: border-box; }
.nth p, .nth h1, .nth h2, .nth h3, .nth ul, .nth ol, .nth dl, .nth dd { margin: 0; padding: 0; }
.nth ul, .nth ol { list-style: none; }
.nth img { display: block; max-width: 100%; height: auto; }
.nth h1, .nth h2, .nth h3 { font-family: var(--nth-font); color: var(--nth-ink); text-transform: none; text-wrap: balance; }
.nth a { text-decoration: none; }

.nth .nth-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.nth .nth-section { padding: 96px 0; }

.nth .nth-h1 {
	font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.035em;
}
.nth .nth-h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.025em;
}

/* ---------- Nút ---------- */
.nth .nth-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nth a.nth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 26px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nth a.nth-btn-ink { background: var(--nth-ink); color: #fff; }
.nth a.nth-btn-ink:hover { background: var(--nth-ink-2); color: #fff; }
.nth a.nth-btn-line { color: var(--nth-ink); border-color: var(--nth-line); background: #fff; }
.nth a.nth-btn-line:hover { border-color: var(--nth-ink); color: var(--nth-ink); }
.nth a.nth-btn-zalo { background: var(--nth-zalo); color: #fff; }
.nth a.nth-btn-zalo:hover { background: #0052cc; color: #fff; }

.nth a.nth-more {
	flex: none;
	color: var(--nth-ink);
	font-weight: 600;
	border-bottom: 2px solid var(--nth-brass);
	padding-bottom: 2px;
	white-space: nowrap;
}
.nth a.nth-more:hover { color: var(--nth-brass); }

.nth a:focus-visible, .nth button:focus-visible, .nth .nth-track:focus-visible {
	outline: 3px solid var(--nth-brass);
	outline-offset: 3px;
}

/* ---------- Tiêu đề mỗi phần ---------- */
.nth .nth-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}
.nth .nth-head p { margin-top: 12px; max-width: 56ch; }

/* ---------- Đầu trang ---------- */
.nth .nth-hero { padding: 72px 0 88px; }
.nth .nth-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 64px;
	align-items: center;
}
.nth .nth-lead { margin-top: 22px; font-size: 1.1875rem; max-width: 44ch; }
.nth .nth-hero .nth-actions { margin-top: 32px; }
.nth .nth-facts { margin-top: 36px; display: grid; gap: 10px; }
.nth .nth-facts li { position: relative; padding-left: 28px; font-size: .9688rem; }
.nth .nth-facts li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 13px;
	height: 7px;
	border-left: 2.5px solid var(--nth-brass);
	border-bottom: 2.5px solid var(--nth-brass);
	transform: rotate(-45deg);
}

/* Một lần chuyển động khi trang mở: chữ hiện lên, dải danh mục trượt vào. */
@media (prefers-reduced-motion: no-preference) {
	.nth .nth-hero-copy > * { animation: nth-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.nth .nth-hero-copy > :nth-child(2) { animation-delay: .08s; }
	.nth .nth-hero-copy > :nth-child(3) { animation-delay: .16s; }
	.nth .nth-hero-copy > :nth-child(4) { animation-delay: .24s; }
	.nth .nth-hero-rail { animation: nth-slide .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
}
@keyframes nth-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nth-slide { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ---------- Dải kéo vuốt ---------- */
.nth .nth-rail { position: relative; }
.nth .nth-track {
	--gap: 20px;
	--cols: 4.3;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	gap: var(--gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 8px;
	margin: -4px -2px 0;
	-webkit-overflow-scrolling: touch;
}
.nth .nth-track::-webkit-scrollbar { display: none; }
/* Dải tràn ra mép phải màn hình, gợi ý còn thẻ phía sau. */
.nth .nth-track {
	--bleed: calc(max(0px, (100vw - 1240px) / 2) + 28px);
	margin-right: calc(-1 * var(--bleed));
	padding-right: var(--bleed);
	scroll-padding-right: var(--bleed);
}
.nth .nth-rail .nth-ctrl { margin-right: 0; }
.nth .nth-item { scroll-snap-align: start; min-width: 0; }
.nth .nth-track.is-draggable { cursor: grab; }
.nth .nth-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.nth .nth-track.is-dragging a { pointer-events: none; }
.nth .nth-track img { -webkit-user-drag: none; user-select: none; }

.nth .nth-rail.is-cats .nth-track { --cols: 1.65; --gap: 16px; }
.nth .nth-rail.is-courses .nth-track { --cols: 3; --gap: 24px; }
.nth .nth-rail.is-posts .nth-track { --cols: 3.25; --gap: 20px; }

.nth .nth-ctrl {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}
.nth .nth-ctrl[hidden] { display: none; }
.nth .nth-prev,
.nth .nth-next {
	flex: none;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--nth-line);
	background: #fff;
	cursor: pointer;
	padding: 0;
	transition: border-color .15s ease, opacity .15s ease;
}
.nth .nth-prev::before,
.nth .nth-next::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid var(--nth-ink);
	border-right: 2px solid var(--nth-ink);
}
.nth .nth-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.nth .nth-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.nth .nth-prev:hover,
.nth .nth-next:hover { border-color: var(--nth-ink); }
.nth .nth-prev:disabled,
.nth .nth-next:disabled { opacity: .35; cursor: default; border-color: var(--nth-line); }
.nth .nth-progress { flex: 1; height: 2px; background: var(--nth-line); border-radius: 2px; overflow: hidden; order: -1; }
.nth .nth-progress span {
	display: block;
	height: 100%;
	width: var(--w, 25%);
	transform: translateX(var(--x, 0));
	background: var(--nth-ink);
	border-radius: 2px;
}

/* ---------- Thẻ danh mục (đầu trang) ---------- */
.nth .nth-cat a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--nth-radius);
	background: var(--nth-tile);
	padding: 20px 22px 22px;
	color: var(--nth-ink);
}
.nth .nth-cat-media { display: block; aspect-ratio: 4 / 4.2; }
.nth .nth-cat-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.nth .nth-cat a:hover .nth-cat-img { transform: scale(1.04); }
.nth .nth-cat-name { display: block; margin-top: 14px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.nth .nth-cat-count { display: block; font-size: .875rem; color: var(--nth-text); }

/* ---------- Sản phẩm ---------- */
.nth .nth-shop { background: var(--nth-mist); }
.nth .nth-product-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: var(--nth-radius);
	padding: 14px;
	overflow: hidden;
}
.nth .nth-product-img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.nth .nth-product:hover .nth-product-img { transform: scale(1.04); }
.nth .nth-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--nth-sale);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
}
.nth .nth-product-label { margin-top: 14px; font-size: .8125rem; }
.nth .nth-product-title { margin-top: 2px; font-size: 1rem; line-height: 1.4; font-weight: 600; }
.nth .nth-product-label + .nth-product-title { margin-top: 2px; }
.nth .nth-product-media + .nth-product-title { margin-top: 14px; }
.nth .nth-product-title a {
	color: var(--nth-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nth .nth-product-title a:hover { color: var(--nth-brass); }
.nth .nth-product-price { margin-top: 6px; font-weight: 700; color: var(--nth-ink); font-variant-numeric: tabular-nums; }
.nth .nth-product-price del { font-weight: 400; font-size: .875rem; color: var(--nth-text); margin-right: 6px; }
.nth .nth-product-price ins { text-decoration: none; color: var(--nth-sale); }

/* ---------- Khóa học ---------- */
.nth .nth-courses { background: var(--nth-ink); color: rgba(255, 255, 255, .78); }
.nth .nth-courses .nth-h2 { color: #fff; }
.nth .nth-courses a.nth-more { color: #fff; border-color: var(--nth-brass-soft); }
.nth .nth-courses a.nth-more:hover { color: var(--nth-brass-soft); }
.nth .nth-courses .nth-prev,
.nth .nth-courses .nth-next { background: transparent; border-color: rgba(255, 255, 255, .3); }
.nth .nth-courses .nth-prev::before,
.nth .nth-courses .nth-next::before { border-color: #fff; }
.nth .nth-courses .nth-progress { background: rgba(255, 255, 255, .2); }
.nth .nth-courses .nth-progress span { background: #fff; }

.nth .nth-course a,
.nth .nth-course > div { display: block; color: inherit; }
.nth .nth-course-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--nth-radius);
	overflow: hidden;
	background: var(--nth-ink-2);
}
.nth .nth-course-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nth .nth-course a:hover .nth-course-img { transform: scale(1.04); }
.nth .nth-course-media::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(to top, rgba(12, 22, 40, .85), rgba(12, 22, 40, 0));
}
.nth .nth-course-name {
	position: absolute;
	left: 24px;
	bottom: 18px;
	z-index: 1;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
}
.nth .nth-course-body { display: block; padding: 16px 4px 0; }
.nth .nth-course-text { display: block; }
.nth .nth-course-price { display: block; margin-top: 8px; font-weight: 600; color: var(--nth-brass-soft); }

/* ---------- Bài viết ---------- */
.nth .nth-post a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--nth-line);
	border-radius: var(--nth-radius);
	overflow: hidden;
	color: var(--nth-text);
	background: #fff;
	transition: border-color .15s ease;
}
.nth .nth-post a:hover { border-color: var(--nth-ink); }
.nth .nth-post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.nth .nth-post-img { width: 100%; height: 100%; object-fit: cover; }
.nth .nth-post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.nth .nth-post-date { font-size: .8125rem; }
.nth .nth-post-title {
	margin-top: 8px;
	font-size: 1.1875rem;
	line-height: 1.35;
	font-weight: 600;
	color: var(--nth-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nth .nth-post-excerpt {
	margin-top: 10px;
	font-size: .9375rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nth .nth-post-read {
	margin-top: auto;
	padding-top: 18px;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--nth-ink);
}
.nth .nth-post a:hover .nth-post-read { color: var(--nth-brass); }

/* ---------- Giới thiệu ngắn ---------- */
.nth .nth-about { padding-top: 0; }
.nth .nth-prose > * { max-width: 760px; }
.nth .nth-prose > * + * { margin-top: 1em; }
.nth .nth-prose h2 { font-size: 1.5rem; }
.nth .nth-prose a { color: var(--nth-ink); text-decoration: underline; }

/* ---------- Liên hệ ---------- */
.nth .nth-contact { background: var(--nth-mist); }
.nth .nth-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: stretch;
}
.nth .nth-contact-grid.no-map { grid-template-columns: minmax(0, 1fr); }
.nth .nth-contact-info > p { margin-top: 12px; max-width: 44ch; }
.nth .nth-dl { display: grid; gap: 16px; margin: 28px 0; }
.nth .nth-dl dt { font-size: .875rem; }
.nth .nth-dl dd { font-weight: 600; color: var(--nth-ink); font-size: 1.0625rem; }
.nth .nth-dl dd a { color: inherit; }
.nth .nth-map-wrap { border-radius: var(--nth-radius); overflow: hidden; min-height: 360px; background: #dfe5ec; }
.nth .nth-map { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.nth .nth-member { margin-top: 28px; font-size: .9375rem; }
.nth a.nth-member-link { color: var(--nth-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }


/* ================= Đầu trang kiểu ảnh lớn ================= */
.nth .nth-cine {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
	padding: 88px 0 210px;
	background: var(--nth-ink-2);
	color: rgba(255, 255, 255, .82);
}
.nth .nth-cine-bg { position: absolute; inset: 0; z-index: -2; }
.nth .nth-cine-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.04); filter: saturate(.85); }
.nth .nth-cine-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(12, 22, 40, .94) 0%, rgba(12, 22, 40, .84) 38%, rgba(12, 22, 40, .62) 72%, rgba(12, 22, 40, .55) 100%),
		linear-gradient(0deg, rgba(12, 22, 40, .7) 0%, rgba(12, 22, 40, 0) 40%);
}
.nth .nth-cine-word {
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: 52px;
	margin: 0;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: clamp(5rem, 13.5vw, 15.5rem);
	line-height: .8;
	font-weight: 800;
	letter-spacing: -0.05em;
	color: rgba(255, 255, 255, .12);
	pointer-events: none;
	user-select: none;
}
.nth .nth-cine-grid {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 56px;
	align-items: center;
}
.nth .nth-cine-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--nth-brass-soft);
}
.nth .nth-cine-kicker::before { content: ""; width: 28px; height: 2px; background: var(--nth-brass-soft); }
.nth .nth-cine-kicker { flex-wrap: wrap; }
.nth .nth-cine-addr + .nth-cine-phone::before { content: "·"; margin-right: 10px; color: var(--nth-brass-soft); }
.nth a.nth-cine-phone { color: var(--nth-brass-soft); text-decoration: none !important; white-space: nowrap; }
.nth a.nth-cine-phone:hover { color: #fff; }
.nth .nth-cine .nth-h1 { color: #fff; font-size: clamp(2.25rem, min(1.4rem + 3.2vw, 8.5vh), 4rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 15ch; }
.nth .nth-cine .nth-lead { color: rgba(255, 255, 255, .8); }
.nth .nth-cine .nth-actions { margin-top: 32px; }
.nth a.nth-btn-brass { background: var(--nth-brass-soft); color: var(--nth-ink-2); }
.nth a.nth-btn-brass:hover { background: #f0cf8e; color: var(--nth-ink-2); }
.nth a.nth-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.nth a.nth-btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.nth .nth-cine .nth-facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nth .nth-cine .nth-facts li { color: rgba(255, 255, 255, .85); font-size: .9375rem; }
.nth .nth-cine .nth-facts li::before { border-color: var(--nth-brass-soft); }
.nth .nth-cine a:focus-visible { outline-color: var(--nth-brass-soft); }

.nth .nth-cine-stage { position: relative; justify-self: end; width: min(100%, 470px); }
.nth .nth-cine-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 3.8 / 5;
}
.nth .nth-cine-photo.is-fade {
	/* Viền mờ: ảnh tan dần vào nền ở cả 4 cạnh, không có đường viền cứng */
	-webkit-mask-image:
		linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%),
		linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%),
		linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
	mask-composite: intersect;
}
.nth .nth-cine-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Nhiều ảnh: chồng lên nhau, mờ dần sang ảnh sau */
.nth .nth-cine-photo.is-slides .nth-cine-photo-img {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.4s ease, transform 6s ease-out;
}
.nth .nth-cine-photo.is-slides .nth-cine-photo-img.is-on { opacity: 1; transform: scale(1); }
/* Xếp chồng 3D */
.nth .nth-cine-photo.is-stack {
	perspective: 1400px;
	perspective-origin: 30% 40%;
	cursor: pointer;
	/* Vừa chiều cao màn hình, chừa chỗ bên phải và phía trên cho các ảnh phía sau */
	width: min(100%, calc(56vh * .76));
	margin: 0 0 0 auto;
}
@media (min-width: 761px) {
	/* Chồng ảnh canh theo dòng tiêu đề (không canh giữa cột chữ dài) để luôn nằm trong màn hình */
	.nth .nth-cine-stage:has(.is-stack) { width: min(100%, 640px); padding: 40px 96px 0 0; align-self: start; }
	/* Ảnh rộng hơn, bớt cao: không bị co cụm ở giữa */
	.nth .nth-cine-photo.is-stack { width: min(100%, calc(60vh * 1.05)); aspect-ratio: 4 / 4.2; }
}
.nth .nth-cine-stack {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform .5s ease-out;
}
.nth .nth-cine-photo.is-stack .nth-cine-photo-img {
	position: absolute;
	inset: 0;
	border-radius: 22px;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .18);
	transform-origin: 50% 60%;
	transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity 1s ease, filter 1s ease;
	backface-visibility: hidden;
	will-change: transform, opacity;
	opacity: 0;
	transform: translate3d(140px, -70px, -320px) rotateY(-26deg) rotateZ(9deg);
}
.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="0"] { opacity: 1; z-index: 4; transform: translate3d(0, 0, 0) rotateY(-10deg) rotateZ(-1deg); filter: none; }
.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="1"] { opacity: .95; z-index: 3; transform: translate3d(46px, -24px, -90px) rotateY(-16deg) rotateZ(3deg); filter: brightness(.72); }
.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="2"] { opacity: .85; z-index: 2; transform: translate3d(92px, -48px, -180px) rotateY(-21deg) rotateZ(6deg); filter: brightness(.5); }
.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="out"] { opacity: 0; z-index: 5; transform: translate3d(-120px, 40px, 60px) rotateY(4deg) rotateZ(-10deg); }
.nth .nth-cine-photo.is-stack .nth-cine-photo-img:not([data-pos]):first-child { opacity: 1; transform: rotateY(-10deg); }

.nth .nth-cine-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.nth .nth-cine-dots span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .4s ease, background .4s ease; }
.nth .nth-cine-dots span.is-on { width: 22px; background: var(--nth-brass-soft); }
.nth .nth-cine-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 10px;
	max-width: 280px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 16px 36px -12px rgba(12, 22, 40, .55);
	color: var(--nth-text);
	text-decoration: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: transform .25s ease;
}
.nth a.nth-cine-card:hover { transform: translateY(-3px); }
.nth .nth-cine-card.is-1 { left: -72px; bottom: 48px; }
.nth .nth-cine-card.is-2 { right: -28px; top: 36px; }
.nth .nth-cine-card-img { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; }
.nth .nth-cine-card-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.nth .nth-cine-card-body strong { color: var(--nth-ink); font-size: .9375rem; }
.nth .nth-cine-card-body span { font-size: .8125rem; }

@media (prefers-reduced-motion: no-preference) {
	.nth .nth-cine-copy > * { animation: nth-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.nth .nth-cine-copy > :nth-child(2) { animation-delay: .06s; }
	.nth .nth-cine-copy > :nth-child(3) { animation-delay: .12s; }
	.nth .nth-cine-copy > :nth-child(4) { animation-delay: .18s; }
	.nth .nth-cine-copy > :nth-child(5) { animation-delay: .24s; }
	.nth .nth-cine-stage { animation: nth-rise 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
	.nth .nth-cine-word { animation: nth-word 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes nth-word { from { opacity: 0; letter-spacing: .02em; } to { opacity: 1; letter-spacing: -0.05em; } }

/* Dải danh mục ngay dưới ảnh lớn */
.nth .nth-catstrip { position: relative; z-index: 2; margin-top: -56px; padding-bottom: 32px; }
.nth .nth-rail.is-strip .nth-track { --cols: 4; --gap: 16px; }
.nth .nth-rail.is-strip .nth-cat a { background: #fff; box-shadow: 0 12px 30px -16px rgba(12, 22, 40, .35); border: 1px solid var(--nth-line); padding: 16px; }
.nth .nth-rail.is-strip .nth-cat-media { aspect-ratio: 5 / 4; }
.nth .nth-rail.is-strip .nth-cat-name { font-size: 1.25rem; margin-top: 10px; }

/* ================= Khách hàng ================= */
.nth .nth-rail.is-people .nth-track { --cols: 4.4; --gap: 16px; }
.nth .nth-person > a,
.nth .nth-person > div { display: block; color: inherit; text-decoration: none; }
.nth .nth-person-media { display: block; aspect-ratio: 3 / 4; border-radius: var(--nth-radius); overflow: hidden; background: var(--nth-tile); }
.nth .nth-person-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nth .nth-person > a:hover .nth-person-img { transform: scale(1.03); }
.nth .nth-person-body { display: block; padding: 12px 2px 0; }
.nth .nth-person-cap { display: block; font-weight: 600; color: var(--nth-ink); }
.nth .nth-person-note { display: block; margin-top: 4px; font-size: .875rem; font-style: italic; }

@media (max-width: 1024px) {
	.nth .nth-cine-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; }
	.nth .nth-cine-card.is-1 { left: -40px; }
	.nth .nth-cine-card.is-2 { right: -12px; }
	.nth .nth-rail.is-strip .nth-track { --cols: 3.2; }
	.nth .nth-rail.is-people .nth-track { --cols: 3.3; }
}
@media (max-width: 760px) {
	.nth .nth-cine { min-height: 0; padding: 40px 0 150px; }
	.nth .nth-cine-bg::after { background: linear-gradient(180deg, rgba(12, 22, 40, .8) 0%, rgba(12, 22, 40, .9) 55%, rgba(12, 22, 40, .97) 100%); }
	.nth .nth-cine-word { bottom: 58px; font-size: 18.5vw; color: rgba(255, 255, 255, .1); }
	.nth .nth-cine-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.nth .nth-cine .nth-h1 { font-size: 2.25rem; }
	.nth .nth-cine .nth-facts { display: grid; }
	.nth .nth-cine-stage { justify-self: center; width: 76%; padding-bottom: 36px; }
	.nth .nth-cine-photo.is-stack { width: 78%; margin: 30px auto 0 0; }
	.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="1"] { transform: translate3d(30px, -16px, -70px) rotateY(-14deg) rotateZ(3deg); }
	.nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="2"] { transform: translate3d(58px, -32px, -140px) rotateY(-18deg) rotateZ(6deg); }
	.nth .nth-cine-card { max-width: 230px; padding: 8px 12px 8px 8px; }
	.nth .nth-cine-card.is-1 { left: 50%; bottom: 0; transform: translateX(-50%); width: 112%; max-width: none; }
	.nth a.nth-cine-card.is-1:hover { transform: translateX(-50%); }
	.nth .nth-cine-card.is-2 { display: none; }
	.nth .nth-cine-card-img { width: 44px; height: 44px; }
	.nth .nth-catstrip { margin-top: -48px; }
	.nth .nth-rail.is-strip .nth-track { --cols: 2.3; }
	.nth .nth-rail.is-people .nth-track { --cols: 1.7; }
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1024px) {
	.nth .nth-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.nth .nth-rail.is-cats .nth-track { --cols: 2.4; }
	.nth .nth-track { --cols: 3.3; }
	.nth .nth-rail.is-courses .nth-track { --cols: 2.3; }
	.nth .nth-rail.is-posts .nth-track { --cols: 2.3; }
	.nth .nth-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
	.nth { font-size: 16px; }
	.nth .nth-wrap { padding: 0 18px; }
	.nth .nth-section { padding: 64px 0; }
	.nth .nth-hero { padding: 40px 0 56px; }
	.nth .nth-lead { font-size: 1.0625rem; }
	.nth .nth-actions { flex-direction: column; }
	.nth a.nth-btn { width: 100%; }
	.nth .nth-head { margin-bottom: 24px; }

	/* Dải tràn ra mép màn hình để thấy rõ còn thẻ phía sau. */
	.nth .nth-track { --bleed: 18px; --gap: 12px; }
	.nth .nth-rail.is-cats .nth-track { --cols: 1.55; }
	.nth .nth-track { --cols: 2.2; }
	.nth .nth-rail.is-courses .nth-track,
	.nth .nth-rail.is-posts .nth-track { --cols: 1.2; }
	.nth .nth-ctrl { display: none; }

	.nth .nth-cat a { padding: 16px; }
	.nth .nth-cat-name { font-size: 1.25rem; }
	.nth .nth-course-name { font-size: 1.875rem; }
	.nth .nth-map-wrap, .nth .nth-map { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	.nth *, .nth *::before, .nth *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Giao diện Astra có thể gạch chân link trong nội dung: bỏ gạch chân cho nút và thẻ. */
.nth a.nth-btn,
.nth a.nth-cine-card,
.nth a.nth-cine-card *,
.nth .nth-cat a,
.nth .nth-course a,
.nth .nth-person a,
.nth .nth-post a,
.nth .nth-product-media,
.nth .nth-product-title a {
	text-decoration: none !important;
}

/* ================= Phần đầu trang vừa đúng một màn hình (máy tính) =================
   Mọi kích thước co giãn theo chiều cao cửa sổ để tiêu đề, nút, ảnh luôn nằm gọn trong tầm mắt. */
@media (min-width: 761px) {
	body.nth-overlay-header .nth .nth-cine {
		height: calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--nth-tabbar-h, 0px));
		min-height: 500px;
		max-height: 1000px;
		padding: 84px 0 0;
		align-items: center;
	}
	body.nth-overlay-header .nth .nth-cine-grid { padding-bottom: 11vh; align-items: center; }
	body.nth-overlay-header .nth .nth-cine-kicker { margin-bottom: 1.6vh; font-size: clamp(.8125rem, 1.8vh, .9375rem); }
	body.nth-overlay-header .nth .nth-cine .nth-h1 { font-size: clamp(1.875rem, min(1.2rem + 3vw, 7vh), 4.25rem); }
	body.nth-overlay-header .nth .nth-cine .nth-lead { margin-top: 1.8vh; font-size: clamp(.9375rem, 2.3vh, 1.1875rem); }
	body.nth-overlay-header .nth .nth-cine .nth-actions { margin-top: 3vh; }
	body.nth-overlay-header .nth .nth-cine a.nth-btn { min-height: clamp(42px, 6.4vh, 52px); padding-top: 0; padding-bottom: 0; }
	body.nth-overlay-header .nth .nth-cine .nth-facts { margin-top: 2.6vh; gap: 6px 22px; }
	body.nth-overlay-header .nth .nth-cine .nth-facts li { font-size: clamp(.8125rem, 1.9vh, .9375rem); }
	body.nth-overlay-header .nth .nth-cine-word { font-size: min(13.5vw, 23vh); bottom: 2vh; }
	body.nth-overlay-header .nth .nth-cine-stage:has(.is-stack) { align-self: center; padding-top: 4vh; }
	body.nth-overlay-header .nth .nth-cine-photo.is-stack { width: min(100%, calc(56vh * 1.02)); aspect-ratio: 4 / 4.2; }
}
/* Cửa sổ rất thấp: chỉ giữ 2 điểm nổi bật */
@media (min-width: 761px) and (max-height: 640px) {
	body.nth-overlay-header .nth .nth-cine .nth-facts li:nth-child(n+3) { display: none; }
}

/* ================= Phần đầu trang vừa đúng một màn hình (điện thoại) =================
   Thứ tự: địa chỉ, tiêu đề, giới thiệu, chồng ảnh (co theo chỗ còn lại), 2 nút, điểm nổi bật.
   Trừ cả thanh điều hướng dưới cùng để nút không bị che. */
@media (max-width: 760px) {
	body.nth-overlay-header .nth .nth-cine {
		height: calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--nth-tabbar-h, 0px));
		min-height: 430px;
		max-height: 940px;
		padding: 66px 0 0;
		align-items: stretch;
	}
	body.nth-overlay-header .nth .nth-cine-grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		height: 100%;
		padding-bottom: max(14px, 2.4vh);
	}
	body.nth-overlay-header .nth .nth-cine-copy { display: contents; }
	/* Địa chỉ + số điện thoại nằm cùng hàng với logo, canh phải */
	body.nth-overlay-header .nth .nth-cine-grid { position: static; }
	body.nth-overlay-header .nth .nth-cine-kicker {
		position: absolute;
		z-index: 6;
		top: 8px;
		right: 18px;
		max-width: calc(100% - 150px);
		margin: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 1px;
		text-align: right;
		font-size: 12px;
		line-height: 1.3;
	}
	body.nth-overlay-header .nth .nth-cine-kicker::before { display: none; }
	body.nth-overlay-header .nth .nth-cine-addr + .nth-cine-phone::before { content: none; }
	body.nth-overlay-header .nth .nth-cine-sep { display: none; }
	body.nth-overlay-header .nth .nth-cine-part { display: block; }
	body.nth-overlay-header .nth .nth-cine-part + .nth-cine-part { color: rgba(255, 255, 255, .7); font-weight: 500; }
	body.nth-overlay-header .nth a.nth-cine-phone { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
	body.nth-overlay-header .nth .nth-cine .nth-h1 { order: 2; margin-top: 1vh; font-size: clamp(1.625rem, 4.3vh, 2.375rem); max-width: none; }
	body.nth-overlay-header .nth .nth-cine .nth-lead {
		order: 3;
		margin-top: 1.2vh;
		font-size: clamp(.875rem, 2.1vh, 1rem);
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	/* Khung ảnh lấy đúng phần chỗ còn lại; ảnh đặt tuyệt đối trong khung nên Safari tính chiều cao chính xác */
	body.nth-overlay-header .nth .nth-cine-stage {
		order: 4;
		position: relative;
		flex: 1 1 0;
		min-height: 120px;
		width: 100%;
		padding: 0;
		margin: 0;
	}
	body.nth-overlay-header .nth .nth-cine-photo {
		position: absolute;
		top: 3vh;
		left: 50%;
		height: calc(100% - 3vh - 18px);
		width: auto;
		max-width: 100%;
		margin: 0;
		translate: -50% 0;
	}
	/* Chừa chỗ bên phải cho các ảnh phía sau để cả chồng ảnh nằm giữa */
	/* Khung ảnh trải gần hết chiều ngang (chừa 40px bên phải cho các ảnh phía sau) */
	body.nth-overlay-header .nth .nth-cine-photo.is-stack { top: 4.5vh; height: calc(100% - 4.5vh - 18px); left: 0; right: 40px; width: auto; max-width: none; aspect-ratio: auto; translate: none; }
	body.nth-overlay-header .nth .nth-cine-photo.is-stack .nth-cine-photo-img { border-radius: 16px; }
	body.nth-overlay-header .nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="1"] { transform: translate3d(24px, -13px, -60px) rotateY(-13deg) rotateZ(3deg); }
	body.nth-overlay-header .nth .nth-cine-photo.is-stack .nth-cine-photo-img[data-pos="2"] { transform: translate3d(46px, -26px, -120px) rotateY(-17deg) rotateZ(6deg); }
	body.nth-overlay-header .nth .nth-cine-dots { position: absolute; left: 0; right: 0; bottom: 2px; margin: 0; }
	body.nth-overlay-header .nth .nth-cine .nth-actions { order: 5; flex-direction: row; gap: 10px; margin-top: 2vh; }
	body.nth-overlay-header .nth .nth-cine a.nth-btn {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		min-height: clamp(44px, 6.4vh, 52px);
		padding: 0 10px;
		font-size: 15px;
		white-space: nowrap;
	}
	body.nth-overlay-header .nth .nth-cine .nth-facts {
		order: 6;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 14px;
		margin-top: 1.6vh;
		/* Chỉ giữ một dòng: điểm nào không vừa sẽ rơi xuống dòng ẩn */
		flex: none;
		height: 20px;
		overflow: hidden;
	}
	body.nth-overlay-header .nth .nth-cine .nth-facts li { margin: 0; padding-left: 22px; font-size: 12.5px; line-height: 20px; white-space: nowrap; }
	body.nth-overlay-header .nth .nth-cine-word { bottom: 15vh; font-size: 21vw; }
	body.nth-overlay-header .nth .nth-cine-card { display: none; }
	body.nth-overlay-header .nth .nth-catstrip { margin-top: 0; padding-top: 28px; }
}
/* Điện thoại màn hình thấp: bỏ dòng điểm nổi bật, giới thiệu còn 2 dòng */
@media (max-width: 760px) and (max-height: 620px) {
	body.nth-overlay-header .nth .nth-cine .nth-facts { display: none; }
	body.nth-overlay-header .nth .nth-cine .nth-lead { -webkit-line-clamp: 2; }
}

/* =====================================================================
   Nội dung phía dưới (v1.9): nhịp gọn hơn, thẻ nổi 3D nghiêng theo chuột
   ===================================================================== */
.nth .nth-section { padding: clamp(56px, 6vw, 84px) 0; }
.nth .nth-head { margin-bottom: 28px; }
.nth .nth-head p { margin-top: 8px; }
/* Hai phần cùng nền trắng đứng liền nhau: không để khoảng trống gấp đôi */
.nth .nth-people + .nth-posts,
.nth .nth-posts + .nth-people,
.nth .nth-posts + .nth-about,
.nth .nth-people + .nth-about { padding-top: 0; }
.nth .nth-people:has(+ .nth-posts),
.nth .nth-posts:has(+ .nth-people) { padding-bottom: 48px; }

/* Dải kéo: chừa chỗ phía trên/dưới để thẻ nhấc lên và đổ bóng không bị cắt */
.nth .nth-track { padding-top: 18px; padding-bottom: 30px; margin-top: -18px; margin-bottom: -22px; }
.nth .nth-ctrl { margin-top: 18px; }

/* ---- Hiệu ứng 3D dùng chung ---- */
.nth [data-tilt] {
	--rx: 0deg; --ry: 0deg; --lift: 0px; --gx: 50%; --gy: 0%;
	position: relative;
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
	transform-style: preserve-3d;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.nth [data-tilt].is-tilting { transition: transform .1s linear, box-shadow .4s ease; }
@media (hover: hover) {
	.nth [data-tilt]:hover { --lift: -6px; }
}
/* Vệt sáng chạy theo chuột */
.nth [data-tilt]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%);
	opacity: 0;
	transition: opacity .35s ease;
}
.nth [data-tilt].is-tilting::after { opacity: 1; }

/* ---- Danh mục: thẻ có “đế” trắng, ảnh nổi lên khỏi mặt thẻ ---- */
.nth .nth-catstrip { padding-bottom: 8px; }
.nth .nth-rail.is-strip .nth-cat { border-radius: 22px; }
.nth .nth-rail.is-strip .nth-cat a {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto;
	column-gap: 10px;
	padding: 14px 14px 18px;
	border: 1px solid rgba(20, 35, 61, .08);
	border-radius: 22px;
	background: linear-gradient(160deg, #ffffff 0%, #f3f6fa 55%, #e8edf4 100%);
	box-shadow: 0 1px 0 #fff inset, 0 26px 46px -30px rgba(12, 22, 40, .6);
	transform-style: preserve-3d;
	transition: box-shadow .4s ease;
}
.nth .nth-rail.is-strip .nth-cat:hover a { box-shadow: 0 1px 0 #fff inset, 0 36px 60px -30px rgba(12, 22, 40, .7); }
.nth .nth-rail.is-strip .nth-cat-media {
	grid-column: 1 / -1;
	aspect-ratio: 4 / 3;
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 30px -22px rgba(12, 22, 40, .55);
	transform: translateZ(34px);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.nth .nth-rail.is-strip .nth-cat-img { mix-blend-mode: normal; }
.nth .nth-rail.is-strip .nth-cat a:hover .nth-cat-img { transform: scale(1.05); }
.nth .nth-rail.is-strip .nth-cat-name { grid-column: 1; margin-top: 14px; font-size: 1.25rem; transform: translateZ(20px); }
.nth .nth-rail.is-strip .nth-cat-count { grid-column: 1; font-size: .8125rem; transform: translateZ(14px); }
/* Mũi tên tròn bên phải tên danh mục */
.nth .nth-rail.is-strip .nth-cat a::after {
	content: "";
	grid-column: 2;
	grid-row: 2 / 4;
	align-self: center;
	width: 38px;
	height: 38px;
	margin-top: 12px;
	border-radius: 50%;
	background: var(--nth-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6bf73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transform: translateZ(26px);
	transition: background-color .2s ease;
}
.nth .nth-rail.is-strip .nth-cat a:hover::after { background-color: var(--nth-brass); }

/* ---- Sản phẩm: cả thẻ là một khối trắng nổi trên nền xám nhạt ---- */
.nth .nth-shop { background: linear-gradient(180deg, var(--nth-mist) 0%, #e6ebf2 100%); }
.nth .nth-product {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 40px -28px rgba(12, 22, 40, .55);
}
.nth .nth-product:hover { box-shadow: 0 34px 56px -30px rgba(12, 22, 40, .65); }
.nth .nth-product-media {
	border-radius: 14px;
	padding: 12px;
	overflow: visible;
	background: radial-gradient(110% 80% at 50% 20%, #ffffff 0%, #f4f6f9 100%);
	transform: translateZ(28px);
}
.nth .nth-product-img { mix-blend-mode: multiply; }
.nth .nth-product-label,
.nth .nth-product-title,
.nth .nth-product-price { padding: 0 4px; transform: translateZ(14px); }
.nth .nth-product-label { margin-top: 12px; text-transform: none; color: var(--nth-brass); font-weight: 600; }
.nth .nth-product-price { margin-top: auto; padding-top: 8px; font-size: 1.0625rem; }
.nth .nth-badge { z-index: 2; }

/* ---- Khóa học: nền tối có quầng sáng, thẻ ảnh bo lớn ---- */
.nth .nth-courses {
	background:
		radial-gradient(60% 70% at 85% 0%, rgba(230, 191, 115, .16) 0%, rgba(230, 191, 115, 0) 60%),
		radial-gradient(50% 60% at 0% 100%, rgba(80, 130, 200, .18) 0%, rgba(80, 130, 200, 0) 60%),
		var(--nth-ink);
}
.nth .nth-course { border-radius: 20px; }
.nth .nth-course-media { border-radius: 20px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8); }
.nth .nth-course-name { transform: translateZ(30px); }
.nth .nth-course-media { transform-style: preserve-3d; }
.nth .nth-rail.is-courses .nth-course-media { aspect-ratio: 4 / 4.4; }
.nth .nth-course-body { padding: 14px 4px 0; }

/* ---- Khách hàng ---- */
.nth .nth-person-media { border-radius: 18px; box-shadow: 0 20px 36px -26px rgba(12, 22, 40, .6); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
@media (hover: hover) {
	.nth .nth-person:hover .nth-person-media { transform: translateY(-6px); box-shadow: 0 30px 46px -26px rgba(12, 22, 40, .7); }
}
.nth .nth-person-body { padding-top: 10px; }

/* ---- Bài viết: thẻ gọn, nhãn chủ đề thay cho ảnh ---- */
.nth .nth-post a {
	border: 0;
	border-radius: 20px;
	background: var(--nth-tile);
	box-shadow: 0 0 0 1px rgba(20, 35, 61, .06) inset;
	transition: background-color .25s ease, box-shadow .35s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.nth .nth-post a:hover { background: #fff; box-shadow: 0 0 0 1px rgba(20, 35, 61, .06) inset, 0 28px 46px -30px rgba(12, 22, 40, .6); transform: translateY(-6px); }
.nth .nth-post-body { padding: 20px 22px 22px; }
.nth .nth-post-meta { display: flex; align-items: center; gap: 10px; font-size: .8125rem; }
.nth .nth-post-topic { padding: 3px 10px; border-radius: 999px; background: var(--nth-ink); color: var(--nth-brass-soft); font-weight: 600; font-size: .75rem; }
.nth .nth-post-title { margin-top: 12px; -webkit-line-clamp: 2; }
.nth .nth-post-excerpt { margin-top: 8px; -webkit-line-clamp: 2; }
.nth .nth-post-read { padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.nth .nth-post-read::after { content: "→"; transition: transform .2s ease; }
.nth .nth-post a:hover .nth-post-read::after { transform: translateX(4px); }

/* ---- Liên hệ: thông tin và bản đồ trong một khối nổi ---- */
.nth .nth-contact-grid { gap: 40px; }
.nth .nth-contact .nth-map-wrap { border-radius: 20px; box-shadow: 0 30px 50px -32px rgba(12, 22, 40, .6); }
.nth .nth-dl { margin: 22px 0; gap: 12px; }

@media (max-width: 760px) {
	.nth .nth-section { padding: 52px 0; }
	.nth .nth-head { margin-bottom: 20px; }
	.nth .nth-rail.is-strip .nth-cat a { padding: 10px 10px 14px; border-radius: 18px; }
	.nth .nth-rail.is-strip .nth-cat-media { transform: none; }
	.nth .nth-rail.is-strip .nth-cat-name { font-size: 1.0625rem; margin-top: 10px; }
	.nth .nth-rail.is-strip .nth-cat a::after { width: 30px; height: 30px; background-size: 15px; margin-top: 8px; }
	.nth .nth-product { padding: 8px 8px 14px; border-radius: 16px; }
	.nth .nth-product-media { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nth [data-tilt] { transform: none !important; }
}

/* ---- Danh mục: ảnh nhiều tầng (3 sản phẩm giá cao nhất xếp chồng, rê chuột thì xòe ra) ---- */
.nth .nth-rail.is-strip .nth-cat-media.is-layered {
	position: relative;
	padding: 0;
	background: none;
	box-shadow: none;
	transform: none;
	transform-style: preserve-3d;
	margin: 4px 0 2px;
}
.nth .nth-cat-layer {
	position: absolute;
	display: block;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 28px -18px rgba(12, 22, 40, .55), 0 0 0 1px rgba(20, 35, 61, .06);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
.nth .nth-cat-layer .nth-cat-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.nth .nth-cat-layer[data-layer="0"] { z-index: 3; top: 10%; bottom: 0; left: 21%; right: 21%; transform: translateZ(36px); }
.nth .nth-cat-layer[data-layer="1"] { z-index: 2; top: 6%; bottom: 14%; left: 0; right: 50%; transform: translateZ(10px) rotate(-8deg); filter: brightness(.97); }
.nth .nth-cat-layer[data-layer="2"] { z-index: 1; top: 6%; bottom: 14%; left: 50%; right: 0; transform: translateZ(10px) rotate(8deg); filter: brightness(.97); }
.nth .nth-cat-layer:only-child { inset: 0; transform: translateZ(30px); }
.nth .nth-rail.is-strip .nth-cat a:hover .nth-cat-img { transform: none; }
@media (hover: hover) {
	.nth .nth-cat:hover .nth-cat-layer[data-layer="0"] { transform: translateZ(54px) translateY(-6px); }
	.nth .nth-cat:hover .nth-cat-layer[data-layer="1"] { transform: translateZ(18px) translateX(-9%) rotate(-12deg); filter: none; }
	.nth .nth-cat:hover .nth-cat-layer[data-layer="2"] { transform: translateZ(18px) translateX(9%) rotate(12deg); filter: none; }
	.nth .nth-cat:hover .nth-cat-layer:only-child { transform: translateZ(44px) translateY(-4px); }
}
@media (max-width: 760px) {
	.nth .nth-cat-layer { padding: 5px; border-radius: 10px; }
	.nth .nth-cat-layer[data-layer="0"] { transform: none; }
	.nth .nth-cat-layer[data-layer="1"] { transform: rotate(-7deg); }
	.nth .nth-cat-layer[data-layer="2"] { transform: rotate(7deg); }
}

/* Ảnh bài viết lấy từ ảnh sản phẩm (nền trắng): hiện trọn, không cắt */
.nth .nth-post-img.is-contain { object-fit: contain; padding: 14px; background: #fff; }

/* 1.14.1: chuyển động mở trang chỉ dùng transform (không ẩn bằng opacity) để Google đo được ảnh/chữ chính (LCP) ngay. */
@keyframes nth-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes nth-slide { from { transform: translateX(60px); } to { transform: none; } }
@keyframes nth-word { from { letter-spacing: .02em; } to { letter-spacing: -0.05em; } }

/* 1.14.2: chỉ bật hít (scroll-snap) sau khi khách chạm/cuộn lần đầu. Hít ngay lúc tải làm trình duyệt tự cuộn dải thẻ, Google coi như khách đã cuộn nên không đo được LCP. */
.nth .nth-track:not(.is-snap) { scroll-snap-type: none; }
