/* Giới thiệu 2027 – template-about-2027.php, loaded after site-2027.css and blocks-2027.css.
   Also loaded by template-services-2027.php (Dịch vụ), which reuses the hero and the article styles.
   The page body is Classic Editor HTML written by the content team, so everything inside .vmt-about-content
   styles plain tags (h2-h4, p, lists, [caption] figures, tables) rather than classes. */

.vmt-about-body {
	margin: 0;
	background: #ffffff;
}

/* The 2027 header is fixed; this page has no full-bleed hero to slide under it. */
.vmt-about-main {
	padding-top: var(--header-h);
}

/* ---------- Hero ---------- */
.vmt-about-hero {
	padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px);
	background:
		radial-gradient(
			55% 120% at 100% 0%,
			rgba(255, 68, 11, 0.1),
			rgba(255, 68, 11, 0) 70%
		),
		var(--tint);
}
.vmt-about-hero-inner {
	display: grid;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}
.vmt-about-hero.has-image .vmt-about-hero-inner {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.vmt-about-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--ink-3);
	font-size: 14px;
}
.vmt-about-crumbs a {
	color: var(--ink-2);
	transition: color 0.2s;
}
.vmt-about-crumbs a:hover {
	color: var(--accent-strong);
}
.vmt-about-crumbs .vmt-h27-icon {
	width: 12px;
	height: 12px;
}
.vmt-h27 .vmt-about-title {
	max-width: 18em;
	margin: 18px 0 30px;
	font-size: clamp(32px, 4.4vw, 56px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.vmt-about-hero-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: var(--shadow);
}
.vmt-about-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Layout: contents rail + article ---------- */
.vmt-about-layout {
	padding-top: clamp(40px, 6vw, 80px);
}
.vmt-about-layout:not(.has-toc) .vmt-about-content {
	margin-inline: auto;
}

/* ---------- Contents (details element: open rail from 900px, folded toggle below) ---------- */
.vmt-about-toc-box summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.vmt-about-toc-box summary::-webkit-details-marker {
	display: none;
}
.vmt-about-toc-box summary .vmt-h27-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}
.vmt-about-toc-box[open] summary .vmt-h27-icon {
	transform: rotate(180deg);
}
/* While the list slides closed (vmt27.animateDetails) the box is still [open]; the caret already turns back. */
.vmt-about-toc-box.is-closing summary .vmt-h27-icon {
	transform: none;
}
.vmt-about-toc ol {
	margin-top: 14px;
	border-left: 1px solid var(--line);
	list-style: none;
}
.vmt-about-toc li {
	margin: 0;
}
.vmt-about-toc a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.45;
	transition:
		color 0.2s,
		border-color 0.2s;
}
/* Long headings stop at two lines; the clamp sits on the inner span so the link padding cannot show a third. */
.vmt-about-toc a span {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.vmt-about-toc a:hover {
	color: var(--ink);
}
.vmt-about-toc a[aria-current="true"] {
	border-left-color: var(--accent);
	color: var(--accent-strong);
	font-weight: 600;
}

/* Contents rail from 900px (tablets in landscape and up); about-2027.js folds the box below that width. */
@media (min-width: 900px) {
	.vmt-about-layout.has-toc {
		display: grid;
		grid-template-columns: clamp(200px, 20vw, 260px) minmax(0, 720px);
		align-items: start;
		gap: clamp(40px, 6vw, 96px);
	}
	.vmt-about-toc {
		position: sticky;
		top: calc(var(--header-h) + 32px);
		max-height: calc(100vh - var(--header-h) - 64px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	/* Logged-in staff: the WordPress admin bar (32px) pushes the fixed header down. */
	.admin-bar .vmt-about-toc {
		top: calc(var(--header-h) + 64px);
		max-height: calc(100vh - var(--header-h) - 96px);
	}
	/* Always open on desktop: the summary is a plain label there. */
	.vmt-about-toc-box summary {
		pointer-events: none;
	}
	.vmt-about-toc-box summary .vmt-h27-icon {
		display: none;
	}
}
/* Single column below 900px: hero and article share one centred 720px column, so the right side is not left empty. */
@media (max-width: 899px) {
	.vmt-about-hero-inner {
		max-width: calc(720px + 2 * var(--gutter));
	}
	.vmt-about-hero.has-image .vmt-about-hero-inner {
		grid-template-columns: 1fr;
	}
	.vmt-about-layout {
		max-width: 720px;
		margin-inline: auto;
	}
	.vmt-about-toc {
		margin-bottom: 36px;
	}
	.vmt-about-toc-box {
		padding: 14px 20px;
		border-radius: var(--radius);
		background: var(--tint);
	}
	.vmt-about-toc-box summary {
		min-height: 32px;
	}
	.vmt-about-toc ol {
		margin-bottom: 6px;
	}
}

/* ---------- Article body (Classic Editor HTML) ---------- */
.vmt-about-content {
	/* Editor orange and green, mapped by vmt_about27_map_inline_styles(): exact logo colours on large text (h2/h3,
	   3:1), a deeper shade of the same hue on body text (>= 4.5:1 on white). Other editor colours keep their code. */
	--vmt-orange: var(--accent-strong); /* #c73205 */
	--vmt-orange-large: var(--accent); /* #ff440b, logo */
	--vmt-green: #067d2e;
	--vmt-green-large: #059134; /* logo */
	max-width: 720px;
	color: var(--ink-2);
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

/* Ad-hoc sizes and underlines from the editor would fight the type scale, so they are evened out.
   !important is needed to beat the inline style attributes. */
.vmt-about-content [style*="font-size"] {
	font-size: inherit !important;
}
.vmt-about-content span[style*="underline"] {
	text-decoration: none !important;
}

/* Alignment: body text is justified from 768px and left-aligned below, whatever the editor set (left, justify or
   nothing); only centre and right from the editor are kept. Headings stay left: justified headings stretch. */
.vmt-about-content :where(p, li) {
	text-align: left;
}
@media (min-width: 768px) {
	.vmt-about-content :where(p, li) {
		text-align: justify;
		text-align-last: left;
	}
}
.vmt-about-content .vmt-ta-center {
	text-align: center;
	text-align-last: center;
}
.vmt-about-content .vmt-ta-right {
	text-align: right;
	text-align-last: right;
}

/* Colours */
.vmt-about-content .vmt-c-orange {
	color: var(--vmt-orange);
}
.vmt-about-content .vmt-c-green {
	color: var(--vmt-green);
}
.vmt-about-content :is(h2, h3).vmt-c-orange,
.vmt-about-content :is(h2, h3) .vmt-c-orange {
	color: var(--vmt-orange-large);
}
.vmt-about-content :is(h2, h3).vmt-c-green,
.vmt-about-content :is(h2, h3) .vmt-c-green {
	color: var(--vmt-green-large);
}

.vmt-about-content > * + * {
	margin-top: 1.1em;
}
.vmt-about-content > :first-child {
	margin-top: 0;
}
.vmt-about-content .hidden {
	display: none !important;
}
.vmt-about-content :where(h2, h3, h4) {
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 24px);
	text-wrap: balance;
}
.vmt-about-content :where(h2, h3, h4) :where(strong, b) {
	font-weight: inherit;
}
.vmt-about-content h2 {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.vmt-about-content > h2:not(:first-child) {
	margin-top: 2.2em;
}
.vmt-about-content h3 {
	font-size: clamp(21px, 2vw, 25px);
	line-height: 1.3;
}
.vmt-about-content > h3:not(:first-child) {
	margin-top: 2.6em;
}
/* A short brand-orange rule marks where each section starts in a long read. */
.vmt-about-content h3::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-bottom: 16px;
	border-radius: 2px;
	background: var(--accent);
}
/* Headings straight after another heading are subtitles, not new sections. */
.vmt-about-content :where(h2, h3) + h3 {
	margin-top: 0.5em !important;
	color: var(--ink-2);
	font-size: clamp(18px, 1.6vw, 20px);
}
.vmt-about-content :where(h2, h3) + h3::before {
	display: none;
}
/* Subtitles are 18-20px: body-text shades, the exact logo colours are too light at that size. */
.vmt-about-content :where(h2, h3) + h3 .vmt-c-orange,
.vmt-about-content :where(h2, h3) + h3.vmt-c-orange {
	color: var(--vmt-orange);
}
.vmt-about-content :where(h2, h3) + h3 .vmt-c-green,
.vmt-about-content :where(h2, h3) + h3.vmt-c-green {
	color: var(--vmt-green);
}
.vmt-about-content h3.vmt-ta-center::before {
	margin-inline: auto;
}
.vmt-about-content h3.vmt-ta-right::before {
	margin-left: auto;
}
.vmt-about-content h4 {
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
.vmt-about-content > h4 {
	margin-top: 1.8em;
}
.vmt-about-content p {
	text-wrap: pretty;
}
.vmt-about-content :where(strong, b) {
	color: var(--ink);
	font-weight: 600;
}
/* Bold text inside coloured text keeps the colour. */
.vmt-about-content :where([class*="vmt-c-"], [style*="color"]) :where(strong, b) {
	color: inherit;
}
.vmt-about-content a[href] {
	color: var(--accent-strong);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s;
}
.vmt-about-content a[href]:hover {
	color: var(--accent);
}

/* Lists: the 2027 reset removes bullets, so they are drawn back in the brand colour. */
.vmt-about-content :where(ul, ol) {
	padding: 0;
}
.vmt-about-content li {
	position: relative;
	padding-left: 1.6em;
}
.vmt-about-content li + li {
	margin-top: 0.6em;
}
.vmt-about-content ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0.3em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
.vmt-about-content ol {
	counter-reset: vmt-about-ol;
}
.vmt-about-content ol > li {
	counter-increment: vmt-about-ol;
}
.vmt-about-content ol > li::before {
	content: counter(vmt-about-ol) ".";
	position: absolute;
	left: 0;
	color: var(--accent-strong);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Images: [caption] figures carry an inline pixel width from WordPress; let them follow the column instead. */
.vmt-about-content .wp-caption {
	width: auto !important;
	max-width: 100%;
	margin-block: 2.2em;
}
.vmt-about-content img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}
.vmt-about-content > p > img,
.vmt-about-content > p > a > img {
	margin-block: 1.2em;
}
/* Captions are always centred under their image (2027 rule, whatever the editor set) and use --ink-2:
   --ink-3 is only 3.7:1 at this size. */
.vmt-about-content .wp-caption .wp-caption-text {
	margin-top: 12px;
	padding: 0;
	background: none;
	font-style: normal;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	text-align-last: center;
}

.vmt-about-content blockquote {
	margin-block: 2em;
	padding-left: 20px;
	border-left: 3px solid var(--accent);
	color: var(--ink);
	font-size: 18px;
}
.vmt-about-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.vmt-about-content :where(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.vmt-about-content th {
	color: var(--ink);
	font-weight: 600;
}
.vmt-about-content :where(iframe, video, embed) {
	max-width: 100%;
	border: 0;
	border-radius: var(--radius);
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.vmt-about-hero-media {
		aspect-ratio: 16 / 10;
		border-radius: var(--radius);
	}
}
@media (max-width: 599px) {
	.vmt-about-content {
		font-size: 16.5px;
	}
	.vmt-about-hero .vmt-h27-btn {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vmt-about-toc-box summary .vmt-h27-icon,
	.vmt-about-toc a {
		transition: none;
	}
}
