/* BlueMile redesign (navy concept): details Elementor has no setting for. Colours come from the BM global colours. */
/* accent serif, self-hosted (latin, italic only: it is only used for <em> in headings) */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic-latin.woff2) format('woff2'); }
.bm3 { overflow-x: hidden; }
.bm3 .bm-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 8px 12px; }
.bm3 a { text-decoration: none; }

/* type: quiet headings, serif italic for the accent words (<em> in a heading) */
.elementor-widget-heading :is(h1, h2, h3).elementor-heading-title { letter-spacing: -0.02em; }
.elementor-heading-title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; color: var(--e-global-color-bmacnt1); }
.bm-dark .elementor-heading-title em { color: var(--e-global-color-bmondk1); }
p.elementor-heading-title { margin-block: 0; } /* headings set as <p>: spacing comes from the container gap */
.bm-eyebrow .elementor-heading-title::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.bm-tiny a, .bm-backtop a { color: inherit; }
.bm-note .bm-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--e-global-color-bmprim1); margin-right: 10px; vertical-align: middle; }
.bm-from strong { color: #fff; font-weight: 600; }

/* tick icons sit in a soft circle */
.bm-checks .elementor-icon-list-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--e-global-color-bmtint1); display: inline-flex !important; align-items: center; justify-content: center; margin-top: .2em; }
.bm-checks .elementor-icon-list-item { align-items: flex-start !important; }
.bm-checks .elementor-icon-list-text { padding-left: 10px !important; }
.bm-cols-2 .elementor-icon-list-items { display: block; columns: 2; column-gap: 32px; }
.bm-cols-2 .elementor-icon-list-item { break-inside: avoid; }
@media (max-width: 767px) { .bm-cols-2 .elementor-icon-list-items { columns: 1; } }

/* chips */
.bm-tags .elementor-icon-list-item { padding: 6px 14px; border: 1px solid var(--e-global-color-bmline1); border-radius: 3px; background: #fff; margin: 0 8px 8px 0 !important; }
.bm-facts .elementor-icon-list-item { padding: 4px 10px; border-radius: 3px; background: var(--e-global-color-bmsoft1); border: 1px solid var(--e-global-color-bmline1); margin: 0 6px 6px 0 !important; }
.bm-tags .elementor-icon-list-icon, .bm-facts .elementor-icon-list-icon, .bm-socials .elementor-icon-list-icon, .bm-footer-links .elementor-icon-list-icon { display: none !important; }
.bm-socials .elementor-icon-list-item { padding: 5px 12px; border: 1px solid var(--e-global-color-bmline1); border-radius: 3px; margin: 0 8px 8px 0 !important; }
/* footer socials: flush with the text above, two even columns so none wraps alone */
.bm-socials .elementor-icon-list-items { display: grid !important; grid-template-columns: repeat(2, max-content); gap: 8px; margin: 0 !important; }
.bm-socials .elementor-icon-list-item { margin: 0 !important; justify-content: center; }
.bm-btn--link .elementor-button { padding-inline: 0 !important; }
.bm-tags .elementor-icon-list-items, .bm-facts .elementor-icon-list-items, .bm-socials .elementor-icon-list-items { flex-wrap: wrap; }
.bm-tags .elementor-icon-list-item::after, .bm-facts .elementor-icon-list-item::after, .bm-socials .elementor-icon-list-item::after { display: none !important; }

/* hero */
.bm-hero-media { position: relative; }
.bm-hero-media img { max-height: 520px; width: auto; object-fit: contain; }
.bm-hero-art img { max-height: 460px; }
.bm-stats { background: #fff; border: 1px solid var(--e-global-color-bmline1); border-radius: 6px; }
.bm-stats > .bm-stat + .bm-stat { border-left: 1px solid var(--e-global-color-bmline1); }
.bm-stat__v { color: var(--e-global-color-bmink01); line-height: 1.1; margin: 0; }
@media (max-width: 767px) { .bm-stats > .bm-stat + .bm-stat { border-left: 0; border-top: 1px solid var(--e-global-color-bmline1); } }
.bm-strip-sec { border-bottom: 1px solid var(--e-global-color-bmline1); }

/* programme cards and course cards */
.bm-prog, .bm-course { transition: border-color .15s, box-shadow .15s; }
.bm-prog:hover, .bm-course:hover { border-color: var(--e-global-color-bmprim1) !important; box-shadow: 0 18px 40px -32px rgba(15,33,51,.45); }
.bm-prog .elementor-heading-title a, .bm-course .elementor-heading-title a { color: inherit; }
.bm-card__foot { margin-top: auto !important; }
.bm-card__actions > .elementor-widget-button { flex: 1; }
.bm-card__actions .elementor-button { width: 100%; }
.bm-formcard, .bm-pricecard { box-shadow: 0 24px 48px -36px rgba(15,33,51,.35); }

/* price card */
.bm-price { margin: 6px 0 0; }
.bm-price s { color: var(--e-global-color-bmmute1); font-size: 18px; margin-right: 6px; }
.bm-price strong { color: var(--e-global-color-bmink01); font-size: 40px; font-weight: 600; }
.bm-pricecard .bm-btn--primary .elementor-button { width: 100%; }

/* numbered rows (dark section) and learning steps */
.bm-numbered { border-top: 1px solid var(--e-global-color-bmline1); }
.bm-numbered--dark { border-top-color: rgba(255,255,255,.14); }
.bm-numbered .bm-num { padding-top: 4px; min-width: 24px; }
.bm-numbered > .e-con { --width: auto; flex: 1 1 0 !important; min-width: 0; } /* text column takes what is left beside the number */
.bm-step { border-top: 1px solid var(--e-global-color-bmline1); position: relative; }
.bm-step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--e-global-color-bmprim1); }
.bm-bar p { margin: 0; }
.bm-side { max-width: 340px; }
.bm-teamphoto { margin-top: 56px; text-align: center; }
.bm-teamphoto img { max-width: 760px; width: 100%; opacity: .92; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* team, logos, wide image, video */
.bm-team__img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.bm-logo-img img { max-height: 44px; width: auto; object-fit: contain; }
.bm-wide img { width: 100%; aspect-ratio: 32 / 9; object-fit: cover; margin-bottom: 40px; }
@media (max-width: 767px) { .bm-wide img { aspect-ratio: 3 / 2; margin-bottom: 24px; } }

/* accordions: ruled lines between questions, no boxes */
.bm-acc .e-n-accordion-item { margin: 0; border-bottom: 1px solid var(--e-global-color-bmline1); }
.bm-acc .e-n-accordion-item:first-child { border-top: 1px solid var(--e-global-color-bmline1); }
.bm-acc .e-n-accordion-item-title { border: 0 !important; padding: 20px 0 !important; justify-content: space-between; background: none !important; }
.bm-acc .e-n-accordion-item > .e-con { border: 0 !important; padding: 0 32px 22px 0 !important; background: none !important; }
.bm-acc .e-n-accordion-item-title-text { line-height: 1.4; }

/* location card: office photo fading to white behind the text */
.bm-place { position: relative; overflow: hidden; }
.bm-place::after { content: ""; position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 48%, rgba(255,255,255,.1) 100%); pointer-events: none; }
.bm-place > .elementor-element { position: relative; z-index: 1; }
@media (max-width: 767px) { .bm-place::after { background: rgba(255,255,255,.86); } }

/* header and footer */
.bm-topbar p { margin: 0; }
.bm-header__row .elementor-nav-menu--main .elementor-item { white-space: nowrap; }
.bm-footer-links a:hover .elementor-icon-list-text { color: var(--e-global-color-bmprim1); }
.bm-header__row .bm-header__cta { --width: auto; } /* header buttons take their own width, not the container default of 100% */
@media (max-width: 1024px) {
	.bm-header__row .bm-nav { order: 3; flex-grow: 0 !important; }
	.bm-header__row .bm-header__cta { margin-inline-start: auto !important; } /* beats Elementor's own margin reset */
}
@media (max-width: 767px) {
	.bm-header__cta .elementor-button { padding: 11px 12px; font-size: 13px; }
	.bm-topbar .bm-tiny:last-child { display: none; }
}

/* real academy photos: one crop and one size, captioned */
.bm-photo:not(.bm-wide) img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bm-figure { max-width: 480px; margin-inline-start: auto; }
@media (max-width: 1024px) { .bm-figure { max-width: none; margin-inline-start: 0; } }

/* footer: no stray paragraph gap under the address */
.bm-footer .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
