/* ===================================================================
 * TRANG CHỦ — cấu trúc và hình thức theo trang mẫu:
 * slider → service → signature → home_l/home_r → service alt → keywords
 * → collection → tiktok/video → listnews. CSS tự viết theo số đo DOM.
 * =================================================================== */

.title_center {
	text-align: center;
	margin: 36px 0 18px;
}

.title_center h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: #264c5d;
}

.title_center__sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: #8b5b19;
}

.btn-outline {
	display: inline-block;
	padding: 6px 28px;
	border: 1px solid #264c5d;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #264c5d;
	background: #ffffff;
}

.btn-outline:hover {
	background: #264c5d;
	color: #ffffff;
}

/* 1. Slider */
.slider {
	position: relative;
	height: 802px;
	overflow: hidden;
	background: #000;
}

.slider__track {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.slider__item {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: start;
}

.slider__item a,
.slider__media {
	display: block;
	width: 100%;
	height: 100%;
}

.slider__media img,
.slider__media .thumb__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slider__nav {
	position: absolute;
	top: 38%;
	width: 36px;
	height: 60px;
	border: 0;
	font-size: 34px;
	line-height: 1;
	color: #333333;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.slider__nav:hover {
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
}

.slider__nav--prev {
	left: 0;
}

.slider__nav--next {
	right: 0;
}

/* 2 & 5. Hàng dịch vụ */
.service {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.service__banner a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	height: 100%;
	min-height: 200px;
	padding: 16px 20px;
	border-radius: 8px;
	background: linear-gradient(135deg, #0d3a8a 0%, #0a1f5c 100%);
	color: #ffffff;
}

.service__banner strong {
	font-size: 22px;
	line-height: 1.25;
}

.service__banner-tag {
	display: inline-block;
	width: fit-content;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 3px;
	font-size: 11px;
}

.service__banner-sub {
	font-size: 11px;
	font-weight: 700;
}

.service__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	text-align: left;
}

.service__card h3 {
	align-self: flex-start;
	font-size: 16px;
	font-weight: 700;
	color: #264c5d;
}

.service__card p {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: #484338;
}

.service__card--illus {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	padding: 0;
	text-align: left;
}

.service__card--illus > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 4px 24px 24px;
}

/* Ảnh minh họa đặt trên cùng thẻ, rộng bằng thẻ */
.service__img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: contain;
	background: #ffffff;
}
.service__img.thumb__ph {
	background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
}

.service__card--illus .btn-outline {
	align-self: center;
}

/* 3. Công trình tiêu biểu */
.signature {
	width: min(100% - 2 * var(--gutter), 1360px);
	margin: 0 auto;
}

.signature .gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	height: 677px;
	margin-top: 20px;
	margin-bottom: 60px;
}

.gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px;
}

.gallery__item--big {
	grid-row: 1 / span 2;
}

.gallery__media {
	position: absolute;
	inset: 0;
}

.gallery__media img,
.gallery__media .thumb__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 14px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: right;
}

/* 4. Dải công trình: home_l 20% + home_r 78% */
.home-row {
	display: flex;
	gap: 2%;
	align-items: flex-start;
	margin-top: 10px;
}

.home_l {
	flex: 0 0 20%;
}

.home_r {
	flex: 1 1 auto;
	min-width: 0;
}

.title_home {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 300px;
	text-align: right;
}

.title_home h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: #264c5d;
	margin: 0 0 5px;
}

.title_home p {
	margin: 0;
}

.title_home span {
	color: #8b5b19;
	font-size: 12px;
}

.listdesign {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 32px) / 3);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.listdesign li {
	scroll-snap-align: start;
}

.listdesign__img,
.listdesign__media {
	display: block;
}

.listdesign__media {
	aspect-ratio: 342 / 300;
	border-radius: 4px;
}

.listdesign .info {
	padding: 6px 2px 0;
}

.listdesign h3 {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: #333333;
	margin: 0 0 3px;
}

.listdesign p {
	margin: 0;
	font-size: 12px;
	color: #888888;
}

/* 6. Từ khóa */
.keywords {
	margin-top: 14px;
}

.keywords__label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 13px;
	color: #0073ca;
}

.keywords__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.keywords__list a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	background: #e1e0e0;
	font-size: 12px;
	color: #484338;
}

.keywords__list a:hover {
	background: #264c5d;
	color: #ffffff;
}

/* 7. Bộ sưu tập */
.collection {
	width: min(100% - 2 * var(--gutter), 1354px);
	margin: 24px auto 0;
}

.list_collection {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 32px) / 3);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.list_collection li {
	scroll-snap-align: start;
}

.list_collection a {
	display: block;
}

.list_collection__media {
	aspect-ratio: 441 / 331;
	border-radius: 4px;
}

.list_collection__title {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #264c5d;
}

/* 8. Video */
.listtiktok {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.listtiktok li {
	flex: 0 0 213px;
}

.listtiktok .images {
	display: block;
	border-radius: 4px;
	overflow: hidden;
}

.listtiktok__media {
	aspect-ratio: 213 / 378;
}

.listtiktok h3 {
	height: 60px;
	margin-top: 10px;
	font-size: 14px;
	line-height: 22px;
	font-weight: 700;
	color: #264c5d;
	overflow: hidden;
}

.video_home__main {
	display: block;
}

.video_home__media {
	display: block;
	aspect-ratio: 1061 / 564;
	border-radius: 4px;
}

/* 9. Cảm hứng thiết kế */
.news-block {
	margin-top: 12px;
}

.listnews {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 72px) / 4);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.listnews li {
	scroll-snap-align: start;
}

.listnews__media {
	aspect-ratio: 320 / 170;
	border-radius: 4px;
}

.listnews h3 {
	margin-top: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	color: #264c5d;
}

/* Responsive */
@media (max-width: 1024px) {
	.slider {
		height: 520px;
	}

	.service {
		grid-template-columns: 1fr;
	}

	.signature .gallery {
		height: auto;
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.gallery__item--big {
		grid-row: auto;
	}

	.gallery__item {
		aspect-ratio: 4 / 3;
	}

	.home-row {
		flex-direction: column;
		gap: 0;
	}

	.home_l,
	.home_r {
		flex: 1 1 auto;
		width: 100%;
	}

	.title_home {
		height: auto;
		margin: 16px 0 10px;
	}

	.listdesign,
	.list_collection {
		grid-auto-columns: 72%;
	}

	.listnews {
		grid-auto-columns: 62%;
	}
}

@media (max-width: 768px) {
	.slider {
		height: 420px;
	}

	.listdesign,
	.list_collection {
		grid-auto-columns: 80%;
	}

	.listnews {
		grid-auto-columns: 72%;
	}
}