/* Heading and content */
.single-post .content-area,
.single-post .content-area :is(p, ul, ol),
[class^='element-'],
[class^='element-'] :is(p, ul, ol) {
    font-family: var(--wpt-primary-font);
    font-weight: var(--wpt-primary-font-weight);
    font-size: 16px;
    line-height: 1.5;
}

.single-post .content-area,
.single-post .content-area :is(p:not(.sub-title), ul, ol),
[class^='element-'],
[class^='element-'] :is(p:not(.sub-title), ul, ol) {
    color: var(--wpt-text-colour);
}

.single-post .content-area.version-2,
.single-post .content-area.version-2 :is(p,ol, ul),
[class^='element-'].version-2,
[class^='element-'].version-2 :is(p,ol, ul) {
    font-size: 20px;
}

.single-post .content-area > :not([class^='element-']) {
    margin-left: auto;
    margin-right: auto;
    max-width: 1230px;
    width: calc(100% - 60px);
}

a {
    color: var(--wpt-primary-colour);
    text-decoration: none;
}

#poststuff [class^='element-'] ul {
    padding: revert !important;
    list-style: revert !important;
}

body:not(.block-editor-page) [class^='element-'] a:not(.wpt-button) {
    color: var(--wpt-primary-colour);
    text-decoration: none;
}

[class^='element-'] .wpt-title {
    text-align: center;
    display: block;
    position: relative;
    font-family: var(--wpt-headings-secondary-font);
    /*color: var(--wpt-primary-colour);*/
    color: var(--wpt-text-colour);
    font-weight: var(--wpt-secondary-font-weight) !important;
    margin-top: 0;
    line-height: 1.1;
}

[class^='element-'].version-1 .wpt-title {
    color: var(--wpt-primary-colour);
    padding: 0 0 0.6em !important;
    margin: 0 0 0.6em;
    font-size: 1.75em;
}

[class^='element-'] h1,
[class^='element-'] h2,
[class^='element-'] h3,
[class^='element-'] h4,
[class^='element-'] h5,
[class^='element-'] h6 {
    font-family: var(--wpt-headings-secondary-font);
    color: var(--wpt-primary-colour);
    font-weight: var(--wpt-secondary-font-weight);
    line-height: 1.1;
    padding: 0;
}

[class^='element-'] .wpt-title.left,
#poststuff [class^='element-'] .wpt-title.left {
    text-align: left;
}

[class^='element-'] .wpt-title.right,
#poststuff [class^='element-'] .wpt-title.right {
    text-align: right;
}

[class^='element-'] .wpt-title.center,
#poststuff [class^='element-'] .wpt-title.center {
    text-align: center;
}

[class^='element-'] h1,
#poststuff [class^='element-'] h1 {
    font-size: 2.5em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h1 {
    font-size: 2.5em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'] h2,
#poststuff [class^='element-'] h2 {
    font-size: 2em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h2 {
    font-size: 2em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'] h3,
#poststuff [class^='element-'] h3 {
    font-size: 1.75em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h3 {
    font-size: 1.75em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'] h4,
#poststuff [class^='element-'] h4 {
    font-size: 1.5em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h4 {
    font-size: 1.5em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'] h5,
#poststuff [class^='element-'] h5 {
    font-size: 1.25em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h5 {
    font-size: 1.25em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'] h6,
#poststuff [class^='element-'] h6 {
    font-size: 1em;
    margin-bottom: 0.7em;
}

[class^='element-'] .h6 {
    font-size: 1em !important;
    margin-bottom: 0.7em !important;
}

[class^='element-'].version-1 .wpt-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0%;
    transform: translateX(0%);
    width: 60px;
    height: 4px;
    background: var(--wpt-primary-colour)
}

[class^='element-'] .wpt-title.right::after {
    left: unset;
    right: 0;
}

[class^='element-'] .wpt-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

[class^='element-'] .views-field-title {
    margin-bottom: 1em;
}

[class^='element-'].version-1 .views-field-title .title,
#poststuff [class^='element-'].version-1 .views-field-title .title {
    font-size: 1.25em;
}

[class^='element-'] .card h3 {
    margin-bottom: 0px;
    padding-bottom: 10px;
}

[class^='element-'] .innercontent.left {
    text-align: left;
}

[class^='element-'] .innercontent.center {
    text-align: center;
}

[class^='element-'] .innercontent:not(:first-child) {
    margin: 2em 0 0;
}

[class^='element-'] .innercontent > *:first-child {
    margin-top: 0 !important;
}

[class^='element-'] .innercontent > *:last-child {
    margin-bottom: 0 !important;
}

[class^='element-'] .innercontent.right {
    text-align: right;
}

/* sub title */
[class^='element-'] p.sub-title {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 0.7em;
    line-height: 1
}

[class^='element-'].version-2 p.sub-title.center {
    text-align: center;
}

[class^='element-'].version-2 p.sub-title.right {
    text-align: right;
}

[class^='element-'].version-2 p.sub-title.left {
    text-align: left;
}

/* title underline */
[class^='element-'].version-2 .title-underline {
    height: 4px;
    width: 110px;
    display: block;
    margin: 1em auto 1.5em;
}

[class^='element-'].version-2 .title-underline.right {
    margin: 2em 0 2em auto
}

[class^='element-'].version-2 .title-underline.left {
    margin: 2em auto 2em 0
}

/* colours when section has background image */
[class^='element-'].version-2.has-img-bg .wpt-title,
[class^='element-'].version-2.has-img-bg .sub-title,
[class^='element-'].version-2.has-img-bg .innercontent *,
#poststuff [class^='element-'].version-2.has-img-bg .wpt-title {
    color: #ffffff !important;
}

[class^='element-'].version-2.has-img-bg .title-underline {
    background-color: #ffffff;;
}

@media (max-width: 600px) {
    [class^='element-'].version-2 h1.wpt-title,
    #poststuff [class^='element-'] h1.wpt-title {
        font-size: 30px;
    }

    [class^='element-'].version-2 .h1.wpt-title,
    #poststuff [class^='element-'] .h1.wpt-title {
        font-size: 30px !important;
    }

    [class^='element-'].version-2 h2.wpt-title,
    #poststuff [class^='element-'] h2.wpt-title {
        font-size: 28px;
    }

    [class^='element-'].version-2 .h2.wpt-title,
    #poststuff [class^='element-'] .h2.wpt-title {
        font-size: 28px !important;
    }

    [class^='element-'].version-2 h3.wpt-title,
    #poststuff [class^='element-'] h3.wpt-title {
        font-size: 25px;
    }

    [class^='element-'].version-2 .h3.wpt-title,
    #poststuff [class^='element-'] .h3.wpt-title {
        font-size: 25px !important;
    }

    [class^='element-'].version-2 h4.wpt-title,
    #poststuff [class^='element-'] h4.wpt-title {
        font-size: 22px;
    }

    [class^='element-'].version-2 .h4.wpt-title,
    #poststuff [class^='element-'] .h4.wpt-title {
        font-size: 22px !important;
    }

    [class^='element-'].version-2 h5.wpt-title,
    #poststuff [class^='element-'] h5.wpt-title {
        font-size: 20px;
    }

    [class^='element-'].version-2 .h5.wpt-title,
    #poststuff [class^='element-'] .h5.wpt-title {
        font-size: 20px !important;
    }

    [class^='element-'].version-2 h6.wpt-title,
    #poststuff [class^='element-'] h6.wpt-title {
        font-size: 18px;
    }

    [class^='element-'].version-2 .h6.wpt-title,
    #poststuff [class^='element-'] .h6.wpt-title {
        font-size: 18px !important;
    }

    [class^='element-'].version-2,
    #poststuff [class^='element-'].version-2,
    [class^='element-'].version-2 p {
        font-size: 16px;
    }
}

[class^='element-'] .fa,
[class^='element-'] .fas {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
}

.text-transform-none {
    text-transform: none;
}

.nb-font-content {
    font-family: var(--wpt-primary-font) !important;
}

.nb-font-heading {
    font-family: var(--wpt-headings-secondary-font) !important;
}