.columns_with_text_section {
    padding: 5rem 0;

    @media (max-width: 991px) {
        padding: 3rem 0;
    }

    & .section_inner {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;

        & .top_content {
            width: 100%;
            margin-bottom: 2rem;

            & h2, & h3, & h4, & h5 {
                font-weight: 400;
                margin: 0 0 3rem;
            }
        }

        & .column {
            width: calc(25% - 1.5rem);
            border: 1px solid var(--primary);
            border-radius: 1rem;
            padding: 3rem 2rem 5rem;
            display: flex;
            flex-direction: column;
            background: var(--white);

            @media (max-width: 991px) {
                width: calc(50% - 1rem);
            }

            @media (max-width: 767px) {
                width: 100%;
            }

            & .column_content {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                height: 100%;

                & h1, & h2, & h3, & h4, & h5, & h6 {
                    margin: 0 0 2rem;
                    font-weight: 400;
                    font-size: 2.4rem;
                    flex-shrink: 0;

                    @media (max-width: 991px) {
                        font-size: 2rem;
                    }
                }

                & .content_subsection {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: flex-start;
                    width: 100%;
                    min-height: 0;

                    &:nth-child(odd) {
                        margin: 2rem 0;
                    }

                    &:last-of-type {
                        a {
                            margin-top: 1rem;
                        }
                    }

                    & p {
                        width: 100%;
                        margin: 0 0 1rem;
                        font-size: 1.6rem;
                        line-height: 1.6;
                        
                        &:has(a.button),
                        &:has(a[class*="button"]) {
                            margin-top: auto;
                            margin-bottom: 0;
                        }
                        
                        &:nth-child(2) {
                            margin-top: auto;
                            margin-bottom: 0;
                        }
                    }

                    & a.button,
                    & a[class*="button"] {
                        width: 100%;
                        font-size: 1.6rem;
                    }

                    & a:not(.button):not([class*="button"]) {
                        font-size: 1.6rem;
                    }
                }

                /* Fallback for content not in sub-sections */
                & > p {
                    margin: 0 0 1rem;
                    font-size: 1.6rem;
                    line-height: 1.6;
                }

                & > a {
                    font-size: 1.6rem;
                }
            }
        }
    }
}
