/* CPT Dự Án - Frontend Styles */

:root {
	/* Đổi mã màu này cho khớp màu thương hiệu của website nếu cần. */
	--cpt-du-an-accent: #15806a;
	--cpt-du-an-dark: #12161a;
}

.cpt-du-an-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.cpt-du-an-header {
	margin-bottom: 24px;
}

.cpt-du-an-title {
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.cpt-du-an-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-bottom: 40px;
}

.cpt-du-an-col {
	flex: 1 1 0;
	min-width: 280px;
}

.cpt-du-an-col-left {
	flex-basis: 35%;
}

.cpt-du-an-col-right {
	flex-basis: 60%;
}

.cpt-du-an-section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.cpt-du-an-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpt-du-an-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #e5e5e5;
}

.cpt-du-an-info-list li:first-child {
	padding-top: 0;
}

.cpt-du-an-info-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 10px;
	background: rgba( 21, 128, 106, 0.12 );
	background: color-mix( in srgb, var( --cpt-du-an-accent ) 12%, transparent );
	color: var( --cpt-du-an-accent );
}

.cpt-du-an-info-icon svg {
	width: 40px;
	height: 40px;
}

.cpt-du-an-info-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 2px;
}

.cpt-du-an-info-text strong {
	font-weight: 600;
	color: #333;
}

.cpt-du-an-info-text span {
	color: #555;
}

.cpt-du-an-swiper {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	--swiper-theme-color: var( --cpt-du-an-accent );
	--swiper-navigation-size: 20px;
}

.cpt-du-an-swiper .swiper-slide a {
	display: block;
}

.cpt-du-an-swiper .swiper-slide img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.cpt-du-an-swiper .swiper-button-next,
.cpt-du-an-swiper .swiper-button-prev {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.2 );
}

.cpt-du-an-swiper .swiper-pagination-bullet-active {
	background: var( --cpt-du-an-accent );
}

.cpt-du-an-single-thumbnail img {
	width: 100%;
	border-radius: 8px;
	display: block;
}

.cpt-du-an-content {
	line-height: 1.75;
	font-size: 16px;
}

.cpt-du-an-content img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   TRANG DANH SÁCH DỰ ÁN (Archive + Danh Mục)
   ========================================================================== */

.cpt-du-an-archive-hero {
	position: relative;
	overflow: hidden;
	background-color: var( --cpt-du-an-dark ) !important;
	
	color: #fff;
	text-align: center;
	padding: 72px 20px 56px;
	isolation: isolate;
}

.cpt-du-an-archive-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, rgba( 10, 13, 16, 0.88 ), rgba( 10, 13, 16, 0.78 ) );
	z-index: 1;
}

.cpt-du-an-archive-hero-inner {
	position: relative;
	z-index: 2;
}

.cpt-du-an-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 14px;
}

.cpt-du-an-archive-title {
	font-size: 40px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	 color: #fff;
	margin: 0 0 20px;
	line-height: 1.25;
}

.cpt-du-an-archive-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: var( --cpt-du-an-accent );
	margin: 18px auto 0;
}

.cpt-du-an-archive-desc {
	max-width: 620px;
	margin: 0 auto;
	color: rgba( 255, 255, 255, 0.72 );
	line-height: 1.75;
	font-size: 16px;
}

.cpt-du-an-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 28px 20px;
}

.cpt-du-an-filter-item {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid #ddd;
	color: #444;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.cpt-du-an-filter-item:hover,
.cpt-du-an-filter-item.is-active {
	background: var( --cpt-du-an-accent );
	border-color: var( --cpt-du-an-accent );
	color: #fff;
}

.cpt-du-an-archive-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px 64px;
}

.cpt-du-an-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 28px;
}

.cpt-du-an-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.08 );
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cpt-du-an-card:hover {
	transform: translateY( -6px );
	box-shadow: 0 16px 32px rgba( 0, 0, 0, 0.15 );
}

.cpt-du-an-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}

.cpt-du-an-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.cpt-du-an-card:hover .cpt-du-an-card-media img {
	transform: scale( 1.06 );
}

.cpt-du-an-card-noimg {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #e8e8e8, #f5f5f5 );
}

.cpt-du-an-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var( --cpt-du-an-accent );
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.cpt-du-an-card-body {
	padding: 22px 22px 24px;
}

.cpt-du-an-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.cpt-du-an-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.cpt-du-an-card-title a:hover {
	color: var( --cpt-du-an-accent );
}

.cpt-du-an-card-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 16px;
}

.cpt-du-an-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var( --cpt-du-an-accent );
	text-decoration: none;
}

.cpt-du-an-card-link span {
	transition: transform 0.2s ease;
}

.cpt-du-an-card-link:hover span {
	transform: translateX( 4px );
}

.cpt-du-an-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.cpt-du-an-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
	color: #444;
	text-decoration: none;
	font-size: 14px;
}

.cpt-du-an-pagination .page-numbers.current,
.cpt-du-an-pagination .page-numbers:hover {
	background: var( --cpt-du-an-accent );
	border-color: var( --cpt-du-an-accent );
	color: #fff;
}

.cpt-du-an-empty {
	text-align: center;
	padding: 60px 0;
	color: #777;
	font-size: 15px;
}

@media ( max-width: 900px ) {
	.cpt-du-an-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 600px ) {
	.cpt-du-an-grid {
		grid-template-columns: 1fr;
	}

	.cpt-du-an-archive-title {
		font-size: 28px;
	}

	.cpt-du-an-archive-hero {
		padding: 52px 20px 40px;
	}
}

/* Responsive: mobile xếp dọc 2 cột */
@media ( max-width: 768px ) {
	.cpt-du-an-columns {
		flex-direction: column;
		gap: 24px;
	}

	.cpt-du-an-col-left,
	.cpt-du-an-col-right {
		/* flex-direction: column khiến flex-basis điều khiển chiều cao (không phải chiều rộng),
		   gây vòng phụ thuộc kích thước vô định khi kết hợp aspect-ratio trên ảnh slider.
		   Dùng width thay vì flex-basis để tránh lỗi này. */
		flex-basis: auto;
		width: 100%;
	}

	.cpt-du-an-title {
		font-size: 24px;
	}
}
