/* ==========================================================================
   Song Anh – CSS cho các element UX Builder tùy chỉnh
   ========================================================================== */

/* ---------- HERO SLIDER ---------- */
.sa-hero {
	position: relative;
	height: var(--sa-hero-h, 88vh);
	/* --sa-hero-need do JS tính: chiều cao tối thiểu để thẻ chữ không tràn ra ngoài hero (màn hình thấp) */
	min-height: max(var(--sa-hero-min, 0px), var(--sa-hero-need, 0px));
	background: var(--sa-ink);
	overflow: hidden;
	color: var(--sa-ink);
}
.sa-hero__slides,
.sa-hero__slide { position: absolute; inset: 0; }
.sa-hero__slide {
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	/* slide cũ giữ nguyên 0.9s bên dưới trong lúc slide mới mờ dần lên → không bị nháy tối */
	transition: opacity 0s linear 0.9s, visibility 0s linear 0.9s;
	display: flex;
	align-items: center;
}
.sa-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 0.9s ease; }
.sa-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sa-hero__overlay {
	position: absolute;
	inset: 0;
	/* màu lớp phủ = --sa-hero-overlay-rgb (mặc định tối); slide video có thể đặt riêng độ đậm/màu/kiểu */
	background: linear-gradient(90deg, rgba(var(--sa-hero-overlay-rgb, 20, 20, 22), calc(var(--sa-hero-overlay, 0.3) + 0.25)) 0%, rgba(var(--sa-hero-overlay-rgb, 20, 20, 22), var(--sa-hero-overlay, 0.3)) 55%, rgba(var(--sa-hero-overlay-rgb, 20, 20, 22), 0.1) 100%);
}
.sa-hero__slide.ov-flat .sa-hero__overlay { background: rgba(var(--sa-hero-overlay-rgb, 20, 20, 22), var(--sa-hero-overlay, 0.3)); }
.sa-hero__inner {
	position: relative;
	width: 100%;
	padding-top: var(--sa-header-real, var(--sa-header-h)); /* --sa-header-real: chiều cao header thật (JS đo) */
}
.sa-hero__card {
	max-width: 640px;
	padding: 36px 40px 40px;
	background: #fff;
	border-left: 5px solid var(--sa-yellow);
	box-shadow: var(--sa-shadow);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s 0.3s, transform 0.7s 0.3s;
}
.sa-hero__slide.is-active .sa-hero__card { opacity: 1; transform: none; }
.sa-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--sa-ink);
}
.sa-hero__text { margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: var(--sa-text); }
.sa-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sa-hero__dots {
	position: absolute;
	z-index: 3;
	right: max(24px, calc((100% - var(--sa-container)) / 2 + 15px));
	bottom: 36px;
	display: flex;
	gap: 8px;
}
.sa-hero__dots button {
	width: 44px;
	height: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.sa-hero__dots button::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 5px;
	height: 4px;
	background: rgba(255, 255, 255, 0.85);
	transition: background-color 0.25s;
}
.sa-hero__dots button.is-active::after { background: var(--sa-yellow); }
.sa-hero__dots button:hover::after { background: #fff; }
.sa-hero__dots button.is-active:hover::after { background: var(--sa-yellow); }

.sa-hero.is-builder { height: auto; min-height: 60vh; }
.sa-hero.is-builder .sa-hero__slides { position: relative; }
.sa-hero.is-builder .sa-hero__slide { position: relative; opacity: 1; visibility: visible; margin-bottom: 8px; }
.sa-hero.is-builder .sa-hero__card { opacity: 1; transform: none; }

@media (max-width: 849px) {
	.sa-hero { height: var(--sa-hero-h-t, 78vh); height: var(--sa-hero-h-t-s, 78svh); }
	.sa-hero__slide { align-items: flex-end; }
	/* chừa chỗ phía dưới cho bullet để không đè lên thẻ nội dung */
	.sa-hero__inner { padding-top: calc(var(--sa-header-real, var(--sa-header-h)) + 12px); padding-bottom: 64px; }
	.sa-hero__card { max-width: none; padding: 22px 20px 24px; border-left-width: 4px; }
	.sa-hero__title { font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.1rem); margin-bottom: 10px; }
	.sa-hero__text { font-size: 15px; line-height: 1.55; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.sa-hero__actions { gap: 10px; }
	.sa-hero__actions .sa-btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
	.sa-hero__dots { left: 0; right: 0; bottom: 22px; justify-content: center; gap: 4px; }
	.sa-hero__dots button { width: 36px; }
}
@media (max-width: 549px) {
	.sa-hero { height: var(--sa-hero-h-m, 78vh); height: var(--sa-hero-h-m-s, 78svh); }
	.sa-hero__inner { padding-bottom: 58px; }
	.sa-hero__actions .sa-btn { flex: 1 1 auto; padding: 0 14px; }
	.sa-hero__dots { bottom: 20px; }
	.sa-hero__dots button { width: 30px; }
}
@media (max-width: 849px) and (orientation: landscape) {
	.sa-hero { min-height: max(var(--sa-hero-min, 0px), 360px, var(--sa-hero-need, 0px)); }
	.sa-hero__text { -webkit-line-clamp: 2; }
}

/* ---------- HEADING ---------- */
.sa-heading { margin-bottom: 28px; }
.sa-heading.has-button { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sa-heading__title { margin: 0; color: var(--sa-h-color, var(--sa-ink)); }
.sa-heading.sub-normal .sa-heading__sub { font-style: normal; }
.sa-heading--s .sa-heading__title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }
.sa-heading--m .sa-heading__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 900; }
.sa-heading--l .sa-heading__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 900; }
.sa-heading--xl .sa-heading__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 900; }
.sa-heading.sa-uppercase .sa-heading__title { text-transform: uppercase; }
.sa-heading--label .sa-heading__title { text-transform: uppercase; letter-spacing: 0.18em; font-size: 15px; font-weight: 700; }
.sa-heading__bar { display: block; width: var(--sa-bar-w, 60px); height: .2rem; flex: none; margin-top: 10px; background: var(--sa-yellow); }
.sa-heading.text-center .sa-heading__bar { margin-left: auto; margin-right: auto; }
.sa-heading__sub { margin: 14px 0 0; color: var(--sa-muted); font-size: 17px; font-style: italic; }
.sa-heading.text-center { text-align: center; }
.sa-heading.is-light .sa-heading__title,
.sa-heading.is-light .sa-heading__sub { color: #fff; }

/* ---------- VIDEO ---------- */
.sa-video { position: relative; background: var(--sa-ink); overflow: hidden; aspect-ratio: var(--sa-v-ratio, 16 / 9); border-radius: var(--sa-v-radius, 0); }
.sa-video__poster,
.sa-video__media,
.sa-video iframe,
.sa-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.sa-video__poster { padding: 0; background: var(--sa-soft); cursor: pointer; display: block; }
.sa-video__poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sa-video__poster:hover .sa-video__poster-img { transform: scale(1.03); }
.sa-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 84px;
	height: 60px;
	margin: -30px 0 0 -42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--sa-yellow);
	color: var(--sa-ink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s, background-color 0.2s;
}
.sa-video.play-white .sa-video__play { background: #fff; }
.sa-video.play-dark .sa-video__play { background: var(--sa-ink); color: #fff; }
.sa-video__poster:hover .sa-video__play,
.sa-video__poster:focus-visible .sa-video__play { transform: scale(1.1); background: #fff; }
.sa-video.play-dark .sa-video__poster:hover .sa-video__play { background: var(--sa-yellow); color: var(--sa-ink); }
.sa-video__poster:focus-visible { outline: 3px solid var(--sa-yellow); outline-offset: -3px; }
.sa-video__cta {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	padding: 14px 24px;
	background: var(--sa-yellow);
	color: var(--sa-ink);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
	text-decoration: none;
}
a.sa-video__cta { pointer-events: auto; }
.sa-video.cta-left .sa-video__cta { right: auto; left: 20px; }
.sa-video.cta-center .sa-video__cta { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.sa-video.is-empty { background: var(--sa-soft); }
.sa-video__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sa-muted); font-size: 14px; }
.sa-video.is-playing .sa-video__cta { display: none; }
@media (max-width: 549px) {
	.sa-video__play { width: 68px; height: 48px; margin: -24px 0 0 -34px; }
	.sa-video__cta { right: 0; bottom: 0; padding: 11px 16px; font-size: 12px; }
	.sa-video.cta-left .sa-video__cta { left: 0; }
}

/* ---------- CARDS ---------- */
.sa-cards {
	display: grid;
	grid-template-columns: repeat(var(--sa-cols, 5), minmax(0, 1fr));
	gap: var(--sa-row-gap, calc(var(--sa-gap, 30px) * 0.8)) var(--sa-gap, 30px); /* hàng = 0.8 × cột (30px → 24px) – chuẩn chung; --sa-row-gap (PHP) ghi đè khi khe mảnh / chỉnh tay */
}
@media (max-width: 849px) { .sa-cards { grid-template-columns: repeat(var(--sa-cols-md, 3), minmax(0, 1fr)); } }
@media (max-width: 549px) { .sa-cards { grid-template-columns: repeat(var(--sa-cols-sm, 2), minmax(0, 1fr)); } }

.sa-card { display: block; position: relative; color: var(--sa-ink); text-decoration: none; }
.sa-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: inherit; }
.sa-card__text { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--sa-text); }

/* tile: ảnh + tên chồng gradient; thanh vàng bên trái trải rộng thành dải nền khi hover
   Tuỳ chỉnh qua biến: --sa-card-ratio, --sa-card-overlay, --sa-card-img-op, --sa-card-title, --sa-card-bar */
.sa-cards--tile .sa-card { overflow: hidden; background: var(--sa-ink); aspect-ratio: var(--sa-card-ratio, 4 / 3); }
.sa-cards--tile .sa-card__media { position: absolute; inset: 0; }
.sa-cards--tile .sa-card__img { width: 100%; height: 100%; object-fit: cover; opacity: var(--sa-card-img-op, 1); transition: transform 0.6s; }
.sa-cards--tile:not(.no-zoom) .sa-card:hover .sa-card__img { transform: scale(1.07); }
.sa-cards--tile .sa-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 20, 22, var(--sa-card-overlay, 0.82)) 0%, rgba(20, 20, 22, calc(var(--sa-card-overlay, 0.82) * 0.12)) 60%);
	transition: opacity 0.3s;
}
/* hover: bỏ lớp phủ tối → thấy rõ ảnh gốc */
.sa-cards--tile.hover-clear a.sa-card:hover::after,
.sa-cards--tile.hover-clear a.sa-card:focus-visible::after { opacity: 0; }
/* nhãn tên lùi vào trong ảnh (không chạm mép thẻ): thanh vàng và dải hover nằm gọn trong nhãn,
   nên dù khoảng cách giữa các thẻ = 0 cũng không dính liền với thanh vàng của thẻ bên cạnh */
.sa-cards--tile .sa-card__body { position: absolute; left: var(--sa-tile-inset, 16px); right: var(--sa-tile-inset, 16px); bottom: var(--sa-tile-inset, 16px); z-index: 2; padding: 12px 16px; isolation: isolate; }
@media (max-width: 549px) { .sa-cards--tile { --sa-tile-inset: 12px; } }
.sa-cards--tile .sa-card__body::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--sa-card-bar, 4px);
	background: var(--sa-yellow);
	transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sa-cards--tile.hover-band a.sa-card:hover .sa-card__body::before,
.sa-cards--tile.hover-band a.sa-card:focus-visible .sa-card__body::before { width: 100%; }
.sa-cards--tile .sa-card__title { color: #fff; font-size: var(--sa-card-title, 16px); padding-left: var(--sa-card-bar, 4px); transition: color 0.25s; }
.sa-cards--tile.is-center .sa-card__title,
.sa-cards--tile.is-center .sa-card__text { text-align: center; }
.sa-cards--tile .sa-card__text { color: rgba(255, 255, 255, 0.85); font-size: 13px; padding-left: var(--sa-card-bar, 4px); transition: color 0.25s; }
.sa-cards--tile.hover-band a.sa-card:hover .sa-card__title,
.sa-cards--tile.hover-band a.sa-card:hover .sa-card__text,
.sa-cards--tile.hover-band a.sa-card:focus-visible .sa-card__title { color: var(--sa-ink); }

/* outline: ô viền vàng, chữ giữa */
.sa-cards--outline .sa-card { display: flex; flex-direction: column; border: 1px solid var(--sa-yellow); background: #fff; padding: 22px 16px; text-align: center; transition: background-color 0.25s, transform 0.25s; }
.sa-cards--outline a.sa-card:hover { background: var(--sa-cream); transform: translateY(-3px); }
.sa-cards--outline .sa-card__media { display: none; }
.sa-cards--outline .sa-card__title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.01em; font-weight: 700; }

/* vmc: tiêu đề + đường vàng + mô tả + ảnh */
.sa-cards--vmc .sa-card { background: #fff; border: 1px solid var(--sa-line); display: flex; flex-direction: column; }
.sa-cards--vmc .sa-card__body { order: 1; padding: 22px 24px 22px; flex: 1; }
.sa-cards--vmc .sa-card__media { order: 2; aspect-ratio: 16 / 9; overflow: hidden; border-top: 1px solid var(--sa-line); }
.sa-cards--vmc .sa-card__img { width: 100%; height: 100%; object-fit: cover; }
.sa-cards--vmc .sa-card__title { display: flex; align-items: center; gap: 14px; font-size: 20px; text-transform: uppercase; margin-bottom: 12px; }
.sa-cards--vmc .sa-card__title::after { content: ''; flex: 1; height: 2px; background: var(--sa-yellow); }
.sa-cards--vmc .sa-card__text { margin: 0; }

/* list: ảnh nhỏ bên trái + tên */
.sa-cards--list .sa-card { display: flex; gap: 16px; align-items: center; padding: 6px 0; }
.sa-cards--list .sa-card__media { flex: 0 0 96px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sa-soft); }
.sa-cards--list .sa-card__img { width: 100%; height: 100%; object-fit: cover; }
.sa-cards--list .sa-card__title { font-size: 18px; }
.sa-cards--list a.sa-card:hover .sa-card__title { text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- LOGOS ---------- */
.sa-logos { display: grid; grid-template-columns: repeat(var(--sa-cols, 6), minmax(0, 1fr)); gap: var(--sa-logo-gap, 20px); }
@media (max-width: 849px) { .sa-logos { grid-template-columns: repeat(var(--sa-cols-md, 4), minmax(0, 1fr)); } }
@media (max-width: 549px) { .sa-logos { grid-template-columns: repeat(var(--sa-cols-sm, 2), minmax(0, 1fr)); } }
.sa-logo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: var(--sa-logo-ratio, 2 / 1); min-height: 0; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--sa-line); transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.sa-logos.no-border .sa-logo { border-color: transparent; }
a.sa-logo:hover { border-color: var(--sa-yellow); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.sa-logo__img { position: absolute; left: 50%; top: 50%; display: block; margin: 0; transform: translate(-50%, -50%); max-width: calc(84% * var(--sa-logo-scale, 1)); max-height: calc(78% * var(--sa-logo-scale, 1)); width: auto; height: auto; object-fit: contain; transition: filter 0.3s, opacity 0.3s; }
.sa-logos.is-gray .sa-logo__img { filter: grayscale(1); opacity: 0.75; }
.sa-logos.is-gray .sa-logo:hover .sa-logo__img { filter: none; opacity: 1; }
.sa-logo__name { font-weight: 700; color: var(--sa-muted); font-size: 14px; text-align: center; }

/* carousel tự chạy */
.sa-logos.is-marquee {
	display: block;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sa-logos__track { display: flex; width: max-content; animation: sa-marquee var(--sa-marquee, 40s) linear infinite; }
.sa-logos.dir-right .sa-logos__track { animation-direction: reverse; }
.sa-logos__dup { display: flex; }
.sa-logos.is-marquee:not(.no-pause):hover .sa-logos__track { animation-play-state: paused; }
.sa-logos.is-marquee .sa-logo { flex: 0 0 auto; width: var(--sa-logo-w, 200px); margin-right: var(--sa-logo-gap, 20px); }
@keyframes sa-marquee { to { transform: translateX(-50%); } }
@media (max-width: 849px) {
	.sa-logos.is-marquee .sa-logo { width: calc(var(--sa-logo-w, 200px) * 0.8); margin-right: calc(var(--sa-logo-gap, 20px) * 0.7); }
}
@media (prefers-reduced-motion: reduce) {
	.sa-logos.is-marquee { overflow-x: auto; }
	.sa-logos__track { animation: none !important; }
	.sa-logos__dup { display: none; }
}

/* ---------- TIMELINE ---------- */
.sa-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; position: relative; }
.sa-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--sa-yellow); }
.sa-timeline__item { position: relative; }
.sa-timeline__year {
	position: relative;
	display: inline-block;
	min-width: 118px;
	padding: 11px 22px;
	margin-bottom: 18px;
	background: #fff;
	border: 2px solid var(--sa-yellow);
	border-radius: 999px;
	font-size: 20px;
	font-weight: 900;
	color: var(--sa-ink);
	text-align: center;
}
.sa-timeline__title { font-size: 17px; margin: 0 0 6px; }
.sa-timeline__text { margin: 0; color: var(--sa-text); font-size: 15px; }
@media (max-width: 849px) {
	.sa-timeline { grid-auto-flow: row; gap: 26px; padding-left: 22px; }
	.sa-timeline::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.sa-timeline__item::before { content: ''; position: absolute; left: -22px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--sa-yellow); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--sa-yellow); }
}

/* ---------- FILTER ---------- */
.sa-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.sa-filter__btn {
	margin: 0;
	padding: 11px 20px;
	border: 1px solid var(--sa-line);
	background: var(--sa-soft);
	color: var(--sa-ink);
	font: 700 13px/1 var(--sa-font);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}
.sa-filter__btn:hover { border-color: var(--sa-yellow); background: var(--sa-cream-2); }
.sa-filter__btn.is-active { background: var(--sa-yellow); border-color: var(--sa-yellow); }

/* ---------- PROJECTS ---------- */
.sa-projects { position: relative; }
.sa-project.is-hidden { display: none; }
.sa-project__link { display: block; position: relative; text-decoration: none; color: var(--sa-ink); }
.sa-project__media { display: block; position: relative; overflow: hidden; aspect-ratio: var(--sa-ratio, 4 / 3); border-radius: var(--sa-radius-img, 0); background: var(--sa-soft); }
.sa-project__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform 0.6s; }
.sa-projects.layout-featured .sa-project__link:hover .sa-project__img { transform: scale(1.06); }
.sa-project__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; transition: color 0.25s; }
.sa-project__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--sa-muted); transition: color 0.25s; }

/* chú thích dưới ảnh: thanh vàng bên trái trải rộng thành dải nền khi hover (cùng ngôn ngữ với thẻ dịch vụ) */
.sa-project__body { display: block; position: relative; isolation: isolate; padding: 12px 16px; margin-top: 10px; }
.sa-project__body::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--sa-yellow);
	transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sa-project__link:hover .sa-project__body::before,
.sa-project__link:focus-visible .sa-project__body::before { width: 100%; }
.sa-project__link:hover .sa-project__title,
.sa-project__link:hover .sa-project__meta { color: var(--sa-ink); }

/* Lưới đều: kiểu truyền thống – ảnh trên, chữ dưới, không thanh màu / hiệu ứng dải nền */
.sa-projects:not(.layout-featured) .sa-project__body { padding: 14px 0 0; margin: 0; isolation: auto; }
.sa-projects:not(.layout-featured) .sa-project__body::before { content: none; }
.sa-projects:not(.layout-featured) .sa-project__link:hover .sa-project__title { color: var(--sa-yellow); }
.sa-projects:not(.layout-featured) .sa-project__link:hover .sa-project__meta { color: var(--sa-muted); }
.sa-projects:not(.layout-featured) .sa-project__meta { color: var(--sa-muted); }

/* Lưới đều – xuống hàng */
.sa-projects__grid { display: grid; grid-template-columns: repeat(var(--sa-cols, 3), minmax(0, 1fr)); gap: var(--sa-row-gap, calc(var(--sa-gap, 30px) * 0.8)) var(--sa-gap, 30px); }
@media (max-width: 849px) { .sa-projects__grid { grid-template-columns: repeat(var(--sa-cols-md, 2), minmax(0, 1fr)); } }
@media (max-width: 549px) { .sa-projects__grid { grid-template-columns: repeat(var(--sa-cols-sm, 1), minmax(0, 1fr)); } }

/* Slider ngang dùng chung (dự án, tin tức): kéo chuột / vuốt, mũi tên 2 bên, lặp vô hạn */
.sa-carousel { position: relative; }
.sa-carousel__clip { overflow: hidden; touch-action: pan-y; cursor: grab; }
.sa-carousel__clip.is-dragging { cursor: grabbing; user-select: none; }
.sa-carousel__clip.is-dragging a { pointer-events: none; }
.sa-carousel__clip img { -webkit-user-drag: none; user-select: none; }
.sa-carousel__track { display: flex !important; gap: var(--sa-gap, 20px); will-change: transform; }
.sa-carousel__track.is-animating { transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.sa-carousel__track > * { flex: 0 0 calc((100% - var(--sa-gap, 20px) * (var(--sa-cols, 3) - 1)) / var(--sa-cols, 3)); min-width: 0; }
@media (max-width: 849px) { .sa-carousel__track > * { flex-basis: calc((100% - var(--sa-gap, 20px) * (var(--sa-cols-md, 2) - 1)) / var(--sa-cols-md, 2)); } }
@media (max-width: 549px) { .sa-carousel__track > * { flex-basis: calc((100% - var(--sa-gap, 20px) * (var(--sa-cols-sm, 1) - 1)) / var(--sa-cols-sm, 1)); } }

.sa-slider-arrow {
	position: absolute;
	z-index: 3;
	top: var(--sa-arrow-top, 38%);
	width: 42px;
	height: 42px;
	margin: -21px 0 0;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--sa-ink);
	box-shadow: 0 6px 20px rgba(31, 32, 36, 0.18), 0 0 0 1px rgba(31, 32, 36, 0.06);
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sa-slider-arrow--prev { left: 12px; }
.sa-slider-arrow--next { right: 12px; }
.sa-slider-arrow:hover { background: var(--sa-yellow); transform: scale(1.08); box-shadow: 0 8px 24px rgba(31, 32, 36, 0.24); }
.sa-slider-arrow:active { transform: scale(0.96); }
.sa-slider-arrow:focus-visible { outline: 3px solid var(--sa-ink); outline-offset: 2px; }
.sa-slider-arrow[hidden] { display: none; }
.sa-slider-arrow svg { width: 18px; height: 18px; }
@media (min-width: 1300px) {
	.sa-slider-arrow--prev { left: -21px; }
	.sa-slider-arrow--next { right: -21px; }
}
@media (max-width: 549px) { .sa-slider-arrow { width: 36px; height: 36px; margin-top: -18px; } .sa-slider-arrow svg { width: 16px; height: 16px; } }

/* Đầu to: 1 dự án lớn bên trái (2x2 ô) + 4 dự án đều nhau bên phải */
.sa-projects.layout-featured .sa-projects__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: var(--sa-row-h, clamp(190px, 16.5vw, 262px));
	gap: var(--sa-gap, 20px);
}
.sa-projects.layout-featured .sa-project:first-child { grid-column: span 2; grid-row: span 2; }
.sa-projects.layout-featured .sa-project,
.sa-projects.layout-featured .sa-project__link { height: 100%; }
.sa-projects.layout-featured .sa-project__link { overflow: hidden; background: var(--sa-ink); }
.sa-projects.layout-featured .sa-project__media { position: absolute; inset: 0; aspect-ratio: auto; }
.sa-projects.layout-featured .sa-project__link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 20, 22, 0.85) 0%, rgba(20, 20, 22, 0.05) 62%);
	pointer-events: none;
}
.sa-projects.layout-featured .sa-project__body { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; margin: 0; }
.sa-projects.layout-featured .sa-project__title { color: #fff; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sa-projects.layout-featured .sa-project:first-child .sa-project__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
.sa-projects.layout-featured .sa-project__meta { color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.sa-projects.layout-featured .sa-project__link:hover .sa-project__title,
.sa-projects.layout-featured .sa-project__link:hover .sa-project__meta { color: var(--sa-ink); }
@media (max-width: 849px) {
	/* tablet: dự án lớn full chiều ngang, 4 dự án còn lại 2x2 */
	.sa-projects.layout-featured .sa-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 27vw, 230px); }
	.sa-projects.layout-featured .sa-project:first-child { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 549px) {
	/* mobile: 1 cột, mọi ô cùng chiều cao */
	.sa-projects.layout-featured .sa-projects__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
	.sa-projects.layout-featured .sa-project:first-child { grid-column: auto; grid-row: span 1; }
}

/* ---------- POSTS ---------- */
.sa-posts { display: grid; grid-template-columns: repeat(var(--sa-cols, 3), minmax(0, 1fr)); gap: var(--sa-row-gap, calc(var(--sa-gap, 30px) * 0.8)) var(--sa-gap, 30px); }
@media (max-width: 849px) { .sa-posts { grid-template-columns: repeat(var(--sa-cols-md, 2), minmax(0, 1fr)); } }
@media (max-width: 549px) { .sa-posts { grid-template-columns: repeat(var(--sa-cols-sm, 1), minmax(0, 1fr)); } }
.sa-post__media { display: block; aspect-ratio: var(--sa-ratio, 16 / 9); overflow: hidden; border-radius: var(--sa-radius-img, 0); background: var(--sa-soft); }
.sa-post__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.sa-post:hover .sa-post__img { transform: scale(1.05); }
.sa-post__meta { margin: 14px 0 6px; font-size: 14px; color: var(--sa-muted); }
.sa-post__meta i { font-style: normal; margin: 0 6px; }
.sa-post__cat { font-weight: 700; color: var(--sa-ink); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
.sa-post__title { margin: 0; font-size: 19px; line-height: 1.35; }
.sa-post__title a { text-decoration: none; }
.sa-post__title a:hover { text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sa-post__excerpt { margin: 8px 0 0; font-size: 15px; color: var(--sa-text); }

/* ---------- PROFILE / ABOUT ---------- */
.sa-profile {
	display: grid;
	grid-template-columns: var(--sa-p-cols, minmax(0, 5fr) minmax(0, 7fr));
	gap: var(--sa-p-gap, 56px);
	align-items: center;
}
.sa-profile.sa-v-top { align-items: start; }
.sa-profile.is-right { grid-template-columns: var(--sa-p-cols-r, minmax(0, 7fr) minmax(0, 5fr)); }
.sa-profile.is-right .sa-profile__media { order: 2; }
.sa-profile__media {
	margin: 0;
	aspect-ratio: var(--sa-p-ratio, 4 / 5);
	overflow: hidden;
	border-radius: var(--sa-p-radius, 0);
	background: var(--sa-soft);
	position: relative;
}
.sa-profile__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: var(--sa-p-focus, 50% 50%); }
.sa-profile.has-bar .sa-profile__media::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--sa-p-bar, 5px); background: var(--sa-yellow); }
.sa-profile__name { margin: 18px 0 6px; font-size: var(--sa-p-title, clamp(1.8rem, 1.2rem + 2vw, 2.6rem)); font-weight: 900; }
.sa-about .sa-profile__name { font-size: var(--sa-p-title, clamp(1.35rem, 1rem + 1.2vw, 1.85rem)); line-height: 1.25; }
.sa-profile__role { margin: 0 0 18px; font-size: 18px; font-weight: 700; color: var(--sa-ink); }
.sa-profile__text { margin-bottom: 26px; }
.sa-about .sa-profile__text { margin-top: 14px; }
.sa-profile__text p { margin: 0 0 12px; }
.sa-profile .sa-heading { margin-bottom: 0; }
.sa-profile.is-video .sa-profile__media { aspect-ratio: auto; background: transparent; }
@media (max-width: 849px) {
	.sa-profile.sa-about, .sa-profile.sa-about.is-right { grid-template-columns: 1fr; gap: 28px; }
	.sa-profile.sa-about.is-right .sa-profile__media { order: 0; }
}
@media (max-width: 549px) {
	.sa-profile, .sa-profile.is-right { grid-template-columns: 1fr; gap: 24px; }
	.sa-profile.is-right .sa-profile__media { order: 0; }
}

/* ---------- CTA ---------- */
.sa-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 4px 0; }
.sa-cta__title { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; color: var(--sa-ink); line-height: 1.3; }
.sa-cta__sub { margin: 6px 0 0; color: var(--sa-text); }
.sa-cta__text { flex: 1 1 360px; }
.sa-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sa-cta.sa-al-center { flex-direction: column; justify-content: center; text-align: center; }
.sa-cta.sa-al-center .sa-cta__text { flex: 0 1 auto; }
.sa-cta.sa-al-center .sa-cta__actions { justify-content: center; }
.sa-cta[class*='bg-']:not(.bg-none) { padding: 32px 36px; }
.sa-cta.bg-yellow { background: var(--sa-yellow); }
.sa-cta.bg-yellow .sa-btn--primary { background: var(--sa-ink); border-color: var(--sa-ink); color: #fff; }
.sa-cta.bg-dark { background: var(--sa-ink); }
.sa-cta.bg-dark .sa-cta__title { color: #fff; }
.sa-cta.bg-dark .sa-cta__sub { color: rgba(255, 255, 255, 0.8); }
.sa-cta.bg-dark .sa-btn--outline { color: #fff; }
.sa-cta.bg-cream { background: var(--sa-cream-2); }

/* ---------- PAGE HERO ---------- */
.sa-page-hero { position: relative; height: var(--sa-ph-h, 320px); display: flex; align-items: flex-end; background: var(--sa-ink); overflow: hidden; margin-bottom: 0; }
.sa-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-page-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 60%); }
.sa-page-hero.no-img { background: linear-gradient(135deg, #2a2b30, #1f2024); }
.sa-page-hero__inner { position: relative; width: 100%; padding-bottom: 36px; }
.sa-page-hero__title {
	display: inline-block;
	margin: 0;
	padding: 18px 32px 18px 28px;
	background: #fff;
	border-left: 5px solid var(--sa-yellow);
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
	font-weight: 900;
	color: var(--sa-ink);
	line-height: 1.15;
	box-shadow: var(--sa-shadow);
}
@media (max-width: 549px) { .sa-page-hero { height: calc(var(--sa-ph-h, 320px) * 0.72); } .sa-page-hero__inner { padding-bottom: 22px; } .sa-page-hero__title { padding: 12px 18px 12px 16px; border-left-width: 4px; } }

/* ---------- MAP ---------- */
.sa-map { position: relative; height: var(--sa-map-h, 380px); background: var(--sa-soft); border: 1px solid var(--sa-line); }
.sa-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FORM ---------- */
.sa-form__title { margin: 0 0 18px; font-size: 22px; }
.sa-form__field { display: block; margin: 0 0 14px; }
.sa-form input[type='text'],
.sa-form input[type='tel'],
.sa-form input[type='email'],
.sa-form input[type='number'],
.sa-form textarea {
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	height: auto;
	background: var(--sa-soft);
	border: 1px solid var(--sa-line);
	border-radius: 0;
	box-shadow: none;
	font: 400 16px/1.4 var(--sa-font);
	color: var(--sa-ink);
	transition: border-color 0.2s, background-color 0.2s;
}
.sa-form input:focus,
.sa-form textarea:focus { background: #fff; border-color: var(--sa-yellow); outline: 0; box-shadow: 0 0 0 3px rgba(255, 194, 13, 0.3); }
.sa-form__captcha { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.sa-form__q { flex: 0 0 auto; padding: 14px 16px; background: var(--sa-cream-2); font-weight: 700; color: var(--sa-ink); white-space: nowrap; }
.sa-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sa-form__msg { padding: 14px 16px; margin: 0 0 16px; border-left: 4px solid; font-weight: 500; }
.sa-form__msg.is-ok { background: #effaf1; border-color: #2e9e4f; color: #1c6b34; }
.sa-form__msg.is-error { background: #fff0f0; border-color: #d33; color: #a11; }

/* ---------- PROJECT INFO ---------- */

/* ---------- Blog / Tin tức: tab danh mục + phân trang ---------- */
.sa-tabs { display: flex; gap: 6px 28px; flex-wrap: wrap; border-bottom: 1px solid var(--sa-line); margin: 0 0 32px; padding: 0; list-style: none; }
.sa-tabs a { display: block; padding: 14px 4px; font-weight: 500; color: var(--sa-text); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sa-tabs a:hover { color: var(--sa-ink); }
.sa-tabs .is-active a { font-weight: 700; color: var(--sa-ink); border-bottom-color: var(--sa-yellow); }
.sa-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.sa-pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; background: var(--sa-soft); border: 1px solid var(--sa-line); color: var(--sa-ink); font-weight: 500; text-decoration: none; }
.sa-pagination .page-numbers.current,
.sa-pagination .page-numbers:hover { background: var(--sa-yellow); border-color: var(--sa-yellow); }

/* ---------- Bài viết chi tiết ---------- */
.sa-article { max-width: 820px; margin: 0 auto; }
.sa-article__title { margin: 0 0 8px; }
.sa-article__bar { display: block; width: 60px; height: 4px; background: var(--sa-yellow); margin: 14px 0 22px; }
.sa-article__meta { color: var(--sa-muted); font-size: 14px; margin-bottom: 22px; }
.sa-article__content img { max-width: 100%; height: auto; }
.sa-article__content { font-size: 17px; line-height: 1.75; }

/* ---------- Trang chi tiết dự án ---------- */

/* ---------- Section dải ---------- */
.sa-section-pad { padding: 72px 0; }
@media (max-width: 849px) { .sa-section-pad { padding: 48px 0; } }

/* tile không ảnh: nền tối thay cho placeholder X */
.sa-cards--tile .sa-ph { background: linear-gradient(135deg, #34353b, #1f2024); }
.sa-video.is-empty .sa-video__empty { background: rgba(31, 32, 36, 0.55); color: #fff; font-weight: 500; }
.sa-cta-band { padding: 32px 0 !important; border-top: 4px solid var(--sa-yellow); }
.section.sa-section-pad { padding-top: 64px !important; padding-bottom: 64px !important; }
@media (max-width: 849px) { .section.sa-section-pad { padding-top: 40px !important; padding-bottom: 40px !important; } }

/* ==========================================================================
   CHUẨN HÓA MARGIN / PADDING CỦA FLATSOME
   Flatsome gắn sẵn: .col { padding: 0 15px 30px }, p / h* / ul / img { margin-bottom }, .button { margin }…
   → element của Song Anh gọi ra bị lệch. Khối này đặt lại về 0 để khoảng cách chỉ do CSS của element quyết định.
   ========================================================================== */
.section.sa-section-pad .section-content,
.section.sa-cta-band .section-content { margin: 0; padding: 0; }
.section.sa-section-pad .row,
.section.sa-cta-band .row { margin-top: 0; margin-bottom: 0; }
/* cột: bỏ 30px đệm đáy để khoảng cách trên/dưới section đều nhau */
.section.sa-section-pad .col,
.section.sa-cta-band .col { padding-bottom: 0; margin-bottom: 0; }
.section.sa-section-pad .col-inner,
.section.sa-cta-band .col-inner { padding: 0; margin: 0; }
/* nhiều cột xếp chồng trên tablet/mobile cần khoảng cách riêng */
@media (max-width: 849px) {
	.section.sa-section-pad .col:not(:last-child) { padding-bottom: 24px; }
}
/* phần tử cuối cùng trong cột không tạo thêm khoảng trống */
.section.sa-section-pad .col-inner > :last-child,
.section.sa-section-pad .col > :last-child,
.section.sa-cta-band .col-inner > :last-child { margin-bottom: 0; }

/* thẻ tiêu đề / đoạn / ảnh / list bên trong element: không thừa margin Flatsome */
.sa-card__title, .sa-card__text,
.sa-project__title, .sa-post__title,
.sa-profile__name, .sa-profile__role,
.sa-hero__title, .sa-hero__text,
.sa-cta__title, .sa-cta__sub,
.sa-timeline__title, .sa-timeline__text,
.sa-heading__title, .sa-footer__company { margin-bottom: 0; }
.sa-card__img, .sa-project__img, .sa-post__img, .sa-profile__img,
.sa-hero__img, .sa-logo__img, .sa-video img { margin: 0; padding: 0; max-width: 100%; }
.sa-card__text { margin-top: 8px; }
.sa-project__meta { margin-top: 4px; }
.sa-profile__name { margin-top: 18px; margin-bottom: 6px; }
.sa-profile__role { margin-bottom: 18px; }
.sa-heading__sub { margin-top: 14px; margin-bottom: 0; }
.sa-timeline__title { margin-bottom: 6px; }
.sa-cta__sub { margin-top: 6px; }
.sa-hero__title { margin-bottom: 14px; }
.sa-post__title { margin: 0; }
.sa-btn, a.sa-btn { margin: 0; }
.sa-btn-wrap { margin: 0 0 1em; }
.sa-cards, .sa-logos, .sa-projects, .sa-posts, .sa-timeline { margin-bottom: 0; }
.sa-projects.layout-featured .sa-project__meta { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* nút <button> tự dựng: bỏ min-height / margin / bóng mặc định của Flatsome */
.sa-hero__dots button,
.sa-filter__btn,
.sa-slider-nav button,
.sa-video__poster {
	margin: 0;
	min-height: 0;
	box-shadow: none;
	text-shadow: none;
	border-radius: 0;
}
.sa-hero__dots button { height: 14px; line-height: 1; padding: 0; }
.sa-hero__dots { align-items: center; height: auto; }
@media (max-width: 849px) { .sa-profile.is-video .sa-profile__media { max-width: none; } }

.sa-hero { cursor: grab; }
.sa-hero.is-dragging { cursor: grabbing; user-select: none; }
.sa-hero.is-dragging a { pointer-events: none; }

.sa-posts.mode-slider { display: block; }

/* ---------- HERO: tùy chọn vị trí/kiểu thẻ, bullet, mũi tên, tỉ lệ ---------- */
.sa-hero.has-ratio { height: auto; aspect-ratio: var(--sa-hero-ratio, 16 / 9); }
.sa-hero__pic { display: block; position: absolute; inset: 0; }
.sa-hero__inner { display: flex; }
.sa-hero.card-center .sa-hero__inner { justify-content: center; }
.sa-hero.card-right .sa-hero__inner { justify-content: flex-end; }
.sa-hero__card { width: 100%; max-width: var(--sa-hero-card-w, 640px); }
.sa-hero.card-center .sa-hero__card { text-align: center; }
.sa-hero.card-center .sa-hero__actions { justify-content: center; }
.sa-hero.card-right .sa-hero__card { border-left: 0; border-right: 5px solid var(--sa-yellow); }
.sa-hero.cardstyle-dark .sa-hero__card { background: rgba(31, 32, 36, 0.88); }
.sa-hero.cardstyle-dark .sa-hero__title { color: #fff; }
.sa-hero.cardstyle-dark .sa-hero__text { color: rgba(255, 255, 255, 0.85); }
.sa-hero.cardstyle-dark .sa-btn--outline { color: #fff; }
.sa-hero.cardstyle-none .sa-hero__card { background: transparent; box-shadow: none; border: 0; padding-left: 0; padding-right: 0; }
.sa-hero.cardstyle-none .sa-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.sa-hero.cardstyle-none .sa-hero__text { color: rgba(255, 255, 255, 0.92); }
.sa-hero.cardstyle-none .sa-btn--outline { color: #fff; }
.sa-hero.dots-center .sa-hero__dots { left: 0; right: 0; justify-content: center; }
.sa-hero.dots-left .sa-hero__dots { right: auto; left: max(24px, calc((100% - var(--sa-container)) / 2 + 15px)); }
.sa-hero__arrow { top: 50%; }
.sa-hero__arrow.sa-slider-arrow--prev { left: 16px; }
.sa-hero__arrow.sa-slider-arrow--next { right: 16px; }
@media (max-width: 849px) {
	.sa-hero.has-ratio { aspect-ratio: auto; height: var(--sa-hero-h-t, 78vh); height: var(--sa-hero-h-t-s, 78svh); }
	.sa-hero.card-right .sa-hero__card { border-right-width: 4px; }
	.sa-hero__arrow { display: none; }
}

/* ---------- CARDS: tùy chọn chung ---------- */
.sa-card { border-radius: var(--sa-card-radius, 0); }
.sa-cards--tile .sa-card, .sa-cards--vmc .sa-card, .sa-cards--outline .sa-card { overflow: hidden; }
.sa-cards--outline .sa-card__title { font-size: var(--sa-card-title, 15px); }
.sa-cards--vmc .sa-card__title { font-size: var(--sa-card-title, 20px); }
.sa-cards--list .sa-card__title { font-size: var(--sa-card-title, 18px); }
.sa-cards--outline .sa-card__text,
.sa-cards--vmc .sa-card__text,
.sa-cards--list .sa-card__text { font-size: var(--sa-card-text, 15px); }
.sa-cards--tile .sa-card__text { font-size: var(--sa-card-text, 13px); }
.sa-cards--vmc .sa-card__media { aspect-ratio: var(--sa-card-ratio, 16 / 9); }
.sa-cards--list .sa-card__media { aspect-ratio: var(--sa-card-ratio, 1 / 1); border-radius: var(--sa-card-radius, 0); }
.sa-cards--tile.ratio-auto .sa-card { aspect-ratio: auto; }
.sa-cards--tile.ratio-auto .sa-card__media { position: relative; inset: auto; }
.sa-cards--tile.ratio-auto .sa-card__img { height: auto; }
.sa-cards--vmc.ratio-auto .sa-card__media, .sa-cards--list.ratio-auto .sa-card__media { aspect-ratio: auto; }
.sa-cards.sa-al-center .sa-card__body, .sa-cards.sa-al-center .sa-card { text-align: center; }
.sa-cards.sa-al-center .sa-card__title { justify-content: center; }
.sa-cards.sa-al-left .sa-card { text-align: left; }
.sa-cards.hide-text .sa-card__text { display: none; }
.sa-card__badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; background: var(--sa-yellow); color: var(--sa-ink); font: 700 11px/1 var(--sa-font); letter-spacing: 0.08em; text-transform: uppercase; }
.sa-cards--list .sa-card__badge { top: 6px; left: 6px; }

/* ---------- TIMELINE: tùy chọn ---------- */
.sa-timeline.no-line::before { display: none; }
.sa-timeline.sa-al-center .sa-timeline__item { text-align: center; }
.sa-timeline.year-plain .sa-timeline__year { border-color: transparent; min-width: 0; padding-left: 14px; padding-right: 14px; font-size: 24px; }
.sa-timeline.year-plain.sa-al-left .sa-timeline__year { padding-left: 0; }

/* ---------- PROJECTS / POSTS: tùy chọn ---------- */
.sa-projects.ratio-auto .sa-project__media,
.sa-posts.ratio-auto .sa-post__media { aspect-ratio: auto; }
.sa-projects.ratio-auto .sa-project__img,
.sa-posts.ratio-auto .sa-post__img { height: auto; }
.sa-project__title,
.sa-post__title { -webkit-line-clamp: var(--sa-lines-t, 2); line-clamp: var(--sa-lines-t, 2); }
.sa-projects:not(.layout-featured) .sa-project__meta { -webkit-line-clamp: var(--sa-lines-m, 2); line-clamp: var(--sa-lines-m, 2); }
.sa-post__excerpt { -webkit-line-clamp: var(--sa-lines-e, 2); line-clamp: var(--sa-lines-e, 2); }
.sa-project__cat { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-muted); }
.sa-projects.layout-featured .sa-project__cat { color: var(--sa-yellow); }
.sa-projects.hover-none:not(.layout-featured) .sa-project__link:hover .sa-project__title { color: inherit; }

/* hai section liền nhau cùng nền trắng: bỏ đệm trên của section sau để khoảng trống không bị nhân đôi */
.section.sa-section-pad:not([class*='sa-bg-']):not(.sa-photo-band) + .section.sa-section-pad:not([class*='sa-bg-']) { padding-top: 0 !important; }
.sa-page-hero + .section.sa-section-pad,
.sa-page-hero + .section-wrap .section.sa-section-pad { padding-top: 48px !important; }

/* khoảng cách chữ → nút trong hero (nhóm reset margin ở trên ghi đè về 0) */
.sa-hero__text { margin-bottom: 26px; }
@media (max-width: 849px) { .sa-hero__text { margin-bottom: 18px; } .sa-hero__card { max-width: var(--sa-hero-card-w-t, 100%); } }
@media (max-width: 549px) { .sa-hero__card { max-width: none; } }

/* giới hạn 2 dòng, dư thì thành … */
.sa-project__title,
.sa-post__title,
.sa-post__excerpt { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.sa-projects:not(.layout-featured) .sa-project__meta { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
/* hover bài viết: chỉ đổi màu tiêu đề (vàng sáng) */
.sa-post__title a { transition: color 0.25s; }
.sa-post__title a:hover { text-decoration: none; color: var(--sa-yellow); }
.sa-posts.no-zoom .sa-post:hover .sa-post__img { transform: none; }
.sa-slider-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ---------- PAGE HERO: tùy chọn ---------- */
.sa-page-hero__shade { background: linear-gradient(to top, rgba(0, 0, 0, var(--sa-ph-overlay, 0.35)), rgba(0, 0, 0, calc(var(--sa-ph-overlay, 0.35) * 0.15)) 60%); }
.sa-page-hero.has-ratio { height: auto; aspect-ratio: var(--sa-ph-ratio, 21 / 9); min-height: 200px; }
.sa-page-hero.sa-al-center .sa-page-hero__inner { text-align: center; }
.sa-page-hero.sa-al-right .sa-page-hero__inner { text-align: right; }
.sa-page-hero.title-plain .sa-page-hero__title { background: transparent; border: 0; box-shadow: none; padding: 0; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
@media (max-width: 549px) {
	.sa-page-hero { height: var(--sa-ph-h-m, calc(var(--sa-ph-h, 320px) * 0.72)); }
	.sa-page-hero.has-ratio { height: auto; aspect-ratio: auto; min-height: var(--sa-ph-h-m, calc(var(--sa-ph-h, 320px) * 0.72)); }
}

/* ---------- MAP / FORM / INFO: tùy chọn ---------- */
.sa-map.is-gray iframe { filter: grayscale(1); }
.sa-map.no-border { border: 0; }
@media (max-width: 549px) { .sa-map { height: var(--sa-map-h-m, var(--sa-map-h, 380px)); } }

/* chú thích dưới ảnh / đoạn ghi chú nhỏ trong nội dung */
.sa-caption { margin: 10px 0 0; font-size: 14px; font-style: italic; color: var(--sa-muted); }
.sa-prose p { margin: 0 0 14px; }
.sa-prose p:last-child { margin-bottom: 0; }
.sa-prose a { color: var(--sa-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sa-prose a:hover { color: var(--sa-yellow-d); }
.sa-project-facts { margin: 0 0 12px; font-weight: 700; color: var(--sa-ink); }
.sa-project-scope { margin: 0 0 12px; font-size: 15px; color: var(--sa-muted); }

.sa-mt-lg { margin-top: 36px; }
.sa-thumbs { margin-top: 20px; }

/* khoảng cách giữa các khối liên tiếp trong cùng một cột (tiêu đề tự có margin-bottom riêng) */
.section.sa-section-pad .col-inner > :not(.sa-heading) + *:not(script):not(style) { margin-top: 32px; }
.section.sa-section-pad .col-inner > .sa-heading + * { margin-top: 0; }

/* ---------- STATS ---------- */
.sa-stats { display: grid; grid-template-columns: repeat(var(--sa-cols, 4), minmax(0, 1fr)); gap: 0; padding: 36px 0; }
@media (max-width: 849px) { .sa-stats { grid-template-columns: repeat(var(--sa-cols-md, 2), minmax(0, 1fr)); padding: 24px 0; } }
@media (max-width: 549px) { .sa-stats { grid-template-columns: repeat(var(--sa-cols-sm, 2), minmax(0, 1fr)); } }
.sa-stat { padding: 18px 28px; display: flex; flex-direction: column; gap: 6px; }
.sa-stats.has-divider .sa-stat { border-left: 1px solid rgba(127, 127, 127, 0.28); }
.sa-stats.has-divider .sa-stat:first-child { border-left: 0; }
.sa-stat__value { font-size: var(--sa-stat-size, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--sa-yellow); }
.sa-stat__label { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.sa-stats.sa-al-center .sa-stat { text-align: center; align-items: center; }
.sa-stats--dark { background: var(--sa-ink); }
.sa-stats--light { background: var(--sa-soft-2); }
.sa-stats--light .sa-stat__value { color: var(--sa-ink); }
.sa-stats--light .sa-stat__label { color: var(--sa-text); }
.sa-stats--yellow { background: var(--sa-yellow); }
.sa-stats--yellow .sa-stat__value { color: var(--sa-ink); }
.sa-stats--yellow .sa-stat__label { color: rgba(31, 32, 36, 0.8); }
@media (max-width: 849px) {
	.sa-stat { padding: 14px 16px; }
	.sa-stats.has-divider .sa-stat { border-left: 0; }
}

/* ---------- Nội dung chuyên gia: trích dẫn, chip thông số, dải logo ---------- */
.sa-quote { margin: 22px 0 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sa-yellow); font-size: 18px; line-height: 1.55; font-style: italic; color: var(--sa-ink); }
.sa-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.sa-facts li { margin: 0; padding: 7px 14px; background: var(--sa-cream-2); font-size: 14px; font-weight: 700; color: var(--sa-ink); line-height: 1.2; }
.sa-scope { margin: 0 0 14px; font-size: 15px; color: var(--sa-text); }
.sa-scope strong { color: var(--sa-ink); }
.sa-meta-tag { display: inline-block; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sa-muted); }
.sa-logo-strip { margin: 0 auto; max-width: 780px; }
.sa-logo-strip img { display: block; margin: 0 auto; width: 100%; height: auto; }
.sa-lead { max-width: 820px; font-size: 17px; line-height: 1.7; }
.sa-chip { display: inline-block; padding: 8px 16px; background: var(--sa-cream-2); font-weight: 700; color: var(--sa-ink); }

/* ---------- tiện ích bố cục dùng trong trang nội dung ---------- */
.sa-bg-ink { background: var(--sa-ink); }
.sa-bg-ink .section-content, .sa-bg-ink .row, .sa-bg-ink .col, .sa-bg-ink .col-inner { padding-bottom: 0; padding-top: 0; margin-top: 0; margin-bottom: 0; }
.section.sa-section-pad.sa-pb-0 { padding-bottom: 0 !important; }
.section.sa-section-pad.sa-pt-0 { padding-top: 0 !important; }
@media (min-width: 850px) { .row.sa-row-reverse { flex-direction: row-reverse; } }
.sa-timeline__text { max-width: 560px; }

.sa-facts li { margin: 0 !important; list-style: none !important; padding: 7px 14px !important; }
.sa-facts { margin-left: 0 !important; padding-left: 0 !important; }

/* khối nội dung trang chuyên gia: ngăn cách bằng đường mảnh, đệm gọn */
.section.sa-section-pad.sa-block { padding-top: 48px !important; padding-bottom: 48px !important; border-top: 1px dashed var(--sa-line); }
.sa-prose ul { margin: 0 0 14px 1.2em; padding: 0; }
.sa-prose ul li { margin: 0 0 6px; }
.sa-prose { max-width: 980px; }

/* ---------- trang chuyên gia: khối chữ có tiêu đề cột trái + nội dung cột phải ---------- */
.section.sa-section-pad.sa-block { padding-top: 76px !important; padding-bottom: 76px !important; border-top: 0; }
@media (max-width: 849px) { .section.sa-section-pad.sa-block { padding-top: 44px !important; padding-bottom: 44px !important; } }
.sa-sec-no { display: block; margin: 0 0 6px; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--sa-yellow); }
.sa-sec-head { padding-right: 24px; }
.sa-sec-head--wide { padding-right: 0; }
@media (min-width: 850px) { .sa-sec-head:not(.sa-sec-head--wide) { position: sticky; top: 110px; } }
@media (max-width: 849px) { .sa-sec-no { font-size: 44px; } .sa-sec-head { padding-right: 0; margin-bottom: 8px; } }
.sa-prose { font-size: 16.5px; line-height: 1.8; max-width: none; }
.sa-prose p { margin: 0 0 18px; }
.sa-prose p:last-child { margin-bottom: 0; }
.sa-lead-strong { font-size: 20px !important; line-height: 1.55; font-weight: 500; color: var(--sa-ink); }
.section.sa-section-pad .col-inner > :not(.sa-heading) + .sa-heading { margin-top: 48px; }
.sa-stats-card { background: #fff; border: 1px solid var(--sa-line); padding: 14px 0; }
.sa-stats-card .sa-stat { padding: 18px 26px; }
.sa-stats--light .sa-stat__value::after { content: ''; display: block; width: 30px; height: 3px; margin-top: 10px; background: var(--sa-yellow); }
.sa-block .sa-cards--outline .sa-card { padding: 18px 20px; }
.sa-block .sa-cards--outline.align-left .sa-card, .sa-block .sa-cards--outline.sa-al-left .sa-card { border-left: 4px solid var(--sa-yellow); }


/* ---------- CARDS kiểu "media": ảnh trên – chữ dưới (giống thẻ dự án trang chủ), dùng được dạng slider ---------- */
.sa-cards.mode-slider { display: block; }
.sa-cards--media .sa-card { display: flex; flex-direction: column; background: transparent; }
.sa-cards--media .sa-card__media { aspect-ratio: var(--sa-card-ratio, 3 / 2); overflow: hidden; background: var(--sa-soft); border-radius: var(--sa-card-radius, 0); }
.sa-cards--media .sa-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.sa-cards--media a.sa-card:hover .sa-card__img, .sa-cards--media .sa-card:hover .sa-card__img { transform: scale(1.04); }
.sa-cards--media .sa-card__body { padding: 16px 2px 0; }
.sa-cards--media .sa-card__meta, .sa-card__meta { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sa-muted); }
.sa-cards--media .sa-card__title { font-size: var(--sa-card-title, 19px); line-height: 1.3; transition: color 0.25s; }
.sa-cards--media a.sa-card:hover .sa-card__title { color: var(--sa-yellow); }
.sa-cards--media .sa-card__text { font-size: var(--sa-card-text, 15px); color: var(--sa-text); }
.sa-cards.has-clamp .sa-card__text { display: -webkit-box; -webkit-line-clamp: var(--sa-card-lines, 3); line-clamp: var(--sa-card-lines, 3); -webkit-box-orient: vertical; overflow: hidden; }
.sa-cards.mode-slider .sa-card { height: 100%; }

.sa-center { text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; }
.section.sa-section-pad.sa-block { padding-top: 64px !important; padding-bottom: 64px !important; }


/* ---------- CARDS kiểu "feature": số/dấu + tiêu đề + mô tả, không khung ---------- */
.sa-cards--feature { counter-reset: sa-n; }
.sa-cards--feature .sa-card { padding: 22px 0 0; border-top: 1px solid var(--sa-line); counter-increment: sa-n; }
.sa-cards--feature .sa-card__media { display: none; }
.sa-cards--feature .sa-card::before { display: block; margin-bottom: 12px; line-height: 1; }
.sa-cards--feature.marker-number .sa-card::before { content: counter(sa-n, decimal-leading-zero); font-size: 34px; font-weight: 900; letter-spacing: -0.02em; color: var(--sa-yellow); }
.sa-cards--feature.marker-dot .sa-card::before { content: ''; width: 10px; height: 10px; margin-bottom: 16px; background: var(--sa-yellow); }
.sa-cards--feature.marker-none .sa-card::before { content: none; }
.sa-cards--feature .sa-card__title { font-size: var(--sa-card-title, 18px); line-height: 1.35; }
.sa-cards--feature .sa-card__text { margin-top: 8px; font-size: var(--sa-card-text, 15.5px); line-height: 1.65; color: var(--sa-text); }
.sa-cards--feature.sa-al-center .sa-card { text-align: center; }
.sa-cards--feature.sa-al-center .sa-card::before { margin-left: auto; margin-right: auto; }

/* ---------- TIMELINE dọc ---------- */
.sa-timeline.layout-vertical { display: block; padding: 0 0 0 30px; }
.sa-timeline.layout-vertical::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: var(--sa-line); }
.sa-timeline.layout-vertical .sa-timeline__item { padding: 0 0 30px; }
.sa-timeline.layout-vertical .sa-timeline__item:last-child { padding-bottom: 0; }
.sa-timeline.layout-vertical .sa-timeline__item::before { content: ''; position: absolute; left: -30px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--sa-yellow); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--sa-yellow); }
.sa-timeline.layout-vertical .sa-timeline__year { display: block; min-width: 0; padding: 0; margin: 0 0 4px; border: 0; border-radius: 0; background: transparent; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-yellow-d); text-align: left; }
.sa-timeline.layout-vertical .sa-timeline__title { font-size: 19px; margin-bottom: 6px; }
.sa-timeline.layout-vertical .sa-timeline__text { max-width: none; font-size: 15.5px; line-height: 1.65; }

/* nội dung chữ: link không gạch chân (đậm + đổi màu khi rê chuột) */
.sa-prose a { text-decoration: none; font-weight: 700; color: var(--sa-ink); }
.sa-prose a:hover { color: var(--sa-yellow-d); text-decoration: none; }

.sa-logo-card { margin-top: 20px; padding: 28px 32px; background: #fff; border: 1px solid var(--sa-line); }
.sa-logo-card img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.sa-stats-section .sa-stats { padding: 8px 0 0; }


/* =====================================================================
   CHAU CHUỐT TRANG NỘI DUNG (chuyên gia): nhịp khoảng cách, căn đều chữ, ảnh, thẻ
   ===================================================================== */
/* nhịp dọc thống nhất */
.section.sa-section-pad { padding-top: 80px !important; padding-bottom: 80px !important; }
.section.sa-section-pad.sa-pb-sm { padding-bottom: 40px !important; }
@media (max-width: 849px) {
	.section.sa-section-pad { padding-top: 52px !important; padding-bottom: 52px !important; }
	.section.sa-section-pad.sa-pb-sm { padding-bottom: 28px !important; }
}
.section.sa-section-pad .col-inner > :not(.sa-heading) + *:not(script):not(style) { margin-top: 40px; }
.section.sa-section-pad .col-inner > .sa-heading + * { margin-top: 0; }
.section.sa-section-pad .col-inner > :not(.sa-heading) + .sa-heading { margin-top: 56px; }

/* chữ căn đều hai bên (đoạn dài), tiêu đề/ghi chú vẫn theo canh lề riêng */
.sa-prose p,
.sa-cards--feature .sa-card__text,
.sa-cards--media .sa-card__text,
.sa-cards--vmc .sa-card__text,
.sa-timeline__text { text-align: justify; hyphens: auto; }
.sa-prose.sa-center p, .sa-prose.sa-center { text-align: center; }
.sa-lead-strong { text-align: justify; }

/* hàng 2 cột cao bằng nhau, nội dung giữa theo chiều dọc */
.row.sa-row-equal { align-items: stretch; }
.row.sa-row-equal > .col { display: flex; min-width: 0; }
.row.sa-row-equal > .col > .col-inner { flex: 1 1 auto; min-width: 0; max-width: 100%; display: flex; flex-direction: column; justify-content: center; }
.row.sa-row-equal > .col > .col-inner > * { margin-top: 0 !important; }
.row.sa-row-equal > .col > .col-inner > * + * { margin-top: 18px !important; }
@media (max-width: 549px) { .row.sa-row-equal > .col > .col-inner { display: block; } }

/* ---------- sa_image ---------- */
.sa-figure { margin: 0; position: relative; }
.sa-figure__frame { position: relative; overflow: hidden; aspect-ratio: var(--sa-fig-ratio, 4 / 3); border-radius: var(--sa-fig-radius, 0); background: var(--sa-soft); }
.sa-figure.ratio-auto .sa-figure__frame { aspect-ratio: auto; }
.sa-figure__img { display: block; max-width: 100%; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: var(--sa-fig-focus, 50% 50%); }
.sa-figure.is-fill { height: 100%; }
.sa-figure.is-fill .sa-figure__frame { height: 100%; aspect-ratio: auto; min-height: 340px; }
.sa-figure.has-shadow .sa-figure__frame { box-shadow: 0 18px 44px rgba(31, 32, 36, 0.16); }
.sa-figure__cap { margin: 10px 0 0; font-size: 14px; font-style: italic; color: var(--sa-muted); }
.sa-figure__cap.is-overlay { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 22px 18px; font-style: normal; font-size: 14px; line-height: 1.45; color: #fff; background: linear-gradient(to top, rgba(20, 20, 22, 0.82), rgba(20, 20, 22, 0)); }
@media (max-width: 549px) { .sa-figure.is-fill .sa-figure__frame { min-height: 0; aspect-ratio: var(--sa-fig-ratio, 4 / 3); } }

/* ---------- cards: nền thẻ trắng đổ bóng (feature / media) ---------- */
.sa-cards--feature.surface-card .sa-card { padding: 34px 30px 32px; border-top: 0; background: #fff; box-shadow: 0 10px 34px rgba(31, 32, 36, 0.07); transition: transform 0.3s, box-shadow 0.3s; }
.sa-cards--feature.surface-card .sa-card:hover { transform: translateY(-4px); box-shadow: 0 16px 42px rgba(31, 32, 36, 0.12); }
.sa-cards--feature.surface-card.marker-number .sa-card::before { font-size: 46px; margin-bottom: 16px; }

.sa-cards--media.surface-card .sa-card { background: #fff; box-shadow: 0 10px 34px rgba(31, 32, 36, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.sa-cards--media.surface-card .sa-card:hover { transform: translateY(-4px); box-shadow: 0 16px 42px rgba(31, 32, 36, 0.14); }
.sa-cards--media.surface-card .sa-card__body { padding: 22px 24px 26px; flex: 1; }
.sa-cards--media .sa-card__body { display: flex; flex-direction: column; }
.sa-cards--media .sa-card__title { margin-bottom: 0; }
.sa-cards--media .sa-card__text { margin-top: 10px; }
.sa-cards--media.meta-tag .sa-card__meta { position: absolute; top: 14px; left: 14px; z-index: 3; margin: 0; padding: 6px 12px; background: var(--sa-yellow); color: var(--sa-ink); font-size: 11px; letter-spacing: 0.1em; }
.sa-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 !important; padding: 0 !important; list-style: none; }
.sa-card__facts li { margin: 0 !important; padding: 5px 11px; background: var(--sa-cream-2); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--sa-ink); list-style: none; }

.sa-cards.mode-slider .sa-carousel__clip { margin: -6px 0 -30px; padding: 6px 0 30px; }

/* khung logo đối tác vận hành */
.sa-logo-card { margin-top: 0; padding: 30px 34px; background: #fff; border: 1px solid var(--sa-line); box-shadow: 0 10px 34px rgba(31, 32, 36, 0.05); }

/* dải số liệu */
.sa-stats-section { padding-top: 72px !important; padding-bottom: 72px !important; }
.sa-stats-section .sa-stats { padding: 0; }
.sa-stats-section .sa-stat { padding: 14px 22px; gap: 10px; }
.sa-stats-section .sa-stat__label { font-size: 15px; line-height: 1.4; }

.sa-cards.mode-slider .sa-card { height: auto; align-self: stretch; }


/* ---------- breadcrumb sát nội dung bên dưới ---------- */
.sa-breadcrumb-wrap { margin: 0 0 22px; }
.section.sa-section-pad .col-inner > .sa-breadcrumb-wrap + * { margin-top: 0 !important; }

/* ---------- icon đầu thẻ ---------- */
.sa-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0 0 18px; border-radius: 50%; background: var(--sa-cream-2); color: var(--sa-ink); }
.sa-card__icon svg { width: 26px; height: 26px; }
.sa-cards--feature .sa-card.has-icon::before { content: none !important; }
.sa-cards--feature .sa-card.has-icon { padding-top: 0; border-top: 0; }
.sa-cards--feature.surface-card .sa-card.has-icon { padding-top: 32px; }
.sa-cards--feature .sa-card.has-icon:hover .sa-card__icon { background: var(--sa-yellow); }
.sa-card__icon { transition: background-color 0.25s; }

/* ---------- stats dạng thẻ trắng rời ---------- */
.sa-stats--card { background: transparent; gap: 30px; padding: 0; }
.sa-stats--card .sa-stat { background: #fff; padding: 26px 24px; gap: 8px; box-shadow: 0 10px 30px rgba(31, 32, 36, 0.07); border: 0 !important; }
.sa-stats--card .sa-stat::before { content: ''; width: 9px; height: 9px; margin-bottom: 8px; background: var(--sa-yellow); }
.sa-stats--card .sa-stat__value { color: var(--sa-ink); font-size: var(--sa-stat-size, 40px); }
.sa-stats--card .sa-stat__label { color: var(--sa-muted); font-size: 15px; }
.sa-stats--card.sa-al-center .sa-stat { align-items: center; text-align: center; }

/* ---------- timeline ngang kiểu "các bước" ---------- */
.sa-timeline.layout-horizontal.year-pill .sa-timeline__title { margin-top: 4px; font-size: 20px; }
.sa-timeline.layout-horizontal .sa-timeline__text { max-width: none; font-size: 16px; line-height: 1.7; }


/* timeline ngang dạng thẻ: nhãn số nằm vắt lên mép trên thẻ */
.sa-timeline.layout-horizontal.is-card { gap: 30px; padding-top: 26px; }
.sa-timeline.layout-horizontal.is-card::before { display: none; }
.sa-timeline.layout-horizontal.is-card .sa-timeline__item { padding: 46px 28px 32px; background: #fff; box-shadow: 0 10px 34px rgba(31, 32, 36, 0.07); transition: transform 0.3s, box-shadow 0.3s; }
.sa-timeline.layout-horizontal.is-card .sa-timeline__item:hover { transform: translateY(-4px); box-shadow: 0 16px 42px rgba(31, 32, 36, 0.12); }
.sa-timeline.layout-horizontal.is-card .sa-timeline__year { position: absolute; top: -26px; left: 28px; margin: 0; min-width: 88px; background: var(--sa-yellow); border-color: var(--sa-yellow); }
@media (max-width: 849px) {
	.sa-timeline.layout-horizontal.is-card { padding-left: 0; gap: 40px; }
	.sa-timeline.layout-horizontal.is-card .sa-timeline__item::before { display: none; }
}


/* ---------- chuẩn khoảng cách ngang = 30px (gutter giữa 2 cột của Flatsome), áp cho mọi bố cục trái–phải ---------- */
:root { --sa-gutter: 30px; }
.section.sa-section-pad.sa-pt-sm { padding-top: 28px !important; }
@media (max-width: 849px) { .section.sa-section-pad.sa-pt-sm { padding-top: 20px !important; } }

/* stats trong suốt đặt trên nền ảnh */
.sa-stats--clear { background: transparent; }
.sa-stats--clear .sa-stat__label { color: rgba(255, 255, 255, 0.85); }

/* ---------- Kinh nghiệm: dải nền ảnh tối, số liệu 2 tầng ---------- */
.sa-photo-band .section-bg img { object-fit: cover; }
.sa-photo-band .sa-heading__sub { color: rgba(255, 255, 255, 0.78); }
.sa-photo-band .sa-stats { padding: 0; }
.sa-photo-band .sa-stats.has-divider .sa-stat { border-left-color: rgba(255, 255, 255, 0.22); }
.sa-photo-band .sa-stats--big .sa-stat { padding: 18px 30px 26px; }
.sa-photo-band .sa-stats--big .sa-stat__value { font-size: var(--sa-stat-size, 68px); }
.sa-photo-band .sa-stats--big .sa-stat__label { font-size: 17px; }
.sa-photo-band .sa-stats--small { margin-top: 18px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.sa-photo-band .sa-stats--small .sa-stat { padding: 8px 30px; }
.sa-photo-band .sa-stats--small .sa-stat__value { color: #fff; }
@media (max-width: 849px) { .sa-photo-band .sa-stats--big .sa-stat, .sa-photo-band .sa-stats--small .sa-stat { padding: 12px 14px; } }



/* ---------- Phương pháp thiết kế: quy trình các bước, căn giữa, ô số vàng nối nhau bằng đường ngang ---------- */
.sa-method .sa-cards { margin-top: 0 !important; }
.sa-method .sa-cards--feature .sa-card { position: relative; padding: 0; border-top: 0; text-align: center; }
.sa-method .sa-cards--feature.marker-number .sa-card::before { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; background: var(--sa-yellow); color: var(--sa-ink); font-size: 26px; font-weight: 900; letter-spacing: 0; position: relative; z-index: 1; transition: background-color 0.25s, color 0.25s; }
.sa-method .sa-cards--feature .sa-card::after { content: ''; position: absolute; top: 31px; left: calc(50% + 32px); right: calc(-1 * var(--sa-gap, 30px) - 50% + 32px); height: 2px; background: var(--sa-line); }
.sa-method .sa-cards--feature .sa-card:last-child::after { display: none; }
.sa-method .sa-cards--feature .sa-card:hover::before { background: var(--sa-ink); color: var(--sa-yellow); }
.sa-method .sa-cards--feature .sa-card__body { padding: 0 14px; }
.sa-method .sa-cards--feature .sa-card__title { font-size: var(--sa-card-title, 21px); }
.sa-method .sa-cards--feature .sa-card__text { text-align: center; text-align-last: center; }
@media (max-width: 849px) {
	/* tablet / mobile: xếp dọc, ô số bên trái – chữ bên phải, đường nối dọc đi qua tâm các ô số */
	.sa-method .sa-cards--feature .sa-card { padding: 0 0 0 92px; min-height: 64px; text-align: left; }
	.sa-method .sa-cards--feature.marker-number .sa-card::before { position: absolute; left: 0; top: 0; margin: 0; }
	.sa-method .sa-cards--feature .sa-card::after { top: 64px; bottom: calc(-1 * var(--sa-gap, 30px)); left: 31px; right: auto; width: 2px; height: auto; margin: 0; }
	.sa-method .sa-cards--feature .sa-card__body { padding: 0; max-width: none; margin: 0; }
	.sa-method .sa-cards--feature .sa-card__title { padding-top: 8px; }
	.sa-method .sa-cards--feature .sa-card__body, .sa-method .sa-cards--feature .sa-card__title { text-align: left; }
	.sa-method .sa-cards--feature .sa-card__text { text-align: justify; text-align-last: left; }
}
@media (max-width: 549px) {
	.sa-method .sa-cards--feature .sa-card { padding-left: 76px; min-height: 56px; }
	.sa-method .sa-cards--feature.marker-number .sa-card::before { width: 56px; height: 56px; font-size: 22px; }
	.sa-method .sa-cards--feature .sa-card::after { top: 56px; left: 27px; }
	.sa-method .sa-cards--feature .sa-card__title { padding-top: 5px; font-size: 19px; }
}

/* chú thích nhỏ ngay dưới khối (vd. dưới slider dự án): sát khối phía trên */
.section.sa-section-pad .col-inner > .sa-caption { margin-top: 14px !important; }

/* ---------- Mobile: gọn hơn, không để một khối chiếm cả màn hình ---------- */
@media (max-width: 549px) {
	/* ảnh chân dung vuông, không kéo dài cả màn hình */
	.sa-profile:not(.sa-about) .sa-profile__media { aspect-ratio: 1 / 1; }
	/* thẻ điểm nổi bật: bớt đệm */
	.sa-cards--feature.surface-card .sa-card,
	.sa-cards--feature.surface-card .sa-card.has-icon { padding: 26px 22px 24px; }
	.sa-card__icon { width: 48px; height: 48px; margin-bottom: 14px; }
	/* dải số liệu trên nền ảnh: mỗi chỉ số một dòng, số bên trái – nhãn bên phải */
	.sa-photo-band .sa-stats { grid-template-columns: minmax(0, 1fr) !important; }
	.sa-photo-band .sa-stats .sa-stat { display: flex; flex-direction: row !important; min-height: 0 !important; justify-content: flex-start; align-items: baseline; gap: 16px; padding: 12px 0 !important; border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.18); }
	.sa-photo-band .sa-stats .sa-stat:first-child { border-top: 0; }
	.sa-photo-band .sa-stats .sa-stat__label { font-size: 15px; }
	.sa-photo-band .sa-stats--big .sa-stat__value { flex: 0 0 150px; font-size: 40px; }
	.sa-photo-band .sa-stats--small { margin-top: 12px; padding-top: 12px; }
	.sa-photo-band .sa-stats--small .sa-stat__value { flex: 0 0 150px; font-size: 30px; }
}

@media (max-width: 549px) {
	.sa-hero.has-ratio { height: var(--sa-hero-h-m, 78vh); height: var(--sa-hero-h-m-s, 78svh); }
}

/* ---------- Phương pháp thiết kế: tablet xếp dọc như mobile ---------- */

/* ---------- CHUẨN: tiêu đề mục → nội dung bên dưới luôn cách đúng bằng margin-bottom của sa_heading (mặc định 28px) ---------- */
.section.sa-section-pad .col-inner > .sa-heading + *,
.row.sa-row-equal > .col > .col-inner > .sa-heading + * { margin-top: 0 !important; }

/* ---------- CHUẨN: khoảng cách NHÌN THẤY từ gạch chân tiêu đề tới nội dung = 28px ----------
   Khối có cạnh cứng (ảnh, thẻ, ô số) đã đúng 28px từ mép hộp. Chữ thì mép hộp cách nét chữ ~7px (nửa line-height)
   nên kéo chữ lên đúng phần đó; ô thống kê bỏ đệm trên + kéo theo cỡ chữ số. */
.sa-heading + .sa-prose > .sa-lead-strong:first-child { margin-top: -0.35em; }
.section.sa-section-pad .col-inner > .sa-heading + .sa-timeline.layout-vertical { margin-top: -5px !important; }
.section.sa-section-pad .col-inner > .sa-heading + .sa-stats--big { margin-top: calc(var(--sa-stat-size, 68px) * -0.15) !important; }
.sa-photo-band .sa-stats--big .sa-stat { padding-top: 0; }
@media (max-width: 549px) {
	.section.sa-section-pad .col-inner > .sa-heading + .sa-stats--big { margin-top: -6px !important; }
	.sa-photo-band .sa-stats--big .sa-stat:first-child { padding-top: 0 !important; }
}


/* ---------- DANH SÁCH DỊCH VỤ (Tư vấn thiết kế): ảnh nhỏ bên trái + tên, lưới 2 cột ---------- */
.sa-services { display: grid; grid-template-columns: repeat(var(--sa-cols, 2), minmax(0, 1fr)); gap: var(--sa-row-gap, 24px) var(--sa-gap, 30px); }
.sa-service { display: flex; align-items: center; gap: 20px; color: var(--sa-ink); text-decoration: none; }
.sa-service__thumb { flex: 0 0 var(--sa-thumb-w, 120px); display: block; aspect-ratio: var(--sa-ratio, 3 / 2); overflow: hidden; border-radius: var(--sa-radius-img, 0); background: var(--sa-soft); }
.sa-service__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform 0.6s; }
.sa-service:hover .sa-service__img { transform: scale(1.06); }
.sa-services.no-zoom .sa-service:hover .sa-service__img { transform: none; }
.sa-service__body { display: block; min-width: 0; }
.sa-service__title { display: block; font-size: 19px; font-weight: 700; line-height: 1.35; transition: color 0.25s; }
.sa-service:hover .sa-service__title { color: var(--sa-yellow); }
.sa-service__text { display: -webkit-box; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--sa-text); -webkit-line-clamp: var(--sa-lines-e, 2); line-clamp: var(--sa-lines-e, 2); -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 849px) { .sa-services { grid-template-columns: repeat(var(--sa-cols-md, 2), minmax(0, 1fr)); } .sa-service { gap: 16px; } .sa-service__title { font-size: 17px; } }
@media (max-width: 549px) { .sa-services { grid-template-columns: repeat(var(--sa-cols-sm, 1), minmax(0, 1fr)); } .sa-service__thumb { flex-basis: min(var(--sa-thumb-w, 120px), 96px); } }

.sa-projects__empty { margin: 8px 0 0; padding: 28px 0; font-size: 16px; color: var(--sa-muted); }
.sa-projects__empty[hidden] { display: none; }

/* ---------- Bộ lọc nhóm: một hàng, tràn thì trượt ngang (vuốt / cuộn ngang / kéo thanh cuộn) ---------- */
.sa-filter { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin-bottom: 20px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--sa-line) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sa-filter::-webkit-scrollbar { height: 5px; }
.sa-filter::-webkit-scrollbar-thumb { background: var(--sa-line); }
.sa-filter__btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 549px) {
	.sa-filter { margin-right: -15px; padding-right: 15px; scrollbar-width: none; }
	.sa-filter::-webkit-scrollbar { display: none; }
	.sa-filter__btn { padding: 10px 16px; }
}


/* ---------- PHÂN TRANG: mũi tên + số, ô vuông, vàng cho trang hiện tại ---------- */
.sa-pagination { margin: 44px 0 0; }
.sa-pagination__list,
ul.page-numbers.nav-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-pagination__list li,
ul.page-numbers.nav-pagination li { margin: 0; padding: 0; border: 0; list-style: none; }
.sa-pagination__item,
ul.page-numbers.nav-pagination .page-number {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; margin: 0; padding: 0 12px;
	border: 1px solid var(--sa-line); background: #fff; color: var(--sa-ink);
	font: 700 15px/1 var(--sa-font); text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; box-shadow: none; border-radius: 0;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
a.sa-pagination__item:hover, button.sa-pagination__item:hover,
ul.page-numbers.nav-pagination a.page-number:hover { border-color: var(--sa-yellow); background: var(--sa-cream-2); color: var(--sa-ink); }
.sa-pagination__item.is-current,
ul.page-numbers.nav-pagination .page-number.current { border-color: var(--sa-yellow); background: var(--sa-yellow); color: var(--sa-ink); cursor: default; }
.sa-pagination__item.is-arrow { padding: 0; width: 44px; }
.sa-pagination__item.is-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.sa-pagination__item svg { display: block; }
.sa-pagination__dots { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 44px; color: var(--sa-muted); font-weight: 700; }
ul.page-numbers.nav-pagination .page-number i { font-size: 16px; line-height: 1; margin: 0; }
@media (max-width: 549px) {
	.sa-pagination { margin-top: 32px; }
	.sa-pagination__list, ul.page-numbers.nav-pagination { gap: 6px; }
	.sa-pagination__item, ul.page-numbers.nav-pagination .page-number { min-width: 40px; height: 40px; padding: 0 8px; font-size: 14px; }
	.sa-pagination__item.is-arrow { width: 40px; }
	.sa-pagination__dots { height: 40px; min-width: 20px; }
}

/* phân trang: <li> không nhận margin/padding mặc định của Flatsome (ul li { margin-left: 1.3em }) */
nav.sa-pagination ul.sa-pagination__list > li,
ul.page-numbers.nav-pagination > li { margin: 0 !important; padding: 0 !important; list-style: none; line-height: 1; }
nav.sa-pagination ul.sa-pagination__list { margin: 0 !important; padding: 0 !important; }


/* ---------- Bộ lọc dạng link (lọc theo nhóm bằng URL chuẩn) ---------- */
a.sa-filter__btn { display: inline-block; text-decoration: none; color: var(--sa-ink); }

/* ---------- Bài chi tiết dự án: ảnh trong nội dung ---------- */
.sa-article__figure { margin: 8px 0 28px; }
.sa-article__figure img { display: block; width: 100%; height: auto; margin: 0; }
.sa-article__figure figcaption { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--sa-muted); }


/* ==========================================================================
   CHI TIẾT DỰ ÁN (single-project.php) – theo wireframe PDF trang 8
   ========================================================================== */
.sa-detail-hero { position: relative; height: clamp(200px, 28vw, 400px); background: var(--sa-ink); overflow: hidden; }
.sa-detail-hero__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }

.sa-project-single { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; align-items: start; padding: 28px 0 72px; }
.sa-project-single .sa-breadcrumb-wrap { margin: 0 0 18px; }
.sa-single__title { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; line-height: 1.2; }
.sa-single__content { margin-top: 28px; }
.sa-single__content > :first-child { margin-top: -0.3em; }

/* nội dung bài */
.sa-single__content .sa-lead { max-width: none; font-size: 19px; line-height: 1.65; font-weight: 500; color: var(--sa-ink); text-align: justify; }
.sa-single__content h2 { margin: 40px 0 14px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); font-weight: 900; line-height: 1.3; }
.sa-single__content h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.sa-single__content ul { margin: 0 0 18px 1.2em; padding: 0; }
.sa-single__content li { margin: 0 0 8px; }
.sa-single__content li::marker { color: var(--sa-yellow); }
.sa-single__content p { margin: 0 0 16px; }
.sa-single__content h2 + p, .sa-single__content h3 + p { margin-top: 0; }

/* hàng ảnh thư viện (các ảnh liền nhau được gom lại ở the_content) */
.sa-article__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; margin: 8px 0 28px; }
.sa-article__gallery .sa-article__figure { margin: 0; }
.sa-article__gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.sa-article__gallery figcaption { font-size: 13px; line-height: 1.45; }

.sa-project-single__side .sa-info { position: sticky; top: calc(var(--sa-header-h, 84px) + 24px); max-height: calc(100vh - var(--sa-header-h, 84px) - 48px); overflow-y: auto; scrollbar-width: thin; }

@media (max-width: 849px) {
	.sa-project-single { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; }
	.sa-project-single__side .sa-info { position: static; max-height: none; overflow: visible; }
	.sa-article__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 549px) {
	.sa-single__content .sa-lead { font-size: 17px; }
		.sa-article__gallery { gap: 14px; }
}

.sa-project-single__side { align-self: stretch; } /* cột phải cao bằng bài để hộp thông tin dính được khi cuộn */


/* ==========================================================================
   HỘP "THÔNG TIN DỰ ÁN" – thẻ trắng, icon từng dòng, nhãn trạng thái, 2 chỉ số nổi bật
   ========================================================================== */
.sa-info { padding: 28px 26px 12px; background: #fff; border: 1px solid var(--sa-line); border-top: 4px solid var(--sa-yellow); box-shadow: 0 14px 38px rgba(31, 32, 36, 0.08); }
.sa-info.is-plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.sa-info__title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.25; }
.sa-info__state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.sa-info__chip { display: inline-block; padding: 6px 12px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.sa-info__chip.is-done { background: var(--sa-ink); color: #fff; }
.sa-info__chip.is-going { background: var(--sa-yellow); color: var(--sa-ink); }
.sa-info__chip.is-paused { background: #8c9097; color: #fff; }
.sa-info__time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sa-muted); }
.sa-info__time svg { width: 16px; height: 16px; }

/* chỉ số nổi bật: một khối kem gọn, mỗi chỉ số một dòng – nhãn bên trái, giá trị đậm bên phải */
.sa-info__stats { margin-top: 20px; padding: 2px 16px; background: var(--sa-cream); border-left: 3px solid var(--sa-yellow); }
.sa-info__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; }
.sa-info__stat + .sa-info__stat { border-top: 1px dashed rgba(31, 32, 36, 0.16); }
.sa-info__stat-ico { display: none; }
.sa-info__stat-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sa-muted); white-space: nowrap; }
.sa-info__stat-val { font-size: 17px; font-weight: 900; line-height: 1.2; text-align: right; color: var(--sa-ink); }

/* các dòng thông tin */
.sa-info__rows { margin-top: 8px; }
.sa-info__row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 16px 0; border-top: 1px dashed var(--sa-line); }
.sa-info__rows .sa-info__row:first-child { border-top: 0; }
.sa-info__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sa-cream-2); color: var(--sa-ink); }
.sa-info__ico svg { width: 20px; height: 20px; }
.sa-info__body { min-width: 0; padding-top: 1px; }
.sa-info__label { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-muted); }
.sa-info__val { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.5; color: var(--sa-ink); }
.sa-info__list { margin: 0; padding: 0; list-style: none; }
.sa-info__list li { position: relative; margin: 0 0 5px; padding-left: 16px; font-size: 15px; line-height: 1.5; color: var(--sa-ink); }
.sa-info__list li:last-child { margin-bottom: 0; }
.sa-info__list li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 7px; height: 7px; background: var(--sa-yellow); }

@media (max-width: 549px) {
	.sa-info { padding: 22px 18px 6px; }
	.sa-info__stat-val { font-size: 16px; }
	.sa-info__stat-label { font-size: 11px; }
	.sa-info__row { grid-template-columns: 38px minmax(0, 1fr); gap: 0 12px; }
	.sa-info__ico { width: 38px; height: 38px; }
}


/* ---------- Dự án liên quan (cuối trang chi tiết dự án) ---------- */
.sa-related { padding: 64px 0 72px; background: var(--sa-soft-2); }
@media (max-width: 849px) { .sa-related { padding: 48px 0 56px; } }


/* ==========================================================================
   Hộp thông tin dự án trên tablet / mobile: đưa lên ngay dưới tiêu đề, xổ ra – thu lại
   ========================================================================== */
.sa-info__panel { display: block; }
.sa-info__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; letter-spacing: 0; text-align: left; text-transform: none; cursor: default; }
.sa-info__chev { display: none; flex: none; width: 34px; height: 34px; padding: 8px; border: 1px solid var(--sa-line); border-radius: 50%; background: #fff; transition: transform 0.25s, background-color 0.2s; }

@media (max-width: 849px) {
	/* nội dung bài, tiêu đề, hộp thông tin cùng nằm trong một lưới → sắp lại thứ tự: breadcrumb › H1 › hộp thông tin › bài */
	.sa-project-single { gap: 0; }
	.sa-project-single__main { display: contents; }
	.sa-project-single__main > .sa-breadcrumb-wrap { order: 1; }
	.sa-project-single__main > .sa-single__title { order: 2; }
	.sa-project-single__main > .sa-heading__bar { order: 3; }
	.sa-project-single__side { order: 4; margin-top: 28px; align-self: auto; }
	.sa-project-single__main > .sa-single__content { order: 5; }

	.sa-info.is-collapsible { padding-bottom: 22px; }
	.sa-info__toggle { cursor: pointer; }
	.sa-info__chev { display: block; }
	.sa-info__toggle:hover .sa-info__chev { background: var(--sa-cream-2); }
	.sa-info.is-collapsible:not(.is-collapsed) .sa-info__chev { transform: rotate(180deg); background: var(--sa-yellow); border-color: var(--sa-yellow); }
	.sa-info.is-collapsible .sa-info__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s ease; }
	.sa-info.is-collapsible.is-collapsed .sa-info__panel { grid-template-rows: 0fr; }
	.sa-info.is-collapsible .sa-info__panel-inner { min-height: 0; overflow: hidden; }
}


/* ---------- Dự án: phóng to ảnh khi rê chuột – đồng bộ ở MỌI kiểu (lưới, carousel, đầu to); tắt bằng option zoom ---------- */
.sa-projects .sa-project__img { transition: transform 0.6s ease; }
.sa-projects:not(.no-zoom) .sa-project__link:hover .sa-project__img { transform: scale(1.06); }
.sa-projects .sa-carousel__clip.is-dragging .sa-project__img { transform: none; } /* đang kéo thì không phóng */


/* ==========================================================================
   CHI TIẾT DỊCH VỤ (single-service.php) – theo wireframe PDF trang 7
   ========================================================================== */
.sa-service-single { padding: 28px 0 72px; }
.sa-service-single .sa-breadcrumb-wrap { margin: 0 0 18px; }
.sa-service-single .sa-single__content { max-width: none; }
.sa-service-single .sa-single__content > p:first-child { font-size: 19px; line-height: 1.65; font-weight: 500; color: var(--sa-ink); text-align: justify; }
.sa-service-related { margin-top: 0; }
@media (max-width: 849px) {
	.sa-service-single { padding-bottom: 56px; }
	.sa-service-related { margin-top: 0; }
}
@media (max-width: 549px) {
	.sa-service-single .sa-single__content > p:first-child { font-size: 17px; }
}

/* ---------- Thanh điều hướng danh mục tin tức (wireframe PDF trang 9): chữ thường, đường kẻ mảnh, mục đang chọn đậm + gạch vàng ---------- */
.sa-filter.sa-filter--tabs {
	gap: 0;
	margin: 0 0 28px;
	padding: 0;
	box-shadow: inset 0 -1px 0 var(--sa-line);
}
.sa-filter.sa-filter--tabs .sa-filter__btn {
	padding: 16px 22px 15px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	font: 500 17px/1.2 var(--sa-font);
	letter-spacing: 0;
	text-transform: none;
	color: var(--sa-ink);
	transition: border-color 0.2s, color 0.2s;
}
.sa-filter.sa-filter--tabs .sa-filter__btn:hover { background: transparent; border-bottom-color: var(--sa-line); }
.sa-filter.sa-filter--tabs .sa-filter__btn.is-active { background: transparent; border-bottom-color: var(--sa-yellow); font-weight: 700; }
@media (max-width: 549px) {
	.sa-filter.sa-filter--tabs { margin-right: -15px; padding-right: 0; }
	.sa-filter.sa-filter--tabs .sa-filter__btn { padding: 14px 16px 13px; font-size: 16px; }
}

/* ---------- Chi tiết bài viết tin tức (single.php): cột giữa theo wireframe PDF trang 9 ---------- */
.sa-post-single { max-width: 900px; margin: 0 auto; padding: 40px 0 72px; }
.sa-post-single .sa-breadcrumb-wrap { margin: 0 0 18px; }
.sa-post-single .sa-single__content img { display: block; max-width: 100%; height: auto; }
.sa-post-single .sa-single__content figure,
.sa-post-single .sa-single__content .wp-caption { max-width: 100%; margin: 8px 0 28px; }
.sa-post-single .sa-single__content figcaption,
.sa-post-single .sa-single__content .wp-caption-text { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--sa-muted); }
.sa-post-single .sa-single__content p > img { margin: 8px 0 28px; }
@media (max-width: 849px) { .sa-post-single { padding: 28px 0 56px; } }

/* ---------- Trang Liên hệ: khối thông tin + form Contact Form 7 (wireframe PDF trang 10) ---------- */
.sa-cblock__title { margin: 0 0 28px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.sa-cblock__list { margin: 0; padding: 0; list-style: none; }
.sa-contact .row + .row { margin-top: 48px; }
@media (max-width: 849px) { .sa-contact .row + .row { margin-top: 36px; } }

.sa-form .wpcf7 { margin: 0; }
.sa-form .wpcf7-form { margin: 0; }
.sa-form .wpcf7-form > p { margin: 0 0 14px; }
.sa-form .wpcf7-form-control-wrap { display: block; }
.sa-form .wpcf7-form textarea { min-height: 150px; resize: vertical; }
.sa-form .wpcf7-form input::placeholder,
.sa-form .wpcf7-form textarea::placeholder { color: var(--sa-muted); opacity: 1; }
.sa-form .wpcf7-not-valid { border-color: #d33 !important; }
.sa-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; color: #a11; }
.sa-form .wpcf7-form .sa-form__submit { display: flex; align-items: center; gap: 12px; margin: 0; }
.sa-form .wpcf7-form input.wpcf7-submit { margin: 0; }
.sa-form .wpcf7-spinner { margin: 0; }
.sa-form .wpcf7-form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 16px; border: 0; border-left: 4px solid var(--sa-yellow); background: var(--sa-soft); font-weight: 500; color: var(--sa-ink); }
.sa-form .wpcf7-form.sent .wpcf7-response-output { background: #effaf1; border-color: #2e9e4f; color: #1c6b34; }
.sa-form .wpcf7-form.invalid .wpcf7-response-output,
.sa-form .wpcf7-form.failed .wpcf7-response-output,
.sa-form .wpcf7-form.spam .wpcf7-response-output,
.sa-form .wpcf7-form.unaccepted .wpcf7-response-output { background: #fff0f0; border-color: #d33; color: #a11; }
.sa-form .wpcf7-form.init .wpcf7-response-output { display: none; }
.sa-cblock__list li { margin-left: 0 !important; list-style: none; }
.sa-form .wpcf7-form input.wpcf7-submit.sa-btn { min-height: 48px; height: auto; padding: 0 28px; border: 2px solid var(--sa-yellow); border-radius: var(--sa-radius); font: 700 14px/1 var(--sa-font); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: none; background: var(--sa-yellow) !important;}
.sa-form .wpcf7-form input.wpcf7-submit.sa-btn:hover { background: var(--sa-yellow-d); border-color: var(--sa-yellow-d); color: var(--sa-ink) !important; }

/* ---------- Thông tin liên hệ: mỗi dòng là một thẻ có ô icon vàng ---------- */
.sa-cblock__list { display: grid; gap: 16px; }
.sa-cblock__item { display: flex !important; align-items: center; gap: 18px; margin: 0 !important; padding: 18px 22px !important; background: #fff; border: 1px solid var(--sa-line); border-left: 4px solid var(--sa-yellow); transition: border-color 0.2s, box-shadow 0.2s; }
.sa-cblock__item:hover { border-color: var(--sa-yellow); box-shadow: 0 10px 28px rgba(31, 32, 36, 0.08); }
.sa-cblock__ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; background: var(--sa-yellow); color: var(--sa-ink); }
.sa-cblock__ico svg { width: 24px; height: 24px; display: block; }
.sa-cblock__txt { display: grid; gap: 4px; min-width: 0; }
.sa-cblock__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sa-muted); }
.sa-cblock__value { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-cblock__value small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--sa-muted); }
.sa-cblock__value a { color: var(--sa-ink); text-decoration: none; }
.sa-cblock__value a:hover { color: var(--sa-yellow-d); }
@media (max-width: 549px) {
	.sa-cblock__item { gap: 14px; padding: 14px 16px !important; }
	.sa-cblock__ico { width: 42px; height: 42px; }
	.sa-cblock__value { font-size: 16px; }
}

/* ---------- Trang thường (page.php mặc định): breadcrumb + tiêu đề + nội dung (giống trang chi tiết) ---------- */
.sa-page-default { padding: 40px 0 72px; }
.sa-page-default .sa-breadcrumb-wrap { margin: 0 0 18px; }
@media (max-width: 849px) { .sa-page-default { padding: 28px 0 56px; } }
.sa-single__content ol { margin: 0 0 18px 1.4em; padding: 0; }
.sa-single__content ol li::marker { color: var(--sa-yellow-d); font-weight: 700; }
.sa-single__content blockquote { margin: 24px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--sa-yellow); font-size: 18px; font-style: italic; color: var(--sa-ink); }
.sa-single__content blockquote p:last-child { margin-bottom: 0; }
.sa-single__content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--sa-line); }
.sa-single__content table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 16px; }
.sa-single__content th,
.sa-single__content td { padding: 10px 14px; border: 1px solid var(--sa-line); text-align: left; vertical-align: top; }
.sa-single__content th { background: var(--sa-cream-2); font-weight: 700; }
.sa-single__content h4 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; }
.sa-single__content img { max-width: 100%; height: auto; }

/* (Khoảng cách hàng của mọi lưới item – thẻ dịch vụ, dự án, tin tức, ở trang chủ lẫn archive – đã gom về rule gốc: hàng = 0.8 × cột = 24px.) */

/* ---------- Thư viện ảnh của WordPress ([gallery]) trong nội dung bài / dự án / trang ----------
   Cấu trúc WP xuất ra:  div.gallery.gallery-columns-N > figure.gallery-item > div.gallery-icon > a > img  +  figcaption.gallery-caption
   Flatsome dựng .gallery bằng flex và cho .gallery-item padding 0 15px 30px (làm ảnh lệch 15px so với chữ) → đổi sang grid, bỏ padding.
   Chỉ áp trong .sa-single__content để không ảnh hưởng gallery ở chỗ khác (UX Builder, widget…). */
.sa-single__content .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 30px;
	align-items: start;
	width: auto;
	margin: 8px 0 28px;
	padding: 0;
}
.sa-single__content .gallery.gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.sa-single__content .gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-single__content .gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-single__content .gallery.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sa-single__content .gallery.gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sa-single__content .gallery > .gallery-item {
	float: none;
	flex: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
}
.sa-single__content .gallery .gallery-icon { margin: 0; padding: 0; }
.sa-single__content .gallery .gallery-icon a { display: block; }
.sa-single__content .gallery .gallery-icon img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; border: 0; }
/* chú thích: giống kiểu mặc định của Flatsome cho .wp-caption-text (nền đen 5%, chữ .9em nghiêng, padding .4em) */
.sa-single__content .gallery > .gallery-item > .gallery-caption {
	display: block;
	margin: 0;
	padding: .4em;
	background: rgba(0, 0, 0, .05);
	font-size: .9em;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	color: var(--sa-muted);
}
@media (max-width: 849px) {
	.sa-single__content .gallery.gallery-columns-3,
	.sa-single__content .gallery.gallery-columns-4,
	.sa-single__content .gallery.gallery-columns-5,
	.sa-single__content .gallery.gallery-columns-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 549px) {
	.sa-single__content .gallery[class*='gallery-columns-'] { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Hero: slide video nền (kiểu kda.vn) ---------- */
.sa-hero__video,
.sa-hero__embed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.sa-hero__video { object-fit: cover; }
.sa-hero__embed { container-type: size; overflow: hidden; }
.sa-hero__embed iframe {
	position: absolute;
	left: 50%;
	top: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}
.sa-hero__slide.is-ready .sa-hero__video,
.sa-hero__slide.is-ready .sa-hero__embed { opacity: 1; }
/* video lỗi / mobile tắt video: chỉ còn ảnh nền */
.sa-hero__slide.video-failed .sa-hero__video,
.sa-hero__slide.video-failed .sa-hero__embed { display: none; }
@media (max-width: 549px) {
	.sa-hero__slide.video-no-mobile .sa-hero__video,
	.sa-hero__slide.video-no-mobile .sa-hero__embed { display: none; }
}
/* slide video đang chạy: khóa chuyển slide → ẩn bullet / mũi tên, bỏ con trỏ kéo */
.sa-hero.is-locked .sa-hero__dots,
.sa-hero.is-locked .sa-hero__arrow { display: none; }
.sa-hero.is-locked { cursor: default; }
@media (prefers-reduced-motion: reduce) {
	.sa-hero__video, .sa-hero__embed { display: none; }
}
/* nhãn nhận biết slide video khi chỉnh trong UX Builder */
.sa-hero__vtag { position: absolute; top: 12px; left: 12px; z-index: 6; padding: 6px 12px; background: var(--sa-yellow); color: var(--sa-ink); font: 700 12px/1 var(--sa-font); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Trang chủ: đoạn mô tả dài canh đều hai bên; "Về chúng tôi" là H2 chung ---------- */
.sa-hero__text,
.sa-profile__text,
.sa-profile__text p { text-align: justify; }
.sa-cta:not(.sa-al-center) .sa-cta__sub { text-align: justify; }
/* "Về chúng tôi" / "Năng lực ban lãnh đạo" là tiêu đề riêng ở trên → nhãn nhỏ trong khối bị ẩn, tên đứng đầu cột chữ không cần cách trên */
.sa-profile__body > .sa-profile__name:first-child { margin-top: 0; }

/* ---------- Đồng bộ lề dọc với các section tràn rộng (row full-width = lề 15px mỗi bên) ---------- */
/* Hero: thẻ chữ + bullet nằm đúng lề 15px (option "Khung đặt thẻ" = Tràn rộng, mặc định) */
.sa-hero.frame-wide .sa-hero__inner.container { max-width: none; padding-left: var(--sa-edge); padding-right: var(--sa-edge); }
@media (min-width: 850px) {
	.sa-hero.frame-wide .sa-hero__dots { right: var(--sa-edge); }
	.sa-hero.frame-wide.dots-left .sa-hero__dots { left: var(--sa-edge); right: auto; }
	.sa-hero.frame-wide.dots-center .sa-hero__dots { left: 0; right: 0; }
}
/* Footer MỌI trang: cùng lề 15px với dải CTA phía trên, header và các section tràn rộng */
.sa-footer .container { max-width: none; padding-left: var(--sa-edge); padding-right: var(--sa-edge); }

/* ---------- Lề tràn rộng: 15px mỗi bên = mặc định Flatsome (biến --sa-edge) ---------- */
/* Row "full-width": cột đã có 15px đệm → thêm phần chênh để tổng = --sa-edge */
.row.row-full-width { padding-left: calc(var(--sa-edge) - 15px); padding-right: calc(var(--sa-edge) - 15px); }
/* Header tràn rộng + dải CTA */
.header-full-width .header-inner.container { padding-left: var(--sa-edge); padding-right: var(--sa-edge); }
.sa-cta-band .row-full-width { padding-left: calc(var(--sa-edge) - 15px); padding-right: calc(var(--sa-edge) - 15px); }
/* Khối đặt ngoài khung web nhưng cùng lề (dự án/dịch vụ liên quan ở trang chi tiết) */
.sa-edge { padding-left: var(--sa-edge); padding-right: var(--sa-edge); }

/* ---------- Đoạn văn <p> trong cột (Editor / Builder): chuẩn khoảng cách ---------- */
/* Các đoạn liền nhau cách 18px (như .sa-prose); trước đây dính quy tắc 40px giữa "các khối" nên 2 đoạn cách nhau 40px */
.section.sa-section-pad .col-inner > p { margin-bottom: 18px; }
.section.sa-section-pad .col-inner > p + p { margin-top: 0 !important; }
.section.sa-section-pad .col-inner > p:last-child { margin-bottom: 0; }
.section.sa-section-pad .col-inner:not(.text-center) > p { text-align: justify; }
/* Đoạn trong khối hồ sơ / giới thiệu cũng 18px (trước 12px) */
.sa-profile__text p { margin: 0 0 18px; }
.sa-profile__text p:last-child { margin-bottom: 0; }


/* ==========================================================================
   FEEDBACK 28/10 – khoảng trắng gọn hơn, khe mảnh giữa các ô, header trong suốt trên trang có banner,
   ô tìm kiếm trong banner, khối "Đăng ký nhận báo giá"
   ========================================================================== */

/* ---------- Khoảng trắng giữa các section (một biến duy nhất, đổi ở đây) ---------- */
:root { --sa-section-py: 44px; } /* nhịp dọc duy nhất của toàn site: giữa 2 section liền nhau = 2 × giá trị này (88px) */
@media (max-width: 849px) { :root { --sa-section-py: 28px; } }
.section.sa-section-pad { padding-top: var(--sa-section-py) !important; padding-bottom: var(--sa-section-py) !important; }
.section.sa-section-pad.sa-pb-sm { padding-bottom: calc(var(--sa-section-py) / 2) !important; }
.section.sa-section-pad.sa-block { padding-top: calc(var(--sa-section-py) - 8px) !important; padding-bottom: calc(var(--sa-section-py) - 8px) !important; }
.sa-page-hero + .section.sa-section-pad,
.sa-page-hero + .section-wrap .section.sa-section-pad { padding-top: calc(var(--sa-section-py) * 0.75) !important; }

/* ---------- Khe mảnh giữa các ô (lưới tràn ngang) ---------- */
/* ô dự án / tin tức: khung chữ dưới ảnh chỉ đệm phía trên (hai bên và dưới = 0) để chữ thẳng mép ảnh */
.sa-projects.gap-hair:not(.layout-featured) .sa-project__body { padding: 14px 0 0; }
.sa-posts.gap-hair .sa-post__body { padding: 14px 0 0; }
/* khe hàng: do PHP đặt --sa-row-gap (khe mảnh ≤ 12px → hàng = cột; hoặc số user chỉnh trong Builder) */
/* dịch vụ dạng ô: hàng cuối còn ít ô thì căn giữa so với cả bố cục */
.sa-cards--tile.is-center-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sa-gap, 10px); }
.sa-cards--tile.is-center-rows .sa-card { flex: 0 0 calc((100% - (var(--sa-cols, 4) - 1) * var(--sa-gap, 10px)) / var(--sa-cols, 4)); }
@media (max-width: 849px) { .sa-cards--tile.is-center-rows .sa-card { flex-basis: calc((100% - (var(--sa-cols-md, 2) - 1) * var(--sa-gap, 10px)) / var(--sa-cols-md, 2)); } }
@media (max-width: 549px) { .sa-cards--tile.is-center-rows .sa-card { flex-basis: calc((100% - (var(--sa-cols-sm, 1) - 1) * var(--sa-gap, 10px)) / var(--sa-cols-sm, 1)); } }

/* dòng "Kết quả cho …" khi đang tìm kiếm */
.sa-search-note { margin: 0 0 20px; font-size: 15px; color: var(--sa-muted); }
.sa-search-note a { margin-left: 8px; font-weight: 700; color: var(--sa-ink); text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Hero trang chủ: bỏ khung trắng, chữ đặt thẳng lên video ---------- */
.sa-hero.cardstyle-none .sa-hero__text { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); }
.sa-hero.cardstyle-none .sa-hero__title { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5); }

/* ---------- Header trong suốt đè lên banner (trang có banner) ---------- */
/* banner thêm đúng chiều cao header ở phía trên để hộp tiêu đề / ô tìm kiếm không bị che */
.sa-banner-page .sa-page-hero,
.sa-banner-page .sa-detail-hero { box-sizing: content-box; padding-top: var(--sa-header-h, 84px); }
.sa-banner-page .sa-page-hero.has-ratio { min-height: 200px; }
/* lớp phủ tối nhẹ CHỈ ở vùng header (ngoài trang chủ) – nằm ngay trên đầu banner, dưới header trong suốt, để thấy rõ menu trên ảnh sáng.
   (Không đặt lên chính header: Flatsome ép .header.transparent .header-bg-color { background-image: none !important }.)
   Header cuộn xuống chuyển nền trắng thì lớp phủ nằm trong banner cuộn đi theo, không ảnh hưởng. */
.sa-banner-page .sa-page-hero__shade,
.sa-banner-page .sa-detail-hero::after {
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0, rgba(0, 0, 0, 0.4) var(--sa-header-h, 84px), rgba(0, 0, 0, 0) calc(var(--sa-header-h, 84px) + 90px)),
		linear-gradient(to top, rgba(0, 0, 0, var(--sa-ph-overlay, 0.35)), rgba(0, 0, 0, calc(var(--sa-ph-overlay, 0.35) * 0.15)) 60%);
}
.sa-banner-page .sa-detail-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0, rgba(0, 0, 0, 0.4) var(--sa-header-h, 84px), rgba(0, 0, 0, 0) calc(var(--sa-header-h, 84px) + 90px)); }

/* ---------- Ô tìm kiếm thay hộp tiêu đề trong banner (mặc định: sát đáy banner, căn giữa ngang) ----------
   Kích thước / vị trí chỉnh trong Builder: --sa-sb-w (rộng tối đa), --sa-sb-h (cao), --sa-sb-fs (cỡ chữ); class sb-al-left|right, sb-v-center */
.sa-page-hero.sb-v-center { align-items: center; }
.sa-page-hero.sb-v-center .sa-page-hero__inner { padding-bottom: 0; }
.sa-page-hero__search {
	display: flex;
	align-items: center;
	width: min(100%, var(--sa-sb-w, 780px));
	min-height: var(--sa-sb-h, 66px);
	margin: 0 auto;
	padding: 0 0 0 22px;
	background: #fff;
	border-left: 6px solid var(--sa-yellow);
	box-shadow: var(--sa-shadow);
}
.sa-page-hero.sb-al-left .sa-page-hero__search { margin-left: 0; margin-right: auto; }
.sa-page-hero.sb-al-right .sa-page-hero__search { margin-left: auto; margin-right: 0; }
.sa-page-hero__searchico { flex: none; width: calc(var(--sa-sb-fs, 19px) * 1.26); height: calc(var(--sa-sb-fs, 19px) * 1.26); margin-right: 14px; color: var(--sa-muted); }
.sa-page-hero__search input.sa-page-hero__searchinput {
	flex: 1;
	min-width: 0;
	height: var(--sa-sb-h, 66px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: var(--sa-ink);
	font: 500 var(--sa-sb-fs, 19px)/1 var(--sa-font);
}
.sa-page-hero__search input.sa-page-hero__searchinput:focus { outline: 0; box-shadow: none; }
.sa-page-hero__search input.sa-page-hero__searchinput::placeholder { color: var(--sa-muted); opacity: 1; }
.sa-page-hero__search input[type='search']::-webkit-search-cancel-button { cursor: pointer; }
.sa-page-hero__search button.sa-page-hero__searchbtn {
	flex: none;
	align-self: stretch;
	margin: 0;
	padding: 0 calc(var(--sa-sb-h, 66px) * 0.48);
	border: 0;
	border-radius: 0;
	background: var(--sa-yellow);
	color: var(--sa-ink);
	font: 700 14px/1 var(--sa-font);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s;
}
.sa-page-hero__search button.sa-page-hero__searchbtn:hover,
.sa-page-hero__search button.sa-page-hero__searchbtn:focus-visible { background: var(--sa-yellow-d); }
/* tablet / mobile: ô tìm gọn lại theo màn hình (không phụ thuộc cỡ desktop đã chỉnh) */
@media (max-width: 849px) {
	.sa-page-hero__search { min-height: 58px; padding-left: 16px; }
	.sa-page-hero__searchico { width: 22px; height: 22px; }
	.sa-page-hero__search input.sa-page-hero__searchinput { height: 58px; font-size: 17px; }
	.sa-page-hero__search button.sa-page-hero__searchbtn { padding: 0 22px; font-size: 13px; }
}
@media (max-width: 549px) {
	.sa-page-hero__search { min-height: 52px; padding-left: 12px; border-left-width: 5px; }
	.sa-page-hero__searchico { width: 18px; height: 18px; margin-right: 8px; }
	.sa-page-hero__search input.sa-page-hero__searchinput { height: 52px; font-size: 15px; }
	.sa-page-hero__search button.sa-page-hero__searchbtn { padding: 0 16px; font-size: 12px; }
}

/* băng tin tức tự trượt: chuyển động chậm, mượt hơn các carousel khác */
.sa-posts.gap-hair.mode-slider .sa-carousel__track.is-animating { transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.25, 1); }
/* kiểu trượt "Nhanh vừa, mượt" (option Kiểu trượt của slider): nhanh hơn mặc định (0,95s) nhưng vẫn êm – tăng tốc nhẹ, giảm tốc dài ở cuối; dùng cho kéo chuột, mũi tên và tự chạy */
.mode-slider[data-feel='fast'] .sa-carousel .sa-carousel__track.is-animating { transition: transform 0.62s cubic-bezier(0.33, 0.1, 0.2, 1); }

/* ---------- Nhịp khoảng trắng thống nhất cho trang chi tiết / trang thường (cùng biến --sa-section-py) ---------- */
.sa-related { padding: var(--sa-section-py) 0; }
.sa-project-single,
.sa-service-single,
.sa-post-single,
.sa-page-default { padding-bottom: var(--sa-section-py); }
.sa-pagination { margin-top: 32px; }
/* trang 404 của Flatsome: số 404 + thông báo gọn lại, không bỏ trống lớn trên mobile */
.error-404.mt { margin-top: calc(var(--sa-section-py) * 0.5); }
.error-404.mb { margin-bottom: calc(var(--sa-section-py) * 0.5); }
@media (max-width: 849px) {
	.error-404 .col.medium-3 { padding-bottom: 0; }
	.error-404 .col.medium-3 .header-font { font-size: 4em !important; line-height: 1; }
}
/* phần tử cuối của nội dung chi tiết không cộng thêm khoảng đệm dưới (nhịp dọc do section quyết định) */
.sa-single__content > :last-child,
.sa-single__content > ul:last-child li:last-child { margin-bottom: 0; }

/* nút "Xem thêm / Xem tất cả" dưới lưới: cách khối phía trên 32px (trước 40px) */
.section.sa-section-pad .col-inner > :not(.sa-heading) + .sa-btn-wrap:not(script):not(style) { margin-top: 32px; }
/* ==========================================================================
   DỰ ÁN NỔI BẬT – bố cục so le 2 cột kiểu WOH (FEEDBACK 3/11): ảnh lớn, thẻ chữ trắng mờ đè ở đáy ảnh (tên vàng Gold + chủ đầu tư),
   cột phải lệch xuống --sa-stagger, rê chuột: ảnh phóng nhẹ + thẻ nổi lên. Mobile: 1 cột, không lệch.
   ========================================================================== */
:root { --sa-gold-ink: #b98200; }
.sa-projects.layout-stagger .sa-projects__grid,
.sa-projects.layout-stagger.mode-row .sa-projects__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--sa-gap, 40px);
	row-gap: var(--sa-gap, 40px);
	max-width: 1400px;
	margin: 0 auto;
	padding-bottom: var(--sa-stagger, 120px);
}
.sa-projects.layout-stagger .sa-project { position: relative; min-width: 0; }
.sa-projects.layout-stagger .sa-project:nth-child(even) { top: var(--sa-stagger, 120px); }
.sa-projects.layout-stagger .sa-project__link { display: block; position: relative; overflow: hidden; background: var(--sa-ink); }
.sa-projects.layout-stagger .sa-project__media { aspect-ratio: var(--sa-ratio, 1 / 1); }
.sa-projects.layout-stagger .sa-project__img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sa-projects.layout-stagger .sa-project__link:hover .sa-project__img,
.sa-projects.layout-stagger .sa-project__link:focus-visible .sa-project__img { transform: scale(1.07); }
.sa-projects.layout-stagger.no-zoom .sa-project__link:hover .sa-project__img { transform: none; }
.sa-projects.layout-stagger .sa-project__body {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	margin: 0;
	padding: 18px 24px 20px;
	background: rgba(255, 255, 255, 0.92);
	text-align: left;
	isolation: auto;
	overflow: hidden;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.35s, box-shadow 0.5s;
}
.sa-projects.layout-stagger .sa-project__body::before { content: none; }
.sa-projects.layout-stagger .sa-project__body::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	background: var(--sa-yellow);
	transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sa-projects.layout-stagger .sa-project__link:hover .sa-project__body,
.sa-projects.layout-stagger .sa-project__link:focus-visible .sa-project__body {
	background: #fff;
	transform: translateY(-8px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.sa-projects.layout-stagger .sa-project__link:hover .sa-project__body::after,
.sa-projects.layout-stagger .sa-project__link:focus-visible .sa-project__body::after { width: 100%; }
.sa-projects.layout-stagger .sa-project__title,
.sa-projects.layout-stagger .sa-project__link:hover .sa-project__title {
	color: var(--sa-gold-ink);
	font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.35rem);
	line-height: 1.3;
	text-transform: none;
}
.sa-projects.layout-stagger .sa-project__meta,
.sa-projects.layout-stagger .sa-project__link:hover .sa-project__meta {
	margin-top: 6px;
	color: var(--sa-ink);
	font-size: 14.5px;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}
.sa-projects.layout-stagger .sa-project__cat { color: var(--sa-gold-ink); }
@media (max-width: 849px) {
	.sa-projects.layout-stagger .sa-projects__grid { padding-bottom: calc(var(--sa-stagger, 120px) * 0.5); }
	.sa-projects.layout-stagger .sa-project:nth-child(even) { top: calc(var(--sa-stagger, 120px) * 0.5); }
	.sa-projects.layout-stagger .sa-project__body { left: 14px; right: 14px; bottom: 14px; padding: 12px 16px 14px; }
}
@media (max-width: 549px) {
	.sa-projects.layout-stagger .sa-projects__grid,
	.sa-projects.layout-stagger.mode-row .sa-projects__grid { grid-template-columns: 1fr; padding-bottom: 0; }
	.sa-projects.layout-stagger .sa-project:nth-child(even) { top: 0; }
	.sa-projects.layout-stagger .sa-project__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   TÌM KIẾM TOÀN WEBSITE (FEEDBACK 3/11): biểu tượng trên menu, popup nền tối mờ, trang kết quả
   ========================================================================== */
/* biểu tượng kính lúp ở header */
.header-search > a.nav-top-link,
li.header-search a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--sa-ink); transition: color 0.2s, background-color 0.2s; }
li.header-search { margin-left: 8px; }
li.header-search a i { font-size: 22px; }
li.header-search a:hover { color: var(--sa-yellow-d); }
.transparent:not(.stuck) li.header-search a { color: #fff; }
.header-wrapper.stuck li.header-search a { color: #fff; }
.header-wrapper.stuck li.header-search a:hover { color: var(--sa-yellow); }
#search-lightbox { display: none !important; } /* khung tìm kiếm gốc của Flatsome không dùng nữa */

/* popup */
html.sa-spop-open { overflow: hidden; }
.sa-spop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.sa-spop.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.sa-spop__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 30, 0.76); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sa-spop__box { position: relative; width: min(680px, 100%); padding: 40px 40px 34px; background: #fff; border-top: 4px solid var(--sa-yellow); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); transform: translateY(16px) scale(0.98); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sa-spop.is-open .sa-spop__box { transform: none; }
.sa-spop__title { margin: 0 0 18px; font-size: 22px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--sa-ink); }
.sa-spop__form { display: flex; margin: 0; }
.sa-spop__form input.sa-spop__input { flex: 1; min-width: 0; height: 56px; margin: 0; padding: 0 18px; border: 1px solid #d3d7dc; border-right: 0; border-radius: 0; background: #fafafa; box-shadow: none; font: 500 17px/1 var(--sa-font); color: var(--sa-ink); }
.sa-spop__form input.sa-spop__input:focus { outline: 0; border-color: var(--sa-yellow-d); background: #fff; box-shadow: none; }
.sa-spop__form input.sa-spop__input::placeholder { color: var(--sa-muted); opacity: 1; }
.sa-spop__form button.sa-spop__btn { flex: none; height: 56px; margin: 0; padding: 0 30px; border: 0; border-radius: 0; background: var(--sa-yellow); color: var(--sa-ink); font: 700 14px/1 var(--sa-font); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s; }
.sa-spop__form button.sa-spop__btn:hover,
.sa-spop__form button.sa-spop__btn:focus-visible { background: var(--sa-yellow-d); }
.sa-spop__hint { margin: 14px 0 0; font-size: 13.5px; color: var(--sa-muted); }
@media (max-width: 549px) {
	.sa-spop { align-items: flex-start; padding: 84px 16px 16px; }
	.sa-spop__box { padding: 26px 18px 22px; }
	.sa-spop__title { font-size: 18px; margin-bottom: 14px; }
	.sa-spop__form input.sa-spop__input { height: 50px; padding: 0 14px; font-size: 16px; }
	.sa-spop__form button.sa-spop__btn { height: 50px; padding: 0 18px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .sa-spop, .sa-spop__box { transition: none; } }

/* trang kết quả */
.sa-sr-wrap { max-width: 1100px; margin: 0 auto; }
.sa-sr-list { border-top: 1px solid #e3e5e8; }
.sa-sr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid #e3e5e8; align-items: center; }
.sa-sr.no-img { grid-template-columns: minmax(0, 1fr); }
.sa-sr__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sa-soft-2, #f1f2f4); }
.sa-sr__img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform 0.6s; }
.sa-sr:hover .sa-sr__img { transform: scale(1.06); }
.sa-sr__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sa-sr__type { padding: 1px 9px; background: var(--sa-yellow); color: var(--sa-ink); }
.sa-sr__cat { color: var(--sa-muted); }
.sa-sr__title { margin: 0 0 8px; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.3; font-weight: 800; }
.sa-sr__title a { color: var(--sa-ink); text-decoration: none; transition: color 0.2s; }
.sa-sr:hover .sa-sr__title a { color: var(--sa-gold-ink, #b98200); }
.sa-sr__excerpt { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: #4a4f55; }
.sa-sr__excerpt mark,
.sa-sr__title mark { padding: 0 2px; background: rgba(255, 194, 13, 0.4); color: inherit; }
.sa-sr__more { font-size: 14px; font-weight: 700; color: var(--sa-ink); text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sa-sr__more:hover { color: var(--sa-gold-ink, #b98200); }
.sa-sr-empty { margin: 30px 0; padding: 40px 20px; text-align: center; font-size: 18px; font-weight: 600; color: var(--sa-muted); border: 1px dashed #d3d7dc; }
@media (max-width: 849px) { .sa-sr { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 549px) { .sa-sr { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0; } }

/* ==========================================================================
   KHOẢNG ĐỆM 2 BÊN (FEEDBACK 3/11, chốt lần 3): laptop trở lên (≥ 1024px) mỗi bên 60px; tablet / mobile = mặc định Flatsome (15px).
   Nội dung hiển thị tối đa = Site width (--sa-container, 1360px) – màn rộng hơn thì căn giữa; màn hẹp hơn thì đệm 60px.
   Hàng cấp section: Flatsome đã có sẵn 15px ở cột → bù phần còn lại (gutter − 15px) ở hàng; container của template thì đệm thẳng --sa-gutter.
   Giữ tràn toàn chiều rộng: header, footer, banner, mục "Đối tác và chủ đầu tư" (row full-width).
   ========================================================================== */
:root { --sa-gutter: 15px; }
@media (min-width: 1024px) { :root { --sa-gutter: 60px; } }
main .section-content > .row:not(.row-full-width):not(.sa-x) {
	max-width: calc(var(--sa-container) + 2 * var(--sa-gutter));
	padding-left: calc(var(--sa-gutter) - 15px);
	padding-right: calc(var(--sa-gutter) - 15px);
}
main .container:not(.sa-x) { max-width: calc(var(--sa-container) + 2 * var(--sa-gutter)); }
:where(main) .container { padding-left: var(--sa-gutter); padding-right: var(--sa-gutter); }

/* nút đóng popup tìm kiếm: Flatsome đè margin / height / line-height của <button> → chốt lại bằng độ ưu tiên cao hơn */
.sa-spop .sa-spop__box button.sa-spop__close {
	position: absolute;
	top: -50px;
	right: 0;
	display: block;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font: 400 38px/44px var(--sa-font);
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	transition: color 0.2s, transform 0.2s;
}
.sa-spop .sa-spop__box button.sa-spop__close:hover,
.sa-spop .sa-spop__box button.sa-spop__close:focus-visible { background: none; box-shadow: none; color: var(--sa-yellow); transform: rotate(90deg); }

/* khoảng cách giữa các ô riêng cho tablet / mobile (Danh sách dự án): -1 = kế thừa cấp trên */
@media (max-width: 849px) { .sa-projects[style*='--sa-gap-md'] { --sa-gap: var(--sa-gap-md) !important; --sa-row-gap: var(--sa-row-gap-md) !important; } }
@media (max-width: 549px) { .sa-projects[style*='--sa-gap-sm'] { --sa-gap: var(--sa-gap-sm) !important; --sa-row-gap: var(--sa-row-gap-sm) !important; } }

/* ---------- Trang cảm ơn (/cam-on/): [sa_thanks] ---------- */
.sa-thanks { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 56px); text-align: center; background: #fff; border: 1px solid #e3e5e8; border-top: 4px solid var(--sa-yellow); box-shadow: 0 14px 44px rgba(16, 24, 40, 0.08); }
.sa-thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; margin: 0 0 22px; border-radius: 50%; background: var(--sa-yellow); color: var(--sa-ink); box-shadow: 0 0 0 10px rgba(255, 194, 13, 0.22); animation: sa-thanks-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.sa-thanks__icon svg path,
.sa-thanks__icon svg rect { stroke-dasharray: 60; stroke-dashoffset: 60; animation: sa-thanks-draw 0.7s 0.35s ease forwards; }
@keyframes sa-thanks-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes sa-thanks-draw { to { stroke-dashoffset: 0; } }
.sa-thanks__title { margin: 0 0 14px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.25; font-weight: 800; color: var(--sa-ink); }
.sa-thanks__text { margin: 0 auto 18px; max-width: 600px; font-size: 17px; line-height: 1.7; color: #3b4047; }
.sa-thanks__note { margin: 0 0 26px; font-size: 15px; color: var(--sa-muted); }
.sa-thanks__phone { font-weight: 800; font-size: 17px; color: var(--sa-ink); text-decoration: underline; text-decoration-color: var(--sa-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sa-thanks__phone:hover { color: var(--sa-gold-ink, #b98200); }
.sa-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 549px) { .sa-thanks__actions .sa-btn { width: 100%; } .sa-thanks__icon { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .sa-thanks__icon, .sa-thanks__icon svg path, .sa-thanks__icon svg rect { animation: none; stroke-dashoffset: 0; } }
