


.service-cards {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}


.service-card {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    padding:0;
    border: 1px solid transparent;
}

.service-card:hover {
    cursor: pointer;
    border: 1px solid var(--primary-color);
}

.service-card:hover .service-image img {
    filter: hue-rotate(180deg);
}

.service-card:hover .service-content {
    filter: hue-rotate(180deg);
}

/* For odd service cards (image first, content second) */
.service-card:nth-child(odd) {
    flex-direction: row;
}

/* For even service cards (content first, image second) */
.service-card:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .service-content {
    flex: 6;
    background-color: #ebeff5;
    padding: 25px 30px;
    position: relative;
    z-index: 1;
}

.service-content h2 {
    font-size: 1.4rem;
}



@media screen and (max-width: 992px) {

    .service-cards {
        max-width: 100%;
    }
    .service-card {
        flex-direction: column;
        margin-bottom: 30px;
    }
    /* Override the even/odd order for mobile */
    .service-card:nth-child(even) {
        flex-direction: column;
    }
    .service-card:nth-child(odd) {
        flex-direction: column;
    }

    .service-card .service-image {
        max-height: 35vh;
    }
    .service-content {
        padding: 15px !important;
    }
    .service-content h2 {
        font-size: 1.1rem;
        text-align: center;
    }
}

