/*
Theme Name: Lift & Uplift
Theme URI: 
Author: Silomedia
Author URI: https://silomedia.co.uk/
Description: Bespoke theme for Lift & Uplift 
Version: 1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/************************************************************************
 * Reset
 ************************************************************************/

*,*::before,*::after{box-sizing:border-box}*{margin:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}

/************************************************************************
 * Variables
 ************************************************************************/

:root {
    --primary: #243d7f;
    --primary-light: #deeef9;

    --light-grey: #f2f2f3;
    --grey: #e7e7e7;
    --grey-border: #dbdbdb;
    --dark-grey: #111111;

    --white: #ffffff;

    --body-font: 'Inter', sans-serif;
    --heading-font: 'Montserrat', sans-serif;

    --container-width: 75rem;
    
}

::selection {
    background: var(--primary-light);
    color: var(--primary);
}

/************************************************************************
 * Typography
 ************************************************************************/

:root {
    font-size: 18px;

    @media (max-width: 1400px) {
        font-size: 17px;
    }

    @media (max-width: 1100px) {
        font-size: 16px;
    }
}

body {
    font-family: var(--body-font);
    color: var(--dark-grey);
    background-color: var(--light-grey);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 450;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.3;
}

h5 {
    font-size: 1rem;
    line-height: 1.3;
}

h6 {
    font-size: 0.9rem;
    line-height: 1.3;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

p + h2, ul + h2, ol + h2, p + h3, ul + h3, ol + h3, p + h4, ul + h4, ol + h4, p + h5, ul + h5, ol + h5, p + h6, ul + h6, ol + h6 {
    margin-top: 2rem;
}

ul, ol {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
}

a, a svg {
    transition: 200ms;
}

.button, input[type="submit"], button {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    transition: 200ms;
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    border: solid 1px var(--primary);
    margin: 0.5rem 0 1rem;

    &:hover {
        background: var(--primary-light);
        color: var(--primary);
        border: solid 1px var(--primary);
    }

    &.button-secondary {
        background: var(--white);
        color: var(--primary);
        border: solid 1px var(--primary);

        &:hover {
            background: var(--primary-light);
            color: var(--primary);
            border: solid 1px var(--primary);
        }
    }
}

* {
    scroll-margin-top: 9rem;
}

/************************************************************************
 * Utilities
 ************************************************************************/
body.logged-in .hide-logged-in {
    display: none !important;
}

body:not(.logged-in) .hide-logged-out {
    display: none !important;
}

/************************************************************************
 * Layout
 ************************************************************************/

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;

    @media (max-width: 700px) {
        padding: 0 1.25rem;
    }
}

.boxed {
    margin: 3rem 0;
    background: var(--white);
    border: solid 1px var(--grey-border);
    padding: 3rem;

    > :last-child {
        margin-bottom: 0;
    }

    @media(max-width: 700px) {
        padding: 2rem;
    }

    @media(max-width: 500px) {
        padding: 1.5rem;
    }
}

.unboxed {
    margin: 4rem auto 2rem;
}

/************************************************************************
 * Header
 ************************************************************************/

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.admin-bar .sticky-header {
    top: 32px;
}

#masthead {
    background: var(--white);
    border-bottom: solid 1px var(--grey-border);
    position: relative;

    .masthead-logo {
        display: flex;
        color: var(--primary);
        height: 5rem;
        align-items: center;
        text-decoration: none;
        justify-content: flex-start;
        gap: 1.2rem;

        img {
            height: 2.2rem;
            width: auto;
        }

        div {
            display: flex;
            flex-direction: column;
        }

        .masthead-title {
            display: block;
            font-family: var(--heading-font);
            font-size: 1.5rem;
            line-height: 1;
            font-weight: 650;
            transition: 300ms;
            margin-bottom: 0.25rem;
        }

        .masthead-tag {
            display: block;
            font-weight: 500;
            opacity: 0.85;
            padding-left: 1px;
            line-height: 1;
            font-size: 0.8rem;
        }

        @media(max-width: 1000px) {
            height: 5rem;
            gap: 1rem;

            img {
                height: 2rem;
            }

            .masthead-title {
                font-size: 1.4rem;
                line-height: 1;
            }

            .masthead-tag {
                font-size: 0.8rem;
            }
        }

        @media(max-width: 500px) {
            height: 5rem;
            gap: 0.8rem;

            img {
                height: 1.8rem;
                object-fit: fill;
            }

            .masthead-title {
                font-size: 1.4rem;
                font-weight: 650;
            }

            .masthead-tag {
                font-size: 0.65rem;
                font-weight: 600;
                letter-spacing: -0.15px;
            }
        }
    }

    .masthead-cta {
        background: var(--primary);
        line-height: 1;
        color: #fff;
        padding: 0.8rem 1.2rem;
        border-radius: 5px;
        transition: 200ms;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 500;
        gap: 0.6rem;
        border: solid 1px var(--primary);

        svg {
            width: 0.9rem;
            height: 1rem;
        }

        &:hover {
            background: var(--primary-light);
            color: var(--primary);
            border: solid 1px var(--primary);
        }

        @media(max-width: 1000px) {
            margin-top: 1rem;
        }
    }

    .mega-menu-link:has(.masthead-cta) {
        display: flex !important;
        align-items: center;
    }
}

.masthead-search {
    padding: 0.6rem 0;
    border-bottom: solid 1px var(--grey-border);
    background: var(--light-grey);
    
    .container {
        display: flex;
        gap: 1rem;
    }

    .masthead-search-form {
        flex: 1 0;
        display: flex;

        select, input {
            height: 2.3rem !important;
            line-height: 2.3rem !important;
            display: block;
            padding-top: 0;
            padding-bottom: 0;
            appearance: none;
        }

        select {
            font-size: 0.9rem !important;
            padding: 0 2.2rem 0 1rem;
            color: var(--primary);
            border: solid 1px var(--grey-border);
            appearance: none;
            margin-right: -1px;
            height: calc(2.3rem + 2px) !important;
            line-height: calc(2.3rem + 2px) !important;
            position: relative;

            &:focus {
                border: solid 1px var(--primary);
                outline: none;
                z-index: 2;
                position: relative;
            }
        }

        .search-type-wrapper {
            position: relative;

            &:after {
                content: '';
                position: absolute;
                right: 1rem;
                top: 1.2rem;
                transform: translateY(-50%);
                width: 0;
                height: 0;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-top: 5px solid var(--primary);
                z-index: 5;
            }
        }

        #search-resources, #search-articles {
            flex: 1 0;
        }
    }

    .masthead-search-favourites {
        gap: 0.5rem;
        display: flex;
        background: transparent;
        border: solid 1px var(--grey-border);
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 0.5rem 0.8rem;
        line-height: 1;
        color: var(--primary);
        font-weight: 600;
        font-size: 0.9rem;
        border-radius: 5px;

        svg {
            height: 1.2rem;
            width: 1.2rem;
            transition: 200ms;
        }

        &:hover {
            background: var(--primary);
            border: solid 1px var(--primary);
            color: #fff;

            img {
                filter: brightness(100);
            }
        }

        @media(max-width: 700px) {
            span {
                display: none;
            }
        }

        @media(max-width: 500px) {
            display: none;
        }
    } 
}

.menu-favourites {
    display: none !important;

    @media(max-width: 700px) {
        display: block !important;
    }
}

.page-title {
    background: var(--primary);
    text-align: center;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    h1 {
        color: #fff;
        font-size: 2.4rem;
        margin: 0;
    }

    p {
        color: #fff;
        font-size: 1.2rem;
        margin: 0.5rem 0 0;
        opacity: 0.8;
    }

    @media(max-width: 900px) {
        padding: 2rem 0;
        min-height: 10rem;

        h1 {
            font-size: 2rem;
        }
    }

    .page-buttons {
        margin-top: 0.5rem;
        
        .container {
            display: flex;
            gap: 1rem;
        }

        .button {
            padding: 0.8rem 1.2rem;
            border-radius: 5px;
            transition: 200ms;
            display: inline-block;
            font-size: 1rem;
            font-weight: 500;
            text-decoration: none;
            text-align: center;
            line-height: 1;
            cursor: pointer;
            border: solid 1px var(--primary);
            margin: 0.5rem 0 1rem;

            &:hover {
                background: var(--primary-light);
                color: var(--primary);
                border: solid 1px var(--primary);
            }
        }

                .button:last-child {
            border: solid 2px var(--white);
            color: #fff;
            background: var(--primary);

            &:hover {
                background: var(--primary-light);
                color: var(--primary);
                border: solid 2px var(--primary-light);
            }
        }
        
        .button:first-child {
            background: var(--white);
            color: var(--primary);
            border: solid 2px var(--white);

            &:hover {
                background: var(--primary-light);
                color: var(--primary);
                border: solid 2px var(--primary-light);
            }
        }


    }
}

.membership-message {
    padding: 1rem;
    border-bottom: solid 1px #e9e5b8;
    background: #fef9c3;
    color: #49420d;
    text-align: center;

    a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }
}

/************************************************************************
 * Footer
 ************************************************************************/

#newsletter {
    background: var(--white);
    border-top: solid 1px var(--grey-border);
    padding: 2rem 0 1.8rem;

    h2 {
        font-size: 1.3rem;
    }

    .mc4wp-form-fields {
        margin: 0;
        padding: 0;
        max-width: 100% !important;
        width: 100%;
        display: grid;
        grid-template-columns: 3fr 3fr 2fr;
        gap: 2rem;

        label {
            display: none;
        }

        input:not([type="submit"]) {
            border: solid 1px var(--grey-border);
            border-radius: 5px;
            padding: 0.75rem 1rem;

            &:focus {
                border: solid 1px var(--primary);
                outline: none;
            }
        }

        input[type="submit"] {
            margin: 0;
        }

        @media(max-width: 800px) {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
}

#footer {
    background: var(--white);
    border-top: solid 1px var(--grey-border);

    > .container {
        display: flex;
        justify-content: space-between;

        @media (max-width: 1000px) {
            flex-direction: column;
        }
    }

    .footer-brand {
        border-right: solid 1px var(--grey-border);
        padding: 2.75rem 2.75rem 3rem 0;
        min-width: 33.333%;

        @media (max-width: 1000px) {
            border-right: 0;
            padding: 2.75rem 0 2.75rem 0;
        }

        @media (max-width: 600px) {
            text-align: center;
        }

        .footer-logo {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: var(--primary);
            margin: 0 0 2.75rem 0;

            img {
                width: 6rem;
                height: auto;
                margin: 0 0 1rem 0;

                @media (max-width: 600px) {
                    margin: 0 auto 1rem;
                }
            }

            .footer-title {
                font-family: var(--heading-font);
                font-size: 1.6rem;
                line-height: 1.1;
                font-weight: 650;
                transition: 300ms;
            }

            .footer-tag {
                font-weight: 500;
                opacity: 0.85;
                padding-left: 1px;
            }
        }

        .footer-social {
            display: flex;
            gap: 1rem;

            @media (max-width: 600px) {
                justify-content: center;
            }

            a {
                svg {
                    width: 2rem;
                    height: 2rem;
                    fill: var(--primary);
                }

                &[href*="tiktok"]:hover {
                    svg {
                        fill: #69C9D0;
                    }
                }

                &[href*="instagram"]:hover {
                    svg {
                        fill: #E1306C;
                    }
                }

                &[href*="pinterest"]:hover {
                    svg {
                        fill: #E60023;
                    }
                }

                &[href*="linkedin"]:hover {
                    svg {
                        fill: #0077B5; 
                    }
                }
            }
        }
    }

    .footer-nav {
        padding: 2.75rem 0 2.75rem 2.75rem;
        display: flex;
        gap: 2.75rem;
        justify-content: space-between;
        width: 100%;

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

        @media(max-width: 600px) {
            flex-direction: column;
            gap: 2.5rem;
            text-align: center;
        }

        nav {
            flex: 1 0;

            h2 {
                margin: 0 0 1rem 0;
                padding: 0;
                line-height: 1;
                font-size: 1.3rem;
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0;

                li {
                    margin-bottom: 0.3rem;
                    padding-left: 1px;
                }
            }

            a {
                color: var(--primary);
                text-decoration: none;
                transition: 200ms;
                font-weight: 550;

                &:hover {
                    font-weight: 700;
                }
            }
        }
    }

    .footer-copyright {
        background: var(--primary);
        padding: 1.5rem 0 1.4em;
        font-size: 0.95rem;
        color: var(--primary-light);

        .container {
            display: flex;
            justify-content: space-between;
            align-items: center;

            @media (max-width: 1000px) {
                flex-direction: column;
            }

            @media (max-width: 600px) {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1rem;
            }
        }

        p {
            margin: 0;
            line-height: 1;
        }

        a {
            color: #fff;
            text-decoration: none;
            font-weight: 550;
            line-height: 1.2;
        }

        nav {
            display: flex;
            gap: 2rem;

            @media (max-width: 1000px) {
                gap: 1rem;
            }

            @media (max-width: 600px) {
                justify-content: center;
            }
        }
    }
}

/************************************************************************
 * Search & Filter
 ************************************************************************/

 .search-filter-base {
    --search-filter-scale-border-radius: 0;
 }

 .search-filter-label__toggle-icon .search-filter-icon__svg {
    fill: var(--primary);
    color: var(--primary);
}

.search-filter-label__toggle-icon {
    margin-right: -0.2rem;
}

 /************************************************************************
 * Forms
 ************************************************************************/

 
.boxed {
    form {
        label {
            display: block;
        }

        input:not([type="submit"]), select, textarea {
            width: 100%;
            border: solid 1px var(--grey-border);
            padding: 0.75rem 1rem;
            caret-color: var(--primary);
            margin-top: 0.5rem;

            &:focus {
                border: solid 1px var(--primary);
                outline: none;
            }
        }
    }
}

.boxed .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 1rem;
}

/************************************************************************
 * Archives
 ************************************************************************/

.archive-layout {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
    align-items: flex-start;

    details.filters {
        width: 25%;
        min-width: 16rem;
        border: solid 1px var(--grey-border);
        background: #fff;
        position: sticky;
        top: 10.5rem;
        
        summary {
            background: var(--primary);
            display: flex;
            padding: 1.45rem 1.5rem;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            align-items: center;
            gap: 0.75rem;
            line-height: 1;

            svg {
                width: 1.2rem;
                height: 1.2rem;
            }
        }
        
        .filters-options {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;

            .search-filter-label {
                color: var(--primary);
                font-weight: 600;
                font-size: 1.1rem;
            }
            
            .search-filter-field {
                border-bottom: solid 1px var(--grey-border);
            }
            
            .search-filter-field__input {
                padding-bottom: 1rem;
            }

            .search-filter-field__input--hidden {
                padding-bottom: 0;
            }

            svg.search-filter-icon__svg {
                width: 1.2rem;
                height: 1.2rem;
            }

            .search-filter-input-checkbox__label {
                align-items: center;
                justify-content: space-between;
                color: var(--dark-grey);
                align-items: center;
                font-size: 1rem;
            }

            .search-filter-input-checkbox__count {
                background: var(--primary);
                height: 1rem;
                min-width: 2rem;
                border-radius: 50vw;
                text-align: center;
                font-size: 0.7rem;
                padding: 0 0.2rem;
                color: #fff;
                line-height: 1rem;
                font-family: var(--heading-font);
                vertical-align: middle;
                font-weight: 600;
                margin-top: 0.1rem;
                display: inline-block;
            }
        }
    }

    .results {
        flex: 1 0;
        width: 100%;

        .results-meta {
            background: #fff;
            border: solid 1px var(--grey-border);
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            flex: 1 0;
            gap: 2rem;

            label {
                display: none;
            }

            p {
                margin: 0;
                line-height: 1.4;
            }

            .search-filter-field--control-type-sort {
                width: 15em;

                .search-filter-label {
                    display: none;
                }
            }

            a.clear-filters {
                color: var(--primary);
                text-decoration: none;
                font-weight: 600;
                white-space: nowrap;

                &:hover {
                    color: var(--dark-grey);
                }
            }

            @media(max-width: 500px) {
                flex-direction: column;
                gap: 0.75rem;
                justify-content: flex-start;
                align-items: flex-start;
            }
        }

        &.articles {
            .results-grid {
                display: grid;
                grid-template-columns: 1fr;
                gap: 2rem;
                margin-top: 2rem;

                a.article {
                    background: #fff;
                    border: solid 1px var(--grey-border);
                    padding: 1.5rem;
                    display: flex;
                    gap: 1.8rem;
                    align-items: flex-start;
                    text-decoration: none;
                    color: inherit;
                    border-radius: 10px;
                    will-change: transform, box-shadow;
                    transition: 200ms;

                    img {
                        width: 33%;
                        border-radius: 0.6rem;
                    }

                    h2 {
                        font-size: 1.4rem;
                        margin: 0 0 0.8rem 0;
                    }

                    p {
                        margin: 0;
                        font-size: 0.9rem;
                        line-height: 1.5;
                    }

                    ul.categories {
                        list-style: none;
                        margin: 1rem 0 0;
                        padding: 0;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0.5rem;

                        li {
                            width: fit-content;
                            border-radius: 50vh;
                            padding: 0.5rem 0.8rem;
                            font-size: 0.85rem;
                            font-weight: 600;
                            line-height: 1;
                            
                            span {
                                color: #272b34;
                                mix-blend-mode: color-burn;
                            }
                        }
                    }

                    &:hover {
                        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
                        transform: translateY(-2px);
                    }

                    @media(max-width: 800px) {
                        flex-direction: column;
                        gap: 1rem;

                        img {
                            width: 100%;
                            border-radius: 0.6rem;
                            margin-bottom: 0.5rem;
                        }
                    }
                }
            }
        }

        &.resources {
            .results-grid {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 2rem;
                margin-top: 2rem;

                a.resource {
                    background: #fff;
                    border: solid 1px var(--grey-border);
                    padding: 1.5rem;
                    display: flex;
                    gap: 1rem;
                    flex-direction: column;
                    text-decoration: none;
                    color: inherit;
                    will-change: transform, box-shadow;
                    transition: 200ms;

                    img {
                        width: 100%;
                        aspect-ratio: 1 / 1;
                    }

                    > div {
                        height: 100%;
                        justify-content: space-between;
                        display: flex;
                        flex-direction: column;
                    }

                    h2 {
                        font-size: 1rem;
                        margin: 0 0 0rem 0;
                        color: var(--dark-grey);
                        flex: 1 0;
                    }

                    p {
                        margin: 0;
                        font-size: 0.9rem;
                        line-height: 1.5;
                    }

                    .resource-meta {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        margin-top: 1rem;
                    }

                    ul.categories {
                        list-style: none;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0.5rem;

                        li {
                            width: fit-content;
                            border-radius: 50vh;
                            padding: 0.5rem 0.8rem;
                            font-size: 0.85rem;
                            font-weight: 600;
                            line-height: 1;
                            
                            span {
                                color: #272b34;
                                mix-blend-mode: color-burn;
                            }
                        }
                    }

                    &:hover {
                        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
                        transform: translateY(-2px);
                    }
                }

                @media(max-width: 1200px) {
                    grid-template-columns: 1fr 1fr;
                }

                @media(max-width: 500px) {
                    grid-template-columns: 1fr;
                }
            }
        }
    }

    .pagination {
        margin-top: 2rem;

        .wp-pagenavi {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;

            .pages {
                width: 100%;
                text-align: center;
                border: none;
                display: none;
            }

            a, span {
                padding: 0.5rem 1rem;
                border: solid 1px var(--grey-border);
                border-radius: 5px;
                transition: 200ms;
                text-decoration: none;
                color: var(--primary);
                font-weight: 600;
                background: var(--white);

                &:hover {
                    background: var(--primary);
                    color: #fff;
                }

                &.current {
                    background: var(--primary);
                    color: #fff;
                }
            }
        }
    }

    @media(max-width: 900px) {
        flex-direction: column;
        padding: 0 0 2rem 0;

        details.filters {
            width: 100%;
            position: relative;
            margin-top: 2rem;
            margin-bottom: -1rem;
            top: unset;

            summary {

            }

            .filters-options {
                padding: 1.5rem;
            }
        }

        .results {
            .results-meta {
                padding: 1rem 1.5rem;
            }
        }
    }
} 

/************************************************************************
 * Favourites
 ************************************************************************/

.simplefavorite-button {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 1 !important;
    margin: 0 !important;

    svg {
        width: 1.8rem;
        height: 1.8rem;
        filter: grayscale(1);
        opacity: 0.3;
    }

    &:hover {
        svg {
            filter: none;
            opacity: 0.8;
        }
    }

    &.active {
        svg {
            filter: none;
            opacity: 1;
        }
    }
}

.favorites-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;

    > div {
        background: #fff;
        border: solid 1px var(--grey-border);
        padding: 1.5rem;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        will-change: transform, box-shadow;
        transition: 200ms;

        a {
            text-decoration: none;
        }

        .flex {
            gap: 2rem;
            justify-content: space-between;
            flex-direction: row;
            align-items: flex-start;

            .simplefavorite-button {
                min-width: 2rem;
            }
        }

        img {
            width: 100%;
            aspect-ratio: 1 / 1;
            height: auto;
        }

        > div {
            height: 100%;
            justify-content: space-between;
            display: flex;
            flex-direction: column;
        }

        h2 {
            font-size: 1rem;
            margin: 0 0 0rem 0;
            color: var(--dark-grey);
            flex: 1 0;
        }

        p {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .resource-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 1rem;
        }

        ul.categories {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;

            li {
                width: fit-content;
                border-radius: 50vh;
                padding: 0.5rem 0.8rem;
                font-size: 0.85rem;
                font-weight: 600;
                line-height: 1;
                
                span {
                    color: #272b34;
                    mix-blend-mode: color-burn;
                }
            }
        }

        &:hover {
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            transform: translateY(-2px);
        }
    }

    @media(max-width: 1200px) {
        grid-template-columns: 1fr 1fr;
    }

    @media(max-width: 500px) {
        grid-template-columns: 1fr;
    }
}

/************************************************************************
 * Single Resource
 ************************************************************************/

body.single-resources {
    .boxed {
        padding: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .resource-about {
        display: flex;
        gap: 1.5rem;

        .resource-preview {
            min-width: 25%;
            max-width: 25%;

            img {
                aspect-ratio: 1 / 1;
                display: block;
            } 

            @media(max-width: 1000px) {
                min-width: 33.333%;
                max-width: 33.333%;
            }

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

        @media(max-width: 700px) {
            flex-direction: column;
            gap: 2rem;
            margin: 2rem 0 3rem;

            .boxed {
                margin: 0;
            }
        }
    }

    .resource-quote {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
        flex-direction: row-reverse;
        justify-content: space-between;

        blockquote {
            background: rgba(0,0,0,0.025);
            border-left: solid 4px var(--primary);
            padding: 2rem;
            margin-bottom: 1.5rem;

            p {
                margin-bottom: 0.5rem;
                font-style: italic;
                color: var(--primary);

                strong {
                    font-style: normal;
                }

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }

        .quote-image {
            height: auto;
            aspect-ratio: 1 / 1;
            min-width: calc(25% - 4rem);
            background: var(--primary-light);
            position: relative;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                object-position: center;
                padding-top: 2rem;
                position: absolute;
                top: 0;
                left: 0;
            }
            
            @media(max-width: 1000px) {
                min-width: calc(33.333% - 4rem);
            }

            @media(max-width: 700px) {
                min-width: 0;
                width: 100%;
                margin-bottom: 0rem;
                aspect-ratio: 16 / 9;
            }
        }

        a {
            white-space: break-word;
            overflow-wrap: break-word;
            word-break: break-all;
        }

        @media(max-width: 700px) {
            flex-direction: column;
            gap: 2rem;
        }
    }

    hr {
        margin: -1rem 0;
        border: none;
        background: none;
        border-top: solid 1px var(--grey-border);
        border-bottom: solid 1px rgba(255,255,255,0.5);
        height: 0px;
    }

    .resource-actions p {
        color: var(--primary);
        font-weight: bold;
    }
} 

/************************************************************************
 * Paid Memberships Pro
 ************************************************************************/

.pmpro_card {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: solid 1px var(--grey-border) !important;
    padding: 0rem !important;

    .pmpro_card_content {
        padding: 2rem !important;
    }

    .pmpro_card_title {
        padding: 2rem 2rem 0 !important;
    }

    .pmpro_card_actions {
        padding: 1.5rem 2rem !important;
    }

    .pmpro_heading-with-avatar {
        display: none;
    }

    .pmpro_form_field-display_name {
        display: none !important;
    }

    a {
        font-weight: bold;
        text-decoration: none;
        color: var(--primary);
    }
}

.pmpro_actions_nav a {
    font-weight: bold;
    text-decoration: none;
    color: var(--primary);
}

.pmpro_section_title {
    margin-bottom: 1.5rem !important; 
}

/* Hide free trial from change level table */
.pmpro_levels_table #pmpro_level-1 {
    display: none;
}

/* Hide Change/Cancel links for lifetime members */
body.pmpro-body-has-level-2 #pmpro_account-membership-2 .pmpro_card_actions {
    display: none;
}

body.pmpro-body-has-level-1 #pmpro_actionlink-cancel {
    display: none !important;
}

body.pmpro-body-has-level-1 #pmpro_actionlink-change {
    font-size: 0;

    &:after {
        content: 'Upgrade Membership';
        font-size: 1rem;
    }
}

#pmpro_account-membership .pmpro_list-plain .pmpro_list_item:last-child {
    display: none;
}


#pmpro_login {
    max-width: 500px;
    margin: clamp(3rem, 15vh, 20rem) auto;
    
    .pmpro_card {
        border-radius: 1rem !important;
    }

    .login-logo {
        img {
            height: 3rem;
            width: auto;
            margin: 2.5rem auto 0.25rem;
        }
    }

    .sign-up-section {
        border-top: solid 1px var(--grey-border);
        margin-top: 1.5rem;
        text-align: center;

        p {
            display: block;
            background: #fff;
            width: fit-content;
            line-height: 1;
            margin: -0.5em auto 0;
            padding: 0 1rem 1.5rem;
            color: var(--primary);
        }

        .button {
            display: block;
        }
    }
}

.pmpro_checkout_gateway-stripe {
    .pmpro_form {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        align-items: flex-start;

        #pmpro_pricing_fields {
            order: 2;
            width: 35%;
            min-width: 330px;

            .pmpro_card_content {
                padding-top: 0.5rem !important;

                &:after {
                    content: "";
                    display: block;
                    margin-top: 1.5rem;
                    width: 100%;
                    max-width: 365px;
                    aspect-ratio: 3 / 1;
                    background-image: url(https://lauresources.com/wp-content/uploads/2024/11/stripe-badge-transparent.png);
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: center center;
                }
            }

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

        #pmpro_user_fields {
            order: 1;
            flex: 1 0;
            width: 100%;
            min-width: 500px;

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

        .cf-turnstile, .pmpro_form_submit, #pmpro_tos_fields {
            min-width: 100%;
            order: 10;
            margin: 0;
        }
        
        .pmpro_card {
            border-radius: 1rem !important;
            margin: 0;
        }

        .pmpro_form_field-password {
            order: 100;
        }
    }

    .pmpro_message {
        width: 100% !important;
    }

    #pmpro_message_bottom {
        display: none !important;
    }
}

body.logged-in {
    .pmpro_checkout_gateway-stripe {
        #pmpro_pricing_fields {
            min-width: 100%;
        }

        #pmpro_user_fields:has(.pmpro_card .pmpro_card_content #pmpro_account_loggedin) {
            min-width: 100% !important;
        }
    }
}

/************************************************************************
 * Blog
 ************************************************************************/

 #ez-toc-container {
    border-radius: 0;
    margin-bottom: 2rem;
    padding: 1rem;
 }

 #ez-toc-container .ez-toc-js-icon-con, #ez-toc-container .ez-toc-toggle label, .ez-toc-cssicon {
    border: 1px solid #dbdbdb;
 }

 /************************************************************************
  * Calculators 
  ************************************************************************/

.formbox-wrapper {
    max-width: 600px;
    margin: auto;

    .formbox {
        padding: 0;
    }

    input {
        margin-top: 0 !important;
    }

    .formbox__btn button:not(:hover):not(:active).formbox__btn-calc {
        background: var(--primary);
    }

    .formbox__btn button:not(:active).formbox__btn-calc {
        background: #182a5b;
    }

    .formbox__container.has-result {
        background: var(--primary-light);
        border: solid 1px var(--grey-border);
        padding: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 2rem;
        align-items: center;

        &.is-hidden {
            display: none;
        }


        input {
            text-align: center !important;
            font-size: 2rem;
            border: none;
            padding: 0 !important;
            height: auto !important;
            font-weight: 700 !important;
        }
    }

    @media screen and (min-width: 776px) {
        .formbox__container {
            grid-template-columns: 1fr 3fr;
        }
    }
}