.title_with_text_section {

    &.after_text {
        & .section_inner {
            flex-direction: row-reverse;
        }
    }

    & .section_inner {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;

        @media (max-width: 991px) {
            text-align: center;
        }

        & .left_side {
            width: 48%;
            overflow: hidden;

            @media (max-width: 991px) {
                width: 100%;
                margin-bottom: 3rem;
            }
    
            & h2, & h3, & h4, & h5 {
                margin: 0;

                & span {
                    color: var(--primary);
                    font-size: inherit;
                    font-weight: inherit;
                }
            }
        }

        & .right_side {
            width: 48%;
            display: flex;
            flex-direction: column;

            @media (max-width: 991px) {
                width: 100%;
            }

            & .text_area {
                & h2, & h3, & h4, & h5 {
                    margin: 0 0 3rem;

                    & span {
                        color: var(--primary);
                        font-size: inherit;
                        font-weight: inherit;
                    }
                }

                & p {
                    font-size: 2.4rem;
                    color: #1F1F1F;
                    margin: 0 0 1rem;

                    @media (max-width: 991px) {
                        font-size: 1.8rem;
                    }

                    &:last-child {
                        margin: 0;
                    }
                }
            }
        }
    }
}