.service-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.service-item-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-item-image::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.39) 100%);
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    z-index: 4;
    color: var(--white);
}

.service-icons {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--theme-primary);
    position: relative;
}

.service-icon {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--timing-function);
    opacity: 0;
}

.service-icon img {
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
}

.active-service-icon {
    opacity: 1;
}

.service-text-and-link {
    display: flex;
    flex-direction: column;
    padding-top: 5px;

    margin-top: 0px;
}

.service-icon-and-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-line {
    width: 30%;
    height: 1px;
    background-color: var(--white);
}

.service-text {
    padding-top: 10px;
    margin-bottom: 30px;
}

.service-arrow-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.references-texts-and-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.references-swiper {
    margin-top: 30px;
}

.references-swiper-pagination-holder {
    margin-top: 30px;
}

.references-swiper {
    overflow: unset !important;
}

.references-section {
    overflow: hidden !important;
}



@media only screen and (min-width:992px) {
    .service-items {
        display: grid;
        grid-template: auto / repeat(2, 1fr);
    }

    .service-text-and-link {
        max-height: 0px;
        opacity: 0;
        transition: max-height var(--timing-function), opacity var(--timing-function);
        will-change: max-height, opacity;
    }

    .references-swiper, .references-swiper-pagination-holder {
        margin-top: 50px;
    }

    .references-texts-and-link {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

}

@media only screen and (min-width:1200px) {
    .service-items {
        grid-template: auto / repeat(3, 1fr);
    }

    .service-item {
        height: 400px;
    }

    .service-content {
        bottom: 25px;
        left: 20px;
        right: 20px;
    }

}

@media only screen and (min-width:1400px) {
    .service-item {
        height: 420px;
    }
}



@media only screen and (min-width:992px) and (hover:hover) {
    .service-item:hover .service-text-and-link {
        max-height: 500px;
        opacity: 1;
    }

    .service-icons {
        transition: background-color var(--timing-function);
    }

    .service-item:hover .active-service-icon {
        opacity: 0 !important;
    }

    .service-item:hover .service-icon {
        opacity: 1;
    }

    .service-item:hover .service-icons {
        background-color: var(--white);
    }
}