/**
 * Cards Layout Styles
 */
.cards {
    max-width: 1200px;
    margin: 0 auto;
    @media (min-width: 1250px) {  
        .container {
            padding: 0;
        }
    }
    &.cards-overlap {
        margin-bottom: -9.6rem !important;
        @media (min-width: 992px) {
            margin-bottom: -8rem !important;
        }
    }
    .cards-grid {
        display: flex;
        flex-direction: column;
        @media (min-width: 992px) {  
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
            gap: 3.2rem;
        }

        .single-card {
            background: #FFF;
            box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
            border-top: 0.5rem solid var(--color-black);
            padding: 2.4rem;
            overflow: hidden;
            margin-bottom: 1.6rem;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            @media (min-width: 992px) {  
                max-width: 37.6rem;
                padding: 2.4rem 2.4rem 0 2.4rem;
            }
            .single-card-content {
                h2 {
                    font-size: 3.6rem;
                    line-height: 3.6rem;
                    margin: 0 0 1.6rem 0;
                    border-bottom: 2px solid var(--color-border-light);
                    padding-bottom: 1.6rem;
                }  
                

                .single-card-link {
                    @media (min-width: 992px) {  
                        margin-bottom: 4.8rem;
                    }
                }
            }
            &.single-card-colorized {
                border-top-color: var(--color-garnet);
                background: var(--color-garnet);
                .single-card-content {
                    color: var(--color-white);
                    h2 {
                        color: inherit;
                        border-bottom: none;
                        margin: 0;
                    }
                    p {
                        color: inherit;
                    }
                }
            }
            .single-card-image {
                width: 125%;
                aspect-ratio: 1/1;
                position: relative;
                align-self: flex-end;
                overflow: hidden;
                justify-self: flex-end;
                margin-right: -9.6rem;
                margin-bottom: -9.6rem;
                @media (min-width: 992px) {  
                    max-width: 125%;
                }
                img {
                    width: 100%;
                    aspect-ratio: 1/1;
                    object-fit: cover;
                    object-position: top center;
                    border-radius: 100%;
                    position: absolute;
                    max-width: 90% !important;
                    right: 0;
                    bottom: 0;
                    @media (min-width: 992px) {  
                        max-width: 90% !important;
                        right: 0;
                    }
                }
            }

            /* Tablet image maintain reason */
            @media (min-width: 650px) and (max-width: 991px) {  
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                .single-card-content{
                    flex-basis: 65%;
                    padding-right: 4.8rem;
                }
                .single-card-image {
                    flex-basis: 35%;
                }
            }
        }
    }
}
