/**
 * All Projects Page Styles
 * Template: template-all-projects.php
 */

/* ============================================
   PAGE HEADER
   ============================================ */
   .project-bg {
    height: 250px;
    background-size: cover;
}
/**
 * All Projects Page Styles
 * Template: template-all-projects.php
 * Style: Image overlay cards (like reference image)
 */

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header-projects {
    margin-bottom: 0;
}

.page-header-projects .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.page-header-projects .project-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.page-header-projects .project-count strong {
    color: #00b14f;
    font-weight: 700;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.project-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item.filter-search {
    flex: 2;
    min-width: 250px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #00b14f;
    box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.1);
}

.filter-submit,
.filter-reset {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.filter-submit {
    background: linear-gradient(135deg, #00b14f 0%, #00a046 100%);
    color: #fff;
}

.filter-submit:hover {
    background: linear-gradient(135deg, #00a046 0%, #008f3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.3);
}

.filter-reset {
    background: #6c757d;
    color: #fff;
}

.filter-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ============================================
   PROJECT CARD - OVERLAY STYLE
   ============================================ */
.projects-grid {
    margin-bottom: 40px;
}

.projects-grid .col {
    margin-bottom: 30px;
}

.project-card-overlay {
    display: block;
    text-decoration: none;
    color: #fff;
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.project-card-overlay:hover .project-bg {
    transform: scale(1.08);
}

/* Gradient Overlay - Đậm hơn để text dễ đọc */
.project-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: background 0.3s ease;
    z-index: 1;
}

.project-card-overlay:hover .project-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Content Overlay */
.project-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-card-overlay:hover .project-overlay-content {
    transform: translateY(-8px);
}

.project-overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-overlay-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 12px 0;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-overlay-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.project-overlay-location i {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-projects-found {
    text-align: center;
    padding: 60px 20px;
}

.no-projects-found .alert {
    display: inline-block;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 500px;
}

.no-projects-found i {
    font-size: 48px;
    color: #17a2b8;
    margin-bottom: 15px;
    display: block;
}

.no-projects-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #00b14f;
    color: #fff;
    border-color: #00b14f;
}

.pagination .current {
    background: #00b14f;
    color: #fff;
    border-color: #00b14f;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header-projects {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 25px;
    }

    .page-header-projects .page-title {
        font-size: 26px;
    }

    .projects-grid .col {
        margin-bottom: 25px;
    }

    .project-card-overlay {
        min-height: 280px;
    }

    .project-overlay-title {
        font-size: 20px;
    }

    .project-overlay-desc {
        font-size: 14px;
    }

    .project-overlay-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .page-header-projects .page-title {
        font-size: 22px;
    }

    .page-header-projects .project-count {
        font-size: 14px;
    }

    .projects-grid .col {
        margin-bottom: 20px;
            padding: 0 6px 30px;
    }

    .project-card-overlay {
        min-height: 200px;
    }

    .project-overlay-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .project-overlay-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .project-overlay-location {
        font-size: 13px;
    }

    .project-overlay-content {
        padding: 20px;
    }
}