section.cards_container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;

    .btn {
        margin-top: 2rem;
    }

    ul.cards_list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        list-style: none;
        width: 100%;
        justify-content: center;
        margin: 0 auto;

        li {
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 288px;
            height: 400px;
            text-align: center;
            background-color: var(--card-background);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-card-desktop);

            div {
                display: flex;
                justify-content: center;
                margin-bottom: 1rem;
                padding-top: 10px;
                transition: all 0.3s ease-in-out;

                img {
                    width: 140px;
                    height: auto;
                    aspect-ratio: 1 / 1;
                    transition: scale 0.3s ease-in-out;
                }
            }

            article {
                padding: 0 1rem 1rem 1rem;

                h3 {
                    font-size: clamp(13px, 1vw + .5rem,20px);
                    padding: 10px;
                    border-bottom: 1px solid var(--border-color-card);
                    color: var(--title-black);
                    text-wrap: balance;
                }

                p {
                    font-weight: 400;
                    font-size: clamp(12px, 1vw + .5rem, 16px);
                    color: var(--text-black);
                    text-wrap: pretty;
                    line-height: 1.3;
                }
                
            }

            &:hover {
                div {
                    padding: 10px 0;
                    img {
                        scale: 1.05;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 596px) {
    section.cards_container {

        ul.cards_list {
            flex-direction: column;
            align-items: center;
            padding: 0 1rem;
            gap: 10px;

            li {
                width: 100%;
                height: auto;
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 5px 10px;
                box-shadow: var(--shadow-card-mobile);

                div {
                    transition: none;
                    margin: 0;
                    padding: 0;

                    img {
                        width: 82px;
                        height: auto;
                        transition: none;
                        scale: 1 !important;
                        border-radius: 0;
                    }

                    &:hover {
                        img {
                            scale: 1;
                        }
                    }
                }

                &:hover {
                    div {
                        padding: 0;
                    }
                }

                article {
                    padding: .2rem .2rem .2rem .5rem;           
                    h3 {
                        text-align: left;
                        padding: 0;
                        margin-bottom: 5px;
                    }

                    p {
                        text-align: left;
                    }
                }
            }
        }
    }
}