:root {
    --mars-navy: #172033;
    --mars-blue: #5fa8d3;
    --mars-blue-soft: rgba(95, 168, 211, 0.12);
    --mars-blue-border: rgba(95, 168, 211, 0.22);
}

/* Patient-resource heroes that were published without an image layer. */
.page-id-2285 .us_custom_c06e7f6c,
.page-id-2279 .us_custom_c06e7f6c,
.page-id-2282 .us_custom_c06e7f6c,
.page-id-2240 .mars-service-hero,
.page-id-2242 .mars-service-hero,
.page-id-2244 .mars-service-hero {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    isolation: isolate;
}

.page-id-2285 .us_custom_c06e7f6c {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/07/mars-healthcare-patient-reception-coordination-scaled.webp") !important;
}

.page-id-2279 .us_custom_c06e7f6c {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/05/mars-healthcare-diagnostic-imaging-center-scaled.jpg") !important;
}

.page-id-2282 .us_custom_c06e7f6c {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/05/mars-healthcare-patient-support-reception.jpg") !important;
}

.page-id-2240 .mars-service-hero {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/07/mars-healthcare-employer-imaging-benefits.webp") !important;
}

.page-id-2242 .mars-service-hero {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/05/mars-healthcare-employer-support-partnership.jpg") !important;
}

.page-id-2244 .mars-service-hero {
    background-image: url("https://www.marshealthcare.us/wp-content/uploads/2026/07/mars-healthcare-employer-imaging-coordination.webp") !important;
}

/* Keep the existing Employers hero image from being letterboxed. */
.page-id-1438 .mars-inner-hero .l-section-img {
    background-size: cover !important;
    background-position: center center !important;
}

/* Provide readable contrast when an affected hero lacked a complete overlay. */
.page-id-2285 .us_custom_c06e7f6c::before,
.page-id-2279 .us_custom_c06e7f6c::before,
.page-id-2282 .us_custom_c06e7f6c::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(23, 32, 51, 0.92), rgba(27, 18, 47, 0.70));
    pointer-events: none;
}

.page-id-2285 .us_custom_c06e7f6c > .l-section-h,
.page-id-2279 .us_custom_c06e7f6c > .l-section-h,
.page-id-2282 .us_custom_c06e7f6c > .l-section-h {
    position: relative;
    z-index: 1;
}

/* Match every 01/02/03/04 marker to the homepage treatment. */
.mars-process-card .mars-process-number,
.mars-process-card h6.mars-process-number,
.mars-process-card div.mars-process-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 48px !important;
    min-height: 34px !important;
    margin: 0 0 14px !important;
    padding: 6px 14px !important;
    border: 1px solid var(--mars-blue-border) !important;
    border-radius: 999px !important;
    background: var(--mars-blue-soft) !important;
    color: var(--mars-blue) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    align-self: flex-start !important;
}

/* Consistent process-card surface on pages that were missing homepage-only CSS. */
.mars-process-card .mars-card-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 28px 24px !important;
    border: 1px solid rgba(95, 168, 211, 0.16) !important;
    border-top: 3px solid var(--mars-blue) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 2px 14px rgba(23, 32, 51, 0.07), 0 1px 4px rgba(23, 32, 51, 0.04) !important;
    box-sizing: border-box !important;
    transition: transform 220ms ease, box-shadow 220ms ease !important;
}

/* Equal-height content groups identified by their visible section headings. */
.mars-equal-row {
    align-items: stretch !important;
}

.mars-equal-row > .wpb_column,
.mars-equal-row > .vc_column_container {
    display: flex !important;
}

.mars-equal-row > .wpb_column > .vc_column-inner,
.mars-equal-row > .vc_column_container > .vc_column-inner,
.mars-equal-row > .wpb_column > .vc_column-inner > .wpb_wrapper,
.mars-equal-row > .vc_column_container > .vc_column-inner > .wpb_wrapper {
    width: 100% !important;
    height: 100% !important;
}

/* Impreza/WPBakery commonly inserts a g-cols wrapper around the actual cards. */
.mars-equal-row > .wpb_column > .vc_column-inner,
.mars-equal-row > .vc_column_container > .vc_column-inner {
    display: flex !important;
    flex-direction: column !important;
}

.mars-equal-row > .wpb_column > .vc_column-inner > .wpb_wrapper,
.mars-equal-row > .vc_column_container > .vc_column-inner > .wpb_wrapper,
.mars-equal-row .mars-card-inner,
.mars-equal-row .w-iconbox,
.mars-equal-row .wpb_text_column {
    flex: 1 1 auto;
}

.mars-equal-row > .wpb_column > .vc_column-inner > .wpb_wrapper,
.mars-equal-row > .vc_column_container > .vc_column-inner > .wpb_wrapper {
    display: flex !important;
    flex-direction: column !important;
}

.mars-equal-row .mars-process-card,
.mars-equal-row .mars-process-card > .vc_column-inner,
.mars-equal-row .mars-process-card .mars-card-inner {
    height: 100% !important;
}

/* Imaging Preparation: align every modality label, description and CTA. */
.mars-modalities-section .mars-equal-row .w-btn-wrapper,
.mars-modalities-section .mars-equal-row .wpb_wrapper > .w-btn,
.mars-modalities-section .mars-equal-row .wpb_wrapper > a.w-btn {
    margin-top: auto !important;
}

.mars-modalities-section .mars-equal-row .w-btn-wrapper {
    padding-top: 18px !important;
}

.mars-modalities-section .mars-equal-row > .wpb_column > .vc_column-inner > .wpb_wrapper,
.mars-modalities-section .mars-equal-row > .vc_column_container > .vc_column-inner > .wpb_wrapper {
    justify-content: flex-start !important;
}

.mars-modalities-section .mars-equal-row .w-btn-wrapper:last-child,
.mars-modalities-section .mars-equal-row a.w-btn:last-child {
    margin-top: auto !important;
}

.mars-modalities-section .mars-equal-row h3,
.mars-modalities-section .mars-equal-row h4 {
    margin-bottom: 12px !important;
}

/* Insurance & Prior Authorization: normalize the heading-to-columns rhythm. */
.mars-insurance-help-section .mars-equal-row {
    margin-top: 22px !important;
    row-gap: 24px !important;
}

.mars-insurance-help-section .mars-equal-row .wpb_text_column,
.mars-insurance-help-section .mars-equal-row .wpb_text_column:last-child {
    margin-bottom: 0 !important;
}

.mars-insurance-help-section .mars-equal-row h3,
.mars-insurance-help-section .mars-equal-row h4 {
    margin-bottom: 12px !important;
}

.mars-process-card .mars-card-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 28px rgba(23, 32, 51, 0.12) !important;
}

/* Restrained, reusable reveal motion with an accessible reduced-motion fallback. */
.mars-js .mars-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 650ms cubic-bezier(.2,.7,.2,1), transform 650ms cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--mars-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.mars-js .mars-reveal.mars-reveal-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .mars-equal-row > .wpb_column,
    .mars-equal-row > .vc_column_container {
        display: block !important;
    }

    .mars-process-card .mars-card-inner {
        padding: 24px 20px !important;
    }

    .mars-process-card .mars-card-inner:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mars-js .mars-reveal,
    .mars-js .mars-reveal.mars-reveal-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}
