.services_section {
    padding-top: 50px;
}

.services_taital {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.services_taital:hover {
    color: #17a2b8;

}

.service_box {
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 270px;
    /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distributes space evenly */
}

.service_box.active {
    background-color: #f2f2f2;
}

.service_box:hover {
    transform: translateY(-10px);
}

.house_icon {
    margin-bottom: 20px;
}

.house_icon .image_2 {
    display: none;
}

.service_box:hover .image_1 {
    display: none;
}

.service_box:hover .image_2 {
    display: inline;
}

.corporate_text {
    font-size: 1.25em;
    margin-bottom: 10px;
}

.chunks_text {
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 25px;
    flex-grow: 1;
    /* Allows the text block to expand and fill the available space */
}

.readmore_button a {
    text-decoration: none;
    color: #1458a7;
    transition: color 0.3s ease;
}

.readmore_button a:hover {
    color: #0f3975;
}

.arrow_icon {
    margin-left: 5px;
}

/* Adjust the container to ensure it allows for a flex display */
.services_section_2 .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Adjust the service box to take up one-third of the container width */
.services_section_2 .container .row .col-md-2 {
    flex: 0 0 33.333333%;
    /* Each box takes up one-third of the container */
    max-width: 33.333333%;
    /* Prevents the box from exceeding one-third of the container width */
    padding: 15px;
    /* Adds some spacing around each box */
    box-sizing: border-box;
    /* Ensures padding is included in the width calculation */
}

/* Ensure the row expands to 100% width of its container */
.services_section_2 .container .row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width:950px) {
    .services_section_2 .container .row .col-md-2 {
        flex: 0 0 100%;
        /* Each box takes up the full width of the container */
        max-width: 100%;
        /* Ensures the box does not exceed the container width */
    }
}