/*
Theme Name: Select Mesa
Theme URI: https://levldheights.co.uk/
Description: Child theme for Divi used by Select Mesa.
Author: PDDG
Author URI: https://pddesign.com/
Template: Divi
Version: 1.0.0
Text Domain: selectmesa
*/

/* Globals */
:root {
    --sm-blue: #2A6EBB;
    --sm-dark: #303030;
    --sm-mid: #666666;
    --sm-light: #F5F7FA;
    --sm-border: #E7E7EA;
}

/* Utilities */
.flex-align-center {
    display: flex;
    align-items: center;
}

.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    border: 0; 
}

/* ===========================================
   Responsive Embeds (iframes, videos, maps)
   =========================================== */

/* Wrapper: makes any embed keep a fixed aspect ratio and scale fluidly */
.sm-responsive-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000; /* optional: improves appearance for letterboxed video */
}

/* Default: 16:9 (YouTube, Vimeo, most video) */
.sm-responsive-embed--16x9 {
    padding-top: 56.25%; /* 9 / 16 * 100 */
}

/* 4:3 option (older embeds, some slide decks, etc.) */
.sm-responsive-embed--4x3 {
    padding-top: 75%; /* 3 / 4 * 100 */
}

/* Square option */
.sm-responsive-embed--1x1 {
    padding-top: 100%;
}

/* Ultra-wide option (21:9, cinematic) */
.sm-responsive-embed--21x9 {
    padding-top: 42.857%; /* 9 / 21 * 100 */
}

/* Make the actual iframe/embed fill the wrapper */
.sm-responsive-embed iframe,
.sm-responsive-embed embed,
.sm-responsive-embed object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Safety net for any bare iframes in content */
.entry-content iframe,
.et_pb_text iframe {
    max-width: 100%;
}

@media (max-width: 980px) {
    .flex-align-center {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-order {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-order-1 {
        order: 1;
    }

    .sc-row.mobile-order .mobile-order-1 { 
        margin-bottom: 20px!important;
    }

    .mobile-order-2 {
        order: 2;
    }
}

.workforce-special-row .et_pb_row {
    width: 90%!important;
}

.workforce-special-row .et_pb_row_inner{
    margin: 0!important;
}

.workforce-special-row > .et_pb_row > .et_pb_column:first-child {
    width: 70%!important;
    margin-right: 5%!important;
}

.workforce-special-row > .et_pb_row > .et_pb_column:last-child {
    width: 25%!important;
}
@media (max-width: 980px) {
    .workforce-special-row .et_pb_row {
        width: 90%!important;
        margin: inherit auto!important;
    }

    .workforce-special-row > .et_pb_row > .et_pb_column:first-child,
    .workforce-special-row > .et_pb_row > .et_pb_column:last-child {
        width: 100%!important;
        margin-right: 0!important;
    }

    .workforce-special-row .et_pb_row .et_pb_column .et_pb_image {
        max-width: 300px!important;
        height: auto;
    }
}


.entry-content ul > li > ul {
    list-style-type: circle!important;
}

/* Lower Accordion */
.page-lower-accordion .et_pb_accordion_item {
    background-color: #2a6ebb;
    padding: 30px !important;

}

.page-lower-accordion .et_pb_toggle_title {
    color: #fff !important;
    font-size: 22px !important;
    line-height: 28px !important;
}

.page-lower-accordion .et_pb_toggle_title:before {
    font-size: 56px;
    right: -20px;
    color: #FFFFFF;
    font-family: ETmodules !important;
    font-weight: 400 !important;
    content: "\4c" !important;
}

.page-lower-accordion .et_pb_toggle_content, .page-lower-accordion .et_pb_toggle_content a {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 26px !important;
}

.page-lower-accordion .et_pb_toggle_content a {
    text-decoration: underline !important;
}

/* Accordion List Item Spacing */
.page-lower-accordion .et_pb_toggle_content ul li {
    margin-bottom: 24px;
}


/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
/*
Figtree weights:
Light 300
Regular 400
Medium 500
SemiBold 600
Bold 700
ExtraBold 800
Black 900
*/

body {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
}

/* Global typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--sm-dark);
    letter-spacing: -.75px;
}

h1 {
    font-size: 90px!important;
    line-height: 75px!important;
}

h2 {
    font-size: 40px!important;
    line-height: 46px!important;
}

h3 {
    font-size: 28px!important;
    line-height: 32px!important;
}

h4 {
    font-size: 22px!important;
    line-height: 28px!important;
}

h5 {
    font-size: 18px!important;
    line-height: 26px!important;
}

@media (max-width: 980px) {
    h1 {
        font-size: 48px!important;
        line-height: 52px!important;
    }

    h2 {
        font-size: 32px!important;
        line-height: 36px!important;
    }

    h3 {
        font-size: 24px!important;
        line-height: 28px!important;
    }
    
}
/* Text utility classes */
.sm-lead-paragraph {
    font-size: 24px;
    line-height: 34px;
    font-weight: 400;
    color: var(--sm-dark);
}

.sm-body-copy {
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: var(--sm-dark);
}

.sm-body-copy-sm {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--sm-dark);
}


/* Buttons */
.sm-btn-wrap {
    text-align: left;
}

/* Full-width button modifier */
.sm-btn-wrap--full {
    text-align: left;
}

.sm-btn-wrap--full .sm-btn {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* ===========================================
   Accordion shortcode ([sm_accordion])
   =========================================== */

.sm-accordion {
    --sm-acc-bg: var(--sm-blue);
    --sm-acc-fg: #fff;
    --sm-acc-border: var(--sm-blue);
    --sm-acc-icon-bg: #fff;
    --sm-acc-icon-fg: var(--sm-blue);

    width: 100%;
    font-size: 16px;
}

.sm-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    font-family: inherit;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;

    background: var(--sm-acc-bg);
    color: var(--sm-acc-fg);
    border: 2px solid var(--sm-acc-border);
    border-radius: 0;
    padding: 26px 30px;

    cursor: pointer;
    text-align: left;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.sm-accordion__toggle:hover,
.sm-accordion__toggle:focus-visible {
    --sm-acc-bg: #fff;
    --sm-acc-fg: var(--sm-blue);
    --sm-acc-icon-bg: var(--sm-blue);
    --sm-acc-icon-fg: #fff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.sm-accordion.is-open .sm-accordion__toggle {
    /* Open state */
    --sm-acc-bg: #fff;
    --sm-acc-fg: var(--sm-blue);
    --sm-acc-icon-bg: var(--sm-blue);
    --sm-acc-icon-fg: #fff;
}

.sm-accordion__title {
    display: block;
}

.sm-accordion__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-accordion__icon-svg {
    width: 38px;
    height: 38px;
    display: block;
    transition: transform .25s ease;
}

.sm-accordion.is-open .sm-accordion__icon-svg {
    transform: rotate(180deg);
}

.sm-accordion__panel {
    overflow: hidden;
    height: 0;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid var(--sm-border);
    border-top: none;
    background: #fff;
}

/* Open/close height is fully controlled via JS (themes/selectmesa/assets/js/accordion.js). */

.sm-accordion__panel-inner {
    padding: 26px 30px 30px;
    color: var(--sm-dark);
}

.sm-accordion__panel-inner a {
    color: var(--sm-blue);
    text-decoration: underline;
    font-weight: 700;
}

.sm-accordion__panel-inner a:hover,
.sm-accordion__panel-inner a:focus {
    text-decoration: none;
}

.sm-accordion__panel-inner p {
    margin: 1em 0;
}
@media (max-width: 980px) {
    .sm-accordion__toggle {
        font-size: 22px;
        padding: 20px 20px;
    }

    .sm-accordion__panel-inner {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-accordion__toggle,
    .sm-accordion__icon-svg,
    .sm-accordion__panel {
        transition: none !important;
    }
}

.sm-btn-wrap--center {
    text-align: center;
}

.sm-btn-wrap--right {
    text-align: right;
}

.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid transparent;
    padding: 14px 32px;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.sm-btn__label {
    position: relative;
    z-index: 1;
}

.sm-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-btn__icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Primary pill */
.sm-btn--primary {
    background: var(--sm-blue);
    color: #fff;
}

.sm-btn--primary:hover,
.sm-btn--primary:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
}

/* Primary pill (small) */
.sm-btn--primary-small {
    background: var(--sm-blue);
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
}

.sm-btn--primary-small:hover,
.sm-btn--primary-small:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
}

/* Text to pill on hover */
.sm-btn--text-pill {
    background: #fff;
    color: var(--sm-blue);
    border-color: #fff;
    padding: 0;
}

/* If text-pill has an icon, apply padding to the anchor so icon is inside pill area */
.sm-btn--text-pill.sm-btn--has-icon {
    padding: 10px 24px;
}

.sm-btn--text-pill.sm-btn--has-icon .sm-btn__label {
    padding: 0;
}

.sm-btn--text-pill .sm-btn__label {
    padding: 10px 24px;
}

.sm-btn--text-pill:hover,
.sm-btn--text-pill:focus-visible {
    background: none;
    color: #fff;
    /* border-color: var(--sm-blue); */
    transform: translateY(-1px);
}

/* Rectangle CTA */
.sm-btn--rect {
    border-radius: 0;
    padding: 26px 28px;
    background: var(--sm-blue);
    color: #fff;
    justify-content: center;
    min-width: 260px;

    /* Per comp: larger label + icon */
    font-size: 22px;
}

.sm-btn--rect .sm-btn__icon svg {
    width: 38px;
    height: 38px;
}

/* When a rect button has an icon, space label and icon apart */
.sm-btn--rect.sm-btn--has-icon {
    justify-content: space-between;
}

.sm-btn--rect:hover,
.sm-btn--rect:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
}

/* Cross-sell CTA */
.sm-btn--cross {
    border-radius: 0;
    padding: 28px;
    background: #f6f6f6;
    color: var(--sm-blue);
    border-color: transparent;
    justify-content: center;
    min-width: 260px;
    font-size: 18px;
}

/* When a cross button has an icon, space label and icon apart */
.sm-btn--cross.sm-btn--has-icon {
    justify-content: space-between;
}

.sm-btn--cross:hover,
.sm-btn--cross:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
}

/* Ensure inline SVG icons in cross-sell CTAs follow the button color */
.sm-btn--cross .sm-btn__icon svg {
    width: 26px;
    height: 26px;
    display: block;
    color: var(--sm-blue);
    fill: currentColor;
}

/* Visually hidden (for a11y) */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   Header v2 (Custom Shortcode + Theme Builder)
   =========================================== */

:root {
    --sm-max: 1320px;
    --sm-pad: 24px;
    --sm-gap: 32px;
    --sm-search-h: 152px;
    --sm-z: 4000;
}

/* Keep .sm-header for header-specific overrides if needed */
.sm-header {}

/* Container that matches site width */
.sm-container {
    max-width: var(--sm-max);
    margin: 0 auto;
    padding: 0 var(--sm-pad);
    box-sizing: border-box;
}

/* Utility bar */
.sm-utility-bar {
    background: #f2f2f4;
    font-size: 14px;
    color: var(--sm-mid);
}

.sm-utility-bar .sm-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 57px;
}

.sm-utility-menu {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    gap: 22px;
    align-items: center;
}

.sm-utility-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-utility-menu a {
    color: var(--sm-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

/* Animated underline + color change on hover (match main menu behavior) */
.sm-utility-menu > li:not(.bt-utilitybar-contact) > a {
    position: relative;
    transition: color .2s ease;
}

.sm-utility-menu > li:not(.bt-utilitybar-contact) > a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--sm-blue);
    transition: width .2s ease;
}

.sm-utility-menu > li:not(.bt-utilitybar-contact) > a:hover,
.sm-utility-menu > li:not(.bt-utilitybar-contact) > a:focus {
    color: var(--sm-blue);
}

.sm-utility-menu > li:not(.bt-utilitybar-contact) > a:hover::before,
.sm-utility-menu > li:not(.bt-utilitybar-contact) > a:focus::before {
    width: 100%;
}

.sm-utility-menu .bt-utilitybar-contact>a {
    background: var(--sm-blue);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* Match primary button hover: blue → white with blue border and lift */
.sm-utility-menu .bt-utilitybar-contact>a:hover,
.sm-utility-menu .bt-utilitybar-contact>a:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
    text-decoration: none;
}


/* Main bar */
.sm-main-bar {
    background: #fff;
    border-bottom: 1px solid var(--sm-border);
    position: relative;
    z-index: var(--sm-z);
}

.sm-main-bar__inner {
    display: flex;
    align-items: center;
    gap: var(--sm-gap);
    min-height: 162px;
}

.sm-logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* Desktop nav */

.sm-nav-wrapper {
    display: flex;
    align-items: center;
    gap: var(--sm-gap);
    flex: 1 1 auto;
}

.sm-nav--desktop {
    flex: 1 1 auto;
}

.sm-main-menu {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    gap: 36px;
    align-items: center;
}

.sm-main-menu>li {
    position: relative;
    list-style: none;
}

.sm-main-menu>li>a {
    color: var(--sm-dark);
    text-decoration: none;
    display: inline-block;
    padding: 10px 0;
    line-height: 1;
    font-size: 16px;
}

.sm-main-menu>li:hover>a,
.sm-main-menu>li:focus-within>a {
    color: var(--sm-blue);
}

/* Dropdowns (mega-like) */
.sm-main-menu>li>.sub-menu {
    position: absolute;
    left: 0;
    top: 95%;
    display: none;
    background: #fff;
    box-shadow: 4px 4px 3px 0px rgba(0, 0, 0, 0.38);
    padding: 28px;
    min-width: 660px;
}

.sm-main-menu>li:hover>.sub-menu,
.sm-main-menu>li:focus-within>.sub-menu {
    display: block;
}

.sm-main-menu>li>.sub-menu {
    list-style: none;
    margin: 0;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    column-gap: 60px;
    row-gap: 12px;
}

.sm-main-menu>li>.sub-menu>li>a {
    color: var(--sm-dark);
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.sm-main-menu>li>.sub-menu>li>a:hover,
.sm-main-menu>li>.sub-menu>li>a:focus {
    color: var(--sm-blue);
}

/* Show third-level items in dropdowns and style heading/children */
.sm-main-menu>li>.sub-menu {
    font-size: 16px;
}

.sm-main-menu>li>.sub-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Spacing after each second-level group */
.sm-main-menu>li>.sub-menu>li {
    margin: 0 0 24px 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    column-break-inside: avoid;
}

/* Second level (group heading) */
.sm-main-menu>li>.sub-menu>li>a {
    font-weight: 700;
    padding: 4px 0;
}

/* Third level (children) */
.sm-main-menu>li>.sub-menu>li>.sub-menu {
    display: block;
    margin-top: 8px;
}

.sm-main-menu>li>.sub-menu>li>.sub-menu a {
    font-weight: 400;
    padding: 4px 0;
    display: block;
}

/* Link colors for any depth inside dropdown */
.sm-main-menu>li>.sub-menu a {
    color: var(--sm-dark);
    text-decoration: none;
}

.sm-main-menu>li>.sub-menu a:hover,
.sm-main-menu>li>.sub-menu a:focus {
    color: var(--sm-blue);
}

/* Use 2-column top-to-bottom flow for dropdowns */
.sm-main-menu>li>.sub-menu {
    column-count: 2;
    column-gap: 60px;
}

.sm-main-menu li.menu-item-has-children>a {
    position: relative;
    padding-right: 18px;
}

.sm-main-menu li.menu-item-has-children>a:after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    opacity: .7;
}

/* Actions */
.sm-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sm-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--sm-dark);
    width: 20px;
    height: 20px;
}

.sm-icon-btn:hover {
    color: var(--sm-blue);
}

.sm-mobile-only {
    display: none;
}

/* Simple CSS icons */
.sm-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

.sm-icon--search {
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.sm-icon--search:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background: currentColor;
    right: -4px;
    bottom: 3px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.sm-icon--close:before,
.sm-icon--close:after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 10px;
    height: 2px;
    background: currentColor;
}

.sm-icon--close:before {
    transform: rotate(45deg);
}

.sm-icon--close:after {
    transform: rotate(-45deg);
}

/* Search band */
.sm-search {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--sm-blue);
    color: #fff;
    overflow: hidden;
    height: 0;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
}

.sm-search.is-open {
    height: var(--sm-search-h);
}

.sm-search__inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.sm-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1 1 auto;
}

.sm-search-input {
    flex: 1 1 auto;
    width: 100%;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(255, 255, 255, .65);
    padding: 10px 16px;
    color: #fff;
    font-size: clamp(18px, 3.5vw, 36px);
    line-height: 1.2;
    outline: none;
}

.sm-search-input::placeholder {
    color: rgba(255, 255, 255, .9);
}

.sm-search-submit {
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
}

/* Mobile overlay */
.sm-mobile {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: calc(var(--sm-z) + 1);
    transform: translateX(100%);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.sm-mobile.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.sm-mobile__bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px var(--sm-pad);
    border-bottom: 1px solid var(--sm-border);
}

.sm-mobile__inner {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px var(--sm-pad) 24px;
}

.sm-mobile-nav {}

.sm-mobile-menu {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.sm-mobile-menu>li {
    position: relative;
    border-bottom: 1px solid var(--sm-border);
}

.sm-mobile-menu a {
    display: block;
    color: var(--sm-dark);
    text-decoration: none;
    padding: 16px 42px 16px 4px;
}

.sm-caret {
    position: absolute;
    right: 2px;
    top: 8px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 0;
    color: var(--sm-dark);
    opacity: .8;
}

.sm-caret:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 11px;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.sm-mobile-menu li.is-open>.sm-caret:after {
    transform: rotate(135deg);
}

.sm-mobile-menu li>.sub-menu {
    display: none;
    list-style: none;
    padding: 0 0 12px 12px;
}

.sm-mobile-menu li.is-open>.sub-menu {
    display: block;
}

/* Desktop nav layout sizing to match design */
@media (min-width: 981px) {
    .sm-nav-wrapper {
        margin-left: auto;
        /* prevent flex-grow from exceeding design width */
        flex: 0 0 auto;
        width: clamp(680px, 65vw, 895px);
        max-width: 895px;
        gap: clamp(16px, 2vw, 24px);
        display: flex;
        align-items: center;
    }

    .sm-main-menu {
        gap: clamp(14px, 2.2vw, 28px);
    }

    .sm-main-menu>li>a {
        font-size: clamp(14px, 1.05vw, 16px);
        line-height: 1.25;
    }

    /* Blue underline under the hovered/focused top-level label sized to last line */
    .sm-main-menu>li>a {
        position: relative;
    }

    .sm-main-menu>li>a::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        /* places line just below the text */
        height: 3px;
        width: 0;
        background: var(--sm-blue);
        transition: width .2s ease;
        z-index: 9999999;
    }

    .sm-main-menu>li:hover>a::before,
    .sm-main-menu>li:focus-within>a::before {
        width: var(--sm-ul-w, 100%);
    }

    /* Remove desktop caret indicator from main menu parents */
    .sm-main-menu li.menu-item-has-children>a {
        padding-right: 0;
        /* caret space not needed on desktop */
    }

    .sm-main-menu li.menu-item-has-children>a:after {
        content: none;
        /* hide caret */
    }

    /* Ensure right-most dropdowns don't overflow off the viewport.
       Align submenus for the last three top-level items to the right edge
       of their parent menu item. Adjust the +3 if your menu gets much
       shorter/longer. */
    .sm-main-menu > li:nth-last-child(-n + 3) > .sub-menu {
        left: auto;
        right: 0;
    }
}

/* Hide desktop nav on small screens */
@media (max-width: 980px) {
    .sm-nav--desktop {
        display: none;
    }

    .sm-mobile-only {
        display: inline-block;
    }

    #sm-search {
        display: none !important;
    }

    #sm-search-toggle {
        display: none !important;
    }

    .sm-utility-bar {
        display: none;
    }

    .sm-main-bar__inner {
        min-height: 60px;
        gap: 16px;
        padding: 19px var(--sm-pad) 14px;
    }

    .sm-logo img {
        height: 55px;
    }

    .sm-nav-wrapper {
        justify-content: flex-end;
    }

    /* Hit area */
    #sm-mobile-toggle.sm-icon-btn,
    .sm-mobile-only {
        width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Icon color and geometry */
    #sm-mobile-toggle {
        color: var(--sm-blue);
    }

    #sm-mobile-toggle .sm-icon {
        width: 36px;
    }

    #sm-mobile-toggle .sm-icon--hamburger:before,
    #sm-mobile-toggle .sm-icon--hamburger:after {
        left: 0;
        right: 0;
        height: 4px;
        background: currentColor;
        border-radius: 0;
    }

    /* Top + middle via box-shadow; bottom as :after */
    #sm-mobile-toggle .sm-icon--hamburger:before {
        top: 0;
        box-shadow: 0 9px 0 currentColor;
    }

    #sm-mobile-toggle .sm-icon--hamburger:after {
        top: 18px;
        display: block;
    }

    /* Open-state: overlay z-index above header */
    .sm-mobile {
        z-index: 99999;
    }

    /* Sticky top bar with 28x28 close icon from asset */
    .sm-mobile__bar {
        position: sticky;
        top: 0;
        background: #fff;
        border-bottom: 1px solid var(--sm-border);
        padding: 34px var(--sm-pad) 24px;
        z-index: 1;
    }

    #sm-mobile-close {
        width: 28px;
        height: 28px;
    }

    #sm-mobile-close .sm-icon {
        width: 28px;
        height: 28px;
        background: url('assets/images/menu-mobile-close.svg') center/contain no-repeat;
    }

    #sm-mobile-close .sm-icon--close:before,
    #sm-mobile-close .sm-icon--close:after {
        display: none;
    }

    .sm-mobile__inner {
        padding: 0;
    }

    /* Main items: 22px */
    .sm-mobile-menu>li>a {
        font-size: 22px;
        padding: 24px 48px 22px 20px;
    }

    /* Carets using asset; rotate when open */
    .sm-caret {
        top: 12px !important;
        right: 28px;
        width: 16px;
        height: 44px;
    }

    .sm-caret:after {
        content: none !important;
    }

    .sm-caret::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('assets/images/menu-mobile-caret.svg') center/18px 18px no-repeat;
        transition: transform .2s ease;
    }

    .sm-mobile-menu li.is-open>.sm-caret::before {
        transform: rotate(180deg);
    }

    /* Mobile inline search bar */
    .sm-mobile__search-row {
        padding: 12px 20px;
        background: #fff;
        border-bottom: 1px solid var(--sm-border);
    }

    .sm-mobile-search {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sm-mobile-search__btn {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        color: var(--sm-blue);
    }

    .sm-mobile-search__input {
        flex: 1 1 auto;
        font-size: 18px;
        line-height: 1.3;
        color: var(--sm-blue);
        border: 0;
        outline: 0;
        background: transparent;
        padding: 8px 0;
    }

    /* Utility menu in column with background */
    .sm-mobile-utility {
        background: #F6F5F4;
        padding: 30px 20px 100px;
    }

    .sm-utility-menu--mobile {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sm-utility-menu--mobile>li {
        margin: 0 0 18px 0;
        border: 0;
    }

    .sm-utility-menu--mobile>li>a {
        display: block;
        font-size: 18px;
        padding: 8px 0;
        color: var(--sm-dark);
        text-decoration: none;
    }

    .sm-utility-menu--mobile .bt-utilitybar-contact {
        margin-top: 34px;
    }

    .sm-utility-menu--mobile .bt-utilitybar-contact>a {
        background: var(--sm-blue);
        color: #fff;
        padding: 12px 22px;
        border-radius: 999px;
        display: inline-block;
    }

    /* Prevent duplicate carets on anchors */
    .sm-mobile-menu li.menu-item-has-children>a:after {
        content: none !important;
    }

    /* List reset and spacing cleanup */
    .sm-mobile-menu,
    .sm-mobile-menu ul,
    .sm-mobile-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Dropdowns: background and typography */
    .sm-mobile-menu li>.sub-menu {
        background: #F6F5F4;
        padding: 26px 20px;
    }

    .sm-mobile-menu>li>.sub-menu>li {
        margin: 0 0 24px 0;
    }

    .sm-mobile-menu>li>.sub-menu>li>a {
        font-size: 18px;
        font-weight: 700;
        padding: 0;
        line-height: 34px;
    }

    .sm-mobile-menu>li>.sub-menu>li>.sub-menu {
        display: block;
        margin: 0;
        padding: 0;
    }

    .sm-mobile-menu>li>.sub-menu>li>.sub-menu a {
        font-size: 18px;
        font-weight: 400;
        padding: 0;
        line-height: 34px;

    }
}

/*===========================================
   Footer (Theme Builder)
   =========================================== */
   .sm-footer a {
        color: #fff;
        text-decoration: none;
   }

   /* Animated white underline on hover for specific footer text modules */
   #sm-footer .underline-hover a {
        position: relative;
        text-decoration: none;
   }

   #sm-footer .underline-hover a::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        height: 2px;
        width: 0;
        background: #fff;
        transition: width .2s ease;
   }

   #sm-footer .underline-hover a:hover,
   #sm-footer .underline-hover a:focus {
        color: #fff;
   }

   #sm-footer .underline-hover a:hover::before,
   #sm-footer .underline-hover a:focus::before {
        width: 100%;
   }

/* ===========================================
   Breadcrumbs ([sm_breadcrumbs])
   =========================================== */

.sm-breadcrumbs {
    font-size: 14px;
    line-height: 1.4;
    color: var(--sm-dark);
}

.sm-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none !important; /* prevent numeric ordering from <ol> */
}

.sm-breadcrumbs__item {
    margin: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .sm-breadcrumbs {
        font-size: 14px;
    }
}

.sm-breadcrumbs__link {
    color: var(--sm-blue);
    text-decoration: none;
}

.sm-breadcrumbs__link:hover,
.sm-breadcrumbs__link:focus {
    text-decoration: underline;
}

.sm-breadcrumbs__separator {
    color: var(--sm-mid);
}

.sm-breadcrumbs__item--current,
.sm-breadcrumbs__label {
    color: var(--sm-dark);
}

@media (max-width: 768px) {
    .sm-breadcrumbs {
        font-size: 14px;
    }
}

/* card rows */
.sm-card-row {
    /* display: flex; */ 
}

.sm-card-row .et_pb_blurb {
    height: 100%;
}

.sm-card-row .et_pb_module.et_clickable:hover {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);

}

.sm-card-row .et_pb_module.et_clickable {
    transition: all .2s ease, transform .2s ease;
}

.sm-card-row p {
    font-size: 16px;
    line-height: 24px;
}

/* ===========================================
   Latest News section (shortcode [sm_latest_news])
   =========================================== */

.sm-latest-news {
    padding: 96px 0 104px;
    background: #fff;
}

.sm-latest-news__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.sm-latest-news__title {
    margin: 0;
    font-size: 40px;
    line-height: 46px;
    font-weight: 700;
    color: var(--sm-dark);
}

.sm-latest-news__actions {
    flex: 0 0 auto;
}

.sm-latest-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 0;
}

.sm-latest-news__card {
    background: #F3F3F4;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .2s ease, transform .2s ease;
}

.sm-latest-news__card:hover,
.sm-latest-news__card:focus-within {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.sm-latest-news__image-link {
    display: block;
}

/* Full-card link wrapper used by [sm_external_news] */
.sm-latest-news__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.sm-latest-news__image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.sm-latest-news__body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sm-latest-news__post-title {
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--sm-dark);
}

.sm-latest-news__post-title a {
    color: inherit;
    text-decoration: none;
}

.sm-latest-news__post-title a:hover,
.sm-latest-news__post-title a:focus {
    color: var(--sm-blue);
}

.sm-latest-news__date {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sm-mid);
    margin-top: auto;
}

.sm-latest-news__view-all {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .sm-latest-news {
        padding: 64px 0 72px;
    }

    .sm-latest-news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .sm-latest-news__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .sm-latest-news__image {
        height: 220px;
    }
}

@media (max-width: 768px) {

    .sm-latest-news .sm-container { 
        padding: 0;
    }
    .sm-latest-news {
        padding: 0 0 56px;
    }

    .sm-latest-news__title {
        font-size: 36px;
    }

    .sm-latest-news__post-title {
        font-size: 22px;
        line-height: 28px;
    }

    .sm-latest-news__actions {
        position: absolute;
        bottom: -20px;
    }

    .sm-latest-news__grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   News Archive page (shortcode [sm_news_archive])
   =========================================== */

.sm-news-archive {
    padding: 0 0 104px;
    background: #fff;
}

.sm-news-archive__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
    padding: 0;
}

.sm-news-archive__filters {
    margin: 0;
}

.sm-news-archive__select-wrap {
    position: relative;
    display: inline-block;
}

.sm-news-archive__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #000; /* match design: solid black border */
    background-color: #fff;
    padding: 10px 52px 10px 20px; /* extra right padding for icon, slightly more left padding */
    font-size: 16px;
    line-height: 1.4;
    min-width: 240px;
    cursor: pointer;
    color: var(--sm-dark);
}

/* Angle-down icon on the right side of the category select */
.sm-news-archive__select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    background: url('assets/images/button-icons/angle-down-light.svg') center/14px 14px no-repeat;
}

.sm-news-archive__actions {
    flex: 0 0 auto;
}

.sm-news-archive__subscribe {
    white-space: nowrap;
}

.sm-news-archive__pagination {
    margin-top: 56px;
    text-align: center;
}

.sm-news-archive__pagination-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-news-archive__pagination-item {
    margin: 0;
}

.sm-news-archive__pagination-item::marker {
    content: none;
}

.sm-news-archive__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sm-border);
    text-decoration: none;
    font-size: 14px;
    color: var(--sm-dark);
    background-color: #fff;
}

.sm-news-archive__pagination-item.is-active .sm-news-archive__pagination-link {
    background-color: var(--sm-blue);
    border-color: var(--sm-blue);
    color: #fff;
}

.sm-news-archive__pagination-link:hover,
.sm-news-archive__pagination-link:focus {
    border-color: var(--sm-blue);
}

@media (max-width: 980px) {
    .sm-news-archive {
        padding: 64px 0 72px;
    }

    .sm-news-archive__header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 32px;
    }

    .sm-news-archive__actions {
        align-self: flex-start;
    }

    .sm-news-archive__pagination {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .sm-news-archive {
        padding: 48px 0 56px;
    }

    .sm-news-archive__select {
        width: 100%;
    }
}

/* ===========================================
   News Archive list (shortcode [sm_news_archive_list])
   =========================================== */

.sm-news-archive-list {
    padding: 32px 0 96px;
    background: #fff;
}

.sm-news-archive-list__list {
    list-style: none!important;
    margin: 32px 0 0;
    padding: 0!important;
}

.sm-news-archive-list__item + .sm-news-archive-list__item {
    margin-top: 8px;
}

.sm-news-archive-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    border: 1px solid var(--sm-border);
    background: #fff;
    text-decoration: none;
    color: var(--sm-dark);
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.sm-news-archive-list__link:hover,
.sm-news-archive-list__link:focus-visible {
    border-color: var(--sm-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.sm-news-archive-list__text {
    flex: 1 1 auto;
    min-width: 0;
}

.sm-news-archive-list__title {
    display: block;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--sm-blue);
    margin: 0;
}

.sm-news-archive-list__date {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sm-mid);
}

.sm-news-archive-list__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-news-archive-list__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--sm-blue);
    fill: currentColor;
}

@media (max-width: 768px) {
    .sm-news-archive-list__link {
        padding: 14px 16px;
        gap: 16px;
    }

    .sm-news-archive-list__title {
        font-size: 16px;
    }
}


/* combined news shortcode (card and list) */
.sm-news-archive-combined__list-heading {
    margin-top: 160px;
}

@media (max-width: 768px) {
    .sm-news-archive-combined__list-heading {
        margin-top: 80px;
    }
}
/* ===========================================
   Testimonial Carousel (Divi Testimonial modules)
   =========================================== */

/* Row container */
.sm-testimonial-carousel {
    background: transparent;
    /* max width for the content block so arrows can sit just outside it */
    --sm-testimonial-width: 1040px;
}

/* Inner Swiper container */
.sm-testimonial-carousel-inner {
    position: relative;
    max-width: var(--sm-max);
    margin: 0 auto;
    /* horizontal padding creates whitespace for arrows */
    padding: 80px 120px;
}

.sm-testimonial-carousel-inner .swiper-wrapper {
    align-items: center;
}

/* Each Swiper slide stays full width; inner content wrapper is constrained */
.sm-testimonial-carousel .et_pb_testimonial {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.sm-testimonial-carousel .sm-testimonial-content {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.sm-testimonial-carousel .et_pb_testimonial:before,
.sm-testimonial-carousel .et_pb_testimonial:after {
    display: none !important;
}

.sm-testimonial-carousel .et_pb_testimonial_portrait {
    flex: 0 0 220px;
    width: 220px !important;
    height: 220px !important;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 !important;
    overflow: hidden;
}

.sm-testimonial-carousel .et_pb_testimonial_description {
    flex: 1 1 auto;
    margin: 0 !important;
}

.sm-testimonial-carousel .et_pb_testimonial_description_inner {
    position: relative;
}

.sm-testimonial-carousel .et_pb_testimonial_description_inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: -60px;
    width: 180px;
    height: 180px;
    background: url('assets/images/quote.svg') no-repeat center/contain;
    opacity: 0.60;
    pointer-events: none;
    z-index: -1;
}

.sm-testimonial-carousel .et_pb_testimonial_content p {
    font-size: 22px;
    line-height: 1.7;
    color: var(--sm-dark);
    margin: 0;
}

.sm-testimonial-carousel .et_pb_testimonial_author {
    display: inline-block;
    margin-top: 32px;
    font-weight: 700;
    font-size: 18px;
}

.sm-testimonial-carousel .et_pb_testimonial_meta {
    display: inline;
    margin-left: 4px;
    font-size: 16px;
    color: var(--sm-mid);
}

/* Navigation arrows */
.sm-testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background-color: var(--sm-blue);
    background-image: url('assets/images/circle-caret-left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    cursor: pointer;
    color: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
    z-index: 2;
}

.sm-testimonial-nav--prev {
    left: 0;
}

.sm-testimonial-nav--next {
    right: 0;
    transform: translateY(-50%) scaleX(-1);
}

.sm-testimonial-nav:hover,
.sm-testimonial-nav:focus-visible {
    box-shadow: 1px 5px 7px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) translateY(-1px);
}

.sm-testimonial-nav--next:hover,
.sm-testimonial-nav--next:focus-visible {
    transform: translateY(-50%) translateY(-1px) scaleX(-1);
}

/* Pagination dots */
.sm-testimonial-pagination {
    text-align: center;
    margin-top: 40px;
}

.sm-testimonial-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.sm-testimonial-bullet.is-active {
    background: var(--sm-blue);
    transform: scale(1.2);
}

@media (max-width: 980px) {
    .sm-testimonial-carousel-inner {
        padding: 60px 24px;
    }

    .sm-testimonial-carousel .et_pb_testimonial {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .sm-testimonial-carousel .et_pb_testimonial_portrait {
        margin: 0 auto 8px;
        width: 180px;
        height: 180px;
    }

    .sm-testimonial-carousel .et_pb_testimonial_description_inner::before {
        left: 0;
        top: -30px;
        width: 110px;
        height: 110px;
    }

    .sm-testimonial-nav--prev {
        left: 0;
    }

    .sm-testimonial-nav--next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .sm-testimonial-carousel .sm-testimonial-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .sm-testimonial-carousel-inner .swiper-wrapper {
        align-items: flex-start;
    }
    
    .sm-testimonial-carousel-inner {
        padding: 40px 20px;
    }

    .sm-testimonial-carousel .et_pb_testimonial_content p {
        font-size: 18px;
    }

    .sm-testimonial-nav {
        display: none;
    }
}

/* Logo Ticker (CSS-only, Divi) */
.sm-logo-ticker {
  /* Ticker sizing */
  --sm-logo-h: 70px;   /* desktop logo height */
  --sm-gap: 76px;      /* space between logos */
  --sm-vpad: 24px;     /* vertical breathing room */

  position: relative;
  overflow: hidden;
  min-height: calc(var(--sm-logo-h) + (var(--sm-vpad) * 2));
  padding: var(--sm-vpad) 0;
}

@media (max-width: 767px) {
  .sm-logo-ticker {
    --sm-logo-h: 64px;
    --sm-gap: 42px;
    --sm-vpad: 16px;
  }
}

/* Tracks (rows) */
.sm-logo-ticker .sm-logo-ticker__track {
  position: absolute;
  left: 0;
  top: 50%;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;

  width: max-content;

  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Track contents (column) */
.sm-logo-ticker .sm-logo-ticker__track .et_pb_column {
  float: none !important;
  width: auto !important;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--sm-gap);

  margin: 0 !important;
  padding: 0 !important;
  min-width: 117vw;
}

.sm-logo-ticker .sm-logo-ticker__track .et_pb_module,
.sm-logo-ticker .sm-logo-ticker__track .et_pb_image {
  flex: 0 0 auto;
  margin: 0 !important;
}

.sm-logo-ticker .sm-logo-ticker__track .et_pb_image img {
  display: block;
  height: var(--sm-logo-h);
  width: auto;
  max-width: none;
}

.sm-logo-ticker .sm-logo-ticker__track--1 {
  animation: sm-logo-ticker-row1 30s linear infinite;
}

.sm-logo-ticker .sm-logo-ticker__track--2 {
  animation: sm-logo-ticker-row2 30s linear infinite;
  padding-left: 30px !important;
}

@keyframes sm-logo-ticker-row1 {
  from { transform: translate3d(0, -50%, 0); }
  to   { transform: translate3d(-100%, -50%, 0); }
}

@keyframes sm-logo-ticker-row2 {
  from { transform: translate3d(100%, -50%, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

.sm-logo-ticker:hover .sm-logo-ticker__track {
  animation-play-state: paused;
}

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee {
  overflow: hidden;
}

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .sm-logo-ticker__marquee {
  position: relative;
  padding: var(--sm-vpad) 0;
  overflow: hidden;
}

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .sm-logo-ticker__marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;

  will-change: transform;
  backface-visibility: hidden;

  /* Animation is enabled only after JS has measured widths and fonts are ready.
     This avoids stutters caused by late font swapping / text reflow. */
  animation: none;
}

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee.sm-logo-ticker--marquee-ready .sm-logo-ticker__marquee-track {
  animation-name: sm-logo-ticker-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--sm-ticker-speed, 40000ms);
}

/* One group of items (duplicated back-to-back for seamless wrap) */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .sm-logo-ticker__marquee-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--sm-gap);
  flex: 0 0 auto;
}

/* Explicit spacer between group1 and group2 (keeps seam gap exact) */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .sm-logo-ticker__marquee-spacer {
  flex: 0 0 auto;
  width: var(--sm-gap);
}

/* Reuse existing slide styling (logo sizing + max width safety) for marquee items.
   The marquee items are the original Divi modules (blurbs/images). */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .et_pb_module,
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .et_pb_image {
  flex: 0 0 auto;
  margin: 0 !important;
  overflow: hidden;
  max-width: var(--sm-logo-max-w);
}

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee img {
  display: block;
  max-height: var(--sm-logo-h);
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Pause on hover (default ON; can disable with sm-logo-ticker--no-pause) */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee:not(.sm-logo-ticker--no-pause):hover .sm-logo-ticker__marquee-track {
  animation-play-state: paused;
}

/* Direction: default is RIGHT -> LEFT. Add sm-logo-ticker--ltr for LEFT -> RIGHT */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee.sm-logo-ticker--ltr .sm-logo-ticker__marquee-track {
  animation-direction: reverse;
}

@keyframes sm-logo-ticker-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--sm-marquee-shift, var(--sm-marquee-group-w, 1000px))), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--marquee .sm-logo-ticker__marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

.sm-logo-ticker.sm-logo-ticker--js {
  /* reuse existing CSS vars for consistency */
  --sm-logo-h: 70px;
  --sm-logo-max-w: 260px; /* prevents wide wordmarks from overlapping neighbors */
  --sm-gap: 76px;
  --sm-vpad: 24px;

  /* lower = faster (duration) */
  --sm-ticker-speed: 40000ms;

  overflow: hidden;
}

@media (max-width: 767px) {
  .sm-logo-ticker.sm-logo-ticker--js {
    --sm-logo-h: 64px;
    --sm-gap: 42px;
    --sm-vpad: 16px;
  }
}

/* Swiper container injected by JS */
.sm-logo-ticker.sm-logo-ticker--js .sm-logo-ticker__swiper {
  position: relative;
  padding: var(--sm-vpad) 0;
}

/* Make the track a single horizontal row */
.sm-logo-ticker.sm-logo-ticker--js .sm-logo-ticker__wrapper {
  align-items: stretch;
  display: flex; /* fallback if Swiper CSS fails to load */
  gap: var(--sm-gap);

  /* Reduce jitter on long-running transforms */
  will-change: transform;
  backface-visibility: hidden;
}

/* Each slide sizes to its content so Swiper marquee can be continuous */
.sm-logo-ticker.sm-logo-ticker--js .sm-logo-ticker__slide {
  width: auto; /* key for slidesPerView: 'auto' */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Spacing is handled by wrapper gap so it works in both LTR/RTL and with Swiper */
  margin: 0 !important;

  /* Prevent a very wide logo from visually bleeding into the next slide */
  overflow: hidden;
  max-width: var(--sm-logo-max-w);
}

/* Direction

   Default is RIGHT -> LEFT (normal Swiper LTR behavior).
   If you want LEFT -> RIGHT, add row class: sm-logo-ticker--ltr
   (we flip direction using RTL mode on the Swiper element).
*/
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--ltr .sm-logo-ticker__swiper {
  direction: rtl;
}

/* Logo image sizing: supports either Blurb image or Image module */
.sm-logo-ticker.sm-logo-ticker--js .sm-logo-ticker__slide img {
  display: block;
  /* Let logos scale naturally and allow Divi max-width settings to work.
     We cap height for consistency across a ticker instance. */
  max-height: var(--sm-logo-h);
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Blurb layout: logo on top, optional text underneath, centered */
.sm-logo-ticker.sm-logo-ticker--js .et_pb_blurb {
  margin: 0 !important;
}

.sm-logo-ticker.sm-logo-ticker--js .et_pb_blurb .et_pb_main_blurb_image {
  margin-bottom: 12px;
}

.sm-logo-ticker.sm-logo-ticker--js .et_pb_blurb .et_pb_blurb_container {
  text-align: center;
}

/* Common: hide blurb title if empty without leaving spacing */
.sm-logo-ticker.sm-logo-ticker--js .et_pb_blurb h4:empty {
  display: none;
}

/* NOTE: We intentionally do NOT force max-width:none on modules here.
   That was preventing Divi design settings (max width, etc.) from working.
   If a specific page needs full-bleed modules, do it with a page-specific class. */

/* Sizing helper classes (editors can add these to the row)
   Example: Row class: "sm-logo-ticker sm-logo-ticker--h-60 sm-logo-ticker--gap-40" */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-40 { --sm-logo-h: 40px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-50 { --sm-logo-h: 50px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-60 { --sm-logo-h: 60px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-70 { --sm-logo-h: 70px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-80 { --sm-logo-h: 80px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-90 { --sm-logo-h: 90px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--h-100 { --sm-logo-h: 100px; }

.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--gap-20 { --sm-gap: 20px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--gap-30 { --sm-gap: 30px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--gap-40 { --sm-gap: 40px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--gap-60 { --sm-gap: 60px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--gap-80 { --sm-gap: 80px; }

/* Max width helper classes (prevents long wordmarks from overlapping neighbors) */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-160 { --sm-logo-max-w: 160px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-200 { --sm-logo-max-w: 200px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-240 { --sm-logo-max-w: 240px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-260 { --sm-logo-max-w: 260px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-300 { --sm-logo-max-w: 300px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-360 { --sm-logo-max-w: 360px; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--maxw-420 { --sm-logo-max-w: 420px; }

/* Speed helper classes (lower duration = faster movement) */
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--speed-slow   { --sm-ticker-speed: 60000ms; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--speed-normal { --sm-ticker-speed: 40000ms; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--speed-fast   { --sm-ticker-speed: 28000ms; }
.sm-logo-ticker.sm-logo-ticker--js.sm-logo-ticker--speed-xfast  { --sm-ticker-speed: 18000ms; }

@media (prefers-reduced-motion: reduce) {
  /* If the user prefers reduced motion, JS won’t init, but this is an extra safety net */
  .sm-logo-ticker.sm-logo-ticker--js .sm-logo-ticker__wrapper {
    transition: none !important;
  }
}

/* stats row */
.stats-row .et_pb_column > .et_pb_module:first-child {
    font-size: clamp(60px, 4.5vw, 82px);
}

.stats-row.large-numbers .et_pb_column > .et_pb_module:first-child {
    font-size: clamp(40px, 4vw, 68px);
}

/* ===========================================
   Tab Cards shortcode ([sm_tab_card])
   =========================================== */

.sm-tab-card {
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid var(--sm-border);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.sm-tab-card__link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--sm-dark);
}

.sm-tab-card__bar {
    flex: 0 0 5px;
    align-self: stretch;
    background: var(--sm-blue);
}

/* Bar color variants (from bar_color attribute) */
.sm-tab-card--bar-orange .sm-tab-card__bar { background: #E37C1D; }
.sm-tab-card--bar-blue   .sm-tab-card__bar { background: #4BBBEB; }
.sm-tab-card--bar-purple .sm-tab-card__bar { background: #845C84; }
.sm-tab-card--bar-red    .sm-tab-card__bar { background: #BA2234; }

.sm-tab-card__content {
    flex: 1 1 auto;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sm-tab-card__title {
    display: block;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--sm-blue);
    margin-bottom: 4px;
}

.sm-tab-card__body {
    font-size: 16px;
    line-height: 24px;
    color: var(--sm-dark);
}

.sm-tab-card__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 28px;
    margin-left: 16px;
}

.sm-tab-card__icon svg {
    width: 32px;
    height: 32px;
    display: block;
    color: #E1E1E1;
    fill: currentColor;
}

/* Hover: behave like a button */
.sm-tab-card:hover,
.sm-tab-card:focus-within {
    background: var(--sm-light);
    border-color: var(--sm-blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Static variant (no url): keep the same visual card layout, but don't imply clickability */
.sm-tab-card--static:hover,
.sm-tab-card--static:focus-within {
    background: #fff;
    border-color: var(--sm-border);
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    .sm-tab-card__content {
        padding: 18px 20px;
    }

    .sm-tab-card__icon {
        padding-right: 20px;
    }

    .sm-tab-card__title {
        font-size: 18px;
    }
}

/* ===========================================
   Legacy responsive table (.mobile-table)
   =========================================== */

@media (max-width: 980px) {
    .mobile-table {
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        border: none !important;
    }

    /* Keep header row as a key at the top, but make it mobile-friendly */
    .mobile-table tr:first-child {
        display: block;
        margin: 0 0 0.75rem; /* vertical spacing only */
        padding: 0;
    }

    .mobile-table tr:first-child td {
        display: block;
        width: 100%;
        padding: 0.25rem 0; /* vertical padding only */
        font-weight: 600;
        text-align: left;
    }

    /* Data rows become stacked “cards” with spacing */
    .mobile-table tr:not(:first-child) {
        display: block;
        margin: 1rem 0 1.5rem; /* vertical spacing only */
        padding: 1rem 0;       /* vertical padding only */
        border-radius: 0;
        background: none;
    }

    /* Stack cells vertically within data rows */
    .mobile-table tr:not(:first-child) td {
        display: block;
        width: 100%;
        padding: 0.25rem 0;
        vertical-align: top;
    }

    /* Reset centered paragraphs inside cells for readability on mobile */
    .mobile-table td p {
        text-align: left !important;
        margin: 0 0 0.25rem;
    }

    /* Emphasize hospital name (first cell in each data row) */
    .mobile-table tr:not(:first-child) td:first-child {
        font-weight: 600;
        margin-bottom: 0.5rem;
        border: none;
    }
}

/* ===========================================
   SM Stats Table (Divi module)
   =========================================== */

/* section class, fix row width */
.stat-tables .et_pb_row {
    width: 90%;
    margin: 0 auto;
}

.sm-stats-table, .sm_stats_table {
    margin: 0!important;
}

.sm-stats-table__title {
    background: #F5F5F4;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    color: var(--sm-dark);
}

.sm-stats-table__table-wrap {
    overflow-x: auto;
}

/* Hide Divi's child-module wrapper divs inside the stats table so only the
   semantic <table> markup is visible on the front-end. These wrappers are
   needed for the builder UI but should not affect layout. */
.sm-stats-table__table-wrap > .et_pb_module.sm_stats_table_row {
    display: none;
}

.sm-stats-table__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
    border: none!important;
}

.sm-stats-table__th,
.sm-stats-table__cell {
    padding: 18px 24px!important;
    font-size: 18px;
    line-height: 1.5;
    color: var(--sm-dark);
    border-bottom: 1px solid #E5E5E5;
    border-top: none!important;
}

.sm-stats-table__th {
    font-weight: 600;
}

.sm-stats-table__th--label,
.sm-stats-table__cell--label {
    text-align: left;
}

.sm-stats-table__th--value,
.sm-stats-table__cell--value {
    text-align: right;
    border-left: none!important;
}

/* Per-cell alignment overrides applied via row settings */
.sm-stats-table__cell--align-left {
    text-align: left !important;
}

.sm-stats-table__cell--align-center {
    text-align: center !important;
}

.sm-stats-table__cell--align-right {
    text-align: right !important;
}

/* Vertical divider between label and value columns
   Only applied when the wrapper has the modifier class
   .sm-stats-table--vert-borders (controlled by module setting). */
.sm-stats-table--vert-borders .sm-stats-table__th--value,
.sm-stats-table--vert-borders .sm-stats-table__cell--value {
    border-left: 1px solid var(--sm-border)!important;
}

/* Stats table – header row tweaks to match comp */
.sm-stats-table__table thead th.sm-stats-table__th--value {
    /* Left-align Mesa / Phoenix-Mesa Metro headings */
    text-align: left !important;
}

.sm-stats-table__table thead tr {
    /* Grey background for header row */
    background-color: #F6F5F4;
}

@media (max-width: 768px) {
    .sm-stats-table__th,
    .sm-stats-table__cell {
        padding: 14px 16px;
        font-size: 16px;
    }

    .sm-stats-table__title {
        padding: 14px 16px;
    }
}

/* ===========================================
   Modal ([sm_modal])
   =========================================== */

/* Prevent background scroll when any modal is open */
body.sm-modal-open {
    overflow: hidden;
}

.sm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.sm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.sm-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: min(90vw, 820px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.sm-modal__title {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--sm-dark);
}

.sm-modal__body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--sm-dark);
}

.sm-modal__close {
    position: absolute;
    top: 4px;
    right: 10px;
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    color: var(--sm-mid);
}

.sm-modal__close:hover,
.sm-modal__close:focus-visible {
    color: var(--sm-blue);
}

@media (max-width: 768px) {
    .sm-modal__dialog {
        width: 94vw;
        max-width: 94vw;
        padding: 24px 20px 20px;
    }

    .sm-modal__title {
        font-size: 22px;
    }
}

/* ===========================================
   Testimonial Feature ([sm_testimonials])
   =========================================== */

.sm-testimonial-feature-list {
    background: #fff;
}

.sm-testimonial-feature {
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-testimonial-feature__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.sm-testimonial-feature__photo-wrap {
    position: relative;
    flex: 0 0 260px;
    z-index: 0; /* ensure quote graphic can sit behind the image but above the section background */
}

.sm-testimonial-feature__photo {
    display: block;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1; /* keep the image above the quote graphic */
}

/* Quote background element behind the circular portrait */
.sm-testimonial-feature__photo-wrap::before {
    content: "";
    position: absolute;
    left: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: url('assets/images/quote.svg') no-repeat center/contain;
    opacity: 0.60;
    pointer-events: none;
    z-index: 0; /* sit behind the image but above the white background */
}

.sm-testimonial-feature__content {
    flex: 1 1 auto;
}

.sm-testimonial-feature__industry {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sm-dark);
    margin-bottom: 4px;
    font-weight: bold;
}

.sm-testimonial-feature__business {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.3;
}

.sm-testimonial-feature__text {
    font-size: 22px;
    line-height: 1.7;
    color: var(--sm-dark);
    margin: 0 0 28px;
}

.sm-testimonial-feature__text p {
    margin: 0;
}

.sm-testimonial-feature__meta {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sm-dark);
}

.sm-testimonial-feature__name-title {
    margin-bottom: 4px;
}

.sm-testimonial-feature__name {
    font-weight: 700;
}

.sm-testimonial-feature__source {
    font-style: italic;
    color: var(--sm-mid);
}

.sm-testimonial-feature__date {
    color: var(--sm-mid);
}

@media (max-width: 980px) {
    .sm-testimonial-feature__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .sm-testimonial-feature__photo-wrap {
        flex: none;
    }

    .sm-testimonial-feature__photo {
        width: 220px;
        height: 220px;
    }

    .sm-testimonial-feature__photo-wrap::before {
        left: -20px;
        top: -30px;
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .sm-testimonial-feature-list {
        padding: 40px 0 56px;
    }

    .sm-testimonial-feature__text {
        font-size: 18px;
    }
}

/* ===========================================
   Staff Bio ([sm_staff_bio])
   =========================================== */

.sm-staff-bio {
    padding: 42px 0 62px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-staff-bio__inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.sm-staff-bio__photo-wrap {
    flex: 0 0 220px;
}

.sm-staff-bio__photo {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
}

.sm-staff-bio__content {
    flex: 1 1 auto;
}

.sm-staff-bio__name {
    margin: 0;
    line-height: 1.4;
    color: var(--sm-dark);
    padding-bottom: 6px;
}

.sm-staff-bio__title {
    font-size: 18px;
    line-height: 1.4;
    color: var(--sm-dark);
    margin-bottom: 4px;
}

.sm-staff-bio__phone,
.sm-staff-bio__email {
    font-size: 16px;
    line-height: 1.7;
    color: var(--sm-dark);
}

.sm-staff-bio__phone a,
.sm-staff-bio__email a {
    color: var(--sm-blue);
    text-decoration: none;
}

.sm-staff-bio__phone a:hover,
.sm-staff-bio__phone a:focus,
.sm-staff-bio__email a:hover,
.sm-staff-bio__email a:focus {
    text-decoration: underline;
}

/* Optional website / social links (Website, Instagram, Facebook) */
.sm-staff-bio__links {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--sm-dark);
}

.sm-staff-bio__link {
    display: block; /* stack vertically like phone/email */
    color: var(--sm-blue);
    text-decoration: none;
}

.sm-staff-bio__link + .sm-staff-bio__link {
    margin-top: 2px; /* small spacing between Website/Instagram/Facebook */
}

.sm-staff-bio__link:hover,
.sm-staff-bio__link:focus {
    text-decoration: underline;
}

.sm-staff-bio__toggle {
    margin-top: 18px;
    padding: 0;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--sm-dark);
    cursor: pointer;
}

.sm-staff-bio__toggle-label {
    text-decoration: none;
}

.sm-staff-bio__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.sm-staff-bio__toggle-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform .25s ease;
}

.sm-staff-bio.is-open .sm-staff-bio__toggle-icon-svg {
    transform: rotate(180deg);
}

.sm-staff-bio__panel {
    overflow: hidden;
    height: 0;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
}

.sm-staff-bio__panel-inner {
    padding-top: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sm-dark);
}

.sm-staff-bio__panel-inner p {
    margin: 0 0 18px;
}

@media (max-width: 980px) {
    .sm-staff-bio__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .sm-staff-bio__photo-wrap {
        flex: none;
    }

    .sm-staff-bio__photo {
        width: 180px;
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-staff-bio__panel {
        transition: none !important;
    }
    .sm-staff-bio__toggle-icon-svg {
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .et_pb_toggle_title {
        font-size: 20px!important;
    }
}


/* gravity forms */
.gform_wrapper.gravity-theme input {
    font-size: 18px!important;
    padding: 24px 20px!important;
}
.gform_wrapper.gravity-theme .gform_footer .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid transparent;
    padding: 26px 28px;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
    background: var(--sm-blue);
    color: #fff;
    min-width: 260px;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.gform_wrapper.gravity-theme .gform_footer .button:hover,
.gform_wrapper.gravity-theme .gform_footer .button:focus-visible {
    background: #fff;
    color: var(--sm-blue);
    border-color: var(--sm-blue);
    transform: translateY(-1px);
}

.gform_wrapper.gravity-theme  .gfield {
    margin-bottom: 24px;
}


/* logo grid */
.sm-logo-row.sm-logo-row-3-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-logo-row.sm-logo-row-3-column > .et_pb_column {
    height: 300px;
    flex: 1 1 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
}

.sm-logo-row.sm-logo-row-3-column > .et_pb_column .et_pb_text {
    text-align: center!important;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .sm-logo-row {
        flex-direction: column;
        gap: 32px;
        border: none !important;
    }

    .sm-logo-row > .et_pb_column {
        height: auto !important;
        flex: unset !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--sm-border) !important;
        border-bottom: none!important;
        padding: 40px 0 0 !important;
        margin: 20px 0 0 !important;
    }

    .sm-logo-row .et_pb_column_empty {
        display: none!important;
    } 
}