@import '~@style/_config/app-bootstrap-bulma'

$color-heading-edging-dark = #515151

.section
    &__heading
        margin-bottom 32px
        color $color-heading-dark
        font-family $font-lora
        font-size 17px
        font-weight 700
        line-height 24px
        letter-spacing 1px

        &_left
            text-align left

        &_right
            text-align right

        &_content
            margin-bottom 25px
        +desktop()
            margin-bottom 40px
            font-size 28px
            line-height 40px

            &_content
                margin-bottom 30px

    &__heading-edging
        display none
        line-height 0
        padding 30px 0 5px
        +tablet()
            display block

        &:before, &:after, .section__heading-edging-dot
            display inline-block
            background $color-white
            vertical-align middle

        &:before, &:after
            content ''
            width 90px
            height 1px

        &:before
            margin-right 25px

        &:after
            margin-left 25px

        .section__heading-edging-dot
            width 3px
            height 3px
            border-radius 100%

        &_left:after
            display none

        &_right:before
            display none

        &_dark
            &:before, &:after
                background $color-gray-light

            .section__heading-edging-dot
                background $color-heading-edging-dark

        &_wide
            &:before, &:after
                width 115px

    &__top-row
        display flex
        justify-content space-between
        align-items flex-start
        flex-wrap wrap
        margin 0 -1.5rem 24px

        .section__heading,
        .section__link
            padding 0 1.5rem

        .section__heading
            +from($tablet)
                margin-bottom 0

        .section__link
            +from($desktop)
                padding-top 10px

    &__link
        color $color-steel-blue
        font-size 16px

        &:hover
            color $color-steel-blue

            .section__link-icon
                color $color-steel-blue
                transition color .3s

            .section__link-__text
                text-decoration underline

        &-text,
        &-icon
            vertical-align middle

        &-icon
            margin-right 15px
            color #939393
            font-size 28px

    &_dark
        background-color $color-dark

        .section__heading
            color $color-white

    &_gray
        background-color $color-gray

    &_background
        background-position center center
        background-size cover

    &_theme_gray
        background $color-gray