:root {
    --navy: #10263d;
    --blue: #1f6f9f;
    --teal: #50a6a6;
    --green: #78a943;
    --ink: #14202b;
    --muted: #5e6b75;
    --bg: #f5f8fa;
    --white: #fff;
    --shadow: 0 14px 34px rgba(16,38,61,.13);
    --radius: 18px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial,Helvetica,sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.45
}

a {
    color: inherit
}

.site-header {
    height: 72px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px,4vw,56px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 16px rgba(0,0,0,.18)
}

.logo img {
    height: 44px;
    width: auto;
    display: block
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #e8f3f7;
    font-size: 15px
}

    .site-header nav a {
        text-decoration: none;
        opacity: .95
    }

        .site-header nav a:hover {
            opacity: 1;
            text-decoration: underline
        }

.nav-cta {
    background: var(--green);
    padding: 10px 15px;
    border-radius: 999px;
    color: #092033 !important;
    font-weight: 700
}

.hero {
    min-height: 290px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('../assets/hero.jpg') center 45%/cover no-repeat;
    color: var(--white)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(10,27,45,.87),rgba(10,27,45,.62),rgba(10,27,45,.18))
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding: 28px clamp(24px,6vw,76px)
}

.eyebrow, .section-kicker {
    margin: 0 0 10px;
    color: var(--teal);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px
}

.hero .eyebrow {
    color: #bfe8e8
}

.hero h1 {
    font-size: clamp(36px,5vw,56px);
    line-height: 1;
    margin: 0 0 14px
}

.lead {
    font-size: clamp(17px,2vw,21px);
    max-width: 680px;
    margin: 0 0 16px;
    color: #edf7fb
}

.button {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    margin-right: 10px
}

    .button.primary {
        background: var(--green);
        color: #0d2235
    }

    .button.secondary {
        border: 2px solid rgba(255,255,255,.75);
        color: #fff
    }

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;
    background: #d9e3e8
}

    .proof-strip div {
        background: #fff;
        padding: 12px 18px;
        text-align: center
    }

    .proof-strip strong {
        display: block;
        color: var(--blue);
        font-size: 22px
    }

    .proof-strip span {
        display: block;
        color: var(--muted);
        font-size: 14px
    }

.section {
    padding: 32px clamp(22px,5vw,72px);
    max-width: 1240px;
    margin: 0 auto
}

    .section.compact {
        padding-top: 24px;
        padding-bottom: 24px
    }

.two-col {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: center
}

.section h2 {
    font-size: clamp(20px,3vw,30px);
    line-height: 1.08;
    margin: 0 0 14px;
    color: var(--navy)
}

.section p {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 12px
}

.formula-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    text-align: center;
    font-weight: 800
}

    .formula-card div, .formula-card strong {
        background: #fff;
        border-radius: 14px;
        padding: 10px 8px;
        color: var(--navy)
    }

    .formula-card span {
        font-size: 24px;
        color: var(--green)
    }

    .formula-card strong {
        grid-column: 1/-1;
        background: var(--navy);
        color: #fff;
        font-size: 24px
    }

.services-section {
    background: var(--bg);
    max-width: none
}

    .services-section > .section-head, .services-section > .cards {
        max-width: 1240px;
        margin-left: auto;
        margin-right: auto
    }

.section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 12px
}

    .section-head.narrow {
        margin-bottom: 10px
    }

.cards.three {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--teal)
}

    .card h3 {
        font-size: 22px;
        margin: 0 0 8px;
        color: var(--navy)
    }

    .card p {
        font-size: 16px;
        margin: 0
    }

.image-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

    .image-grid article {
        position: relative;
        min-height: 180px;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow);
        background: #111
    }

    .image-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        opacity: .78
    }

    .image-grid h3 {
        position: absolute;
        left: 18px;
        bottom: 14px;
        color: #fff;
        margin: 0;
        font-size: 25px;
        text-shadow: 0 2px 8px rgba(0,0,0,.55)
    }

.success-band {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
    align-items: center;
    background: var(--navy);
    color: #fff;
    max-width: none;
    margin: 0
}

    .success-band img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        border-radius: 0 18px 18px 0
    }

    .success-band h2, .success-band p {
        color: #fff
    }

.tick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px
}

    .tick-list span {
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.18);
        padding: 8px 12px;
        border-radius: 999px
    }

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.quote {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
    border-left: 6px solid var(--teal)
}

    .quote.employer {
        border-left-color: var(--green)
    }

    .quote p {
        font-size: 18px;
        color: var(--navy);
        margin: 0 0 10px
    }

    .quote strong {
        color: var(--muted)
    }

.contact-cta {
    background: linear-gradient(90deg,var(--blue),var(--navy));
    color: #fff;
    padding: 28px clamp(22px,5vw,72px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

    .contact-cta h2 {
        font-size: 30px;
        margin: 0 0 6px
    }

    .contact-cta p {
        margin: 0;
        color: #e8f3f7;
        max-width: 760px
    }

@media(max-width:860px) {
    .site-header {
        height: auto;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
        padding: 14px 20px
    }

        .site-header nav {
            flex-wrap: wrap;
            gap: 12px
        }

    .hero {
        min-height: 360px
    }

    .proof-strip, .cards.three, .image-grid, .two-col, .success-band, .testimonials {
        grid-template-columns: 1fr
    }

    .formula-card {
        grid-template-columns: 1fr
    }

        .formula-card span {
            display: none
        }

    .success-band img {
        border-radius: 0;
        height: 220px
    }

    .contact-cta {
        flex-direction: column;
        align-items: flex-start
    }
}

@media(max-width:520px) {
    .site-header nav a:not(.nav-cta):not([href="login.html"]) {
        display: none
    }

    .hero-content {
        padding: 30px 22px
    }

    .proof-strip div {
        padding: 14px
    }

    .section {
        padding-left: 18px;
        padding-right: 18px
    }

    .hero-actions .button {
        margin-bottom: 10px
    }

    .contact-cta h2 {
        font-size: 20px
    }
}


/* Framework additions */
.site-header nav {
    gap: 14px;
    font-size: 14px
}

    .site-header nav a[aria-current="page"] {
        text-decoration: underline
    }

.page-hero {
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--hero-img) center center/cover no-repeat;
    color: #fff
}

    .page-hero .hero-content {
        max-width: 860px
    }

.proof-big div {
    padding: 20px 18px
}

.proof-big strong {
    font-size: 30px
}

.alt-section {
    background: var(--bg);
    max-width: none
}

    .alt-section > * {
        max-width: 1240px
    }

.cards.four {
    display: grid;
    grid-template-columns: repeat(4,280px);
    gap: 16px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-cards .card {
    border-top-color: var(--green)
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.programme-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    border: 1px solid #e3edf2;
    border-top: 6px solid var(--blue)
}

    .programme-card span {
        display: inline-block;
        background: var(--navy);
        color: #fff;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 10px
    }

    .programme-card h3 {
        margin: 0 0 8px;
        color: var(--navy);
        font-size: 21px
    }

    .programme-card p {
        font-size: 16px
    }

    .programme-card a, .info-card a, .story-card a {
        font-weight: 800;
        color: var(--blue);
        text-decoration: none
    }

.cta-panel {
    background: linear-gradient(90deg,var(--blue),var(--navy));
    color: #fff;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

    .cta-panel h2, .cta-panel p {
        color: #fff;
        margin-bottom: 6px
    }

.rounded-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    max-height: 330px
}

.tick-list.dark span {
    background: #fff;
    color: var(--navy);
    border: 1px solid #dbe8ee
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.team-grid-centered {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

    .team-grid article {
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 20px;
        border-left: 6px solid var(--teal)
    }

    .team-grid h3 {
        margin: 0 0 6px;
        color: var(--navy)
    }

    .team-grid p {
        margin: 0;
        color: var(--muted)
    }

.story-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.story-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

    .story-card img {
        width: 100%;
        height: 190px;
        object-fit: cover
    }

    .story-card div {
        padding: 18px
    }

    .story-card h3 {
        font-size: 22px;
        margin: 0 0 8px;
        color: var(--navy)
    }

.quality-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

    .quality-points span {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        font-weight: 800;
        color: var(--navy);
        box-shadow: var(--shadow)
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border-top: 5px solid var(--green)
}

    .info-card h3 {
        margin: 0 0 8px;
        color: var(--navy)
    }

.login-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
    align-items: center
}

.login-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px
}

    .login-card h2 {
        margin-top: 0
    }

    .login-card label {
        display: block;
        font-weight: 800;
        color: var(--navy);
        margin: 0 0 14px
    }

    .login-card input {
        display: block;
        width: 100%;
        margin-top: 6px;
        padding: 12px;
        border: 1px solid #c9d6dd;
        border-radius: 10px;
        font-size: 16px
    }

.small-note {
    font-size: 13px !important;
    color: var(--muted) !important;
    margin-top: 12px !important
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

.form-status {
    min-height: 20px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 800
}

    .form-status[data-type="error"] {
        color: #b94a48
    }

    .form-status[data-type="success"] {
        color: var(--green)
    }

.portal-hero {
    min-height: 280px
}

.portal-shell {
    display: grid;
    grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr);
    gap: 24px;
    align-items: start
}

.portal-panel {
    background: #fff;
    border: 1px solid #dbe8ee;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px
}

.learner-panel {
    position: sticky;
    top: 96px
}

.portal-shell[data-view="ready"],
.portal-shell[data-view="quiz"],
.portal-shell[data-view="results"] {
    grid-template-columns: 1fr
}

    .portal-shell[data-view="ready"] .learner-panel,
    .portal-shell[data-view="quiz"] .learner-panel,
    .portal-shell[data-view="results"] .learner-panel {
        display: none
    }

.portal-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--navy);
    font-weight: 800
}

.portal-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #c9d6dd;
    border-radius: 6px;
    font-size: 16px
}

.portal-button {
    border: 0;
    cursor: pointer
}

.button.secondary.dark {
    border: 2px solid #c9d6dd;
    color: var(--navy);
    background: #fff;
    cursor: pointer
}

.tracking-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 18px 0
}

    .tracking-grid div {
        background: var(--bg);
        border: 1px solid #dbe8ee;
        border-radius: 8px;
        padding: 14px
    }

    .tracking-grid strong {
        display: block;
        color: var(--blue);
        font-size: 28px
    }

    .tracking-grid span {
        color: var(--muted);
        font-size: 14px
    }

.portal-topline,
.quiz-header,
.quiz-controls,
.attempt-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between
}

.attempt-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 18px 0
}

.activity-panel {
    border: 1px solid #dbe8ee;
    border-radius: 8px;
    background: var(--bg);
    padding: 18px;
    margin: 16px 0
}

    .activity-panel h3 {
        margin: 0 0 8px;
        color: var(--navy);
        font-size: 22px
    }

    .activity-panel p {
        margin-bottom: 12px
    }

.question-count-control {
    display: inline-grid;
    gap: 6px;
    margin: 8px 0 4px;
    color: var(--navy);
    font-weight: 800
}

    .question-count-control select {
        min-width: 190px;
        padding: 10px 12px;
        border: 1px solid #c9d6dd;
        border-radius: 6px;
        background: #fff;
        color: var(--ink);
        font-size: 16px
    }

.attempt-history {
    display: grid;
    gap: 10px
}

    .attempt-history article {
        display: grid;
        grid-template-columns: 90px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 12px;
        border: 1px solid #dbe8ee;
        border-radius: 8px;
        background: var(--bg)
    }

    .attempt-history strong {
        color: var(--blue);
        font-size: 22px
    }

    .attempt-history small,
    .review-item small {
        color: var(--muted)
    }

.quiz-score-pill {
    flex: 0 0 auto;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800
}

.quiz-category {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef7fb;
    color: var(--blue);
    border: 1px solid #cfe3ee;
    font-size: 14px;
    font-weight: 800
}

    .quiz-category[hidden] {
        display: none
    }

.review-category {
    margin: 0 0 8px
}

.quiz-options {
    border: 0;
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0
}

.quiz-option {
    display: grid;
    grid-template-columns: auto 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #c9d6dd;
    border-radius: 8px;
    cursor: pointer
}

    .quiz-option:has(input:checked) {
        border-color: var(--blue);
        background: #eef7fb
    }

    .quiz-option input {
        width: 18px;
        height: 18px
    }

    .quiz-option span {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: var(--navy);
        color: #fff;
        font-weight: 800
    }

    .quiz-option strong {
        color: var(--ink);
        font-weight: 700
    }

.quiz-controls button:disabled {
    cursor: not-allowed;
    opacity: .5
}

.results-summary {
    border-bottom: 1px solid #dbe8ee;
    margin-bottom: 16px
}

.review-list {
    display: grid;
    gap: 12px
}

.review-item {
    border: 1px solid #dbe8ee;
    border-left: 6px solid var(--green);
    border-radius: 8px;
    padding: 16px;
    background: #fff
}

    .review-item.is-incorrect {
        border-left-color: #b94a48
    }

    .review-item h3 {
        margin: 8px 0;
        color: var(--navy);
        font-size: 19px
    }

    .review-item p {
        margin: 0 0 8px;
        color: var(--muted)
    }

.review-head {
    display: flex;
    align-items: center;
    gap: 10px
}

    .review-head span {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--bg);
        color: var(--navy);
        font-weight: 800
    }

    .review-head strong {
        color: var(--navy)
    }

.contact-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px
}

.site-footer {
    background: var(--navy);
    color: #e8f3f7;
    padding: 34px clamp(22px,5vw,72px)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .6fr;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto
}

.footer-logo {
    height: 46px;
    width: auto
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 8px
}

.site-footer a {
    color: #fff
}

.site-footer p {
    margin: 0 0 10px;
    color: #dcebf0
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px
}

.policy-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border-top: 5px solid var(--green)
}

    .policy-card h3 {
        margin: 0 0 12px;
        color: var(--navy);
        font-size: 22px
    }

    .policy-card a {
        display: block;
        color: var(--blue);
        font-weight: 800;
        text-decoration: none;
        padding: 9px 0;
        border-top: 1px solid #dbe8ee
    }

        .policy-card a:hover {
            text-decoration: underline
        }

@media(max-width:1100px) {
    .site-header {
        height: auto;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
        padding: 14px 20px
    }

        .site-header nav {
            flex-wrap: wrap;
            gap: 10px
        }

    .programme-grid, .story-grid, .info-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .cards.four {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:760px) {
    .programme-grid, .story-grid, .info-grid, .team-grid, .footer-grid, .login-wrap, .cards.four, .quality-points {
        grid-template-columns: 1fr
    }

    .portal-shell,
    .tracking-grid {
        grid-template-columns: 1fr
    }

    .learner-panel {
        position: static
    }

    .portal-topline,
    .quiz-header,
    .quiz-controls {
        align-items: flex-start;
        flex-direction: column
    }

    .attempt-history article {
        grid-template-columns: 1fr
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start
    }

    .page-hero {
        min-height: 340px
    }
}
