/* ============================================================
   bm-custom.css — BeMultiplied Structural Widget CSS
   ============================================================
   PURPOSE: Structural CSS only — position, display, flex layout.
   Dynamic values (colors, sizes) are handled by Elementor controls.

   LABEL LEGEND:
   STRUCTURAL       — Layout-critical. Do not remove.
   ELEMENTOR QUIRK  — Compensates for Elementor's forced styles.
   JS-DRIVEN        — Class toggled or value set by JavaScript.
   ENHANCEMENT      — Visual polish. Safe to adjust or remove.

   One clearly labelled block per widget.
   New widget CSS is appended here during each section build phase.
   ============================================================ */

/* ============================================================
   GLOBAL — Base resets safe to apply with Hello Elementor
   ============================================================ */

/* STRUCTURAL — box-sizing sanity check */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ── BM Faithful Work Stats ─────────────────────────────────── */
.bm-fws {
    --bm-fws-pattern-color: #d9d0c1;
    --bm-fws-pattern-dot-size: 2px;
    --bm-fws-pattern-grid-size: 18px;
    --bm-fws-pattern-opacity: 1;
    position: relative;
    overflow: hidden;
}

.bm-fws::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(220px, 32vw);
    height: 100%;
    pointer-events: none;
    opacity: var(--bm-fws-pattern-opacity, 1);
    background-image: radial-gradient(var(--bm-fws-pattern-color, #d9d0c1) var(--bm-fws-pattern-dot-size, 2px), transparent var(--bm-fws-pattern-dot-size, 2px));
    background-size: var(--bm-fws-pattern-grid-size, 18px) var(--bm-fws-pattern-grid-size, 18px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

.bm-fws__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.bm-fws__stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.bm-fws__item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    text-align: center;
}

.bm-fws__divider {
    position: absolute;
    top: 66px;
    left: 0;
    width: 1px;
    height: 60px;
    transform: translateX(-50%);
    background: #c9bda7;
}

.bm-fws__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #61c6c4;
}

.bm-fws__icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bm-fws__number {
    display: block;
    color: #1e1f24;
    font-family: "Roboto Serif", serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.bm-fws__label {
    display: block;
    max-width: 188px;
    margin-top: -20px;
    color: #78736c;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.16;
    text-align: center;
}

.bm-fws.is-counter-ready[data-counter-animate="yes"] .bm-fws__item {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity var(--bm-fws-speed, 1800ms) var(--bm-fws-easing, ease-out),
        transform var(--bm-fws-speed, 1800ms) var(--bm-fws-easing, ease-out);
}

.bm-fws.is-counter-ready[data-counter-animate="yes"] .bm-fws__item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.bm-fws[data-counter-direction="down"] .bm-fws__item {
    transform: translate3d(0, -20px, 0);
}

.bm-fws[data-counter-direction="left"] .bm-fws__item {
    transform: translate3d(24px, 0, 0);
}

.bm-fws[data-counter-direction="right"] .bm-fws__item {
    transform: translate3d(-24px, 0, 0);
}

.bm-fws[data-counter-direction="fade"] .bm-fws__item {
    transform: none;
}

.bm-fws.is-counter-ready[data-counter-animate="yes"] .bm-fws__item.is-visible,
.bm-fws[data-counter-direction="fade"] .bm-fws__item.is-visible {
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
    .bm-fws__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .bm-fws__divider {
        display: none;
    }
}

@media (max-width: 767px) {
    .bm-fws::before {
        width: 38vw;
        opacity: calc(var(--bm-fws-pattern-opacity, 1) * 0.55);
    }

    .bm-fws__stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bm-fws__item {
        gap: 18px;
    }

    .bm-fws__label {
        max-width: 240px;
        margin-top: -12px;
    }
}

/* ============================================================
   WIDGET CSS BLOCKS WILL BE APPENDED BELOW AS SECTIONS ARE BUILT
   ============================================================ */

/* ============================================================
   WIDGET: BM Serving Difference Carousel
   Figma node: 8235:6228
   ============================================================ */

.bm-sdc {
    --bm-sdc-slides-current: var(--bm-sdc-slides-desktop, 3);
    --bm-sdc-peek-current: var(--bm-sdc-peek-desktop, 238px);
    --bm-sdc-card-width: 350px;
    width: 100%;
    overflow: hidden;
    padding: 80px 0 40px 120px;
}

.bm-sdc__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

.bm-sdc__intro {
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: min(1199px, 100%);
}

.bm-sdc__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 55px;
    row-gap: 55px;
    width: 100%;
}

.bm-sdc__heading-wrap {
    position: relative;
}

.bm-sdc__heading {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: #1e1f24;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize;
}

.bm-sdc__heading span {
    display: block;
}

.bm-sdc__underline {
    position: absolute;
    left: 0;
    bottom: -8px;
    display: block;
    width: 360px;
    height: 10px;
    pointer-events: none;
}

.bm-sdc__underline-image,
.bm-sdc__underline-shape {
    display: block;
    width: 100%;
    height: 100%;
}

.bm-sdc__underline-image {
    object-fit: contain;
}

.bm-sdc__underline-shape {
    background-color: #61c6c4;
    border-radius: 999px;
}

.bm-sdc__description {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.bm-sdc__description p {
    margin: 0;
}

.bm-sdc__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.bm-sdc__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 12px 41px;
    border-radius: 155px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.bm-sdc__button--one {
    background-color: #6d5242;
    color: #fef7ed;
}

.bm-sdc__button--two {
    background-color: #61c6c4;
    color: #1e1f24;
}

.bm-sdc__carousel {
    width: 100%;
}

.bm-sdc__viewport {
    width: 100%;
    overflow: hidden;
}

.bm-sdc__track {
    display: flex;
    align-items: stretch;
    gap: 32px;
    width: max-content;
    will-change: transform;
    transition-property: transform;
}

.bm-sdc__slide {
    flex: 0 0 var(--bm-sdc-card-width);
    width: var(--bm-sdc-card-width);
}

.bm-sdc__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    min-height: 289px;
    height: 100%;
    padding: 24px;
    border-radius: 12px;
    background-color: rgba(187, 222, 223, 0.3);
    color: #1e1f24;
    text-align: center;
    transition: background-color 250ms ease, color 250ms ease;
}

.bm-sdc__slide.is-active .bm-sdc__card {
    background-color: #6d5242;
    color: #fef7ed;
}

.bm-sdc__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #61c6c4;
    color: #1e1f24;
    flex: 0 0 auto;
}

.bm-sdc__icon,
.bm-sdc__icon-placeholder {
    display: block;
    width: 28px;
    height: 28px;
}

.bm-sdc__icon {
    object-fit: contain;
}

.bm-sdc__icon-placeholder {
    border-radius: 999px;
    border: 2px solid currentColor;
    opacity: 0;
}

.bm-sdc__card-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.bm-sdc__card-title {
    margin: 0;
    color: inherit;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.48px;
}

.bm-sdc__card-description {
    margin: 0;
    color: inherit;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
}

.bm-sdc__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 32px;
}

.bm-sdc__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bm-sdc__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #1e1f24;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.bm-sdc__arrow-icon,
.bm-sdc__arrow-fallback {
    display: block;
    width: 32px;
    height: 32px;
}

.bm-sdc__arrow-icon {
    object-fit: contain;
}

.bm-sdc__arrow-fallback {
    line-height: 1;
}

.bm-sdc__arrow:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.bm-sdc__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.bm-sdc__dot {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: #d0c7b8;
    cursor: pointer;
}

.bm-sdc__dot.is-active {
    background-color: #6d5242;
}

@media (max-width: 1024px) {
    .bm-sdc {
        --bm-sdc-slides-current: var(--bm-sdc-slides-tablet, var(--bm-sdc-slides-desktop, 2));
        --bm-sdc-peek-current: var(--bm-sdc-peek-tablet, var(--bm-sdc-peek-desktop, 80px));
        padding: 64px 32px 40px;
    }

    .bm-sdc__inner {
        gap: 44px;
    }

    .bm-sdc__intro {
        gap: 32px;
    }

    .bm-sdc__header {
        column-gap: 36px;
        row-gap: 36px;
    }

    .bm-sdc__heading {
        font-size: 34px;
    }

    .bm-sdc__track {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .bm-sdc {
        --bm-sdc-slides-current: var(--bm-sdc-slides-mobile, 1);
        --bm-sdc-peek-current: var(--bm-sdc-peek-mobile, 48px);
        padding: 48px 24px 32px;
    }

    .bm-sdc__inner {
        gap: 32px;
    }

    .bm-sdc__intro {
        gap: 24px;
    }

    .bm-sdc__header {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 24px;
        text-align: center;
    }

    .bm-sdc__heading {
        align-items: center;
        font-size: 28px;
        text-align: center;
    }

    .bm-sdc__underline {
        left: 50%;
        bottom: -6px;
        width: 100%;
        transform: translateX(-50%);
    }

    .bm-sdc__description {
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .bm-sdc__buttons {
        justify-content: center;
    }

    .bm-sdc__track {
        gap: 16px;
    }

    .bm-sdc__slide {
        flex-basis: min(var(--bm-sdc-card-width), calc(100vw - 72px));
        width: min(var(--bm-sdc-card-width), calc(100vw - 72px));
    }

    .bm-sdc__card {
        min-height: 278px;
    }

    .bm-sdc__footer {
        justify-content: center;
        margin-top: 24px;
    }

    .bm-sdc__controls {
        display: none;
    }

    .bm-sdc__dots {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-sdc__track,
    .bm-sdc__card {
        transition: none !important;
    }
}

/* ============================================================
   WIDGET: BM More Ways Section
   Figma nodes: 8235:6185 and 8491:1255
   ============================================================ */

.bm-more-ways {
    width: 100%;
    padding: 80px 120px;
}

.bm-more-ways__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}


.bm-more-ways__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.bm-more-ways__tab-shell {
    width: 100%;
    padding: 5px 18px 4px;
    border-radius: 160px;
    background-color: rgba(170, 150, 128, 0.17);
}

.bm-more-ways__tablist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.bm-more-ways__tablist::-webkit-scrollbar {
    display: none;
}

.bm-more-ways__tab-divider {
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: 42px;
    background-color: #c8b59f;
}

.bm-more-ways__tab {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    margin: 0;
    padding: 12px 36px;
    border: 0;
    background: transparent;
    color: #1e1f24;
    cursor: pointer;
    font-family: "Roboto Serif", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.4px;
    text-align: center;
}

.bm-more-ways__tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.bm-more-ways__tab.is-active {
    color: #6d5242;
}

.bm-more-ways__tab-label {
    position: relative;
    z-index: 1;
}

.bm-more-ways__tab-underline {
    display: block;
    visibility: hidden;
    width: 64px;
    margin-top: 4px;
}

.bm-more-ways__tab.is-active .bm-more-ways__tab-underline {
    visibility: visible;
}

.bm-more-ways__tab-underline-img {
    display: block;
    width: 100%;
    height: auto;
}

.bm-more-ways__tab-underline-img--mobile {
    display: none;
}

.bm-more-ways__panels {
    width: 100%;
}

.bm-more-ways__panel {
    display: grid;
    grid-template-columns: minmax(0, 551px) minmax(0, 540px);
    justify-content: space-between;
    align-items: center;
    column-gap: 48px;
    row-gap: 48px;
    width: 100%;
}

.bm-more-ways__panel[hidden] {
    display: none !important;
}

.bm-more-ways__panel-media {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

.bm-more-ways__panel-media.is-empty {
    min-height: 413px;
}

.bm-more-ways__panel-image {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.bm-more-ways__panel-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    gap: 24px;
    width: 100%;
}

.bm-more-ways__panel-title {
    margin: 0;
    color: #1e1f24;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.bm-more-ways__panel-body {
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.bm-more-ways__panel-body p {
    margin: 0 0 1em;
}

.bm-more-ways__panel-body p:last-child {
    margin-bottom: 0;
}

.bm-more-ways__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 999px;
    background-color: #61c6c4;
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 200ms ease, opacity 200ms ease;
}

.bm-more-ways__button:hover,
.bm-more-ways__button:focus-visible {
    transform: translateY(-1px);
}

.bm-more-ways__button--placeholder {
    cursor: default;
}

.bm-more-ways__button--placeholder:hover,
.bm-more-ways__button--placeholder:focus-visible {
    transform: none;
}

.bm-more-ways__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.bm-more-ways__panel.is-entering .bm-more-ways__panel-media,
.bm-more-ways__panel.is-entering .bm-more-ways__panel-copy {
    animation-name: bm-more-ways-enter;
    animation-duration: var(--bm-more-ways-enter-duration, 500ms);
    animation-timing-function: var(--bm-more-ways-enter-easing, ease-out);
    animation-fill-mode: both;
}

.bm-more-ways__panel.is-entering .bm-more-ways__panel-copy {
    animation-delay: 70ms;
}

@keyframes bm-more-ways-enter {
    from {
        opacity: 0;
        transform: translate(var(--bm-more-ways-enter-x, 0), var(--bm-more-ways-enter-y, 0));
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@media (max-width: 1024px) {
    .bm-more-ways {
        padding: 64px 40px;
    }

    .bm-more-ways__inner {
        gap: 44px;
    }

    .bm-more-ways__tab {
        padding-left: 24px;
        padding-right: 24px;
    }

    .bm-more-ways__tab-divider {
        height: 36px;
    }

    .bm-more-ways__panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 32px;
        row-gap: 32px;
    }

    .bm-more-ways__panel-media,
    .bm-more-ways__panel-media.is-empty {
        min-height: 340px;
    }
}

@media (max-width: 767px) {
    .bm-more-ways {
        padding: 32px 24px;
    }

    .bm-more-ways__inner {
        gap: 32px;
    }

    .bm-more-ways__content {
        gap: 24px;
    }

    .bm-more-ways__tab {
        padding: 10px 20px;
    }

    .bm-more-ways__tab-divider {
        height: 30px;
    }

    .bm-more-ways__tab-underline {
        width: 48px;
        margin-top: 3px;
    }

    .bm-more-ways__tab-underline-img--desktop {
        display: none;
    }

    .bm-more-ways__tab-underline-img--mobile {
        display: block;
    }

    .bm-more-ways__panel {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
    }

    .bm-more-ways__panel-media,
    .bm-more-ways__panel-media.is-empty {
        min-height: 280px;
    }

    .bm-more-ways__panel-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-more-ways__button {
        transition: none;
    }

    .bm-more-ways__panel.is-entering .bm-more-ways__panel-media,
    .bm-more-ways__panel.is-entering .bm-more-ways__panel-copy {
        animation: none;
    }
}

/* ============================================================
   WIDGET: BM Announcement Bar
   Figma node: 8372:392
   ============================================================ */

.bm-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 179px;
    background-color: #b29a82;
}

.bm-announcement__text {
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #1e1f24;
}

.bm-announcement__text p {
    margin: 0;
}

.bm-announcement__text strong,
.bm-announcement__text b {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .bm-announcement {
        padding: 14px 48px;
    }
}

@media (max-width: 767px) {
    .bm-announcement {
        padding: 12px 16px;
    }

    .bm-announcement__text {
        line-height: 1.2;
    }
}

/* ============================================================
   WIDGET: BM Navigation
   Figma node: 7621:1739
   ============================================================ */

/* STRUCTURAL — Full-width nav bar */
.bm-nav {
    width: 100%;
    position: relative;
}

/* STRUCTURAL — Inner flex row: logo | links | actions */
.bm-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

/* STRUCTURAL — Logo link resets */
.bm-nav__logo a {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.bm-nav__logo {
    flex: 0 0 160px;
    max-width: 160px;
}

/* ELEMENTOR QUIRK FIX — Elementor forces display:inline on images */
.bm-nav__logo img {
    display: block !important;
    width: auto;
}

/* STRUCTURAL — Desktop nav links list */
.bm-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

/* STRUCTURAL — Each nav item: column so the indicator sits below the link text */
.bm-nav__links li,
.bm-nav__link-item {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bm-nav__links a {
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

/* STRUCTURAL — Active indicator: hidden for all items by default */
.bm-nav__link-indicator {
    display: block;
    width: 100%;       /* auto-stretches to match the link text + its horizontal padding */
    line-height: 0;
    overflow: visible;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms ease, visibility 0s 200ms;
    pointer-events: none;
}

/* JS-DRIVEN / PHP-DRIVEN — show indicator only on the active page link */
.bm-nav__link-item.is-active .bm-nav__link-indicator {
    visibility: visible;
    opacity: 1;
    transition: opacity 200ms ease, visibility 0s;
}

/* STRUCTURAL — SVG/image fills the full nav-item width; height is capped */
.bm-nav__link-indicator-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 4px;   /* overridden by Elementor nav_indicator_height control */
    object-fit: fill;  /* stretch horizontally so a wavy SVG spans the full link width */
}

/* STRUCTURAL — Actions container (Give btn + hamburger) */
.bm-nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    flex: 0 0 160px;
    max-width: 160px;
}

/* STRUCTURAL — Give / CTA button base */
.bm-nav__btn {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

/* STRUCTURAL — Hamburger button: hidden on desktop, shown on mobile */
/* Figma mobile: ~115px × 35px pill — icon left (12px pad), text right (18px pad) */
.bm-nav__hamburger {
    display: none;
    align-items: center;
    gap: 10px;                          /* Figma: gap-[10px] */
    height: 35px;                       /* Figma: h-[35px] */
    padding: 0 18px 0 12px;            /* Figma: pl-[12px] pr-[18px] */
    border: 1px solid white;           /* Figma: border border-[white] */
    border-radius: 50px;               /* overridden by Elementor mobile_btn_radius */
    background-color: transparent;     /* overridden by Elementor mobile_btn_bg (#61c6c4) */
    cursor: pointer;
    font-family: "Roboto", sans-serif; /* Figma: font-family/body */
    font-weight: 600;                  /* Figma: font-weight/semibold */
    font-size: 16px;                   /* Figma: font-size/button */
    white-space: nowrap;
}

/* STRUCTURAL — Hamburger icon (3 horizontal bars) */
/* Figma uses a 22×22 material-symbols SVG; CSS bars replicate it structurally */
.bm-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;    /* Figma: size-[22px] */
    flex-shrink: 0;
}

.bm-hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
}

/* STRUCTURAL — Mobile overlay: fixed full-screen, high z-index */
.bm-nav__overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 24px 40px;
}

.bm-nav__overlay-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.bm-nav__overlay-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.bm-nav__overlay-brand a {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.bm-nav__overlay-brand img {
    display: block;
    width: auto;
    max-height: 48px;
}

/* JS-DRIVEN — hidden attribute hides overlay; JS removes it to open */
.bm-nav__overlay[hidden] {
    display: none !important;
}

/* STRUCTURAL — Close (×) button: absolute top-right */
.bm-nav__overlay-close {
    position: absolute !important;
    top: 24px;
    right: 32px;
    background: transparent;
    border: none;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

/* STRUCTURAL — Overlay nav links list */
.bm-nav__overlay-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;    /* centers each <li> horizontally */
    gap: 24px;
    width: 100%;
}

.bm-nav__overlay-links li {
    margin: 0;
    padding: 0;
    width: 100%;            /* full row so text-align: center works reliably */
}

.bm-nav__overlay-links a {
    display: block;
    font-family: "Roboto", sans-serif;  /* Figma: font-family/body */
    font-size: 24px;
    font-weight: 600;
    text-align: center;                 /* explicit — don't rely on inheritance */
    text-decoration: none;
    transition: color 200ms ease;
}

/* ============================================================
   WIDGET: BM Video Section
   Figma node: 7621:2195
   Desktop: 5-panel fan with clip-path diagonal cuts
   Mobile:  3-panel (li|video|ri) with concave curved edges, video taller
   ============================================================ */

/* STRUCTURAL — Outer wrapper */
.bm-video-section {
    width: 100%;
    overflow: hidden;
    background-color: transparent !important;
}

/* STRUCTURAL — 5-panel flex row */
.bm-video-section__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 12px;
}

/* STRUCTURAL — All panels base: equal width, clip-path handles visual bounds */
/* overflow:hidden removed — it conflicts with clip-path in some stacking contexts.
   Children are all position:absolute with inset:0 so no overflow occurs naturally. */
.bm-vs-panel {
    position: relative !important;
    flex: 1 1 0%;   /* equal width for all panels; no individual overrides */
    min-width: 0;
    flex-shrink: 1;
    height: var(--bm-vs-h-base, 670px);
}

@media (min-width: 1440px) {
    .bm-vs-panel {
        height: var(--bm-vs-h-clamp, var(--bm-vs-h-base, 670px));
    }
}

/* STRUCTURAL — Photo slider: slides stacked, fade between them */
.bm-photo-slider {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* STRUCTURAL — Each slide fills panel via background-image */
/* bg-position and bg-size are overridden per slide via inline style */
.bm-photo-slide {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;  /* overridden by Elementor fade_speed control */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--bm-bg-x, 50%) var(--bm-bg-y, 50%);
}

/* JS-DRIVEN — active slide fades in */
.bm-photo-slide.is-active {
    opacity: 1;
}

/* STRUCTURAL — Video cover image: background-image fills panel */
/* bg-position and bg-size are overridden per-widget via Elementor selectors */
.bm-vs-panel__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: var(--bm-bg-x, 50%) var(--bm-bg-y, 50%);
    background-repeat: no-repeat;
}

/* STRUCTURAL — Play button: centered absolute over video panel */
/* Uses <button> element — reset default button styles */
.bm-video-play-btn {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
    transition: background-color 200ms ease, transform 200ms ease;
    z-index: 2;
}

.bm-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

/* STRUCTURAL — Play triangle icon (CSS triangle trick) */
.bm-play-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #ffffff;  /* overridden by Elementor play_icon_color control */
    margin-left: 4px;  /* optical center adjustment */
}

/* ── FAN EFFECT — desktop clip-path diagonal cuts ──────────── */
/* Each panel is clipped to a trapezoid/parallelogram shape.
   The SECTION BACKGROUND colour shows through the cut areas,
   creating the visible diagonal fan lines.
   Set the Elementor section/container background to the dark
   primary colour (#2B1711) for the effect to be visible.
   No panel overlap is needed on desktop — the gaps ARE the design. */

@media (min-width: 769px) {
    .bm-video-section--fan .bm-video-section__inner {
        overflow: hidden;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 100% 100%;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 8 Q50 24 100 8 L100 92 Q50 76 0 92 Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 8 Q50 24 100 8 L100 92 Q50 76 0 92 Z'/%3E%3C/svg%3E");
    }

    .bm-video-section--fan .bm-vs-panel--lo,
    .bm-video-section--fan .bm-vs-panel--li,
    .bm-video-section--fan .bm-vs-panel--video,
    .bm-video-section--fan .bm-vs-panel--ri,
    .bm-video-section--fan .bm-vs-panel--ro {
        -webkit-mask-image: none;
        mask-image: none;
        clip-path: none;
    }
}

/* ── MOBILE — 3 panels with concave curved edges ────────────── */
@media (max-width: 768px) {

    /* STRUCTURAL — Hide outer panels on mobile */
    .bm-vs-panel--lo,
    .bm-vs-panel--ro {
        display: none !important;
    }

    /* STRUCTURAL — 3-panel layout: all panels same height, video slightly wider */
    .bm-video-section__inner {
        align-items: stretch;
    }

    .bm-vs-panel--li,
    .bm-vs-panel--ri {
        flex: 1;
    }

    .bm-vs-panel--video {
        flex: 1.2;
    }

    .bm-video-section--fan .bm-video-section__inner {
        overflow: hidden;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 100% 100%;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 8 Q50 24 100 8 L100 92 Q50 76 0 92 Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 8 Q50 24 100 8 L100 92 Q50 76 0 92 Z'/%3E%3C/svg%3E");
    }

    .bm-video-section--fan .bm-vs-panel--li,
    .bm-video-section--fan .bm-vs-panel--ri,
    .bm-video-section--fan .bm-vs-panel--video {
        clip-path: none;
    }

    /* Narrow mobile panels often have no vertical crop with `cover`,
       which makes Y-position changes appear inert. Give them slight
       vertical overscan so the Y controls have visible travel. */
    .bm-vs-panel--li .bm-photo-slide,
    .bm-vs-panel--ri .bm-photo-slide,
    .bm-vs-panel--video .bm-vs-panel__cover {
        background-size: auto 112%;
    }

    .bm-photo-slide {
        background-position: var(--bm-bg-x-mobile, var(--bm-bg-x, 50%)) var(--bm-bg-y-mobile, var(--bm-bg-y, 50%));
    }

    .bm-vs-panel__cover {
        background-position: var(--bm-bg-x-mobile, var(--bm-bg-x, 50%)) var(--bm-bg-y-mobile, var(--bm-bg-y, 50%));
    }
}

/* ── VIDEO LIGHTBOX — custom JS-driven fullscreen overlay ───── */

/* STRUCTURAL — Fullscreen dimmed backdrop */
.bm-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* STRUCTURAL — Inner content box, max 960px wide */
.bm-video-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 960px;
}

/* STRUCTURAL — Close button: top-right of inner box */
.bm-video-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* STRUCTURAL — 16:9 responsive iframe wrapper */
.bm-video-lightbox__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.bm-video-lightbox__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* STRUCTURAL — Responsive: tablet/mobile switches to hamburger layout */
@media (max-width: 1024px) {
    .bm-nav__logo,
    .bm-nav__actions {
        flex-basis: auto;
        max-width: none;
    }

    .bm-nav__links {
        display: none !important;
    }

    /* Hide desktop Give button; show hamburger instead */
    .bm-nav__btn:not(.bm-nav__btn--overlay) {
        display: none !important;
    }

    .bm-nav__hamburger {
        display: flex !important;
    }
}

/* ============================================================
   WIDGET: BM Ways Section
   Figma node: 7954:1438
   ============================================================ */

.bm-ways {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bm-ways__header {
    position: relative;
    z-index: 2;
    margin: 0 auto 40px;
    max-width: 1200px;
    text-align: center;
    overflow: visible;
}

.bm-ways__heading {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #1e1f24;
}

.bm-ways__heading-line {
    display: block;
}

.bm-ways__highlight {
    display: inline-block;
}

.bm-ways__heading-underline {
    position: absolute;
    display: block;
    pointer-events: none;
}

.bm-ways__heading-underline--desktop {
    left: 58%;
    top: 78%;
    width: 358px;
    height: 11px;
    transform: translateX(-50%);
}

.bm-ways__heading-underline--mobile-left,
.bm-ways__heading-underline--mobile-right {
    display: none;
}

.bm-ways__heading-underline-shape,
.bm-ways__heading-underline-mobile-shape {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #61c6c4;
    -webkit-mask-image: var(--bm-ways-heading-underline-mask);
    mask-image: var(--bm-ways-heading-underline-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.bm-ways__body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 795px;
    margin: 0 auto;
}

.bm-ways__statement {
    display: flex;
    align-items: center;
    gap: 40px;
}

.bm-ways__tablist {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 222px;
}

.bm-ways__mobile-indicator {
    display: none;
}

.bm-ways__tab {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: "Roboto Serif", serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #aa9680;
    transition: color 200ms ease;
}

.bm-ways__tab.is-active {
    color: #1e1f24;
}

.bm-ways__tab:focus-visible {
    outline: 2px solid #61c6c4;
    outline-offset: 6px;
    border-radius: 2px;
}

.bm-ways__brace {
    width: 53px;
    height: 327px;
    flex: 0 0 53px;
}

.bm-ways__brace-shape {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #aa9680;
    -webkit-mask-image: var(--bm-ways-brace-mask);
    mask-image: var(--bm-ways-brace-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: opacity 200ms ease;
}

.bm-ways__panels {
    position: relative;
    width: 400px;
    max-width: 100%;
}

.bm-ways__panel {
    width: 400px;
    max-width: 100%;
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.16;
    color: #1e1f24;
    text-align: left;
    opacity: 0;
    transition: opacity 300ms ease;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bm-ways__panel.is-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.bm-ways__panel[hidden] {
    display: none !important;
}

.bm-ways__dots {
    position: absolute;
    top: -50px;
    left: 157px;
    width: 256px;
    opacity: 0.2;
    pointer-events: none;
}

.bm-ways__dots-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .bm-ways__heading {
        font-size: 32px;
    }

    .bm-ways__heading-underline--desktop {
        width: 320px;
    }

    .bm-ways__body {
        gap: 48px;
        max-width: 900px;
    }

    .bm-ways__statement {
        gap: 28px;
    }

    .bm-ways__tab {
        font-size: 42px;
    }

    .bm-ways__panels,
    .bm-ways__panel {
        width: 320px;
        font-size: 20px;
    }

    .bm-ways__dots {
        left: 32px;
        width: 225px;
    }
}

@media (max-width: 767px) {
    .bm-ways__header {
        margin-bottom: 32px;
    }

    .bm-ways__heading {
        font-size: 28px;
    }

    .bm-ways__header {
        max-width: 342px;
    }

    .bm-ways__heading-underline--desktop {
        display: none;
    }

    .bm-ways__heading-underline--mobile-left,
    .bm-ways__heading-underline--mobile-right {
        display: block;
        height: 8px;
    }

    .bm-ways__heading-underline--mobile-left {
        left: 20%;
        top: 78%;
        width: 239px;
        transform: translateX(-50%);
    }

    .bm-ways__heading-underline--mobile-right {
        left: 60%;
        top: 61%;
        width: 124px;
        transform: translateX(-50%);
    }

    .bm-ways__body {
        flex-direction: column;
        gap: 28px;
    }

    .bm-ways__statement {
        width: 100%;
        gap: 24px;
        align-items: stretch;
        flex-direction: column;
    }

    .bm-ways__tablist {
        width: 100%;
        flex-direction: row;
        gap: 4px;
        justify-content: space-between;
        align-items: flex-start;
    }

    .bm-ways__tab {
        flex: 0 0 auto;
        font-size: 30px;
        white-space: nowrap;
        text-transform: capitalize;
    }

    .bm-ways__brace {
        display: none;
    }

    .bm-ways__mobile-indicator {
        display: block;
        width: 100% !important;
        max-width: none !important;
        height: 23px;
        margin-top: 0;
        line-height: 0;
        overflow: hidden;
        text-align: center;
    }

    .bm-ways__mobile-indicator-image {
        display: block;
        width: auto;
        height: 23px;
        width: 100%;
        max-width: none;
        transition: opacity 200ms ease;
    }

    .bm-ways__panels,
    .bm-ways__panel {
        width: 100%;
        font-size: 20px;
    }

    .bm-ways__dots {
        left: -12px;
        top: -24px;
        width: 159px;
    }
}

/* ============================================================
   WIDGET: BM Testimonial Section
   Figma nodes: 7954:1453, 7692:1107
   ============================================================ */

.bm-testimonial {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.bm-testimonial__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.bm-testimonial__icon-wrap {
    line-height: 0;
}

.bm-testimonial__icon {
    display: block !important;
    width: 57px;
    height: 57px;
}

.bm-testimonial__heading {
    margin: 0;
    max-width: 100%;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #fef7ed;
    text-align: center;
    text-wrap: balance;
}

.bm-testimonial__quote {
    max-width: 796px;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #fef7ed;
    text-align: center;
    white-space: pre-line;
}

.bm-testimonial__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.bm-testimonial__author-name,
.bm-testimonial__author-location {
    margin: 0;
    color: #fef7ed;
    text-align: center;
}

.bm-testimonial__author-name {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.bm-testimonial__author-location {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 767px) {
    .bm-testimonial {
        gap: 32px;
    }

    .bm-testimonial__content {
        gap: 18px;
    }

    .bm-testimonial__icon {
        width: 45px;
        height: 45px;
    }

    .bm-testimonial__heading {
        font-size: 25px;
        max-width: 100%;
    }

    .bm-testimonial__quote {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.3;
    }

    .bm-testimonial__author-name {
        font-size: 18px;
    }

    .bm-testimonial__author-location {
        font-size: 16px;
    }
}

/* ============================================================
   WIDGET: BM Impact Section
   Figma node: 7954:1492
   ============================================================ */

/* STRUCTURAL — section wrapper; position:relative for bg layers */
.bm-impact {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* STRUCTURAL — bg layer fills the full section */
.bm-impact__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* STRUCTURAL — gradient overlay; stop positions driven by CSS vars */
.bm-impact__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--bm-impact-overlay-start, rgba(0, 0, 0, 0.5)) var(--bm-impact-overlay-start-stop, 23%),
        var(--bm-impact-overlay-end, #443525) var(--bm-impact-overlay-end-stop, 86%)
    );
}

/* STRUCTURAL — inner flex column: header row + cards row */
.bm-impact__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 72px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 120px;
}

/* STRUCTURAL — header: heading (flex-1 left) + description (fixed-width right) */
.bm-impact__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 19px;
    width: 100%;
}

/* STRUCTURAL — heading stretches to fill remaining header width */
.bm-impact__heading {
    flex: 1 1 0%;
    width: 100%;
    max-width: 580px;
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #fef7ed;
    text-transform: capitalize;
}

.bm-impact__heading-line {
    display: block;
}

/* STRUCTURAL — description: fixed 380px width on desktop */
.bm-impact__description {
    flex-shrink: 0;
    width: 380px;
    max-width: 100%;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #fef7ed;
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);
}

/* STRUCTURAL — 3-equal-column card row */
.bm-impact__items {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

/* STRUCTURAL — each card: position:relative for absolute children */
.bm-impact__item {
    position: relative;
    flex: 1 1 0%;
    height: 324px;
    border-radius: 12px;
    overflow: hidden;
}

/* STRUCTURAL — card bg image fills card via CSS custom property */
.bm-impact__item-image {
    position: absolute;
    inset: 0;
    background-image: var(--bm-impact-item-image);
    background-size: cover;
    background-position: var(--bm-impact-item-x, 50%) var(--bm-impact-item-y, 50%);
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform var(--bm-impact-hover-speed, 300ms) var(--bm-impact-hover-easing, ease);
    border-radius: inherit;
    will-change: transform;
}

/* ENHANCEMENT — image zoom on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .bm-impact__item:hover .bm-impact__item-image {
        transform: scale(var(--bm-impact-hover-scale, 1.06));
    }
}

/* JS-DRIVEN — opt-in mobile hover when Elementor toggle is enabled */
.bm-impact--hover-mobile .bm-impact__item:hover .bm-impact__item-image {
    transform: scale(var(--bm-impact-hover-scale, 1.06));
}

/* STRUCTURAL — gradient overlay per card; stop positions via CSS vars */
.bm-impact__item-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to bottom,
        var(--bm-impact-item-overlay-start, rgba(0, 0, 0, 0)) var(--bm-impact-item-overlay-start-stop, 50%),
        var(--bm-impact-item-overlay-end, #2b170b) var(--bm-impact-item-overlay-end-stop, 70%)
    );
    pointer-events: none;
}

/* STRUCTURAL — content layer: column layout, space-between */
.bm-impact__item-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 37px;
}

/* STRUCTURAL — text group: title + description stacked */
.bm-impact__item-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bm-impact__item-title {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fef7ed;
}

.bm-impact__item-desc {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #fef7ed;
}

/* STRUCTURAL — full-width pill CTA button */
.bm-impact__item-btn {
    display: block;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background-color: #61c6c4;
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    padding: 12px 40px;
    border-radius: 155px;
    transition: background-color 200ms ease;
}

/* ENHANCEMENT — button hover darkens teal */
.bm-impact__item-btn:hover {
    background-color: #4eb3b1;
    color: #1e1f24;
    text-decoration: none;
}

/* ── TABLET ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bm-impact__inner {
        gap: 48px;
    }

    .bm-impact__heading {
        font-size: 32px;
        max-width: 520px;
    }

    .bm-impact__description {
        width: 300px;
        font-size: 16px;
    }
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .bm-impact__inner {
        gap: 32px;
    }

    .bm-impact__header {
        flex-direction: column;
        gap: 16px;
    }

    .bm-impact__heading {
        font-size: 28px;
        max-width: 100%;
    }

    .bm-impact__description {
        width: 100%;
        font-size: 16px;
    }

    .bm-impact__items {
        flex-direction: column;
        gap: 16px;
    }

    .bm-impact__item {
        width: 100%;
        flex: none;
        height: 335px;
    }

    /* STRUCTURAL — content anchored to bottom, gap between text + button */
    .bm-impact__item-content {
        justify-content: flex-end;
        gap: 24px;
        padding: 24px;
    }

    /* STRUCTURAL — tighter gap between title and description on mobile */
    .bm-impact__item-text {
        gap: 12px;
    }

    /* STRUCTURAL — smaller title on mobile (Figma: 20px) */
    .bm-impact__item-title {
        font-size: 20px;
    }
}

/* ============================================================
   WIDGET: BM Quotes Slider
   Figma nodes: 7954:1516 (desktop), 7692:1524 (mobile)
   ============================================================ */

/* ============================================================
   WIDGET: BM Leaders Support
   Figma node: 7954:1640
   ============================================================ */

.bm-ls {
    display: grid;
    grid-template-columns:
        minmax(0, var(--bm-ls-left-width, 50%))
        minmax(0, var(--bm-ls-right-width, 50%));
    width: 100%;
    min-height: 792px;
}

.bm-ls__hero {
    position: relative;
    overflow: hidden;
    min-height: 792px;
    background-color: #090606;
}

.bm-ls__hero-media,
.bm-ls__hero-overlay {
    position: absolute;
    inset: 0;
}

.bm-ls__hero-media {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scaleY(-1) rotate(180deg);
    transform-origin: center;
}

.bm-ls__hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(9, 6, 6, 0) 7.862%,
        #090606 81.591%
    );
}

.bm-ls__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 40px;
    min-height: 100%;
    padding: 120px 80px 120px 120px;
}

.bm-ls__text-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.bm-ls__heading {
    margin: 0;
    display: flex;
    flex-direction: column;
    max-width: 452px;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.bm-ls__heading-main {
    color: #fef7ed;
}

.bm-ls__heading-highlight {
    color: #61c6c4;
}

.bm-ls__description {
    margin: 0;
    max-width: 443px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #fef7ed;
}

.bm-ls__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 12px 40px;
    border-radius: 155px;
    background-color: #61c6c4;
    color: #1e1f24;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
}

.bm-ls__button:hover {
    color: #1e1f24;
    text-decoration: none;
}

.bm-ls__support {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 80px 120px 80px 80px;
    background-color: #f3e2c6;
}

.bm-ls__step {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid transparent;
    outline: none;
}

.bm-ls__step + .bm-ls__step {
    border-top-color: #aa9680;
}

.bm-ls__step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border: 3px solid #aa9680;
    border-radius: 999px;
    background-color: transparent;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.bm-ls__step:hover .bm-ls__step-badge {
    background-color: #61c6c4;
    border-color: #61c6c4;
}

.bm-ls__step-number {
    display: block;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #1e1f24;
}

.bm-ls__step-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bm-ls__step-title {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1e1f24;
}

.bm-ls__step-text {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #1e1f24;
}

@media (max-width: 1024px) {
    .bm-ls {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bm-ls__hero {
        min-height: 620px;
    }

    .bm-ls__hero-content,
    .bm-ls__support {
        padding: 80px 48px;
    }

    .bm-ls__heading {
        font-size: 32px;
    }

    .bm-ls__description {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .bm-ls__hero {
        min-height: 465px;
    }

    .bm-ls__hero-content,
    .bm-ls__support {
        padding: 24px;
    }

    .bm-ls__hero-content {
        gap: 32px;
    }

    .bm-ls__heading {
        max-width: 100%;
        font-size: 25px;
    }

    .bm-ls__description {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.15;
    }

    .bm-ls__step {
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }

    .bm-ls__step-badge {
        width: 54px;
        height: 54px;
        border-width: 2px;
    }

    .bm-ls__step-number {
        font-size: 18px;
    }

    .bm-ls__step-title {
        font-size: 20px;
    }

    .bm-ls__step-text {
        line-height: 1.15;
    }
}

/* STRUCTURAL — outer section */
.bm-qs {
    width: 100%;
    overflow: hidden;
}

/* ── HERO BANNER ──────────────────────────────────────── */

/* STRUCTURAL — hero: flex centered, gradient bg via CSS vars */
.bm-qs__hero {
    position: relative;
    width: 100%;
    min-height: 442px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        var(--bm-qs-hero-top, rgba(68, 53, 37, 0.82)) 0%,
        var(--bm-qs-hero-bottom, rgba(9, 6, 6, 0.95)) 100%
    );
}

/* STRUCTURAL — dot pattern: absolute left, vertically centred */
.bm-qs__hero-dots {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.bm-qs__hero-dots-img {
    display: block;
    height: auto;
    max-height: 100%;
}

/* STRUCTURAL — inner text container: centred column */
.bm-qs__hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 48px;
    text-align: center;
}

/* STRUCTURAL — hero heading lines stack */
.bm-qs__hero-heading {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize;
}

.bm-qs__hero-heading-line {
    display: block;
    color: #fef7ed;
}

/* ENHANCEMENT — line 2 in teal */
.bm-qs__hero-heading-line--highlight {
    color: #61c6c4;
}

/* STRUCTURAL — hero description */
.bm-qs__hero-desc {
    margin: 0;
    max-width: 700px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #fef7ed;
}

/* STRUCTURAL — hero CTA button */
.bm-qs__hero-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background-color: #61c6c4;
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    padding: 12px 40px;
    border-radius: 155px;
    transition: background-color 200ms ease;
    white-space: nowrap;
}

.bm-qs__hero-btn:hover {
    background-color: #4eb3b1;
    color: #1e1f24;
    text-decoration: none;
}

/* ── QUOTES BODY ──────────────────────────────────────── */

/* STRUCTURAL — body: centred column */
.bm-qs__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
    width: 100%;
}

/* STRUCTURAL — section heading */
.bm-qs__heading {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-transform: capitalize;
    color: #f4efe2;
    padding: 0 24px;
}

/* STRUCTURAL — slider wrapper: positions stage + nav */
.bm-qs__slider-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* STRUCTURAL — stage clips overflow on mobile */
.bm-qs__stage {
    width: 100%;
    overflow: hidden;
}

/* STRUCTURAL — track: flex row, 3 visible slots on desktop */
.bm-qs__track {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    width: min(1440px, calc(100% - 48px));
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* STRUCTURAL — slides hidden by default; only 3 states show */
.bm-qs__slide {
    display: none;
    flex: 1 1 0%;
    flex-direction: column;
    min-width: 0;
}

.bm-qs__slide.is-prev,
.bm-qs__slide.is-active,
.bm-qs__slide.is-next {
    display: flex;
}

@media (min-width: 768px) {
    .bm-qs__slide.is-prev {
        order: 1;
    }

    .bm-qs__slide.is-active {
        order: 2;
    }

    .bm-qs__slide.is-next {
        order: 3;
    }
}

/* STRUCTURAL — card: full height flex column */
.bm-qs__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 25px;
    border-radius: 12px;
    background-color: var(--bm-qs-card-inactive-bg, rgba(116, 104, 88, 0.5));
    opacity: var(--bm-qs-inactive-opacity, 0.5);
    transition:
        background-color var(--bm-qs-transition-speed, 400ms) var(--bm-qs-transition-easing, ease),
        opacity var(--bm-qs-transition-speed, 400ms) var(--bm-qs-transition-easing, ease);
}

/* ENHANCEMENT — active card full opacity + teal bg */
.bm-qs__slide.is-active .bm-qs__card {
    background-color: var(--bm-qs-card-active-bg, #bbdedf);
    opacity: 1;
}

/* STRUCTURAL — quote icon */
.bm-qs__quote-icon {
    flex-shrink: 0;
    line-height: 0;
    color: #1e1f24;
}

.bm-qs__quote-icon svg {
    display: block;
    width: 29px;
    height: 29px;
}

.bm-qs__quote-icon img {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* STRUCTURAL — quote text: centred, grows to fill space */
.bm-qs__quote {
    flex: 1;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    color: #1e1f24;
    display: flex;
    align-items: center;
}

/* STRUCTURAL — author block */
.bm-qs__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-align: center;
}

.bm-qs__author-name {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #1e1f24;
}

.bm-qs__author-role {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #1e1f24;
}

/* STRUCTURAL — nav: inline flex row of buttons */
.bm-qs__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* STRUCTURAL — nav button base */
.bm-qs__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 200ms ease;
    flex-shrink: 0;
}

.bm-qs__nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bm-qs__nav-btn:focus-visible {
    outline: 2px solid #61c6c4;
    outline-offset: 3px;
}

.bm-qs__nav-btn svg {
    display: block;
    width: 32px;
    height: 32px;
}

/* ── TABLET ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bm-qs__hero-heading {
        font-size: 32px;
    }

    .bm-qs__hero-desc {
        font-size: 16px;
    }

    .bm-qs__heading {
        font-size: 32px;
    }

    .bm-qs__track {
        width: min(1440px, calc(100% - 32px));
        gap: 16px;
    }
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .bm-qs__hero-heading {
        font-size: 25px;
    }

    .bm-qs__hero-desc {
        font-size: 15px;
    }

    .bm-qs__hero-inner {
        padding: 40px 24px;
        gap: 18px;
    }

    .bm-qs__heading {
        font-size: 25px;
    }

    /* STRUCTURAL — track translates; JS drives the transform */
    .bm-qs__track {
        display: flex;
        flex-wrap: nowrap;
        max-width: none;
        width: 100%;
        padding: 0;
        gap: 12px;
        justify-content: flex-start;
        transition: transform var(--bm-qs-transition-speed, 400ms) var(--bm-qs-transition-easing, ease);
        will-change: transform;
    }

    /* STRUCTURAL — all slides visible on mobile for translate carousel */
    .bm-qs__slide {
        display: flex !important;
        flex: 0 0 82%;
        order: initial;
        opacity: var(--bm-qs-inactive-opacity, 0.5);
        transition: opacity var(--bm-qs-transition-speed, 400ms) var(--bm-qs-transition-easing, ease);
        pointer-events: none;
    }

    .bm-qs__slide.is-prev,
    .bm-qs__slide.is-active,
    .bm-qs__slide.is-next,
    .bm-qs__slide.is-mobile-active {
        order: initial;
    }

    .bm-qs__slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .bm-qs__slide.is-mobile-active {
        opacity: 1;
        pointer-events: auto;
    }

    .bm-qs__slide.is-mobile-active .bm-qs__card {
        background-color: var(--bm-qs-card-active-bg, #bbdedf);
        opacity: 1;
    }

    .bm-qs__quote-icon svg {
        width: 40px;
        height: 40px;
    }

    .bm-qs__quote-icon img {
        width: 40px;
        height: 40px;
    }

    .bm-qs__nav-btn {
        width: 30px;
        height: 30px;
        border-radius: 3px;
        background-color: rgba(109, 109, 109, 0.28);
    }

    .bm-qs__nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .bm-qs__body {
        gap: 28px;
    }
}

/* ============================================================
   WIDGET: BM Why Different
   Figma nodes: 7954:1462, 7682:1467
   ============================================================ */

.bm-why-different {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bm-why-different__inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.bm-why-different__header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.bm-why-different__heading {
    margin: 0;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #1e1f24;
    text-wrap: balance;
}

.bm-why-different__heading-space {
    display: inline;
}

.bm-why-different__highlight {
    position: relative;
    display: inline-block;
}

.bm-why-different__underline {
    position: absolute;
    left: 50%;
    top: calc(100% - 4px);
    width: 181px;
    height: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}

.bm-why-different__underline-shape {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #61c6c4;
    -webkit-mask-image: var(--bm-why-different-underline-mask, var(--bm-why-different-underline-mask-alt));
    mask-image: var(--bm-why-different-underline-mask, var(--bm-why-different-underline-mask-alt));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.bm-why-different__subheading {
    width: 442px;
    max-width: 100%;
    margin: 16px auto 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    color: #1e1f24;
}

.bm-why-different__cards {
    display: flex;
    align-items: stretch;
    gap: 24.919px;
    width: 100%;
}

.bm-why-different__card {
    position: relative;
    display: block;
    min-width: 0;
    height: 336px;
    flex: 0 0 194.679px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: flex-basis 260ms ease, transform 260ms ease;
}

.bm-why-different__card.is-active {
    flex-basis: 541.207px;
}

.bm-why-different__card:focus-visible {
    outline: 2px solid #61c6c4;
    outline-offset: 4px;
}

.bm-why-different__image,
.bm-why-different__overlay,
.bm-why-different__content {
    position: absolute;
    inset: 0;
}

.bm-why-different__image {
    background-image: var(--bm-why-different-image);
    background-position: var(--bm-why-different-image-x, 50%) var(--bm-why-different-image-y, 50%);
    background-repeat: no-repeat;
    background-size: var(--bm-why-different-image-size, cover);
    transform: scale(1.01);
    filter: grayscale(0);
    transition: filter 220ms ease;
}

.bm-why-different__card:not(.is-active) .bm-why-different__image {
    filter: grayscale(var(--bm-why-different-collapsed-grayscale, 1));
}

.bm-why-different__overlay {
    background: linear-gradient(180deg, rgba(43, 23, 11, 0) 16%, var(--bm-why-different-overlay-end, #2b170b) 82%);
}

.bm-why-different__content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    color: #fef7ed;
}

.bm-why-different__content-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.bm-why-different__card.is-active .bm-why-different__content-inner {
    opacity: 1;
    transform: translateY(0);
}

.bm-why-different__card:not(.is-active) .bm-why-different__content {
    align-items: flex-end;
    justify-content: flex-end;
}

.bm-why-different__card-title {
    display: block;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fef7ed;
}

.bm-why-different__card-description {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #fef7ed;
}

.bm-why-different__vertical-title {
    position: absolute;
    right: var(--bm-why-different-title-right, 8px);
    bottom: var(--bm-why-different-title-bottom, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 360px;
    opacity: 1;
    transition: opacity 180ms ease;
    pointer-events: none;
    overflow: visible;
}

.bm-why-different__vertical-title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fef7ed;
    transform: rotate(-90deg);
    transform-origin: center;
    width: 320px;
    gap: 2px;
    padding: 0;
    text-align: left;
    max-width: none;
    white-space: nowrap;
}

.bm-why-different__vertical-title-line {
    display: block;
}

.bm-why-different__card[aria-expanded="false"] .bm-why-different__card-description {
    display: none;
}

.bm-why-different__card.is-active .bm-why-different__vertical-title {
    opacity: 0;
}

@media (max-width: 1024px) {
    .bm-why-different__heading {
        font-size: 34px;
    }

    .bm-why-different__cards {
        gap: 16px;
    }

    .bm-why-different__card {
        flex-basis: 110px;
    }

    .bm-why-different__card.is-active {
        flex-basis: 380px;
    }

    .bm-why-different__vertical-title {
        right: var(--bm-why-different-title-right-mobile, 6px);
        bottom: var(--bm-why-different-title-bottom-mobile, 10px);
        width: 108px;
        height: 320px;
    }

    .bm-why-different__vertical-title-text {
        width: 280px;
        font-size: 15px;
        line-height: 1.05;
    }
}

@media (max-width: 767px) {
    .bm-why-different__inner {
        width: min(1200px, calc(100% - 24px));
    }

    .bm-why-different__header {
        margin-bottom: 32px;
    }

    .bm-why-different__heading {
        font-size: 28px;
    }

    .bm-why-different__underline {
        top: calc(100% - 2px);
        width: 170px;
    }

    .bm-why-different__subheading {
        width: 100%;
        max-width: 342px;
        margin-top: 16px;
    }

    .bm-why-different__cards {
        flex-direction: column;
        gap: 8px;
    }

    .bm-why-different__card {
        width: 100%;
        flex-basis: auto;
        transition: flex-basis 260ms ease, transform 260ms ease, height 300ms ease;
    }

    /* Collapsed cards: slim height, image + overlay visible, title at bottom, description hidden */
    .bm-why-different__card:not(.is-active) {
        height: var(--bm-wd-collapsed-h, 64px) !important;
    }

    .bm-why-different__card:not(.is-active) .bm-why-different__image {
        background-position: var(--bm-why-different-image-x-mobile, var(--bm-why-different-image-x, 50%)) var(--bm-why-different-image-y-mobile, var(--bm-why-different-image-y, 50%));
        background-size: var(--bm-why-different-image-size-mobile, var(--bm-why-different-image-size, cover));
    }

    .bm-why-different__card:not(.is-active) .bm-why-different__content-inner {
        opacity: 1;
        transform: none;
    }

    .bm-why-different__card:not(.is-active) .bm-why-different__card-description {
        display: none;
    }

    /* Active card: full height with image */
    .bm-why-different__card.is-active .bm-why-different__image {
        background-position: var(--bm-why-different-image-x-mobile, var(--bm-why-different-image-x, 50%)) var(--bm-why-different-image-y-mobile, var(--bm-why-different-image-y, 50%));
        background-size: var(--bm-why-different-image-size-mobile, var(--bm-why-different-image-size, cover));
    }

    .bm-why-different__content {
        padding: 20px;
    }

    .bm-why-different__content-inner {
        opacity: 1;
        transform: none;
    }

    .bm-why-different__vertical-title {
        display: none;
    }
}

/* ============================================================
   WIDGET: BM Vision Section
   Figma nodes: 7954:1550 (desktop), 7692:1557 (mobile)
   ============================================================ */

/* STRUCTURAL — full-width section, overflow visible so portrait can bleed */
.bm-vision {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* STRUCTURAL — side-by-side layout: portrait left, content right */
.bm-vision__inner {
    display: flex;
    align-items: flex-end;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* ── Left column: portrait + scene images ─────────────────── */

/* STRUCTURAL — fixed-width left column, anchored to bottom, above scene */
.bm-vision__left {
    position: relative;
    flex: 0 0 580px;
    width: 580px;
    align-self: flex-end;
    z-index: 1;
}

/* STRUCTURAL — portrait image wrapper */
.bm-vision__portrait-wrap {
    position: relative;
    width: 100%;
}

/* STRUCTURAL — portrait image fills its column */
.bm-vision__portrait-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: var(--bm-vision-portrait-x, 50%) var(--bm-vision-portrait-y, 20%);
}

/* ENHANCEMENT — gradient fade at portrait bottom */
.bm-vision__portrait-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        178deg,
        var(--bm-vision-portrait-grad-start, rgba(67,57,43,0)) 57%,
        var(--bm-vision-portrait-grad-end, #443525) 97%
    );
    pointer-events: none;
}

/* STRUCTURAL — scene spans from ~12% left to right edge at bottom of inner */
.bm-vision__scene-wrap {
    position: absolute;
    left: 12.4%; /* ~178/1440 — matches Figma offset */
    right: 0;
    bottom: 0;
    height: 551px;
    pointer-events: none;
    z-index: 0;
}

/* STRUCTURAL — scene image fills wrap */
.bm-vision__scene-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--bm-vision-scene-x, 50%) var(--bm-vision-scene-y, 0%);
}

/* ── Right column: text content ───────────────────────────── */

/* STRUCTURAL — right column grows, stacks vertically */
.bm-vision__right {
    flex: 1;
    min-width: 0;
    padding-left: 40px;
    padding-right: 120px;
    text-align: left;
    padding-bottom: 350px; /* exposes portrait — overridden by Elementor control */
    padding-top: 0;
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

/* STRUCTURAL — text block: heading + paragraphs + read more */
.bm-vision__text {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 24px;
}

/* STRUCTURAL — heading */
.bm-vision__heading {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* STRUCTURAL — paragraph list */
.bm-vision__paragraphs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

/* STRUCTURAL — individual paragraph */
.bm-vision__paragraph {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* JS-DRIVEN — collapsible paragraphs: visible by default on desktop */
.bm-vision__paragraph--collapsible {
    display: block;
}

/* STRUCTURAL — Read More button (hidden on desktop) */
.bm-vision__readmore {
    display: none;
}

/* STRUCTURAL — author block: sig + name stacked, then button */
.bm-vision__author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* STRUCTURAL — inner sig + name container */
.bm-vision__author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* STRUCTURAL — signature image */
.bm-vision__signature {
    display: block;
    width: 148px;
    height: auto;
}

/* STRUCTURAL — author name */
.bm-vision__author-name {
    margin: 0;
    text-align: left;
}

/* STRUCTURAL — CTA button */
.bm-vision__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

/* ── Tablet overrides (768px–1199px) ─────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {

    /* STRUCTURAL — reduce right padding at tablet sizes */
    .bm-vision__right {
        padding-right: 48px;
        text-align: center;
    }

    /* STRUCTURAL — center author block at tablet */
    .bm-vision__author {
        align-items: center;
    }

    .bm-vision__author-info {
        align-items: center;
    }
}

/* ── Mobile overrides ────────────────────────────────────── */
@media (max-width: 767px) {

    /* STRUCTURAL — stack vertically on mobile */
    .bm-vision__inner {
        flex-direction: column;
        align-items: center;
        max-width: 390px;
        margin: 0 auto;
        min-height: 1113px;
    }

    /* STRUCTURAL — portrait column, sits above scene */
    .bm-vision__left {
        flex: none;
        align-self: flex-start;
        order: 2;
        position: relative;
        z-index: 2; /* stays in front of scene */
        width: 228px !important;
        margin-top: 18px;
        margin-left: -9px;
        margin-bottom: -111px; /* matches portrait/scene overlap from Figma */
    }

    .bm-vision__portrait-wrap {
        width: 228px;
    }

    .bm-vision__portrait-img {
        width: 228px;
        max-width: none;
    }

    /* STRUCTURAL — scene slides up behind portrait bottom */
    .bm-vision__scene-wrap {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 390px;
        height: 270px;
        order: 3;
        z-index: 1; /* sits behind portrait */
        overflow: hidden;
        margin-top: 0;
    }

    /* STRUCTURAL — right column full-width at top */
    .bm-vision__right {
        width: 342px !important;
        max-width: 342px !important;
        padding-top: 66px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        order: 1;
        text-align: center !important;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* STRUCTURAL — tighten text block spacing on mobile */
    .bm-vision__text {
        gap: 24px;
        margin-bottom: 20px;
        width: 100%;
        align-items: center;
    }

    .bm-vision__heading {
        font-size: 28px;
        line-height: 1;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .bm-vision__paragraphs {
        gap: 24px;
        width: 100%;
    }

    .bm-vision__paragraph {
        font-size: 16px;
        line-height: 1.2;
        text-align: center;
    }

    /* STRUCTURAL — center author on mobile */
    .bm-vision__author {
        align-items: center;
        gap: 18px;
        width: 100%;
    }

    .bm-vision__author-info {
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .bm-vision__signature {
        width: 135px;
    }

    .bm-vision__author-name {
        font-size: 16px;
        line-height: 1;
    }

    /* JS-DRIVEN — collapsible paragraphs hidden by default on mobile */
    .bm-vision__paragraph--collapsible {
        display: none;
    }

    /* JS-DRIVEN — expanded state: show collapsible paragraphs */
    .bm-vision__paragraphs.is-expanded .bm-vision__paragraph--collapsible {
        display: block;
    }

    /* STRUCTURAL — Read More button visible on mobile */
    .bm-vision__readmore {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-top: 0;
        align-self: center;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }

    .bm-vision__readmore .bm-vision__readmore-icon {
        transform: rotate(90deg);
    }

    /* ENHANCEMENT — expanded state returns icon to the Figma read-less angle */
    .bm-vision__readmore[aria-expanded="true"] .bm-vision__readmore-icon {
        transform: rotate(0deg);
    }

    .bm-vision__readmore-icon {
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }

    .bm-vision__btn {
        width: 200px;
        min-height: 35px;
        padding: 10.5px 32.914px;
        border-radius: 194.25px;
        justify-content: center;
    }
}

/* ============================================================
   WIDGET: BM Model Stats
   Figma nodes: 7692:1182 (mobile), 7954:1600 area (desktop)
   ============================================================ */

/* STRUCTURAL — full-width section, relative for overlay */
.bm-mstat {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* STRUCTURAL — overlay sits over background image, under content */
.bm-ms__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* STRUCTURAL — inner container centers content, stacks header + grid */
.bm-ms__inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ── Header ──────────────────────────────────────────────── */

/* STRUCTURAL — header: heading + description stacked */
.bm-ms__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

/* STRUCTURAL — heading: two lines, block display */
.bm-ms__heading {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* STRUCTURAL — line 1 */
.bm-ms__heading-line {
    display: block;
}

/* STRUCTURAL — line 2 teal highlight */
.bm-ms__heading-highlight {
    display: block;
}

/* STRUCTURAL — description paragraph */
.bm-ms__description {
    margin: 0;
}

/* ── Stats grid ──────────────────────────────────────────── */

/* STRUCTURAL — CSS grid, columns set by Elementor responsive control */
.bm-ms__grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

/* STRUCTURAL — single stat item: icon → number → label */
/* JS-DRIVEN — justify-content: flex-start keeps all numbers at the same */
/* vertical position regardless of label line count. */
.bm-ms__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    flex: 1;
    padding: 0 24px;
}

/* STRUCTURAL — vertical divider rule between stat items */
.bm-ms__divider {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    border-left: 1px solid; /* color via Elementor */
    margin: 12px 0;
}

/* STRUCTURAL — circle icon wrapper */
.bm-ms__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* STRUCTURAL — icon image inside circle */
.bm-ms__icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* inline SVG inside the span wrapper — fill parent so Elementor size control works */
.bm-ms__icon-img svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* STRUCTURAL — large stat number */
.bm-ms__number {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — label below number */
.bm-ms__label {
    margin: 0;
    padding: 0;
}

/* ── Tablet overrides (768px–1199px) ─────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {

    .bm-ms__item {
        padding: 0 12px;
    }
}

/* ── Mobile overrides ────────────────────────────────────── */
@media (max-width: 767px) {

    /* STRUCTURAL — stack vertically on mobile */
    .bm-ms__grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    /* STRUCTURAL — dividers don't make sense in vertical stack */
    .bm-ms__divider {
        display: none;
    }

    /* STRUCTURAL — stat items full-width, no horizontal padding on mobile */
    .bm-ms__item {
        width: 100%;
        padding: 0;
    }
}

/* ============================================================
   WIDGET: BM Model Section
   Figma nodes: 7954:1569 (desktop), 7692:1182 (mobile)
   3 parts: Stats · Where We Serve (interactive tabs) · Leaders
   ============================================================ */

/* STRUCTURAL — gradient background, driven by Elementor CSS vars */
.bm-ms {
    background-image: linear-gradient(
        var(--bm-ms-bg-angle, 180deg),
        var(--bm-ms-bg-start, #443525) var(--bm-ms-bg-start-stop, 1.5%),
        var(--bm-ms-bg-end,   #090606) var(--bm-ms-bg-end-stop,   60%)
    );
}

/* ── Part 1: Stats ───────────────────────────────────────── */

/* STRUCTURAL — full-width stats wrapper */
.bm-ms__stats-section {
    width: 100%;
}

/* STRUCTURAL — centered inner, stacks header above stats row */
.bm-ms__stats-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* STRUCTURAL — heading + description centered */
.bm-ms__stats-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* STRUCTURAL — two-line heading block */
.bm-ms__stats-heading {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — heading line 1 */
.bm-ms__stats-heading-line {
    display: block;
}

/* STRUCTURAL — heading line 2 (teal highlight color via Elementor) */
.bm-ms__stats-heading-highlight {
    display: block;
}

/* STRUCTURAL — description paragraph */
.bm-ms__stats-description {
    margin: 0;
}

/* STRUCTURAL — stat items in a horizontal row with dividers */
.bm-ms__stats-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

/* STRUCTURAL — single stat: icon → number → label, centered */
.bm-ms__stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
    padding: 0 24px;
}

/* STRUCTURAL — circular icon wrapper (width/height via Elementor) */
.bm-ms__stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* When an image is uploaded, keep the circle but let the image show naturally */
.bm-ms__stat-icon-wrap--has-image {
    background: transparent !important;
}

/* STRUCTURAL — icon image inside circle (size/filter via Elementor) */
.bm-ms__stat-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* STRUCTURAL — stat number text */
.bm-ms__stat-number {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — stat label text */
.bm-ms__stat-label {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — vertical divider rule between stat items */
.bm-ms__stat-divider {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    border-left: 1px solid; /* color via Elementor */
    margin: 12px 0;
}

/* ── Part 2: Where We Serve ──────────────────────────────── */

/* STRUCTURAL — full-width serve wrapper, relative for map bg */
.bm-ms__serve-section {
    width: 100%;
    position: relative;
}

/* STRUCTURAL — map bg: fills section absolutely, below content */
.bm-ms__map-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* STRUCTURAL — map image covers the section */
.bm-ms__map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* STRUCTURAL — inner: above map bg, holds heading + tab layout */
.bm-ms__serve-inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* STRUCTURAL — section heading above the 2-column container */
.bm-ms__serve-heading {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
}

/* STRUCTURAL — 2-column: tabs list left (natural), panel right (fixed 612px) */
.bm-ms__serve-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

/* STRUCTURAL — left column: vertical tab list, relative for indicator */
.bm-ms__serve-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    align-self: center;
}

/* STRUCTURAL — tab button resets */
.bm-ms__serve-tab {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    display: block;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* STRUCTURAL — inactive tabs are dimmed to match Figma */
.bm-ms__serve-tab:not(.is-active) {
    opacity: 0.6;
}

/* JS-DRIVEN — div fallback: sliding straight-line indicator */
.bm-ms__serve-tab-indicator {
    position: absolute;
    height: 3px;
    width: 0;
    left: 0;
    top: 0; /* JS updates this */
    border-radius: 2px;
    transition: top 0.25s ease, left 0.25s ease;
    pointer-events: none;
    display: block;
}

/* STRUCTURAL — PNG/SVG underline image: natural size, no box styling */
/* ENHANCEMENT — removes white PNG background on dark section bg:
   invert(1) turns white→black, hue-rotate(180deg) cycles teal stroke back,
   then screen blend makes black pixels transparent while keeping the teal line */
img.bm-ms__serve-tab-indicator {
    height: auto;
    width: auto;
    max-width: none;
    border-radius: 0;
    background: none;
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
    display: block;
}

/* STRUCTURAL — right panel: fixed 612px, internal 40px padding → 532px content */
.bm-ms__serve-panels {
    flex: 0 0 612px;
    padding: 0 40px;
    min-height: 535px;
}

/* STRUCTURAL — panel hidden by default */
.bm-ms__serve-panel {
    display: none;
    flex-direction: column;
    gap: 52px;
    min-height: 535px;
}

/* JS-DRIVEN — show active panel as vertical flex */
.bm-ms__serve-panel.is-active {
    display: flex;
}

/* STRUCTURAL — image wrapper inside panel */
.bm-ms__serve-img-wrap {
    position: relative;
    width: 100%;
    height: 390px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

/* STRUCTURAL — region photo: full width, 390px tall, rounded */
.bm-ms__serve-img,
.bm-ms__serve-img-wrap > .bm-ms__serve-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
}

/* STRUCTURAL — description paragraph below the region image */
.bm-ms__serve-caption {
    margin: 0;
    padding: 0;
    min-height: 93px;
}

/* ── Part 3: Leaders ─────────────────────────────────────── */

/* STRUCTURAL — full-width leaders wrapper */
.bm-ms__leaders-section {
    overflow: hidden;
    width: 100%;
}

/* STRUCTURAL — 2-column flex: text left, image right (padding via Elementor) */
.bm-ms__leaders-inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* STRUCTURAL — text column fills remaining space, stacks content */
.bm-ms__leaders-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* STRUCTURAL — two-line heading */
.bm-ms__leaders-heading {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — heading line 1 */
.bm-ms__leaders-heading-line {
    display: block;
}

/* STRUCTURAL — heading line 2 (teal highlight color via Elementor) */
.bm-ms__leaders-heading-highlight {
    display: block;
}

/* STRUCTURAL — wysiwyg body text */
.bm-ms__leaders-body {
    margin: 0;
}

/* STRUCTURAL — paragraph spacing inside wysiwyg body */
.bm-ms__leaders-body p {
    margin: 0 0 1em;
}

.bm-ms__leaders-body p:last-child {
    margin-bottom: 0;
}

/* STRUCTURAL — teal pill CTA button */
.bm-ms__leaders-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* STRUCTURAL — image: absolutely pinned to the right, spans full inner height */
.bm-ms__leaders-img-wrap {
    --bm-leaders-img-x: 0px;
    --bm-leaders-img-y: 0px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 540px;
    overflow: hidden;
    transform: translateY(var(--bm-leaders-img-y)) translateX(var(--bm-leaders-img-x));
}

/* STRUCTURAL — leader portrait fills the wrap */
.bm-ms__leaders-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* STRUCTURAL — optional horizontal mirror */
.bm-ms__leaders-img--mirror {
    transform: scaleX(-1);
}

/* STRUCTURAL — dark gradient overlay, direction driven by CSS var */
.bm-ms__leaders-img-gradient {
    position: absolute;
    inset: 0;
    --bm-ms-leaders-grad-dir: to right;
    background: linear-gradient(
        var(--bm-ms-leaders-grad-dir),
        var(--bm-ms-img-grad-end,   rgba(9,7,7,0.86))   0%,
        var(--bm-ms-img-grad-start, rgba(17,17,17,0))   60%
    );
    pointer-events: none;
}

/* ── Tablet overrides (768px–1199px) ─────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {

    /* STRUCTURAL — tighter stat item padding at tablet */
    .bm-ms__stat-item {
        padding: 0 12px;
    }

    /* STRUCTURAL — hide leaders image on tablet */
    .bm-ms__leaders-img-wrap {
        display: none;
    }

    /* STRUCTURAL — shrink panel at tablet so tabs have room */
    .bm-ms__serve-panels {
        flex: 0 0 420px;
        padding: 0 20px;
    }

    /* STRUCTURAL — shorter image at tablet */
    .bm-ms__serve-img-wrap {
        height: 280px;
    }

    .bm-ms__serve-img,
    .bm-ms__serve-img-wrap > .bm-ms__serve-img {
        height: 100% !important;
    }
}

/* ── Mobile overrides (< 768px) ─────────────────────────── */
@media (max-width: 767px) {

    /* STRUCTURAL — stats row stacks vertically on mobile */
    .bm-ms__stats-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    /* STRUCTURAL — dividers don't make sense in vertical stack */
    .bm-ms__stat-divider {
        display: none;
    }

    /* STRUCTURAL — stat items full-width, no horizontal padding */
    .bm-ms__stat-item {
        width: 100%;
        padding: 0;
    }

    /* STRUCTURAL — serve container stacks on mobile */
    .bm-ms__serve-container {
        flex-direction: column;
        gap: 24px;
    }

    /* STRUCTURAL — panel full-width, no side padding on mobile */
    .bm-ms__serve-panels {
        flex: none;
        width: 100%;
        padding: 0;
    }

    /* STRUCTURAL — shorter image on mobile */
    .bm-ms__serve-img-wrap {
        height: 220px;
    }

    .bm-ms__serve-img,
    .bm-ms__serve-img-wrap > .bm-ms__serve-img {
        height: 100% !important;
    }

    /* STRUCTURAL — tabs wrap horizontally on mobile */
    .bm-ms__serve-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        flex: none;
        width: 100%;
        gap: 10px;
        padding-bottom: 0;
    }

    /* STRUCTURAL — hide animated indicator on mobile (tabs are wrapped) */
    .bm-ms__serve-tab-indicator {
        display: none;
    }

    /* STRUCTURAL — tab becomes a pill chip on mobile */
    .bm-ms__serve-tab {
        width: auto;
        flex: 0 0 auto;
        padding: 8px 16px;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 100px;
        font-size: 14px !important;
    }

    /* STRUCTURAL — leaders inner stacks on mobile */
    .bm-ms__leaders-inner {
        flex-direction: column;
        gap: 32px;
    }

    /* STRUCTURAL — leaders text full-width, left-aligned on mobile */
    .bm-ms__leaders-text {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    /* STRUCTURAL — hide leaders image on mobile */
    .bm-ms__leaders-img-wrap {
        display: none;
    }

    /* STRUCTURAL — gradient direction top-to-bottom on mobile (overridden by Elementor control) */
    .bm-ms__leaders-img-gradient {
        --bm-ms-leaders-grad-dir: to bottom;
    }
}

/* ==========================================================
   SERVING COMMUNITIES
   ========================================================== */

.bm-sc {
    --bm-sc-cream: #fef7ed;
    --bm-sc-overlay-mid: rgba(254, 247, 237, 0.52);
    --bm-sc-image-pos-x: 50%;
    --bm-sc-image-pos-y: 50%;
    --bm-sc-mobile-image-height: 430px;
    --bm-sc-mobile-overlay-mid-stop: 42.36%;
    --bm-sc-mobile-overlay-end-stop: 59.75%;
    position: relative;
    overflow: hidden;
    background: var(--bm-sc-cream);
}

.bm-sc__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.bm-sc__image {
    position: absolute;
    right: 0;
    width: 87%;
    height: 100% !important;
    object-fit: cover;
    object-position: var(--bm-sc-image-pos-x) var(--bm-sc-image-pos-y);
    display: block;
}

.bm-sc__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        256deg,
        rgba(109, 82, 66, 0) 24%,
        var(--bm-sc-overlay-mid) 50.3%,
        var(--bm-sc-cream) 63%
    );
}

.bm-sc__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1440px);
    margin: 0 auto;
}

.bm-sc__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.bm-sc__heading {
    margin: 0;
    color: #1e1f24;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.bm-sc__heading-line {
    display: block;
}

.bm-sc__underline {
    width: min(100%, 378px);
    line-height: 0;
    margin-top: -10px;
}

.bm-sc__underline img {
    display: block;
    width: 100%;
    height: auto;
}

.bm-sc__description {
    width: min(100%, 535px);
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.bm-sc__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 12px 40px;
    border-radius: 155px;
    background: #61c6c4;
    color: #1e1f24;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.bm-sc__button:hover,
.bm-sc__button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.bm-sc__button-text {
    display: block;
    min-width: 0;
    color: inherit;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.bm-sc__button-word {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .bm-sc {
        min-height: 442px;
    }
}

@media (max-width: 1199px) {
    .bm-sc__image {
        width: 92%;
        height: 120%;
        top: -6%;
    }
}

@media (max-width: 767px) {
    .bm-sc {
        overflow: visible;
        background: #fef7ed;
    }

    .bm-sc__media {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: var(--bm-sc-mobile-image-height);
        margin-top: -10px;
    }

    .bm-sc__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        top: auto;
        right: auto;
        object-position: var(--bm-sc-image-pos-x) var(--bm-sc-image-pos-y);
    }

    .bm-sc__overlay {
        background: linear-gradient(
            -3deg,
            rgba(109, 82, 66, 0) 22%,
            var(--bm-sc-overlay-mid) var(--bm-sc-mobile-overlay-mid-stop),
            var(--bm-sc-cream) var(--bm-sc-mobile-overlay-end-stop)
        );
    }

    .bm-sc__inner {
        width: 100%;
    }

    .bm-sc__content {
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .bm-sc__heading {
        font-size: 28px;
    }

    .bm-sc__underline {
        width: min(100%, 282px);
        margin-top: -6px;
    }

    .bm-sc__description {
        width: 100%;
    }
}

/* ==========================================================
   CARD CAROUSEL
   ========================================================== */

.bm-cc {
    --bm-cc-slides-current: var(--bm-cc-slides-desktop, 4);
    --bm-cc-peek-current: var(--bm-cc-peek-desktop, 0px);
    --bm-cc-card-height: 237px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    background: #fef7ed;
}

.bm-cc__inner {
    width: min(100%, 1440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.bm-cc__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.bm-cc__heading {
    margin: 0;
    color: #1e1f24;
    font-family: "Roboto Serif", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.bm-cc__description {
    max-width: 839px;
    margin: 0;
    color: #1e1f24;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.bm-cc__carousel {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bm-cc__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bm-cc__track {
    display: flex;
    gap: 24px;
    align-items: stretch;
    transition-property: transform;
    transition-timing-function: ease;
    will-change: transform;
}

.bm-cc__slide {
    flex: 0 0 calc((100% - ((var(--bm-cc-slides-current) - 1) * 24px) - var(--bm-cc-peek-current)) / var(--bm-cc-slides-current));
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.bm-cc__card {
    width: 100%;
    height: var(--bm-cc-card-height);
    padding: 24px;
    border-radius: 12px;
    background: #f3e2c6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-cc__logo {
    display: block;
    width: auto;
    max-width: min(100%, var(--bm-cc-logo-width, 200px));
    max-height: var(--bm-cc-logo-height, 84px);
    object-fit: contain;
}

.bm-cc__arrow {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: #f3e2c6;
    color: #1e1f24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.bm-cc__arrow:hover {
    background: #ead5b5;
}

.bm-cc__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.bm-cc__arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bm-cc__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bm-cc__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #c8b69c;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.bm-cc__dot.is-active {
    background: #8c7159;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .bm-cc {
        --bm-cc-slides-current: var(--bm-cc-slides-tablet, var(--bm-cc-slides-desktop, 2));
        --bm-cc-peek-current: var(--bm-cc-peek-tablet, var(--bm-cc-peek-desktop, 0px));
        gap: 48px;
    }

    .bm-cc__heading {
        font-size: 32px;
    }

    .bm-cc__track {
        gap: 18px;
    }

    .bm-cc__slide {
        flex-basis: calc((100% - ((var(--bm-cc-slides-current) - 1) * 18px) - var(--bm-cc-peek-current)) / var(--bm-cc-slides-current));
    }
}

@media (max-width: 767px) {
    .bm-cc {
        --bm-cc-slides-current: var(--bm-cc-slides-mobile, 1);
        --bm-cc-peek-current: var(--bm-cc-peek-mobile, 0px);
        gap: 32px;
    }

    .bm-cc__inner {
        gap: 24px;
    }

    .bm-cc__header {
        padding: 0 24px;
    }

    .bm-cc__heading {
        font-size: 28px;
    }

    .bm-cc__description {
        font-size: 16px;
    }

    .bm-cc__carousel {
        gap: 12px;
    }

    .bm-cc__viewport {
        width: 100%;
    }

    .bm-cc__track {
        gap: 16px;
        padding: 0 24px;
    }

    .bm-cc__slide {
        flex-basis: calc((100% - 48px - ((var(--bm-cc-slides-current) - 1) * 16px) - var(--bm-cc-peek-current)) / var(--bm-cc-slides-current));
    }

    .bm-cc__card {
        height: var(--bm-cc-card-height);
    }
}

/* ============================================================
   WIDGET: BM Footer
   Figma node: 7954:1738 (desktop), 8019:3923 (mobile)
   ============================================================ */

/* STRUCTURAL — Outer footer wrapper */
.bm-footer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* STRUCTURAL — CTA card wrapper, sits above the footer gradient (z-index 2) */
.bm-footer__cta-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 24px;
}

/* STRUCTURAL — CTA card: two-column desktop, stacked mobile */
.bm-footer__cta {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* STRUCTURAL — CTA left column: heading + description */
.bm-footer__cta-text {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 43%;
}

.bm-footer__cta-heading {
    margin: 0;
}

.bm-footer__cta-desc {
    margin: 0;
}

.bm-footer__cta-desc p {
    margin: 0 0 0.5em;
}

.bm-footer__cta-desc p:last-child {
    margin-bottom: 0;
}

/* STRUCTURAL — CTA right column: Fluent Form shortcode wrapper */
.bm-footer__cta-form-wrap {
    flex: 0 0 auto;
    width: 52%;
}

/* ENHANCEMENT — placeholder text shown when no shortcode is set (editor only) */
.bm-footer__form-placeholder {
    margin: 0;
    font-style: italic;
    opacity: 0.6;
}

/* STRUCTURAL — Footer gradient main section; margin-top is set negative via
   the cta_overlap Elementor control so it rises behind the CTA card */
.bm-footer__main {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(
        to bottom,
        var(--bm-footer-grad-start, #aa9680),
        var(--bm-footer-grad-end, #221f20) var(--bm-footer-grad-stop, 62%)
    );
}

/* STRUCTURAL — Inner content container */
.bm-footer__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — Top row: brand left, nav right */
.bm-footer__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

/* STRUCTURAL — Brand column: fixed 385px to match Figma */
.bm-footer__brand {
    display: flex;
    flex-direction: column;
    flex: 0 0 385px;
    width: 385px;
    gap: 16px;
}

/* STRUCTURAL — Logo + tagline sub-group: 18px gap */
.bm-footer__brand-identity {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bm-footer__logo {
    display: block;
    height: auto;
}

.bm-footer__tagline {
    margin: 0;
}

/* STRUCTURAL — Nav: four columns, offset 85px down to align with Figma */
.bm-footer__nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 85px;
}

.bm-footer__nav-col {
    display: flex;
    flex-direction: column;
}

.bm-footer__nav-title {
    margin: 0;
    text-transform: uppercase;
}

.bm-footer__nav-links {
    display: flex;
    flex-direction: column;
}

.bm-footer__nav-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* STRUCTURAL — Divider full-width */
.bm-footer__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-left: 0;
    margin-right: 0;
}

/* STRUCTURAL — Bottom: single row with ECFA floating top-right */
.bm-footer__bottom {
    display: flex;
    flex-direction: column;
}

.bm-footer__bottom-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}

/* ECFA logo anchors to the top of the bottom area, text aligns to the bottom */
.bm-footer__ecfa-wrap {
    align-self: flex-start;
    line-height: 0;
}

/* STRUCTURAL — Contact items stacked, lives inside brand column below tagline */
.bm-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-footer__contact-item {
    margin: 0;
}

/* STRUCTURAL — copyright baseline */
.bm-footer__copyright {
    margin: 0;
}

/* STRUCTURAL — Legal links inline row */
.bm-footer__legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.bm-footer__legal-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.bm-footer__legal-sep {
    color: rgba(255, 255, 255, 0.5);
}

/* STRUCTURAL — ECFA logo */
.bm-footer__ecfa-img {
    display: block;
    height: auto;
}

/* STRUCTURAL — Social icons row (inside Connect nav column) */
.bm-footer__social {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 8px;
}

.bm-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bm-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STRUCTURAL — uploaded icon image fills the icon slot */
.bm-footer__social-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

/* ── CTA entrance animations ──────────────────────────────── */

/* JS-DRIVEN — initial hidden state, applied before JS sets up intersection observer */
.bm-footer__cta[data-bm-anim] {
    opacity: 0;
    transition-property: opacity, transform;
    will-change: opacity, transform;
}

.bm-footer__cta[data-bm-anim="fade-up"]   { transform: translateY(40px); }
.bm-footer__cta[data-bm-anim="fade-down"] { transform: translateY(-40px); }
.bm-footer__cta[data-bm-anim="fade-left"] { transform: translateX(40px); }
.bm-footer__cta[data-bm-anim="fade-right"]{ transform: translateX(-40px); }
.bm-footer__cta[data-bm-anim="fade-in"]   { transform: none; }

/* JS-DRIVEN — animated-in state toggled by JS */
.bm-footer__cta.bm-footer__cta--animated {
    opacity: 1;
    transform: none;
}

/* ── Responsive: tablet ─────────────────────────────────── */

@media (max-width: 1024px) {
    .bm-footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .bm-footer__brand {
        flex: none;
        width: 100%;
    }

    .bm-footer__nav {
        width: 100%;
        padding-top: 0;
        justify-content: flex-start;
    }
}

/* ── Responsive: mobile ─────────────────────────────────── */

@media (max-width: 767px) {
    /* CTA: stack text above form */
    .bm-footer__cta {
        flex-direction: column;
    }

    .bm-footer__cta-text,
    .bm-footer__cta-form-wrap {
        width: 100%;
    }

    /* Footer bottom: stack on mobile */
    .bm-footer__bottom-row {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        gap: 16px;
        text-align: center;
    }

    .bm-footer__ecfa-wrap {
        align-self: center;
    }

    .bm-footer__contact {
        align-items: center;
        text-align: center;
    }

    .bm-footer__legal {
        justify-content: center;
    }

    .bm-footer__nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0;
    }

    .bm-footer__nav-links {
        align-items: center;
    }

    .bm-footer__social {
        justify-content: center;
    }

    .bm-footer__top {
        align-items: center;
    }

    .bm-footer__brand {
        flex: none;
        width: 100%;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================
   WIDGET: BM Projects Section
   Figma node: 8284:4417 (desktop)
   ============================================================ */

/* STRUCTURAL — section wrapper */
.bm-ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

/* STRUCTURAL — inner container */
.bm-ps__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    width: 100%;
}

/* STRUCTURAL — header block */
.bm-ps__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 932px;
    width: 100%;
    text-align: center;
}

/* STRUCTURAL — heading + underline wrapper */
.bm-ps__heading-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* STRUCTURAL — heading */
.bm-ps__heading {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — decorative wavy underline */
.bm-ps__underline {
    display: block;
}

.bm-ps__underline img {
    display: block;
}

/* STRUCTURAL — description */
.bm-ps__description {
    margin: 0;
}

.bm-ps__description p {
    margin: 0 0 4px;
}

.bm-ps__description p:last-child {
    margin-bottom: 0;
}

/* STRUCTURAL — cards grid */
.bm-ps__grid {
    display: grid;
    grid-template-columns: repeat(var(--bm-ps-cols, 3), 1fr);
    column-gap: 28px;
    row-gap: 60px;
    width: 100%;
}

/* STRUCTURAL — individual card */
.bm-ps__card {
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — card image container */
.bm-ps__card-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 362 / 239;
    flex-shrink: 0;
}

.bm-ps__card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* STRUCTURAL — card body */
.bm-ps__card-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background-color: rgba(187, 222, 223, 0.4);
    border-radius: 0 0 16px 16px;
    flex: 1;
}

/* STRUCTURAL — card text block */
.bm-ps__card-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

/* STRUCTURAL — card title */
.bm-ps__card-title {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — card description */
.bm-ps__card-desc {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — card button */
.bm-ps__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

/* ANIMATION — fade initial state */
.bm-ps__card[data-bm-anim="fade"] {
    opacity: 0;
    transition-property: opacity;
}

/* ANIMATION — slide-up initial state */
.bm-ps__card[data-bm-anim="slide-up"] {
    opacity: 0;
    transform: translateY(32px);
    transition-property: opacity, transform;
}

/* ANIMATION — animated (visible) state */
.bm-ps__card--animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Tablet (768px–1199px) ─────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {
    .bm-ps__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 40px;
    }
}

/* ── Mobile (<768px) ───────────────────────────────────────── */
@media (max-width: 767px) {
    .bm-ps__grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

}


/* ============================================================
   WIDGET: BM Missionary Search
   Figma node: 8275:1505
   ============================================================ */

/* STRUCTURAL — card wrapper */
.bm-mss {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    background-color: #6d5242;
}

/* STRUCTURAL — icon badge */
.bm-mss__icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #61c6c4;
    overflow: hidden;
}

.bm-mss__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* STRUCTURAL — text block */
.bm-mss__text {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

/* STRUCTURAL — title */
.bm-mss__title {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — description */
.bm-mss__desc {
    margin: 0;
    padding: 0;
}

/* STRUCTURAL — bottom block: search + link */
.bm-mss__search-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* STRUCTURAL — search wrap (positions dropdown) */
.bm-mss__search-wrap {
    position: relative;
    width: 100%;
}

/* STRUCTURAL — pill search bar */
.bm-mss__search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px 9px 24px;
    border-radius: 37px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

/* STRUCTURAL — text input */
.bm-mss__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000000;
    min-width: 0;
    padding: 0;
}

.bm-mss__input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* STRUCTURAL — give button */
.bm-mss__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    background-color: #61c6c4;
    color: #1e1f24;
    padding: 12px 40px;
    border-radius: 155px;
}

.bm-mss__btn:disabled {
    background-color: rgba(97, 198, 196, 0.5);
    cursor: not-allowed;
}

/* STRUCTURAL — dropdown */
.bm-mss__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    max-height: 240px;
    z-index: 100;
    overscroll-behavior: contain;
}

.bm-mss__dropdown[hidden] {
    display: none;
}

/* STRUCTURAL — dropdown item */
.bm-mss__dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bm-mss__dropdown-item:hover,
.bm-mss__dropdown-item.is-active {
    background-color: rgba(97, 198, 196, 0.15);
}

/* STRUCTURAL — dropdown state messages */
.bm-mss__dropdown-msg {
    padding: 12px 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

/* STRUCTURAL — know more link */
.bm-mss__link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.bm-mss__link:hover {
    text-decoration: underline;
}

/* ============================================================
   WIDGET: BM Project Search (bm-pss)
   Same card shell as bm-mss but button sits outside the pill,
   to the right, and the input stretches to fill remaining space.
   ============================================================ */

.bm-pss {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    background-color: #6d5242;
}

.bm-pss__icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #61c6c4;
    overflow: hidden;
}

.bm-pss__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.bm-pss__text {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.bm-pss__title {
    margin: 0;
    padding: 0;
}

.bm-pss__desc {
    margin: 0;
    padding: 0;
}

.bm-pss__search-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Wraps the pill + dropdown */
.bm-pss__search-wrap {
    position: relative;
    width: 100%;
}

/* White pill — input + Give button live inside together */
.bm-pss__search-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: none;
    border-radius: 37px;
    padding: 6px 6px 6px 24px;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
}

/* Input stretches to fill remaining space */
.bm-pss__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000000;
    min-width: 0;
    padding: 0;
}

.bm-pss__input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Give button — teal pill, flush inside the white pill on the right */
.bm-pss__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    background-color: #61c6c4;
    color: #1e1f24;
    padding: 10px 32px;
    border-radius: 155px;
}

.bm-pss__btn:disabled {
    background-color: rgba(97, 198, 196, 0.5);
    cursor: not-allowed;
}

.bm-pss__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    max-height: 240px;
    z-index: 100;
    overscroll-behavior: contain;
}

.bm-pss__dropdown[hidden] {
    display: none;
}

.bm-pss__dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bm-pss__dropdown-item:hover,
.bm-pss__dropdown-item.is-active {
    background-color: rgba(97, 198, 196, 0.15);
}

.bm-pss__dropdown-msg {
    padding: 12px 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.bm-pss__link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.bm-pss__link:hover {
    text-decoration: underline;
}

/* Cache status badge */
.bm-pss__cache-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px;
}

.bm-pss__cache-status--ok {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.bm-pss__cache-status--empty {
    background-color: rgba(220, 80, 60, 0.2);
    color: rgba(255, 200, 190, 0.9);
}

.bm-pss__cache-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bm-pss__cache-status--ok   .bm-pss__cache-dot { background-color: #61c6c4; }
.bm-pss__cache-status--empty .bm-pss__cache-dot { background-color: #f87171; }

/* ============================================================
   WIDGET: BM What Guides Our Approach (bm-wg)
   Desktop: 3-up + 2-up flex grid | Mobile: scroll-snap carousel
   ============================================================ */

.bm-wg {
    padding: 80px 120px 56px;
}

.bm-wg__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Header */
.bm-wg__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    width: 100%;
}

.bm-wg__heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bm-wg__heading {
    margin: 0;
    padding: 0;
}

.bm-wg__underline {
    display: block;
    line-height: 0;
}

.bm-wg__underline img {
    display: block;
    height: auto;
    max-width: 100%;
}

.bm-wg__subheading {
    margin: 0;
    padding: 0;
    max-width: 504px;
}

/* Cards wrap */
.bm-wg__cards-wrap {
    width: 100%;
}

/* Desktop: 3-up + 2-up grid */
.bm-wg__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 36px 30px;
    width: 100%;
}

.bm-wg__card {
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 24px;
    border-radius: 12px;
    background-color: rgba(244, 239, 226, 0.1);
    box-sizing: border-box;
}

/* 4th and 5th cards fill the second row equally */
.bm-wg__card:nth-child(4),
.bm-wg__card:nth-child(5) {
    flex: 1 1 calc(50% - 15px);
}

/* Icon badge */
.bm-wg__badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #61c6c4;
    overflow: hidden;
}

.bm-wg__badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Card text */
.bm-wg__card-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-wg__card-title,
.bm-wg__card-desc {
    margin: 0;
    padding: 0;
}

/* Pagination dots — hidden on desktop */
.bm-wg__dots {
    display: none;
}

/* CTA buttons */
.bm-wg__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 17px;
}

.bm-wg__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    padding: 12px 41px;
    border-radius: 155px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.bm-wg__btn--give {
    background-color: #6d5242;
    color: #fef7ed;
}

.bm-wg__btn--give:hover { background-color: #5a3f30; }

.bm-wg__btn--serve {
    background-color: #61c6c4;
    color: #1e1f24;
}

.bm-wg__btn--serve:hover { background-color: #4db0ae; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {

    .bm-wg {
        padding: 56px 0;
    }

    .bm-wg__inner {
        gap: 32px;
    }

    .bm-wg__header {
        gap: 24px;
        padding: 0 24px;
    }

    .bm-wg__subheading {
        max-width: 100%;
    }

    /* Carousel: clip at wrap level, scroll inside cards */
    .bm-wg__cards-wrap {
        width: 100%;
        overflow: hidden;
    }

    .bm-wg__cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 30px;
        padding: 0 24px;
        scroll-padding-inline: 24px;
        row-gap: 0; /* override responsive control on mobile */
    }

    .bm-wg__cards::-webkit-scrollbar {
        display: none;
    }

    .bm-wg__card {
        flex: 0 0 calc(100% - 48px);
        max-width: 342px;
        scroll-snap-align: center;
    }

    /* Reset nth-child overrides from desktop */
    .bm-wg__card:nth-child(4),
    .bm-wg__card:nth-child(5) {
        flex: 0 0 calc(100% - 48px);
        max-width: 342px;
        scroll-snap-align: center;
    }

    /* Show pagination dots */
    .bm-wg__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
    }

    .bm-wg__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        cursor: pointer;
        background-color: rgba(254, 247, 237, 0.35);
        transition: background-color 0.2s ease;
        flex-shrink: 0;
    }

    .bm-wg__dot.is-active {
        background-color: #fef7ed;
    }
}

/* ============================================================
   WIDGET: BM Values Section
   Figma node: 8541:6959 (desktop), 8417:8041 (mobile)
   ============================================================ */

/* STRUCTURAL — full-width section */
.bm-vs {
    position: relative;
    width: 100%;
}

/* STRUCTURAL — inner grid: intro block + value cards as direct children */
.bm-vs__inner {
    display: grid;
    grid-template-columns: repeat(var(--bm-vs-cols, 3), 1fr);
    gap: 30px;
}

/* STRUCTURAL — intro / text block: flex column, justifies content to center */
.bm-vs__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

/* STRUCTURAL — heading + underline stacked */
.bm-vs__heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bm-vs__heading {
    margin: 0;
}

/* STRUCTURAL — underline image */
.bm-vs__underline {
    display: block;
}

.bm-vs__underline img {
    display: block;
}

/* STRUCTURAL — CTA buttons row */
.bm-vs__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* STRUCTURAL — shared button base */
.bm-vs__btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

/* STRUCTURAL — value card: flex column */
.bm-vs__card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* STRUCTURAL — icon container: flex, centered */
.bm-vs__card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-vs__card-icon img {
    display: block;
    width: 31px;
    height: auto;
    object-fit: contain;
}

/* STRUCTURAL — card text block: title + body stacked */
.bm-vs__card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-vs__card-title {
    margin: 0;
}

.bm-vs__card-body {
    margin: 0;
}

/* JS-DRIVEN — card entrance animations */
.bm-vs__card[data-bm-anim="fade"] {
    opacity: 0;
    transition-property: opacity;
}

.bm-vs__card[data-bm-anim="slide-up"] {
    opacity: 0;
    transform: translateY(32px);
    transition-property: opacity, transform;
}

.bm-vs__card--animated {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   WIDGET: BM Leadership Section
   Figma node: 8541:6919 (desktop), 8419:8097 (mobile)
   ============================================================ */

/* STRUCTURAL — full-width section */
.bm-lead {
    width: 100%;
}

/* STRUCTURAL — flex column: header + grid */
.bm-lead__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* STRUCTURAL — header: heading left, description right (desktop row) */
.bm-lead__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bm-lead__heading {
    margin: 0;
    flex-shrink: 0;
}

/* STRUCTURAL — description: flex column for paragraph gap */
.bm-lead__description {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    max-width: 584px;
}

.bm-lead__description p {
    margin: 0;
}

/* STRUCTURAL — card grid */
.bm-lead__grid {
    display: grid;
    grid-template-columns: repeat(var(--bm-lead-cols, 3), 1fr);
    column-gap: 50px;
    row-gap: 40px;
}

/* STRUCTURAL — single card: flex column */
.bm-lead__card {
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — card image: fixed height, overflow hidden */
.bm-lead__card-image {
    overflow: hidden;
    border-radius: 16px;
    height: 380px;
    flex-shrink: 0;
}

.bm-lead__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* STRUCTURAL — card info: name + role stacked */
.bm-lead__card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-lead__card-name,
.bm-lead__card-role {
    margin: 0;
}

/* STRUCTURAL — mobile: header stacks vertically */
@media (max-width: 767px) {
    .bm-lead__header {
        flex-direction: column;
        gap: 24px;
    }

    .bm-lead__description {
        max-width: 100%;
    }
}

/* JS-DRIVEN — card entrance animations */
.bm-lead__card[data-bm-anim="fade"] {
    opacity: 0;
    transition-property: opacity;
}

.bm-lead__card[data-bm-anim="slide-up"] {
    opacity: 0;
    transform: translateY(32px);
    transition-property: opacity, transform;
}

.bm-lead__card--animated {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   WIDGET: BM Global Footprint
   Figma node: 8541:7028 (desktop), 8558:759 (mobile)
   ============================================================ */

/* STRUCTURAL — section: relative for map overlay */
.bm-gf {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* STRUCTURAL — map image: absolute, behind all content */
.bm-gf__map {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bm-gf__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* STRUCTURAL — inner: flex column, above map */
.bm-gf__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* STRUCTURAL — serve-container: layout driven by per-instance scoped <style> */
.bm-gf__serve-container {
    min-width: 0;
}

/* STRUCTURAL — serve-item: layout driven by scoped <style> (contents on desktop) */
.bm-gf__serve-item {
    min-width: 0;
}

/* STRUCTURAL — tab button: base transition; reset handled by scoped <style> */
.bm-gf__serve-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.bm-gf__serve-tab:focus-visible {
    outline: 2px solid #61c6c4;
    outline-offset: 4px;
    border-radius: 2px;
}

/* STRUCTURAL — panel: visibility driven by scoped <style>; fade-in on activation */
.bm-gf__serve-panel.is-active {
    animation: bm-gf-fadein var(--bm-gf-speed, 350ms) var(--bm-gf-easing, ease-out) both;
}

@keyframes bm-gf-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* STRUCTURAL — image wrapper: fixed height, clips image */
.bm-gf__serve-img-wrap {
    position: relative;
    width: 100%;
    height: 390px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

/* STRUCTURAL — image fills wrapper */
.bm-gf__serve-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover !important;
    object-position: center center;
}

.bm-gf__serve-caption {
    margin: 0;
}

/* =====================================================================
   BM FAQ SECTION
   ===================================================================== */

.bm-faq {
    display: flex;
    justify-content: center;
    width: 100%;
}

.bm-faq__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.bm-faq__heading {
    margin: 0;
    width: 100%;
    text-align: center;
    text-wrap: balance;
}

.bm-faq__items {
    width: 100%;
}

.bm-faq__item {
    border-bottom: 1px solid #6d6a63;
    padding-bottom: 24px;
}

.bm-faq__item + .bm-faq__item {
    margin-top: 24px;
}

.bm-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.bm-faq__question:focus-visible {
    outline: 2px solid #61c6c4;
    outline-offset: 6px;
}

.bm-faq__question-text {
    flex: 1 1 auto;
    min-width: 0;
}

.bm-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out);
}

.bm-faq__answer-inner {
    padding-top: 16px;
    opacity: 0;
    transform: translateY(calc(12px * var(--bm-faq-direction-desktop, -1)));
    transition:
        opacity var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out),
        transform var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out);
}

.bm-faq__item.is-open .bm-faq__answer-inner {
    opacity: 1;
    transform: translateY(0);
}

.bm-faq__answer-inner > :first-child {
    margin-top: 0;
}

.bm-faq__answer-inner > :last-child {
    margin-bottom: 0;
}

.bm-faq__icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e1f24;
}

.bm-faq__icon-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition:
        opacity var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out),
        transform var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out);
}

.bm-faq__icon-image--open {
    opacity: 0;
}

.bm-faq__icon-image--single {
    transform: rotate(0deg);
}

.bm-faq__item.is-open .bm-faq__icon-image--closed {
    opacity: 0;
}

.bm-faq__item.is-open .bm-faq__icon-image--open {
    opacity: 1;
}

.bm-faq__item.is-open .bm-faq__icon-image--single {
    transform: rotate(180deg);
}

.bm-faq__icon-fallback {
    position: relative;
    width: 100%;
    height: 100%;
}

.bm-faq__icon-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity var(--bm-faq-speed-desktop, 320ms) var(--bm-faq-easing-desktop, ease-out);
}

.bm-faq__icon-svg--open {
    opacity: 0;
}

.bm-faq__item.is-open .bm-faq__icon-svg--closed {
    opacity: 0;
}

.bm-faq__item.is-open .bm-faq__icon-svg--open {
    opacity: 1;
}

@media (max-width: 767px) {
    .bm-faq__answer {
        transition-duration: var(--bm-faq-speed-mobile, 280ms);
        transition-timing-function: var(--bm-faq-easing-mobile, ease-out);
    }

    .bm-faq__answer-inner {
        transform: translateY(calc(12px * var(--bm-faq-direction-mobile, -1)));
        transition-duration: var(--bm-faq-speed-mobile, 280ms), var(--bm-faq-speed-mobile, 280ms);
        transition-timing-function: var(--bm-faq-easing-mobile, ease-out), var(--bm-faq-easing-mobile, ease-out);
    }

    .bm-faq__icon-image {
        transition-duration: var(--bm-faq-speed-mobile, 280ms), var(--bm-faq-speed-mobile, 280ms);
        transition-timing-function: var(--bm-faq-easing-mobile, ease-out), var(--bm-faq-easing-mobile, ease-out);
    }

    .bm-faq__icon-svg {
        transition-duration: var(--bm-faq-speed-mobile, 280ms);
        transition-timing-function: var(--bm-faq-easing-mobile, ease-out);
    }
}

/* ============================================================
   WIDGET: BM Short-Term Opportunities (bm-sto)
   Figma: desktop 9349-2492, mobile 9380-3892
   ============================================================ */

.bm-sto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    padding: 80px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ── Search Bar ──────────────────────────────────────────── */
.bm-sto__search-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 120px;
    box-sizing: border-box;
}

.bm-sto__search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 0.75px solid #aa9680;
    border-radius: 48px;
    max-width: 845px;
    width: 100%;
    box-sizing: border-box;
    cursor: text;
}

.bm-sto__search-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #72605d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-sto__search-icon svg {
    width: 24px;
    height: 24px;
}

.bm-sto__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #72605d;
    min-width: 0;
    padding: 0;
    -webkit-appearance: none;
}

.bm-sto__search-input::placeholder {
    color: #72605d;
}

.bm-sto__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* ── Grid Wrapper ────────────────────────────────────────── */
.bm-sto__grid-wrap {
    width: 100%;
    padding: 0 120px;
    box-sizing: border-box;
}

.bm-sto__grid {
    display: grid;
    gap: 32px;
}

/* ── Card ────────────────────────────────────────────────── */
.bm-sto__card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 375px;
    background-color: rgba(187, 222, 223, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.bm-sto__card--hidden {
    display: none;
}

.bm-sto__card--search-hidden {
    display: none !important;
}

/* ── Card Image ──────────────────────────────────────────── */
.bm-sto__card-img-wrap {
    flex-shrink: 0;
    width: 228px;
    height: 100%;
    overflow: hidden;
}

.bm-sto__card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

/* ── Card Body ───────────────────────────────────────────── */
.bm-sto__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 16px;
    box-sizing: border-box;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.bm-sto__card-title {
    margin: 0 0 17px;
    padding: 0;
    font-family: 'Roboto Serif', serif;
    font-size: 24px;
    font-weight: 600;
    color: #1e1f24;
    letter-spacing: -0.48px;
    line-height: 1;
}

.bm-sto__card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.bm-sto__meta-row {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
}

.bm-sto__meta-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #1e1f24;
}

.bm-sto__meta-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #1e1f24;
}

.bm-sto__divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.bm-sto__card-desc {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1e1f24;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.bm-sto__card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.bm-sto__btn-apply,
.bm-sto__btn-know {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 155px;
    line-height: 1;
}

.bm-sto__btn-apply {
    background-color: #6d5242;
    color: #fef7ed;
}

.bm-sto__btn-apply:hover {
    background-color: #5a4235;
    color: #fef7ed;
    text-decoration: none;
}

.bm-sto__btn-know {
    background-color: #61c6c4;
    color: #1e1f24;
}

.bm-sto__btn-know:hover {
    background-color: #4db0ae;
    color: #1e1f24;
    text-decoration: none;
}

/* ── Dots (mobile only — hidden by default) ──────────────── */
.bm-sto__dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bm-sto__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #c8b69c;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.bm-sto__dot.is-active {
    background-color: #8c7159;
}

/* ── Footer / Load More ──────────────────────────────────── */
.bm-sto__footer {
    display: flex;
    justify-content: center;
}

.bm-sto__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 155px;
    background-color: #61c6c4;
    color: #1e1f24;
    line-height: 1;
}

.bm-sto__load-more:hover {
    background-color: #4db0ae;
}

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1439px) {
    .bm-sto__card-actions {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .bm-sto__search-wrap {
        padding: 0 40px;
    }

    .bm-sto__grid-wrap {
        padding: 0 40px;
    }

    .bm-sto__card {
        height: 320px;
    }

    .bm-sto__card-img-wrap {
        width: 200px;
    }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .bm-sto {
        gap: 32px;
        padding: 56px 24px;
    }

    .bm-sto__search-wrap {
        padding: 0;
        width: 100%;
    }

    .bm-sto__search-wrap--no-mobile {
        display: none;
    }

    .bm-sto__search-bar {
        max-width: 100%;
        border-radius: 32px;
    }

    .bm-sto__grid-wrap {
        padding: 0;
        width: 100%;
    }

    /* Mobile: horizontal scroll carousel */
    .bm-sto__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        scrollbar-width: none;
    }

    .bm-sto__grid::-webkit-scrollbar {
        display: none;
    }

    /* Show all cards in mobile carousel, including hidden ones */
    .bm-sto__card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        flex-direction: column !important;
        height: auto !important;
        align-items: stretch;
        scroll-snap-align: start;
        border-radius: 12px;
        overflow: hidden;
    }

    .bm-sto__card--hidden {
        display: flex;
    }

    .bm-sto__card-img-wrap {
        width: 100% !important;
        height: var(--bm-sto-mob-img-h, 255px) !important;
        border-radius: 12px 12px 0 0;
    }

    .bm-sto__card-body {
        padding: 24px 16px;
        height: auto;
        justify-content: flex-start;
    }

    .bm-sto__card-desc {
        -webkit-line-clamp: 5;
    }

    .bm-sto__dots {
        display: flex;
    }

    .bm-sto__footer {
        display: none;
    }
}

/* ============================================================
   BM LEGACY GIVING WIDGET (.bm-lgv__)
   ============================================================ */

/* STRUCTURAL — outer wrapper; no padding (lives on inner + panels-wrap) */
.bm-lgv__section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* STRUCTURAL — constrained content columns (padding + max-width from controls) */
.bm-lgv__inner,
.bm-lgv__panels-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* STRUCTURAL — horizontal tab row, centered */
.bm-lgv__tab-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ELEMENTOR QUIRK — strip all button chrome */
.bm-lgv__tab {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* STRUCTURAL — relative wrapper so underline SVG can be absolutely positioned */
.bm-lgv__tab-inner {
    position: relative;
    display: inline-block;
}

/* JS-DRIVEN — underline SVG: hidden by default, shown on active tab */
.bm-lgv__tab-underline {
    position: absolute;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    display: none;
}

.bm-lgv__tab.is-active .bm-lgv__tab-underline {
    display: block;
}

/* STRUCTURAL — brace spans full section width (section has no padding) */
.bm-lgv__brace {
    width: 100%;
    align-self: stretch;
    line-height: 0;
}

/* JS-DRIVEN — fades on tab switch */
.bm-lgv__brace-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 150ms ease;
}

/* STRUCTURAL — panels container; height collapses to active panel */
.bm-lgv__panels {
    position: relative;
    width: 100%;
}

/* JS-DRIVEN — inactive: absolute + invisible */
.bm-lgv__panel {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 300ms;
    transition-timing-function: ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* JS-DRIVEN — active: in-flow + visible */
.bm-lgv__panel.is-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* ENHANCEMENT — placeholder shown when no template ID is set */
.bm-lgv__placeholder {
    color: #aaa;
    font-size: 13px;
    padding: 12px;
    border: 1px dashed #ccc;
    text-align: center;
    margin: 0;
}
