﻿/*******************************************************/
/******************** ## Highlight Cards 3 ********************/
/*******************************************************/

.card-item {
    z-index: 1;
    padding: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
    min-height: 400px;
    position: relative;
    border-radius: 15px;
    margin-bottom: 30px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-size: cover;
    height: calc(100% - 30px);
    background-position: center;
}

@media only screen and (max-width: 991px) {
    .card-item {
        padding-left: 45px;
        padding-right: 45px;
    }
}

@media only screen and (max-width: 479px) {
    .card-item {
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media only screen and (max-width: 375px) {
    .card-item {
        padding-right: 30px;
    }
}

.card-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100% );
    z-index: 1;
    pointer-events: none;
}

.card-item .category {
    color: var(--light-color);
    display: block;
    margin-top: -5px;
    margin-bottom: 5px;
}

.card-item h2 {
    color: var(--light-color);
    max-width: 400px;
    margin-bottom: 30px;
}

@media only screen and (max-width: 1399px) {
    .card-item h2 {
        font-size: 38px;
    }
}

@media only screen and (max-width: 375px) {
    .card-item h2 {
        font-size: 33px;
    }
}

.card-item .btn-primary {
    margin-top: auto;
}

.card-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 0;
}

.card-item > *:not(img) {
    position: relative;
    z-index: 2;
}

.card-item:hover img {
    transform: scale(1.15);
}
