/* ---------- Fonts ---------- */

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica-Oblique.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

/* ---------- Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica", Arial, sans-serif;
    background: #ffffff;
    color: #003f63;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ---------- Layout ---------- */

.page {
    min-height: 100vh;
}

/* ---------- Header ---------- */

.header {
    height: 90px;
    border-bottom: 1px solid #e6e6e6;

    display: grid;
    grid-template-columns: 240px 1fr 240px;
    align-items: center;

    padding: 0 60px;
}

.header-logo {
    width: 260px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo svg {
    display: block;
}

/* ---------- Navigation ---------- */

.header-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.mobile-menu {
    display: none;
}

.nav-link {
    color: #013F5C;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    position: relative;
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -10px;

    width: 100%;
    height: 1px;

    background: #F37425;

    display: none;
}

.nav-link.active {
    color: #1D4F9F;
}

.nav-overview.active {
    color: #013F5C;

}

.nav-link:hover::after {
    display: block;
}

.nav-link.active::after {
    display: block;
}

/* Overview should not show active underline */

.nav-overview.active::after {
    display: none;
}

.nav-overview.active:hover::after {
    display: block;
}

.nav-overview {
    color: #013F5C;
}

/* ---------- Header Controls ---------- */

.header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.page-counter {
    color: #013F5C;
    font-size: 18px;
    font-weight: 400;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

/* ---------- Arrow Buttons ---------- */

.arrow-button {
    width: 48px;
    height: 48px;


    display: flex;
    align-items: center;
    justify-content: center;


    color: #D7E3F3;
    background: #ffffff;
    font-size: 20px;

    transition: all 0.2s ease;
}

.arrow-button:hover:not(:disabled) {
    cursor: pointer;
    color: #013F5C;
}

.arrow-button:disabled {
    cursor: default;
}

.arrow-button:disabled svg path {
    stroke: #D7E3F3;
}


.arrow-button svg path {
    stroke: #D7E3F3;
}

.arrow-button:hover svg path {
    stroke: #013F5C; /* your hover color */
}
/* ---------- Content ---------- */

.content {
    width: 100%;
}

.page-section {
    display: none;
}

.page-section.active-section {
    display: block;
}

.section-container {
    max-width: 100vw;
    margin: 0 auto;
    /*padding: 80px 60px;*/
}

.section-container :is(h1, h2) {
    font-size: 48px;
    font-weight: 700;

}

.overview-box {
    display: flex;
    gap: 140px;
    padding: 0 40px;
    width: 100%;

}

.overview-box > .left-box {
    flex: 1;

    margin-top: clamp(80px, 12vh, 220px);
    margin-bottom: clamp(85px, 6vh, 120px);
}

.overview-box > .right-box {
    margin-top: 50px;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 20px;

    margin-bottom: 50px;
}

/* ---------- Shared Card Styles ---------- */

.overview-box > .right-box > .inappropriate-referrals,
.overview-box > .right-box > .waiting-time,
.overview-box > .right-box > .savings {
    flex: 1;

    display: flex;
    align-items: center;

    border-radius: 15px;

    padding:
        clamp(28px, 2.5vh, 70px)
        36px;

    transition: border-color 0.5s ease;


}

.overview-box > .right-box > .inappropriate-referrals,
.overview-box > .right-box > .waiting-time {
    background: #F3F7FB;
    border: 1px solid #D7E3F3;

}

.overview-box > .right-box > .savings {
    background: #FFF7ED;
    border: 1px solid #FCD2B3;
}

/* ---------- Icon Column ---------- */

.icon-column {
    width: 140px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-right: 1px solid #D7E3F3;

    padding-right: 28px;
    margin-right: 28px;

    flex-shrink: 0;
}

.savings .icon-column {
    border-right-color: #FCD2B3;
}

/* ---------- Icon Box ---------- */

.image {
    width: 90px;
    height: 90px;

    background: #FFFFFF;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D7E3F3;
    transition: border-color 0.5s ease;
}

.image svg {
    width: 48px;
    height: 48px;
}

/* ---------- Content ---------- */

.content-column {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat {
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    color: #F37425;
}

.title {

    font-size: 16px;
    line-height: 24px;
    font-weight: 700;

    color: #013F5C;
}

.card-divider {
    width:41px;
    height: 1px;

    border: none;

    background: #D7E3F3;

    margin: 4px 0;
}

.savings .card-divider {
    background: #FCD2B3;
}

.savings .image {
    border-color: #FCD2B3;
}

.description {
    font-size: 12px;
    line-height: 18px;

    color: #013F5C;
}

.heading-box .blue-heading {
    font-size: 68px;
    font-weight: 700;
    line-height: 76px;
    color: #1D4F9F;
}

.heading-box .orange-heading {
    font-size: 68px;
    font-weight: 700;
    line-height: 76px;
    color: #F37425;
}

.overview-box > .left-box > .heading-box {

    width: calc(100% - 100px);
}

.overview-hr {
    margin: 30px 0;
    width: 60px;

    border: none;
    height: 1px;

    background-color: #D7E3F3;
}

.overview-box > .left-box > .overview-p-box {
    font-size: 22px;
    width: calc(100% - 70px);
    line-height: 28px;
}

.quote-box {
    position: relative;
    overflow: hidden;

    margin: 0 40px 40px;

    background-color: #013F5C;
    border-radius: 15px;

    display: flex;
    align-items: center;

    padding:
        clamp(40px, 6vh, 100px)
        50px;
}

.quote-box::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../images/dots.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 45%;

    opacity: 0.15;

    pointer-events: none;
}

.quote-mark,
.quote-text {
    position: relative;
    z-index: 1;
}

.quote-box {
    display: flex;
    align-items: flex-start;
}

.quote-mark {
    margin-right: 40px;
    margin-top: 8px;
}

.quote-mark svg {
    display: block;
    width: 50px;
    height: auto;
}

.quote-mark svg path {
    fill: #006C93;
}



.quote-text {
    color: #FFFFFF;

    font-size: 18px;
    line-height: 26px;

    max-width: 1100px;
}

.highlight {
    color: #F37425;
    font-weight: 700;
}


/*Case Study*/
.case-main-body {
    display: flex;
    gap: 24px;
    margin: 40px;
}

.case-left {
    flex: 5;
    padding: 10px;

    .case-problem-title {
        font-size: 16px;
        text-transform: uppercase;
        font-weight: 700;
        line-height: 24px;
        color: #F37425;
        margin-bottom: 13px;
        transition: border-color 0.5s ease;
        letter-spacing: 0.08px;

    }

    .case-blue-heading {
        font-size: 44px;
        line-height: 52px;
        color: #1D4F9F;
        font-weight: 700;
    }

    .case-orange-heading {
        font-size: 44px;
        line-height: 52px;
        color: #F37425;
        font-weight: 700;
    }

    .case-main-copy {
        color: #013F5C;
        font-size: 16px;
        font-weight: 400;
        margin-top: 30px;
        margin-bottom: 50px;
        line-height: 24px;
    }

    .case-main-copy > strong {
        font-weight: 700;
    }

    .problems-tiles {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .problem-tile {
        display: flex;
        align-items: center; /* vertically centers image and text */
    }

    .problem-tile-image-box {
        width: 60px;
        height: 60px;

        flex-shrink: 0;

        background: #F3F7FB;
        border: 1px solid #D7E3F3;
        border-radius: 15px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-right: 15px;
        transition: border-color 0.5s ease;

        svg path {
            transition: stroke 0.5s ease;
        }
    }

    .problem-tile-description {
        display: flex;
        justify-content: center; /* vertically centers text block */
        min-height: 60px;    /* same height as icon box */
        flex-direction: column;
        gap: 5px;

    }

    .problem-tile-description p {
        margin: 0;

        color: #013F5C;
        font-size: 12px;
        line-height: 18px;

    }

    .problem-tile-description strong {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 200px;
    }


}

.case-middle {
    flex: 4;
    border: 1px solid #D7E3F3;
    border-radius: 15px;
    transition: border-color 0.5s ease;

}

.case-study-tile {
    background: #013F5C;
    border-radius: 14px 0 14px 0;
    height: 45px;
    color: #fff;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.case-study-body {
    margin: 24px 30px;
    padding-right: 30px;
    color: #1D4F9F !important;
    font-weight: 700;
}

.case-study-body > p {
    font-size: 18px;
    line-height: 24px;
}

.case-stat-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 30px;

}

.case-stat-card {
    display: flex;
    align-items: center;

    min-height: 64px;

    border-radius: 15px;

    padding: 12px 30px; /* 30px left/right */
}

.case-stat-card.blue {
    background: #F3F7FB;
    border: 1px solid #D7E3F3;
}

.case-stat-card.orange {
    background: #FFF7ED;
    border: 1px solid #FCD2B3;
}

.case-stat-icon-column {
    width: 78px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-right: 18px;
    margin-right: 18px;

    border-right: 1px solid #D7E3F3;

    flex-shrink: 0;
}

.case-stat-icon {
    width: 56px;
    height: 56px;

    padding: 13px; /* 13px white space around icon */

    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #D7E3F3;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-stat-card.orange .case-stat-icon {
    border-color: #FCD2B3;
}
.case-stat-icon svg {
    width: 30px;
    height: 30px;
}

.case-stat-card.orange .case-stat-icon-column {
    border-right-color: #FCD2B3;
}
.case-stat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-stat-value {
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
}

.case-stat-card.blue .case-stat-value {
    color: #1D4F9F;
}

.case-stat-card.orange .case-stat-value {
    color: #F37425;
}

.case-stat-description {
    font-size: 13px;
    line-height: 18px;
    margin-top: 2px;

    color: #013F5C;
}


.case-right {
    flex: 3;
    border: 1px solid #D7E3F3;
    background-color: #F3F7FB;
    border-radius: 15px;
    transition: border-color 0.5s ease;


}

.right-content {
    margin: 30px;
}

.right-heading {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: #1D4F9F !important;
}

.right-underline {
    margin-top: 15px;
    margin-bottom: 60px;
    border: 1px solid #F37425;
    text-decoration: none;
    width: 60px;
}

.right-tiles {
    display: flex;
    flex-direction: column;
}

.right-tile {
    display: flex;
    align-items: center; /* centers whole tile between separators */
    min-height: 90px;
}

.right-tile-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.right-tile-image-box {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    background: #fff;
    border: 1px solid #D7E3F3;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 15px;
}

.right-tile-separator {
    margin: 30px 0;
    border: 0.5px solid #D7E3F3;
    text-decoration: none;
}


.right-tile-text > p {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;

}

.right-tile-text > p > strong {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.case-study-footer {
    margin: 40px;

    background: #F3F7FB;
    border: 1px solid #D7E3F3;
    border-radius: 15px;

    display: flex;
    align-items: center;

    padding: 15px 0;
}
.case-study-footer-left {
    flex: 3;

    display: flex;
    align-items: center;

    padding-right: 30px;
    margin-right: 30px;

}
.case-study-footer-left {
    flex: 3;

    display: flex;
    align-items: center;
    margin-right: 0;
    padding-right: 0;
}

.footer-divider {
    width: 1px;
    height: 90px;

    background: #D7E3F3;

    margin: 0 60px;

    flex-shrink: 0;
}

.case-study-footer-right {
    flex: 2;

    display: flex;
    align-items: center;
    margin-right: 50px;
}

.case-study-footer-left-image {
    margin: 30px 50px;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #D7E3F3;
    border-radius: 15px;
}

.case-study-footer-left-image > svg {
    width: 70px;
    height: 70px;
    margin: 15px;
}

.case-study-footer-left-body {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex: 1;
}

.case-study-footer-left-body > :is(h1, h2) {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: #013F5C;
    margin-bottom: 15px;
}

.case-study-footer-left-body > p {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.case-study-footer-left-body > p > strong {
    font-weight: 700;
}

.h1-span {
    color: #F37425;
}


.case-study-footer-right {
    flex: 2;

    display: flex;
    align-items: flex-start;

    gap: 25px;
}

.quote-icon {
    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
}

.quote-icon svg {
    width: 50px;
    height: auto;
}

.quote-content {
    display: flex;
    flex-direction: column;
}

.quote-copy {
    font-size: 15px;
    line-height: 24px;

    font-weight: 300;

    color: #013F5C;

    margin-bottom: 18px;
    font-style: italic;
}

.quote-author {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;

    color: #013F5C;
}

.main-features-container {
    padding: 40px;
    display: flex;
    gap: 140px;
    padding-bottom: 0;
}

.features-left {
    flex: 3;
}

.features-left-title {
    color: #F37425;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700 !important;
    line-height: 24px;
    margin-bottom: 15px;
    letter-spacing: 0.08px;
}

.features-left > :is(h1, h2) {
    font-size: 44px;
    line-height: 52px;
    font-weight: 700;
    color: #1D4F9F;
    margin-bottom: 30px;

}

.h1-orange {
    color: #F37425;
}

.features-left > p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.features-left > p > strong {
    font-weight: 700;
}

.features-right {
    flex: 7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #F3F7FB;
    border: 1px solid #D7E3F3;
    border-radius: 15px;

    padding: 20px 24px;
    transition: border-color 0.5s ease;


}

.feature-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 10px;

    margin-bottom: 20px;
}

.feature-top h3 {
    margin: 0;

    color: #013F5C;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;

    color: #013F5C;
    font-size: 12px;
    line-height: 18px;
}

.feature-card p strong {
    font-weight: 700;
}

.features-grey-footer {
    display: flex;
    padding: 30px 50px;
    margin: 40px 40px 20px 40px;
    background: #F3F7FB;
    border: 1px solid #D7E3F3;
    border-radius: 15px;
}

.features-grey-footer-left {
    flex: 1;
    border-right: 1px solid #D7E3F3;
    display: flex;
    padding-right: 40px;

}

.features-grey-footer-right {
    flex: 1;
    padding-left: 40px;
    display: flex;
    gap: 24px;
}

.features-grey-footer-left-icon {
    margin-right: 30px;
}

.features-grey-footer-left-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-grey-footer-left-body > p {
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    font-style: italic;
}

.features-grey-footer-left-body > p > strong {
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    font-style: normal;

}

.features-grey-footer-right-tile {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;

}

.features-grey-footer-right-tile-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.features-grey-footer-right-tile-header {
    text-align: center;
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
}

.features-grey-footer-right-tile-body {
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.features-blue-footer {
    background: #013F5C;
    border-radius: 15px;
    display: flex;
    padding: 40px;
    margin: 0 40px;
    gap: 0;
}
.footer-blue-left {
    display: flex;
    gap: 0;
}

.footer-blue-left-icon {
    border-right: 1px solid #006C93;

    padding-right: 25px;
    margin-right: 25px;
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.footer-blue-left-text {
    flex: 18;
    display: flex;
    gap: 0;
}

.footer-blue-left-text-body {
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;

}
.footer-blue-left-text-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-blue-left-text-body > strong {
    font-weight: 700;
    color: #F37425;


}

.footer-blue-left-text > .logos {
    display: flex;
    gap: 60px;
    flex: 1;
    padding-left: 75px;
}

.nhs, .gp-practices, .pcn {
    flex: 1;
    color: #fff;
    text-align: center;
    align-content: center;
}

.gp-1, .pcn-1 {
    color: #fff;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
}

.gp-2, .pcn-2, .comm-2 {
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    line-height: 14px;
}

.community {
    flex: 1;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.comm-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
}


/*Impact Card*/
.impact-main-section {
    padding: 40px;
    display: flex;
    gap: 25px;
}

.impact-main-left {
    flex: 2;
}

.impact-left-title {
    color: #F37425;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.impact-left-main {
    padding-right: 150px;
    margin-top: 15px;

    :is(h1, h2) {
        font-size: 44px;
        line-height: 52px;
        font-weight: 700;
        color: #1D4F9F;
    }

    :is(h1, h2) > span {
        color: #F37425;
    }

    p {
        margin-top: 30px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }

    p > strong {
        font-weight: 700;
    }

    img {
        margin-top: 50px;
    }

}



.impact-main-right {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.impact-card {
    background: #F3F7FB;
    border: 1px solid #D7E3F3;
    border-radius: 15px;

    padding: 20px;
}

.impact-top {
    display: flex;
    align-items: flex-start;


    margin-bottom: 15px;
}

.impact-card > h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.impact-card > p {
    margin: 0;

    color: #013F5C;
    font-size: 12px;
    line-height: 18px;
}

.impact-card > p > strong {
    font-weight: 700;
}

.impact-footer {
    margin: 40px;
    background-color: #F3F7FB;
    border: 1px solid #D7E3F3;
    border-radius: 15px;
    padding: 40px;
    display: flex;
}

.impact-footer-left {
    flex: 10;
    border-right: 1px solid #D7E3F3;
    display: flex;

}

.impact-footer-left-body > :is(h1, h2) {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 15px;

    span {
        color: #F37425;
    }
}
.impact-footer-left-body {
    margin-left: 40px;
    padding-right: 50px;

}

.impact-footer-left-body > p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;

    strong {
        font-weight: 700;
    }
}

.impact-footer-right {
    flex: 9;
    padding-left: 50px;
    display: flex;
    gap: 50px;
}

.impact-footer-right-card {
    display: flex;
    flex-direction: column;
    flex: 1;

    align-items: center;

    p {
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
        text-align: center;

    }

    h3 {
        font-size: 16px;
        line-height: 28px;
        font-weight: 700;
        margin-top: 10px;
        text-align: center;
    }
}

.contact-main {
    padding: 40px 40px 0 40px;
    display: flex;
    gap: 25px;
}

.contact-main-left {
    flex: 1;
    background: #013F5C;
    color: #fff;
    border-radius: 15px;
    padding: 40px;

    position: relative;
    overflow: hidden;



    :is(h1, h2) {
        margin-top: 15px;
        color: #fff;
        font-size: 28px;
        line-height: 36px;
        font-weight: 700;
        margin-bottom: 30px;
    }

    p {
        color: #fff;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }

    p > strong {
        font-weight: 700;
    }
}

.contact-main-left > *,
.contact-main-right > * {
    position: relative;
    z-index: 1;
}

.contact-main-left::after, .contact-main-right::after{
    content: "";
    position: absolute;

    width: 150%;
    height: 150%;

    right: -500px;
    bottom: -250px;

    background-image: url("../images/source_lines.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;

    transform: scaleX(-1);
    pointer-events: none;
    z-index: 0;


}

.contact-main-left::after {
    opacity: 0.15;
}


.contact-main-left,
.contact-main-right {
    position: relative;
    overflow: hidden;
}

.contact-main-right {
    flex: 1;
    border: 1px solid #D7E3F3;
    background: #F3F7FB;
    border-radius: 15px;
    padding: 40px;

    position: relative;
    overflow: hidden;

    :is(h1, h2) {
        margin-top: 15px;
        color: #013F5C;
        font-size: 28px;
        line-height: 36px;
        font-weight: 700;
        margin-bottom: 30px;
    }

    p {
        color: #013F5C;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }

    p > strong {
        font-weight: 700;
    }

}

.contact-main-left-title, .contact-main-right-title {
    color: #F37425 !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    font-size: 16px;
    line-height: 24px;
}

.contact-main-left-footer, .contact-main-right-footer {
    display: flex;
    margin-top: 30px;
}

.demonstration-button {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    height: 35px;
}

.booking-button {
    color: #fff;
    background: #F37425;
    border-radius: 5px;
    border: none;
    height: 40px;
}
.message-button span {
    display: block;
}

.booking-button:hover {
    background: #013F5C;
}
.calculator-icon, .message-icon {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.request-button, .book-button {
    border-radius: 5px;
    border: 1px solid #fff;
    padding: 10px 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    height: 40px;


}

.message-button {
    border-radius: 5px;
    /*border: 1px solid #fff;*/
    padding: 10px 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    height: 100%
}

.message-button {
    text-decoration: none;
    color: #fff;
}

.request-button, .message-button > span {
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.5s ease;
}

.request-button svg {
    display: block;
}

.message-button:hover {
    background: #013F5C;
}

.request-button:hover {
    background: #fff;
    span {

        color: #F37425 !important;
    }

}

.contact-footer-1 {
    margin: 25px 40px;
    border: 1px solid #D7E3F3;
    background-color: #F3F7FB;
    padding: 40px;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: flex-start;
}

.contact-footer-1-left {
    flex: 4;
    /*margin-right: 40px;*/
    border-right: 1px solid #D7E3F3;
    display: flex;
    gap: 20px;
}

.contact-footer-1-right {
    flex: 5;
}

.contact-footer-2 {
    margin: 15px 40px 40px 40px;
    border: 1px solid #D7E3F3;
    background-color: #F3F7FB;
    padding: 40px;
    display: flex;
    border-radius: 15px;
}

.contact-footer-2-left {
    flex: 5;
    margin-right: 60px;
    border-right: 1px solid #D7E3F3;
    display: flex;

    :is(h1, h2) {
        color: #013F5C;
        font-size: 36px;
        line-height: 44px;
        font-weight: 700;
        /*margin-right: 20px;*/

        .orange-head {
            color: #F37425;
        }
    }
}

.contact-footer-2-right {
    flex: 15;
    display: flex;
    /*padding: 0 40px;*/
    align-items: center;
    gap: 40px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-card-icon {
    background-color: #1D4F9F;
    padding: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    border-radius: 15px;
}
.contact-orange-title {
    color: #F37425 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card-body a,
.contact-card-body span,
.contact-orange-title {
    text-align: left;
    color: #013F5C;
    text-decoration: none !important;
}

.clipboard-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #D7E3F3;
    align-self: center;
    border-radius: 15px;
}

.contact-footer-1-left-content {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.contact-footer-1-left-content > p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #013F5C;
}

.contact-footer-1-left-content > p > strong {
    color: #F37425;
    font-weight: 700;
}

.contact-footer-1-right {
    display: flex;
    padding: 0 0 0 40px;
}

.contact-footer-1-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 0 5px;
    justify-content: flex-start;

    h3 {
        font-size: 16px;
        line-height: 18px;
        font-weight: 700;
        text-align: center;

    }

    p {
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
        text-align: center;

    }
}

.mobile-header {
    display:none;
}

.mobile-footer {
    display: none;
}

@media (max-width: 1260px) {

    .mobile-header {
        display: flex;

        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        height: 100px;
        z-index: 9999;
        background-color: #fff;
        border-bottom: 0.5px solid #D7E3F3;
    }


    .mobile-footer {
        display: block;

        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;

        height: 90px;

        background: #fff;
        z-index: 9998;
        width: 100vw;

    }

    .mobile-footer .page-counter {
        position: absolute;
        left: 50%;
        top: 50%;

        transform: translate(-50%, -50%);
    }

    .mobile-footer #previous-mobile {
        position: absolute;

        left: 30px;
        top: 50%;

        transform: translateY(-50%);
    }

    .mobile-footer #next-mobile {
        position: absolute;

        right: 30px;
        top: 50%;

        transform: translateY(-50%);
    }

    main,
    .content,
    .page-container {
        /*padding-top: 40px;*/
        padding-bottom: 90px;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .mobile-header-main {
        display: flex;
        padding: 40px 24px 24px 24px;
        width: 100vw;
        height: 100px;
    }

    .mobile-header-main-left {
        display: flex;
        justify-content: flex-start;
        flex: 1;
    }

    .mobile-header-main-right {
        display: flex;
        justify-content: flex-end;
        flex: 1
    }


    .mobile-nav-link {
        background: none;
        border: none;
        cursor: pointer;

        font-size: 24px;
        font-weight: 500;
        line-height: 1;
        margin-left: 0;
        padding-left: 0;

        color: #013F5C;

        transition: opacity 0.2s ease;
    }

    .mobile-nav-link:hover {
        opacity: 0.7;
    }

    .mobile-nav-link.active {
        color: #F37324;
    }

    .blue-heading, .orange-heading {
        font-size: 36px !important;
        line-height: 44px !important;
    }

    .overview-box {
        margin-top: 0;
        /*padding-top: 0 !important;*/
        flex-direction: column;
        margin-bottom: 0;
        gap: 40px;
        padding: 0 24px 24px 24px;
    }

    .overview-box > .right-box {
        margin-top: 0;
    }

    .overview-box > .left-box {
        margin-top: 50px;
        margin-bottom: 0;
    }

    .overview-box > .left-box > .heading-box {

        width: 100%
    }

    .overview-box > .left-box > .overview-p-box {
        width: 100%;

    }

    .overview-box {
        margin-bottom: 40px;
        padding-bottom: 0 !important;
    }
    .quote-box {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin: -24px 24px 24px 24px;
    }

    .quote-box::after {
        content: "";

        position: absolute;
        inset: 0;

        background-image: url("../images/dots.png");
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: 150%;

        opacity: 0.15;

        pointer-events: none;
    }
    @media (max-width: 1260px) {

        html,
        body {
            overflow-x: hidden;
            width: 100%;
        }

    }

    .overview-p-box > p{
        font-size: 22px;
        line-height: 28px !important;
    }

    .case-main-body {
        display: flex;
        flex-direction: column;
        margin: 40px 24px 24px 24px;
        gap: 40px;
    }

    .case-left {
        padding: 0;
    }

    .case-study-footer {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 !important;
        margin: 40px 24px 0 24px;
    }

    .footer-divider {
        height: 1px;
        width: calc(100% - 80px);
    }

    .case-study-footer-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 40px 40px 0 40px;

    }



    .case-study-footer-left-image {
        display: flex;
        justify-content: flex-start;
        margin: 0;

    }

    .case-stat-description {
        font-size: 12px;
        line-height: 18px;
    }

    .case-study-footer-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 0 40px 40px 40px;
        margin-right: 0;
    }

    .quote-icon {
        display: flex;
        justify-content: flex-start;
        margin: 0;
    }

    .main-features-container {
        display: flex;
        flex-direction: column;
        padding: 40px 24px 24px 24px;
        gap: 40px;
    }

    .case-blue-heading, .case-orange-heading {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .case-main-copy {
        font-size: 14px !important;
        line-height: 22px !important;
        margin-bottom: 40px !important;
    }

    .features-right {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 137px;
    }

    .case-study-footer-left-image > svg {
        height: 50px;
        width: 50px;
    }

    .features-grey-footer {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin: 24px;
        padding: 40px;
    }

    .features-grey-footer-left {
        border-right: none !important;
        border-bottom: 1px solid #D7E3F3;
        padding-right: 0;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
    }

    .features-grey-footer-right {
        display: flex;
        flex-direction: column;
        gap: 24px;

    }

    .features-grey-footer-left-body > p{
        margin-top: 20px !important;
    }

    .features-blue-footer {
        padding: 40px;
        margin: 40px 24px 24px 24px;
    }

    .footer-blue-left {
        flex-direction: column;
        gap: 30px;
    }

    .features-grey-footer-right {
        gap: 24px;
        padding: 0;
    }


    .footer-blue-left-icon {
        border-right: none;

        padding-right: 0;
        margin-right: 0;
    }

    .clipboard-icon {
        display: flex;
        align-self: flex-start;

    }

    .contact-footer-1-card {
        padding: 0;
    }

    .clipboard-icon > svg{
        height: 50px;
        width: 50px;
    }

    .footer-blue-left-text {
        flex-direction: column;
        gap: 40px;
    }

    .footer-divider {
        margin: 10px 0 !important;
    }
    .footer-blue-left-text-left {
        width: 100%;
    }

    .contact-footer-1-left {
        padding-right: 0 !important;
    }

    .footer-blue-left-text-body {
        text-align: left;
    }

    .contact-footer-1-right {
        gap: 40px;
        padding: 0;
    }

    .contact-footer-1-left-content {
        padding: 0;
        margin: 0;
    }

    .contact-footer-2-left {
        padding-right: 0 !important;
        margin-right: 0;
    }
    .footer-blue-left-text > .logos {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 30px 20px;

        padding-right: 0;
        padding-left: 0;

        width: 100%;
        margin-top: 20px;
    }

    .nhs,
    .gp-practices,
    .pcn,
    .community {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        text-align: center;
    }

    .nhs svg {
        max-width: 100px;
        height: auto;
    }

    .footer-blue-left-text-left {
        border-top: 1px solid #006C93;
        padding-top: 20px;
    }

    .impact-main-section {
        display: flex;
        flex-direction: column;
        padding: 40px 24px 0 24px;

    }

    .impact-left-main {
        padding-right: 0 !important;
    }

    .impact-main-right {
        grid-template-columns: repeat(1, 1fr);
        gap: 14px;
    }

    .impact-footer {
        margin: 40px 24px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 50px;
        padding: 24px;
    }

    .impact-footer-left {
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #D7E3F3;
        display: flex;
        flex-direction: column;
        padding-bottom: 50px;
    }

    .impact-footer-left-body {
        padding-left: 0;
        padding-top: 30px;
        margin-left: 0;
        padding-right: 0;
    }

    .impact-footer-right {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .contact-main {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 40px 24px 0 24px;
    }

    .contact-main-left-footer,
    .contact-main-right-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .demonstration-button,
    .booking-button {
        width: 100%;
    }

    .request-button,
    .message-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .message-button-icon,
    .message-icon {
        margin: 0;
        padding: 0;
    }

    .contact-footer-1, .contact-footer-2 {
        display: flex;
        flex-direction: column;
        margin: 40px 24px 0 24px;
    }

    .contact-footer-1-left, .contact-footer-2-left {
        border-right: none !important;
        border-bottom: 1px solid #D7E3F3;
        padding-bottom: 40px;
    }

    .contact-footer-1-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
        margin-right: 0;
        border-bottom: 1px solid #D7E3F3;
    }

    .contact-footer-1-left-content {
        padding-right: 0;
    }

    .contact-footer-1-right {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        padding-top: 40px;
    }

    .contact-card {
        flex: none;
        width: 100%;

        display: flex;
        align-items: center;
        gap: 20px;

        margin: 0;
        padding: 0;
    }

    .contact-footer-2-right {

        padding: 40px 0 0 0 !important;

        margin: 0 !important;

        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .contact-card-icon {
        margin-left: 0 !important;
    }

    .stat {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .title {
        font-size: 12px !important;
        line-height: 20px !important;
    }

    .contact-footer-1 {
        padding: 40px 30px;
    }


    .overview-box > .right-box > .inappropriate-referrals,
    .overview-box > .right-box > .waiting-time,
    .overview-box > .right-box > .savings {
        align-items: flex-start;
        padding: 20px;
        margin-bottom: 0;
    }

    .icon-column {
        width: auto;
        border-right: none;
        padding-right: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .arrow-button > svg {
        path {
            stroke: #D7E3F3 !important;
        }
    }

    .arrow-button:hover > svg {
        path {
            stroke: #D7E3F3 !important;
        }
    }


    .image {
        width: auto;
        height: auto;
        padding: 15px;
    }

    .image svg {
        width: 48px;
        height: 48px;
    }

    .content-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-divider {
        margin: 4px 0;
    }

    .feature-top {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 1260px) {

    .mobile-menu {
        position: fixed;
        inset: 0;

        display: none;
        flex-direction: column;

        background: #1D4F9F;
        z-index: 9999;
    }

    .mobile-menu.open {
        display: flex;
    }



    .mobile-menu-header {
        display: flex;

        padding: 40px 24px 24px 24px;

        width: 100vw;
        height: 100px;

        background: #fff;

        align-items: center;
        justify-content: space-between;

        flex-shrink: 0;
    }

    .mobile-menu-logo {
        width: 180px;
        height: auto;
    }
    .mobile-menu-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;

        display: flex;
        flex-direction: column;

        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0; /* important */
        overflow-y: auto;
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-nav {
        padding: 0 24px;
    }

    .mobile-nav-link {
        width: 100%;

        display: flex;
        align-items: center;

        padding: 20px 0;

        border-bottom: 1px solid rgba(255,255,255,0.45);

        color: #fff;
    }

    .mobile-nav-number {
        width: 64px;
        margin-left: -15px;
        font-size: 20px;
        line-height: 26px;
        font-weight: 300;

        color: #fff;
        padding-left: 0;
    }

    .mobile-nav-text {
        font-size: 24px;
        line-height: 32px;
        font-weight: 700;
        letter-spacing: 2.8px;
    }

    .mobile-nav-link.active .mobile-nav-text {
        color: #F37425;
    }

    .mobile-menu-contact {
        margin-top: 0;

        padding: 40px 24px;

        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 24px;


        color: #fff;
        text-decoration: none;

        font-size: 12px;
    }

    .mobile-contact-icon {
        width: 40px;
        height: 40px;

        background: rgba(255,255,255,0.85);
        border-radius: 15px;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;
    }
}


/* ===== Consolidated from temp.css (hover/transition styles, de-nested) ===== */
.inappropriate-referrals:hover, .waiting-time:hover { border: 1px solid #1D4F9F !important; }
.inappropriate-referrals:hover .image, .waiting-time:hover .image { border: 1px solid #1D4F9F !important; }
.savings:hover { border: 1px solid #F37425 !important; }
.savings:hover .image { border: 1px solid #F37425; }
.problem-tile:hover .problem-tile-image-box { border: 1px solid #1D4F9F !important; }
.problem-tile:hover .problem-tile-image-box svg path { stroke: #F37425 !important; }
.case-middle:hover { border: 1px solid #1D4F9F; }
.case-right:hover { border: 1px solid #1D4F9F; }
.feature-card:hover { border: 1px solid #1D4F9F !important; }
.feature-card:hover .feature-icon > svg path { stroke: #f37425 !important; }
.feature-icon { transition: border-color 0.5s ease; }
.features-grey-footer-right-tile-icon svg path { transition: border-color 0.5s ease; }
.features-grey-footer-right-tile:hover .features-grey-footer-right-tile-icon svg path { stroke: #f37425 !important; }
.impact-card { transition: border-color 0.5s ease; }
.impact-card .impact-top svg path { transition: border-color 0.5s ease; }
.impact-card:hover { border: 1px solid #1D4F9F; }
.impact-card:hover .impact-top svg path { stroke: #f37425 !important; }
.impact-footer-right-card { transition: border-color 0.5s ease; }
.impact-footer-right-card svg path { transition: border-color 0.5s ease; }
.impact-footer-right-card:hover svg path { stroke: #f37425 !important; }
.contact-footer-1-card svg path { transition: border-color 0.5s ease; }
.contact-footer-1-card:hover svg path { stroke: #f37425 !important; }
