h1 {
    text-align: center;
    font-size: 3rem;
    margin-block-start: 1rem;
}

.BCards{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scCard:has(.top) {
    .top{
        border: none;
        margin-block-end: 0;
    }
}

.scCard, .top{
    display: flex;
    flex-direction: column;
    flex: 1 1;
    background: oklch(1 0 0);
    border-radius: 1.5rem;
    border: oklch(0 0 0) solid 2px;
    margin-block-end: 2rem;

    img{
         border-radius: 1.4rem 1.4rem 0 0;
    }



    .ScContent{
        margin: 0 1rem 1rem 1rem;

        h2 {
            text-align: initial;
            font-size: 2rem;
            margin-block: 0;
        }

        p{
            margin: 0;
        }
    }

    p{
        margin: 0rem 1rem 1rem 1rem;
    }
}

@media (min-width: 55rem) {
    .scCard, .top {
        flex-direction: row;
        border-radius: 0;
        align-items: center;

        img {
            object-fit: cover;
            object-position: left center;
            flex: 1 1 0;
            width: 38vw;
            min-height: 20rem;
            border-radius: 0;
            margin: 1.5rem 0 1.5rem 1.5rem;
        }

        .ScContent {
            margin: 1.5rem;
            text-align: justify;
            font-size: calc(0.5rem + 0.8vw);
        }

        &:nth-of-type(2){
            img{
                order: 2;
                margin: 1.5rem 1.5rem 1.5rem 0;
            }
        }
    }

    .scCard:has(.top) {
        flex-direction: column;
        align-items: center;

        .top{
            margin: 0;
            border: none;
        }
    }

    .scCard > p {
        margin: 0 1.5rem 1.5rem 1.5rem;
        text-align: justify;
        font-size: calc(0.5rem + 0.8vw);
    }
}
