/* --- PHẦN CHUNG --- */
.project-detail-wrapper, 
.project-archive-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 60px 0;
}

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

/* --- 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: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 25px;
    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: #444444;
    font-size: 16px;
}

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

.project-info-card-title {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.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;
    margin-top: 4px;
}

.project-info-label {
    display: block;
    font-size: 15px;
    color: #333333;
    margin-bottom: 4px;
}

.project-info-desc {
    font-size: 14px;
    color: #666666;
    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: #ffffff;
    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;
    height: 260px;
}

.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: #ffffff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

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

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

.project-card-title a {
    text-decoration: none;
    color: inherit;
}

.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; /* Nền đen/xám đậm */
    padding: 100px 0;
    margin-top: 80px;
    color: #ffffff;
}

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

.album-main-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

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

/* GRID LAYOUT BẤT ĐỐI XỨNG */
.project-masonry-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Chia cột tỉ lệ */
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Ảnh đầu tiên to bên trái, chiếm 2 hàng */
.grid-item-big {
    grid-row: span 2;
}

/* Ảnh thứ 2 (bên phải trên) chiếm 2 cột */
.project-masonry-grid .gallery-tile:nth-child(2) {
    grid-column: span 2;
}

/* CAPTION ĐÈ LÊN ẢNH */
.tile-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

/* 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;
}

/* 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;
    }
}