@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;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
    }
}

.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);
}

/* 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
}

img {
    max-width: 100%;
}

#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-lightest-blue), var(--color-lighter-blue));
    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;
}

.border-radius-16 {
    border-radius: 16px;
}

.padding-32 {
    padding: 32px;
}

.password-checkmark {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-120%);
    pointer-events: none;
}

.password-req-error,
.confirm-match-error {
    display: block;
    min-height: 1.5em;
    transition: color 0.2s;
}

/*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;
    }

    .feature-showcase-col {
        display: flex;
        flex-direction: column;
    }

    #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 a, footer .header, footer  span{
    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; */
}
.showcase-headshot {
    max-height: 200px;
    height: 200px;
    margin-right: 2rem;
    margin-top: -200px;
}

.showcase-row {
    margin-bottom: -2rem;
    margin-top: 2rem;
}

.bg-orange-shifted {
    background:#fff8f0;
}

body[data-bs-theme="dark"] .bg-orange-shifted {
    background-color: #35302a;
}


.bg-blue-shifted {
    background-color: #f0f7ff;
}

body[data-bs-theme="dark"] .bg-blue-shifted {
    background-color: #26243d;
}

.showcase-frame img:not(.showcase-headshot) {
    width: 100%;
    cursor: zoom-in;
}
.accordion-button {
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background: var(--color-lighter-blue);
    color: white;
}

@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;
}
/* Feature showcase section */
.preview-link {
    background: #fff !important;
    padding: 16px 32px;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
}

.preview-link-border {
    border-bottom: 2px solid var(--color-lighter-blue);
    font-weight: bold;
}

.preview-link:hover {
    cursor: pointer;
}

.preview-img-container .card img {
    max-height: 500px !important;
    max-width: auto;
}

#onboarding-preview-img:after {
    content: '';
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
}

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);
    --trust-strip-text-color: #b9bec7;
}

/* 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-notification { position: absolute; top: 48px; right: -8px; background: white; border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.15); font-size: .85rem; min-width: 200px; }

/* 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: #007CC7; 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: #888; }
.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: #888; 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);
}

#marketing-engine {
    background: var(--bs-tertiary-bg);
}

#capacity-management {
    background: var(--bs-tertiary-bg)
}

#comparison-more-heading {
    color: #17384D;
}

body[data-bs-theme="dark"] #comparison-more-heading {
    color: var(--color-lighter-blue);
}