/*
 * Task GD-17: trang danh sách "Công trình tiêu biểu" (`/cong-trinh-tieu-bieu`)
 * + trang chi tiết 1 dự án, theo mẫu bmbsteel.com.vn/vi — bỏ hẳn bộ lọc (yêu
 * cầu gốc) và sidebar (không phải trang kỹ thuật cần tool barem). Mockup đã
 * duyệt: docs/mockup/gd-17/ (bản v2, khớp ảnh chi tiết thật user gửi).
 * Dùng chung 1 kiểu thẻ `.thp-proj-tile` cho cả lưới danh sách và khối
 * "Dự án liên quan" — cùng nhìn với thẻ ở section "Dự án nổi bật" trang chủ
 * (GD-03, assets/thp-projects.css) để đồng bộ 1 kiểu dự án xuyên suốt site.
 */
.thp-proj-archive {
	padding: 32px 0 56px;
}
.thp-proj-archive__title {
	text-align: center;
	color: #233179;
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	margin: 0 0 10px;
}
.thp-proj-archive__bar {
	display: block;
	width: 56px;
	height: 3px;
	background: #233179;
	margin: 0 auto 32px;
}
.thp-proj-archive__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.thp-proj-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	text-decoration: none;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.thp-proj-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.thp-proj-tile:hover img,
.thp-proj-tile:focus img {
	transform: scale(1.06);
}
.thp-proj-tile__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 12px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}
.thp-proj-tile__caption .thp-proj-tile__name { display: block; margin: 0; padding: 0; } /* FB lần 2: h2/span cùng kiểu */
.thp-proj-tile__caption span,
.thp-proj-tile__caption .thp-proj-tile__name {
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	line-height: 1.3;
}

@media (max-width: 900px) {
	.thp-proj-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.thp-proj-archive__grid {
		grid-template-columns: 1fr;
	}
}

/* Trang chi tiết: khung thông tin trái + ảnh lớn phải. */
.thp-proj-detail {
	padding: 24px 0 56px;
}
.thp-proj-detail__top {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}
.thp-proj-detail__info {
	flex: 0 0 320px;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	padding: 20px;
	background: #fff;
	align-self: flex-start;
}
.thp-proj-detail__info h1 {
	color: #233179;
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.3;
}
.thp-proj-detail__info-body {
	font-size: 14px;
	line-height: 1.75;
	color: #333;
}
.thp-proj-detail__info-body p {
	margin: 0 0 8px;
}
.thp-proj-detail__hero {
	flex: 1;
	min-width: 0;
}

.thp-proj-related {
	/* Khối này là anh em (không phải con) của .thp-proj-detail (xem
	   thp_project_detail() trong inc/template-tags.php) nên không thừa
	   hưởng padding-bottom của khối đó — phải tự có khoảng cách dưới
	   trước footer. */
	margin-top: 48px;
	padding-bottom: 56px;
}
.thp-proj-related__title {
	color: #233179;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.thp-proj-related__bar {
	display: block;
	width: 44px;
	height: 3px;
	background: #d91d1b;
	margin: 0 0 24px;
}
.thp-proj-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.thp-proj-detail__top {
		flex-direction: column;
	}
	.thp-proj-detail__info {
		flex: none;
		width: 100%;
	}
	.thp-proj-detail__hero {
		flex: none;
		width: 100%;
	}
	.thp-proj-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.thp-proj-related__grid {
		grid-template-columns: 1fr;
	}
}
