/*
 * Title Wrap
*/

.titleWrap {

    float: none;
    clear: both;
    background: transparent;
    padding: 120px 0;
    text-align: center;
    position: relative;

    @media @flyout {
        padding: 80px 0;
    }

    @media @mobile {
        padding: 40px 0;
    }

    &.lightBg {
        background: var(--light_primary);
    }

    &.bottomButton {
        @media @flyout {
            padding: 80px 0 96px;
        }

        @media @mobile {
            padding: 40px 0 56px;
        }
    }

    &.faqsTitleBanner {

        display: none;

        @media @flyout {
            display: block;
        }
    }


    &.darkBg {
        background: var(--light_primary);
        color: var(--text_color);

        .innerText {
            .titleContent {
                color: var(--text_color);
            }
        }
    }

    .innerText {
        .wrapper();
        text-align: inherit;
        position: relative;
		margin-left: 0;

        h1 {
            margin: 0;
        }

        .titleContent {

            margin: 16px 0 0 0 !important;
            margin-bottom: -26px !important;
            max-width: 100%;
            .rems(16);
            line-height: 24px;
            color: var(--text_color);


            ul, ol, p {
                font-size: inherit;
                line-height: inherit;
            }

            p {

                color: inherit;
                &:last-child {
                    margin-bottom: 24px;
                }
            }

            strong {
                font-weight: 600;
                color: var(--highlight_color);
            }

        }

        h4 {

            .headingStyle(h5);
            margin: 0 0 14px;
            opacity: 1;

            @media @mobile {
                .headingStyle(h6);
            }
        }
    }

    &.largeTitle {

        .innerText {

            h1 {
                .rems(48);
                line-height: 56px;

                @media @flyout {
                    .rems(48);
                    line-height: 56px;
                }

                @media @mobile {
                    .rems(18);
                    line-height: 20px;
                }
            }
        }

    }

    .buttonWrap {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 25px 0 0 0;
		margin: 24px 0 0 0;


        @media all and (max-width: 1380px) {
            padding: 25px 0 0 0;
        }


        .leftAlign & {
            justify-content: flex-start;
        }


        & > a {
            margin: 0 24px 0 0;
            width: auto;
            flex: 0 0 auto;


            @media @mobile {
                width: 100%;
                margin: 16px 0 0;
            }

            &:last-of-type {
                margin-right: 0;
            }


        }
    }


}
