/**
 * Style riêng cho trang chi tiết dự án (single-project.php) — WebGool child theme.
 *
 * CHỈ chứa style cho các class .lp-* của template dự án. Không định nghĩa
 * lại class .ls-* (đã có trong ls-style.css + Additional CSS của Customizer).
 * Giá trị màu/spacing copy từ ls-style.css (navy #0f2a43, xanh lá accent,
 * vàng #ffd166, divider #e2e8f0, bo góc 12px, font Be Vietnam Pro của site).
 * Không dùng @import chéo giữa các file CSS.
 *
 * Phụ thuộc: ls-style.css đã nạp trên trang này (is_single() đúng với single
 * của CPT project), nên .ls-breadcrumb và .ls-single-body dùng được. Khối
 * ".lp-content" dưới đây chỉ là chữ dự phòng — cùng giá trị với .ls-single-body
 * — để nội dung vẫn đúng nhịp nếu điều kiện enqueue của ls-style.css đổi.
 *
 * Nạp bằng lp_enqueue_project_assets() (xem functions-snippet-project.php),
 * version '1.0.0'. Mỗi lần sửa file này thì bump version +0.0.1 trong hàm
 * enqueue để phá cache tĩnh theo URL của máy chủ.
 */

/* ============ Tokens (copy từ ls-style.css) ============ */
.lp-project {
	--lp-navy: #0f2a43;
	--lp-navy-hover: #16324f;
	--lp-body: #334155;
	--lp-muted: #64748b;
	--lp-border: #e2e8f0;
	--lp-soft: #f8fafc;
	--lp-green: #047857;
	--lp-green-bright: #059669;
	--lp-green-soft: #ecfdf5;
	--lp-green-border: #a7f3d0;
	--lp-gold: #ffd166;
	--lp-link: #2563eb;
}

/* Nới container Astra lên 1280px chỉ trên trang dự án (rule tương tự trong
   ls-style.css chỉ áp cho body.single-post, không áp cho single-project). */
body.single-project #content > .ast-container {
	max-width: 1280px;
}

/* Ép #primary lấy đủ chiều rộng container. */
div#primary.lp-project {
	width: 100%;
}

/* ============ Layout ============ */
.lp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	margin-top: 32px;
	align-items: start;
}
.lp-layout--no-side {
	grid-template-columns: minmax(0, 1fr);
}
.lp-side {
	position: sticky;
	top: 90px;
	align-self: start;
}
.lp-article {
	margin: 0;
}

/* ============ Hero: pill + H1 + dek ============ */
.lp-pill-row {
	margin: 0 0 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lp-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--lp-green-soft);
	border: 1px solid var(--lp-green-border);
	color: var(--lp-green);
	padding: 6px 14px;
	border-radius: 999px;
	line-height: 1.4;
}
.lp-pill--cat {
	background: #eef2f7;
	border-color: #eef2f7;
	color: var(--lp-navy);
}
.lp-title {
	font-size: 48px;
	line-height: 1.1;
	font-weight: 800;
	color: var(--lp-navy);
	margin: 12px 0 16px;
	letter-spacing: -.01em;
}
.lp-dek {
	font-size: 20px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 24px;
}

/* ============ Meta row ============ */
.lp-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-size: 14px;
	color: var(--lp-muted);
	margin: 0 0 24px;
	padding: 14px 0;
	border-top: 1px solid var(--lp-border);
	border-bottom: 1px solid var(--lp-border);
}
.lp-meta-item {
	margin: 0;
}
.lp-meta-label {
	font-weight: 700;
	color: var(--lp-body);
}
.lp-meta-row a {
	color: var(--lp-body);
	font-weight: 600;
	text-decoration: none;
}
.lp-meta-row a:hover {
	color: var(--lp-green);
	text-decoration: underline;
}
.lp-meta-sep {
	color: #cbd5e1;
}

/* ============ Nút bấm ============ */
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}
.lp-btn--primary {
	background: var(--lp-navy);
	color: #fff;
}
.lp-btn--primary:hover {
	background: var(--lp-navy-hover);
	color: #fff;
}
.lp-btn--outline {
	background: #fff;
	border-color: var(--lp-navy);
	color: var(--lp-navy);
}
.lp-btn--outline:hover {
	background: var(--lp-soft);
	color: var(--lp-navy);
}
.lp-btn--gold {
	background: var(--lp-gold);
	color: var(--lp-navy);
}
.lp-btn--gold:hover {
	background: #ffcf5c;
	color: var(--lp-navy);
}
.lp-btn--block {
	width: 100%;
}
.lp-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
}

/* ============ Gallery ============ */
.lp-gallery {
	margin: 0 0 32px;
}
.lp-gallery-hero {
	margin: 0;
}
.lp-gallery-hero img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}
.lp-gallery-hero a:hover img,
.lp-gallery-item a:hover img {
	opacity: .92;
}
.lp-gallery-hero figcaption,
.lp-gallery-item figcaption {
	font-size: 13px;
	color: var(--lp-muted);
	text-align: center;
	margin: 10px 0 0;
}
.lp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}
.lp-gallery-item {
	margin: 0;
}
.lp-gallery-item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

/* ============ Nội dung Gutenberg ============ */
/* Chữ dự phòng — cùng giá trị với .ls-single-body trong ls-style.css. */
.lp-content {
	font-size: 18px;
	line-height: 1.85;
	color: var(--lp-body);
}
.lp-content h2 {
	font-size: 30px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--lp-navy);
	margin: 40px 0 16px;
}
.lp-content h3 {
	font-size: 23px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--lp-navy);
	margin: 32px 0 12px;
}
.lp-content p {
	margin: 0 0 20px;
}
.lp-content ul,
.lp-content ol {
	margin: 0 0 20px;
	padding-left: 24px;
}
.lp-content li {
	margin-bottom: 6px;
}
.lp-content img {
	border-radius: 12px;
}
.lp-content a {
	color: var(--lp-link);
}

/* ============ CTA band cuối bài ============ */
.lp-cta-band {
	background: var(--lp-navy);
	border-radius: 12px;
	padding: 36px 32px;
	margin-top: 48px;
	text-align: center;
}
.lp-cta-band-title {
	font-size: 28px;
	line-height: 1.3;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
}
.lp-cta-band-text {
	font-size: 16px;
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 0 20px;
}

/* ============ Dự án khác ============ */
.lp-related {
	margin-top: 56px;
}
.lp-related-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lp-green);
	margin: 0 0 6px;
}
.lp-related-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--lp-border);
	padding-bottom: 14px;
	margin-bottom: 24px;
}
.lp-related-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--lp-navy);
	margin: 0;
}
.lp-related-all {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}
.lp-related-all:hover {
	text-decoration: underline;
}
.lp-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.lp-rel-card {
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	margin: 0;
}
.lp-rel-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.lp-rel-body {
	padding: 16px;
}
.lp-rel-cat {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lp-green);
	margin: 0 0 8px;
}
.lp-rel-title {
	font-size: 17px;
	line-height: 1.4;
	font-weight: 800;
	margin: 0 0 12px;
}
.lp-rel-title a {
	color: var(--lp-navy);
	text-decoration: none;
}
.lp-rel-title a:hover {
	color: var(--lp-green);
}
.lp-rel-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--lp-muted);
	margin: 0;
}

/* ============ Sidebar: card khách hàng ============ */
.lp-side-card {
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	background: #fff;
	padding: 24px;
}
.lp-side-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--lp-navy);
	margin: 0 0 16px;
}
.lp-client-body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--lp-body);
	overflow-wrap: anywhere;
}
.lp-client-body p {
	margin: 0 0 12px;
}
.lp-client-body p:last-child {
	margin-bottom: 0;
}
.lp-client-body a {
	color: var(--lp-link);
}
.lp-client-card .lp-btn {
	margin-top: 20px;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
	.lp-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.lp-side {
		position: static;
	}
	.lp-title {
		font-size: 34px;
	}
	.lp-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.lp-related-title {
		font-size: 24px;
	}
	.lp-cta-band-title {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.lp-title {
		font-size: 32px;
	}
	.lp-dek {
		font-size: 18px;
	}
	.lp-cta-row {
		flex-direction: column;
	}
	.lp-cta-row .lp-btn {
		width: 100%;
	}
	.lp-gallery-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.lp-cta-band {
		padding: 28px 20px;
	}
	.lp-content h2 {
		font-size: 26px;
	}
}

/* ==========================================================================
   GHI ĐÈ LƯỚI CỦA ASTRA (phòng trường hợp article bị gắn class lưới)
   Template KHÔNG dùng post_class() trên article, nhưng giữ khối này làm
   đai an toàn — cùng cách ls-style.css đã xử lý cho .ls-card/.ls-article
   (23/11/2026): Astra gắn ast-width-md-6 (width 50% + float) khi Blog để
   2 cột. Dùng !important vì quy tắc của Astra có specificity cao hơn.
   ========================================================================== */
.lp-layout .lp-article {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}