/**
 * Trang Giới thiệu — dựng theo design/page_intro.png.
 *
 * Bám brand guideline: navy nền tảng, kem xen kẽ, cam Trí Tín (#F98E30 — đúng
 * màu logo) điểm nhấn, mảng cam đặc chỉ ở đúng một nút hành động chính
 * (nút "Đặt lịch tư vấn ngay" cuối trang).
 * Không bo góc, không đổ bóng đậm.
 *
 * Mọi thứ nằm trong body.ttg để không đụng phần còn lại của site. Không nạp
 * font riêng — cả trang dùng font của Customizer (Quicksand).
 */

body.ttg {
	--ttg-navy: #0F1E33;
	--ttg-navy-900: #0A1626;
	--ttg-navy-700: #16283F;
	--ttg-navy-400: #8FA3BD;
	--ttg-cream: #F7F5F0;
	/* Hai nấc cam nhấn: sáng cho nền navy, nung cho nền kem. `--ttg-gold` là
	   nấc đang hiệu lực, được đổi theo nền ở khối ngay bên dưới. */
	--ttg-gold-lit: #F0A45E;
	--ttg-gold-dark: #A85B0E;
	--ttg-gold: var(--ttg-gold-lit);
	/* Màu chữ đặt trên mảng cam đặc — lật theo nấc: navy trên cam nhạt,
	   trắng trên cam nung. */
	--ttg-gold-fg: var(--ttg-navy);
	--ttg-orange: #F98E30;
	--ttg-orange-dark: #D9720F;
	--ttg-mist: #D7DEE8;
	--ttg-ink: #1C2B3F;
	--ttg-muted: #6B7686;
	--ttg-line: #E4DFD4;
}

/* --------------------------------------------------------------------------
   Nấc cam theo nền
   Cam sáng #F0A45E trên nền kem chỉ đạt 1.9:1 — không đọc nổi. Các dải nền
   sáng đổi luôn token sang cam nung #A85B0E (4.6:1), nên mọi var(--ttg-gold)
   bên trong tự chuyển theo. Khối nền tối lồng bên trong bật ngược lại nấc sáng.
   -------------------------------------------------------------------------- */

.ttg-hero,
.ttg-about,
.ttg-promise,
.ttg-activity,
.ttg-extra {
	--ttg-gold: var(--ttg-gold-dark);
	--ttg-gold-fg: #fff;
}

.ttg-about__media,
.ttg-activity__item {
	--ttg-gold: var(--ttg-gold-lit);
	--ttg-gold-fg: var(--ttg-navy);
}

/* Bỏ padding mặc định của Flatsome để dải mở đầu chạm sát header. */
body.ttg #content.page-wrapper {
	padding-top: 0;
	padding-bottom: 0;
	background-color: var(--ttg-cream);
}

body.ttg .ttg-wrap {
	max-width: 1250px;
	margin: 0 auto;
	padding-right: 20px;
	padding-left: 20px;
}

body.ttg .ttg-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

/* Ảnh thật và ảnh giữ chỗ dùng chung một khung, để bố cục không đổi khi
   trang chưa chọn đủ ảnh trong Bảng tin. */
body.ttg .ttg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.ttg .ttg-img--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background-color: var(--ttg-navy-700);
	color: rgba(240, 164, 94, .5);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 4px;
	text-transform: uppercase;
}

/* ==========================================================================
   Chữ dùng lại giữa các khối
   ========================================================================== */

body.ttg .ttg-eyebrow {
	margin: 0 0 14px;
	color: var(--ttg-gold);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

/* Biến thể có gạch vàng bên dưới — dùng ở khối "Về chúng tôi". */
body.ttg .ttg-eyebrow--rule {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ttg-gold);
	display: inline-block;
	margin-bottom: 18px;
}

body.ttg .ttg-heading {
	margin: 0 0 20px;
	color: var(--ttg-ink);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -.01em;
	text-transform: none;
}

body.ttg .ttg-heading--light {
	color: #fff;
}

/* Tiêu đề nhiều dòng: xuống dòng đúng chỗ trên desktop, màn hẹp cho chảy tự nhiên. */
body.ttg .ttg-heading span,
body.ttg .ttg-hero__title span {
	display: block;
}

body.ttg .ttg-lead {
	margin: 0 0 16px;
	color: var(--ttg-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.75;
}

body.ttg .ttg-lead--light {
	color: var(--ttg-mist);
}

body.ttg .ttg-sec-head {
	/* Đủ rộng cho "Hợp tác cùng những thương hiệu hàng đầu" nằm gọn một dòng. */
	max-width: 880px;
	margin: 0 auto 44px;
	text-align: center;
}

body.ttg .ttg-sec-head .ttg-heading {
	margin-bottom: 0;
}

/* Khối nào có thêm đoạn dẫn dưới tiêu đề thì trả lại khoảng thở cho tiêu đề,
   và đoạn dẫn cuối cùng thì thôi đẩy thêm — khoảng cách xuống nội dung đã do
   margin của chính `.ttg-sec-head` lo. */
body.ttg .ttg-sec-head .ttg-heading:not(:last-child) {
	margin-bottom: 16px;
}

body.ttg .ttg-sec-head .ttg-lead:last-child {
	margin-bottom: 0;
}

/* Liên kết chèn giữa câu văn (ô `rich` trong trình soạn thảo). Flatsome đặt
   màu link toàn site là đỏ #cb0e12 — nằm ngoài bảng màu thương hiệu — nên các
   khối ở đây phải tự khai màu, lấy đúng nấc cam của nền đang đứng. */
body.ttg .ttg-lead a,
body.ttg .ttg-checklist a,
body.ttg .ttg-promise__desc a,
body.ttg .ttg-promise__foot-desc a {
	color: var(--ttg-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: opacity .18s ease;
}

body.ttg .ttg-lead a:hover,
body.ttg .ttg-checklist a:hover,
body.ttg .ttg-promise__desc a:hover,
body.ttg .ttg-promise__foot-desc a:hover {
	color: var(--ttg-gold);
	opacity: .78;
}

/* ==========================================================================
   Nút
   ========================================================================== */

body.ttg .ttg-btn {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

/* Cam là hành động chính — cả trang chỉ có đúng một nút này, ở khối cuối. */
body.ttg .ttg-btn--primary {
	background-color: var(--ttg-orange);
	border-color: var(--ttg-orange);
	color: #fff;
}

body.ttg .ttg-btn--primary:hover,
body.ttg .ttg-btn--primary:focus-visible {
	background-color: var(--ttg-orange-dark);
	border-color: var(--ttg-orange-dark);
	color: #fff;
}

/* Vàng đồng nền, chữ navy — cặp hợp lệ trong guideline, dùng cho các nút dẫn
   hướng phụ (dải mở đầu, khối "vì sao chọn") để không tranh chỗ với nút cam. */
body.ttg .ttg-btn--gold {
	background-color: var(--ttg-gold);
	border-color: var(--ttg-gold);
	color: var(--ttg-gold-fg);
}

body.ttg .ttg-btn--gold:hover,
body.ttg .ttg-btn--gold:focus-visible {
	background-color: var(--ttg-gold-dark);
	border-color: var(--ttg-gold-dark);
	color: #fff;
}

body.ttg .ttg-btn--ghost-light {
	background-color: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

body.ttg .ttg-btn--ghost-light:hover,
body.ttg .ttg-btn--ghost-light:focus-visible {
	background-color: #fff;
	border-color: #fff;
	color: var(--ttg-navy);
}

/* ==========================================================================
   Dải mở đầu
   ========================================================================== */

.ttg-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--ttg-cream);
}

.ttg-hero__media {
	position: absolute;
	inset: 0 0 0 38%;
}

/*
 * Mép trái ảnh loang dần vào nền kem đúng như bản thiết kế. Đây là mặt nạ để
 * ghép ảnh vào nền, không phải gradient trang trí — nền của khối vẫn là một
 * màu kem phẳng.
 */
.ttg-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		var(--ttg-cream) 0%,
		rgba(247, 245, 240, .92) 14%,
		rgba(247, 245, 240, .45) 34%,
		rgba(247, 245, 240, 0) 58%);
}

.ttg-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 560px;
}

/* Rộng đủ cho tiêu đề nằm gọn hai dòng như bản thiết kế — hẹp hơn là dòng
   "kiến tạo tương lai tại Châu Âu" bị bẻ làm ba. */
.ttg-hero__text {
	max-width: 680px;
	padding: 76px 0 80px;
}

.ttg-hero__title {
	margin: 0 0 24px;
	color: var(--ttg-ink);
	font-size: clamp(30px, 3.2vw, 42px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.015em;
	text-transform: none;
}

.ttg-hero__desc {
	max-width: 540px;
	margin: 0 0 32px;
	color: var(--ttg-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.8;
}

.ttg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 30px;
}

.ttg-play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ttg-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .18s ease;
}

.ttg-play .ttg-icon {
	color: var(--ttg-gold);
	transition: color .18s ease;
}

.ttg-play:hover,
.ttg-play:hover .ttg-icon {
	color: var(--ttg-gold-dark);
}

/* ==========================================================================
   Dải số liệu
   ========================================================================== */

.ttg-stats {
	background-color: var(--ttg-navy);
}

.ttg-stats__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttg-stats__item {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0;
	padding: 40px 26px;
	list-style: none;
}

/* Đường kẻ ngăn cột — kẻ ở mép trái nên ô đầu tiên không có. */
.ttg-stats__item + .ttg-stats__item {
	border-left: 1px solid rgba(240, 164, 94, .26);
}

.ttg-stats__icon {
	flex: 0 0 auto;
	color: var(--ttg-gold);
	line-height: 0;
}

.ttg-stats__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ttg-stats__value {
	color: #fff;
	/* Ô số liệu giờ có ô là chữ ("Hoàn phí", "1 lần / 2 năm") chứ không chỉ là
	   con số, nên cỡ chữ co theo bề ngang thay vì cố định 30px — nếu không thì
	   trên màn 1100–1300px mấy ô chữ dài vỡ thành ba dòng. */
	font-size: clamp(23px, 2.1vw, 30px);
	font-weight: 600;
	line-height: 1.15;
	overflow-wrap: break-word;
}

.ttg-stats__label {
	color: var(--ttg-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.ttg-stats__desc {
	color: var(--ttg-mist);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.6;
}

/* ==========================================================================
   Về chúng tôi
   ========================================================================== */

.ttg-about {
	padding: 92px 0;
	background-color: var(--ttg-cream);
}

.ttg-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.08fr;
	align-items: center;
	gap: 64px;
}

body.ttg .ttg-about__text .ttg-lead:last-of-type {
	margin-bottom: 30px;
}

.ttg-about__media {
	margin: 0;
	aspect-ratio: 16 / 11;
	background-color: var(--ttg-navy-700);
}

.ttg-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttg-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	color: var(--ttg-ink);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.55;
}

.ttg-checklist li:last-child {
	margin-bottom: 0;
}

.ttg-checklist__mark {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1px solid var(--ttg-gold);
	border-radius: 50%;
	color: var(--ttg-gold);
}

/* ==========================================================================
   Hành trình
   ========================================================================== */

.ttg-journey {
	padding: 84px 0 88px;
	background-color: var(--ttg-navy);
}

.ttg-journey__head {
	max-width: 760px;
	margin-bottom: 46px;
}

.ttg-journey__head .ttg-lead {
	margin-bottom: 0;
}

/* Xếp cột theo số mốc thật có, không chốt cứng con số: thêm hay bớt một mốc
   trong trình soạn thảo thì cả hàng tự chia lại, không bao giờ rơi xuống thành
   hàng thứ hai lẻ loi. `minmax(0, 1fr)` để chữ dài không nong cột ra. */
.ttg-journey__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ttg-journey__item {
	margin: 0;
	padding: 0 22px;
	list-style: none;
}

.ttg-journey__item:first-child {
	padding-left: 0;
}

/* Kẻ ngăn ở mép trái, nên mốc đầu tiên không có. */
.ttg-journey__item + .ttg-journey__item {
	border-left: 1px solid rgba(240, 164, 94, .26);
}

.ttg-journey__icon {
	display: block;
	margin-bottom: 18px;
	color: var(--ttg-gold);
	line-height: 0;
}

.ttg-journey__time {
	margin: 0 0 10px;
	color: var(--ttg-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ttg-journey__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(16px, 1.45vw, 20px);
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.ttg-journey__desc {
	margin: 0;
	color: var(--ttg-mist);
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.7;
}

/* ==========================================================================
   Lời hứa
   ========================================================================== */

.ttg-promise {
	padding: 84px 0 88px;
	background-color: var(--ttg-cream);
}

.ttg-promise__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Thẻ trắng trên nền kem — khối này nằm ngay sau "Giá trị cốt lõi" cũng nền
   kem, cần một lớp nền riêng thì hai khối mới không dính thành một mảng. */
.ttg-promise__item {
	margin: 0;
	padding: 30px 28px 32px;
	list-style: none;
	border: 1px solid var(--ttg-line);
	border-top: 2px solid var(--ttg-gold);
	background-color: #fff;
}

.ttg-promise__icon {
	display: block;
	margin-bottom: 18px;
	color: var(--ttg-gold);
	line-height: 0;
}

.ttg-promise__en {
	margin: 0 0 6px;
	color: var(--ttg-gold-dark);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.ttg-promise__title {
	margin: 0 0 12px;
	color: var(--ttg-ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.ttg-promise__desc {
	margin: 0;
	color: var(--ttg-muted);
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.7;
}

.ttg-promise__foot {
	display: grid;
	grid-template-columns: 200px 1fr;
	align-items: start;
	gap: 24px;
	margin-top: 40px;
	padding-top: 34px;
	border-top: 1px solid var(--ttg-line);
}

.ttg-promise__foot-label {
	margin: 0;
	color: var(--ttg-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.ttg-promise__foot-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttg-promise__foot-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttg-promise__foot-title {
	display: block;
	margin-bottom: 6px;
	color: var(--ttg-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.ttg-promise__foot-desc {
	display: block;
	color: var(--ttg-muted);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.65;
}

/* Ảnh nền của khối kêu gọi cuối trang. Ảnh chỉ là lớp rất mờ; chữ trắng vẫn
   phải đọc được nên phủ navy đậm lên trên. */
.ttg-cta__bg {
	position: absolute;
	inset: 0;
}

.ttg-cta__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(15, 30, 51, .88);
}

/* ==========================================================================
   Đối tác
   ========================================================================== */

.ttg-partners {
	padding: 80px 0 84px;
	background-color: var(--ttg-navy);
}

.ttg-partners__rail {
	position: relative;
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 20px;
}

.ttg-partners__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	/* Ít logo hơn một hàng thì căn giữa; `safe` để khi tràn thì quay về căn trái,
	   không thì phần đầu băng cuộn nằm ngoài vùng với tới được. Trình duyệt cũ
	   không hiểu `safe` sẽ bỏ qua cả dòng này và giữ nguyên căn trái. */
	justify-content: safe center;
	/* Thanh cuộn hệ thống bị ẩn đi vì đã có hai nút điều hướng; vuốt ngang
	   trên cảm ứng vẫn chạy như thường. */
	scrollbar-width: none;
}

.ttg-partners__track::-webkit-scrollbar {
	display: none;
}

.ttg-partners__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: calc((100% - 100px) / 6);
	min-width: 170px;
	height: 108px;
	margin: 0;
	padding: 18px 22px;
	list-style: none;
	background-color: #fff;
	scroll-snap-align: start;
}

/* Logo lấy từ module BĐS có link sang kho bất động sản của đối tác đó; thẻ <a>
   phải căng hết ô thì vùng bấm mới trùng với khung logo. */
.ttg-partners__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ttg-partners__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity .18s ease;
}

.ttg-partners__item a:hover img {
	opacity: .72;
}

/* Ô hãng luật: không phải một tấm logo nữa mà là một khối chữ, nên dựng như
   một tấm thẻ viền mảnh trên navy — cùng họ với các ô "khách hàng được" ở khối
   Lời hứa, chỉ khác nền. Không tô cam đặc: cả màn hình chỉ được một mảng cam,
   và mảng đó là nút đặt lịch cuối trang. */
.ttg-partners__law {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	max-width: 880px;
	margin: 40px auto 0;
	padding: 28px 30px;
	border: 1px solid rgba(240, 164, 94, .3);
	color: inherit;
	text-decoration: none;
}

/* Có link thì cả tấm thẻ là vùng bấm — viền sáng lên cho biết bấm được. */
a.ttg-partners__law:hover {
	border-color: var(--ttg-gold);
	color: inherit;
}

.ttg-partners__law-icon {
	flex: 0 0 auto;
	color: var(--ttg-gold);
	line-height: 0;
}

.ttg-partners__law-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ttg-partners__law-name {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ttg-partners__law-role {
	color: var(--ttg-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.ttg-partners__law-desc {
	margin-top: 4px;
	color: var(--ttg-mist);
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.7;
}

.ttg-rail-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--ttg-line);
	border-radius: 50%;
	background-color: #fff;
	color: var(--ttg-gold-dark);
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}

.ttg-rail-nav:hover {
	border-color: var(--ttg-gold);
	color: var(--ttg-navy);
}

.ttg-rail-nav--prev {
	left: -8px;
}

.ttg-rail-nav--next {
	right: -8px;
}

.ttg-rail-nav--prev .ttg-icon {
	transform: rotate(180deg);
}

/* ==========================================================================
   Hình ảnh hoạt động
   ========================================================================== */

.ttg-activity {
	padding: 80px 0 84px;
	background-color: var(--ttg-cream);
}

.ttg-activity .ttg-sec-head .ttg-heading {
	margin-bottom: 14px;
}

body.ttg .ttg-activity .ttg-sec-head .ttg-lead {
	margin-bottom: 0;
}

.ttg-activity__rail {
	position: relative;
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 20px;
}

.ttg-activity__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	/* Đã có hai nút điều hướng nên giấu thanh cuộn hệ thống; vuốt ngang trên
	   cảm ứng vẫn chạy như thường. */
	scrollbar-width: none;
	justify-content: safe center;
}

.ttg-activity__track::-webkit-scrollbar {
	display: none;
}

/*
 * Hai ảnh một khung nhìn. Ảnh nào cũng có sẵn chú thích in trên ảnh, chia nhỏ
 * hơn nữa là chữ trong ảnh không đọc nổi.
 */
/* Con trỏ báo cho biết băng này kéo được; lúc đang kéo thì khoá bôi đen chữ
   và ảnh, không thì kéo một cái là quét xanh cả khối. */
body.ttg .ttg-partners__track,
body.ttg .ttg-activity__track {
	cursor: grab;
}

body.ttg .ttg-partners__track.is-dragging,
body.ttg .ttg-activity__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

body.ttg .ttg-partners__track img,
body.ttg .ttg-activity__track img {
	-webkit-user-drag: none;
	user-select: none;
}

.ttg-activity__item {
	flex: 0 0 auto;
	width: calc((100% - 20px) / 2);
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: var(--ttg-navy-700);
	scroll-snap-align: start;
}

.ttg-activity__open {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

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

.ttg-activity__item img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: opacity .18s ease;
}

.ttg-activity__open:hover img {
	opacity: .88;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

/* Nền trang không cuộn khi lightbox đang mở. */
html.ttg-lb-open,
html.ttg-lb-open body {
	overflow: hidden;
}

.ttg-lb {
	/* Lớp phủ gần như navy đặc, dù thẻ nằm trong dải nền kem — giữ nấc cam sáng. */
	--ttg-gold: var(--ttg-gold-lit);
	--ttg-gold-fg: var(--ttg-navy);

	position: fixed;
	inset: 0;
	/* Trên cả nút liên hệ nổi và modal đặt lịch (cao nhất đang là 100000). */
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 64px 20px 76px;
	background-color: rgba(10, 22, 38, .975);
}

.ttg-lb[hidden] {
	display: none;
}

.ttg-lb__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.ttg-lb__figure img {
	display: block;
	max-width: 100%;
	/* Chừa chỗ cho dòng chú thích bên dưới. */
	max-height: calc(100vh - 190px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.ttg-lb figcaption {
	max-width: 760px;
	color: var(--ttg-mist);
	font-family: var(--ttg-sans);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	text-align: center;
}

.ttg-lb figcaption[hidden] {
	display: none;
}

.ttg-lb__count {
	position: absolute;
	bottom: 26px;
	left: 50%;
	margin: 0;
	transform: translateX(-50%);
	color: var(--ttg-navy-400);
	font-family: var(--ttg-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
}

.ttg-lb__close,
.ttg-lb__nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(240, 164, 94, .45);
	background-color: transparent;
	color: var(--ttg-gold);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ttg-lb__close:hover,
.ttg-lb__nav:hover,
.ttg-lb__close:focus-visible,
.ttg-lb__nav:focus-visible {
	background-color: var(--ttg-gold);
	border-color: var(--ttg-gold);
	color: var(--ttg-gold-fg);
}

.ttg-lb__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	font-size: 26px;
	line-height: 1;
}

.ttg-lb__nav {
	width: 46px;
	height: 46px;
}

/* Mũi tên vẽ bằng CSS — hộp này dựng bằng JS nên không lấy được bộ icon SVG
   của PHP; hai nét chéo là đủ và không phải nhúng thêm gì. */
.ttg-lb__nav::before {
	content: "";
	width: 11px;
	height: 11px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.ttg-lb__nav--prev::before {
	transform: translateX(2px) rotate(-135deg);
}

.ttg-lb__nav--next::before {
	transform: translateX(-2px) rotate(45deg);
}

.ttg-lb__nav[hidden],
.ttg-lb__count[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.ttg-lb {
		padding: 60px 12px 70px;
	}

	/* Màn hẹp: hai nút chuyển ảnh xuống đáy cho khỏi che mất ảnh. */
	.ttg-lb__nav {
		position: absolute;
		bottom: 16px;
	}

	.ttg-lb__nav--prev {
		left: 16px;
	}

	.ttg-lb__nav--next {
		right: 16px;
	}

	.ttg-lb__figure img {
		max-height: calc(100vh - 200px);
	}
}

/* ==========================================================================
   Khối kêu gọi cuối trang
   ========================================================================== */

.ttg-cta {
	position: relative;
	overflow: hidden;
	padding: 76px 0 80px;
	background-color: var(--ttg-navy);
}

.ttg-cta__inner {
	position: relative;
	max-width: 820px;
	text-align: center;
}

body.ttg .ttg-cta__inner .ttg-heading {
	margin-bottom: 14px;
}

body.ttg .ttg-cta__inner .ttg-lead {
	margin-bottom: 32px;
}

.ttg-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ==========================================================================
   Nội dung gõ thêm trong editor
   ========================================================================== */

.ttg-extra {
	padding: 72px 0;
	background-color: var(--ttg-cream);
	color: var(--ttg-ink);
	font-weight: 300;
	line-height: 1.8;
}

.ttg-extra h1,
.ttg-extra h2,
.ttg-extra h3,
.ttg-extra h4 {
	color: var(--ttg-ink);
	font-weight: 600;
	text-transform: none;
}

/* ==========================================================================
   Màn hẹp
   ========================================================================== */

@media (max-width: 1100px) {
	.ttg-stats__list {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Kẻ theo lưới 2 cột: cột phải có kẻ trái, hàng dưới có kẻ trên. */
	.ttg-stats__item + .ttg-stats__item {
		border-left: 0;
	}

	.ttg-stats__item:nth-child(2n) {
		border-left: 1px solid rgba(240, 164, 94, .26);
	}

	.ttg-stats__item:nth-child(n + 3) {
		border-top: 1px solid rgba(240, 164, 94, .26);
	}

	/* Năm mốc nằm ngang dưới 1100px thì mỗi cột chỉ còn quãng 175px — chữ vỡ
	   vụn. Xếp dọc thành đúng một đường thời gian, kẻ vàng chạy bên trái. */
	.ttg-journey__list {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.ttg-journey__item,
	.ttg-journey__item:first-child {
		padding: 0 0 0 20px;
		border-left: 1px solid rgba(240, 164, 94, .26);
	}

	.ttg-journey__title {
		font-size: 20px;
	}

	.ttg-partners__law {
		padding: 26px 24px;
	}
}

@media (max-width: 900px) {
	.ttg-hero__media {
		inset: 0;
	}

	/* Ảnh chuyển thành nền cả dải, phủ kem để chữ navy vẫn đọc được. */
	.ttg-hero__media::after {
		background: linear-gradient(90deg,
			rgba(247, 245, 240, .96) 0%,
			rgba(247, 245, 240, .9) 55%,
			rgba(247, 245, 240, .78) 100%);
	}

	.ttg-hero__inner {
		min-height: 0;
	}

	.ttg-hero__text {
		max-width: none;
		padding: 56px 0 60px;
	}

	.ttg-about {
		padding: 64px 0;
	}

	.ttg-about__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ttg-journey {
		padding: 62px 0 66px;
	}

	.ttg-promise {
		padding: 62px 0 66px;
	}

	.ttg-promise__list {
		grid-template-columns: 1fr;
	}

	.ttg-promise__foot {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ttg-promise__foot-list {
		grid-template-columns: 1fr;
	}

	.ttg-partners {
		padding: 60px 0 64px;
	}

	.ttg-activity {
		padding: 60px 0 64px;
	}

	.ttg-activity__item {
		width: 100%;
	}

	.ttg-cta {
		padding: 60px 0 64px;
	}
}

@media (max-width: 640px) {
	.ttg-stats__list {
		grid-template-columns: 1fr;
	}

	.ttg-stats__item {
		padding: 26px 0;
	}

	.ttg-stats__item:nth-child(2n) {
		border-left: 0;
	}

	.ttg-stats__item + .ttg-stats__item {
		border-top: 1px solid rgba(240, 164, 94, .26);
	}

	.ttg-hero__actions .ttg-btn,
	.ttg-cta__actions .ttg-btn {
		width: 100%;
		text-align: center;
	}

	.ttg-partners__item {
		min-width: 148px;
		height: 96px;
	}

	/* Icon cán cân bỏ xuống dòng riêng cho chữ đủ chiều ngang. */
	.ttg-partners__law {
		flex-direction: column;
		gap: 14px;
		margin-top: 32px;
		padding: 24px 20px;
	}

	.ttg-rail-nav {
		display: none;
	}
}
