@media screen and (max-width: 991px) {
    nav .btn {
        width: 100%;
        max-width: 100%;
    }

    .navbar-nav .nav-item {
        margin-right: 0px !important;
        padding-left: .5rem;
        font-size: 1.6rem;
    }
    .navbar-nav .nav-item:not(:last-child) {
        border-bottom: 1px solid lightgrey
    }
}

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

/* Per-theme so the link clears AA on both grounds: #0366d6 reached only 2.85:1 on the dark body. */
/* See also: #5 */
a {
    color: var(--color-accent-text);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

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

/* The 14px root above puts every rem-sized control under 16px on a phone, and iOS Safari zooms the
   viewport when a focused control's text is below 16px. The root size is left alone — it carries
   the whole mobile type scale — and the floor is applied where the consequences are: a control's
   own text, and a touch target's height. 44px is the platform guidance minimum. */
/* See also: #6 */
@media (max-width: 767.98px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    .form-select,
    .btn {
        min-height: 44px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

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

.box-shadow {
    box-shadow: 0 0.25px 0.75px rgba(0, 0, 0, 0.50);
}

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

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    font-size: 1.15rem;
}

.footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

:root {
    --cosairus-blue: rgb(34,83,144);
    --cosairus-shadow: rgba(0, 0, 0, 0.3);
    --color-light-gray: #f8f9FB;
    --box-shadow-default: 0 7px 30px var(--cosairus-shadow);
    --padding-default: 16px;
    --default-btn-width: 150px;
    --default-letter-spacing: 1.25px;
    /* Test Colors */
    --color-dark-blue: #12232E;
    --color-lighter-blue: #007CC7;
    --color-lightest-blue: #4DA8DA;
    --color-dark-blue-shadow: #203647;
    --color-light-blue-shadow: #EEFBFB;
    /* Faded Colors (for backgrounds, effects, etc) */
    --color-dark-blue_faded: rgba(18, 35, 46, 0.5);
    --color-lighter-blue_faded-50: rgba(0, 124, 199, 0.5);
    --color-lighter-blue_faded-75: rgba(0, 124, 199, 0.75);
    --color-lighter-blue_faded-90: rgba(0, 124, 199, 0.90);
    --color-lightest-blue_faded: rgba(77, 168, 218, 0.5);
    --color-light-blue-shadow_faded: rgba(238, 251, 251, 1);
    /* Trust strip colors */
    --trust-strip-text-color: var(--bs-secondary-color);
    /* Accent blue at text sizes. --color-lighter-blue reaches only 4.46:1 on white and 3.46:1 on
       the dark body, so it fails WCAG AA as small text in either theme; no single mid-tone blue
       clears 4.5:1 against both, hence a per-theme value. */
    /* See also: #2 */
    --color-accent-text: #0A6BA8;
    /* Accent blue used as a fill behind white text. Theme-independent: every element using it
       paints its own background, so only its contrast with white matters. */
    --color-accent-fill: #0A6BA8;
    /* Deep end of the CTA gradient. A gradient carrying white text has to clear 4.5:1 at *every*
       stop, not just the darkest, so both ends come from this family. */
    /* See also: #4 */
    --color-accent-fill-deep: #075A8E;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

input.popover {
    display: none;
}

.container-fluid {
    padding: 0;
}

.navbar {
    box-shadow: 0 7px 30px var(--cosairus-shadow);
	--bs-bg-opacity: 1;
	background-color: rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity)) !important;
}

body[data-bs-theme="dark"] .navbar {
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

body[data-bs-theme="dark"] .navbar-brand>img {
    filter: invert(99%) sepia(1%) saturate(285%) hue-rotate(36deg) brightness(115%) contrast(100%);
}

nav .navbar-brand {
    text-transform: uppercase;
    letter-spacing: 1.15px;
    font-size: 1.5rem;
}

.navbar-nav .nav-item {
    margin-right: 24px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0px;
}
@media screen and (min-width: 769px) {
    nav .btn {
        width: 150px;
        max-width: 150px
    }
}

.nav-header {
    text-decoration: none;
    color: #0d6efd;
}
.nav-header:hover {
    color: #0a58ca
}

/* height: auto lets an img carry intrinsic width/height attributes without being vertically
   stretched once max-width scales it down. Any image that needs a fixed rendered height must set
   it in CSS, because this rule overrides the height attribute. */
/* See also: #1 */
img {
    max-width: 100%;
    height: auto;
}

#hero img {
    width: 100%;
    margin: 32px 0;
    box-shadow: 0 7px 30px rgba(52, 31, 97, 0.1);
}

#hero .title {
    color: var(--cosairus-blue);
    margin-bottom: 16px;
    font-size: 2.75rem;
    letter-spacing: var(--default-letter-spacing);
}

.title-primary {
    color: var(--cosairus-blue);
}

.cta-btn-container {
    display: flex;
    flex-direction: column;
}

.btn {
    border-radius: 25px;
    padding: 10px;
    border-color: none;
    font-weight: 500;
}
.btn.btn-fixed {
    width: 100%;
    max-width: 150px;
}

.btn-primary {
    background: linear-gradient( 45deg, var(--color-accent-fill), var(--color-accent-fill-deep));
    color: white;
    border-color: transparent;
}

.btn-primary_light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary_dark {
    background: linear-gradient( 45deg, var(--color-dark-blue), var(--color-dark-blue-shadow));
    color: white;
}

.btn-primary_light:hover, .btn-primary_dark:hover {
    color: white;
}

section {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.card {
    border-radius: 10px;
    box-shadow: var(--box-shadow-default);
    padding: 24px;
    transition: all 0.25s ease;
}

.btn-pill {
    margin: 32px auto;
}

.card-animation:hover {
    transform: translate(0, -8px);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body:not([data-bs-theme="dark"]) .card-header {
     background-color: white;
}
body[data-bs-theme="dark"] .card-header:not(.bg-light) {
    background-color: var(--bs-body-bg) !important;
}

.card-header {
    text-align: center;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

.card-header i {
    font-size: 3rem;
    padding: 24px;
    margin-bottom: 24px;
    color: var(--cosairus-blue);
    border: 2px solid var(--cosairus-blue);
    border-radius: 50%;
}

.card-title {
    color: var(--cosairus-blue);
}

body:not([data-bs-theme="dark"]) #management-cards {
    background-color: var(--bs-tertiary-bg);
}

body[data-bs-theme="dark"] #management-cards {
    background-color: var(--bs-tertiary-bg);
}

#management-cards .card-container {
    margin-bottom: 32px;
}

#cta .btn {
    width: var(--default-btn-width);
}

section .title {
    margin-bottom: 48px;
}

section.bg-dark, section.bg-dark .title {
    color: white;
}

.bg-dark {
    background: var(--cosairus-blue);
}

i {
    margin-right: 16px;
}

#applicant-tracking-hero img, #employee-management-hero img, #asset-management-hero img {
    width: 100%;
    box-shadow: 0 7px 30px rgba(52, 31, 97, 0.45);
    margin-top: 32px;
}

.feature-row {
    padding: 32px 0;
}

.error-message {
    font-size: 1rem;
}

.rotated-bg-card {
    transform: rotate(-4deg);
    padding: 40px;
    border-radius: 16px;
}

.rotated-bg-item {
    transform: rotate(4deg);
    padding: 8px;
}

/* Password field + validity icon row (Views/Authentication/SetPassword.cshtml, Areas/Parents/Views/Setup/Register.cshtml). */
.password-validity-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* .form-control's width:100% would otherwise win over flex sizing and push the icon out of the row. */
.password-validity-row .form-control {
    flex: 1;
    min-width: 0;
}

/* One fixed-size slot shared by the checkmark and xmark so toggling which one is visible doesn't shift its position. */
.password-validity-icon {
    position: relative;
    width: 1em;
    height: 1em;
    flex: none;
}

.password-validity-icon > * {
    position: absolute;
    inset: 0;
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    section {
        padding: 100px 0;
    }

    #hero img {
        margin: 0;
    }

    .cta-btn-container {
        display: flex;
        flex-direction: row;
    }

    .cta-btn-container .btn {
        width: 90%;
        margin: 0;
    }

    .cta-btn-container .btn:last-child {
        justify-content: end;
    }

    .price-column.popular {
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
    }

    #applicant-tracking-hero img, #employee-management-hero img, #asset-management-hero img {
        margin-top: 64px;
    }

    .feature-row {
        padding: 64px 0;
    }

    #faq-section {
        background-image: url('../images/wave_01.svg');
        background-size: cover;
        background-repeat: no-repeat;
    }

    .footer-col:first-child {
        text-align: left;
    }

    .footer-col:last-child {
        text-align: right;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUpFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-from-left {
    animation-name: slideInFromLeft;
    animation-duration: 1.25s;
    animation-iteration-count: 1;
}

.slide-in-from-right {
    animation-name: slideInFromRight;
    animation-duration: 1.25s;
    animation-iteration-count: 1;
}

.slide-up-from-bottom {
    animation-name: slideUpFromBottom;
    animation-duration: 0.75s;
    animation-iteration-count: 1;
}

footer, .footer {
    background-color: #1D1D1D;
    line-height: 32px;
}

footer a, footer span {
    font-size: 0.90rem;
}

footer a:hover {
    color: white;
}

/* Footer text stays light in both themes because the footer background is always dark. */
/* See also: #8 */
footer a, footer .header, footer  span, footer small {
    text-decoration: none;
    color: #B9BEC7;
}

footer .header {
    color: #FFF;
    font-size: 1.25rem;
}

@media (max-width:991px) {
    a.btn_Special_Width {
        width: 100%;
        max-width: 100%;
    }

    li.li_Special_Width.nav-item {
        margin-right: 0px;
    }
}

.showcase {
    margin-top: 4rem;
    border-radius: 1rem;
    background-color: var(--bs-secondary-bg);
    padding: 2rem;
}
.showcase-title {
    font-size: 2rem;
    line-height:3rem;
    border-bottom: 1px solid var(--bs-secondary)
}
.showcase-frame {
    text-align: right;
    /* margin-top: -4.5rem; */
}
/* Hidden below lg. Fixed height; width follows the image's own proportions, not its width attribute. */
/* See also: #7, #1 */
.showcase-headshot {
    display: none;
    height: 200px;
    width: auto;
    margin-right: 2rem;
}

/* From lg up, the title and intro take the left column and the headshot sits at the bottom of the right one, directly above the row. */
/* See also: #7 */
@media (min-width: 992px) {
    .showcase:has(> .showcase-headshot) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        /* A headshot taller than the copy grows the intro's row, not the title's. */
        grid-template-rows: auto 1fr auto;
        column-gap: 1rem;
    }

    .showcase-headshot {
        display: block;
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: end;
    }

    .showcase-headshot ~ .showcase-title {
        grid-column: 1;
        grid-row: 1;
    }

    .showcase-headshot ~ p {
        grid-column: 1;
        grid-row: 2;
    }

    .showcase-headshot ~ .row {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

.showcase-row {
    margin-bottom: -2rem;
    margin-top: 2rem;
}

.bg-blue-shifted {
    background-color: #f0f7ff;
}

body[data-bs-theme="dark"] .bg-blue-shifted {
    background-color: #26243d;
}

.showcase-frame img {
    width: 100%;
}
.accordion-button {
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background: var(--color-accent-fill);
    color: white;
}

/* Small uppercase section label above a heading. */
/* See also: #2 */
.eyebrow {
    color: var(--color-accent-text);
    letter-spacing: .08em;
}

@media (min-width: 992px) {
    div.div_Special_Width {
        width: 75%;
    }
}

@media (max-width: 991px) {
    div.div_Special_Width {
        width: 87%;
    }
}

@media (max-width: 767px) {
    div.div_Special_Width {
        width: 100%;
    }
}

/* Home page hero overrides */
body {
    overflow-x: hidden !important;
}

#hero {
    background: var(--bs-tertiary-bg);
}
#hero .title {
    color: var(--color-dark-blue);
}

body[data-bs-theme="dark"] #hero {
    background: var(--standout-bg-color);
}
body[data-bs-theme="dark"] #hero .title {
    color: var(--bs-tertiary-bg-gray);
}

/* Contact us banner */
#contact-us-banner {
    background-color: #212529;
}
body[data-bs-theme="dark"] {
    --trust-strip-text-color: #b9bec7;
    --color-primary-subtle: rgba(3, 22, 51, 0.35);
    --color-primary-border-subtle: rgba(8, 66, 152, 0.35);
    /* The palette's lightest blue, which clears 4.5:1 on the dark body where #0A6BA8 does not. */
    /* See also: #2 */
    --color-accent-text: var(--color-lightest-blue);
}

/* Bootstrap's #6c757d label is 4.44:1 on the #f8f9fa hero band; this darkens label and border to clear AA. */
/* See also: #8 */
.btn-outline-secondary {
    --bs-btn-color: #5c636a;
    --bs-btn-border-color: #5c636a;
}

/* Bootstrap does not remap .btn-outline-secondary for dark mode, leaving its #6c757d label at
   3.29:1 on the dark body. This lifts label and border to a grey that clears AA. */
/* See also: #3 */
body[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #adb5bd;
    --bs-btn-border-color: #adb5bd;
}

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1rem; font-size: .82rem; color: var(--trust-strip-text-color); }
.trust-strip i { color: var(--color-lighter-blue); margin-right: .3rem; }
.trust-ibpsa img { max-height: 28px; vertical-align: middle; margin-left: .4rem; }

/* Automation dashboard — job grid */
.auto-job-card { background: white; border-radius: 10px; padding: 1.25rem; height: 100%; border: 1px solid #e7edf3; }
.auto-job-icon { width: 44px; height: 44px; border-radius: 50%; background: #e8f4fd; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; color: var(--color-lighter-blue); font-size: 1.1rem; }
.auto-job-icon>i { margin: 0 auto; }
.auto-job-desc { font-size: .8rem; color: #6c757d; margin-top: .25rem; line-height: 1.4; }

/* CPS advantage list (replaces card grid) */
.cps-advantage-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.cps-advantage-list li i { color: var(--color-lighter-blue); font-size: 1.1rem; margin-top: .2rem; flex-shrink: 0; }

/* Browser chrome (marketing section) */
.browser-chrome { border-radius: 10px; overflow: hidden; box-shadow: 0 1rem 3rem rgba(0,0,0,.2); position: relative; }
.browser-bar { background: #e8e8e8; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.browser-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.browser-tab { margin-left: 12px; font-size: .75rem; color: #555; background: white; padding: 2px 12px; border-radius: 4px 4px 0 0; }
/* Campaign editor mock: the background is dark in both themes, so every foreground is set explicitly. */
.campaign-mock { background: #12151d; color: #dfe3ec; padding: 1.25rem; font-size: .85rem; }
.campaign-mock-muted { color: #9aa3b5; }
.campaign-mock-title { font-size: .75rem; }
.campaign-mock-label { font-size: .7rem; }
.campaign-mock-preview { font-size: .8rem; }
.campaign-mock-body { background: #1a1e27; border: 1px solid #2a2f3b; border-radius: .375rem; padding: .9rem; }

/* HTML Report mockups */
.report-mock { border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; font-size: .68rem; display: flex; flex-direction: column; height: 100%; }
.report-mock table { flex: 1; }
.report-mock-hdr { background: #1a2533; color: white; padding: 5px 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .7rem; gap: .5rem; }
.report-mock-hdr .view-btn { background: var(--color-accent-fill); color: white; font-size: .58rem; padding: 1px 5px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.report-mock-tbl { font-size: .64rem; margin: 0; }
.report-mock-tbl th { background: #f1f3f4; font-weight: 600; padding: 3px 5px !important; color: #5f6672; }
.report-mock-tbl td { padding: 3px 5px !important; border-color: #f0f0f0; }
.report-mock-ftr { background: #f8f9fa; border-top: 1px solid #dee2e6; padding: 4px 8px; font-size: .62rem; color: #5f6672; text-align: right; }

.revenue-callout {
    background-color: rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))
}
body[data-bs-theme="dark"] .revenue-callout {
    background-color: var(--bs-secondary-bg)
}

#automation-dashboard, #reporting-suite, #trial-workflow, #staff {
    background: var(--bs-tertiary-bg);
}

body[data-bs-theme="dark"] .auto-job-card {
    background: var(--bs-dark-bg-subtle);
    border-color: var(--bs-dark-border-subtle);
}

/* #6c757d is 3.6:1 on the dark card; this grey is 8.2:1. */
/* See also: #8 */
body[data-bs-theme="dark"] .auto-job-desc {
    color: #adb5bd;
}

/* The accent blue is 4.34:1 on the dark secondary surface (--bs-secondary-bg) these captions sit on; this blue is 5.13:1. */
/* See also: #8 */
body[data-bs-theme="dark"] .showcase-more a {
    color: #63b6e6;
}

#marketing-engine {
    background: var(--bs-tertiary-bg);
}

#capacity-management {
    background: var(--bs-tertiary-bg)
}
