/* Remove margin at top of entry content */
.entry-content {
    margin-block-start: 0;
}

/* Mobile menu */
@media screen and (max-width: 991px) {
    body:not(.wp-admin):not(.block-editor-iframe__body) {
        header {
            .wp-block-navigation__responsive-container {
                min-height: 100vh !important;

                &.has-modal-open {
                    background-color: var(--wp--preset--color--secondary);
                    .wp-block-navigation__responsive-container-content{
                        padding-bottom: 100px;
                    }

                    .wp-block-navigation__container {
                        width: 100%;
                        gap: 0px;


                        > li {
                            width: 100%;
                            box-sizing: border-box;
                            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
                            padding-bottom: var(--wp--preset--spacing--small-secondary);

                            > a {
                                color: white;
                                padding: 0 var(--wp--preset--spacing--small-secondary);
                                font-size: 16px;
                            }

                            + li {
                                padding-top: var(--wp--preset--spacing--small-secondary);
                            }

                            .wp-block-navigation-submenu {
                                padding-left: 0 !important;
                                padding-top: var(--wp--preset--spacing--small-secondary);
                                padding-bottom: 0;

                                > li {
                                    margin-bottom: 5px;

                                    > a {
                                        color: rgba(255, 255, 255, 0.75);
                                        padding: 0 var(--wp--preset--spacing--small-secondary);
                                        font-size: 14px;
                                    }
                                }
                            }

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

                    .wp-block-buttons {
                        padding: 0 var(--wp--preset--spacing--small-secondary);
                        width: 100%;
                        box-sizing: border-box;

                        .wp-block-button {
                            flex: 0 1 100%;
                            width: 100%;
                            display: block;

                            .wp-block-button__link {
                                display: block;
                            }
                        }
                    }

                }

                .wp-block-navigation__responsive-container-close {
                    top: 30px !important;
                    right: 30px !important;

                    svg {
                        fill: white !important;
                    }
                }
            }
        }
    }
}

/* Header */
body:not(.wp-admin):not(.block-editor-iframe__body) {
    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 99;

        .site-header--inner{
            transition: background-color 0.2s ease-in-out;
        }

        .wp-block-site-logo{
            img{
                transition: width 0.2s ease-in-out;
            }
        }

        &:has(.transparent-on-load):not(.scrolling){
            .site-header--inner{
                background-color: unset !important;
            }
        }
    }
}

@media screen and (max-width: 768px) {
    body:not(.wp-admin):not(.block-editor-iframe__body) {
        header {
            .wp-block-site-logo{
                img{
                    width: 80px;
                }
            }
        }
    }
}

/* Helper Classes */
@media screen and (max-width: 767.98px) {
    .vertical-center-on-mobile{
        &.is-vertical{
            justify-content: center !important;
        }
    }
}

/* Rich Text Format Underline Colours */
[class*=text-underline] {
    display: inline-block;
    font-weight: 600 !important;
    isolation: isolate;
    position: relative;

    &::before{
        bottom: 0;
        content: '';
        height: 30%;
        left: -0.15em;
        position: absolute;
        translate: 0 -25% 0;
        width: calc(100% + 0.3em);
        z-index: -1;
    }

    &[class*="yellow"]{
        &::before{
            background-color: var(--wp--preset--color--quaternary);
        }
    }

    &[class*="pink"]{
        &::before{
            background-color: var(--wp--preset--color--primary);
        }
    }

    &[class*="blue"]{
        &::before{
            background-color: var(--wp--preset--color--tertiary);
        }
    }
}

iframe{
    border-radius: 20px;
}

.is-position-sticky,
.avoid-header {
    top: 200px !important;
    scroll-margin-top: 200px;
}

html{
    scroll-behavior: smooth;
}

.footer-form-wrapper {
    .gform_wrapper{
        input:not([type="checkbox"], [type="radio"]),
        textarea,
        select {
            height: 48px !important;
            padding: 6px 15px !important;
        }

        .gform_fields{
            gap: 15px !important;
        }

        .gfield--type-submit{
            place-items: stretch start !important;
        }

        .gform_footer{
            display: none;
        }
    }
}

.yoast-breadcrumbs{
    a,
    span {
        font-size: clamp(0.75rem, 0.692rem + 0.308vw, 1rem);
    }
    a{
        color: inherit;
    }
}

.query-loop-filters-render{
    flex-wrap: wrap;
}

ol.has-background,ul.has-background {
    padding: 0;
}

.query-loop-filters-render{
    justify-content: center;
}

.job_title {
    text-align: center;
}