/* People Page - Partners & Clients Custom Styles */

/* Style for h3 subheadings in clients section */
.page-content .people-arg section#clients h3 {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
    display: inline-block;
}

.page-content .people-arg section#clients h3:first-of-type {
    margin-top: 20px;
}

/* Fix Featured Clients to match Suppliers layout */
.page-content .people-arg section#clients ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.page-content .people-arg section#clients ul li.item {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    margin: 20px 0 !important;
    padding: 0 10px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.page-content .people-arg section#clients ul li.item img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Featured Projects Section */
.featured-projects {
    text-align: center;
}

.featured-projects h2 {
    color: #E30613 !important;
    font-size: 36px !important;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-projects p {
    font-size: 22px;
    color: #454545;
    max-width: 80%;
    margin: 10px auto 20px;
}

.featured-projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-projects .project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.featured-projects .project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
}

.featured-projects .project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(237, 7, 19, 0.18), 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(237, 7, 19, 0.4);
}

.featured-projects .project-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.featured-projects .project-card:hover img {
    transform: scale(1.05);
}

.featured-projects .project-card .project-info {
    padding: 1.5rem;
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.featured-projects .project-card h4 {
    font-size: 1.0625rem;
    color: #0a0e14;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1200px) {
    .page-content .people-arg section#clients h3 {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .page-content .people-arg section#clients ul li.item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    
    /* Featured Projects Tablet */
    .featured-projects {
        padding: 5rem 0 6rem !important;
    }
    
    .featured-projects h2 {
        font-size: 30px !important;
    }
    
    .featured-projects p {
        font-size: 18px;
        width: 100%;
        padding: 0 15px;
    }
    
    .featured-projects-container {
        padding: 0 15px !important;
    }
    
    .featured-projects .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .featured-projects .project-card img {
        aspect-ratio: 9 / 16;
    }
    
    .featured-projects .project-card {
        height: auto;
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .page-content .people-arg section h3 {
        font-size: 20px;
        letter-spacing: 1.5px;
        margin: 30px 0 20px 0;
        padding-bottom: 10px;
    }
    
    .page-content .people-arg section#clients h3 {
        border-bottom: 2px solid #000;
    }
    
    /* Fix ALL sections (suppliers AND clients) on mobile */
    .page-content .people-arg section ul {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 10px 5px !important;
        gap: 0 !important;
    }
    
    .page-content .people-arg section ul li,
    .page-content .people-arg section ul li.item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        margin: 10px 0 !important;
        padding: 0 5px !important;
    }
    
    .page-content .people-arg section ul li img,
    .page-content .people-arg section ul li.item img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Featured Projects Mobile */
    .featured-projects {
        padding: 3rem 0 4rem !important;
    }
    
    .featured-projects h2 {
        font-size: 26px !important;
    }
    
    .featured-projects p {
        font-size: 14px;
        width: 100%;
        padding: 0 15px;
    }
    
    .featured-projects-container {
        padding: 0 15px !important;
    }
    
    .featured-projects .project-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 2rem !important;
    }
    
    .featured-projects .project-card img {
        aspect-ratio: 9 / 16;
    }
    
    .featured-projects .project-card {
        height: auto;
    }
    
    .featured-projects .project-card .project-info {
        padding: 0.75rem;
    }
    
    .featured-projects .project-card h4 {
        font-size: 0.875rem;
    }
    
    .featured-projects .project-card:hover {
        transform: none;
    }
}
