/* ==========================================================================
   Trang CHI TIẾT Dự án (single featured_item) — clone giao diện trang chi tiết
   dự án nahaki.com.vn (mẫu /du-an-bep-nha-hang-jako-shushi/).
   TẤT CẢ rule scope dưới body.vhm-portfolio-single để không ảnh hưởng nơi khác.

   Bố cục: HERO 2 cột (slider ảnh | thông tin + cam kết) → mô tả → dự án liên quan.
   Bảng màu đồng bộ theo Flatsome: đỏ/cam = var(--fs-color-secondary) · xanh = var(--fs-color-primary).
   ========================================================================== */

.vhm-portfolio-single .nahaki-project__container {
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ----- Breadcrumb ----- */
.vhm-portfolio-single .nahaki-project__breadcrumb {
	font-size: 14px;
	color: #777;
	padding: 16px 0 18px;
}
.vhm-portfolio-single .nahaki-project__breadcrumb a {
	color: var(--fs-color-secondary);
	font-weight: 600;
}
.vhm-portfolio-single .nahaki-project__breadcrumb a:hover { text-decoration: underline; }
.vhm-portfolio-single .nahaki-project__breadcrumb .sep { margin: 0 8px; color: #bbb; }

/* ===================== HERO 2 CỘT ===================== */
.vhm-portfolio-single .nahaki-project__hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 34px;
	align-items: start;
	margin-bottom: 36px;
}

/* ----- TRÁI: slider thư viện ảnh ----- */
.vhm-portfolio-single .nahaki-project__slider {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 26px rgba(0, 0, 0, 0.12);
}
.vhm-portfolio-single .nahaki-project__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #f3f4f6;
}
.vhm-portfolio-single .nahaki-project__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
	cursor: zoom-in;
}
.vhm-portfolio-single .nahaki-project__slide.is-active {
	opacity: 1;
	visibility: visible;
}
.vhm-portfolio-single .nahaki-project__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Nút mũi tên prev/next */
.vhm-portfolio-single .nahaki-project__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--fs-color-primary);
	font-size: 17px;
	line-height: 1;
	box-sizing: border-box;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, color 0.2s ease;
}
.vhm-portfolio-single .nahaki-project__arrow:hover { background: var(--fs-color-secondary); color: #fff; }
.vhm-portfolio-single .nahaki-project__arrow--prev { left: 12px; }
.vhm-portfolio-single .nahaki-project__arrow--next { right: 12px; }

/* Chấm điều hướng */
.vhm-portfolio-single .nahaki-project__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	z-index: 2;
}
.vhm-portfolio-single .nahaki-project__dot {
	flex: 0 0 11px;
	width: 11px;
	height: 11px;
	min-width: 0;
	min-height: 0;
	max-width: 11px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}
.vhm-portfolio-single .nahaki-project__dot:hover { background: rgba(255, 255, 255, 0.9); }
.vhm-portfolio-single .nahaki-project__dot.is-active { background: var(--fs-color-secondary); }

/* ----- PHẢI: tiêu đề + thông tin + cam kết ----- */
.vhm-portfolio-single .nahaki-project__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	text-transform: uppercase;
	margin: 0 0 20px;
}

/* Danh sách thông tin: [icon] [nhãn] [giá trị] */
.vhm-portfolio-single .nahaki-project__info {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.vhm-portfolio-single .nahaki-project__info-item {
	display: grid;
	grid-template-columns: 40px 120px 1fr;
	align-items: start;
	gap: 14px;
	padding: 12px 0;
}
.vhm-portfolio-single .nahaki-project__info-item + .nahaki-project__info-item {
	border-top: 1px solid #eee;
}
.vhm-portfolio-single .nahaki-project__info-ico {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vhm-portfolio-single .nahaki-project__info-ico svg {
	width: 26px;
	height: 26px;
	fill: #333;
}
.vhm-portfolio-single .nahaki-project__info-label {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	padding-top: 6px;
}
.vhm-portfolio-single .nahaki-project__info-value {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
	padding-top: 6px;
}

/* Box cam kết: header đỏ + thân xanh */
.vhm-portfolio-single .nahaki-project__commit {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.vhm-portfolio-single .nahaki-project__commit-head {
	background: var(--fs-color-secondary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.03em;
	padding: 11px 14px;
}
.vhm-portfolio-single .nahaki-project__commit-list {
	list-style: none;
	margin: 0;
	padding: 14px 18px;
	background: var(--fs-color-primary);
}
.vhm-portfolio-single .nahaki-project__commit-list li {
	position: relative;
	padding: 6px 0 6px 28px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #fff;
}
.vhm-portfolio-single .nahaki-project__commit-list li:before {
	content: "✔";
	position: absolute;
	left: 0;
	top: 6px;
	color: #fff;
	font-weight: 700;
}

/* ===================== NỘI DUNG MÔ TẢ ===================== */
.vhm-portfolio-single .nahaki-project__content {
	font-size: 16px;
	line-height: 1.8;
	color: #2b2b2b;
	margin-bottom: 44px;
}
.vhm-portfolio-single .nahaki-project__content h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--fs-color-secondary);
	margin: 26px 0 14px;
}
.vhm-portfolio-single .nahaki-project__content h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--fs-color-primary);
	margin: 22px 0 10px;
}
.vhm-portfolio-single .nahaki-project__content p { margin: 0 0 16px; }
.vhm-portfolio-single .nahaki-project__content ul {
	margin: 0 0 16px;
	padding-left: 22px;
}
.vhm-portfolio-single .nahaki-project__content ul li { margin-bottom: 6px; list-style: disc; }
.vhm-portfolio-single .nahaki-project__content img {
	display: block;
	width: 100%;
	margin: 20px auto;
	border-radius: 8px;
	height: auto;
}

/* ----- Lightbox (mở ảnh phóng to) ----- */
.nahaki-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}
.nahaki-lightbox.is-open { opacity: 1; visibility: visible; }
.nahaki-lightbox__img {
	max-width: 92vw;
	max-height: 86vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.nahaki-lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.nahaki-lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); }
.nahaki-lightbox__btn--prev { left: 24px; }
.nahaki-lightbox__btn--next { right: 24px; }
.nahaki-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.nahaki-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

/* ===================== DỰ ÁN LIÊN QUAN ===================== */
.vhm-portfolio-single .nahaki-project-related {
	padding: 14px 0 48px;
}
.vhm-portfolio-single .nahaki-project-related__head {
	margin-bottom: 22px;
}
.vhm-portfolio-single .nahaki-project-related__head h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	text-transform: uppercase;
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #e3e3e3;
}
.vhm-portfolio-single .nahaki-project-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.vhm-portfolio-single .nahaki-project-related__item {
	display: block;
	height: 100%;
}
.vhm-portfolio-single .nahaki-project-related__thumb {
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}
.vhm-portfolio-single .nahaki-project-related__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.45s ease;
}
.vhm-portfolio-single .nahaki-project-related__item:hover .nahaki-project-related__thumb img {
	transform: scale(1.07);
}
.vhm-portfolio-single .nahaki-project-related__thumb-ph {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e9edf3;
}
.vhm-portfolio-single .nahaki-project-related__name {
	margin: 12px 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
	transition: color 0.2s ease;
}
.vhm-portfolio-single .nahaki-project-related__item:hover .nahaki-project-related__name {
	color: var(--fs-color-secondary);
}
.vhm-portfolio-single .nahaki-project-related__excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #777;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 849px) {
	.vhm-portfolio-single .nahaki-project__hero {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.vhm-portfolio-single .nahaki-project-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.vhm-portfolio-single .nahaki-project__title { font-size: 22px; }
}

@media (max-width: 549px) {
	.vhm-portfolio-single .nahaki-project-related__grid { grid-template-columns: 1fr; }
	.vhm-portfolio-single .nahaki-project__info-item {
		grid-template-columns: 32px 1fr;
		gap: 8px 10px;
	}
	.vhm-portfolio-single .nahaki-project__info-value { grid-column: 2; padding-top: 0; }
	.vhm-portfolio-single .nahaki-project__info-label { padding-top: 4px; }
	.nahaki-lightbox__btn--prev { left: 10px; }
	.nahaki-lightbox__btn--next { right: 10px; }
}
