.services_s {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
    background-color: #003368;
    width: 100%;
    max-width: none;

}

.services-container_s {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: center;
}

.service-card_s {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.texts_s {
    padding: 40px;
}

.texts_s h2 {
    font-size: 52px;
    color: white;
}

.texts_s p {
    font-size: 19px;
    color: white;
}

.service-card_s img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.overlay-services_s {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    padding-bottom: 20px;
    margin: 0px;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease;
}

.service-card_s:hover .overlay-services_s {
    background-color: rgba(0, 0, 0, 0);
}

.overlay-services_s img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
}

.service-card_s h3 {
    margin: 5px 0 0;
    font-size: 26px;
}

.service-card_s {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-in-out;
}

.service-card_s.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {

    .texts_s h2 {
        font-size: 42px;
    }

    .services-container_s {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card_s {
        height: 380px;
    }

    .overlay-services_s img {
        width: 60px;
    }

    .overlay-services_s h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {


    .texts_s h2 {
        font-size: 32px;
    }

    .services-container_s {
        grid-template-columns: 1fr;
    }

    .service-card_s {
        height: 320px;
    }

    .overlay-services_s img {
        width: 50px;
    }

    .overlay-services_s h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {


    .texts_s h2 {
        font-size: 26px;
    }

    .overlay-services_s img {
        width: 40px;
    }

    .overlay-services_s h3 {
        font-size: 18px;
    }
}