.ser_container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 30px 30px 30px ;
}

.type-service {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    margin-bottom: 95px;
}

.background-image {
    width: 65%;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 35%;
    left: 40%;
    width: calc(60% - 20px);
    height: 280px;
    background-color: #F3A712;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay h1 {
    color: white;
    font-size: 3rem;
    margin: 0;
    width: 100%;
    padding: 0 40px 0 40px;
}

.overlay p {
    width: 100%;
}

.subtype-service {
    width: 113%;
    background-color: #16324F;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    transform: translate(-5%, 0);
}

.services_container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.service_container {
    background-color: #16324F;
    border-radius: 10px;
    width: 32%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.diferent {
    border-radius: 0px;    
}

.service_info {
    height: auto;
    padding: 20px 20px 0 20px;
    text-align: center;
}

.service_info h1 {
    border-bottom: 2px solid #e1b12c;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    color: white;
}

.service_info p {
    height: 75px;
}

.service_detail {
    align-self: flex-end;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    margin-top: 10px;
}

.service_detail_button {
    width: 50%;
    padding: 15px;
    background-color: #F3A712;
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.service_detail_button:hover {
    background-color: #d69106;
}

@media screen and (max-width: 1124px) {
    .ser_container{
        margin-bottom: 20px;
    }
    .service_container {
        width: 30%;
    }
}


@media screen and (max-width: 850px) {
    .ser_container{
        padding: 0px;
        margin-bottom: 20px;
    }
    .service_container {
        width: 40%;
    }
    .overlay h1 {
        font-size: 2.4em;
    }
}

@media screen and (max-width: 578px) {
    .type-service {
        padding: 0;
        margin-bottom: 70px 
    }
    .background-image {
        width: 90%;
        height: 200px;
    }
    .overlay {
        width: 80%;
        height: 200px;
        left: 20%;
        top: 25%;
    }
    .overlay h1 {
        font-size: 1.9em;
    }
    .subtype-service {
        width: 100%;
        transform: translate(0,0);
    }

    .service_container {
        width: 90%;
        max-width: 100%;
    }
}