/* Nagawa — component styles cho giai đoạn 4 (trang chủ, lưới, chi tiết). */
.container--narrow {
	width: min(100% - 2 * var(--gutter), 860px);
}

/* ---------- Lưới & card ---------- */
.grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {

.grid--3 { grid-template-columns: repeat(2, 1fr); }

}

@media (min-width: 1024px) {

.grid--3 { grid-template-columns: repeat(3, 1fr); }

}

.card__media {
	display: block;
	overflow: hidden;
	background: var(--color-surface-2);
	aspect-ratio: 4 / 3;
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__img {
	transform: scale(1.04);
}

.card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--color-surface);
}

.card__body {
	padding-top: 10px;
}

/* Tiêu đề card: 14px, thường, màu #484338, line-height 20px (đo trên bản gốc). */
.card__title {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--color-text-alt);
}

/* Bài viết: tiêu đề 16px đậm, màu nhấn (đo trên bản gốc). */
.card--article .card__title {
	font-size: 16px;
	color: var(--color-primary);
}

/* Công trình: tỷ lệ ảnh gần 6:5 (đo trên bản gốc: 402x331). */
.card--project .card__media {
	aspect-ratio: 402 / 331;
}

.card__title a:hover {
	color: var(--color-primary);
}

.card__meta,
.card__date {
	font-size: 12px;
	color: var(--color-muted);
}

.card__excerpt {
	font-size: 13px;
	color: var(--color-text-alt);
}

/* ---------- Trang lưu trữ ---------- */
.archive-head {
	padding: 40px 0 24px;
}

.archive-head h1 {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-primary);
}

.archive-head__desc {
	margin-top: 8px;
	color: var(--color-text-alt);
}

/* ---------- Chi tiết ---------- */
.breadcrumb {
	padding: 16px 0;
	font-size: 14px;
	color: var(--color-text-alt);
}

.breadcrumb a {
	color: var(--color-text-alt);
}

.breadcrumb span {
	margin: 0 6px;
}

.single-head {
	margin-bottom: 24px;
}

.single-head h1 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 8px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 8px;
	margin-bottom: 24px;
}

.gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Nội dung chi tiết: 16px, line-height 30px, màu #264c5d (đo trên bản gốc). */
.entry-content {
	font-size: 16px;
	line-height: 30px;
	color: var(--color-primary);
}

.entry-content img {
	margin-block: 16px;
}

.single-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 10px;
	border: 1px solid var(--color-border);
	font-size: 12px;
}

.page-content {
	padding-block: 40px;
}

.page-content > h1 {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 16px;
}

.contact-branches {
	margin-top: 32px;
}

.contact-branch {
	padding: 16px;
	background: var(--color-surface-2);
}

/* Ảnh và placeholder dùng chung */
.thumb {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--color-surface-2);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumb__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e1e0e0 0%, #c9c8c6 100%);
}

/* ===== Trang chi tiết (theo trang mẫu: khối nội dung 82%, chữ 16px/30px) ===== */
.divdetail {
	width: 82%;
	margin: 0 auto;
	font-size: 16px;
	line-height: 30px;
	color: var(--color-text-alt);
	word-wrap: break-word;
}

.divdetail h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 35px;
	margin: 25px 0 15px;
	color: var(--color-primary);
}

.divdetail h3 {
	font-size: 20px;
	font-weight: 400;
	margin: 15px 0;
	color: var(--color-primary);
}

.divdetail ul li,
.divdetail ol li {
	margin: 0 0 5px 25px;
}

.divdetail figure {
	margin: 10px 0 0;
	text-align: center;
	background: #f7f7f7;
	border: 1px solid #dadada;
}

.divdetail figcaption {
	margin-top: -10px;
	padding: 5px;
	text-align: center;
}

.datepost {
	margin: 6px 0;
	overflow: hidden;
	font-size: 14px;
	color: #84807d;
}

.datepost li {
	float: left;
	margin-right: 10px;
	padding-right: 10px;
	border-right: 1px solid #cccccc;
	list-style: none;
}

.datepost li:last-child {
	border-right: 0;
}

/* ===================== Header một hàng (theo bố cục trang mẫu) ===================== */
.site-header {
	background: #ffffff;
	border-bottom: 0;
	position: sticky;
	top: 0;
	z-index: 200;
}

.site-header__row {
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(100% - 2 * var(--gutter), 1360px);
	margin: 0 auto;
	padding: 6px 0;
	min-height: 70px;
}

.brand-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 22px;
	height: 60px;
	/* padding: 0 18px; */
	border-radius: 6px;
	/* background: linear-gradient(90deg, #0d3a4f 0%, #0a2231 60%, #061420 100%); */
	flex: 0 0 auto;
}

.brand-box .site-logo__img {
	height: 46px;
	width: auto;
	max-width: 200px;
}

/* Nút Menu và danh sách */
.main-menu {
	position: relative;
}

.main-menu__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	color: #000;
	font-size: 16px;
	cursor: pointer;
	padding: 6px 0;
}

.main-menu__burger {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	width: 26px;
}

.main-menu__burger span {
	display: block;
	height: 2px;
	background: #000;
	border-radius: 2px;
}

.main-menu__panel {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 280px;
	padding: 8px 0;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	z-index: 300;
}

.main-menu__panel.is-open {
	display: block;
}

.main-menu__list,
.main-menu__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-menu__list > li > a,
.main-menu__list .sub-menu a {
	display: block;
	padding: 9px 22px;
	font-size: 15px;
	color: #333333;
	line-height: 1.4;
}

.main-menu__list > li > a:hover,
.main-menu__list .sub-menu a:hover {
	color: var(--color-primary);
}

.main-menu__list .menu-item-has-children > a::after {
	content: "›";
	float: right;
	font-size: 18px;
	line-height: 1;
	color: #333333;
}

.main-menu__list .sub-menu {
	display: none;
	padding: 4px 0 6px 14px;
	background: #fafafa;
}

.main-menu__list .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.main-menu__list .menu-item-has-children.is-open > a::after {
	transform: rotate(90deg);
}

/* Ô tìm kiếm: nền trắng, bo góc, viền nhạt, kích thước theo trang mẫu. */
.site-search {
	display: flex;
	align-items: center;
	width: 200px;
	height: 44px;
	padding: 0 14px;
	background: #ffffff;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	flex: 0 0 auto;
}

.site-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	font-size: 14px;
	color: #333333;
	outline: none;
	background: transparent;
}

.site-search button {
	border: 0;
	background: none;
	color: #333333;
	padding: 0;
	cursor: pointer;
	display: flex;
}

/* Hàng icon danh mục: cùng một hàng với các phần còn lại */
.room-nav {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.room-nav__list {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.room-nav__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: #264c5d;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
}

.room-nav__icon {
	display: block;
	width: 36px;
	height: 36px;
	color: #264c5d;
}

.room-nav__icon svg,
.room-nav__icon img {
	width: 36px;
	height: 36px;
}

.room-nav__img {
	display: block;
	object-fit: contain;
}

.site-header__cta {
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (max-width: 1280px) {

.room-nav__list a {
		font-size: 8px;
	}

}

@media (max-width: 1024px) {

.site-header__row {
		flex-wrap: wrap;
		gap: 10px;
	}

.room-nav {
		order: 5;
		width: 100%;
	}

.site-search {
		width: auto;
		flex: 1;
	}

}

@media (max-width: 768px) {

.room-nav {
		display: none;
	}

.site-header__cta {
		display: none;
	}

}

