.nddf-navbar {
    --nddf-navy: #17335E;
    --nddf-blue: #1E5BAA;
    --nddf-teal: #0796B0;
    --nddf-light: #E6F0FA;
    --nddf-gray: #4b5563;
    --nddf-bar-height: 64px;
    font-family: Inter, system-ui, sans-serif;
    width: 100%;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nddf-navbar *,
.nddf-navbar *::before,
.nddf-navbar *::after {
    box-sizing: border-box;
}

.nddf-navbar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    z-index: 10000;
}

body.nddf-has-fixed-nav:not(.nddf-has-transparent-nav) {
    padding-top: var(--nddf-bar-height, 64px) !important;
}

/* Theme Builder header wrapper must not take extra height — the bar is fixed. */
.elementor-location-header {
    position: relative;
    z-index: 1000;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.elementor-location-header .nddf-navbar--fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.elementor-location-header,
.elementor-location-header > .elementor,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner,
.elementor-location-header .e-div-block,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container,
.elementor-location-header .elementor-shortcode {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}

.elementor-location-header .nddf-navbar {
    margin: 0;
}

.elementor-location-header .nddf-navbar:not(.nddf-navbar--transparent),
.elementor-location-header .nddf-navbar--transparent.is-solid,
.elementor-location-header .nddf-navbar--transparent.is-open {
    background: #fff;
}

.elementor-location-header .nddf-navbar--transparent:not(.is-solid):not(.is-open) {
    background: transparent !important;
    box-shadow: none !important;
}

/* Only when editing the Header template itself (no page hero behind it). */
body.elementor-editor-active.elementor-template-header .elementor-location-header {
    height: auto !important;
    min-height: 64px !important;
}

body.elementor-editor-active.elementor-template-header .nddf-navbar--fixed {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
}

body.elementor-editor-active.elementor-template-header .nddf-navbar--transparent:not(.is-solid):not(.is-open) {
    background: #17335E !important;
}

.nddf-navbar--transparent {
    background: transparent;
    box-shadow: none;
}

.nddf-navbar--transparent.is-solid,
.nddf-navbar--transparent.is-open {
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.nddf-navbar__bar {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--nddf-bar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .nddf-navbar__bar {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nddf-navbar__bar {
        padding: 0 2rem;
    }
}

.nddf-navbar__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 220px;
    max-height: 40px;
    overflow: hidden;
    line-height: 0;
}

.nddf-navbar__logo,
.nddf-navbar img,
.elementor .nddf-navbar img,
.elementor-widget-shortcode .nddf-navbar img,
.elementor-element .nddf-navbar img,
.elementor-widget-container .nddf-navbar img {
    height: 40px !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

.nddf-navbar__logo--on-dark {
    display: none !important;
}

.nddf-navbar__logo--on-light {
    display: block !important;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__logo--on-dark {
    display: block !important;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__logo--on-light {
    display: none !important;
}

.nddf-navbar__desktop {
    display: none;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

.nddf-navbar__item {
    position: relative;
}

.nddf-navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--nddf-gray);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0;
    transition: color 0.15s ease;
}

.nddf-navbar__link:hover {
    color: var(--nddf-navy);
}

.nddf-navbar__chevron {
    flex-shrink: 0;
}

.nddf-navbar__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 15rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    padding: 0.5rem 0;
    z-index: 60;
}

.nddf-navbar__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.75rem;
    height: 0.75rem;
}

.nddf-navbar__item.has-submenu:hover .nddf-navbar__submenu,
.nddf-navbar__item.has-submenu:focus-within .nddf-navbar__submenu {
    display: block;
}

.nddf-navbar__sublink {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
}

.nddf-navbar__sublink:hover {
    background: var(--nddf-light);
    color: var(--nddf-navy);
}

.nddf-navbar__donate {
    display: inline-flex;
    align-items: center;
    background: var(--nddf-navy);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nddf-navbar__donate:hover {
    background: var(--nddf-blue);
    color: #fff !important;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__link {
    color: #fff;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__donate {
    background: #fff;
    color: var(--nddf-navy) !important;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__donate:hover {
    background: var(--nddf-light);
    color: var(--nddf-navy) !important;
}

.nddf-navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--nddf-gray);
    cursor: pointer;
}

.nddf-navbar__toggle:hover {
    background: #f3f4f6;
}

.nddf-navbar__icon-close {
    display: none;
}

.nddf-navbar.is-open .nddf-navbar__icon-open {
    display: none;
}

.nddf-navbar.is-open .nddf-navbar__icon-close {
    display: block;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__toggle {
    color: #fff;
}

.nddf-navbar--transparent:not(.is-solid):not(.is-open) .nddf-navbar__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nddf-navbar__mobile {
    background: #fff;
    border-top: 1px solid #f3f4f6;
}

.nddf-navbar__mobile[hidden] {
    display: none;
}

.nddf-navbar__mobile-inner {
    padding: 0.75rem 1rem 1rem;
}

.nddf-navbar__mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.nddf-navbar__mobile-link:hover {
    background: var(--nddf-light);
    color: var(--nddf-navy);
}

.nddf-navbar__mobile-link--child {
    padding-left: 1.25rem;
    font-weight: 400;
}

.nddf-navbar__mobile-donate {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    background: var(--nddf-navy);
    color: #fff !important;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 768px) {
    .nddf-navbar__desktop {
        display: flex;
    }

    .nddf-navbar__toggle,
    .nddf-navbar__mobile {
        display: none !important;
    }
}

.elementor-widget-container .nddf-navbar {
    margin: 0;
}

body.nddf-has-fixed-nav #masthead,
body.nddf-has-fixed-nav .ast-primary-header-bar,
body.nddf-has-fixed-nav .ast-mobile-header-wrap,
body.nddf-has-fixed-nav header.site-header {
    display: none !important;
}

.elementor-location-header .e-con,
.elementor-location-header .e-div-block,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-element,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container,
.elementor-location-header .elementor-shortcode {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-location-header .e-con,
.elementor-location-header .e-div-block,
.elementor-location-header .elementor-section {
    min-height: 0 !important;
    overflow: visible !important;
}

.nddf-navbar a:focus-visible {
    outline: 2px solid var(--nddf-teal);
    outline-offset: 2px;
}

.nddf-contact {
    --nddf-navy: #17335E;
    --nddf-blue: #1E5BAA;
    --nddf-teal: #0796B0;
    --nddf-gray: #4b5563;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.nddf-contact[hidden] {
    display: none;
}

.nddf-contact__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(23 51 94 / 0.55);
}

.nddf-contact__dialog {
    position: relative;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
    padding: 1.75rem 1.5rem 1.5rem;
    font-family: Inter, system-ui, sans-serif;
}

.nddf-contact__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.nddf-contact__close:hover {
    background: #f3f4f6;
    color: var(--nddf-navy);
}

.nddf-contact__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nddf-navy);
}

.nddf-contact__intro {
    margin: 0 0 1.25rem;
    color: var(--nddf-gray);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.nddf-contact__form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.nddf-contact__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.nddf-contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.nddf-contact__field em {
    font-style: normal;
    font-weight: 400;
    color: #6b7280;
}

.nddf-contact__field input,
.nddf-contact__field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #111827;
    background: #fff;
}

.nddf-contact__field input:focus,
.nddf-contact__field textarea:focus {
    outline: 2px solid var(--nddf-teal);
    outline-offset: 1px;
    border-color: var(--nddf-teal);
}

.nddf-contact__status {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.nddf-contact__status.is-error {
    color: #b91c1c;
}

.nddf-contact__status.is-success {
    color: #166534;
}

.nddf-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--nddf-navy);
    color: #fff;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.nddf-contact__submit:hover:not(:disabled) {
    background: var(--nddf-blue);
}

.nddf-contact__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

body.nddf-contact-open {
    overflow: hidden;
}

.elementor .nddf-navbar img,
.elementor-widget-shortcode img.nddf-navbar__logo,
.elementor-element img.nddf-navbar__logo {
    height: 40px !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 40px !important;
}
