/* =========================================================================
   Services Listing Pages CSS
   ========================================================================= */

.service_page_hero {
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 120px; /* Offset for fixed header */
}

.hero_sharing {
    background: url('../../image/slide02.png') no-repeat center center/cover;
}

.hero_residential {
    background: url('../../image/slide03.png') no-repeat center center/cover;
}

.hero_commercial {
    background: url('../../image/index_background.jpg') no-repeat center center/cover;
}

.hero_project {
    background: url('../../image/slide01.png') no-repeat center center/cover;
}

.service_page_hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.service_hero_overlay {
    position: relative;
    z-index: 1;
}

.service_hero_overlay h1 {
    font-size: 48px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
}

.projects_section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.projects_container {
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
}

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

.section_title h2 {
    font-size: 36px;
    color: #007567;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
}

.projects_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project_card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project_image_wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: block;
}

.project_image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project_card:hover .project_image_wrapper img {
    transform: scale(1.1);
}

.project_badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D10A11;
    color: #fff;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 600;
}

.project_info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project_info h3 {
    margin-bottom: 10px;
    font-family: "Outfit", sans-serif;
}

.project_info h3 a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s;
}

.project_info h3 a:hover {
    color: #D10A11;
}

.project_location {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.project_location i {
    color: #007567;
    margin-right: 5px;
}

.project_meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.meta_item {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta_item i {
    color: #D10A11;
}

/* Responsive */
@media only screen and (max-width: 1200px) {
    .projects_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .projects_grid {
        grid-template-columns: 1fr;
    }
    
    .service_page_hero {
        margin-top: 0;
        padding-top: 90px;
        height: 250px;
    }
    
    .service_hero_overlay h1 {
        font-size: 32px;
    }
}
