﻿

.card {
    position: elative;
    width: 350px;
    margin-bottom: 15px;
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .card::before,
    .card::after,
    .card .card-inner {
        /*background-color: #FFF;
    border: 1px solid #ff6a00;*/
        border-radius: 5px;
        transition: transform 0.5s;
    }

.card::before,
.card-inner {
    z-index: 0;
}

.card-inner {
    display: flex;
    position: relative;
    padding: 0;
}

.card-inner {
    padding: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card_img {
    width: 50%;
    height: 100%;
}

.text-overlay {
    color: black;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

    .text-overlay h2 {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .text-overlay p {
        text-align: start;
        font-size: 8px;
        margin: 0;
        word-break: keep-all;
    }
/* Position the stacked cards in different position */
.cards:hover {
    transform: translate(5px, 5px);
}

    .cards:hover::before {
        transform: translate(-5px, -5px);
    }

    .cards:hover::after {
        transform: translate(-10px, -10px);
    }


