.tse-elementor-header {
    background: #fff;
    border-bottom: 1px solid rgba(28, 27, 31, .08);
    box-shadow: 0 18px 40px rgba(28, 27, 31, .08);
    font-family: Poppins, Arial, sans-serif;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.admin-bar .tse-elementor-header { top: 32px; }
.tse-elementor-header__inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1360px;
    min-height: 80px;
    padding: 14px 40px;
}
.tse-elementor-header__logo { display: block; flex: 0 0 auto; }
.tse-elementor-header__logo img { display: block; height: auto; width: 116px; }
.tse-elementor-header__nav { flex: 1 1 auto; margin-left: 0; }
.tse-elementor-header .tse-nav-menu {
    align-items: center;
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}
.tse-elementor-header .tse-nav-menu > li { margin: 0; padding: 0; position: relative; }
.tse-elementor-header .tse-nav-menu > li > a {
    color: rgba(28, 27, 31, .78);
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 16px 0;
    text-decoration: none;
    white-space: nowrap;
}
.tse-elementor-header .tse-nav-menu > li:last-child > a {
    background: #00398d;
    border-radius: 999px;
    color: #fff;
    padding: 12px 20px;
}
.tse-elementor-header .tse-nav-menu > li.current-menu-item > a,
.tse-elementor-header .tse-nav-menu > li.current-menu-parent > a,
.tse-elementor-header .tse-nav-menu > li:hover > a { color: #00398d; }
.tse-elementor-header .tse-nav-menu > li:last-child:hover > a { background: #002b6b; color: #fff; }
.tse-elementor-header .sub-menu {
    background: #fff;
    border: 1px solid rgba(28, 27, 31, .08);
    border-radius: 14px;
    box-shadow: 0 24px 52px rgba(28, 27, 31, .16);
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 250px;
    opacity: 0;
    padding: 10px;
    position: absolute;
    top: calc(100% + 4px);
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    visibility: hidden;
    z-index: 1002;
}
.tse-elementor-header li:hover > .sub-menu,
.tse-elementor-header li:focus-within > .sub-menu { opacity: 1; transform: none; visibility: visible; }
.tse-elementor-header .sub-menu a {
    border-radius: 10px;
    color: #1c1b1f;
    display: block;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 12px;
    text-decoration: none;
}
.tse-elementor-header .sub-menu a:hover { background: #f6f3f4; color: #00398d; }
.tse-elementor-header__toggle { background: transparent; border: 0; display: none; padding: 8px; }
.tse-elementor-header__toggle span { background: #00398d; display: block; height: 2px; margin: 5px 0; transition: .2s; width: 26px; }

@media (max-width: 1100px) {
    .tse-elementor-header__inner { min-height: 68px; padding: 12px 20px; }
    .tse-elementor-header__toggle { display: block; }
    .tse-elementor-header__nav {
        background: #fff;
        border-top: 1px solid rgba(28, 27, 31, .08);
        display: none;
        left: 0;
        max-height: calc(100vh - 68px);
        overflow: auto;
        padding: 12px 20px 24px;
        position: absolute;
        right: 0;
        top: 100%;
    }
    .tse-elementor-header.is-menu-open .tse-elementor-header__nav { display: block; }
    .tse-elementor-header .tse-nav-menu { align-items: stretch; display: block; }
    .tse-elementor-header .tse-nav-menu > li > a { padding: 12px 0; }
    .tse-elementor-header .tse-nav-menu > li:last-child > a { display: inline-block; margin-top: 8px; padding: 11px 18px; }
    .tse-elementor-header .sub-menu { border: 0; box-shadow: none; display: block; margin: 0 0 6px 14px; opacity: 1; padding: 0; position: static; transform: none; visibility: visible; }
}
@media (max-width: 782px) { .admin-bar .tse-elementor-header { top: 46px; } }

/* Remove legacy page-level footers after the global Elementor-child footer is enabled. */
footer[class^="tse-"][class*="-footer"]:not(.tse-global-footer),
footer[class*=" tse-"][class*="-footer"]:not(.tse-global-footer) { display: none !important; }
html body.tse-footer-enabled footer.tse-global-footer { display: block !important; }

/* Production header states: transparent over heroes by default, light on special pages. */
body:not(.tse-special-header) .tse-elementor-header {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
body:not(.tse-special-header).admin-bar .tse-elementor-header { top: 32px; }
.tse-elementor-header__inner { min-height: 80px; padding-block: 8px; }
.tse-elementor-header__logo img { height: auto; object-fit: contain; width: 116px; }
.tse-elementor-header__logo-blue { display: none !important; }
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li > a { color: #fff; }
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li.current-menu-item > a,
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li.current-menu-parent > a,
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li:hover > a { color: #fff; opacity: .78; }
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li:last-child > a {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    min-height: 36px;
    padding: 8px 16px 8px 20px;
    background: #fff;
    color: #1c1b1f;
}
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li:last-child > a::after {
    background: url("assets/tse/arrow-dark.svg?v=1787919000") center/20px 20px no-repeat;
    content: "";
    display: block;
    flex: 0 0 20px;
    height: 20px;
    width: 20px;
}
body:not(.tse-special-header) .tse-elementor-header .tse-nav-menu > li:last-child:hover > a {
    background: #f4f4f4;
    color: #00398d;
    opacity: 1;
}

body.tse-special-header .tse-elementor-header__inner { min-height: 80px; }
body.tse-special-header .tse-elementor-header {
    background: #ffffff;
    border-bottom: 0;
    box-shadow: none;
    position: relative;
    top: 0;
}
body.admin-bar.tse-special-header .tse-elementor-header { top: 0 !important; }
body.tse-special-header .tse-elementor-header__logo-white { display: none !important; }
body.tse-special-header .tse-elementor-header__logo-blue { display: block !important; }
body.tse-special-header .tse-elementor-header .tse-nav-menu > li:last-child > a {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    min-height: 36px;
    padding: 8px 16px 8px 20px;
    background: #e46832;
    color: #fff;
}
body.tse-special-header .tse-elementor-header .tse-nav-menu > li:last-child > a::after {
    background: url("assets/tse/arrow-white.svg?v=1787919000") center/20px 20px no-repeat;
    content: "";
    display: block;
    flex: 0 0 20px;
    height: 20px;
    width: 20px;
}
body.tse-special-header .tse-elementor-header .tse-nav-menu > li:last-child:hover > a {
    background: #d95f2e;
    color: #fff;
}

@media (max-width: 1100px) {
    body:not(.tse-special-header) .tse-elementor-header__nav {
        background: rgba(0, 28, 62, .98);
        border-top-color: rgba(255,255,255,.2);
    }
    body:not(.tse-special-header) .tse-elementor-header .sub-menu { background: transparent; }
    body:not(.tse-special-header) .tse-elementor-header .sub-menu a { color: rgba(255,255,255,.82); }
    body:not(.tse-special-header) .tse-elementor-header__toggle span { background: #fff; }
}
@media (max-width: 782px) {
    body:not(.tse-special-header).admin-bar .tse-elementor-header { top: 46px; }
}

/* Homepage is now Elementor-owned; never let legacy builder state hide its shell. */
body.home .tse-elementor-header,
body.home main.site-main,
body.home main.site-main .page-content,
body.home main.site-main .elementor,
body.home main.site-main .elementor-section,
body.home main.site-main .elementor-widget,
body.home main.site-main .tse-homepage,
body.home footer.tse-global-footer {
    opacity: 1 !important;
    visibility: visible !important;
}
body.home main.site-main,
body.home main.site-main .page-content,
body.home main.site-main .elementor,
body.home main.site-main .tse-homepage,
body.home footer.tse-global-footer {
    display: block !important;
}
