.cards_section{
    width: 100%;
    height: fit-content;
    display: flex;
    gap: 30px;
}

/* --- Card --- */

.card{
    width: 100%;
    height: 500px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* image */

.card img{
    width: 100%;
    height: fit-content;
}

/* --- Overlay --- */

.overlay{
    width: 100%;
    height: 150px;
    box-sizing: border-box;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(50px);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* overlay title */

.overlay h2{
    font-size: 15px;
    font-weight: 500;
    color: white;
}

/* overlay text */

.overlay p{
    width: 90%;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Media --- */

@media screen and (max-width: 1700px) {
    
    .card{
        height: 400px;
    }

    /* --- Overlay --- */

    .overlay{
        height: 170px;
    }

    /* overlay text */

    .overlay p{
        width: 100%;
    }
}

@media screen and (max-width: 800px) {

    .cards_section{
        gap: 20px;
    }

    /* --- Card --- */
    
    .card{
        height: 340px;
    }

}

@media screen and (max-width: 650px) {

    .cards_section{
        flex-direction: column;
    }

    /* --- Card --- */
    
    .card{
        height: 350px;
    }

    /* overlay text */

    .overlay p{
        width: 80%;
    }

}

@media screen and (max-width: 500px) {

    .overlay p{
        width: 100%;
    }

}