/*------------------------------------*\
    
    WebFX WYSIWYG Customizations - Global styling for all ACF WYSIWYG's

    Add custom WYSIWYG styling to this file if it should be applied to all ACF WYSIWYG's on the site
    Otherwise, put your block-specific styles in individual block stylesheets

\*------------------------------------*/

.wysiwyg,
.column-text {
    position: relative;
    z-index: 1;
}

.bg-white {
    background: var(--white);
}

.bg-grey {
    background: var(--off-white);
}

.bg-light-green {
    background: var(--light-green);
}

.bg-light-yellow {
    background: var(--light-yellow);
}

.bg-light-pink {
    background: var(--light-pink);
}

.bg-light-blue {
    background: var(--lightest-blue);
}

.bg-dark-blue {
    background: var(--secondary-color);
    color: var(--white);
}

.bg-dark-blue h1,
.bg-dark-blue h2,
.bg-dark-blue h3,
.bg-dark-blue h4,
.bg-dark-blue h5,
.bg-dark-blue h6 {
    color: var(--white);
}

.bg-dark-blue .sub-heading {
    color: var(--teal);
}

.bg-dark-blue .sub-heading:before {
    background: var(--teal);
}

.bg-dark-blue p a {
    color: var(--white);
}

.bg-dark-blue ul li:before {
    color: #194DBC;
}

.bg-dark-blue .btn-primary,
.bg-dark-blue .btn-secondary,
.bg-dark-blue .btn-link,
.bg-dark-blue .btn-tertiary {
    color: var(--white);
}

.bg-dark-blue .btn-secondary {
    border-color: var(--white);
}

.wysiwyg__wrapper {
    max-width: 64.25rem;
    margin: 0 auto;
    position: relative;
}


.curve-bottom {
    position: relative;
    z-index: 1;
}

.wysiwyg.curve-bottom {
    /* padding: 1.5rem 0 4.75rem; */
}

.bottom-shape {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -0.0625rem;
    z-index: -1;
}

.bottom-shape svg {
    width: 100%;
    height: auto;
}

.curve-bottom:has(+ .bg-white:not(.testimonials)) .bottom-shape svg {
    fill: var(--white);
}

.curve-bottom:has(+ .bg-grey:not(.testimonials)) .bottom-shape svg {
    fill: var(--off-white);
}

.curve-bottom:has(+ .bg-light-green:not(.testimonials)) .bottom-shape svg {
    fill: var(--light-green);
}

.curve-bottom:has(+ .bg-light-yellow:not(.testimonials)) .bottom-shape svg {
    fill: var(--light-yellow);
}

.curve-bottom:has(+ .bg-light-pink:not(.testimonials)) .bottom-shape svg {
    fill: var(--light-pink);
}

.curve-bottom:has(+ .bg-light-blue:not(.testimonials)) .bottom-shape svg {
    fill: var(--lightest-blue);
}

.curve-bottom:has(+ .bg-dark-blue:not(.testimonials)) .bottom-shape svg {
    fill: var(--secondary-color);
}

.curve-bottom:has(+ .page-footer) .bottom-shape svg {
    fill: var(--secondary-color);
}

.bg-white+.bg-white,
.bg-grey+.bg-grey {
    padding-top: 0 !important;
}

.column-row {
    row-gap: 0.75rem;
}

.column {
    padding: 1.5rem 1.25rem;
    border-radius: 1.875rem;
}

.column-text.curve-bottom {
    padding-bottom: 3.25rem;
}

.column-list h6 {
    border-bottom: 0.125rem solid var(--teal);
    padding-bottom: 0.375rem;
    margin-bottom: 1rem;
}

.column-list ul {
    margin-left: 0.25rem;
}

.column-list ul li {
    line-height: 1.6em;
    margin: 0;
    padding-left: 1.25rem;
}

.column-list ul li:before {
    content: '\e904';
    font-family: 'my-emma-icons';
    font-weight: normal;
    font-size: 0.625rem;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--teal);
}

.column img {
    border-radius: 1.25rem;
}

.column-text-list {
    position: relative;
    z-index: 1;
    padding-bottom: 5.625rem;
}

.section-bottom-curve {
    position: absolute;
    left: 0;
    bottom: -0.0625rem;
    width: 100%;
    height: auto;
}

.wysiwyg p+h5,
.wysiwyg img+h5 {
    margin-top: 2rem;
}

.wysiwyg h5,
.wysiwyg h6 {
    margin-bottom: 1.5625rem;
}

/* Blockquotes */
blockquote,
.column-text blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    border-left: 0.25rem solid var(--teal);
    border-radius: 0 1.5rem 1.5rem 0;
    background-color: var(--off-white);
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.8em;
}

blockquote p,
.column-text blockquote p {
    margin: 0 0 var(--paragraph-spacing);
}

blockquote p:last-child,
.column-text blockquote p:last-child {
    margin-bottom: 0;
}

blockquote a,
.column-text blockquote a {
    color: var(--teal);
}

blockquote cite,
.column-text blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    color: var(--grey);
}

.bg-dark-blue blockquote,
.bg-dark-blue.column-text blockquote {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-left-color: var(--teal);
}

.bg-dark-blue blockquote a,
.bg-dark-blue.column-text blockquote a {
    color: var(--white);
}

.bg-dark-blue blockquote cite,
.bg-dark-blue.column-text blockquote cite {
    color: rgba(255, 255, 255, 0.75);
}

/* Tables (WordPress / TinyMCE output) */
.wysiwyg table,
.column-text table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: inherit;
    line-height: 1.6;
    color: var(--text-color);
}

.wysiwyg table caption,
.column-text table caption {
    caption-side: bottom;
    margin-top: 0.75rem;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--grey);
    text-align: left;
}

.wysiwyg thead th,
.column-text thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--heading-color);
    background-color: var(--off-white);
    border-bottom: 0.125rem solid var(--teal);
    vertical-align: top;
}

.wysiwyg tbody td,
.column-text tbody td,
.wysiwyg tbody th,
.column-text tbody th {
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 0.0625rem solid var(--light-grey);
}

.wysiwyg tfoot td,
.column-text tfoot td,
.wysiwyg tfoot th,
.column-text tfoot th {
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: top;
    border-top: 0.125rem solid var(--light-grey);
    font-weight: 700;
    background-color: var(--off-white);
}

.wysiwyg tbody tr:nth-child(even) td,
.wysiwyg tbody tr:nth-child(even) th,
.column-text tbody tr:nth-child(even) td,
.column-text tbody tr:nth-child(even) th {
    background-color: rgba(249, 249, 249, 0.6);
}

.wysiwyg table p,
.column-text table p {
    margin: 0;
}

.wysiwyg table p + p,
.column-text table p + p {
    margin-top: 0.5em;
}

.bg-dark-blue.wysiwyg table,
.bg-dark-blue.column-text table {
    color: var(--white);
}

.bg-dark-blue.wysiwyg thead th,
.bg-dark-blue.column-text thead th {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--teal);
}

.bg-dark-blue.wysiwyg tbody td,
.bg-dark-blue.column-text tbody td,
.bg-dark-blue.wysiwyg tbody th,
.bg-dark-blue.column-text tbody th {
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.bg-dark-blue.wysiwyg tfoot td,
.bg-dark-blue.column-text tfoot td,
.bg-dark-blue.wysiwyg tfoot th,
.bg-dark-blue.column-text tfoot th {
    background-color: rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.bg-dark-blue.wysiwyg tbody tr:nth-child(even) td,
.bg-dark-blue.wysiwyg tbody tr:nth-child(even) th,
.bg-dark-blue.column-text tbody tr:nth-child(even) td,
.bg-dark-blue.column-text tbody tr:nth-child(even) th {
    background-color: rgba(255, 255, 255, 0.06);
}

.bg-dark-blue.wysiwyg table caption,
.bg-dark-blue.column-text table caption {
    color: rgba(255, 255, 255, 0.75);
}

.column-text-list__wrap li a {
    color: var(--text-color);
}

@media (min-width: 768px) {
    .wysiwyg.curve-bottom {
        /* padding: 2.25rem 0 7.5rem; */
    }

    .column-row {
        row-gap: 1.25rem;
    }

    .column {
        padding: 2.25rem 2rem;
    }

    .column-text.curve-bottom {
        padding-bottom: 4.75rem;
    }

    .column-list__list ul {
        display: flex;
        flex-wrap: wrap;
    }

    .column-list__list ul li {
        width: 50%;
    }

    .column-text-list {
        padding-bottom: 6.875rem;
    }

    .wysiwyg p+h5,
    .wysiwyg img+h5 {
        margin-top: 2.125rem;
    }

    .wysiwyg h5 {
        margin-bottom: 1.875rem;
    }

    .wysiwyg h6 {
        margin-bottom: 1.5rem;
    }

    .wysiwyg thead th,
    .column-text thead th {
        padding: 1rem 1.125rem;
    }

    .wysiwyg tbody td,
    .column-text tbody td,
    .wysiwyg tbody th,
    .column-text tbody th {
        padding: 1rem 1.125rem;
    }

    blockquote,
    .column-text blockquote {
        padding: 1.375rem 1.75rem 1.375rem 2rem;
    }
}

@media (min-width: 1200px) {
    .wysiwyg.curve-bottom {
        /* padding: 3.25rem 0 8.75rem; */
    }

    .column {
        padding: 3.25rem 3rem;
        height: 100%;
    }

    .column-text.curve-bottom {
        padding-bottom: 12.25rem;
    }

    .column-list h6 {
        padding-bottom: 0.625rem;
    }

    .column-list ul li {
        padding-left: 1.5rem;
    }

    .column-text-list .column-row {
        row-gap: 1.875rem;
    }

    .column-text-list__wrap li a:hover {
        color: var(--teal);
    }

    .column-text-list {
        padding-top: 7.5rem;
        padding-bottom: 9.375rem;
    }

    .wysiwyg p+h5,
    .wysiwyg img+h5 {
        margin-top: 2.5rem;
    }

    .wysiwyg h5,
    .wysiwyg h6 {
        margin-bottom: 1.25rem;
    }

    blockquote,
    .column-text blockquote {
        font-size: 1rem;
    }

    .small-bottom-padding {
        padding-bottom: 8rem !important;
    }
}

@media (min-width: 1600px) {
    .wysiwyg__wrapper {
        max-width: 74rem;
    }

    .wysiwyg.curve-bottom {
        /* padding: 3.25rem 0 11.25rem; */
    }

    .column-text.curve-bottom {
        padding-bottom: 16rem;
    }

    .column-text-list__wrap {
        max-width: 93rem;
        margin: 0 auto;
    }

    .column-list h6 {
        padding-bottom: 0.625rem;
    }

    .column-list ul li {
        width: 33.333%;
        margin-bottom: 0.5rem;
        line-height: 1.15em;
    }

    .column-text-list {
        padding-bottom: 11.25rem;
    }

    .large-text-font {
        font-size: 1.25rem;
    }

    .curve-large-padding {
        padding-bottom: 16rem !important;
    }

    .column-text-list--innerpage {
        padding-top: 5.625rem;
    }
}