.service_grid_4 {
    background: linear-gradient(to bottom, var(--accent) -500%, var(--dark-bkgd) 25%, var(--dark-bkgd) 75%, var(--accent-rgb) 120%);
    background-color: var(--dark-bkgd);
    padding-bottom: 125px;

}

.service_grid_4 .content_div {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service_grid_4 .content_div .content_container {
    margin-bottom: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.service_grid_4 h2 {
    color: var(--accent);
    max-width: 600px;
}

.service_grid_4 p {
    color: var(--light-text);
}

.service_grid_4 .repeater {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    column-gap: 35px;
    row-gap: 55px;
    justify-content: center;
    margin-bottom: 55px;
}


.service_grid_4 .repeater .item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: space-between;
    border-radius: var(--button-radius);
    height: 500px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: 0.3s;
    overflow: hidden;
    border: 2px solid var(--accent);
}

.service_grid_4 .repeater .item:hover {
    transform: scale(1.025);
    box-shadow: var(--shadow);

    span {
        text-decoration: none;
    }
}

.service_grid_4 .repeater .item .excerpt {
    padding-right: 20px;
    padding-left: 20px;
    text-align: center;
    color: var(--light-text);
    text-shadow: var(--shadow);
}

.service_grid_4 .repeater .image {
    width: 100%;
    object-fit: contain;
    max-width: 90px;
    margin-bottom: 15px;
}

.service_grid_4 .repeater h3 {
    color: var(--dark-text);
     font-size: 1.2rem;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-bottom: 20px;
    text-align: center;
    background-color: var(--accent);
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content:  center;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;
}

.service_grid_4 .repeater .item {
    text-decoration: none;
}

.service_grid_4 .repeater .item span {
    text-align: center;
    padding-bottom: 20px;
    text-decoration: underline;
    color: var(--light-text);
    text-shadow: var(--shadow);
    font-size: 1.3rem;
}

.service_grid_4 .repeater .primary_button {
position: absolute;
bottom: 25px;
left: 25px;
    max-width: 50%;

}

@media (max-width: 1280px)
{


.service_grid_4 .repeater {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
}
}

@media (max-width: 992px)
{
    .service_grid_4 .repeater {
        display: flex;
        flex-direction: column;
        row-gap: 65px;
        margin-top: 0px;
    }

    .service_grid_4 .repeater .primary_button {
        margin-top: 15px;
        margin-left: 0px;
        max-width: 100%;
        position: static;
    
    }

    .service_grid_4 .repeater .image img {
        height: 400px;
    }
    
    
}
