html {
    font-size: 14px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* Theme tokens */
:root {
    --indigo: #0a4b84;
    --ink: #1b3554;
    --text: #0e2239;
    --muted: #4b5e79;
    --card-border: #eaf0f6;
    --shadow-soft: 0 12px 28px rgba(13,48,94,.08);
    --shadow-soft-lg: 0 20px 44px rgba(13,48,94,.08);
}

.required-indicator {
    color: #B91C1C;
    font-weight: bold;
}

legend.form-label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 15px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn-outline-primary {
    color: #004085;
    border-color: #004085;
    background-color: #f8f9fa;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #004085;
    color: #ffffff;
    border-color: #003366;
}

/* Breadcrumb container beside header */
.breadcrumb-nav {
    max-width: 1180px;
    margin: 20px auto 14px;
    background: linear-gradient(90deg, #f8faff 0%, #f2f7ff 100%);
    padding: 10px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: 15px;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">>";
    margin: 0 8px;
    color: #0056b3;
    font-weight: 600;
    opacity: 0.8;
}

.breadcrumb-item a { 
    text-decoration: none;
    color: #0056b3;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #003f88;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

/* =========================
   HERO + CARDS (shared)
   ========================= */
.hero {
    background: radial-gradient(1200px 340px at 10% -10%, rgba(99,102,241,.12), rgba(99,102,241,0) 55%), radial-gradient(1200px 300px at 110% 8%, rgba(14,165,233,.10), rgba(14,165,233,0) 55%), linear-gradient(180deg,#f3f7ff 0%, #eef4ff 38%, #f5f8ff 100%);
    border-radius: 26px;
    max-width: 1280px;
    margin: 24px auto;
    padding: 44px 24px 36px;
    box-shadow: var(--shadow-soft-lg);
    color: var(--text);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.hero-header {
    max-width: 1180px;
    margin: 0 auto 24px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -.015em;
    font-weight: 700;
    color: var(--ink);
}

.hero p.lead {
    margin: 0;
    color: #344054;
    font-size: 16px;
    line-height: 1.75;
}

.cards {
    display: flex;
    gap: 28px;
    justify-content: start;
    flex-wrap: nowrap;
    max-width: 1180px;
    margin: 18px auto 0;
}

.card {
    flex: 1 1 0;
    min-width: 365px;
    max-width: 365px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 28px;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(13,48,94,.14);
    border-color: #dee7f1;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 700;
}

.card p {
    margin: 0 0 16px;
    color: #5a6c86;
    font-size: 15px;
    line-height: 1.7;
}

.icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #dbe6f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-badge svg {
    width: 18px;
    height: 18px;
}

/* CTA */
.btn-lg-primary {
    display: inline-block;
    background: var(--indigo);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(10,75,132,.25);
}

.btn-lg-primary:focus-visible {
    outline: 3px solid #9ec5ff;
    outline-offset: 3px;
}

.card .btn-lg-primary, .card a.btn-lg-primary, .card button.btn-lg-primary, .card span.btn-lg-primary {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content;
    min-width: 0;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 8px;
}

@media (max-width:1200px) {
    .cards {
        flex-wrap: wrap;
    }

    .card {
        flex: 1 1 200px;
        min-width: 320px;
        max-width: none;
    }
}

/* Bigger icon badge + icon */
.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.icon-badge img {
    width: 28px;
    height: 28px;
    display: block;
}

/* =========================
   Build Landing ("page-hero")
   ========================= */
.page-hero {
    background: radial-gradient(900px 280px at 10% -10%, rgba(99,102,241,0.14), rgba(99,102,241,0) 55%), radial-gradient(900px 260px at 110% 10%, rgba(14,165,233,0.12), rgba(14,165,233,0) 55%), linear-gradient(180deg,#fbfcff 0%, #f7f9ff 46%, #f9fbff 100%);
    border-radius: 26px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 36px;
    box-shadow: var(--shadow-soft-lg);
    color: var(--text);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -.015em;
    font-weight: 800;
    color: #12385d;
}

.page-hero p {
    margin: 0 0 6px;
    color: #4b5e79;
    font-size: 16px;
    line-height: 1.75;
}

.card-tile {
    background: #f8f8f8;
    border: none;
    border-radius: 24px;
    width: 280px;
    padding: 20px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-tile img {
    width: 108px;
}

.card-tile h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

/* =========================
   FORMS (shared)
   ========================= */
.form-card {
    max-width: 1000px;
    margin: 18px auto 0;
    background: #f5f6f7;
    border: 1px solid #eef1f5;
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}

.form-card--slim {
    max-width: 800px; /* narrower card like the other page */
    padding: 20px 24px; /* a tad tighter padding */
    margin: 18px auto 0; /* keep it centered */
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-select, .text-input {
    width: 100%;
    height: 44px;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    padding: 8px 12px;
    outline: none;
    background-color: #fff;
}

.textarea {
    width: 100%;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    padding: 12px;
    outline: none;
    resize: vertical;
}

.field {
    margin-top: 12px;
}

.field-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.field-row .col {
    flex: 1 1 260px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width:700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.help-text {
    color: #44546A;
    font-size: 12px;
}

.text-danger {
    color: #b42318;
    font-size: 13px;
}

.actions {
    margin-top: 18px;
}

.breadcrumb-item a {
    color: #003f88; 
}

.breadcrumb-item.active {
    color: #1e293b;
}

/* =========================
   RESOURCES page
   ========================= */
.res-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto 18px;
    padding: 8px 6px;
}

.res-hero h1 {
    margin: 0;
    font-size: 42px;
    color: #12385d;
    font-weight: 800;
}

#res-search {
    width: 300px;
    max-width: 45vw;
    height: 40px;
    border: 1px solid #dbe6f3;
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    box-shadow: 0 1px 2px rgba(13,48,94,.04) inset;
}

.res-grid {
    display: grid;
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto 56px;
    grid-template-columns: 1fr;
}

@media (min-width:700px) {
    .res-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (min-width:1024px) {
    .res-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.res-col {
    background: #f4f8ff;
    border: 1px solid #ecf1f7;
    border-radius: 22px;
    padding: 14px 14px 10px;
    box-shadow: 0 14px 28px rgba(13,48,94,.06);
}

.res-section {
    margin: 8px 0 14px;
}

.res-title {
    margin: 4px 8px 10px;
    font-size: 22px;
    color: #0f3157;
    font-weight: 800;
}

.res-subtitle {
    margin: 14px 8px 8px;
    font-size: 16px;
    color: #385a7c;
    font-weight: 800;
}

.res-list {
    list-style: none;
    margin: 0;
    padding: 0 6px;
}

.res-list li {
    margin: 0;
}

.res-list li a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    color: #0e2239;
    text-decoration: none;
    border: 1px solid transparent;
}

.res-list li a:hover {
    background: #eef5ff;
    border-color: #d9e7ff;
}

mark {
    background: #fff0a6;
    padding: 0 .15em;
    border-radius: 4px;
}

.res-empty {
    max-width: 1180px;
    margin: 8px auto 60px;
    color: #596b84;
}

.hidden {
    display: none !important;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ==========================================
   MOBILE FIX FOR VENDOR / EMPLOYEE PORTAL
   ========================================== */
@media (max-width: 768px) {

    .hero {
        padding: 28px 18px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .hero-header h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .hero-header p.lead {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .cards {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border-radius: 18px !important;
        padding: 22px !important;
    }

    .card-title {
        font-size: 20px !important;
        gap: 12px !important;
    }

    .card p {
        font-size: 14px !important;
    }

    .btn-lg-primary {
        width: 100% !important;
        padding: 14px !important;
        text-align: center !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }
}