/*
 * Task GD-03 (sheet "Giao diện" dòng 7–8) — section mới "Dự án nổi bật" ở
 * trang chủ, theo mẫu bmbsteel.com.vn/vi: nền navy, tiêu đề giữa có gạch
 * chân, lưới 3×2 ảnh với tên dự án đè trên ảnh, nút "Xem thêm". Mockup đã
 * duyệt: docs/mockup/gd-03/.
 */
.thp-projects {
	background: #233179;
	padding: 56px 0;
}
.thp-projects__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}
.thp-projects__title {
	text-align: center;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	margin: 0 0 10px;
}
.thp-projects__bar {
	display: block;
	width: 56px;
	height: 3px;
	background: #fff;
	margin: 0 auto 32px;
}
.thp-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.thp-projects__item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	text-decoration: none;
}
.thp-projects__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.thp-projects__item:hover img,
.thp-projects__item:focus img {
	transform: scale(1.06);
}
.thp-projects__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 14px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}
.thp-projects__caption span {
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	line-height: 1.35;
}
.thp-projects__more {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}
.thp-projects__more a {
	display: inline-flex;
	align-items: center;
	padding: 10px 30px;
	border: 1px solid #fff;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
}
.thp-projects__more a:hover,
.thp-projects__more a:focus {
	background: #fff;
	color: #233179;
}

@media (max-width: 767px) {
	.thp-projects__grid {
		grid-template-columns: 1fr;
	}
}

/*
 * Phản hồi lần 3 (04/10/2026, ô I7 "VẪN NHƯ CŨ ... LÀM GIỐNG LINK MẪU, HOVER PHẢI NHƯ LINK MẪU"):
 * làm theo đúng CSS khối dự án của bmbsteel.com.vn/vi (.home-project-item): lưới 3 cột LIỀN nhau
 * (không khe), ô ~ 397×350, lớp phủ màu nền section dâng từ đáy (cao 200px), tên giữa chữ hoa đậm
 * 22–24px; hover: ảnh phóng 1.15, lớp phủ dâng phủ hết ô, tên đi lên, hiện đoạn tóm tắt + mũi tên.
 */
.thp-projects__grid { gap: 0; }
.thp-projects__item { aspect-ratio: 397 / 350; }
.thp-projects__item img { transition: transform .5s ease-in-out; }
.thp-projects__item:hover img,
.thp-projects__item:focus img { transform: scale(1.15); }
.thp-projects__caption {
	top: calc(100% - 200px);
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	background: linear-gradient(0deg, #233179 9.5%, rgba(35, 49, 121, 0) 100%);
	transition: top .5s ease-in-out, background-color .5s ease-in-out;
	text-align: center;
}
.thp-projects__caption .thp-projects__name {
	display: block;
	padding: 0 30px 25px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	transition: padding .5s ease-in-out;
}
.thp-projects__hover {
	display: block;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 28px;
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
	transition: opacity .55s ease-in-out, max-height .55s ease-in-out;
}
.thp-projects__hover .fa { display: block; margin: 10px auto 0; font-size: 22px; }
.thp-projects__item:hover .thp-projects__caption,
.thp-projects__item:focus .thp-projects__caption {
	top: 0;
	justify-content: center;
	background-color: rgba(35, 49, 121, .55);
}
.thp-projects__item:hover .thp-projects__name,
.thp-projects__item:focus .thp-projects__name { padding-bottom: 14px; }
.thp-projects__item:hover .thp-projects__hover,
.thp-projects__item:focus .thp-projects__hover { max-height: 200px; opacity: 1; }
@media (max-width: 991px) {
	.thp-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thp-projects__caption .thp-projects__name { font-size: 16px; padding: 0 16px 18px; }
}
@media (max-width: 575px) {
	.thp-projects__grid { grid-template-columns: minmax(0, 1fr); }
}
.thp-projects__hover { text-transform: none; font-weight: 400; }
