$blue: #397eb9;
$avenir: $font-stack-avenir-next;

#cards-block {
    .cards {
        padding: 24px 12px;

        @include bp($bp-col10) {
            padding: 24px 12px 48px;
        }

        h3 {
            font-family: $avenir;
            color: $blue;
            text-transform: capitalize;
            position: relative;
            margin-bottom: 20px;
            @include bp($bp-col12) {
                font-size: 26px;
            }
            &:after {
                position: absolute;
                content: "";
                bottom: 0;
                left: 0;
                width: 50px;
                height: 4px;
                background-color: $blue;
            }
        }

        h4 {
            font-family: $avenir;
            font-style: normal;
            font-weight: bold;
            font-size: 18px;
            text-transform: capitalize;
        }

        // First level columm
        > .wp-block-columns {
            > .wp-block-column {
                border: 1px solid $blue;
                margin: 12px 0;
                padding: 12px 12px 32px;

                @include bp($bp-col10) {
                    margin: 12px;
                    padding-top: 0;
                }

                > .wp-block-columns:first-child,
                > *:first-child {
                    margin-bottom: 12px;
                    margin-right: -12px;
                    position: relative;
                    @include bp($bp-col12) {
                        min-height: 45px;
                    }
                    &:after {
                        position: absolute;
                        content: "";
                        border-bottom: 2px solid $blue;
                        width: calc(100% - 12px);
                        bottom: 0;
                        left: -10px;
                        right: 0;
                        margin: auto;
                    }
                }

                a {
                    background-color: $blue;
                    border-color: $blue;
                    color: $white;
                    text-transform: uppercase;
                    &:hover {
                        background-color: lighten($blue, 10%);
                        border-color: lighten($blue, 10%);
                    }
                }
            }
        }
    }
}
