/* =============PROJECTS PAGE LIST========== */

/* TOTAL PROJECTS LIST SECTION */
.total-projects-list {
    padding: 5rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
}

/* BLUEPRINT GRID OVERLAY */
.total-projects-list::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(10, 25, 47, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* AMBER HATCH CORNER */
.total-projects-list::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background-image: repeating-linear-gradient(45deg, rgba(243, 156, 18, 0.07) 0px, rgba(243, 156, 18, 0.07) 1px, transparent 1px, transparent 14px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.total-projects-list > * {
    position: relative;
    z-index: 1;
}

.total-projects-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* SECTION HEADER */
.total-projects-list-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.total-projects-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.25);
    color: #9a6208;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.38rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.total-projects-list-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f39c12;
    display: inline-block;
    animation: totalProjectsPulse 2s ease-in-out infinite;
}

@keyframes totalProjectsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.total-projects-list-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.6rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.7px;
}

.total-projects-list-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.total-projects-list-description {
    color: #64748b;
    font-size: 0.95rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* PROJECTS GRID - 4 COLUMNS */
.total-projects-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

/* PROJECT CARD */
.total-projects-list-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.07);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.total-projects-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
}

/* PROJECT IMAGE */
.total-projects-list-image {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.total-projects-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.total-projects-list-card:hover .total-projects-list-image img {
    transform: scale(1.08);
}

/* IMAGE OVERLAY */
.total-projects-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 25, 47, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.total-projects-list-card:hover .total-projects-list-overlay {
    opacity: 1;
}

/* CATEGORY TAG */
.total-projects-list-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.total-projects-list-card:hover .total-projects-list-category {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECT DETAILS */
.total-projects-list-details {
    padding: 1.2rem 1.2rem 1.5rem;
}

.total-projects-list-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.5rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.total-projects-list-card:hover .total-projects-list-name {
    color: #f39c12;
}

.total-projects-list-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

.total-projects-list-location i {
    color: #f39c12;
    font-size: 0.7rem;
}

/* VIEW BUTTON */
.total-projects-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f39c12;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(243, 156, 18, 0.15);
    width: 100%;
}

.total-projects-list-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.total-projects-list-btn:hover {
    color: #e67e22;
    gap: 0.8rem;
}

.total-projects-list-btn:hover i {
    transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .total-projects-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .total-projects-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .total-projects-list-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .total-projects-list {
        padding: 3rem 1rem;
    }
    
    .total-projects-list-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .total-projects-list-title {
        font-size: 1.6rem;
    }
    
    .total-projects-list-image {
        height: 400px;
    }
}