/* Projects Page - Image Effects */

/* OLD: Grayscale Effect (KHÔNG DÙNG NỮA)
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap img {
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
*/

/* NEW: Ảnh mờ → Hover sáng lên */
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap img {
    filter: brightness(0.7);
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* Hover: Ảnh gốc sáng lên - KHÔNG BỊ MỜ */
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap:hover img {
    filter: brightness(1.1) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* TẮT overlay đen của Gutenverse khi hover */
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap:hover .caption-wrap,
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap:hover .item-hover-bg {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Overflow để zoom không tràn */
.guten-xDBu89 .gallery-item-wrap .thumbnail-wrap {
    overflow: hidden;
}

/* ========================================
   FILTER MENU - HORIZONTAL SCROLL
   ======================================== */

/* Container wrapper */
.projects-filters-container {
    width: 100%;
}

/* Scrollable filter menu */
.projects-filters-dynamic {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 169, 126, 0.5) transparent;
}

/* Custom scrollbar for Webkit browsers */
.projects-filters-dynamic::-webkit-scrollbar {
    height: 6px;
}

.projects-filters-dynamic::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.projects-filters-dynamic::-webkit-scrollbar-thumb {
    background: rgba(200, 169, 126, 0.5);
    border-radius: 10px;
    transition: background 0.3s;
}

.projects-filters-dynamic::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 169, 126, 0.8);
}

/* Filter buttons hover effect */
.project-filter-btn:hover {
    opacity: 1 !important;
    color: #c8a97e !important;
}

.project-filter-btn.active {
    opacity: 1 !important;
    color: #c8a97e !important;
    position: relative;
}

/* Active indicator */
.project-filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #c8a97e;
}

/* ========================================
   DYNAMIC PROJECTS - OVERLAY HIỂN THỊ → HOVER ẨN
   ======================================== */

/* Grid layout */
.projects-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

/* Individual project item */
.project-item-dynamic {
    display: block;
    transition: all 0.3s ease;
}

/* Card container */
.project-card-dynamic {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.4s ease;
}

/* Ảnh GỐC SÁNG khi bình thường */
.project-image-dynamic {
    position: relative;
}

.project-image-dynamic img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1) !important;
    transition: all 0.4s ease;
}

/* Hover: ẢNH TỐI + Zoom */
.project-card-dynamic:hover .project-image-dynamic img {
    filter: brightness(0.4) !important;
    transform: scale(1.05);
}

/* ẨN OVERLAY khi KHÔNG hover (default) */
.project-content-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 25px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.4s ease;
    text-align: center;
}

/* Hover: HIỆN OVERLAY */
.project-card-dynamic:hover .project-content-dynamic {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* DESIGN TEXT - Hiển thị khi HOVER (giống ảnh mẫu) */
.project-title-dynamic {
    margin: 0 !important;
    padding-bottom: 15px !important;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffffff !important;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    position: relative;
}

/* Đường gạch dưới NGẮN HƠN */
.project-title-dynamic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
}

.project-categories-dynamic {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.project-categories-dynamic .category-badge {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ẨN excerpt - không cần hiển thị */
.project-excerpt-dynamic {
    display: none !important;
}

/* Gradient placeholder - Giữ nguyên độ sáng */
.project-image-dynamic > div {
    filter: none;
    transition: all 0.4s ease;
}

.project-card-dynamic:hover .project-image-dynamic > div {
    transform: scale(1.05);
}

/* ========================================
   PROJECT FIELD ITEMS (Individual Shortcodes)
   ======================================== */

.project-field-item {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
}

.project-field-icon {
    flex-shrink: 0 !important;
    padding-top: 3px !important;
}

.project-field-icon svg {
    display: block !important;
}

.project-field-content {
    flex: 1 !important;
}

.project-field-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #1a1a1a !important;
    margin-bottom: 5px !important;
}

.project-field-value {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

/* ========================================
   PROJECT INFO SECTION - 2 CỘT LAYOUT
   ======================================== */

.project-info-section {
    padding: 60px 0 !important;
    width: 100% !important;
}

.project-info-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* LEFT COLUMN */
.project-info-left {
    padding-right: 20px !important;
    width: 100% !important;
}

.project-info-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.project-info-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.project-info-description p {
    margin-bottom: 15px;
}

/* INFO GRID - 2 columns */
.project-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px 40px !important;
}

.project-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.project-info-icon {
    flex-shrink: 0;
    color: #c8a97e;
    padding-top: 3px;
}

.project-info-icon svg {
    display: block;
}

.project-info-content {
    flex: 1;
}

.project-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.project-info-value {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* RIGHT COLUMN */
.project-info-right {
    position: relative !important;
    width: 100% !important;
}

.project-info-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
}

.project-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* VIDEO BUTTON */
.project-info-video-btn {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.project-info-video-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    padding-left: 35px;
}

.video-play-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-play-icon svg {
    margin-left: 3px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project-info-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-info-left {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-info-video-btn {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .video-play-icon {
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   RECENT PROJECTS FOOTER - 6 DỰ ÁN MỚI NHẤT
   ======================================== */

.recent-projects-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.recent-project-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.recent-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover: Ảnh tối + zoom */
.recent-project-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Overlay khi hover */
.recent-project-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.recent-project-item:hover::after {
    opacity: 1;
}

/* Icon arrow/plus trong circle */
.recent-project-item::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.recent-project-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-projects-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .recent-projects-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

