/* Trang chủ giao diện mới */

.mb-hero {
	position: relative;
	min-height: 440px;
	background: #0f2b6b;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
}
.mb-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mb-hero-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(120deg, rgba(15, 43, 107, .82) 0%, rgba(15, 43, 107, .5) 48%, rgba(27, 76, 196, .34) 100%);
}
/* Khi đã có ảnh banner: phủ nhạt hơn để ảnh hiện rõ, thẻ tìm kiếm vẫn nổi */
.mb-hero-has-img .mb-hero-overlay {
	background: linear-gradient(120deg, rgba(8, 25, 64, .55) 0%, rgba(10, 30, 75, .3) 45%, rgba(10, 30, 75, .18) 100%);
}
.mb-hero-inner {
	position: relative;
	width: 100%;
	padding-top: 44px;
	padding-bottom: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mb-trust {
	margin-top: -30px;
	position: relative;
	z-index: 5;
	background: #fff;
	border: 1px solid var(--mb-border);
	border-radius: 12px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	box-shadow: 0 6px 18px rgba(8, 25, 64, .06);
}
.mb-trust-item {
	padding: 22px 24px;
	border-right: 1px solid var(--mb-bg);
	text-align: center;
}
.mb-trust-item:last-child { border-right: 0; }
.mb-trust-value { font-size: 27px; font-weight: 700; color: var(--mb-navy); letter-spacing: -.03em; }
.mb-trust-label { font-size: 12.5px; color: var(--mb-muted); margin-top: 2px; }

/* ---- Cam kết dịch vụ: 4 phần (theo ảnh hero gốc) ---- */
.mb-commit {
	margin-top: -30px; position: relative; z-index: 5;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.mb-commit-item {
	display: flex; align-items: center; gap: 13px;
	background: #fff; border: 1px solid var(--mb-border); border-radius: 14px;
	padding: 15px 18px;
	box-shadow: 0 8px 22px rgba(8, 25, 64, .08);
}
.mb-commit-ico {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #e6c477;
	background: linear-gradient(150deg, #14307a, #1c4098);
	box-shadow: inset 0 0 0 1px rgba(230, 196, 119, .35);
}
.mb-commit-ico svg { width: 24px; height: 24px; display: block; }
.mb-commit-text { display: flex; flex-direction: column; line-height: 1.16; text-transform: uppercase; }
.mb-commit-text b { font-size: 15px; font-weight: 800; color: var(--mb-navy); letter-spacing: .008em; }
.mb-commit-text span { font-size: 15px; font-weight: 800; color: #c2933a; letter-spacing: .008em; }
@media (max-width: 900px) { .mb-commit { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mb-commit { grid-template-columns: 1fr; margin-top: -22px; } }

.mb-home-section { padding-top: 46px; }
.mb-home-section:last-child { padding-bottom: 60px; }
.mb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mb-see-all { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.mb-card-row {
	display: flex;
	gap: 20px;
	margin-top: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	/* Cuộn ngang mượt, không hiển thị thanh cuộn */
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mb-card-row::-webkit-scrollbar { display: none; }
.mb-home-card {
	flex: 0 0 296px;
	scroll-snap-align: start;
}

.mb-home-news { padding-bottom: 60px; }
.mb-news-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 20px;
	margin-top: 22px;
}
.mb-news-card {
	background: #fff;
	border: 1px solid var(--mb-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.mb-news-img { height: 140px; background: var(--mb-bg); }
.mb-news-big .mb-news-img { height: 240px; }
.mb-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-news-body { padding: 14px 16px 18px; }
.mb-news-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--mb-text); }
.mb-news-big .mb-news-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.mb-news-date { font-size: 12.5px; color: var(--mb-muted); margin-top: 8px; }

@media (max-width: 1024px) {
	.mb-news-grid { grid-template-columns: 1fr 1fr; }
	.mb-news-big { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
	.mb-hero { min-height: 0; }
	.mb-hero-inner { padding-top: 40px; padding-bottom: 32px; }
	.mb-trust { grid-template-columns: 1fr; }
	.mb-trust-item { border-right: 0; border-bottom: 1px solid var(--mb-bg); }
	.mb-news-grid { grid-template-columns: 1fr; }
}

/* ---- Tài sản nổi bật: lưới 2 dòng (tối đa 8 thẻ) thay vì cuộn ngang ---- */
.mb-card-row.mb-card-2r {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	overflow: visible;
	scroll-snap-type: none;
}
.mb-card-2r .mb-home-card { flex: initial; scroll-snap-align: none; min-width: 0; }
@media (max-width: 1024px) { .mb-card-row.mb-card-2r { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mb-card-row.mb-card-2r { grid-template-columns: 1fr; } }

/* ---- Banner ngang trang chủ (giữa Tài sản mới & Tin tức) ---- */
.mb-home-banner { margin-top: 46px; }
.mb-home-banner .mb-rail-slot {
	display: flex; justify-content: center;
	border-radius: 16px; overflow: hidden;
}
.mb-home-banner .mb-rail-slot + .mb-rail-slot { margin-top: 16px; }
.mb-home-banner .mb-rail-slot a { display: block; width: 100%; }
.mb-home-banner .mb-rail-slot img {
	display: block; margin: 0 auto;
	max-width: 100%; width: auto; height: auto; max-height: 340px;
	border-radius: 16px;
}
