
:root {
    --mha-navy: #0E406A;
    --mha-blue: #5F8DB5;
    --mha-teal: #007167;
    --mha-red: #AA182C;
    --mha-green: #007161;
    --mha-sec-gray: #54565B;
    --mha-sec-white: #E8E8E8;
    --mha-sec-green: #3CAE49;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --spacing-card-padding: clamp(1.75rem, 1.35rem + 1.5vw, 2.75rem);
}


html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media print {
    .dont-print {
        display: none;
    }
}

.big-text {
    font-size: 1.2vw;
    font-weight: 500;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #5F8DB5;
    display: inline-block;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
    display: inline-block;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #5F8DB5;
}

.br {
    display: block;
    margin-bottom: 0.2em;
}

.br-label {
    display: block;
    margin-bottom: 0.5em;
}

.br-label-small-up {
    display: block;
    margin-bottom: -0.2em;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.navbar-brand-mha {
    padding-top: var(--bs-navbar-brand-padding-y);
    padding-bottom: var(--bs-navbar-brand-padding-y);
    margin-right: var(--bs-navbar-brand-margin-end);
    font-size: var(--bs-navbar-brand-font-size);
    color: var(--mha-navy);
    text-decoration: none;
    white-space: nowrap;
}

.smaller-text {
    font-size: 10px;
}


a {
    color: var(--mha-navy);
}

.a-mha-teal {
    color: var(--mha-teal);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #ffffff;
    background-color: var(--mha-blue);
    border-color: var(--mha-blue);
    border-radius: var(--radius-lg);
}

.nav-link {
    color: var(--mha-navy);
    border-radius: var(--radius-lg);
}

.nav-link-mha-navy {
    color: var(--mha-navy);
    border-radius: var(--radius-lg);
}

.nav-link-mha-teal {
    color: var(--mha-teal);
    border-radius: var(--radius-lg);
}


.card {
    background: var(--mha-sec-white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(14, 64, 106, 0.15);
}

.mha-p-navy {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    color: var(--mha-navy);
}


.border-top {
    border-top: 1px solid var(--mha-sec-white);
}

.border-bottom {
    border-bottom: 1px solid #E8E8E8;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer-mha-teal {
    position: absolute;
    bottom: 0px;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    color: var(--mha-teal);
}

.footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

body {
    background-color: #0E406A;
}

option {
    font-family: "Gotham Narrow";
}

a.nav-link:hover {
    cursor: pointer;
    background-color: rgb(0, 134, 214, 0.2);
    color: #000000;
    border-radius: var(--radius-lg);
}


/*form some reason bootstraps doesn't think a's without href should not embed decorated*/
a:not([href]):not([class]), a:not([href]):not([class]):hover {
    color: var(--mha-navy);
    text-decoration: underline;
}

    a:not([href]):not([class]):hover {
        cursor: pointer;
    }

/* Dark theme for headings */
[data-bs-theme="dark"] h1 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] h2 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] h3 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] h4 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] h5 {
    color: #ffffff !important;
}

h1 {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 70px;
    color: var(--mha-navy);
}

.mha-h1-black {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 70px;
    color: #ffffff;
}

h2 {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 2rem;
    line-height: 70px;
    color: var(--mha-navy);
}

h3 {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 40px;
    color: var(--mha-navy);
}

h4 {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 1.50rem;
    line-height: 40px;
    color: var(--mha-navy);
}

h5 {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 40px;
    color: var(--mha-navy);
}

.mha-backgroud {
    /*background-color: rgb(232, 232, 232); */
    background: linear-gradient( 135deg, var(--mha-navy) 0%, var(--mha-sec-white) 100% );
}

.mha-navbar {
    color: var(--mha-navy);
    background: var(--mha-sec-white);
}

.navbar {
    border-radius: var(--radius-lg);
}

.app-background {
    min-height: 100vh;
    background: linear-gradient( to bottom, var(--mha-navy), var(--mha-sec-white) );
}


.hero {
    background: linear-gradient( 135deg, var(--mha-blue), var(--mha-teal) );
    padding: 2rem;
}


.mha-body {
    font-family: "Gotham Narrow";
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    overflow-y: scroll;
    background: linear-gradient( 135deg, var(--mha-blue) 0%, var(--mha-sec-white) 100% );
    background-attachment: fixed; /* nested .mha-body elements share one viewport-aligned gradient, no seam */
}

/* Sticky footer: keeps the footer at the bottom of the window on short pages */
body.mha-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* cancels the template's body { margin-bottom: 60px } in site.css */
}

    body.mha-body > .content {
        flex: 1 0 auto; /* grows to push the footer to the bottom on short pages */
    }

    body.mha-body > footer {
        flex-shrink: 0;
        position: static; /* overrides .footer { position: absolute; bottom: 0 } */
    }

.mha-tooltip {
    --bs-tooltip-bg: rgb(0, 114, 153);
    --bs-tooltip-color: #ffff;
    --bs-tooltip-opacity: 1;
}

/*Tables*/
.mha-table {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
    overflow-y: auto;
    height: 45px;
}

    .mha-table td {
        padding: 5px 5px 5px 5px;
    }

    .mha-table thead {
        color: var(--mha-sec-white);
    }

        .mha-table thead th {
            position: sticky;
            top: 10em;
            padding: 8px 15px;
            border: 2px solid var(--mha-sec-white);
            text-align: center;
            background-color: var(--mha-sec-gray);
        }

    .mha-table .mha-subhead {
        background-color: var(--mha-sec-gray);
        border-top: 1px solid var(--mha-sec-white);
    }

        .mha-table .mha-subhead td:first-child {
            border-left: 1px solid var(--mha-sec-white);
        }

        .mha-table .mha-subhead td:last-child {
            border-right: 1px solid #E8E8E8;
        }

    .mha-table tbody tr {
        border-top: 1px solid #E8E8E8;
        border-bottom: 1px solid #E8E8E8;
    }

        .mha-table tbody tr td {
            border: 2px solid #E8E8E8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .mha-table tbody tr:hover {
            background-color: #5F8DB5;
        }

    .mha-table tbody td:first-child {
        border-left: 1px solid #E8E8E8;
    }

    .mha-table tbody td:last-child {
        border-right: 1px solid #E8E8E8;
    }

.odd {
    background-color: #ffffff;
}

.even {
    background-color: #E8E8E8;
}

.mha-td-elipsed {
    /*Have to have max-width specified on column*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .mha-td-elipsed:hover {
        overflow: visible;
        white-space: normal;
        height: auto;
    }

.mha-sort {
    height: 12px;
}

/*Buttons*/
.mha-btn-pri {
    background-color: #0E406A;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
    color: #E8E8E8;
}

    .mha-btn-pri:hover {
        background-color: rgb(14, 64, 106);
        color: #000000;
        cursor: pointer;
    }

.mha-btn-teal {
    background-color: var(--mha-teal);
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
    color: #E8E8E8;
}

    .mha-btn-teal:hover {
        background-color: rgb(14, 64, 106);
        color: #000000;
        cursor: pointer;
    }

.btn-mha-notify {
    display: inline-block;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.2;
    color: #ffffff;
    background-color: var(--mha-navy);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .btn-mha-notify:hover {
        background-color: var(--mha-blue);
    }

    .btn-mha-notify:active {
        background-color: #0a58ca;
    }

    .btn-mha-notify:focus-visible {
        outline: none;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
    }

.mha-btn-sec {
    background-color: #007299;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
}

    .mha-btn-sec:hover {
        background-color: #007299;
        cursor: pointer;
        color: #000000;
    }

.mha-btn-grey {
    background-color: var(--mha-sec-gray);
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
    color: #ffffff;
}

    .mha-btn-grey:hover {
        background-color: rgb(84,86, 91, .6);
        cursor: pointer;
        color: #000000;
    }

.mha-btn-red {
    background-color: var(--mha-red);
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
    color: #ffffff;
}

    .mha-btn-red:hover {
        background-color: rgb(170, 24, 44, 0.6);
        cursor: pointer;
        color: #ffffff;
    }

.mha-btn-green {
    background-color: rgb(60, 174, 73);
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px;
    color: #000000;
}

    .mha-btn-green:hover {
        background-color: rgb(60, 174, 73, 0.6);
        cursor: pointer;
        color: #000000;
    }

[data-bs-theme="dark"] .btn-primary:hover {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-info:hover {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-danger:hover {
    color: #ffffff !important;
}

.btn-primary {
    background-color: #5F8DB5;
    border-color: #5F8DB5;
}

    .btn-primary:hover {
        background-color: rgb(14, 64, 106 );
        border-color: rgb(14, 64, 106, 0.6);
        color: #000000;
    }

.btn-outline-primary {
    background-color: rgb(14, 64, 106);
    border-color: rgb(14, 64, 106, 0.2);
    color: #000000;
}

    .btn-outline-primary:hover {
        border-color: rgb(0, 134, 214, 0.2);
    }

.btn-info {
    background-color: #5F8DB5;
    border-color: #5F8DB5;
}

    .btn-info:hover {
        background-color: rgb(95,141,181,.6);
        border-color: rgb(95,141,181,.6);
        color: #000000;
    }

.btn-danger {
    background-color: #AA182C;
    border-color: #AA182C;
}

    .btn-danger:hover {
        background-color: rgb(170, 24, 44, 0.6);
        border-color: rgb(170, 24, 44, 0.6);
        color: #000000;
    }

/* 1) Turn the whole toolbar area into a single flex row */
.bootstrap-table .fixed-table-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem; /* adjust spacing between groups */
    flex-wrap: nowrap; /* keep it on one line */
}

    /* 2) Neutralize plugin floats so flex can do its job */
    .bootstrap-table .fixed-table-toolbar .bs-bars,
    .bootstrap-table .fixed-table-toolbar .search,
    .bootstrap-table .fixed-table-toolbar .columns,
    .bootstrap-table .fixed-table-toolbar .export { /* if you show export */
        float: none !important;
    }

    /* 3) Make your custom toolbar area expand to fill the middle */
    .bootstrap-table .fixed-table-toolbar .bs-bars {
        flex: 1 1 auto; /* grows to take available space */
        min-width: 0; /* allows content to shrink without overflow */
    }

    /* 4) Keep search (and columns/export) grouped on the right */
    .bootstrap-table .fixed-table-toolbar .search,
    .bootstrap-table .fixed-table-toolbar .columns,
    .bootstrap-table .fixed-table-toolbar .export {
        flex: 0 0 auto;
        margin-left: 0; /* override any default margins */
    }

    /* If you want search pushed fully to starboard (right edge) */
    .bootstrap-table .fixed-table-toolbar .search {
        margin-left: auto;
    }

        /* Optional: control search input width */
        .bootstrap-table .fixed-table-toolbar .search .search-input {
            min-width: 14rem; /* tune to taste */
            /* width: 20ch;     alternative: size by characters */
        }

/* MHA Colors */
.mha-navy {
    background-color: #0E406A;
}

.mha-sec-light-blue {
    background-color: #5F8DB5;
}

.mha-green {
    background-color: #007167;
}

.mha-red {
    background-color: #AA182C;
}

/*MHA Secondary Colors */
.mha-sec-gray11 {
    background-color: #54565B;
}

.mha-sec-white {
    background-color: #E8E8E8;
}

.mha-sec-green {
    background-color: #3CAE49;
}



.mha-sec-blue {
    background-color: #007299;
}


/*Text Colors*/
.mha-text-teal {
    color: var(--mha-teal);
}



.mha-text-grey {
    color: rgb(84,86, 91);
}

.mha-text-navy {
    color: var(--mha-navy);
}


/*Background colors*/
.mha-bg-grey1 {
    background-color: #54565B;
}

.mha-bg-grey2 {
    background-color: rgb(84,86,91, .9);
}

.mha-bg-grey3 {
    background-color: rgb(84,86,91, .8);
}

.mha-bg-grey4 {
    background-color: rgb(84,86,91, .7);
}

.mha-bg-grey5 {
    background-color: rgb(84,86,91, .6);
}

/** START HERE **/
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.custom-input-group { /*Used in PMGInvoices*/
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 700 !important;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.mha-bg-blue1 {
    background-color: #0083CA;
}

.mha-bg-blue2 {
    background-color: #0093D2;
}

.mha-bg-blue3 {
    background-color: #5EA7DC;
}

.mha-bg-blue4 {
    background-color: #93BFE6;
}

.mha-bg-blue5 {
    background-color: #C7DBF1;
}

.mha-bg-green1 {
    background-color: #61A60E;
}

.mha-bg-green2 {
    background-color: #7EB63B;
}

.mha-bg-green3 {
    background-color: #9BC468;
}

.mha-bg-green4 {
    background-color: #B7D396;
}

.mha-bg-green5 {
    background-color: #D3E2C3;
}



/*Colors*/
.mha-grey1 {
    color: #54565B;
}

.mha-grey2 {
    color: rgb(84,86, 91, .9);
}

.mha-grey3 {
    color: rgb(84,86, 91, .8);
}

.mha-grey4 {
    color: rgb(84,86, 91, .7);
}

.mha-grey5 {
    color: rgb(84,86, 91, .75);
}

.mha-blue1 {
    color: #5F8DB5;
}

.mha-blue2 {
    color: #0093D2;
}

.mha-blue3 {
    color: #5EA7DC;
}

.mha-blue4 {
    color: #93BFE6;
}

.mha-blue5 {
    color: #C7DBF1;
}



[data-bs-theme="light"] {
    --bs-secondary-rgb: 102, 102, 102;
    --bs-secondary-bg-subtle: rgb(211, 209, 211);
}

[data-bs-theme="dark"] {
    --bs-secondary-rgb: 255, 255, 255;
}

[data-bs-theme="light"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
}

.select2-container--bootstrap-5 .select2-results__option {
    color: var(--bs-body-color);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--bs-primary);
    color: var(--bs-body-bg);
}

.select2-container--bootstrap-5 .select2-search__field {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--bs-secondary-color);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.px-card-padding {
    padding-inline: var(--spacing-card-padding);
}

.gap-4 {
    gap: calc(var(--spacing) * 4);
}

.flex-col {
    flex-direction: column;
}

.flex {
    display: flex;
}

.pb-card-padding {
    padding-bottom: var(--spacing-card-padding);
}

.pt-card-padding {
    padding-top: var(--spacing-card-padding);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-lg {
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.app-card-large {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--mha-sec-white);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    /* height:100%;*/
}

    .app-card-large:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }

/* Newest Call to Action Card*/
.cta-card {
    width: 320px;
    background: #f4f4f4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}


.cta-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .cta-card-header h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: #1c3d38;
    }


/* CTA Button */
.cta {
    width: 100%;
    background: #157a63;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 15px;
    text-decoration: none;
}

    .cta .check {
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        padding: 5px 8px;
        font-size: 12px;
    }

    .cta .arrow {
        margin-left: auto;
    }


/* Description */
.cta-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}



.cta-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #157a63;
    color: #157a63;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cta-card-container {
    display: flex;
    gap: 20px; /* 👈 controls space between cards */
    justify-content: center;
}


.app-card-small {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--mha-sec-white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: auto !important;
    min-height: unset !important;
    padding: 12px 16px 6px;
    max-height: 260px;
}


    .app-card-small:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }


.cta-button {
    display: inline-block;
    margin-top: 8px;
    padding: 8px .5px;
    font-size: 14px;
    font-weight: 600;
    background-color: white;
    color: var(--mha-navy);
    text-decoration: none;
    font-weight: bold;
    border-radius: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .cta-button:hover {
        background-color: var(--mha-sec-white);
        transform: translateY(-2px);
    }


.card-link {
    text-decoration: none;
    color: inherit;
}


.card-icon {
    font-size: 32px; /* try 32px, 40px, or even 48px */
    color: var(--mha-navy);
    align-content: center;
    align-items: center;
    align-self: center;
    margin-bottom: 12px;
    display: block;
    justify-content: center;
}


.card-body {
    padding: 12px 16px 6px !important;
    height: auto;
    /*padding: 10px 14px;*/
    flex: 0;
    margin-bottom: 0;
    /*flex:1;*/
    /* flex-grow: 0; */
}

    .card-body h3 {
        margin-bottom: 8px;
        margin-top: 16px;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .card-body p {
        color: var(--mha-sec-gray);
        margin-bottom: 0;
        /*line-height: 1.6;*/
    }

    .card-body h4 {
        color: var(--mha-navy);
        font-weight: 600;
        font-size: medium;
        margin-bottom: 8px;
    }

.card-footer-mha {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 100px;
    margin: 2rem -28px 0; /* full-bleed inside a 28px-padded parent */
    padding: 16px 10px;
    width: auto;
    background-color: var(--mha-navy);
    color: #FFFFFF;
    text-align: center;
    line-height: 1.5;
}

    .card-footer-mha p {
        margin: 0;
        color: #FFFFFF;
    }

    .card-footer-mha nav {
        margin-top: 8px;
    }

    .card-footer-mha a {
        display: inline-block;
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 600;
        font-size: medium;
        margin: 0 10px;
    }

        .card-footer-mha a:hover,
        .card-footer-mha a:focus {
            text-decoration: underline;
            text-underline-offset: 3px;
        }



.card-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card-image {
    width: 20px;
    height: auto; /* ✅ keeps aspect ratio */
}

.content {
    padding-bottom: 75px; /* breathing room above footer */
}

.img-small {
    width: 300px;
    height: auto;
}


/* ===== PMG membership group cards ===== */

.membership-group {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    /*border-left: 6px solid var(--mha-red);*/ /* Pantone 187 */
    color: #54565B; /* Pantone Gray 11 */
}

    .membership-group a.group-title {
        display: inline-block;
        margin-bottom: 0.75rem;
        color: var(--mha-teal); /* Pantone 328 */
        font-weight: 700;
        font-size: 1.5rem;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .membership-group a.group-title:hover,
        .membership-group a.group-title:focus {
            color: var(--mha-navy); /* Pantone 541 */
            text-decoration-thickness: 2px;
        }

    .membership-group p,
    .membership-group h5,
    .membership-group label {
        color: var(--mha-sec-gray); /* Pantone Gray 11 */
    }

        .membership-group p a {
            color: var(--mha-navy); /* Pantone 541, e.g. the Elizabeth Littrell mailto */
        }

        .membership-group p:last-child {
            margin-bottom: 0;
        }


    .membership-group.form-section {
        border-left-color: #0E406A; /* Pantone 541 */
    }

        .membership-group.form-section h3 {
            color: #0E406A;
            font-weight: 700;
        }

    .membership-group h5 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        text-align: left;
        font-size: 1rem; /* same as the paragraph text */
        font-weight: 400;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .membership-group .form-check-input {
        float: none;
        margin: 0;
        flex-shrink: 0;
        vertical-align: middle;
    }

.card-footer-mha .footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    width: min(500px, 100%);
}

    .card-footer-mha .footer-links a {
        color: #FFFFFF;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        padding: 6px 18px;
        border: 2px solid #FFFFFF;
        border-radius: 999px;
        margin: 0;
        transition: background-color 0.15s, color 0.15s;
    }

        .card-footer-mha .footer-links a:hover,
        .card-footer-mha .footer-links a:focus {
            background-color: #FFFFFF;
            color: #0E406A; /* Pantone 541 */
            text-decoration: none;
        }

        .card-footer-mha .footer-links a:focus-visible {
            outline: 2px solid #FFFFFF;
            outline-offset: 3px;
        }

.brand-app-name-below {
    display: block;
    margin-top: .25rem;
    padding-top: .5rem;
    border-top: 1px solid var(--mha-teal);
    color: var(--mha-teal);
    font-size: 1.5rem;
}

/* ===== Contact card ===== */

.contact-card {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card-icon {
    font-size: 2.5rem;
    color: var(--mha-teal);
    margin-bottom: .75rem;
}

.contact-card-lead {
    color: var(--mha-sec-gray);
    font-size: 1.125rem;
    margin: .5rem auto 1.5rem;
    max-width: 560px;
}

.contact-card-actions {
    display: flex;
    flex-wrap: wrap; /* stacks on phones */
    justify-content: center;
    gap: 12px;
}

.btn-mha-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 2px solid var(--mha-navy);
    border-radius: 999px;
    color: var(--mha-navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

    .btn-mha-contact:hover,
    .btn-mha-contact:focus {
        background-color: var(--mha-navy);
        color: #FFFFFF;
    }

    .btn-mha-contact:focus-visible {
        outline: 2px solid var(--mha-navy);
        outline-offset: 3px;
    }
