/*
 * Site-wide look, applied through classes the redesign tool adds to existing Elementor
 * elements. Remove this file's classes (tools/redesign.php restore) and pages go back.
 * Colours and fonts stay QST's: only one darker shade of its blue is new.
 */
:root {
    --qst-blue: var(--e-global-color-primary, #5377A4);
    --qst-yellow: var(--e-global-color-accent, #FBBB1F);
    --qst-dark: #1f3450;
    --qst-darker: #172840;
    --qst-tint: #f3f5f9;
    --qst-line: #dfe3ea;
    --qst-ink: #3f3f3f;
}

/* ------------------------------------------------------------------ header */
/* One row: logo, menu, basket, button, all centred on the same line. */
.qst-header-bar {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--qst-line);
}

.qst-header-bar > .e-con-inner {
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: 12px;
    min-height: 64px;
}

.qst-header-bar > .e-con-inner > .elementor-element {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.qst-header-bar > .e-con-inner > .elementor-element > .elementor-widget-container {
    margin: 0 !important;
}

/* Logo */
.qst-header-bar > .e-con-inner > .e-con:first-child {
    --order: 0 !important;
    order: 0 !important;
    flex: 0 0 170px !important;
    width: 170px !important;
    margin-right: 20px !important;
}

.qst-header-bar > .e-con-inner > .e-con:first-child img {
    display: block;
    max-width: 100% !important;
    height: auto;
}

/* Menu */
.qst-header-bar .qst-header-menu {
    --order: 1 !important;
    --n-menu-heading-wrap: nowrap !important;
    --n-menu-heading-justify-content: center !important;
    --n-menu-title-flex-grow: 0 !important;
    --n-menu-title-space-between: 0px !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0;
}

.qst-header-menu .e-n-menu-heading {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}

.qst-header-bar .qst-header-menu .e-n-menu-title {
    position: relative;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    padding: 0 12px !important;
    white-space: nowrap;
}

.qst-header-bar .qst-header-menu .e-n-menu-title-container {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
}

.qst-header-bar .qst-header-menu .e-n-menu-title-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    line-height: 1.2 !important;
}

/* The arrow belongs to its label. */
.qst-header-bar .qst-header-menu .e-n-menu-dropdown-icon {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 0 6px !important;
    padding: 0 !important;
    --n-menu-dropdown-indicator-size: 10px;
}

/* Basket, last in the row, the same height as the button beside it. */
.qst-header-bar .qst-header-basket {
    --order: 4 !important;
    order: 4 !important;
    flex: 0 0 auto !important;
}

.qst-header-bar .qst-mmc-basket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--qst-line);
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s;
}

.qst-header-bar .qst-mmc-basket-icon:hover,
.qst-header-bar .qst-mmc-basket-icon:focus {
    border-color: var(--qst-blue);
}

.qst-header-bar .qst-mmc-basket-count {
    top: -7px;
    right: -7px;
}

/* Button */
.qst-header-bar > .e-con-inner > .e-con:last-child {
    --order: 3 !important;
    order: 3 !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.qst-header-bar > .e-con-inner > .e-con:last-child .elementor-element {
    width: auto !important;
    max-width: none !important;
}

.qst-header-bar .eael-creative-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

.qst-header-bar .eael-creative-button .eael-creative-button-text,
.qst-header-bar .eael-creative-button-text {
    font-size: 14px !important;
    line-height: 1 !important;
}

.qst-header-empty {
    display: none !important;
}

@media (max-width: 1240px) {
    .qst-header-bar > .e-con-inner {
        gap: 8px;
    }

    .qst-header-bar > .e-con-inner > .e-con:first-child {
        flex-basis: 140px !important;
        width: 140px !important;
        margin-right: 8px !important;
    }

    .qst-header-bar .qst-header-menu .e-n-menu-title {
        padding: 0 7px !important;
    }

    .qst-header-bar .qst-header-menu .e-n-menu-title-text {
        font-size: 12px !important;
        letter-spacing: .02em !important;
    }

    .qst-header-bar .eael-creative-button {
        padding: 0 12px !important;
    }

    .qst-header-bar .eael-creative-button .eael-creative-button-text,
    .qst-header-bar .eael-creative-button-text {
        font-size: 13px !important;
    }
}

/* -------------------------------------------------------------- dark hero */
.e-con.qst-hero {
    min-height: 0 !important;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
    background-color: var(--qst-dark) !important;
}

/* Elementor draws its overlay here, so this replaces it with a darker one. */
.e-con.qst-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: linear-gradient(90deg, rgba(23, 40, 64, .96) 0%, rgba(31, 52, 80, .88) 55%, rgba(31, 52, 80, .72) 100%) !important;
    opacity: 1 !important;
    pointer-events: none;
}

.qst-hero > .e-con-inner {
    position: relative;
    z-index: 1;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px;
}

.qst-hero > .e-con-inner > .e-con {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 640px !important;
    min-width: 0;
}

/* The wave was there to meet the old blue band below, which has moved. */
.qst-hero > .elementor-shape {
    display: none !important;
}

.qst-hero .elementor-heading-title,
.qst-hero > .e-con-inner > .e-con .elementor-widget-text-editor,
.qst-hero > .e-con-inner > .e-con .elementor-widget-text-editor * {
    color: #fff !important;
}

.qst-hero .qst-hero-search {
    flex: 0 0 400px !important;
    width: 400px !important;
    max-width: 100% !important;
    color: var(--qst-ink);
}

/* ---------------------------------------------------------- logo strip */
.qst-logo-strip {
    padding: 28px 24px !important;
    border-bottom: 1px solid var(--qst-line);
    background: #fff !important;
}

.qst-logo-strip .elementor-heading-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--qst-ink) !important;
}

/* ------------------------------------------------------------ card grid */
.qst-card-grid {
    gap: 20px !important;
    padding: 64px max(24px, calc((100% - 1200px) / 2)) !important;
    background: #fff !important;
}

/* Cards appear straight away rather than fading in on scroll. */
.qst-card-grid .elementor-invisible {
    visibility: visible !important;
    animation: none !important;
}

.qst-card-grid .elementor-cta {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--qst-line);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
}

.qst-card-grid .elementor-cta:hover {
    box-shadow: 0 10px 24px rgba(31, 52, 80, .14);
    transform: translateY(-2px);
}

/* -------------------------------------------------- tiles under the grid */
.qst-tiles {
    gap: 20px !important;
    padding: 56px max(24px, calc((100% - 1200px) / 2)) !important;
    background: var(--qst-tint) !important;
}

.qst-tiles > .e-con,
.qst-tiles > .e-con-inner > .e-con {
    padding: 24px !important;
    border-radius: 8px;
    background: #fff;
}

/* These were white on the old blue band. */
.qst-tiles .elementor-heading-title {
    color: var(--qst-blue) !important;
}

.qst-tiles .elementor-widget-text-editor,
.qst-tiles .elementor-widget-text-editor *:not(a) {
    color: var(--qst-ink) !important;
}

/* ------------------------------------------------------------- dark band */
.qst-band-dark {
    background-color: var(--qst-dark) !important;
    background-image: none !important;
}

.qst-band-dark .elementor-heading-title,
.qst-band-dark .elementor-widget-text-editor,
.qst-band-dark .elementor-widget-text-editor *:not(a) {
    color: #fff !important;
}

/* ------------------------------------------------------------ plain bands */
.qst-band-tint {
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.qst-band-white {
    background-color: #fff !important;
    background-image: none !important;
}

/* ------------------------------------------- "get started" band in footer */
.qst-band-yellow {
    background-color: var(--qst-yellow) !important;
    background-image: none !important;
}

.qst-band-yellow .elementor-heading-title,
.qst-band-yellow .elementor-widget-text-editor,
.qst-band-yellow .elementor-widget-text-editor * {
    color: var(--qst-darker) !important;
}

/* ----------------------------------------------------------------- footer */
.qst-footer-main,
.qst-footer-legal {
    background-color: var(--qst-darker) !important;
    background-image: none !important;
}

.qst-footer-main .elementor-heading-title,
.qst-footer-main .elementor-heading-title a,
.qst-footer-main .elementor-widget-text-editor,
.qst-footer-main .elementor-widget-text-editor *,
.qst-footer-legal .elementor-widget-text-editor,
.qst-footer-legal .elementor-widget-text-editor * {
    color: #e8edf5 !important;
}

/* ------------------------------------------------------------ course page */
.qst-course-side {
    position: sticky;
    top: 16px;
    align-self: flex-start;
}

.qst-course-facts {
    width: 100% !important;
}

/* Dates sit on a plain band, so they read like a list rather than a banner. */
.qst-dates-band {
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.qst-dates-band::before {
    display: none !important;
}

.qst-dates-band .elementor-heading-title,
.qst-dates-band .elementor-icon,
.qst-dates-band .elementor-widget-text-editor,
.qst-dates-band .elementor-widget-text-editor *:not(a) {
    color: var(--qst-ink) !important;
    fill: currentColor;
}

.qst-dates-band .elementor-widget-text-editor a {
    color: var(--qst-blue) !important;
}

.qst-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

@media (max-width: 1024px) {
    .qst-course-side {
        position: static;
    }

    .e-con.qst-hero {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .qst-hero > .e-con-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 28px;
    }

    .qst-hero > .e-con-inner > .e-con {
        max-width: none !important;
    }

    .qst-hero .qst-hero-search {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .qst-card-grid,
    .qst-tiles {
        padding: 40px 16px !important;
    }
}

/* Elementor prints the wave inside the boxed area, not directly under the section. */
.qst-hero .elementor-shape {
    display: none !important;
}

/* The fade-in moved cards over the next section while it ran. */
.qst-card-grid .animated,
.qst-card-grid .elementor-invisible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

@media (max-width: 1024px) {
    .e-con.qst-hero {
        min-height: 0 !important;
    }

    .qst-hero > .e-con-inner {
        justify-content: flex-start !important;
    }
}

/* The old band's image overlay would muddy the yellow. */
.e-con.qst-band-yellow::before {
    display: none !important;
}

.qst-band-yellow .elementor-heading-title {
    text-shadow: none !important;
}

/* No entrance animations in the footer: the dark bar used to slide down into place. */
[data-elementor-type="footer"] .animated,
[data-elementor-type="footer"] .elementor-invisible,
[data-elementor-type="footer"].animated,
.qst-footer-legal,
.qst-footer-legal.animated,
.qst-footer-legal.elementor-invisible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* These need the same weight as the row rule above to take effect. */
.qst-header-bar > .e-con-inner > .e-con:last-child .eael-creative-button-wrapper {
    width: auto !important;
}

.qst-header-bar > .e-con-inner > .e-con:last-child a.eael-creative-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* The button only takes the room its label needs, leaving the rest to the menu. */
.qst-header-bar > .e-con-inner > .e-con:last-child {
    flex: 0 0 214px !important;
    width: 214px !important;
}

.qst-header-bar > .e-con-inner > .e-con:last-child .elementor-element,
.qst-header-bar > .e-con-inner > .e-con:last-child a.eael-creative-button {
    width: 100% !important;
}

.qst-header-bar a.eael-creative-button,
.qst-header-bar a.eael-creative-button * {
    font-size: 14px !important;
}

/* Hero copy: heading and text full width, the two buttons side by side beneath. */
.qst-hero .qst-hero-copy {
    flex-flow: row wrap !important;
    align-items: center !important;
    gap: 12px 12px !important;
}

.qst-hero .qst-hero-copy > .elementor-element {
    width: 100% !important;
    max-width: 100% !important;
}

.qst-hero .qst-hero-copy > .elementor-element.qst-hero-button {
    width: auto !important;
    margin: 0 !important;
}

.qst-hero .qst-hero-button .elementor-button {
    padding: 15px 22px !important;
    font-size: 15px !important;
    white-space: nowrap;
}

/* The search card uses two columns, which is most of what makes the hero shorter. */
.qst-hero .qst-mmc-search {
    padding: 16px;
}

.qst-hero .qst-mmc-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qst-hero .qst-mmc-search-form > label:first-child {
    grid-column: 1 / -1;
}

.qst-hero .qst-mmc-search-form select {
    min-height: 38px;
    padding: 6px;
}

.qst-hero .qst-mmc-search-form label {
    gap: 2px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .e-con.qst-hero {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}

/* Elementor sets this hero's height and padding through variables, read by the inner box. */
.e-con.qst-hero {
    --min-height: 0px !important;
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
}

.qst-hero > .e-con-inner {
    height: auto !important;
    padding-block: 0 !important;
}

.qst-header-bar > .e-con-inner > .qst-header-basket {
    margin-left: 10px !important;
}

/* Section title above the cards, a full row of its own. */
.qst-card-grid .qst-card-grid-title {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    text-align: center;
}

.qst-card-grid-title .elementor-heading-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--qst-ink) !important;
}

/* Equal-height cards with the button on the bottom edge, whatever the text length. */
.qst-card-grid > .e-con-inner {
    align-items: stretch !important;
}

.qst-card-grid .elementor-widget-call-to-action {
    display: flex;
    align-self: stretch !important;
}

.qst-card-grid .elementor-widget-call-to-action > .elementor-widget-container {
    display: flex;
    width: 100%;
}

.qst-card-grid .elementor-cta {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

.qst-card-grid .elementor-cta__content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
}

.qst-card-grid .elementor-cta__button-wrapper {
    margin-top: auto !important;
    padding-top: 14px;
}

/* The count is always visible, with enough contrast against the grey card. */
.qst-mmc-card-count {
    position: relative;
    z-index: 2;
    display: inline-block !important;
    margin: 6px 0 10px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--qst-blue) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/*
 * Section titles all match "QST Compliance Partner": the theme's h2 size, weight 600.
 * The page's main title (h1) stays larger, and smaller sub-headings keep their size.
 */
[data-elementor-type="wp-page"] h2.elementor-heading-title,
.qst-logo-strip .elementor-heading-title,
.qst-card-grid-title .elementor-heading-title {
    font-size: 2rem !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

/* Clients strip: compact, with its height set here rather than by Elementor's padding. */
.e-con.qst-logo-strip {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    --min-height: 0px !important;
    --row-gap: 12px !important;
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.qst-logo-strip.e-con-boxed > .e-con-inner {
    padding-block: 0 !important;
}

.qst-logo-strip .elementor-element {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.qst-logo-strip .elementor-widget-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.qst-logo-strip .elementor-heading-title {
    margin: 0 0 8px !important;
}


/* Clients strip: just the logos. The title stays in Elementor, hidden, so it can return. */
.qst-logo-strip .elementor-widget-heading {
    display: none !important;
}

.qst-logo-strip .swiper-wrapper {
    align-items: center !important;
}

.qst-logo-strip .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto;
}

.qst-logo-strip .swiper-slide-inner,
.qst-logo-strip figure {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Feedback: smaller space above and below. */
.e-con.qst-band-white.qst-section,
.qst-band-white .e-con {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    --min-height: 0px !important;
    min-height: 0 !important;
}

.e-con.qst-band-white.qst-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.qst-band-white .e-con {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.qst-band-white.e-con-boxed > .e-con-inner,
.qst-band-white .e-con-boxed > .e-con-inner {
    padding-block: 0 !important;
}

/* ==================================================================== site-wide
 * A plainer, tighter look on every page, including ones whose Elementor data wasn't
 * touched. Elementor sets spacing through variables that its inner box also reads, so
 * those are what's overridden here.
 */
[data-elementor-type="wp-page"] > .e-con {
    --padding-top: 36px !important;
    --padding-bottom: 36px !important;
    --min-height: 0px !important;
    min-height: 0 !important;
}

/* A page's opening band stays a band, not most of a screen. */
[data-elementor-type="wp-page"] > .e-con:first-child {
    --padding-top: 44px !important;
    --padding-bottom: 44px !important;
}

/* No decorative waves between sections. */
[data-elementor-type="wp-page"] .elementor-shape,
[data-elementor-type="footer"] .elementor-shape {
    display: none !important;
}

/* Nothing fades or slides in as you scroll. */
[data-elementor-type="wp-page"] .animated,
[data-elementor-type="wp-page"] .elementor-invisible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

[data-elementor-type="wp-page"] .elementor-widget-heading:not(:last-child) {
    margin-bottom: 8px;
}

/* Long stretches of text read better at a set width, with less air around them. */
[data-elementor-type="wp-page"] .e-con {
    --row-gap: min(var(--gap-row, 16px), 16px);
}

/* Course pages */
.qst-card-grid,
.qst-tiles {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

.qst-section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

.qst-dates-band {
    --padding-top: 36px !important;
    --padding-bottom: 36px !important;
}

/* Footer: a compact call to action. */
.e-con.qst-band-yellow {
    --padding-top: 28px !important;
    --padding-bottom: 28px !important;
    --min-height: 0px !important;
    min-height: 0 !important;
}

.e-con.qst-footer-main {
    --padding-top: 32px !important;
    --padding-bottom: 24px !important;
}

@media (max-width: 767px) {
    [data-elementor-type="wp-page"] > .e-con {
        --padding-top: 24px !important;
        --padding-bottom: 24px !important;
    }
}

/* Mega menu: the old hand-made contents stay in Elementor, hidden. */
.qst-mega-old {
    display: none !important;
}

.e-con.qst-mega-dropdown {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 16px 30px rgba(31, 52, 80, .16);
}

.qst-mega-widget {
    width: 100% !important;
    max-width: 100% !important;
}

/* Categories on a quiet background, the three tiles on white with less space. */
.qst-card-grid {
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.qst-tiles {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background-color: #fff !important;
    background-image: none !important;
}

.e-con.qst-tiles {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
}

/* "Get Started Today" has more room than the sections around it. */
.e-con.qst-band-yellow {
    --padding-top: 64px !important;
    --padding-bottom: 64px !important;
}

@media (max-width: 767px) {
    /* The hero's text and the search card share the same side margins. */
    .qst-hero > .e-con-inner {
        box-sizing: border-box;
        padding-inline: 20px !important;
    }

    /* Both buttons on one line. */
    .qst-hero .qst-hero-copy {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px 8px !important;
        width: 100% !important;
    }

    .qst-hero .qst-hero-copy > .elementor-element.qst-hero-button {
        flex: 0 1 auto !important;
        min-width: 0;
    }

    .qst-hero .qst-hero-button .elementor-button {
        padding: 12px 10px !important;
        font-size: 12px !important;
        letter-spacing: .3px !important;
    }

    .qst-hero .qst-hero-button .elementor-button-icon {
        margin-right: 4px;
    }

    .qst-hero .qst-hero-button .elementor-button-content-wrapper {
        gap: 4px !important;
    }

    .qst-hero .qst-hero-search {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Cards sit above the QST figure in the section's background. */
.qst-card-grid > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* Desktop hero: the search card matches the height of the text beside it, with air inside. */
@media (min-width: 1025px) {
    .qst-hero > .e-con-inner {
        align-items: stretch !important;
    }

    .qst-hero > .e-con-inner > .e-con {
        align-self: center;
    }

    .qst-hero .qst-hero-search {
        display: flex !important;
        align-self: stretch !important;
    }

    .qst-hero .qst-hero-search > .elementor-widget-container,
    .qst-hero .qst-hero-search .elementor-shortcode {
        display: flex;
        flex: 1 1 auto;
        width: 100%;
    }

    .qst-hero .qst-mmc-search {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        padding: 28px 24px;
    }

    .qst-hero .qst-mmc-search-form {
        flex: 1 1 auto;
        align-content: space-between;
        gap: 18px 14px;
    }

    .qst-hero .qst-mmc-search-form label {
        gap: 5px;
    }

    .qst-hero .qst-mmc-search-form select {
        min-height: 44px;
    }

    .qst-hero .qst-mmc-segments legend {
        margin-bottom: 5px;
    }

    .qst-hero .qst-mmc-segments span {
        padding: 9px 2px;
    }

    .qst-mmc .qst-hero-search .qst-mmc-search-form > button.qst-mmc-button {
        min-height: 46px;
    }
}

/* The menu items fill the bar's height, so the panel opens right under the header. */
.e-con.qst-header-bar {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.qst-header-bar > .e-con-inner {
    padding-block: 0 !important;
    min-height: 84px;
}

.qst-header-bar .qst-header-menu {
    --n-menu-title-distance-from-content: 0px !important;
    align-self: stretch !important;
}

.qst-header-bar .qst-header-menu .e-n-menu-title {
    align-self: stretch !important;
    min-height: 84px;
}

/* Every layer of the menu takes the bar's full height (the logo can make it taller than 84px),
   so the labels sit in the vertical centre, level with the logo and the button. */
.qst-header-bar .qst-header-menu > .elementor-widget-container,
.qst-header-bar .qst-header-menu .e-n-menu,
.qst-header-bar .qst-header-menu .e-n-menu-wrapper,
.qst-header-bar .qst-header-menu .e-n-menu-heading {
    height: 100% !important;
}

.qst-header-bar .qst-header-menu .e-n-menu-heading > .e-n-menu-item {
    align-self: stretch !important;
}

.qst-header-bar .qst-header-menu .e-n-menu-title-container {
    align-self: stretch !important;
    padding: 0 !important;
}

/* The clients strip keeps its contents inside its own background. */
.e-con.qst-logo-strip {
    overflow: hidden;
}

.e-con.qst-card-grid {
    margin-top: 0 !important;
}

.qst-card-grid > .e-con-inner {
    margin-top: 0 !important;
}

/* Course Availability stays in Elementor but is hidden: the header button goes to the same page. */
[data-elementor-type="header"] .e-n-menu-heading > .e-n-menu-item:nth-child(4) {
    display: none !important;
}

@media (max-width: 767px) {
    /* The hero's text lines up with the search card below it. */
    .qst-hero .qst-hero-copy {
        padding-inline: 0 !important;
    }
}

/* ------------------------------------------------------------------ e-learning */
/* The three account buttons, then the categories as a row of equal tiles. */
.qst-el-actions,
.qst-el-cats {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
}

.qst-el-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 20px;
}

.qst-el-cats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qst-el-actions > .e-con,
.qst-el-cats > .e-con {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.qst-el-actions .elementor-widget-button,
.qst-el-cats .elementor-widget-button,
.qst-el-actions .elementor-button-wrapper,
.qst-el-cats .elementor-button-wrapper {
    width: 100% !important;
    height: 100%;
}

.qst-el-actions .elementor-button,
.qst-el-cats .elementor-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal;
}

.qst-el-cats-title {
    margin-bottom: 8px;
}

/* Each category: a title, then its courses in two tidy columns. */
.e-con.qst-el-section {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    background-color: #fff !important;
    background-image: none !important;
}

.e-con.qst-el-section-tint {
    background-color: var(--qst-tint) !important;
}

.qst-el-section .elementor-heading-title {
    text-align: left;
}

.qst-el-section .elementor-widget-text-editor {
    text-align: left;
}

.qst-el-lists {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px !important;
    width: 100% !important;
    margin-top: 8px;
}

.qst-el-lists > .elementor-element {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Name on the left, its two links on the right, one course per row. */
.qst-el-lists .course-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.qst-el-lists .course-links p {
    margin: 0 !important;
    padding: 9px 0;
    border-bottom: 1px solid var(--qst-line);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.qst-el-lists .course-links strong {
    font-weight: 600;
}

.qst-el-lists .course-links p:nth-child(even) {
    gap: 12px;
    justify-content: flex-end;
    padding-left: 12px;
    white-space: nowrap;
}

.qst-el-lists .course-links br {
    display: none;
}

.qst-el-lists .course-links a {
    color: var(--qst-blue);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .qst-el-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qst-el-lists {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .qst-el-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .qst-el-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------- contact */
.e-con.qst-contact-hero {
    background-color: var(--qst-dark) !important;
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.e-con.qst-contact-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: linear-gradient(90deg, rgba(23, 40, 64, .96) 0%, rgba(31, 52, 80, .9) 60%, rgba(31, 52, 80, .8) 100%) !important;
    opacity: 1 !important;
    pointer-events: none;
}

.qst-contact-hero > .e-con-inner {
    position: relative;
    z-index: 1;
    padding-block: 0 !important;
    align-items: flex-start !important;
    gap: 40px;
}

.qst-contact-copy,
.qst-contact-copy .elementor-widget-text-editor,
.qst-contact-copy .elementor-widget-text-editor *:not(a) {
    color: #fff !important;
}

.qst-contact-copy .elementor-widget-text-editor {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.qst-contact-copy .elementor-widget-text-editor p {
    margin-bottom: 10px !important;
}

/* The form on its own card, so it reads clearly and sits at the height it needs. */
.e-con.qst-contact-form {
    flex: 0 0 440px !important;
    width: 440px !important;
    max-width: 100% !important;
    padding: 20px !important;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.qst-contact-form .elementor-field-label,
.qst-contact-form .elementor-field-subgroup label,
.qst-contact-form .elementor-field-option label,
.qst-contact-form .elementor-widget-form label {
    color: var(--qst-ink) !important;
    font-size: 14px !important;
}

.qst-contact-form .elementor-field-group {
    margin-bottom: 8px !important;
}

.qst-contact-form .elementor-field-textual {
    min-height: 40px;
    padding: 7px 10px !important;
    border: 1px solid #c9c9d2 !important;
    font-size: 14px !important;
}

.qst-contact-form textarea.elementor-field-textual {
    height: 80px;
}

/* Call Us: one line instead of a tall block. */
.e-con.qst-contact-call {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.e-con.qst-contact-call::before {
    display: none !important;
}

.qst-contact-call > .e-con-inner {
    padding-block: 0 !important;
}

.qst-contact-call-row {
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px 20px !important;
    padding: 0 !important;
}

.qst-contact-call-row > .elementor-element {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.qst-contact-call-row .elementor-widget-lottie {
    width: 40px !important;
}

.qst-contact-call-row .elementor-heading-title {
    margin: 0 !important;
    font-size: 1.5rem !important;
}

.qst-contact-call-row .elementor-widget-text-editor p {
    margin: 0 !important;
}

.qst-contact-call-row .elementor-widget-button .elementor-button {
    width: auto !important;
    padding: 12px 22px !important;
}

@media (max-width: 1024px) {
    .qst-contact-hero > .e-con-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px;
    }

    .qst-contact-hero .qst-contact-copy,
    .e-con.qst-contact-form {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .qst-contact-hero > .e-con-inner {
        box-sizing: border-box;
        padding-inline: 20px !important;
    }

    .qst-contact-copy {
        padding-inline: 0 !important;
    }
}

/* ------------------------------------------------- pages opening on a photo */
.e-con.qst-page-hero {
    background-color: var(--qst-dark) !important;
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    --min-height: 0px !important;
    min-height: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.e-con.qst-page-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: linear-gradient(90deg, rgba(23, 40, 64, .96) 0%, rgba(31, 52, 80, .88) 55%, rgba(31, 52, 80, .72) 100%) !important;
    opacity: 1 !important;
    pointer-events: none;
}

.qst-page-hero > .e-con-inner {
    position: relative;
    z-index: 1;
    padding-block: 0 !important;
}

.qst-page-hero .elementor-heading-title,
.qst-page-hero .elementor-widget-text-editor,
.qst-page-hero .elementor-widget-text-editor *:not(a) {
    color: #fff !important;
}

.qst-page-hero .elementor-widget-text-editor {
    font-size: 17px !important;
    line-height: 1.5 !important;
}

.qst-page-hero .elementor-widget-text-editor p {
    margin-bottom: 10px !important;
}

/* ------------------------------------------------------------- our purpose */
.e-con.qst-values-title,
.e-con.qst-values {
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.e-con.qst-values-title {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 32px !important;
    padding-bottom: 8px !important;
}

.qst-values-title .elementor-heading-title {
    text-align: center;
}

.e-con.qst-values {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 8px !important;
    padding-bottom: 36px !important;
}

.qst-values > .e-con-inner {
    gap: 16px !important;
    align-items: stretch !important;
    padding-block: 0 !important;
}

.qst-values > .e-con-inner > .e-con {
    flex: 1 1 0 !important;
    width: auto !important;
    padding: 22px !important;
    border: 1px solid var(--qst-line);
    border-radius: 8px;
    background: #fff;
}

.qst-values .elementor-heading-title {
    font-size: 1.35rem !important;
}

.e-con.qst-band-dark {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

.qst-band-dark > .e-con-inner {
    align-items: center !important;
    padding-block: 0 !important;
}

/* The long text reads in two shorter columns, each subject staying in one piece. */
.e-con.qst-about-nationwide {
    background-color: #fff !important;
    background-image: none !important;
}

.qst-about-nationwide .elementor-widget-text-editor {
    columns: 2;
    column-gap: 40px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.qst-about-nationwide .elementor-widget-text-editor p {
    margin-bottom: 10px;
    break-inside: avoid;
}

.qst-about-nationwide .elementor-widget-text-editor strong {
    color: var(--qst-blue);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .qst-about-nationwide .elementor-widget-text-editor {
        columns: 1;
    }
}

@media (max-width: 767px) {
    .qst-values > .e-con-inner {
        flex-direction: column !important;
    }

    .qst-values > .e-con-inner > .e-con {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

/* Accreditation logos above the footer: within the site's width, large, close together. */
.elementor-element-292db87.e-con {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1200px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 16px 20px !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 8px !important;
}

.elementor-element-292db87 > .e-con {
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
}

.elementor-element-292db87 .elementor-widget-image,
.elementor-element-292db87 .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-element-292db87 img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
}

/* On phones the same logos become a carousel, swiped or moving by themselves. */
@media (max-width: 767px) {
    .elementor-element-292db87.e-con {
        display: flex !important;
        flex-flow: row nowrap !important;
        gap: 12px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .elementor-element-292db87.e-con::-webkit-scrollbar {
        display: none;
    }

    .elementor-element-292db87.e-con > .e-con {
        flex: 0 0 62% !important;
        width: 62% !important;
        scroll-snap-align: center;
    }
}

/* Clients carousel: runs edge to edge, with each logo at the size it was. */
.qst-logo-strip,
.qst-logo-strip > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
}

.e-con.qst-logo-strip {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.qst-logo-strip .elementor-widget-image-carousel {
    width: 100% !important;
    max-width: 100% !important;
}

.qst-logo-strip .swiper-slide img {
    width: min(190px, 100%) !important;
    max-width: none;
    height: auto !important;
    margin: 0 auto;
}

/* ----------------------------------------------------- e-learning: rearranged */
.qst-el-hidden {
    display: none !important;
}

/* Account buttons in the hero. */
.qst-page-hero .qst-el-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    width: auto !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

.qst-page-hero .qst-el-actions > .e-con {
    flex: 0 0 auto !important;
    width: auto !important;
}

.qst-page-hero .qst-el-actions .elementor-button {
    width: auto;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 2px solid var(--qst-yellow) !important;
    background: transparent !important;
    color: #fff !important;
}

.qst-page-hero .qst-el-actions .elementor-button:hover,
.qst-page-hero .qst-el-actions .elementor-button:focus {
    background: var(--qst-yellow) !important;
    color: var(--qst-darker) !important;
}

/* Categories: one row, edge to edge, held at the top of the screen while scrolling. */
.e-con.qst-el-cats {
    position: sticky !important;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 50;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(31, 52, 80, .12);
}

.qst-el-cats a.elementor-button {
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px !important;
    font-size: 14px !important;
}

.qst-el-cats a.elementor-button::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.qst-el-cats a.elementor-button[href*="health-safety"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%203v6c0%205-3.5%208-8%209-4.5-1-8-4-8-9V6z%22%2F%3E%3Cpath%20d%3D%22M12%209v6M9%2012h6%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%203v6c0%205-3.5%208-8%209-4.5-1-8-4-8-9V6z%22%2F%3E%3Cpath%20d%3D%22M12%209v6M9%2012h6%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-cats a.elementor-button[href*="business-skills"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%208V6a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M3%2013h18%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%208V6a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M3%2013h18%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-cats a.elementor-button[href*="health-social-care"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.8%208.6a5%205%200%200%200-8.8-3%205%205%200%200%200-8.8%203c0%205.4%208.8%2011%208.8%2011s8.8-5.6%208.8-11z%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.8%208.6a5%205%200%200%200-8.8-3%205%205%200%200%200-8.8%203c0%205.4%208.8%2011%208.8%2011s8.8-5.6%208.8-11z%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-cats a.elementor-button[href*="mental-health-welling"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M8.5%2014.5s1.3%202%203.5%202%203.5-2%203.5-2%22%2F%3E%3Cpath%20d%3D%22M9%209.5h.01M15%209.5h.01%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M8.5%2014.5s1.3%202%203.5%202%203.5-2%203.5-2%22%2F%3E%3Cpath%20d%3D%22M9%209.5h.01M15%209.5h.01%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-cats a.elementor-button[href*="hospitality"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203v7a3%203%200%200%200%203%203v8%22%2F%3E%3Cpath%20d%3D%22M10%203v7a3%203%200%200%201-3%203%22%2F%3E%3Cpath%20d%3D%22M7%203v6%22%2F%3E%3Cpath%20d%3D%22M18%2021v-7h-2V7a4%204%200%200%201%202-4z%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203v7a3%203%200%200%200%203%203v8%22%2F%3E%3Cpath%20d%3D%22M10%203v7a3%203%200%200%201-3%203%22%2F%3E%3Cpath%20d%3D%22M7%203v6%22%2F%3E%3Cpath%20d%3D%22M18%2021v-7h-2V7a4%204%200%200%201%202-4z%22%2F%3E%3C%2Fsvg%3E");
}

/* Links to a category stop below the bar, not behind it. */
.qst-el-section[id],
.qst-el-section [id] {
    scroll-margin-top: 90px;
}

html:has(.qst-el-cats) {
    scroll-behavior: smooth;
}

/* Course rows: Purchase Course and Free Trial as icons. */
.qst-el-lists .course-links p:nth-child(even) {
    gap: 6px;
    padding-left: 10px;
}

.qst-el-lists .course-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 6px;
    font-size: 0 !important;
    line-height: 0;
    text-decoration: none;
}

.qst-el-lists .course-links a::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.qst-el-lists .course-links a[href*="purchaseCourse"] {
    background: var(--qst-blue);
    color: #fff !important;
}

.qst-el-lists .course-links a[href*="purchaseCourse"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M2%203h3l2.5%2012h11l2-8H6%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M2%203h3l2.5%2012h11l2-8H6%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-lists .course-links a[href*="freeTrial"] {
    border: 1px solid var(--qst-blue);
    background: #fff;
    color: var(--qst-blue) !important;
}

.qst-el-lists .course-links a[href*="freeTrial"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M10%208.5l5.5%203.5-5.5%203.5z%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M10%208.5l5.5%203.5-5.5%203.5z%22%2F%3E%3C%2Fsvg%3E");
}

.qst-el-lists .course-links a:hover,
.qst-el-lists .course-links a:focus {
    opacity: .85;
}

/* Phones: the bar stays, with icons only. The names remain for screen readers. */
@media (max-width: 767px) {
    .e-con.qst-el-cats {
        gap: 6px !important;
        padding: 6px 10px !important;
    }

    .qst-el-cats a.elementor-button {
        min-height: 44px;
        padding: 6px !important;
    }

    .qst-el-cats a.elementor-button::before {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .qst-el-cats .elementor-button-content-wrapper {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .qst-page-hero .qst-el-actions {
        width: 100% !important;
    }

    .qst-page-hero .qst-el-actions .elementor-button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* Clients carousel: 8 logos, close together. */
.qst-logo-strip .swiper-slide img {
    width: 100% !important;
    max-width: 190px !important;
}

.qst-logo-strip .swiper-slide {
    padding: 0 4px;
    box-sizing: border-box;
}

/* html and body both hiding overflow would stop the category bar from sticking. */
html:has(.qst-el-cats),
html:has(.qst-el-cats) body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* ---------------------------------------------------------- course page, top */
.e-con.qst-course-hero {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    background-color: var(--qst-dark) !important;
    background-image: none !important;
}

.qst-course-hero > .e-con-inner {
    padding-block: 0 !important;
}

.qst-course-hero .elementor-heading-title,
.qst-course-hero .elementor-widget-text-editor,
.qst-course-hero .elementor-widget-text-editor *:not(a),
.qst-course-hero .elementor-icon-box-title,
.qst-course-hero .elementor-icon-box-title *,
.qst-course-hero .elementor-icon-box-description,
.qst-course-hero .htmega-toggle-area,
.qst-course-hero .htmega-toggle-area *:not(a):not(button) {
    color: #fff !important;
}

/* A sub-heading on these pages sets its own grey through custom CSS. */
.qst-course-hero [class*="elementor-widget"] p,
.qst-course-hero [class*="elementor-widget"] li {
    color: #fff;
}

.qst-course-hero .elementor-widget-text-editor a,
.qst-course-hero .elementor-icon-box-description a {
    color: var(--qst-yellow) !important;
}

/* Breadcrumb */
.qst-course-hero .aioseo-breadcrumbs,
.qst-course-hero .aioseo-breadcrumbs * {
    color: #e8edf5 !important;
}

.qst-course-hero .aioseo-breadcrumb:last-child,
.qst-course-hero .aioseo-breadcrumb:last-child * {
    color: var(--qst-yellow) !important;
}

/* Entry requirements box */
.qst-course-hero .elementor-widget-icon-box .elementor-widget-container {
    border-color: rgba(255, 255, 255, .35) !important;
    background: transparent !important;
}

/* Key facts and the side buttons, together on one white card. */
.e-con.qst-course-hero .qst-course-side {
    box-sizing: border-box;
    align-self: flex-start;
    gap: 10px !important;
    padding: 18px !important;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.qst-course-side .qst-mmc-facts {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.qst-course-side .elementor-widget {
    margin-bottom: 0 !important;
}

.qst-course-side .elementor-widget-shortcode .elementor-shortcode:empty {
    display: none;
}

@media (max-width: 767px) {
    .e-con.qst-course-hero {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

/*
 * Course page, desktop: the card runs the full height beside the breadcrumb, title and
 * text. The row that held it stops being a box, so the card and the text join one grid.
 */
@media (min-width: 1025px) {
    .qst-course-hero .e-con:has(> .e-con > .e-con-inner > .qst-course-side),
    .qst-course-hero .e-con:has(> .e-con > .qst-course-side) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
        align-items: start;
    }

    .qst-course-hero .e-con:has(> .e-con > .e-con-inner > .qst-course-side) > .elementor-element,
    .qst-course-hero .e-con:has(> .e-con > .qst-course-side) > .elementor-element {
        grid-column: 1;
        width: 100% !important;
        max-width: 100% !important;
    }

    .qst-course-hero .e-con:has(> .e-con-inner > .qst-course-side),
    .qst-course-hero .e-con-inner:has(> .qst-course-side),
    .qst-course-hero .e-con:has(> .qst-course-side) {
        display: contents !important;
    }

    .qst-course-hero .e-con-inner:has(> .qst-course-side) > .e-con:not(.qst-course-side),
    .qst-course-hero .e-con:has(> .qst-course-side) > .e-con:not(.qst-course-side) {
        grid-column: 1;
        grid-row: 3;
        width: 100% !important;
        max-width: 100% !important;
    }

    .e-con.qst-course-hero .qst-course-side {
        position: static;
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: stretch;
        /* Follows the text beside it, up to a point; never shorter than its own content. */
        max-height: 560px;
        min-height: fit-content !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ------------------------------------------------------- form on two columns */
.e-con:has(.qst-form-group),
.e-con.qst-form-group {
    background-color: var(--qst-tint) !important;
    background-image: none !important;
}

.qst-fg-hidden {
    display: none !important;
}

.qst-fg-left {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.qst-fg-left .elementor-heading-title,
.qst-fg-left.elementor-widget-text-editor,
.qst-fg-left .elementor-widget-text-editor {
    text-align: left !important;
}

/* The form on a white card. */
.qst-form-group .qst-fg-form {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid var(--qst-line);
    border-radius: 10px;
    background: #fff;
}

.qst-fg-form .elementor-field-group {
    margin-bottom: 8px !important;
}

/* Lines between the three groups on the left. */
.qst-form-group .qst-fg-call,
.qst-form-group .qst-fg-booking-first {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #cfd5df;
}

/* Call Us, compact. */
.qst-fg-call,
.qst-fg-call .e-con,
.qst-fg-call .e-con-inner {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.qst-fg-call .e-con {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    gap: 6px !important;
    box-shadow: none !important;
}

.qst-fg-call .elementor-widget-lottie {
    width: 44px !important;
    margin: 0 !important;
}

.qst-fg-call .elementor-widget {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.qst-fg-call .elementor-button,
.qst-fg-booking .eael-creative-button {
    width: auto !important;
}

.qst-fg-call .elementor-widget-text-editor p {
    margin: 0 !important;
}

/* Booking & Availability was on a dark photo, so its widgets carry white text. */
.qst-form-group .qst-fg-booking .elementor-heading-title {
    color: var(--qst-blue) !important;
}

.qst-form-group .qst-fg-booking.elementor-widget-text-editor,
.qst-form-group .qst-fg-booking.elementor-widget-text-editor *:not(a) {
    color: var(--qst-ink) !important;
}

.qst-form-group .qst-fg-booking.elementor-widget-text-editor a {
    color: var(--qst-blue) !important;
}

.qst-form-group .qst-fg-booking.elementor-widget-text-editor p {
    margin: 8px 0 0 !important;
}

.qst-fg-booking.elementor-widget-icon .elementor-icon-wrapper {
    text-align: left !important;
}

.qst-fg-booking.elementor-widget-icon {
    margin-bottom: 4px !important;
}

.qst-form-group .qst-fg-call .elementor-heading-title,
.qst-form-group .qst-fg-booking .elementor-heading-title {
    margin: 0 0 6px !important;
    font-size: 1.35rem !important;
}

.qst-fg-booking .eael-creative-button {
    margin: 6px 0 0 !important;
}

/* The dates, on their own above the group. */
.e-con.qst-dates-band {
    background-color: #fff !important;
}

.qst-mmc .qst-mmc-dates-title {
    margin: 0 0 14px;
    color: var(--qst-blue);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.qst-dates-band .qst-mmc-date-filters {
    border: 1px solid var(--qst-line);
}

.qst-dates-band .qst-mmc-course {
    margin: 0;
}

/* Nothing to list: the section closes up, but #booking still has somewhere to go. */
.e-con.qst-dates-band:not(:has(.qst-mmc-row, .qst-mmc-card, .course-list-table)) {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    --min-height: 0px !important;
    min-height: 0 !important;
    height: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
}

@media (min-width: 1025px) {
    .qst-form-group.e-con-full,
    .qst-form-group > .e-con-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        grid-template-rows: repeat(11, auto) 1fr;
        column-gap: 48px;
        row-gap: 0 !important;
        align-items: start !important;
        align-content: start;
    }

    .qst-form-group .qst-fg-left {
        grid-column: 1;
    }

    .qst-form-group .qst-fg-form {
        grid-column: 2;
        grid-row: 1 / -1;
    }
}

/* One column: left side first, the form last. */
@media (max-width: 1024px) {
    .qst-form-group.e-con-full,
    .qst-form-group > .e-con-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .qst-form-group .qst-fg-form {
        --order: 99 !important;
        order: 99 !important;
        margin-top: 18px !important;
    }
}

/* Availability & Pricing sits on the left, like everything else in its column. */
.qst-fg-booking.elementor-widget-eael-creative-button .elementor-widget-container,
.qst-fg-booking .eael-creative-button-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Desktop: the form card matches the height of the left column, its fields spread evenly. */
@media (min-width: 1025px) {
    .qst-form-group .qst-fg-form {
        display: flex !important;
        align-self: stretch !important;
        height: 100%;
    }

    .qst-fg-form > .elementor-widget-container,
    .qst-fg-form form.elementor-form {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        width: 100%;
    }

    .qst-fg-form .elementor-form-fields-wrapper {
        flex: 1 1 auto;
        align-content: space-between;
    }
}

/* The button in the Get Started Today band. */
.qst-band-yellow .qst-band-button {
    margin-top: 8px;
    text-align: center;
}

.qst-band-yellow .qst-band-button .elementor-button {
    padding: 14px 30px;
    border-radius: 8px;
    background: #1e3350;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.qst-band-yellow .qst-band-button .elementor-button:hover,
.qst-band-yellow .qst-band-button .elementor-button:focus-visible {
    background: #0f2036;
    color: #fff;
}


/* The Contact page is itself where this band's button leads. */
.page-id-75547 .qst-band-yellow {
    display: none !important;
}

@media (min-width: 1025px) {
    .e-con.qst-course-hero .qst-course-side.qst-side-held {
        align-self: start;
        height: var(--qst-side-height) !important;
    }
}

@media (min-width: 1025px) {
    /* Same space between the columns, whatever the section's own gap setting. */
    .qst-form-group.e-con-full,
    .qst-form-group > .e-con-inner {
        column-gap: 20px !important;
    }

    /* NPORS forms list their course codes: two columns. Spare height goes below Call Us, so the Booking block ends level with the form. */
    .qst-fg-form .elementor-field-type-checkbox .elementor-field-subgroup {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .qst-form-group.e-con-full:has(.elementor-field-type-checkbox),
    .qst-form-group:has(.elementor-field-type-checkbox) > .e-con-inner {
        grid-template-rows: auto auto 1fr repeat(4, auto);
    }

    .qst-form-group:has(.elementor-field-type-checkbox) .qst-fg-form {
        grid-row: 1 / 8;
    }
}

/* "Other Courses" on the homepage: one wide card across the three columns on desktop,
   image left half, text right half. Tablet and mobile keep the normal stacked card. */
@media (min-width: 1025px) {
    .qst-card-grid .elementor-widget.qst-card-wide {
        --container-widget-width: calc(96.5% + 20px) !important;
        width: calc(96.5% + 20px) !important;
        max-width: calc(96.5% + 20px) !important;
    }

    .qst-card-grid .qst-card-wide .elementor-cta {
        flex-direction: row;
    }

    .qst-card-grid .qst-card-wide .elementor-cta__bg-wrapper {
        flex: 0 0 50%;
        width: 50%;
        min-height: 280px;
    }

    .qst-card-grid .qst-card-wide .elementor-cta__content {
        flex: 1 1 50%;
        justify-content: center;
    }
}

/* Menu items that only open a dropdown (e.g. "Training Courses") have no link,
   so the browser showed an arrow. Show the hand like the other items. */
.e-n-menu-title,
.e-n-menu-title-container,
.e-n-menu-dropdown-icon {
    cursor: pointer;
}

/* ------------------------------------------- footer columns: tidy layout */
/* Three columns on one grid, headings on the same line, even spacing. */
.qst-foot-cols > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px !important;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 8px;
}

.qst-foot-cols > .e-con-inner > .e-con {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.qst-foot-cols .e-con > .e-con-inner {
    padding: 0 !important;
    max-width: none !important;
}

/* Brand column: logo, two compact buttons, LinkedIn. */
.qst-foot-brand > .e-con-inner {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.qst-foot-brand .elementor-widget {
    width: 100%;
    max-width: 280px;
    margin: 0 !important;
}

.qst-foot-brand .elementor-widget-image {
    margin-bottom: 8px !important;
}

.qst-foot-brand .elementor-widget-image img {
    width: 230px !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

.qst-foot-brand .elementor-widget-image .elementor-widget-container {
    text-align: left !important;
}

.qst-foot-brand .elementor-button {
    width: 100%;
    padding: 11px 18px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    justify-content: center;
}

.qst-foot-brand .elementor-widget-social-icons {
    margin-top: 6px !important;
}

/* Link columns: heading with a short accent rule, links in an even list. */
.qst-foot-links > .e-con-inner {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.qst-foot-links .elementor-widget {
    margin: 0 !important;
    width: auto !important;
}

.qst-foot-links .elementor-widget-heading h3.elementor-heading-title {
    font-size: 15px !important;
    letter-spacing: 3px !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
    padding-bottom: 12px;
    position: relative;
}

.qst-foot-links .elementor-widget-heading h3.elementor-heading-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #FBBB1F;
}

.qst-foot-links .elementor-widget-heading h4.elementor-heading-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.qst-foot-links h4.elementor-heading-title a {
    color: #c9d3e1 !important;
    text-decoration: none;
    transition: color .15s;
}

.qst-foot-links h4.elementor-heading-title a:hover,
.qst-foot-links h4.elementor-heading-title a:focus {
    color: #FBBB1F !important;
}

.qst-foot-empty {
    display: none !important;
}

/* Tablet: brand on top across the width, the two link lists side by side. */
@media (max-width: 1024px) {
    .qst-foot-cols > .e-con-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px !important;
    }

    .qst-foot-cols > .e-con-inner > .qst-foot-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile: brand centred, link lists still two columns. */
@media (max-width: 767px) {
    .qst-foot-cols > .e-con-inner {
        gap: 32px 20px !important;
        padding-top: 8px;
    }

    /* Brand column stays left-aligned on mobile, like the link lists. */
    .qst-foot-brand > .e-con-inner {
        align-items: flex-start !important;
    }

    .qst-foot-brand .elementor-widget-image,
    .qst-foot-brand .elementor-widget-image .elementor-widget-container {
        align-self: flex-start !important;
        text-align: left !important;
    }

    .qst-foot-brand .elementor-widget-image img {
        margin: 0 !important;
    }

    .qst-foot-links .elementor-widget-heading h3.elementor-heading-title {
        font-size: 13px !important;
        letter-spacing: 2px !important;
    }
}

/* Footer contact list under the logo: phone, email, LinkedIn with matching round icons. */
.qst-foot-brand .qst-foot-contact {
    max-width: none;
}

.qst-foot-contact .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}

.qst-foot-contact .elementor-icon-list-item {
    margin: 0 !important;
    padding: 0 !important;
}

.qst-foot-contact .elementor-icon-list-item > a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.qst-foot-contact .elementor-icon-list-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    background: #FBBB1F;
    transition: background .15s;
}

.qst-foot-contact .elementor-icon-list-icon svg {
    width: 15px !important;
    height: 15px !important;
    fill: #172840 !important;
}

.qst-foot-contact .elementor-icon-list-icon i {
    font-size: 15px !important;
    color: #172840 !important;
}

.qst-foot-contact .elementor-icon-list-text {
    padding: 0 !important;
    font-size: 15px;
    color: #e8edf5 !important;
    transition: color .15s;
    word-break: break-word;
}

.qst-foot-contact a:hover .elementor-icon-list-text,
.qst-foot-contact a:focus .elementor-icon-list-text {
    color: #FBBB1F !important;
}

.qst-foot-contact a:hover .elementor-icon-list-icon {
    background: #fff;
}

.qst-foot-brand .elementor-widget-image {
    margin-bottom: 12px !important;
}

@media (max-width: 767px) {
    .qst-foot-brand .qst-foot-contact {
        width: auto !important;
    }
}

/* Top band (phone, Email Us, hours): elza-text draws its glyphs about 2px above
   the middle of the line box, so the icons looked low. Lift them to the text. */
.elementor-element-bdc7172 .elementor-icon-list-item {
    --icon-vertical-offset: -2px !important;
}

.elementor-element-bdc7172 .elementor-icon-list-icon {
    position: relative;
    top: -2px !important;
}

/* ---------------------------------------------- icons centred on their text */
/* elza-text draws its glyphs about 2px above the middle of the line box, so icons
   centred on the box looked low next to the words. Measured across all pages. */

/* Elementor buttons with an icon (phone, email, contact). */
.elementor-button .elementor-button-icon {
    transform: translateY(-2px);
}

/* FAQ accordions: the star next to each question. */
.e-n-accordion-item-title-icon {
    transform: translateY(-2px);
}

/* Footer contact list: the round yellow icons. */
.qst-foot-contact .elementor-icon-list-icon {
    transform: translateY(-2px);
}

/* Essential Addons buttons ("Make Booking Enquiry", calendar): these icons sat high. */
.eael-creative-button .eael-creative-button-icon-left,
.eael-creative-button .eael-creative-button-icon-right {
    transform: translateY(1px);
}
