.services5 .item {
    box-shadow: 2px 4px 15px #C8C9C932;
}

.services5 .image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.services5 .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0, 0.69, 0.4, 1);
}

.services5 .item:hover .image img {
    transform: scale(1.05);
}

.services5 .content {
    padding: 25px;
    background-color: white;
    padding-bottom: calc(25px + 2rem);
}

.services5 .title {
    display: block;
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.services5 .text {
    padding-top: 1.25rem;
    margin-bottom: 0;
}

.services5 .item .link {
    position: absolute;
    bottom: 25px;
    left: 25px;
}

.services5 .item:first-of-type .link,
.services5 .item:nth-of-type(2) .link {
    margin-top: 0;
}

.services5 .item:not(:first-of-type):not(:nth-of-type(2)) .image {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (min-width: 1023px) {

    .services5 .item:first-of-type {
        width: 100%;
        flex-direction: row;
    }

    .services5 .item:nth-of-type(2) {
        width: 100%;
        flex-direction: row-reverse;
    }

    .services5 .item:first-of-type .image,
    .services5 .item:nth-of-type(2) .image {
        width: 40%;
        height: 300px;
    }

    .services5 .item:first-of-type .image {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .services5 .item:nth-of-type(2) .image {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .services5 .item:first-of-type .content,
    .services5 .item:nth-of-type(2) .content {
        width: 60%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .services5 .item:first-of-type .content .title,
    .services5 .item:nth-of-type(2) .content .title {
        font-size: 2rem;
    }

    .services5 .item:first-of-type .content p,
    .services5 .item:first-of-type .content .title,
    .services5 .item:nth-of-type(2) .content p,
    .services5 .item:nth-of-type(2) .content .title {
        max-width: 36rem;
    }

    .services5 .item:first-of-type .link,
    .services5 .item:nth-of-type(2) .link {
        position: relative;
        margin-top: 1rem;
        left: 0;
        bottom: 0;
        width: fit-content;
    }

    .services5 .content {
        padding-bottom: calc(25px + 3rem);
    }
    
}