
.service-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 500px;
}
.service-card .service-content {
    flex: 1;
    padding: 1rem;
    background: var(--secondary);
    color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    display: flex;
    gap: 10px;
}
.service-card .service-title {
    font-size: 22px;
    margin: 0;
    font-weight: bold;
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
    font-family: "Century Gothic - Gras", Sans-serif, serif;
}
.service-card  .service-description {
    color: var(--text);
    margin: 0;
}
.service-card  .service-button {
    display: inline-flex;
    color: var(--white);
    background: var(--primary-color);
    width: 158px;
    font-size: 16px;
    line-height: 46px;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-family: "Century Gothic - Gras", Sans-serif, serif;
}
.service-card  .service-description,
.service-card .service-button {
    transform: translateY(200px);
    transition: all 400ms ease-in-out;
    display: none;
}
.service-card .service-button {
    border: 2px solid var(--primary-color);
}

.service-card .service-button:hover,
.service-card .service-button:active,
.service-card .service-button:focus{
    background: var(--white);
    color: var(--primary-color);
}

.service-card .service-thumb {
    height: 371px;
    transition: all 100ms linear;
}
.service-card .service-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 100ms linear;
}
.service-card:hover .service-thumb{
    height: 250px;
}
.service-card:hover .service-description,
.service-card:hover .service-button{
    display: inline-flex;
    transform: translateY(0);
}

@media screen and (max-width:1400px) {
    .service-card .service-title {
        font-size: 20px;
    }
    .service-card {
        height: 400px;
    }
    .service-card:hover .service-thumb {
        height: 200px;
    }
}

@media screen and (max-width:1200px) {
    .service-card {
        height: 380px;
    }
    .service-card:hover .service-thumb {
        height: 190px;
    }
}

@media screen and (max-width:991px) {
    
    .service-card {
        height: 500px;
    }
    .service-card:hover .service-thumb {
        height: 250px;
    }
    .service-card .service-thumb {
        max-height: 400px;
    }   
}
@media screen and (max-width:600px) {
    
    .service-card {
        height: auto;
        min-height: 450px;
    }
    .service-card:hover .service-thumb {
        height: 190px;
    }
    .service-card .service-thumb {
        max-height: 400px;
    }   
}