/* Trang chi tiết dự án: banner lớn, thẻ thông số, tổng quan + cột tư vấn, thư viện ảnh, dự án khác. */
.qpj-bar { display: block; width: 60px; height: 5px; margin-bottom: 18px; background: var(--qe-red); }
.qpj-h2 { margin: 0 0 28px; font-size: 34px; line-height: 1.2; text-transform: uppercase; }

/* ---------- Banner ---------- */
.qpj-hero { position: relative; display: flex; align-items: flex-end; min-height: 640px; overflow: hidden; color: #fff; background: #0a2f6b; }
.qpj-hero__bg { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.05); animation: qpj-zoom 12s ease-out forwards; }
@keyframes qpj-zoom { to { transform: scale(1); } }
.qpj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 30, 72, .96) 0%, rgba(10, 47, 107, .78) 42%, rgba(10, 47, 107, .35) 100%), linear-gradient(90deg, rgba(8, 30, 72, .65) 0%, rgba(8, 30, 72, 0) 70%); }
.qpj-hero__in { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 150px; }
.qpj-hero .qmt-crumbs { margin-bottom: 26px; color: rgba(255, 255, 255, .7); }
.qpj-hero .qmt-crumbs a { color: #fff; }
.qpj-hero .qmt-crumbs a:hover { color: #ff8a8c; }
.qpj-hero .qmt-crumbs > :last-child { color: rgba(255, 255, 255, .7); }
.qpj-hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--qe-red); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qpj-hero__title { max-width: 980px; margin: 22px 0 0; color: #fff; font-size: 58px; line-height: 1.08; text-transform: uppercase; }
.qpj-hero__lead { max-width: 720px; margin: 22px 0 0; color: rgba(255, 255, 255, .88); font-size: 18px; line-height: 1.65; }
.qpj-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.qpj-btn-ghost { display: inline-flex; align-items: center; padding: 0 26px; min-height: 50px; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; }
.qpj-btn-ghost:hover { border-color: #fff; background: #fff; color: var(--qe-blue); }

/* ---------- Thẻ thông số đè lên banner ---------- */
.qpj-facts-wrap { position: relative; z-index: 2; margin-top: -84px; }
.qpj-facts { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); margin: 0; padding: 0; list-style: none; background: #fff; box-shadow: 0 24px 50px rgba(8, 30, 72, .16); border-top: 4px solid var(--qe-red); }
.qpj-facts li { display: flex; align-items: center; gap: 16px; padding: 30px 28px; }
.qpj-facts li + li { border-left: 1px solid #e6e9ee; }
.qpj-facts__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #eef3fb; color: var(--qe-blue); }
.qpj-facts__ic svg { width: 24px; height: 24px; }
.qpj-facts small { display: block; margin-bottom: 4px; color: #6b7280; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.qpj-facts b { display: block; color: #111827; font-size: 19px; line-height: 1.3; }

/* ---------- Tổng quan + cột tư vấn ---------- */
.qpj-body { padding: 90px 0 70px; }
.qpj-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.qpj-body__main .qmt-prose { font-size: 17px; }
.qpj-body__main .qmt-prose > :first-child { margin-top: 0; }
.qpj-body__main .qmt-prose h2 { margin-top: 1.6em; padding-left: 16px; border-left: 4px solid var(--qe-blue); font-size: 24px; }
.qpj-aside { position: sticky; top: 130px; display: grid; gap: 20px; }
.qpj-card { padding: 30px 28px; background: #f3f5f8; }
.qpj-card h3 { margin: 0 0 18px; font-size: 20px; text-transform: uppercase; }
.qpj-card dl { display: grid; margin: 0; }
.qpj-card dt { color: #6b7280; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.qpj-card dd { margin: 4px 0 0; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #dfe3ea; color: #111827; font-weight: 600; }
.qpj-card dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.qpj-card dd a { color: var(--qe-blue); }
.qpj-card--cta { background: linear-gradient(rgba(10, 47, 107, .93), rgba(10, 47, 107, .96)), url(../img/hero/e-slide-1.jpg) center / cover; color: rgba(255, 255, 255, .88); }
.qpj-card--cta h3 { color: #fff; }
.qpj-card--cta p { margin: 0 0 22px; }
.qpj-card--cta .qmt-btn { width: 100%; justify-content: center; }
.qpj-card__tel { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 700; font-size: 18px; }
.qpj-card__tel:hover { background: #fff; color: var(--qe-blue); }
.qpj-card__tel svg { width: 18px; height: 18px; }

/* ---------- Thư viện ảnh ---------- */
.qpj-gallery { padding: 20px 0 90px; }
.qpj-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; }
.qpj-gallery__item { position: relative; display: block; overflow: hidden; background: #e5e7eb; }
.qpj-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.qpj-gallery__item::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 47, 107, .55); color: #fff; font-size: 44px; font-weight: 300; opacity: 0; transition: opacity .3s; }
.qpj-gallery__item:hover img { transform: scale(1.06); }
.qpj-gallery__item:hover::after { opacity: 1; }
.qpj-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.qpj-gallery__grid--1 { grid-template-columns: 1fr; grid-auto-rows: 520px; }
.qpj-gallery__grid--1 .qpj-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.qpj-gallery__grid--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 400px; }
.qpj-gallery__grid--2 .qpj-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.qpj-gallery__grid--3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 240px; }
.qpj-gallery__grid--3 .qpj-gallery__item:first-child { grid-column: auto; }

/* Lightbox */
.qpj-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(5, 15, 35, .94); }
.qpj-lb[hidden] { display: none; }
.qpj-lb img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.qpj-lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; min-height: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.qpj-lb button:hover { background: var(--qe-red); border-color: var(--qe-red); }
.qpj-lb__close { top: 22px; right: 22px; }
.qpj-lb__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.qpj-lb__next { right: 22px; top: 50%; transform: translateY(-50%); }
.qpj-lb__count { position: absolute; bottom: 22px; left: 50%; color: rgba(255, 255, 255, .8); font-size: 14px; transform: translateX(-50%); }

/* ---------- Dự án khác ---------- */
.qpj-more { padding: 80px 0 90px; background: linear-gradient(rgba(12, 71, 160, .92), rgba(10, 47, 107, .95)), url(../img/hero/e-slide-2.jpg) center / cover; color: #fff; }
.qpj-more .qpj-h2 { color: #fff; }
.qpj-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.qpj-more__all { margin-bottom: 30px; color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.qpj-more__all:hover { color: #ffb3b4; }
.qpj-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qpj-more__card { display: flex; flex-direction: column; background: #fff; color: #111827; transition: transform .3s, box-shadow .3s; }
.qpj-more__card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.qpj-more__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f5; }
.qpj-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.qpj-more__card:hover .qpj-more__img img { transform: scale(1.06); }
.qpj-more__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.qpj-more__body small { color: var(--qe-red); font-weight: 700; }
.qpj-more__body b { flex: 1; font-size: 18px; line-height: 1.4; }
.qpj-more__body i { color: var(--qe-blue); font-style: normal; font-weight: 600; }
.qpj-more__body i::after { content: " →"; }

/* ---------- Tablet / điện thoại ---------- */
@media (max-width: 1100px) {
	.qpj-body__grid { grid-template-columns: 1fr; gap: 40px; }
	.qpj-aside { position: static; grid-template-columns: 1fr 1fr; }
	.qpj-facts { grid-template-columns: 1fr 1fr; }
	.qpj-facts li:nth-child(3) { border-left: 0; }
	.qpj-facts li:nth-child(n + 3) { border-top: 1px solid #e6e9ee; }
}
@media (max-width: 760px) {
	.qpj-h2 { font-size: 26px; }
	.qpj-hero { min-height: 520px; }
	.qpj-hero__in { padding-top: 32px; padding-bottom: 110px; }
	.qpj-hero__title { font-size: 32px; }
	.qpj-hero__lead { font-size: 16px; }
	.qpj-hero__btns .qmt-btn, .qpj-btn-ghost { width: 100%; justify-content: center; }
	.qpj-facts-wrap { margin-top: -64px; }
	.qpj-facts li { padding: 20px 16px; gap: 12px; }
	.qpj-facts__ic { width: 42px; height: 42px; }
	.qpj-facts b { font-size: 16px; }
	.qpj-body { padding: 56px 0 40px; }
	.qpj-aside { grid-template-columns: 1fr; }
	.qpj-gallery__grid, .qpj-gallery__grid--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
	.qpj-gallery__grid--1, .qpj-gallery__grid--2 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.qpj-gallery__grid .qpj-gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
	.qpj-gallery__grid--1 .qpj-gallery__item:first-child, .qpj-gallery__grid--2 .qpj-gallery__item:first-child { grid-column: auto; }
	.qpj-more { padding: 56px 0 60px; }
	.qpj-more__head { flex-wrap: wrap; }
	.qpj-more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.qpj-facts li { flex-direction: column; align-items: flex-start; gap: 10px; }
	.qpj-facts__ic { width: 38px; height: 38px; }
	.qpj-facts__ic svg { width: 19px; height: 19px; }
	.qpj-facts small { font-size: 11.5px; }
	.qpj-body__main .qmt-prose { font-size: 16px; }
	.qpj-body__main .qmt-prose h2 { font-size: 20px; }
}
