/* Services Section Styles */
.services-section {
    background-color: #004A23;
    padding: 110px 0;
}

.services-section .container {
    max-width: 1344px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 auto;
}

.service-card {
    background-color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    height: 336px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}


.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(192, 151, 54, 0.2);
    border-color: rgba(192, 151, 54, 0.3);
}

.service-icon {
    width: 116px;
    height: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.service-icon img {
    height: 100px;
}

[alt="Mise en pension"] {
    height: 85px !important;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card:hover .service-icon svg {
    transform: rotate(5deg);
}

.service-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    z-index: 2;
    position: relative;
}

.service-underline {
    width: 50px;
    height: 2.5px;
    background-color: #C19736;
    margin-bottom: 26px;
    transition: all 0.3s ease;
    position: relative;
}

.service-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #004A23;
    transition: width 0.3s ease;
}

.service-card:hover .service-underline {
    width: 70px;
    background-color: #004A23;
}

.service-card:hover .service-underline::after {
    width: 100%;
}

.service-title {
    font-size: 29px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    font-family: 'Cormorant Infant';
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0 25px;
}

.service-card:hover .service-title {
    color: #C19736;
}

/* Responsive Design */

@media (max-width: 768px) {
    .services-section {
        padding: 40px 0;
        background: url(/assets/default/img/services-bg.jpg);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0;
    }

    .service-card {
        height: 170px;
        padding: 20px 10px;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(192, 151, 54, 0.15);
    }

    .service-card:hover .service-icon {
        transform: scale(1.05);
    }

    .service-card:hover .service-underline {
        width: 40px;
    }

    .service-icon {
        width: 70px;
        height: 60px;
    }

    .service-icon img {
        width: 61px;
        height: 61px;
    }

    .service-title {
        font-size: 17px;
        padding: 0 15px;
    }

    .service-content {
        margin-top: 15px;
    }

    .service-underline {
        height: 2px;
        width: 30px;
        margin-bottom: 15px;
    }
}


@media (max-width: 360px) {
    .service-title{
        padding: 0 0px;
        /* font-size: 15px; */
    }
}