
body.tsle-custom-shell #site-header,
body.tsle-custom-shell header.site-header,
body.tsle-custom-shell #site-footer,
body.tsle-custom-shell footer.site-footer {
    display: none !important;
}

.tsle-site-shell,
.tsle-site-shell * { box-sizing: border-box; }

.tsle-promo-bar {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: linear-gradient(90deg,#1f98d1 0%,#79d5dc 100%);
    color: #fff;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.tsle-custom-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #edf1f4;
    position: relative;
    z-index: 1000;
}

.tsle-custom-header-inner {
    width: calc(100% - 32px);
    max-width: 1140px;
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.tsle-brand {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
}

.tsle-brand img {
    display: block;
    width: 150px;
    height: auto;
    max-width: none;
}

.tsle-main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.tsle-main-nav a {
    color: #0a2d4e;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.tsle-main-nav a:hover,
.tsle-main-nav a:focus { color: #0a6aaa; }

.tsle-header-quote {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 0 14px 0 16px;
    border-radius: 3px;
    background: #0866a5;
    color: #fff !important;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
}

.tsle-header-quote-arrow {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.32);
    font-size: 14px;
    line-height: 1;
}

.tsle-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tsle-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: #0a2d4e;
}

.tsle-mobile-menu {
    display: none;
    width: 100%;
    padding: 6px 16px 16px;
    border-top: 1px solid #edf1f4;
    background: #fff;
}

.tsle-mobile-menu.is-open { display: block; }

.tsle-mobile-menu a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f4;
    color: #0a2d4e;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 13px;
    text-decoration: none;
}

.tsle-mobile-menu .tsle-mobile-quote {
    margin-top: 12px;
    padding: 12px 16px;
    border: 0;
    border-radius: 3px;
    background: #0866a5;
    color: #fff;
    text-align: center;
}

.tsle-custom-footer {
    width: 100%;
    margin: 0;
    padding: 38px 18px 22px;
    background: #303641;
    color: #d1d6dd;
    text-align: center;
    font-family: Arial,Helvetica,sans-serif;
}

.tsle-footer-inner {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.tsle-footer-logo img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 18px;
}

.tsle-footer-tagline {
    margin: 0;
    color: #cbd1d8;
    font-size: 11px;
    line-height: 1.5;
}

.tsle-footer-rule {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background: rgba(255,255,255,.12);
}

.tsle-footer-contact {
    margin: 0;
    color: #f1f3f5;
    font-size: 11px;
    line-height: 1.75;
}

.tsle-footer-contact a {
    color: inherit;
    text-decoration: none;
}

.tsle-footer-cities {
    max-width: 860px;
    margin: 17px auto 0;
    color: #aeb6c0;
    font-size: 9px;
    line-height: 1.65;
}

.tsle-footer-copy {
    margin: 0;
    color: #aeb6c0;
    font-size: 9px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .tsle-custom-header-inner { gap: 18px; }
    .tsle-brand img { width: 132px; }
    .tsle-main-nav { gap: 18px; }
    .tsle-main-nav a { font-size: 11px; }
}

@media (max-width: 767px) {
    .tsle-promo-bar { min-height: 28px; font-size: 9px; }
    .tsle-custom-header-inner { min-height: 62px; }
    .tsle-brand img { width: 122px; }
    .tsle-main-nav, .tsle-header-quote { display: none; }
    .tsle-mobile-toggle { display: block; }
    .tsle-custom-footer { padding: 32px 16px 20px; }
    .tsle-footer-logo img { width: 135px; }
}


/* v0.8: image-only legacy carousels become static logo rows.
   No Flickity/slider JS is needed for these. */
.elementor-widget-ld_carousel .tsle-static-logo-carousel {
    overflow: visible !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-items {
    margin-inline: 0 !important;
    overflow: visible !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .flickity-viewport {
    height: auto !important;
    overflow: visible !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .flickity-slider {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-item {
    position: static !important;
    transform: none !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-item-inner,
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-item-content {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel p {
    margin: 0 !important;
    width: 100%;
    text-align: center;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 78px !important;
    margin: 0 auto !important;
    object-fit: contain;
}
.elementor-widget-ld_carousel .tsle-static-logo-carousel .flickity-button,
.elementor-widget-ld_carousel .tsle-static-logo-carousel .flickity-page-dots,
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-dots,
.elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-nav {
    display: none !important;
}

@media (max-width: 767px) {
    .elementor-widget-ld_carousel .tsle-static-logo-carousel .flickity-slider {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 22px 14px !important;
    }
    .elementor-widget-ld_carousel .tsle-static-logo-carousel .carousel-item {
        flex: 0 0 calc(33.333% - 12px) !important;
    }
    .elementor-widget-ld_carousel .tsle-static-logo-carousel img {
        max-height: 60px !important;
    }
}


/* =========================================================
   v0.9 — Elementor editable global header/footer
   ========================================================= */

body.tsle-custom-shell #site-header,
body.tsle-custom-shell header.site-header,
body.tsle-custom-shell #site-footer,
body.tsle-custom-shell footer.site-footer {
    display: none !important;
}

#tsle-elementor-header,
#tsle-elementor-footer {
    width: 100%;
}

#tsle-elementor-header > .elementor,
#tsle-elementor-footer > .elementor {
    width: 100%;
}

.tsle-elementor-promo {
    width: 100%;
}

.tsle-elementor-promo .elementor-heading-title {
    margin: 0;
}

.tsle-elementor-header-bar {
    width: 100%;
    border-bottom: 1px solid #edf1f4;
}

.tsle-elementor-header-inner {
    width: calc(100% - 32px) !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tsle-elementor-header-logo img {
    display: block;
    width: 150px;
    height: auto;
}

.tsle-site-menu-widget {
    position: relative;
}

.tsle-site-menu-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.tsle-site-menu-desktop a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.tsle-site-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tsle-site-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.tsle-site-menu-mobile {
    display: none;
}

.tsle-elementor-footer {
    width: 100%;
}

.tsle-elementor-footer-inner {
    width: calc(100% - 32px) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tsle-elementor-footer-logo img {
    display: block;
    width: 150px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .tsle-elementor-header-inner {
        min-height: 62px;
    }

    .tsle-elementor-header-logo img {
        width: 122px;
    }

    .tsle-site-menu-desktop {
        display: none;
    }

    .tsle-site-menu-toggle {
        display: block;
        margin-left: auto;
        color: #0A2D4E;
    }

    .tsle-site-menu-mobile {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        z-index: 9999;
        width: 240px;
        padding: 8px 16px 14px;
        border: 1px solid #edf1f4;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(0,0,0,.10);
    }

    .tsle-site-menu-mobile.is-open {
        display: block;
    }

    .tsle-site-menu-mobile a {
        display: block;
        padding: 11px 0;
        border-bottom: 1px solid #f0f2f4;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        text-decoration: none;
    }

    .tsle-elementor-header-quote {
        display: none !important;
    }

    .tsle-elementor-footer-logo img {
        width: 135px;
    }
}


/* =========================================================
   v0.9.1 — clean Elementor template editing canvas
   ========================================================= */

/* Elementor Library previews under Hello Elementor must show ONLY the template. */
body.single-elementor_library #site-header,
body.single-elementor_library header.site-header,
body.single-elementor_library #site-footer,
body.single-elementor_library footer.site-footer,
body.single-elementor_library .page-header,
body.single-elementor_library .entry-header,
body.single-elementor_library .entry-title,
body.elementor_library-template-default #site-header,
body.elementor_library-template-default header.site-header,
body.elementor_library-template-default #site-footer,
body.elementor_library-template-default footer.site-footer,
body.elementor_library-template-default .page-header,
body.elementor_library-template-default .entry-header,
body.elementor_library-template-default .entry-title {
    display: none !important;
}

body.single-elementor_library main#content,
body.single-elementor_library .site-main,
body.elementor_library-template-default main#content,
body.elementor_library-template-default .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Never show the mobile menu panel until its toggle is pressed. */
.tsle-site-menu-mobile {
    display: none !important;
}
.tsle-site-menu-mobile.is-open {
    display: block !important;
}

/* Editor desktop canvas: only the desktop navigation is visible. */
@media (min-width: 768px) {
    .tsle-site-menu-desktop {
        display: flex !important;
    }
    .tsle-site-menu-toggle,
    .tsle-site-menu-mobile {
        display: none !important;
    }
}

/* Editor/mobile frontend preview. */
@media (max-width: 767px) {
    .tsle-site-menu-desktop {
        display: none !important;
    }
    .tsle-site-menu-toggle {
        display: block !important;
    }
}


/* =========================================================
   v0.9.2 — stable 3-column Elementor header
   Logo 25% | Menu 50% | Quote 25%
   ========================================================= */

@media (min-width: 768px) {

    /* Compact header — no oversized white vertical space. */
    .tsle-elementor-header-inner {
        min-height: 58px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        gap: 0 !important;
        align-items: center !important;
    }

    /*
     * The user-edited Header now contains three direct child containers.
     * Fix their widths so increasing the logo cannot push the menu sideways.
     */
    .tsle-elementor-header-inner > .e-con:nth-child(1) {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .tsle-elementor-header-inner > .e-con:nth-child(2) {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .tsle-elementor-header-inner > .e-con:nth-child(3) {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Let the widgets fill their column without changing the column width. */
    .tsle-elementor-header-inner > .e-con:nth-child(1) > .elementor-element {
        margin-right: auto !important;
    }

    .tsle-elementor-header-inner > .e-con:nth-child(2) > .elementor-element {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tsle-elementor-header-inner > .e-con:nth-child(3) > .elementor-element {
        margin-left: auto !important;
    }

    /* Keep the logo from changing the row height if enlarged. */
    .tsle-elementor-header-logo img {
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }
}

/* Tablet/mobile keeps normal Elementor responsive behaviour. */
@media (max-width: 767px) {
    .tsle-elementor-header-inner {
        min-height: 58px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}
