/* --- PHẦN CHUNG --- */
.project-archive-title{
	font-size: 34px;
	color: var(--color-chinh);
	text-align: center;
	margin: 30px 0px;
}

.project-detail-wrapper, 
.project-archive-wrapper {
	padding: 0px 0;
	margin-top:30px;
}

.project-detail-container, 
.project-archive-container {
	max-width: 1200px;
	margin: 0 auto;
	margin-bottom:50px;
}

/* --- TRANG CHI TIẾT --- */
.project-main-row {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
	align-items: flex-start;
}

.project-content-column {
	flex: 2;
	min-width: 350px;
}

.project-sidebar-column {
	flex: 1;
	min-width: 320px;
}

.project-section-title {
	font-size: 23px;
	color: #1a1a1a;
	margin-bottom: 28px;
	position: relative;
	padding-left: 20px;
}

.project-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background-color: #FF6B35;
}

.project-entry-content {
	line-height: 1.8;
	color: #000000;
	font-size: 16px;
	font-weight: 300;
}

.project-info-card {
	background: #F8F8F8;
	padding: 20px;
	border-radius: 15px;
	border: 1px solid #efefef;
}

.project-info-card-title {
	margin-top: 0;
	font-size: 22px;
	margin-bottom: 25px;
	color: var(--color-chinh);
}

.project-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.project-info-item {
	display: flex;
	gap: 15px;
	margin-bottom: 25px;
	align-items: flex-start;
}

.project-info-icon {
	flex-shrink: 0;
}

.project-info-label {
	display: block;
	font-size: 16px;
	color: var(--color-black);
	margin-bottom: 4px;
}

.project-info-desc {
	font-size: 14px;
	color: var(--color-black);
	line-height: 1.5;
	display: block;
}

.project-album-section {
	margin-top: 100px;
}

/* --- TRANG ARCHIVE (DANH SÁCH) --- */
.project-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
}

.project-card {
	background: var(--color-white);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-card-media {
	position: relative;
}

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

.project-card-placeholder {
	width: 100%;
	height: 100%;
	background: #eeeeee;
}

.project-card-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #FF6B35;
	color: var(--color-white);
	padding: 4px 15px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.project-card-body {
	padding: 20px;
}

.project-card-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #1a1a1a;
}

.project-card-title a {
	font-size:17px;
	text-decoration: none;
	color: inherit;
	display: -webkit-box;
	-webkit-line-clamp: 2;      /* số dòng tối đa */
	-webkit-box-orient: vertical;

	overflow: hidden;
}

.project-card-location {
	margin: 0 0 20px 0;
	color: #888888;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.project-card-btn {
	color: #FF6B35;
	text-decoration: none;
	font-weight: bold;
	font-size: 13px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.project-card-btn .arrow {
	font-size: 18px;
}

/* CSS cho Album ảnh Gallery */
/* SECTION NỀN TỐI */
.project-album-dark-section {
	background-color: #111111;
	padding: 50px 0;
	margin-top: 40px;
	color: var(--color-white);
}

.album-header {
	text-align: center;
	margin-bottom: 50px;
}

.album-main-title {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 10px;
	color: var(--color-white);
}

.album-subtitle {
	color: #888;
	font-size: 16px;
}

/* GRID LAYOUT BẤT ĐỐI XỨNG */
/* GRID ALBUM - 3 CỘT ĐỀU NHAU */
.project-masonry-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* Ép 3 cột */
	gap: 15px; /* Khoảng cách giữa các ảnh */
	margin-top: 30px;
}

/* ÉP KHUNG ẢNH THÀNH HÌNH VUÔNG */
.gallery-tile {
	position: relative;
	border-radius: 8px; /* Bo góc nhẹ cho đẹp, có thể chỉnh về 0 nếu muốn vuông sắc cạnh */
	overflow: hidden;
	background: #222;
	aspect-ratio: 1 / 1;  /* Ép tỉ lệ 1:1 (Hình vuông) */
}

.gallery-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Giúp ảnh lấp đầy hình vuông mà không bị méo/giãn */
	display: block;
	transition: transform 0.5s ease;
}

.gallery-tile:hover img {
	transform: scale(1.1);
}

/* VÔ HIỆU HÓA CÁC THIẾT LẬP CŨ (Masonry cũ) */
.grid-item-big, 
.project-masonry-grid .gallery-tile:nth-child(2) {
	grid-column: span 1 !important;
	grid-row: span 1 !important;
}

/* ĐÈ LÊN PHẦN CAPTION ĐỂ HIỂN THỊ ĐẸP TRÊN HÌNH VUÔNG */
.tile-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6); /* Nền đen mờ cho chữ dễ đọc */
	color: #fff;
	font-size: 13px;
	padding: 8px;
	text-align: center;
	transform: translateY(100%); /* Ẩn caption đi */
	transition: transform 0.3s ease;
}

.gallery-tile:hover .tile-caption {
	transform: translateY(0); /* Di chuột vào thì hiện caption lên */
}

/* Hiệu ứng lớp phủ tối ở chân ảnh để chữ dễ đọc hơn */
.gallery-tile::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
	pointer-events: none;
}

.custom-project-slider-wrapper { 
	position: relative;
	max-width: 1200px;
}

.slider-main-title { 
	color: var(--color-chinh); 
	font-size: 30px;
	margin-bottom: 20px;
	text-align: center;
}

/* Style cho Card */
.project-card-item { 
	background: #f9f9f9;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
	height: 100%;
	transition: transform 0.3s ease;
}

/* Container Slide */
.swiper-container-news { 
	padding: 10px 15px 40px 15px; 
	overflow: hidden; 
	position: relative; 
}

.project-card-item:hover { 
	transform: translateY(-5px);
}

.card-image img { 
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	border-radius: 20px 20px 0 0;
}

.card-body { 
	padding: 20px;
}

.card-title { 
	font-size: 18px;
	margin-bottom: 12px;
	line-height: 1.4;
	height: 50px;
	overflow: hidden;
}

.card-title a { 
	color: var(--color-black);
	text-decoration: none; 
}

.card-title a:hover { 
	color: var(--color-chinh);
}

.card-excerpt { 
	font-size: 14px; 
	color: #555; 
	line-height: 1.6; 
	margin-bottom: 15px; 
	height: 65px; 
	overflow: hidden; 
}

.card-link-more { 
	color: var(--color-chinh);
	text-decoration: none;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.card-link-more:hover .arrow-icon { 
	transform: translateX(5px);
	transition: 0.3s;
}

/* Nút điều hướng tròn như mẫu */
.swiper-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: var(--color-white);
	border: 1px solid #ddd;
	border-radius: 50%;
	z-index: 10;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.3s;
}

.swiper-nav-btn:hover { 
	background: var(--color-chinh);
	border-color: var(--color-chinh);
}

.swiper-nav-btn svg { 
	width: 24px;
	height: 24px;
	fill: var(--color-black);
}

.swiper-nav-btn:hover svg { 
	fill: var(--color-white);
}

.swiper-button-prev-custom { 
	left: -10px;
}

.swiper-button-next-custom { 
	right: -10px;
}

/* Responsive */
@media (max-width: 992px) {
	.project-masonry-grid {
		grid-template-columns: 1fr 1fr;
	}

	.grid-item-big {
		grid-row: span 1;
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.project-masonry-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 250px;
	}

	.grid-item-big, .project-masonry-grid .gallery-tile:nth-child(2) {
		grid-column: span 1;
	}
}
/* Responsive */
@media (max-width: 768px) {
	.project-main-row {
		gap: 30px;
	}

	.project-detail-wrapper, .project-archive-wrapper {
		padding: 30px 0;
	}

	.swiper-nav-btn { 
		display: none;
	}

	.slider-main-title {
		text-align: center;
		font-size: 23px;
	}
	.project-section-title{
		font-size:22px;
		padding:0px 15px;
	}
	.project-entry-content{
		padding:0px 15px;
	}
	.project-sidebar-column{
		padding:0px 15px;
	}
	.project-masonry-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
	.project-detail-wrapper, .project-archive-wrapper{
		padding:0px;
	}
	.project-album-dark-section{
		padding:0px 15px;
	}
	.album-header{
		margin:0px;
		padding:30px 0px;
	}
	.album-main-title {
		font-size: 30px;
	}
}