/* ==========================================================================
   TP Home – theme.css
   Nạp SAU bootstrap.min.css (Bootstrap 5.3.3). Chỉ override qua CSS variables
   của Bootstrap + component riêng tiền tố .tp-*
   Breakpoints: sm 576 · md 768 · lg 992 · xl 1200 · xxl 1400 · (custom) 1600
   Thiết kế gốc: desktop 1920 (nội dung 1440) · mobile 440 (lề 20)
   ========================================================================== */

/* 1. Design tokens + Bootstrap variables
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="dark"] {
	--tp-primary: #d2b48e;          /* PRIMARY LIGHT */
	--tp-primary-rgb: 210, 180, 142;
	--tp-brown: #846346;            /* LIGHT */
	--tp-copper: #be8e50;
	--tp-dark: #100d0a;             /* DARK */
	--tp-bg: #222222;
	--tp-black: #000000;
	--tp-gray: #c5c2bf;             /* Gray Light */
	--tp-gray-600: #686868;         /* Gray */
	--tp-line: #3a3a3a;             /* DARK LIGHT */
	--tp-card: rgba(27, 31, 38, 0.72);
	--tp-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);

	--tp-font: "Roboto Variable", Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--tp-font-alt: "Archivo Variable", Archivo, var(--tp-font);
	--tp-font-brand: "Tenor Sans", Georgia, serif;

	--tp-section-y: 40px;

	/* Bootstrap */
	--bs-body-bg: var(--tp-bg);
	--bs-body-bg-rgb: 34, 34, 34;
	--bs-body-color: #ffffff;
	--bs-body-color-rgb: 255, 255, 255;
	--bs-body-font-family: var(--tp-font);
	--bs-body-font-size: 1rem;
	--bs-body-line-height: 1.5;
	--bs-font-sans-serif: var(--tp-font);
	--bs-primary: var(--tp-primary);
	--bs-primary-rgb: var(--tp-primary-rgb);
	--bs-link-color: var(--tp-primary);
	--bs-link-color-rgb: var(--tp-primary-rgb);
	--bs-link-hover-color: #ffffff;
	--bs-link-hover-color-rgb: 255, 255, 255;
	--bs-border-color: var(--tp-line);
	--bs-secondary-color: var(--tp-gray);
	--bs-emphasis-color: #ffffff;
	--bs-heading-color: #ffffff;
	--bs-focus-ring-color: rgba(var(--tp-primary-rgb), 0.35);
}

@media (min-width: 992px) {
	:root { --tp-section-y: 75px; }
}

/* 2. Base
   -------------------------------------------------------------------------- */
body.tp-body {
	background-color: var(--tp-bg);
	color: #fff;
	font-family: var(--tp-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; }

a { color: var(--tp-primary); transition: color 0.2s ease; }
a:hover { color: #fff; }

::selection { background: var(--tp-primary); color: var(--tp-dark); }

:focus-visible { outline: 2px solid var(--tp-primary); outline-offset: 2px; }

.tp-icon { display: inline-block; flex: none; }

.tp-bg-dark { background-color: var(--tp-dark); }

.tp-section { padding-block: var(--tp-section-y); }

.tp-skip {
	position: absolute;
	z-index: 1100;
	top: 8px;
	left: 8px;
	padding: 8px 16px;
	background: var(--tp-primary);
	color: var(--tp-dark);
}

/* Containers: lề 20px trên mobile; 1440px nội dung ở màn ≥1600 (thiết kế 1920) */
@media (max-width: 767.98px) {
	.container { --bs-gutter-x: 2.5rem; }
}
@media (min-width: 1600px) {
	.container { max-width: 1464px; }
	.container.container-wide { max-width: 1528px; } /* header/footer: 1504 */
}
.wr-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 640px;
    overflow: hidden;
}
.wr-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.wr-hero__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--wr-sp-20);
    width: 996px;
    max-width: 100%;
    padding: 46px 32px;
    text-align: center;
}
@media (max-width: 768px) {
    .wr-hero {
        min-height: 360px;
        padding: 32px 20px;
    }
}
 .hero h1 {
	font-family: "Roboto", Sans-serif;
	font-size: 70px;
	font-weight: 600;
	text-transform: uppercase;
	font-style: normal;
	line-height: 82px;
}
.hero p {
	color: #FFF;
	text-align: center;
	font-family: Roboto;
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}
@media (max-width: 767.98px) {
	.hero h1 {
		font-size: 24px;
		font-style: normal;
		font-weight: 600;
		line-height: 30px; 
	}
	.hero p {
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 20px;
	}
}
/* WordPress core helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text,
.wp-element-caption { font-size: 0.875rem; color: var(--tp-gray); margin-top: 0.5rem; }

/* 3. Shared components
   -------------------------------------------------------------------------- */

/* Gold bar */
.tp-bar {
	display: block;
	flex: none;
	width: 120px;
	height: 5px;
	background-color: var(--tp-primary);
}
.tp-bar--sm { width: 60px; height: 4px; }

/* Section heading (component "heading") */
.tp-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 24px;
}
.tp-heading__title {
	margin: 12px 0 0;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.172;
	text-transform: uppercase;
	color: #fff;
}
.tp-heading__sub {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 24px;
	color: var(--tp-gray);
}
@media (min-width: 768px) {
	.tp-heading--center-md { align-items: center; text-align: center; }
}
@media (min-width: 992px) {
	.tp-heading { margin-bottom: 32px; }
	.tp-heading__title { margin-top: 24px; font-size: 48px; }
	.tp-heading__sub { margin-top: 12px; font-size: 18px; }
}

/* "LEARN MORE →" text button */
.tp-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
}
.tp-link-btn img { transition: transform 0.2s ease; }
.tp-link-btn:hover { color: var(--tp-primary); }
.tp-link-btn:hover img { transform: translateX(4px); }

/* Outline button (BT small size) */
.tp-btn-outline {
	--bs-btn-padding-x: 20px;
	--bs-btn-padding-y: 10px;
	--bs-btn-font-size: 14px;
	--bs-btn-font-weight: 500;
	--bs-btn-line-height: 26px;
	--bs-btn-color: #fff;
	--bs-btn-bg: transparent;
	--bs-btn-border-width: 2px;
	--bs-btn-border-color: #fff;
	--bs-btn-border-radius: 0;
	--bs-btn-hover-color: var(--tp-dark);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-active-color: var(--tp-dark);
	--bs-btn-active-bg: var(--tp-primary);
	--bs-btn-active-border-color: var(--tp-primary);
	--bs-btn-focus-shadow-rgb: var(--tp-primary-rgb);
	letter-spacing: 0.28px;
	text-transform: uppercase;
}

/* 4. Header
   -------------------------------------------------------------------------- */
.tp-header { position: relative; z-index: 1030; background-color: var(--tp-black); }

.tp-navbar {
	--bs-navbar-padding-y: 10px;
	--bs-navbar-padding-x: 0;
	min-height: 64px;
}
.tp-navbar > .container { flex-wrap: nowrap; }

.tp-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: #fff;
}
.tp-brand:hover { color: #fff; }
.tp-brand__logo { width: 42px; height: auto; }
.tp-brand__text {
	font-family: var(--tp-font-brand);
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.tp-toggler {
	padding: 0;
	border: 0;
	line-height: 0;
	box-shadow: none !important;
}

/* Offcanvas (mobile/tablet) */
.tp-offcanvas {
	--bs-offcanvas-width: min(340px, 86vw);
	--bs-offcanvas-bg: var(--tp-dark);
	--bs-offcanvas-color: #fff;
	--bs-offcanvas-padding-x: 20px;
	--bs-offcanvas-padding-y: 20px;
}
.tp-offcanvas .offcanvas-header { justify-content: space-between; border-bottom: 1px solid var(--tp-line); }
.tp-offcanvas__close { padding: 0; border: 0; background: none; line-height: 0; }

.tp-nav .nav-link {
	padding: 14px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.32px;
	text-transform: uppercase;
	color: #fff;
	border-bottom: 1px solid var(--tp-line);
}
.tp-nav .nav-link:hover,
.tp-nav .nav-link:focus-visible,
.tp-nav .nav-link.active,
.tp-nav .nav-link.show {
	color: var(--tp-primary);
}
.tp-nav .nav-link.active { font-weight: 500; }

.tp-nav .dropdown-toggle { display: flex; align-items: center; gap: 3px; }
.tp-nav .dropdown-toggle::after {
	width: 24px;
	height: 24px;
	margin: 0;
	border: 0;
	background: url("../images/icons/chevron-down.svg") center / 24px no-repeat;
	transition: transform 0.2s ease;
}
.tp-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.tp-dropdown {
	--bs-dropdown-bg: var(--tp-bg);
	--bs-dropdown-border-width: 0;
	--bs-dropdown-border-radius: 0;
	--bs-dropdown-padding-y: 8px;
	--bs-dropdown-min-width: 240px;
	--bs-dropdown-link-color: #fff;
	--bs-dropdown-link-hover-color: var(--tp-primary);
	--bs-dropdown-link-hover-bg: rgba(var(--tp-primary-rgb), 0.08);
	--bs-dropdown-link-active-color: var(--tp-primary);
	--bs-dropdown-link-active-bg: transparent;
	--bs-dropdown-item-padding-x: 20px;
	--bs-dropdown-item-padding-y: 10px;
	font-size: 14px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
}
/* In offcanvas (mobile/tablet): dropdown renders inline */
@media (max-width: 1199.98px) {
	.tp-offcanvas .tp-dropdown { --bs-dropdown-bg: transparent; --bs-dropdown-item-padding-x: 16px; }
}

@media (min-width: 1200px) {
	.tp-header { background-color: var(--tp-bg); }
	.tp-navbar { --bs-navbar-padding-y: 0; height: 100px; }
	.tp-navbar > .container { justify-content: space-between; }
	.tp-brand__logo { width: 66px; }

	.tp-offcanvas .offcanvas-header { display: none; }
	.tp-offcanvas .offcanvas-body { justify-content: flex-end; }
	.tp-nav { align-items: center; gap: 16px; }
	.tp-nav .nav-link { padding: 0; border: 0; font-size: 14px; letter-spacing: 0.28px; white-space: nowrap; }

	.tp-nav .dropdown { position: relative; }
	.tp-nav .dropdown > .tp-dropdown { top: calc(100% + 38px); left: 0; margin-top: 0; box-shadow: var(--tp-shadow); }
	.tp-nav .dropdown > .tp-dropdown .dropdown-item {
        font-size: 16px;
        letter-spacing: 0.32px;
	}
	.tp-nav .dropdown .tp-dropdown .dropdown-item.active {
		font-weight: 500!important;
	}
	/* hover bridge + open on hover */
	.tp-nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 38px; }
	.tp-nav .dropdown:hover > .tp-dropdown { display: block; }
}
@media (min-width: 1400px) {
	.tp-nav { gap: 28px; }
	.tp-nav .nav-link { font-size: 16px; letter-spacing: 0.32px; }
}
@media (min-width: 1600px) {
	.tp-nav { gap: 34px; }
}

/* 5. Hero (573:19414)
   -------------------------------------------------------------------------- */
.tp-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--tp-bg);
}
.tp-hero__media {
	position: relative;
	aspect-ratio: 440 / 769;
	opacity: 0.6;                         /* Group opacity 60% */
}
.tp-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% center;
}
.tp-hero__media::after {                 /* fill #000 37% */
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.37);
}
.tp-hero::after {                        /* Rectangle 5 – bottom fade */
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 29.44%;
	background: linear-gradient(180deg, rgba(22, 17, 11, 0) 0%, rgba(50, 48, 47, 0.9) 100%);
	pointer-events: none;
}
@media (min-width: 768px) {
	.tp-hero__media { aspect-ratio: 1920 / 900; }
}

/* 6. Stats (568:18704)
   -------------------------------------------------------------------------- */
.tp-stats { padding-block: 32px; }
.tp-stats__title {
	margin: 0 0 20px;
	font-family: var(--tp-font-alt);
	font-size: 20px;
	font-weight: 600;
	line-height: 32px;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}
.tp-stats__list { --bs-gutter-x: 32px; --bs-gutter-y: 32px; }
.tp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.tp-stat__num {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.17;
	text-transform: uppercase;
	color: #fff;
}
.tp-stat__line {
	width: 80px;
	height: 2px;
	margin: 10px 0 6px;
	background-color: var(--tp-primary);
}
.tp-stat__label {
	font-size: 16px;
	letter-spacing: 0.32px;
	line-height: 1.17;
	color: var(--tp-gray);
}
@media (min-width: 992px) {
	.tp-stats { padding-block: 57px; }
	.tp-stats__title { margin-bottom: 32px; font-size: 24px; font-weight: 500; line-height: 48px; }
	.tp-stats__list { --bs-gutter-y: 0; }
	.tp-stat { padding: 20px; min-height: 166px; }
	.tp-stat__num { font-size: 30px; line-height: 60px; white-space: nowrap; }
	.tp-stat__line { margin: 10px 0; }
	.tp-stat__label { font-size: 18px; line-height: 24px; letter-spacing: 0.4px; }
}
@media (min-width: 1200px) {
	.tp-stats__title { font-size: 30px; line-height: 60px; }
	.tp-stat__num { font-size: 38px; }
	.tp-stat__label { font-size: 20px; }
}
@media (min-width: 1600px) {
	.tp-stats__title { font-size: 40px; line-height: 76px; }
	.tp-stats__list {
		display: grid;
		grid-template-columns: repeat(4, 300px);
		column-gap: 66px;
		margin: 0;
	}
	.tp-stats__list > .col { width: auto; padding: 20px; margin: 0; }
}

/* 7. About (553:17953 + bg 529:17333)
   -------------------------------------------------------------------------- */
.tp-about {
	position: relative;
	overflow: hidden;
	padding-block: 40px;
	background: linear-gradient(180deg, rgba(22, 17, 11, 0) 0%, rgba(50, 48, 47, 0.9) 100%);
}
.tp-about::before {                      /* Ellipse 22 – warm glow */
	content: "";
	position: absolute;
	top: 0;
	left: 68px;
	width: 1066px;
	height: 830px;
	background: radial-gradient(closest-side, rgb(180, 130, 68) 0%, rgba(193, 136, 66, 0) 100%);
	opacity: 0.22;
	pointer-events: none;
}
.tp-about > .container { position: relative; }
.tp-about__row { --bs-gutter-x: 0; row-gap: 24px; }
.tp-about .tp-heading { margin-bottom: 20px; }

.tp-checklist {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0 0 20px;
}
.tp-checklist__item { display: flex; align-items: flex-start; gap: 5px; }
.tp-checklist__title {
	margin: 0 0 5px;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	color: #fff;
}
.tp-checklist__text {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--tp-gray);
}
.tp-about__btn { padding-inline: 32px; }
.tp-about__media img { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }

@media (min-width: 992px) {
	.tp-about .tp-heading { margin-bottom: 32px; }
	.tp-checklist { margin-bottom: 32px; }
	.tp-checklist__item { gap: 8px; }
	.tp-checklist__title { margin-bottom: 8px; font-size: 24px; }
	.tp-checklist__text { font-size: 16px; line-height: 24px; }
}
@media (min-width: 992px) {
	.tp-about__row { flex-wrap: nowrap; }
	.tp-about__content { width: 46%; }
	.tp-about__media { padding-left: 4%; }
	.tp-about__media img { max-width: none; }
}
@media (min-width: 1200px) {
	.tp-about { padding-block: 66px 67px; }
	.tp-about__content { width: 40.35%; }       /* 581 / 1440 */
	.tp-about__media { padding-left: 8.33%; }   /* gap 120 / 1440 */
}
@media (min-width: 1600px) {
	/* Ảnh tràn phải tới cách mép màn 64px như thiết kế 1920 */
	.tp-about__media img {
		width: calc(100% + (100vw - 1440px) / 2 - 64px);
		max-width: none;
	}
}

/* 8. Services (555:18102 / mobile 5035:10941)
   -------------------------------------------------------------------------- */
.tp-tabs {
	display: flex;
	flex-wrap: nowrap;
	margin-bottom: 20px;
	border: 0;
}
.tp-tabs .nav-item { flex: 1 1 0; }
.tp-tabs .nav-link {
	width: 100%;
	padding: 0 20px 10px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #fff;
	background: none;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
}
.tp-tabs .nav-link.active {
	font-weight: 600;
	color: var(--tp-primary);
	border-bottom-color: var(--tp-primary);
}

.tp-services__label {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
	text-transform: uppercase;
	color: var(--tp-primary);
}

.tp-svc-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 642 / 550;
	margin-bottom: 24px;
	overflow: hidden;
}
.tp-svc-card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp-svc-card:hover > img { transform: scale(1.03); }
.tp-svc-card__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 92.045%);
}
.tp-svc-card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.17;
	text-transform: uppercase;
	color: #fff;
}
.tp-svc-card__more { padding: 0; border: 0; background: none; line-height: 0; }

/* Service card – hover reveal (desktop ≥768px)
   Rê chuột / focus vào ảnh: phủ tối ảnh, tiêu đề đổi màu vàng và trượt lên,
   danh sách ✓ + nút SEE MORE mở ra từ dưới (animate grid-template-rows 0fr → 1fr). */
.tp-svc-card__bar { z-index: 1; }
.tp-svc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}
.tp-svc-card__title { transition: color 0.35s ease; }
.tp-svc-card.has-reveal::after {          /* lớp tối phủ toàn ảnh khi hover */
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.tp-svc-card__reveal {
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.45s ease, opacity 0.35s ease;
}
.tp-svc-card__inner { min-height: 0; overflow: hidden; }
.tp-svc-card__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-top: 12px;
}
.tp-svc-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
}
.tp-svc-card__list .tp-icon { width: 20px; height: 20px; }
.tp-svc-card__btn { margin-top: 16px; }

@media (min-width: 768px) {
	.tp-svc-card.has-reveal:hover::after,
	.tp-svc-card.has-reveal:focus-within::after { opacity: 1; }
	.tp-svc-card.has-reveal:hover .tp-svc-card__reveal,
	.tp-svc-card.has-reveal:focus-within .tp-svc-card__reveal { grid-template-rows: 1fr; opacity: 1; }
	.tp-svc-card.has-reveal:hover .tp-svc-card__title,
	.tp-svc-card.has-reveal:focus-within .tp-svc-card__title { color: var(--tp-primary); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {   /* tablet: thẻ thấp → thu gọn */
	.tp-svc-card.has-reveal:hover .tp-svc-card__bar,
	.tp-svc-card.has-reveal:focus-within .tp-svc-card__bar { padding-block: 16px; }
	.tp-svc-card.has-reveal:hover .tp-svc-card__title,
	.tp-svc-card.has-reveal:focus-within .tp-svc-card__title { font-size: 20px; line-height: 24px; }
	.tp-svc-card__btn { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 13px; }
}
@media (min-width: 1200px) {
	.tp-svc-card__bar { transition: padding 0.45s ease; }
	.tp-svc-card.has-reveal:hover .tp-svc-card__bar,
	.tp-svc-card.has-reveal:focus-within .tp-svc-card__bar { padding-bottom: 38px; }
	.tp-svc-card__list { gap: 10px; padding-top: 20px; }
	.tp-svc-card__list li { gap: 10px; font-size: 16px; line-height: 24px; }
	.tp-svc-card__list .tp-icon { width: 24px; height: 24px; }
	.tp-svc-card__btn { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.tp-svc-card__reveal,
	.tp-svc-card__bar,
	.tp-svc-card.has-reveal::after { transition: none; }
}

/* Plugin "blogs-portfolior" (bản Elementor cũ) nạp CSS toàn site có ".tab-content { display: none }"
   → ẩn mất ảnh + danh sách dịch vụ trên mobile. Ghi đè lại cho section này. */
.tp-services .tab-content { display: block; }
@media (min-width: 768px) {
	.tp-services .tab-content.tp-services__cols { display: grid; }
}

/* Accordion +/- */
.tp-acc { display: flex; flex-direction: column; gap: 16px; }
.tp-acc__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.17;
	color: #fff;
	text-align: left;
}
button.tp-acc__btn:hover { color: var(--tp-primary); }
.tp-acc__icon { display: inline-flex; flex: none; width: 24px; height: 24px; }
.tp-acc__minus { display: none; }
.tp-acc__btn:not(.collapsed) .tp-acc__plus { display: none; }
.tp-acc__btn:not(.collapsed) .tp-acc__minus { display: inline-block; }
.tp-acc__text {
	margin: 8px 0 0;
	padding-left: 32px;
	font-size: 14px;
	line-height: 20px;
	color: var(--tp-gray);
}

@media (min-width: 768px) {
	.tp-services__cols {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 24px;
	}
	/* Desktop: hiện cả 2 cột, bỏ hành vi tab */
	.tp-services__cols > .tab-pane { display: block; opacity: 1; }
	.tp-svc-card__bar { padding: 24px 30px; }
	.tp-svc-card__title { font-size: 24px; line-height: 28px; }
	.tp-acc { gap: 20px; }
	.tp-acc__btn { font-size: 18px; }
	.tp-acc__text { font-size: 16px; line-height: 24px; }
}
@media (min-width: 992px) {
	.tp-services .tp-heading { margin-bottom: 40px; }
}
@media (min-width: 1200px) {
	.tp-services__cols { column-gap: 48px; }
	.tp-services__label { font-size: 32px; line-height: 40px; }
}

/* Service popup (5035:11058) */
/* Nền phủ Figma: rgba(27, 31, 38, 0.9) – theme.js thêm class body.tp-modal-open khi mở popup dịch vụ */
body.tp-modal-open .modal-backdrop { --bs-backdrop-bg: #1b1f26; --bs-backdrop-opacity: 0.9; }
.tp-modal .modal-dialog { max-width: 440px; margin-inline: auto; padding-inline: 20px; } /* hộp rộng tối đa 400px, cách mép 20px */
@media (max-width: 767.98px) {
	.tp-svc-card[data-tp-svc-tap] { cursor: pointer; }  /* mobile: chạm cả thẻ để mở popup */
	.tp-svc-card[data-tp-svc-tap]:active > img { transform: scale(1.02); }
}
.tp-modal .modal-content {
	position: relative;
	padding: 40px 30px;
	border: 0;
	border-radius: 0;
	background-color: var(--tp-dark);
	color: #fff;
}
.tp-modal__close {
	position: absolute;
	top: 8px;
	right: 6px;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
}
.tp-modal__title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
	line-height: 28px;
	text-transform: uppercase;
	color: var(--tp-primary);
}
.tp-modal__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 32px; }
.tp-modal__list li { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.17; }
.tp-modal .tp-btn-outline { align-self: flex-start; }

/* 9. Portfolio slider (568:18741 / mobile 5035:10952)
   -------------------------------------------------------------------------- */
.tp-portfolio { overflow-x: clip; }

.tp-slider { margin-right: calc(50% - 50vw); } /* tràn ra mép phải màn hình */
.tp-slider__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.tp-slider__track::-webkit-scrollbar { display: none; }

.tp-project {
	position: relative;
	flex: 0 0 76.14vw;                 /* 335 / 440 */
	aspect-ratio: 335 / 230;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #1a1a1a;
}
.tp-project__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp-project:hover .tp-project__img { transform: scale(1.04); }
.tp-project::before,
.tp-project::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	height: 54px;
	pointer-events: none;
}
.tp-project::before { top: 0; background: linear-gradient(0deg, rgba(22, 17, 11, 0) 0%, rgba(0, 0, 0, 0.64) 100%); }
.tp-project::after { bottom: 0; background: linear-gradient(180deg, rgba(22, 17, 11, 0) 0%, rgba(0, 0, 0, 0.64) 100%); }
.tp-project__title {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 0;
	right: 0;
	margin: 0;
	padding-inline: 12px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 26px;
	letter-spacing: 0.42px;
	text-align: center;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}
.tp-project__link { position: absolute; inset: 0; z-index: 2; }
.tp-project__title { pointer-events: none; }
.tp-project__btn {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 13px;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.tp-project:hover .tp-project__btn,
.tp-project:focus-within .tp-project__btn { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) {
	.tp-project__btn { display: none; } /* touch: cả thẻ là link */
}

.tp-slider__progress {
	position: relative;
	height: 4px;
	margin-top: 20px;
	border-radius: 10px;
	background-color: rgba(128, 128, 128, 0.55);
	overflow: hidden;
}
.tp-slider__progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 24%;
	border-radius: 10px;
	background-color: #fff;
	transition: left 0.15s linear, width 0.15s linear;
}
.tp-slider__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
}
.tp-slider__nav { display: flex; gap: 16px; }
.tp-slider__arrow {
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	transition: opacity 0.2s ease;
}
.tp-slider__arrow img { width: 24px; height: 24px; }
.tp-slider__arrow:disabled { opacity: 0.35; cursor: default; }
.tp-slider__arrow:not(:disabled):hover { opacity: 0.75; }

@media (min-width: 768px) {
	.tp-slider__track { gap: 24px; }
	.tp-project { flex-basis: 420px; aspect-ratio: 600 / 540; }
	.tp-project::after { display: none; }
	.tp-project::before {
		height: 70px;
		background: linear-gradient(0deg, rgba(22, 17, 11, 0.03) 9.783%, rgba(0, 0, 0, 0.9) 118.48%);
	}
	.tp-project__title { top: 21px; font-size: 20px; line-height: 28px; letter-spacing: 0.6px; }
	.tp-slider__foot { margin-top: 42px; }
	.tp-slider__arrow img { width: 32px; height: 32px; }
}
@media (min-width: 1200px) {
	.tp-slider__track { gap: 32px; }
	.tp-project { flex-basis: 600px; }
	.tp-project__title { font-size: 24px; letter-spacing: 0.72px; }
}

/* Portfolio archive grid */
.tp-project--grid { flex: none; width: 100%; aspect-ratio: 600 / 540; }
.tp-project--grid::after { display: none; }

/* 10. Why choose us (555:18110 / mobile 5035:10976)
   -------------------------------------------------------------------------- */
.tp-why {
	position: relative;
	overflow: hidden;
	padding-block: 45px 37px;
	background-color: var(--tp-bg);
}
.tp-why__bg { position: absolute; inset: 0; opacity: 0.3; }
.tp-why__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);               /* blend: Luminosity */
}
.tp-why__bg::after { content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.5); }

.tp-why__pages {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.tp-why__pages::-webkit-scrollbar { display: none; }
.tp-why__col {
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	scroll-snap-align: start;
}
.tp-why-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background-color: var(--tp-card);
	box-shadow: var(--tp-shadow);
}
.tp-why-card__icon { flex: none; line-height: 0; }
.tp-why-card__icon img { width: 54px; height: 54px; object-fit: contain; }
.tp-why-card__title {
	margin: 0 0 5px;
	font-size: 16px;
	font-weight: 500;
	line-height: 28px;
	color: #fff;
}
.tp-why-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--tp-gray);
}

.tp-dots { display: flex; justify-content: center; gap: 5px; margin-top: 24px; }
.tp-dots__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background-color: #fff;
	transition: width 0.2s ease, background-color 0.2s ease;
}
.tp-dots__dot.is-active { width: 16px; background-color: var(--tp-brown); }

@media (min-width: 768px) {
	.tp-why__pages {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px;
		overflow: visible;
	}
	.tp-why__col { gap: 16px; }
}
@media (min-width: 992px) {
	.tp-why { padding-block: 82px 83px; }
	.tp-why-card { gap: 24px; padding: 24px; }
	.tp-why-card__icon img { width: 62px; height: 62px; }
	.tp-why-card__title { margin-bottom: 8px; font-size: 20px; }
	.tp-why-card__text { font-size: 16px; line-height: 24px; }
}
@media (min-width: 1200px) {
	.tp-why__pages { column-gap: 40px; }
}

/* 11. Testimonials (536:19544)
   -------------------------------------------------------------------------- */
.tp-testi {
	padding-block: 40px;
	background: linear-gradient(180deg, rgba(22, 17, 11, 0) 0%, rgba(50, 48, 47, 0.9) 100%);
}
.tp-testi__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1000px;
	margin-inline: auto;
	text-align: center;
}
.tp-testi .tp-bar { height: 3px; }
.tp-testi__title {
	margin: 12px 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 27px;
	color: #fff;
}
.tp-testi__carousel { width: 100%; }
.tp-testi__quote { margin: 0; }
.tp-testi__quote p {
	margin: 0;
	font-size: 12px;
	line-height: 18px;
	color: #fff;
}
.tp-testi__author {
	margin-top: 10px;
	font-size: 16px;
	line-height: 20px;
	text-transform: uppercase;
	color: var(--tp-gray);
}
.tp-testi__dots.carousel-indicators {
	position: static;
	gap: 10px;
	margin: 14px 0 0;
}
.tp-testi__dots [data-bs-target] {
	flex: none;
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--tp-gray-600);
	opacity: 1;
	text-indent: 0;
}
.tp-testi__dots .active { background-color: #fff; }

@media (min-width: 992px) {
	.tp-testi {
		display: flex;
		align-items: center;
		min-height: 498px;
		padding-block: 32px;
	}
	.tp-testi > .container { width: 100%; }
	.tp-testi .tp-bar { height: 5px; }
	.tp-testi__title { margin: 30px 0; font-size: 40px; line-height: 48px; }
	.tp-testi__quote p { font-size: 18px; line-height: 30px; }
	.tp-testi__author {
		margin-top: 30px;
		font-family: var(--tp-font-alt);
		font-size: 20px;
		line-height: 40px;
	}
	.tp-testi__dots.carousel-indicators { margin-top: 30px; }
}

.tp-footer { padding-block: 20px; background-color: var(--tp-bg); }

.tp-footer__brand {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 20px;
	row-gap: 10px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tp-line);
}
.tp-footer__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background-color: #1a1a1a;
}
.tp-footer__logo img { width: 62px; }
.tp-footer__name {
	margin: 0;
	font-family: var(--tp-font-brand);
	font-size: 40px;
	line-height: 50px;
	text-transform: uppercase;
	color: #fff;
}
.tp-footer__tagline {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.32px;
	color: var(--tp-gray);
}

.tp-footer__grid { display: flex; flex-direction: column; gap: 24px; }

.tp-footer__title {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.17;
	text-transform: uppercase;
	color: var(--tp-gray);
}
.tp-footer__col--contact .tp-footer__title { margin-bottom: 14px; }
.tp-footer__col--contact .tp-bar--sm,
.tp-footer__col--subscribe .tp-bar--sm { width: 80px; }
.tp-footer__col--subscribe .tp-footer__title { margin-bottom: 4px; font-weight: 800; }

.tp-footer__links { display: flex; flex-direction: column; margin: 0; padding: 0; }
.tp-footer__links li { padding-block: 16px; border-bottom: 1px solid var(--tp-line); }
.tp-footer__links li:first-child { padding-top: 0; }
.tp-footer__links li:last-child { padding-bottom: 0; border-bottom: 0; }
.tp-footer__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 24px;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	color: #fff;
}
.tp-footer__links a::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: url("../images/icons/chevron-right.svg") center / 20px no-repeat;
}
.tp-footer__links a:hover { color: var(--tp-primary); }

.tp-contact { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.tp-contact li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 24px; }
.tp-contact img { width: 20px; height: 20px; }
.tp-contact a { color: #fff; text-decoration: none; }
.tp-contact a:hover { color: var(--tp-primary); }

.tp-footer__text {
	max-width: 315px;
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 19px;
	color: var(--tp-gray);
}
.tp-subscribe { display: flex; align-items: stretch; gap: 10px; }
.tp-subscribe__input {
	flex: 0 1 255px;
	min-width: 0;
	height: 36px;
	padding: 6px 16px;
	border: 1px solid #e4e2e2;
	border-radius: 0;
	background-color: #f7f7f7;
	font-size: 14px;
	letter-spacing: 0.28px;
	color: var(--tp-bg);
}
.tp-subscribe__input::placeholder { color: #858585; font-weight: 500; opacity: 1; }
.tp-subscribe__input:focus {
	border-color: var(--tp-primary);
	background-color: #fff;
	color: var(--tp-bg);
	box-shadow: 0 0 0 0.2rem rgba(var(--tp-primary-rgb), 0.35);
}
.tp-subscribe__btn {
	--bs-btn-padding-x: 0;
	--bs-btn-padding-y: 0;
	--bs-btn-border-width: 1px;
	--bs-btn-font-weight: 700;
	--bs-btn-line-height: 18px;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 70px;
	height: 36px;
}
.tp-subscribe__btn:hover img { filter: invert(1); }
.tp-subscribe__msg { margin: 10px 0 0; font-size: 14px; color: var(--tp-primary); }
.tp-subscribe__msg--error { color: #ff8a80; }

.tp-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 24px;
	padding-top: 12px;
	border-top: 3px solid var(--tp-line);
}
.tp-footer__copy { margin: 0; font-size: 12px; line-height: 20px; color: var(--tp-gray); }
.tp-footer__copy a { color: var(--tp-copper); text-decoration: underline; }
.tp-footer__copy a:hover { color: #fff; }
.tp-footer__pipe { margin-inline: 2px 4px; }
.tp-social { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.tp-social img { width: 20px; height: 20px; transition: filter 0.2s ease; }
.tp-social a:hover img { filter: brightness(1.4); }
.tp-social__facebook { order: -1; }

@media (min-width: 768px) {
	.tp-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
	.tp-footer__col--subscribe { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.tp-footer { padding-block: 64px 32px; }

	.tp-footer__brand {
		grid-template-rows: auto auto;
		column-gap: 21px;
		row-gap: 0;
		margin-bottom: 69px;
		padding: 0;
		border: 0;
	}
	.tp-footer__logo { grid-row: 1 / span 2; width: 107px; height: 107px; background: none; }
	.tp-footer__logo img { width: 107px; }
	.tp-footer__name { align-self: end; font-family: var(--tp-font); font-weight: 500; }
	.tp-footer__tagline {
		grid-column: 2;
		align-self: start;
		max-width: 793px;
		font-size: 18px;
		font-weight: 400;
		line-height: 26px;
		letter-spacing: 0.36px;
	}

	/* 320 · 101 · 360 · 164 · 559 = 1504 */
	.tp-footer__grid {
		grid-template-columns: minmax(max-content, 320fr) minmax(24px, 101fr) minmax(max-content, 360fr) minmax(24px, 164fr) minmax(0, 559fr);
		column-gap: 0;
	}
	.tp-footer__col--links { grid-column: 1; }
	.tp-footer__col--contact { grid-column: 3; }
	.tp-footer__col--subscribe { grid-column: 5; }

	.tp-footer__title,
	.tp-footer__col--contact .tp-footer__title,
	.tp-footer__col--subscribe .tp-footer__title {
		margin-bottom: 30px;
		font-size: 24px;
		font-weight: 700;
		line-height: 32px;
	}
	.tp-footer__col--contact .tp-bar--sm,
	.tp-footer__col--subscribe .tp-bar--sm { width: 60px; }

	.tp-footer__links li,
	.tp-footer__links li:first-child { padding: 0; border: 0; }
	.tp-footer__links li + li { margin-top: 20px; }
	.tp-footer__links a {
		font-size: 20px;
		font-weight: 500;
		line-height: 24px;
		text-transform: uppercase;
	}
	.tp-footer__links a::after { display: none; }

	.tp-contact { gap: 20px; }
	.tp-contact li { gap: 14px; font-size: 20px; font-weight: 500; line-height: 24px; }
	.tp-contact img { width: 24px; height: 24px; }

	.tp-footer__text { max-width: none; margin-bottom: 20px; font-size: 18px; line-height: 22px; color: #fff; }
	.tp-subscribe { gap: 12px; }
	.tp-subscribe__input { flex-basis: 416px; height: 44px; }
	.tp-subscribe__input::placeholder { color: var(--tp-gray-600); font-weight: 400; }
	.tp-subscribe__btn { width: 96px; height: 44px; }

	.tp-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 48px;
		padding-top: 20px;
	}
	.tp-footer__copy { font-size: 16px; font-weight: 600; }
	.tp-footer__copy a { color: var(--tp-primary); }
	.tp-social { gap: 12px; }
	.tp-social img { width: 30px; height: 30px; }
	.tp-social__facebook { order: 0; }
}

/* 14. Inner pages
   -------------------------------------------------------------------------- */
.tp-page-banner { padding-block: 48px; text-align: center; }
.tp-page-banner__title {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}
.tp-page-banner__sub { margin: 10px auto 0; max-width: 720px; font-size: 16px; color: var(--tp-gray); }
@media (min-width: 992px) {
	.tp-page-banner { padding-block: 80px; }
	.tp-page-banner__title { font-size: 48px; }
	.tp-page-banner__sub { font-size: 18px; }
}

.tp-entry { max-width: 900px; margin-inline: auto; }
.tp-entry__media { margin: 0 0 32px; }
.tp-entry__media img { width: 100%; height: auto; }
.tp-entry__content { font-size: 17px; line-height: 1.7; color: var(--tp-gray); }
.tp-entry__content h2,
.tp-entry__content h3,
.tp-entry__content h4 { margin: 1.6em 0 0.6em; font-weight: 500; color: #fff; }
.tp-entry__content img { height: auto; }
.tp-entry__content blockquote {
	margin: 1.5em 0;
	padding-left: 20px;
	border-left: 4px solid var(--tp-primary);
	color: #fff;
}
.tp-entry__nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--tp-line);
	font-weight: 500;
}
.tp-entry__nav a { text-decoration: none; }

.tp-card { display: flex; flex-direction: column; background-color: var(--tp-card); box-shadow: var(--tp-shadow); }
.tp-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tp-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px; }
.tp-card__meta { margin: 0; font-size: 14px; color: var(--tp-gray); }
.tp-card__title { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.3; }
.tp-card__title a { color: #fff; text-decoration: none; }
.tp-card__title a:hover { color: var(--tp-primary); }
.tp-card__excerpt { flex: 1; color: var(--tp-gray); }
.tp-card__excerpt p { margin: 0; }

.tp-pagination { margin-top: 48px; }
.tp-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tp-line);
	color: #fff;
	text-decoration: none;
}
.tp-pagination .page-numbers.current,
.tp-pagination .page-numbers:hover { border-color: var(--tp-primary); color: var(--tp-primary); }
.tp-empty { text-align: center; color: var(--tp-gray); }

/* Comments */
.tp-comments { max-width: 900px; margin: 64px auto 0; }
.tp-comments .comment-list { padding: 0; list-style: none; }
.tp-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--tp-line); }
.tp-comments input:not([type="submit"]):not([type="checkbox"]),
.tp-comments textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--tp-line);
	background: #1a1a1a;
	color: #fff;
}
.tp-comments .submit {
	padding: 10px 20px;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	text-transform: uppercase;
}

/* 15. About page – page-about.php (Figma 603:19787 / mobile ABOUT US_MB 5035:12658)
   Mobile (<768) theo bản 440px; ≥1600 khớp 1:1 thiết kế 1920 (nội dung 1440).
   -------------------------------------------------------------------------- */
.tp-heading--center { align-items: center; text-align: center; }
.tp-bar--md { width: 73px; height: 5px; }

/* Nền gradient dùng chung (Visions, Work with us) */
.tp-bg-fade { background: linear-gradient(180deg, rgba(50, 48, 47, 0.9) 0%, rgba(22, 17, 11, 0) 100%); }

/* Nút viền 1px (Button "CONTACT US") */
.tp-btn-line {
	--bs-btn-padding-x: 60px;
	--bs-btn-padding-y: 10px;
	--bs-btn-font-size: 14px;
	--bs-btn-font-weight: 700;
	--bs-btn-line-height: 18px;
	--bs-btn-color: #fff;
	--bs-btn-bg: transparent;
	--bs-btn-border-width: 1px;
	--bs-btn-border-color: #fff;
	--bs-btn-border-radius: 0;
	--bs-btn-hover-color: var(--tp-dark);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-active-color: var(--tp-dark);
	--bs-btn-active-bg: var(--tp-primary);
	--bs-btn-active-border-color: var(--tp-primary);
	--bs-btn-focus-shadow-rgb: var(--tp-primary-rgb);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
}

/* 15.1 Banner (603:19788): ảnh opacity 50% + phủ đen 40% (mobile 20%) trên nền #222 */
.tp-ab-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 172px;
	overflow: hidden;
	background-color: var(--tp-bg);
}
.tp-ab-banner__media { position: absolute; inset: 0; opacity: 0.5; }
.tp-ab-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.tp-ab-banner__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.tp-ab-banner__inner { position: relative; padding-block: 32px; text-align: center; }
.tp-ab-banner__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 30px;
	text-transform: uppercase;
	color: #fff;
}
.tp-ab-banner__sub {
	max-width: 235px;
	margin: 10px auto 0;
	font-size: 16px;
	line-height: 20px;
	color: #fff;
}
@media (min-width: 768px) {
	.tp-ab-banner { min-height: 360px; }
	.tp-ab-banner__media::after { background: rgba(0, 0, 0, 0.4); }
	.tp-ab-banner__title { font-size: 48px; font-weight: 600; line-height: 1.17; }
	.tp-ab-banner__sub { max-width: 869px; margin-top: 24px; font-size: 20px; line-height: 1.17; }
}
@media (min-width: 1200px) {
	.tp-ab-banner { min-height: 536px; }
	.tp-ab-banner__title { font-size: 64px; }
	.tp-ab-banner__sub { font-size: 24px; }
}

/* 15.2 Welcome (603:19802) */
.tp-ab-welcome { padding-block: 40px; background-color: #1a1a1a; }
.tp-ab-welcome__logo { display: flex; justify-content: center; margin-bottom: 24px; }
.tp-ab-welcome__logo img { width: 60px; height: auto; }
.tp-ab-welcome__title {
	max-width: 335px;
	margin: 0 auto;
	font-size: 28px;
	font-weight: 500;
	line-height: 40px;
	text-transform: uppercase;
	color: #fff;
}
.tp-ab-welcome__sub {
	max-width: 335px;
	margin: 12px auto 22px;
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	text-transform: uppercase;
	color: var(--tp-primary);
}
@media (min-width: 768px) {
	.tp-ab-welcome__logo img { width: 110px; }
	.tp-ab-welcome__title,
	.tp-ab-welcome__sub { max-width: none; }
	.tp-ab-welcome__title { font-size: 40px; line-height: 1.17; }
	.tp-ab-welcome__sub { margin: 24px auto 40px; font-size: 22px; line-height: 32px; }
}
@media (min-width: 1200px) {
	.tp-ab-welcome { padding-block: 75px; }
	.tp-ab-welcome__logo { margin-bottom: 32px; }
	.tp-ab-welcome__logo img { width: 163px; }
	.tp-ab-welcome__title { font-size: 48px; }
	.tp-ab-welcome__sub { font-size: 24px; }
	.tp-ab-welcome .tp-btn-line { min-height: 48px; }
}

/* 15.3 Our services (5034:10867) – mobile: trượt ngang (thẻ 283px) · ≥992: lưới 4 cột */
.tp-ab-services { padding-block: 40px; }
.tp-ab-services .tp-heading { margin-bottom: 32px; }
.tp-ab-services__list {
	display: flex;
	gap: 20px;
	margin: 0 calc(var(--bs-gutter-x) * -0.5);
	padding: 0 calc(var(--bs-gutter-x) * 0.5);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: calc(var(--bs-gutter-x) * 0.5);
	scrollbar-width: none;
}
.tp-ab-services__list::-webkit-scrollbar { display: none; }
.tp-ab-svc { flex: 0 0 283px; scroll-snap-align: start; }
.tp-ab-svc__link { display: block; color: inherit; text-decoration: none; }
.tp-ab-svc__media { display: block; height: 245px; overflow: hidden; }
.tp-ab-svc__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp-ab-svc:hover .tp-ab-svc__media img { transform: scale(1.04); }
.tp-ab-svc__title {
	margin: 20px 0 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.17;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}
.tp-ab-svc__link:hover .tp-ab-svc__title { color: var(--tp-primary); }
@media (min-width: 992px) {
	.tp-ab-services { padding-block: 75px; }
	.tp-ab-services .tp-heading { margin-bottom: 48px; }
	.tp-ab-services__list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
	.tp-ab-svc__media { height: auto; aspect-ratio: 336 / 245; }
	.tp-ab-svc__title { margin-top: 24px; font-size: 18px; }
}

/* 15.4 Our visions / values (5035:10882) */
.tp-ab-vision { padding-block: 40px; }
.tp-ab-vision__grid { display: grid; row-gap: 32px; }
.tp-ab-vision__text { display: flex; flex-direction: column; gap: 32px; }
.tp-ab-block { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tp-ab-block__title {
	margin: 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.17;
	text-transform: uppercase;
	color: #fff;
}
.tp-ab-block__text { margin: 0; font-size: 16px; line-height: 24px; color: #fff; }
/* 2 ảnh xếp chồng lệch (Group 1171276019: 827×405) */
.tp-ab-collage { position: relative; aspect-ratio: 827 / 405; }
.tp-ab-collage__img { position: absolute; height: 84.44%; object-fit: cover; }
.tp-ab-collage__img--1 { left: 0; top: 15.56%; width: 40.63%; }
.tp-ab-collage__img--2 { right: 0; top: 0; width: 55.5%; }
@media (min-width: 992px) {
	.tp-ab-vision { display: flex; align-items: center; min-height: 555px; padding-block: 75px; }
	.tp-ab-vision > .container { width: 100%; }
	.tp-ab-vision__grid {
		grid-template-columns: minmax(0, 459fr) minmax(0, 827fr);
		column-gap: 10.7%;
		align-items: center;
	}
	.tp-ab-vision__text { gap: 48px; }
	.tp-ab-block__title { font-size: 32px; }
}

/* 15.5 Work with us (603:20435) – mobile: trượt ngang · ≥768: căn giữa, xuống dòng · ≥1200: 1 hàng */
.tp-ab-work { padding-block: 40px; }
.tp-ab-work .tp-heading { margin-bottom: 32px; }
.tp-ab-work .tp-heading__sub { font-size: 16px; line-height: 24px; }
.tp-ab-work__list {
	display: flex;
	gap: 40px;
	margin: 0 calc(var(--bs-gutter-x) * -0.5);
	padding: 0 calc(var(--bs-gutter-x) * 0.5);
	overflow-x: auto;
	scrollbar-width: none;
}
.tp-ab-work__list::-webkit-scrollbar { display: none; }
.tp-ab-work__item {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.tp-ab-work__item img { width: auto; height: 64px; }
.tp-ab-work__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.28px;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--tp-gray);
}
@media (min-width: 768px) {
	.tp-ab-work__list { flex-wrap: wrap; justify-content: center; gap: 40px 64px; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 992px) {
	.tp-ab-work { padding-block: 75px; }
	.tp-ab-work .tp-heading { margin-bottom: 48px; }
	.tp-ab-work .tp-heading__title { margin-top: 24px; }
	.tp-ab-work .tp-heading__sub { margin-top: 16px; font-size: 20px; line-height: 20px; color: #fff; }
	.tp-ab-work__item { gap: 35px; }
	.tp-ab-work__item img { height: 94px; }
	.tp-ab-work__label { font-size: 20px; line-height: 30px; letter-spacing: 0.4px; }
}
@media (min-width: 1400px) {
	.tp-ab-work__list { flex-wrap: nowrap; justify-content: space-between; gap: 0; padding-inline: 16px; }
}

/* 15.6 Professional team (606:21166) */
.tp-ab-team { padding-block: 40px; }
.tp-ab-team .tp-heading { margin-bottom: 20px; }
.tp-ab-team__text {
	margin: 0 0 32px;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.28px;
	text-align: center;
	color: #fff;
}
.tp-ab-team__media img { display: block; width: 100%; height: 200px; object-fit: cover; }
@media (min-width: 768px) {
	.tp-ab-team__media img { height: auto; aspect-ratio: 1440 / 657; }
}
@media (min-width: 992px) {
	.tp-ab-team { padding-block: 75px; }
	.tp-ab-team .tp-heading { margin-bottom: 32px; }
	.tp-ab-team__text {
		margin-bottom: 40px;
		font-size: 20px;
		line-height: 1.5;
		letter-spacing: 0.4px;
		color: var(--tp-gray);
	}
}
/* Video thay cho ảnh (about_promo_web.mp4 · 1280×720): giữ đủ khung 16:9 để không cắt chữ trong video */
.tp-ab-team__media--video { background-color: #000; }
.tp-ab-team__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background-color: #000; }

/* Mobile – căn theo ABOUT US_MB (5035:12658) */
@media (max-width: 767.98px) {
	.tp-ab-welcome .tp-btn-line { --bs-btn-padding-x: 40px; }                 /* nút 161 × 40 */
	.tp-ab-services .tp-heading__title,
	.tp-ab-work .tp-heading__title { margin-top: 24px; }
	.tp-ab-work .tp-heading__sub { margin-top: 16px; }
	.tp-ab-team .tp-heading__title { margin-top: 16px; }
}
.tp-partners {
	display: flex;
	background: #100D0A;
	margin:0 auto;
	padding: 30px 0px;
	justify-content: center;
	align-items: center;
}
.tp-page-about .tp-partners { background-color: #1a1a1a; } /* Figma 609:23614 */

/* 16. Developer page – page-developer.php (Figma 609:24002 / mobile DEVELOPER_MB 5035:15568)
   Banner dùng chung .tp-ab-banner (15.1) qua template-parts/page-hero.php.
   -------------------------------------------------------------------------- */
.tp-btn-line--sm { --bs-btn-padding-x: 14px; min-height: 48px; }

.tp-dv { padding-block: 40px; }
.tp-dv__intro { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 32px; text-align: center; }
.tp-dv__lead { margin: 0; font-size: 18px; line-height: 1.5; color: #fff; }
.tp-dv__grid { --bs-gutter-x: 32px; --bs-gutter-y: 24px; }
.tp-dv-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px 16px 32px;
	overflow: hidden;
	background-color: var(--tp-dark);
}
.tp-dv-card__media { aspect-ratio: 368 / 340; margin-bottom: 31px; overflow: hidden; background-color: #d9d9d9; }
.tp-dv-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp-dv-card:hover .tp-dv-card__media img { transform: scale(1.04); }
.tp-dv-card__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.17;
	text-transform: uppercase;
	color: #fff;
}
.tp-dv-card__text { margin: 0; font-size: 16px; line-height: 24px; letter-spacing: 0.32px; color: var(--tp-gray); }
.tp-dv__cta { display: flex; justify-content: center; margin-top: 32px; }

@media (min-width: 768px) {
	.tp-dv-card { padding: 24px 24px 32px; }
	.tp-dv-card__media { aspect-ratio: 644 / 597; }
	.tp-dv-card__title { font-size: 24px; line-height: 1.4; }
}
@media (min-width: 992px) {
	.tp-dv { padding-block: 75px; }
	.tp-dv__intro { margin-bottom: 48px; }
	.tp-dv__lead { font-size: 24px; }
	.tp-dv__grid { --bs-gutter-y: 32px; }
	.tp-dv__cta { margin-top: 48px; }
}
@media (min-width: 1200px) {
	.tp-dv-card { padding: 30px 30px 40px; }
	.tp-dv-card__media { margin-bottom: 32px; }
	.tp-dv-card__title { font-size: 32px; line-height: 52px; }
	.tp-dv-card__text { font-size: 20px; line-height: 32px; letter-spacing: 0.4px; }
}
.tp-ab-banner--wide .tp-ab-banner__sub { max-width: 335px; } /* mobile DEVELOPER_MB: mô tả rộng 335 */
@media (min-width: 768px) { .tp-ab-banner--wide .tp-ab-banner__sub { max-width: 869px; } }

/* 17. Portfolio – page-portfolio.php (Figma TP_HOME_Khanh "Portfolio" 6:1151)
       + single-portfolio.php ("Portfolio_detail project" 6:2272)
   Nội dung rộng 1300 (x=310 trên khung 1920). Banner dùng chung .tp-ab-banner (15.1).
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
	.container.container-narrow { max-width: 1324px; }
}
.tp-pf-banner .tp-ab-banner__sub { margin-top: 10px; }
@media (min-width: 1200px) {
	.tp-pf-banner .tp-ab-banner__title { font-size: 70px; }
}

/* 17.1 Danh sách */
.tp-pf { padding-block: 32px 40px; }
.tp-pf__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 24px;
}
.tp-pf__tabs { display: flex; flex: 1 1 100%; gap: 0; }
.tp-pf__tab {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	height: 48px;
	border-bottom: 2px solid transparent;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.17;
	text-align: center;
	text-decoration: none;
	color: #fff;
}
.tp-pf__tab:hover { color: var(--tp-primary); }
.tp-pf__tab.is-active { font-weight: 500; border-bottom-color: #fff; color: #fff; }
.tp-pf__sort { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tp-pf__sort-label {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.5px;
	white-space: nowrap;
	color: #fff;
}
.tp-pf__select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2' d='m18 9-6 6-6-6'/%3e%3c/svg%3e");
	width: 180px;
	height: 40px;
	padding: 8px 40px 8px 16px;
	border: 1px solid rgba(128, 128, 128, 0.55);
	border-radius: 6px;
	background-color: transparent;
	background-size: 20px 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #fff;
	cursor: pointer;
}
.tp-pf__select:focus { border-color: var(--tp-primary); box-shadow: 0 0 0 0.2rem rgba(var(--tp-primary-rgb), 0.25); }
.tp-pf__select option { color: #111; background: #fff; }

.tp-pf__grid { 
	display: grid; 
	
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	 }
.tp-pf__empty { padding-block: 48px; }

/* Thẻ dự án vuông (6:1162) */
.tp-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: #1a1a1a; }
.tp-tile__link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.tp-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp-tile__link::before {                /* gradient 92px trên cùng */
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
	height: 92px;
	background: linear-gradient(0deg, rgba(22, 17, 11, 0) 5.435%, rgba(12, 9, 6, 0.46) 42.647%, rgba(0, 0, 0, 0.9) 100%);
	pointer-events: none;
}
.tp-tile__title {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 0;
	right: 0;
	display: -webkit-box;
	margin: 0;
	padding-inline: 16px;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	letter-spacing: 0.54px;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}
.tp-tile__btn {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 28px;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
	pointer-events: none;
}
.tp-tile:hover .tp-tile__img,
.tp-tile__link:focus-visible .tp-tile__img { transform: scale(1.04); }
.tp-tile:hover .tp-tile__btn,
.tp-tile__link:focus-visible .tp-tile__btn { opacity: 1; transform: translate(-50%, 0); }
.tp-tile__link:focus-visible { outline-offset: -3px; }
@media (hover: none) {
	.tp-tile__btn { display: none; }
}

@media (min-width: 576px) {
	.tp-pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.tp-pf__tabs { flex: 0 1 auto; gap: 32px; }
	.tp-pf__tab { flex: none; min-width: 200px; height: 58px; font-size: 22px; }
	.tp-pf__tab + .tp-pf__tab { min-width: 180px; }
}
@media (min-width: 992px) {
	.tp-pf { padding-block: 98px 120px; }
	.tp-pf__bar { margin-bottom: 78px; }
	.tp-pf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 20px; }
	.tp-pf__tab { min-width: 240px; font-size: 24px; }
	.tp-pf__tab + .tp-pf__tab { min-width: 222px; }
	.tp-tile__title { font-size: 18px; }
}

/* 17.2 Chi tiết dự án (6:2272) */
.tp-pfd { padding-block: 40px; }
.tp-pfd__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.tp-pfd__title {
	max-width: 869px;
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
}
.tp-pfd__text {
	max-width: 869px;
	margin-bottom: 32px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--tp-gray);
}
.tp-pfd__text > :last-child { margin-bottom: 0; }
.tp-pfd__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tp-pfd__item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: #1a1a1a; }
.tp-pfd__link { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.tp-pfd__link::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
	height: 92px;
	background: linear-gradient(0deg, rgba(22, 17, 11, 0) 5.435%, rgba(12, 9, 6, 0.46) 42.647%, rgba(0, 0, 0, 0.9) 100%);
	pointer-events: none;
}
.tp-pfd__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, filter 0.3s ease;
}
.tp-pfd__link:hover .tp-pfd__img,
.tp-pfd__link:focus-visible .tp-pfd__img { transform: scale(1.04); filter: brightness(1.06); }
.tp-pfd__link:focus-visible { outline-offset: -3px; }

.tp-pfd__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--tp-line);
	font-size: 14px;
	line-height: 1.4;
}
.tp-pfd__nav a { color: #fff; text-decoration: none; }
.tp-pfd__nav a:hover { color: var(--tp-primary); }
.tp-pfd__nav-next { text-align: right; }
.tp-pfd__nav-all { font-weight: 700; letter-spacing: 0.28px; text-transform: uppercase; white-space: nowrap; }

@media (min-width: 768px) {
	.tp-pfd__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.tp-pfd__title { font-size: 40px; }
}
@media (min-width: 992px) {
	.tp-pfd { padding-block: 86px 52px; }
	.tp-pfd__head { gap: 24px; margin-bottom: 40px; }
	.tp-pfd__title { font-size: 52px; line-height: 74px; }
	.tp-pfd__text { margin-bottom: 40px; font-size: 18px; }
	.tp-pfd__gallery { gap: 23px 20px; }
	.tp-pfd__nav { margin-top: 48px; font-size: 16px; }
}

/* 17.3 Lightbox */
.tp-lightbox .modal-content { background-color: rgba(0, 0, 0, 0.94); border: 0; border-radius: 0; }
.tp-lightbox__top {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	color: var(--tp-gray);
	font-size: 14px;
	letter-spacing: 0.28px;
}
.tp-lightbox__close { padding: 4px; border: 0; background: none; line-height: 0; }
.tp-lightbox__carousel,
.tp-lightbox__carousel .carousel-inner,
.tp-lightbox__carousel .carousel-item { height: 100%; }
.tp-lightbox__carousel .carousel-item { padding: 56px 12px 24px; }
.tp-lightbox__carousel .carousel-item.active,
.tp-lightbox__carousel .carousel-item-next,
.tp-lightbox__carousel .carousel-item-prev { display: flex; align-items: center; justify-content: center; }
.tp-lightbox__carousel img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tp-lightbox__arrow { width: 12%; opacity: 0.85; }
.tp-lightbox__arrow:hover { opacity: 1; }
@media (min-width: 992px) {
	.tp-lightbox__carousel .carousel-item { padding: 64px 96px 40px; }
	.tp-lightbox__arrow { width: 96px; }
}

@media (min-width:992px) {
	.section-contact {
		padding: 80px 0 164px;
	}
}
@media (max-width:768px) {
	.section-contact {
		padding: 32px 0;
	}
}

.partnership-hero {
    min-height: 536px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
        url('../images/partnership/hero-partnership-desktop.jpg') center center / cover no-repeat;
}

.referral-note {
    margin-top: 8px;
    color:#D2B48E;
    font-size: 12px;
    font-style: italic;
}
.sec-gen-contractor {
	padding: 64px 0;
}
.sec-gen-contractor h2 {
color: #FFF;
text-align: center;
font-family: Roboto;
font-size: 64px;
font-style: normal;
font-weight: 500;
line-height: 86px; /* 134.375% */
text-transform: uppercase;
}
.sec-gen-contractor h3 {
	
	margin-bottom: 16px;
	color: #FFF;
	text-align: center;
	font-family: Roboto;
	font-size: 34px;
	font-style: normal;
	font-weight: 500;
	line-height: 46px; 
	text-transform: uppercase;
}
@media (max-width:768px) {
	.sec-gen-contractor h3 {
		margin-top:32px;
		font-size: 24px;
		font-style: normal;
		font-weight: 500;
		line-height: 32px;
	}
}
.sec-gen-contractor p {
	color: #FFF;
	text-align: center;
	font-family: Roboto;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px; 
	letter-spacing: 0.4px;
}
.box-thumbs-large {
	padding: 0;
}
.box-thumbs-card {
	margin-top: 32px;
}


.box-thumbs-divider {
	position: relative;
	display: block;
	margin: 0 auto;
	width: 317px;
	height: 6px;
	margin-bottom: 30px;
	background:  rgba(128, 128, 128, 0.55);
}
.divider-separator {
	
}
.tp-footer__disclaimer {
	margin-top: 20px;
	font-size: 12px;
	font-family: Roboto;
	font-style: normal;
}
@media (max-width:768px) {
	.sec-gen-contractor {
		padding: 0 0 32px;
	}
	.box-thumbs-detail {
		margin-top: 32px;
	}
	.box-thumbs-divider {
	width: 102px;
	height: 1px;
	}
}
.btn-two {
	color: var(--White, #FFF);
	text-align: center;
	font-family: Roboto;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px; /* 128.571% */
	letter-spacing: 0.28px;
	text-transform: uppercase;

	margin: 20px auto;
	display: inline-flex;
	height: 48px;
	padding: 12px 14px;
	justify-content: center;
	align-items: center;
	gap: 8px;
	border-radius: 0;
	border: 1px solid var(--DARK, #100D0A);
	background: var(--DARK, #100D0A);
}
/* 18. Partnership – page-partnership.php
   Figma TP_HOME_Khanh: "Partnership" 10:5245 (1920) · "PARTNERSHIP_MB" 10:5453 (375).
   Mobile <768 · tablet 768–1199 · desktop ≥1200 (nội dung 1300, x = 310). Banner dùng chung .tp-ab-banner (15.1).
   -------------------------------------------------------------------------- */
/* Ảnh banner mặc định đã được làm tối sẵn → bỏ lớp mờ 50% của .tp-ab-banner */
.tp-ps-banner .tp-ab-banner__media { opacity: 1; }
.tp-ps-banner .tp-ab-banner__media::after { background: rgba(0, 0, 0, 0.15); }
.tp-ps-banner .tp-ab-banner__sub { max-width: 335px; }
@media (min-width: 768px) {
	.tp-ps-banner .tp-ab-banner__sub { max-width: 869px; font-size: 20px; line-height: 1.2; }
}
@media (min-width: 1200px) {
	.tp-ps-banner .tp-ab-banner__title { font-size: 70px; line-height: 1.17; }
	.tp-ps-banner .tp-ab-banner__sub { margin-top: 10px; font-size: 24px; }
}

/* 18.1 Become a Partner – 3 thẻ lợi ích (10:5252) */
.tp-ps-benefits { margin-top: 32px; padding: 32px 0; background-color: var(--tp-dark); }
.tp-ps-benefits__head { max-width: 830px; margin: 0 auto 24px; text-align: center; }
.tp-ps-benefits__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 30px; text-transform: uppercase; color: #fff; }
.tp-ps-benefits__intro { margin: 14px 0 0; font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: 0.15px; color: #fff; }
.tp-ps-cards { display: flex; flex-direction: column; gap: 14px; margin-inline: auto; }
.tp-ps-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border-radius: 10px;
	background-color: rgba(128, 128, 128, 0.55);
}
.tp-ps-card__icon { flex: none; width: 36px; height: 36px; border-radius: 8px; filter: drop-shadow(0 8px 12px rgba(255, 255, 255, 0.2)); }
.tp-ps-card__title { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 17px; color: #fff; }
.tp-ps-card__text { margin: 0; font-size: 12px; line-height: 18px; color: #fff; }

@media (min-width: 768px) {
	.tp-ps-benefits { display: flex; align-items: center; min-height: 500px; margin-top: 48px; padding: 60px 0; }
	.tp-ps-benefits > .container { width: 100%; }
	.tp-ps-benefits__head { margin-bottom: 40px; }
	.tp-ps-benefits__title { font-size: 32px; line-height: 1.4; }
	.tp-ps-benefits__intro { font-size: 18px; line-height: 27px; }
	.tp-ps-cards { flex-direction: row; justify-content: center; gap: 24px; }
	.tp-ps-card { flex: 0 1 276px; flex-direction: column; align-items: flex-start; gap: 20px; min-height: 256px; padding: 20px; }
	.tp-ps-card__icon { width: 64px; height: 64px; border-radius: 14px; }
	.tp-ps-card__title { margin-bottom: 10px; font-size: 20px; line-height: 1.2; }
	.tp-ps-card__text { font-size: 16px; line-height: 24px; }
}
@media (min-width: 1200px) {
	.tp-ps-benefits { min-height: 640px; padding: 86px 0; }
	.tp-ps-benefits__head { margin-bottom: 52px; }
	.tp-ps-benefits__title { font-size: 38px; line-height: 62px; }
	.tp-ps-benefits__intro { font-size: 20px; line-height: 29px; }
	.tp-ps-cards { gap: 41px; }
	.tp-ps-card__title { font-size: 24px; line-height: 28px; }
}

/* 18.2 Referral Opportunities + How it works + ảnh trượt (10:5406) */
.tp-ps-ref { padding: 38px 0 18px; overflow-x: clip; }
.tp-ps-ref__row { display: flex; flex-direction: column; gap: 32px; }
.tp-ps-ref__content { min-width: 0; }
.tp-ps-ref__intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tp-ps-ref__intro .tp-bar { height: 3px; }
.tp-ps-ref__title {
	margin: 20px 0 10px;
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
	text-transform: uppercase;
	color: #fff;
}
.tp-ps-ref__text { font-size: 16px; line-height: 20px; color: #fff; }
.tp-ps-ref__text p { margin: 0 0 12px; }
.tp-ps-ref__text p:last-child { margin-bottom: 0; }
.tp-ps-ref__text strong { font-weight: 600; }
.tp-ps-ref__lead { font-weight: 600; color: var(--tp-primary); }
.tp-ps-ref__rule {
	width: 100%;
	margin: 20px 0 0;
	border: 0;
	border-top: 1px solid rgba(128, 128, 128, 0.55);
	opacity: 1;
}

.tp-ps-how {
	margin: 0 calc(var(--bs-gutter-x) * -0.5);
	padding: 32px calc(var(--bs-gutter-x) * 0.5) 24px;
	background: var(--tp-ps-how-bg, none) center bottom / cover no-repeat;
}
.tp-ps-how__title { margin: 0 0 16px; font-family: var(--tp-font-blog, var(--tp-font)); font-size: 32px; font-weight: 500; line-height: 40px; color: #fff; }
.tp-ps-how__list { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.tp-ps-how__list li {
	position: relative;
	padding-left: 32px;
	font-size: 14px;
	line-height: 1.8;
	color: #fff;
}
.tp-ps-how__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(0.9em - 10px);
	width: 20px;
	height: 20px;
	background-color: var(--tp-primary);
	-webkit-mask: url("../images/icons/check.svg") center / contain no-repeat;
	mask: url("../images/icons/check.svg") center / contain no-repeat;
}
.tp-ps-how__list strong { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tp-ps-how__list sup { top: -0.9em; font-size: 8px; }
.tp-ps-how__cta a { font-weight: 600; color: var(--tp-primary); text-decoration: underline; text-underline-offset: 3px; }
.tp-ps-how__cta a:hover { color: #fff; }
.tp-ps-how__note { margin: 6px 0 0; font-size: 12px; font-style: italic; line-height: 1.8; color: var(--tp-primary); }

/* Ảnh trượt (initSlider trong theme.js: data-tp-slider / data-tp-track / data-tp-dots) */
.tp-ps-ref__media { position: relative; min-width: 0; }
.tp-ps-slider { margin-inline: calc(var(--bs-gutter-x) * -0.5); }
.tp-ps-slider__track {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.tp-ps-slider__track::-webkit-scrollbar { display: none; }
.tp-ps-slide {
	flex: 0 0 100%;
	height: 242px;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #d9d9d9;
}
.tp-ps-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-ps-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.tp-ps-dots__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--tp-gray-600);
	transition: background-color 0.2s ease;
}
.tp-ps-dots__dot.is-active { background-color: #fff; }

@media (min-width: 768px) {
	.tp-ps-ref { padding: 60px 0; }
	.tp-ps-ref__intro .tp-bar { height: 5px; }
	.tp-ps-ref__title { font-size: 40px; line-height: 52px; }
	.tp-ps-ref__text { font-size: 18px; line-height: 26px; }
	.tp-ps-ref__text strong { font-size: 1.2em; }
	.tp-ps-ref__rule { width: 324px; margin: 40px auto 0; }
	.tp-ps-how { margin: 24px 0 0; padding: 0; background: none; }
	.tp-ps-how__list li { font-size: 16px; }
	.tp-ps-slider { margin-inline: 0 calc(var(--bs-gutter-x) * -0.5); }
	.tp-ps-slider__track { gap: 24px; }
	.tp-ps-slide { flex: 0 0 auto; width: 280px; height: 400px; }
	.tp-ps-slide:not(:first-child) { width: 227px; height: 362px; }
	.tp-ps-dots { justify-content: flex-start; }
}
@media (min-width: 1200px) {
	.tp-ps-ref { padding: 92px 0 68px; }
	.tp-ps-ref__row { flex-direction: row; align-items: flex-start; gap: 72px; }
	.tp-ps-ref__content { flex: 0 0 634px; }
	.tp-ps-ref__media { flex: 1 1 auto; height: 542px; }
	.tp-ps-ref__intro { align-items: flex-start; text-align: left; }
	.tp-ps-ref__title { margin-top: 20px; font-size: 50px; line-height: 64px; }
	.tp-ps-ref__text { font-size: 20px; line-height: 28px; }
	.tp-ps-ref__rule { margin: 64px 0 0; }
	.tp-ps-how { max-width: 549px; }
	/* tràn ra mép phải màn hình như thiết kế */
	.tp-ps-slider { margin-right: calc(-1 * max(var(--bs-gutter-x) * 0.5, (100vw - 1324px) / 2 + var(--bs-gutter-x) * 0.5)); }
	.tp-ps-slide { width: 380px; height: 542px; }
	.tp-ps-slide:not(:first-child) { width: 308px; height: 490px; }
	.tp-ps-dots { position: absolute; left: 404px; top: 518px; margin: 0; }
}

/* 18.3 Current Affiliates (10:5298) */
.tp-ps-aff { margin: 30px 0 0; padding: 32px 0; background-color: var(--tp-dark); }
.tp-ps-aff__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.tp-ps-aff__head .tp-bar { height: 3px; }
.tp-ps-aff__title { margin: 0; font-size: 24px; font-weight: 500; line-height: 32px; text-transform: uppercase; color: #fff; }
.tp-ps-aff__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px 40px;
	margin: 24px 0 0;
}
.tp-ps-aff__item { display: flex; flex: 0 0 calc((100% - 80px) / 3); justify-content: center; }
.tp-ps-aff__item img { display: block; width: 100%; max-width: 80px; height: 48px; object-fit: contain; }
.tp-ps-aff__item a { display: block; transition: opacity 0.2s ease; }
.tp-ps-aff__item a:hover { opacity: 0.75; }

@media (min-width: 768px) {
	.tp-ps-aff { margin: 0; padding: 48px 0; }
	.tp-ps-aff__head { gap: 24px; }
	.tp-ps-aff__head .tp-bar { height: 5px; }
	.tp-ps-aff__title { font-size: 40px; line-height: 52px; }
	.tp-ps-aff__list { flex-wrap: nowrap; gap: 20px; margin-top: 48px; }
	.tp-ps-aff__item { flex: 0 1 244px; align-items: center; height: 160px; }
	.tp-ps-aff__item img { max-width: 120px; height: 96px; }
}
@media (min-width: 1200px) {
	.tp-ps-aff__title { font-size: 50px; line-height: 64px; }
	.tp-ps-aff__item { height: 240px; padding: 30px 50px; }
	.tp-ps-aff__item a { width: 100%; }
	.tp-ps-aff__item img { max-width: 180px; height: 145px; }
}

/* 19. Blog / FAQ – page-blog.php, template-parts/content-blog-card.php, single.php
   Figma TP_HOME_Khanh: Blogs 17:6110 · BLOGS_MB 17:6165 · Blogs Detail 17:6227 · BLOGS DETAIL_MB 17:6195
   -------------------------------------------------------------------------- */
:root { --tp-font-blog: "DM Sans Variable", "DM Sans", var(--tp-font); }

/* 19.1 Lưới bài viết (desktop 3 × 383, gap 24 / 52 · mobile 1 cột) */
.tp-blog { padding: 52px 0 0; }
.tp-blog__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.tp-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e6e8eb;
	background-color: #f7f7f7;
}
.tp-blog-card__media { display: block; height: 238px; overflow: hidden; background-color: #d9d9d9; }
.tp-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tp-blog-card:hover .tp-blog-card__media img { transform: scale(1.05); }
.tp-blog-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 16px; padding: 20px 16px; }
.tp-blog-card__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; }
.tp-blog-card__title {
	margin: 0;
	font-family: var(--tp-font-blog);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	color: #000;
}
.tp-blog-card__title a { color: inherit; text-decoration: none; }
.tp-blog-card__title a:hover { color: var(--tp-brown); }
.tp-blog-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--tp-font-blog);
	font-size: 14px;
	line-height: 20px;
	color: #2b2b2b;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}
.tp-blog-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none;
	text-transform: uppercase;
	color: #181a20;
}
.tp-blog-card__arrow {
	display: block;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/arrow-right.svg") center / 20px no-repeat;
	mask: url("../images/icons/arrow-right.svg") center / 20px no-repeat;
	transition: transform 0.2s ease;
}
.tp-blog-card__more:hover { color: var(--tp-brown); }
.tp-blog-card__more:hover .tp-blog-card__arrow { transform: translateX(4px); }
.tp-blog__empty { margin: 0; text-align: center; color: var(--tp-gray); }

@media (min-width: 768px) {
	.tp-blog { padding-top: 80px; }
	.tp-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (min-width: 1200px) {
	.tp-blog { padding-top: 120px; }
	.container.tp-blog__container { max-width: calc(1197px + var(--bs-gutter-x)); }
	.tp-blog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 52px; }
	.tp-blog-card__media { height: 297px; }
	.tp-blog-card__body { gap: 20px; padding: 30px; }
	.tp-blog-card__text { gap: 15px; }
	.tp-blog-card__title {
		font-family: var(--tp-font);
		font-size: 20px;
		font-weight: 700;
		line-height: 26px;
		letter-spacing: 0.4px;
		text-transform: capitalize;
		color: var(--tp-dark);
	}
	.tp-blog-card__excerpt { font-size: 16px; line-height: 22px; color: var(--tp-line); }
}

/* 19.2 FAQ (accordion Bootstrap collapse) */
.tp-faq { padding: 56px 0 40px; }
.tp-faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.tp-faq__head .tp-bar { height: 3px; }
.tp-faq__title { margin: 0; font-size: 30px; font-weight: 500; line-height: 36px; text-transform: uppercase; color: #fff; }
.tp-faq__list { display: flex; flex-direction: column; gap: 16px; }
.tp-faq__item {
	overflow: hidden;
	border: 1px solid #b7b7b7;
	border-radius: 4px;
	background-color: #fff;
	transition: box-shadow 0.2s ease;
}
.tp-faq__item.is-open { border-color: #858585; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.tp-faq__q { margin: 0; }
.tp-faq__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px;
	border: 0;
	background-color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-align: left;
	color: #000;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.tp-faq__btn > span { flex: 1 1 auto; min-width: 0; }
.tp-faq__btn:not(.collapsed) { background-color: #565656; color: #fff; }
.tp-faq__btn:focus-visible { outline: 2px solid var(--tp-primary); outline-offset: -2px; }
.tp-faq__icon {
	flex: none;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/minus.svg") center / contain no-repeat;
	mask: url("../images/icons/minus.svg") center / contain no-repeat;
}
.tp-faq__btn.collapsed .tp-faq__icon {
	-webkit-mask-image: url("../images/icons/plus.svg");
	mask-image: url("../images/icons/plus.svg");
}
.tp-faq__a {
	padding: 14px 16px 16px;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.25px;
	color: #2b2b2b;
}

@media (min-width: 768px) {
	.tp-faq { padding: 86px 0 80px; }
	.tp-faq__head { align-items: center; gap: 24px; margin-bottom: 48px; text-align: center; }
	.tp-faq__head .tp-bar { height: 5px; }
	.tp-faq__title { font-size: 48px; line-height: 1.2; }
	.tp-faq__list { gap: 24px; }
	.tp-faq__btn { gap: 36px; min-height: 68px; padding: 20px 24px; font-size: 20px; line-height: 28px; }
	.tp-faq__btn:not(.collapsed) { font-weight: 600; }
	.tp-faq__a { padding: 24px 32px; font-size: 16px; line-height: 26px; }
}
@media (min-width: 1200px) {
	.tp-faq { padding-bottom: 120px; }
	.container.tp-faq__container { max-width: calc(1200px + var(--bs-gutter-x)); }
	.tp-faq__head { margin-bottom: 64px; }
	.tp-faq__title { font-size: 70px; line-height: 86px; }
	.tp-faq__btn { font-size: 24px; }
}

/* 19.3 Chi tiết bài viết (nội dung 855 + sidebar 328, cách 45) */
.tp-post { padding: 24px 0 48px; font-family: var(--tp-font-blog); }
.tp-post .container { --bs-gutter-x: 20px; }
.tp-post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	text-decoration: none;
	color: #fff;
}
.tp-post__back img { width: 23px; height: 23px; transition: transform 0.2s ease; }
.tp-post__back:hover { color: var(--tp-primary); }
.tp-post__back:hover img { transform: translateX(-3px); }
.tp-post__row { display: flex; flex-direction: column; gap: 48px; }
.tp-post__main { min-width: 0; }
.tp-post__title { margin: 0 0 20px; font-family: var(--tp-font-blog); font-size: 24px; font-weight: 700; line-height: 1.3; color: #fff; }
.tp-post__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.tp-post__by { margin: 0; font-size: 14px; font-weight: 400; color: #fff; }
.tp-post__by strong { font-weight: 500; }
.tp-post__sep { margin: 0 2px; font-weight: 300; color: #adadad; }
.tp-post__share { display: flex; gap: 20px; margin: 0; padding: 10px; }
.tp-post__share a { display: block; line-height: 0; transition: opacity 0.2s ease; }
.tp-post__share a:hover { opacity: 0.7; }
.tp-post__share img { width: 20px; height: 20px; }

/* Nội dung soạn trong trình soạn thảo */
.tp-post__content { font-size: 16px; line-height: 22px; color: #fff; overflow-wrap: break-word; }
.tp-post__content > * { margin-top: 0; margin-bottom: 20px; }
.tp-post__content > :last-child { margin-bottom: 0; }
.tp-post__content > p:first-child,
.tp-post__content > .tp-post__cover + p { font-size: 14px; font-weight: 500; line-height: 20px; }
.tp-post__content h2,
.tp-post__content h3,
.tp-post__content h4 { font-family: var(--tp-font-blog); font-size: 22px; font-weight: 500; line-height: 1.3; color: #fff; }
.tp-post__content h4 { font-size: 18px; }
.tp-post__content a { color: var(--tp-primary); }
.tp-post__content a:hover { color: #fff; }
.tp-post__content ul,
.tp-post__content ol { padding-left: 1.25em; }
.tp-post__content li + li { margin-top: 6px; }
.tp-post__content img { max-width: 100%; height: auto; }
.tp-post__content figure { margin-inline: 0; }
.tp-post__content .wp-block-image img,
.tp-post__content > p > img:only-child,
.tp-post__cover img { display: block; width: 100%; height: 220px; object-fit: cover; }
.tp-post__content figcaption { margin-top: 8px; font-size: 13px; color: var(--tp-gray); }
.tp-post__content blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--tp-primary); color: var(--tp-gray); }

/* Sidebar */
.tp-post__aside { display: none; }
.tp-latest { padding: 24px; border: 1px solid var(--tp-gray); border-radius: 6px; }
.tp-latest__title {
	margin: 0 0 24px;
	font-family: var(--tp-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.15px;
	text-transform: uppercase;
	color: #fff;
}
.tp-latest__list { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.tp-latest__item { display: flex; align-items: center; gap: 16px; }
.tp-latest__media { flex: none; width: 98px; height: 108px; overflow: hidden; border-radius: 2px; background-color: #3a3a3a; }
.tp-latest__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tp-latest__item:hover .tp-latest__media img { transform: scale(1.06); }
.tp-latest__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-family: var(--tp-font); font-size: 14px; font-weight: 500; line-height: 20px; }
.tp-latest__name {
	display: -webkit-box;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}
.tp-latest__name:hover { color: var(--tp-primary); }
.tp-latest__date { color: var(--tp-gray); }
.tp-tags { margin-top: 33px; }
.tp-tags__title { margin: 0 0 16px; font-family: var(--tp-font-blog); font-size: 20px; font-weight: 500; line-height: 26px; color: #fff; }
.tp-tags__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tp-tags__chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 5px;
	background-color: #f0f0f0;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	color: #535252;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.tp-tags__chip:hover { background-color: var(--tp-primary); color: var(--tp-dark); }

@media (min-width: 768px) {
	.tp-post { padding: 60px 0 80px; }
	.tp-post .container { --bs-gutter-x: 2.5rem; }
	.tp-post__back { margin-bottom: 40px; font-size: 20px; }
	.tp-post__back img { width: 24px; height: 24px; }
	.tp-post__title { font-size: 36px; }
	.tp-post__by { font-size: 16px; }
	.tp-post__aside { display: block; }
	.tp-post__content .wp-block-image img,
	.tp-post__content > p > img:only-child,
	.tp-post__cover img { height: 416px; }
}
@media (min-width: 992px) {
	.tp-post__row { flex-direction: row; align-items: flex-start; gap: 45px; }
	.tp-post__main { flex: 1 1 auto; }
	.tp-post__aside { flex: 0 0 300px; }
}
@media (min-width: 1200px) {
	.tp-post { padding: 86px 0 120px; }
	.container.tp-post__container { max-width: calc(1228px + var(--bs-gutter-x)); }
	.tp-post__back { margin-bottom: 52px; }
	.tp-post__aside { flex-basis: 328px; }
}

/* 20. Contact – hero banner (page-contact-us.php)
   Figma TP_HOME_Khanh "CONTACT" 21:8357 (1920 × 536) · "CONTACT_MB" 21:8378 (375 × 172).
   Dùng chung .tp-ab-banner (15.1): ảnh mờ 60% + phủ đen 40% (mobile 34%) trên nền #222.
   -------------------------------------------------------------------------- */
.tp-ct-hero .tp-ab-banner__media { opacity: 0.6; }
.tp-ct-hero .tp-ab-banner__media::after { background: rgba(0, 0, 0, 0.34); }
.tp-ct-hero--baked .tp-ab-banner__media { opacity: 1; }          /* ảnh mặc định đã được làm tối */
.tp-ct-hero--baked .tp-ab-banner__media::after { background: none; }
.tp-ct-hero__inner { display: flex; flex-direction: column; align-items: center; }
.tp-ct-hero__bar,
.tp-ct-hero__btn { display: none; }                                /* mobile: không có gạch vàng & nút */
.tp-ct-hero__title { font-weight: 600; }
.tp-ct-hero__sub { max-width: 335px; }

@media (min-width: 768px) {
	.tp-ct-hero .tp-ab-banner__media::after { background: rgba(0, 0, 0, 0.4); }
	.tp-ct-hero--baked .tp-ab-banner__media::after { background: none; }
	.tp-ct-hero__bar { display: block; margin-bottom: 24px; }
	.tp-ct-hero__title { font-weight: 500; }
	.tp-ct-hero__sub { max-width: 960px; margin-top: 10px; }
	.tp-ct-hero__btn { display: inline-flex; margin-top: 32px; }
}
@media (min-width: 1200px) {
	.tp-ct-hero__title { font-size: 64px; line-height: 86px; }
	.tp-ct-hero__sub { font-size: 24px; line-height: 38px; }
}

/* 21. General Contractor – general-contractor.php
   Figma TP Home Fix: "General Contractor" 626:19633 (1920) · "GENERAL CONTRACTOR_MB" 5035:16362 (440).
   Banner dùng chung .tp-ab-banner (15.1) qua template-parts/page-hero.php.
   -------------------------------------------------------------------------- */
.tp-gc { padding-block: 40px; }
.tp-gc__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tp-gc__item + .tp-gc__item { margin-top: 32px; }
.tp-gc__rule { display: block; width: 102px; height: 1px; margin-bottom: 24px; background-color: rgba(128, 128, 128, 0.55); }
.tp-gc__title { margin: 0; font-size: 24px; font-weight: 500; line-height: 32px; text-transform: uppercase; color: #fff; }
.tp-gc__text { max-width: 900px; margin: 12px 0 0; font-size: 16px; line-height: 20px; letter-spacing: 0.32px; color: var(--tp-gray); }
.tp-gc__media { width: 100%; max-width: 1020px; margin: 24px 0 0; overflow: hidden; }
.tp-gc__media img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 220; object-fit: cover; }
.tp-gc__cta { display: flex; justify-content: center; margin-top: 32px; }

@media (min-width: 768px) {
	.tp-gc__media img { aspect-ratio: 1020 / 396; }
}
@media (min-width: 1200px) {
	.tp-gc { padding-block: 75px; }
	.tp-gc__item + .tp-gc__item { margin-top: 48px; }
	.tp-gc__rule { width: 317px; height: 6px; margin-bottom: 30px; }
	.tp-gc__title { font-size: 34px; line-height: 46px; }
	.tp-gc__text { max-width: none; margin-top: 16px; font-size: 20px; line-height: 24px; letter-spacing: 0.4px; color: #fff; }
	.tp-gc__media { margin-top: 32px; }
	.tp-gc__cta { margin-top: 48px; }
}

/* 22. Hero trang chủ – video nền (template-parts/home/hero.php · theme.js initHeroVideo)
   Ảnh hero hiện trước (ảnh chờ); video hiện dần khi bắt đầu phát. Video không cần lớp tối như ảnh.
   -------------------------------------------------------------------------- */
.tp-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}
.tp-hero--video .tp-hero__media { transition: opacity 0.6s ease; }
.tp-hero--video .tp-hero__media::after { transition: background-color 0.6s ease; }
.tp-hero.is-playing .tp-hero__video { opacity: 1; }
.tp-hero.is-playing .tp-hero__media { opacity: 1; }                       /* bỏ mờ 60% của ảnh */
.tp-hero.is-playing .tp-hero__media::after { background-color: transparent; } /* bỏ lớp đen 37% */
@media (max-width: 767.98px) {
	.tp-hero--video .tp-hero__media { aspect-ratio: 9 / 16; }  /* video mobile dọc 9:16 */
}

/* 23. Trang chủ – hiệu ứng dải số liệu (.tp-stats · theme.js initStats)
   Tiêu đề hiện lên → từng ô trượt lên lần lượt → gạch vàng kéo dài → số đếm từ 0.
   Chỉ áp dụng khi JS thêm class .tp-anim (tắt JS / "giảm chuyển động" → hiện bình thường).
   -------------------------------------------------------------------------- */
.tp-stat__num { font-variant-numeric: tabular-nums; }       /* số không nhảy độ rộng khi đếm */
.tp-stats.tp-anim .tp-stats__title,
.tp-stats.tp-anim .tp-stat {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tp-stats.tp-anim .tp-stat { transition-delay: calc(150ms + var(--tp-i, 0) * 150ms); }
.tp-stats.tp-anim .tp-stat__line {
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(450ms + var(--tp-i, 0) * 150ms);
}
.tp-stats.tp-anim.is-in .tp-stats__title,
.tp-stats.tp-anim.is-in .tp-stat { opacity: 1; transform: none; }
.tp-stats.tp-anim.is-in .tp-stat__line { transform: scaleX(1); }

/* 24. Land/Property Acquisition – land-property-acquisition.php
   Theo trang Elementor https://tphomellc.com/land-property-acquisition/ (hero 536 · bước 42% + video · form 580px trên nền ảnh).
   -------------------------------------------------------------------------- */
.tp-ab-banner__note { margin: 8px auto 0; font-size: 12px; line-height: 18px; letter-spacing: 0.28px; color: #fff; }
@media (min-width: 768px) {
	.tp-ab-banner__note { margin-top: 16px; font-size: 18px; line-height: 24px; }
}
@media (min-width: 1200px) {
	.tp-ab-banner__note { font-size: 24px; line-height: 24px; }
}

/* 24.1 Three-Step Process */
.tp-lpa-steps { padding: 30px 0; }
.tp-lpa-steps__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; text-align: center; }
.tp-lpa-steps__title { margin: 0; font-size: 30px; font-weight: 500; line-height: 40px; text-transform: uppercase; color: #fff; }
.tp-lpa-steps__row { display: flex; flex-direction: column; gap: 20px; max-width: 1220px; margin-inline: auto; }
.tp-lpa-steps__list { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tp-lpa-step + .tp-lpa-step { margin-top: 12px; }
.tp-lpa-step__title { margin: 0 0 4px; font-size: 20px; font-weight: 600; line-height: 28px; color: #fff; }
.tp-lpa-step__text { margin: 0; font-size: 14px; line-height: 20px; letter-spacing: 0.36px; color: var(--tp-gray); }
.tp-lpa-steps__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background-color: #000; }
.tp-lpa-steps__media video,
.tp-lpa-steps__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
	.tp-lpa-steps { padding: 60px 0 40px; }
	.tp-lpa-steps__head { margin-bottom: 48px; }
	.tp-lpa-steps__title { font-size: 40px; line-height: 52px; }
	.tp-lpa-steps__row { gap: 40px; }
	.tp-lpa-step__title { font-size: 24px; line-height: 32px; }
	.tp-lpa-step__text { font-size: 18px; line-height: 24px; }
}
@media (min-width: 1200px) {
	.tp-lpa-steps { padding: 70px 0 104px; }
	.tp-lpa-steps__head { gap: 20px; margin-bottom: 64px; }
	.tp-lpa-steps__title { font-size: 70px; line-height: 82px; }
	.tp-lpa-steps__row { flex-direction: row; align-items: center; gap: 48px; }
	.tp-lpa-steps__list { flex: 0 0 42.37%; }
	.tp-lpa-steps__media { flex: 1 1 auto; min-height: 394px; }
}

/* 24.2 Form trên nền ảnh */
.tp-lpa-form {
	display: flex;
	align-items: center;
	padding: 40px 0;
	background: var(--tp-lpa-bg, none) center / cover no-repeat #000;
}
.tp-lpa-form > .container { width: 100%; }
.tp-lpa-form__box {
	max-width: 580px;
	margin-inline: auto;
	padding: 30px 20px;
	background-color: rgba(0, 0, 0, 0.7);
}
.tp-lpa-form__head { margin-bottom: 24px; text-align: center; }
.tp-lpa-form__title { margin: 0; font-size: 20px; font-weight: 500; line-height: 27px; letter-spacing: 0.28px; color: #fff; }
.tp-lpa-form__sub { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--tp-primary); }

/* Form ngắn (vd [contact-form-7 id="9ffd0c9"]) bên trong hộp tối */
.tp-lpa-form--simple .wpcf7 p { margin: 0; }
.tp-lpa-form--simple .wpcf7 br { display: none; }
.tp-lpa-form--simple .form-group { margin-bottom: 18px; }
.tp-lpa-form--simple .visuallyhidden,
.tp-lpa-form--simple .wpcf7 label:not(.wpcf7-list-item label) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.tp-lpa-form--simple .wpcf7-form-control-wrap { display: block; }
.tp-lpa-form--simple input[type="text"],
.tp-lpa-form--simple input[type="email"],
.tp-lpa-form--simple input[type="tel"],
.tp-lpa-form--simple input[type="url"],
.tp-lpa-form--simple input[type="number"],
.tp-lpa-form--simple select,
.tp-lpa-form--simple textarea {
	display: block;
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	line-height: 24px;
	color: #fff;
	box-shadow: none;
	transition: border-color 0.2s ease;
}
.tp-lpa-form--simple textarea { min-height: 96px; resize: vertical; }
.tp-lpa-form--simple input::placeholder,
.tp-lpa-form--simple textarea::placeholder { color: var(--tp-gray); opacity: 1; }
.tp-lpa-form--simple input:focus,
.tp-lpa-form--simple select:focus,
.tp-lpa-form--simple textarea:focus { outline: 0; border-bottom-color: var(--tp-primary); }
.tp-lpa-form--simple input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9) inset;
	transition: background-color 5000s ease-in-out 0s;
}
.tp-lpa-form--simple .wpcf7-list-item { margin: 0; }
.tp-lpa-form--simple .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: #fff; cursor: pointer; }
.tp-lpa-form--simple input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--tp-primary); }
.tp-lpa-form--simple .wpcf7-list-item-label a { color: var(--tp-primary); }
.tp-lpa-form--simple .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 8px;
	padding: 12px 40px;
	border: 1px solid #fff;
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.tp-lpa-form--simple .wpcf7-submit:hover,
.tp-lpa-form--simple .wpcf7-submit:focus-visible { background-color: #fff; color: var(--tp-dark); }
.tp-lpa-form--simple .wpcf7-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.tp-lpa-form--simple .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.tp-lpa-form--simple .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; color: #ff8a80; }
.tp-lpa-form--simple .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 10px 14px; font-size: 14px; color: #fff; }

/* Form nhiều bước (.frm-ct7-us – thẻ trắng, CSS riêng ở assets/publics/css/frmcontact7.css): bỏ hộp tối, nới rộng */
.tp-lpa-form--wizard .tp-lpa-form__box { max-width: 790px; padding: 0; background: none; }
.tp-lpa-form--wizard .tp-lpa-form__head { padding: 24px 20px; background-color: rgba(0, 0, 0, 0.7); margin-bottom: 0; }
.tp-lpa-form--wizard .wpcf7 { text-align: left; }
.tp-lpa-form--wizard .frm-ct7-us { width: auto; }

@media (min-width: 768px) {
	.tp-lpa-form { min-height: 980px; padding: 60px 0; }
	.tp-lpa-form--simple .tp-lpa-form__box { min-height: 760px; padding: 30px; }
	.tp-lpa-form__head { margin-bottom: 32px; }
}
@media (min-width: 1200px) {
	.tp-lpa-form { min-height: 1386px; padding: 130px 0 160px; }
	.tp-lpa-form--simple .tp-lpa-form__box { min-height: 811px; }
	.tp-lpa-form__title { font-size: 30px; line-height: 40px; }
	.tp-lpa-form__sub { font-size: 20px; line-height: 28px; }
}

/* ==========================================================================
   25. Nút nổi "Earn Up to 15% Referral Fee" – footer.php (góc dưới phải, chữ dọc)
   -------------------------------------------------------------------------- */
.tp-referral-tab {
	position: fixed;
	right: 0;
	bottom: 160px; /* chừa chỗ cho huy hiệu reCAPTCHA (bottom 14px, cao 60px) */
	z-index: 1030;
	display: block;
	padding: 16px 10px;
	writing-mode: vertical-rl;
	transform: rotate(180deg); /* chữ đọc từ dưới lên */
	background-color: var(--tp-brown);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	transition: background-color 0.25s ease, color 0.25s ease, padding 0.25s ease;
}
.tp-referral-tab:hover,
.tp-referral-tab:focus-visible {
	background-color: #000;
	
	border-color: var(--tp-brown);
	color: #fff;
	padding-left: 14px; /* nhô ra thêm khi hover */
	padding-right: 14px;
}
@media (max-width: 767.98px) {
	.tp-referral-tab { bottom: 120px; padding: 12px 8px; font-size: 11px; }
}
@media print {
	.tp-referral-tab { display: none; }
}
