﻿/* ---- Brand tokens (pulled from the Figma CSS variables) ---- */
:root {
    --brand-azure-40: #164DB7; /* primary buttons / links */
    --brand-azure-23: #002C77;
    --brand-navy: #00194B;
    --brand-violet-42: #623F99; /* hero background */
    --brand-grey-92: #D6DFFD; /* subscribe band / search button */
    --brand-grey-96: #F5F3F3;
    --brand-text: #1A181D;
    --brand-muted: #6A7282;
    --brand-slate: #474753;
    --brand-border: #E5E7EB;
}

/* BS4 has no CSS custom properties for body type — set it directly */
body {
    font-family: 'Kumbh Sans', system-ui, sans-serif;
    color: var(--brand-text);
}

/* Century Gothic was used for headings in the design */
.font-display {
    font-family: 'Century Gothic', 'URW Gothic', 'Questrial', sans-serif;
    font-weight: 700;
}

/* BS4 has no .container-xxl — this is the 1280px design canvas + 32px gutters */
.container-page {
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 575.98px) {
    .container-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* BS4 has no flex-gap utilities (added in BS5) — stand-ins for the ones used here */
.gap-1 {
    gap: .25rem;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

@media (min-width: 768px) {
    .gap-md-3 {
        gap: 1rem;
    }

    .gap-md-4 {
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .gap-lg-3 {
        gap: 1rem;
    }

    .gap-lg-4 {
        gap: 1.5rem;
    }
}

/* BS4 row gutters are 15px; restore the spacing g-4/g-5 gave us */
.row-gap > [class*="col-"] {
    margin-bottom: 1.5rem;
}

/* Header uses explicit margins rather than gap: the design calls for 32px
       between nav links and 16px between action items, and the collapsed
       (stacked) state needs spacing too. Identical on BS4 and BS5. */
.main-nav .nav-item + .nav-item {
    margin-top: 12px;
}

.nav-actions > * + * {
    margin-top: 12px;
}

@media (min-width: 992px) {
    .main-nav .nav-item + .nav-item {
        margin-top: 0;
        margin-left: 32px;
    }

    .nav-actions > * + * {
        margin-top: 0;
        margin-left: 16px;
    }
}

/* ---- Reusable pieces ---- */
.navbar-link {
    color: var(--brand-azure-40);
    font-weight: 500;
    text-decoration: none;
}

    .navbar-link:hover {
        text-decoration: underline;
    }

.btn-brand {
    background: var(--brand-azure-40);
    color: #fff;
    font-weight: 600;
}

    .btn-brand:hover {
        background: #0f3c93;
        color: #fff;
    }

.btn-brand-outline {
    border: 1px solid var(--brand-azure-40);
    color: var(--brand-azure-40);
    font-weight: 600;
}

    .btn-brand-outline:hover {
        background: var(--brand-azure-40);
        color: #fff;
    }

.btn-search {
    background: var(--brand-grey-92);
    color: var(--brand-azure-40);
    font-weight: 600;
    border: 0;
}

    .btn-search:hover {
        background: #c3d0fb;
        color: var(--brand-azure-40);
    }

.count-pill {
    background: var(--brand-grey-96);
    color: var(--brand-slate);
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    padding: 2px 8px;
}

.hero {
    background: var(--brand-violet-42);
}

    .hero h1 {
        color: var(--brand-grey-96);
        font-size: 52px;
        line-height: 60px;
    }

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 34px;
        line-height: 42px;
    }
}


/* ================= HERO SEARCH FIX ================= */

.hero-search-form {
    width: 100%;
    max-width: 672px;
    height: 56px;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.hero-search-left {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    display: flex;
    align-items: center;
    background: #ffffff !important;
}

.hero-search-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99A1AF;
    font-size: 16px;
    background: #ffffff !important;
}

.hero-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px !important;
    border: 0 !important;
    outline: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--brand-text);
    font-family: 'Kumbh Sans', system-ui, sans-serif;
    font-size: 14px;
    padding: 0 16px 0 0;
    margin: 0;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

    .hero-search-input:focus,
    .hero-search-input:active {
        border: 0 !important;
        outline: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
    }

    .hero-search-input::placeholder {
        color: #6A7282;
        opacity: 1;
    }

.hero-search-button {
    flex: 0 0 auto;
    height: 56px;
    padding: 0 24px;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: var(--brand-grey-92);
    color: var(--brand-azure-40);
    font-family: 'Kumbh Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

    .hero-search-button:hover,
    .hero-search-button:focus {
        background: #c3d0fb;
        color: var(--brand-azure-40);
        outline: 0;
    }

.hero-search-input:-webkit-autofill,
.hero-search-input:-webkit-autofill:hover,
.hero-search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--brand-text) !important;
    transition: background-color 9999s ease-out 0s;
}

/* ================================================ */

.colour-bar {
    height: 16px;
}

    .colour-bar > div {
        flex: 1 1 0;
    }

/* Job list */
.job-row {
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none;
    color: inherit;
}

    .job-row:last-child {
        border-bottom: 0;
    }

    .job-row:hover {
        background: #FAFBFC;
    }

.job-title {
    color: var(--brand-navy);
    font-size: 16px;
}

.job-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-navy);
    border-radius: 4px;
    padding: 2px 8px;
    line-height: 15px;
}

.job-meta {
    font-size: 12px;
    color: var(--brand-navy);
}

.job-desc {
    font-size: 12px;
    line-height: 24px;
    color: var(--brand-navy);
}

/* Filter sidebar */
.filter-card {
    width: 240px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .filter-card {
        width: 100%;
    }
}

.filter-card .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-slate);
}

.social-sq {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .social-sq:hover {
        background: rgba(255,255,255,.28);
        color: #fff;
    }

/* Footer: headings are Kumbh Sans 14/600 #141312, links are 13px #4A77A0 */
.footer-heading {
    color: #141312;
    font-size: 14px;
    font-weight: 600;
    line-height: 18.2px;
}

.footer-link {
    color: #4A77A0;
    font-size: 13px;
    line-height: 18.2px;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

/* Payment band + the 5px colour rule that sits on its top edge */
.payment-band {
    background: rgba(233, 236, 243, 0.50);
}

.payment-rule {
    height: 5px;
}

    .payment-rule > div {
        flex: 1 1 0;
    }

.legal-bar {
    background: #F5F5F5;
    border-top: 1px solid var(--brand-border);
}

.legal-text {
    color: #6D6968;
    font-size: 12px;
    line-height: 18px;
}

.legal-link {
    color: #6D6968;
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}

    .legal-link:hover {
        text-decoration: underline;
    }
.filterTitle {
    color: #005DAF;
    font-size: 18px;
    font-weight: 500;
}
.filter-group {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-text);
}
.form-check-input.jr {
    margin-top: .5rem !important;
    margin-left: -1.25rem !important;
}
.form-check-AllCat {
    font-size: 16px !important;
}