/**
 * card.css
 *
 * All card related styles
 *
**/

.card {
    border: 1px solid var(--color-alpha);
    border-radius: var(--size__border-radius-normal);
    box-shadow: var(--box-shadow-huge);
    max-width: 312px;
    overflow: hidden;
    position: relative;
}


.card img {
    transition: transform 0.4s ease; /* Smooth scaling effect */
}

.card:hover img {
    transform: scale(1.05); /* Scale image to 110% on hover */
}


.l-heroSection .card {
    max-width: 474px;
}

.card,
.card h3,
.card--category {
    color: var(--color-alpha);
    font-family: var(--font-family-markot);
    text-decoration: none;
}

.card h3,
.card--category {
    left: var(--size__space-medium);
    position: absolute;
    text-align: center;
    width: calc(100% - (var(--size__space-medium) * 2));
    z-index: 10;
}

.card h3 {
    border-bottom: 1px solid var(--color-alpha);
    bottom: 90px;
    bottom: 25%;
    font-size: var(--step-5);
    line-height: 1.3;
    padding-bottom: var(--size__space-medium-small);
    text-shadow: 1px 1px 1px #000;
}

.l-heroSection .card h3 {
    bottom: auto;
    font-size: var(--step-8);
    padding: 0 30px var(--size__space-medium);
    text-transform: uppercase;
    top: var(--size__space-medium);
}

.card h3::after {
    background: url(../../img/icon-arrow-right-white.svg) no-repeat;
    /*bottom: -80px;*/
    content: '';
    display: block;
    left: 50%;
    padding-top: 24%;
    position: absolute;
    top: calc(100% + 20px);
    transform: translateX(-50%);
    width: 40px;
}

.l-heroSection .card h3:after {
    bottom: auto;
    top: calc(100% + 30px);
    width: 60px;
}

.card--category {
    left: var(--size__space-medium);
    font-size: var(--step-4);
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    top: var(--size__space-medium);
}

@media screen and (min-width: 768px) {

    .l-heroSection .card h3 {
        padding-left: 20px;
        padding-right: 20px;
    }

}

@media screen and (min-width: 1024px) {

    .card h3 {
        padding-bottom: var(--size__space-normal);
    }

    .l-heroSection .card h3 {
        padding: 0 68px var(--size__space-medium-large);
        top: var(--size__space-medium-large);
    }
    
    .l-heroSection .card h3:after {
        height: 62px;
        top: 180px;
        width: 71px;
    }

}
