﻿@font-face {
    font-family: Archia;
    src: url("../webfonts/Archia/archia-bold-webfont.woff");
    font-weight: bold;
}

@font-face {
    font-family: Archia;
    src: url("../webfonts/Archia/archia-semibold-webfont.woff");
    font-weight: 600;
}

@font-face {
    font-family: Archia;
    src: url("../webfonts/Archia/archia-regular-webfont.woff");
    font-weight: normal;
}

:root {
    --nihr-body-font: "Inclusive Sans", Arial, sans-serif;
    --nihr-heading-font: "Archia", var(--nihr-body-font);

    /*Primary*/
    --nihr-coral: #fc5d5d;
    --nihr-white: #ffffff;
    --nihr-black: #000000;
    --nihr-navy: #1c285e;
    --nihr-off-black: #3c3c3c;
    /*Secondary*/
    --nihr-glove-blue: #c7e9ff;
    --nihr-uniform-lilac: #c4c5ff;
    --nihr-pink-quartz: #ffd1e0;
    --nihr-sunshine-yellow: #ffe626;
    --nihr-blue-flame: #0051c2;
    --nihr-twilight: #3e439c;
    --nihr-berry: #804055;
    --nihr-teal: #0a5766;
    --nihr-bpor-coral-tint: #fd7d7d;
    /*Neutral*/
    --nihr-putty: #faf4eb;
    --nihr-steel: #c5dce5;
    --nihr-navy--alt: var(--nihr-navy);
    --link-colour: var(--nihr-navy);
}


@media (min-width: 1400px){
    .nihr.bpor{
        .container{
            max-width: 1320px;
        }
    }
}


html:lang(cy),
html:lang(cy-GB){
    .nav-link{
        font-size: 15px;
    }
}

.nihr.bpor {

    body, .nhsuk-body {
        font-family: var(--nihr-body-font);
        color: var(--nihr-navy);
        font-size: 20px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .h1,
    .h2,
    .h3,
    .h4,
    .h5,
    .h6,
    .heading {
        font-family: var(--nihr-heading-font);
        color: var(--nihr-navy);
    }

    footer {
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .h1,
        .h2,
        .h3,
        .h4,
        .h5,
        .h6,
        .heading {
            color: var(--nihr-white);
        }
    }

    a:hover {
        text-decoration-color: var(--nihr-coral);
    }

    a:focus:not(.fa-link) {
        background-color: unset;
        box-shadow: none;
        text-decoration-line: underline;
    }

    a:focus-visible:not(.link-image) {
        background-color: var(--nihr-sunshine-yellow);
        box-shadow: 0 0 0 3px var(--nihr-sunshine-yellow);
    }

    a.btn {
        text-decoration-line: none !important;
    }






    div.hero {
        /*background: linear-gradient( 90deg, var(--nihr-sunshine-yellow) 50%, var(--nihr-coral) 50% );*/
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_spiral_YELLOW_RGB.svg') no-repeat right top;
        background: unset;
        background-color: var(--nihr-uniform-lilac);
        color: var(--nihr-navy);
        background-position: 790px;
        background-size: 720px;
    }



    .hero .container {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_spiral_YELLOW_RGB.svg') no-repeat right top;
        background-position: 118% 45%;
        background-size: 59%;
    }

    @media (max-width: 1200px) {
        div.hero {
            background-image: unset !important;
            padding-top: unset;
        }

        .hero .container {
            background-position: 99% 4%;
            background-size: 46%;
        }
    }

    @media (max-width: 992px) {
        .hero .container {
            background-position: 100% 24%;
            background-size: 61%;
        }
    }

    @media (max-width: 768px) {

        .hero .container {
            padding-top: 2em;
            background-position: 57% -8%;
            background-size: 95%;

            .display-1.hero {
                font-size: 2.5rem;
                line-height: 3rem;
            }
        }
    }

    .hero strong {
        color: var(--nihr-blue-flame);
        white-space: nowrap;
    }

    .display-1.hero {
        color: var(--nihr-navy);
    }

    .carousel h3 {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_holding_shape_YELLOW_RGB.svg') no-repeat left bottom;
        background-size: cover;
        padding: 0.75em;
        padding-top: 1.5em;
        position: relative;
        left: -2em;
        display: inline-block;
        line-height: 1em;
    }

    @media(max-width: 992px) {
        .carousel h3 {
            left: 0em;
        }

        .carousel .card-body {
            margin-top: -6em;
        }
    }

    .splide__arrow {
        background: var(--nihr-coral) !important;

        &:hover {
            box-shadow: inset 0 0 100px 10px rgba(0, 0, 0, 0.08);
        }

        &:focus-visible {
            outline-color: var(--nihr-sunshine-yellow) !important;
        }
    }

    .card, .info-card {
        background-color: var(--nihr-glove-blue);
    }

    a:link:not(.link-footer):not(.fa-link) {
        font-weight: 700;
        text-decoration: underline;
        text-decoration-thickness: 0.125rem;
        text-underline-offset: 0.28125rem;
        color: var(--nihr-navy)
    }

    a:link.fa-link:hover {
        text-decoration: none !important;
    }

    a:link:hover:not(.link-footer) {
        text-decoration-color: var(--nihr-coral);
        font-weight: 700;
        text-decoration-thickness: 0.1875rem;
        text-underline-offset: 0.28125rem;
    }

    a:link:not(.link-footer).btn-dark {
        text-decoration: none;
    }

    ol li::before {
        color: var(--nihr-navy);
    }

    .what-is-bpor-section {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_radial_LILAC_RGB.svg') no-repeat right top;
        background-color: var(--nihr-glove-blue);
        background-position: 175%;
        background-size: 61%;
    }

    .video-section {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_spiral_YELLOW_RGB.svg') no-repeat right top;
        background-position: 5%;
        background-size: 30%;
        background-position-y: 333px;
    }

    .how-does-bpor-work-section img {
        position: relative;
        width: 700px;
        max-width: unset !important;
        left: -475px;
        top: 0;
    }

    .who-can-take-part-section {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_radial_PINK_RGB.svg') no-repeat right top;
        background-color: var(--nihr-uniform-lilac);
        background-position: 178%;
        background-position-y: 3%;
        background-size: 61%;
    }

    .who-runs-bpor-section {
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_spiral_80percentCORAL_RGB.svg') no-repeat right top;
        background-color: var(--nihr-pink-quartz);
        background-position: 178%;
        background-position-y: 3%;
        background-size: 61%;
    }

    .langSelectionBar {
        font-size: 1em;
    }

    .languageSelection {
        padding-top: unset;
        font-size: 16px;
    }

    a.nav-link {
        text-decoration: none;
    }

    a.btn.register {
        border-radius: 50px;
        background-color: var(--nihr-pink-quartz);
        color: var(--nihr-navy);
        text-decoration: none;
    }

        a.btn.register:after {
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M5 12H19" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 5L19 12L12 19" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') right center no-repeat;
            content: "";
            display: inline-block;
            height: 1.5rem;
            margin-left: 0.5rem;
            position: relative;
            top: 0.3125rem;
            width: 1.5rem;
        }

    .btn:not(.btn-close-menu):hover {
        box-shadow: inset 0 0 100px 10px rgba(0, 0, 0, 0.08);
    }

    .carousel {

        a:before {
            background-image: url('data:image/svg+xml,%3Csvg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_5047_7713)"%3E%3Cpath d="M1 8H15" stroke="%23fc5d5d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3Cpath d="M8 1L15 8L8 15" stroke="%23fc5d5d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id="clip0_5047_7713"%3E%3Crect width="16" height="16" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A');
            content: "";
            display: inline-block;
            height: 1rem;
            position: relative;
            top: 0.125rem;
            width: 1rem;
            min-width: 1rem;
            margin-right: 0.5rem;
        }
    }


    .BPoRLogo {
        max-height: 100px;
    }

    #NhsHeaderLogo {
        height: 50px;
        margin-top: 0;
        margin-right: 0;
    }

    .navbar .nav-level-0 > .menu-item a.nav-link:not(:hover) {
        text-decoration: none;
    }

    .regional-logos {
        padding: 0;
    }

    .Scot-logo {
        flex: 0 0 20%;
        display: flex;
        justify-content: center;
        left: 4%;
    }

    .scot-logo-img {
        width: 70%;
    }

    .NI-logo {
        left: 2%;
        flex: 0 0 15%;
    }

    .NI-logo-link {
        width: 90%;
    }

    .NI-logo-img {
        width: 100%;
    }

    .nihr-image {
        flex: 0 0 35%;
    }

    .HCW-logo {
        flex: 0 0 20%;
    }

    #footerLogos {
        width: 100%;
    }

    @media only screen and (max-width: 1550px) {
        #footerLogos {
            width: 100%;
            max-width: 85%;
        }
    }

    @media only screen and (max-width: 1081px) {
        #footerLogos {
            width: 100%;
            max-width: 95%;
        }
    }

    @media only screen and (max-width: 900px) {
        #footerLogos {
            width: 100%;
            max-width: 95%;
        }

        .Scot-logo {
            flex: 0 0 40%;
            display: flex;
            justify-content: center;
            left: 4%;
        }

        .NI-logo {
            flex: 0 0 30%;
        }

        .nihr-image {
            padding-right: 5px;
            flex: 0 0 55%;
        }

        .HCW-logo {
            flex: 0 0 40%;
        }

        #NihrLogo {
            width: 90%;
        }
    }

    @media only screen and (max-width: 767px) {
        #footerimage {
            margin-left: 5%;
            padding-top: 3%;
        }
    }

    .nhsuk-link, .app-step-nav__button-text {
        color: var(--nihr-navy);
        font-weight: 700;
    }

    .govuk-width-container {
        max-width: 1320px;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }



    .app-step-nav__button--title {
        font-family: var(--nihr-heading-font);
        color: var(--nihr-navy);
    }

    .nhsuk-link.app-step-nav__button-text.js-toggle-link-text {
        font-family: var(--nihr-heading-font);
    }

    .app-step-nav__panel {
        font-family: var(--nihr-body-font);
    }

    .page-title {
        border-top: 4px solid var(--nihr-bpor-coral-tint);
        padding-top: 2em;
    }
    /*.page-title {
        padding-top: 1em;
        background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_radial_PINK_RGB.svg') no-repeat;
        background-color: var(--nihr-uniform-lilac);
        padding-bottom: 2em;
        background-size: 50%;
        background-position-x: 150%;
        background-position-y: -50%;


        h2 {
            background: url('../img/layout/2026/NIHR_BPOR_graphic_assets_holding_shape_PINK_RGB.svg') no-repeat;*/
    /*background-color: var(--nihr-bpor-coral-tint);*/
    /*background-size: cover;
            padding: 2em;
            margin-left: -2em;
            margin-right: -2em;
            padding-top: 1.95em;
            padding-bottom: 0.5em;
            display: inline-block;
            position: relative;
            top: -0.75em;
            margin-bottom: 0.5em;
            font-size: 2.5em;*/
    /*max-width: 30ch;*/
    /*}
    }*/

    .app-step-nav--large .app-step-nav__button--controls {
        font-size: 1rem !important;
    }

    .app-step-nav {
        margin-top: 1em;
    }

    .nhsuk-list {
        color: var(--nihr-navy);
    }

    .app-step-nav__title.nhsuk-heading-s {
        margin-bottom: 0;
    }

    .app-step-nav__header {
        padding-bottom: 0.5em;
    }

    .app-step-nav__button-text {
        font-family: Archia;
    }

    .BPoRLogo {
        width: unset;
        height: 100px;
        max-height: unset;
        padding-bottom: unset;
        padding-top: unset;
    }

    .header-logo {
        margin: unset;
    }

    .cookie-warning {
        background-color: var(--nihr-putty) !important;
        z-index: 9999;
        --govuk-surface-background-colour: var(--nihr-putty);
    }

    .govuk-button-group {
        gap: 1em;
    }

    .plain-title {
        border-top: 4px solid var(--nihr-bpor-coral-tint);
        padding-top: 1.5em;
    }

    .nhsuk-heading-l, .nhsuk-heading-m, .nhsuk-heading-s {
        font-weight: 700;
    }

    a:not(.white):visited {
        color: var(--nihr-navy);
    }

    .nhsuk-contents-list__link:hover,
    .nhsuk-pagination__link:hover {
        text-decoration-color: var(--nihr-coral);
    }

    .nhsuk-contents-list__link {
        font-weight: 400 !important;
    }

    .nhsuk-tag {
        border-radius: 4px;
    }

    .nhsuk-icon {
        fill: var(--nihr-coral);
    }

    .accessability-image {
        display: inline-block;
        border: 3px solid transparent;
    }
        /*.accessability-image:focus{*/
        /*    background-color: var(--AcasImageFocusBackgroundColour) !important;*/
        /*    box-shadow: var(--AcasImageFocusBoxShadow) !important;*/
        /*    outline: var(--AcasImageFocusOutline) !important;*/
        /*}*/
        .accessability-image:hover[href],
        .accessability-image:focus {
            background-color: transparent !important;
            border-color: var(--nihr-sunshine-yellow);
            box-shadow: rgb(0 0 0 / 75%) 0px 0px 0px 3px !important;
            border-style: solid;
            border-width: 3px;
        }


    #footerLogos {
        padding-top: 2rem;
        padding-bottom: 2rem;

        .logo-col {
            align-content: center;
            text-align: center;
        }

        .row {
            row-gap: 2em;
        }

        .regional-logos {
            max-width: 100%;
        }

        #NihrLogo {
            width: 303px;
        }

        #HscLogo {
            width: 164px;
        }

        #NhsScotlandLogo {
            width: 173px;
        }

        #HCWalesLogo {
            width: 246px;
        }
    }
}

.page-footer{
    overflow:auto;
}

.back-to-top{
    font-size: 1rem !important;
}

a.link__arrow-up:before, button.link__arrow-up:before {
    background-image: url('data:image/svg+xml,%3Csvg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_5047_7713)"%3E%3Cpath d="M1 8H15" stroke="%23fc5d5d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3Cpath d="M8 1L15 8L8 15" stroke="%23fc5d5d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id="clip0_5047_7713"%3E%3Crect width="16" height="16" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A');
    content: "";
    display: inline-block;
    height: 1rem;
    position: relative;
    top: 0.125rem;
    width: 1rem;
    min-width: 1rem;
    margin-right: 0.5rem
}

a.link__arrow-up:before, button.link__arrow-up:before {
    rotate: -90deg;
    top: 0.25rem
}

.nihr.bpor {
    @media(max-width: 991.98px) {
        .what-is-bpor-section {
            background-position-x: 710px;
            background-position-y: -225px;
            background-size: 410px;

            section {
                padding-right: 8em;
            }
        }

        .who-can-take-part-section {
            background-position: -190px;
            background-position-y: -154px;
            background-size: 310px;

            section {
                padding-left: 5em;
            }
        }

        .who-runs-bpor-section {
            background-position: 610px;
            background-position-y: -290px;
            background-size: 410px;
        }
    }

    @media (max-width: 767.98px) {
        .what-is-bpor-section {
            section {
                padding-right: 1em;
            }
        }

    }

    @media (max-width: 575.98px) {
        .what-is-bpor-section {
            background-image: none;

            section {
                padding-right: 1em;
            }
        }

        .who-can-take-part-section {
            padding-top: unset;
            background-image: none;

            section {
                padding-left: 1em;
            }
        }

        .who-runs-bpor-section {
            padding-top: unset;
            background-image: none;
        }
    }
}
