/* Child header style (matches provided dark FX header style) */
.fxtch-header {
    --fxtch-bg: #23262b;
    --fxtch-bg-soft: #202328;
    --fxtch-border: #3a3f45;
    --fxtch-text: #ffffff;
    --fxtch-muted: #d8dde3;
    --fxtch-green: #00b050;
    --fxtch-green-soft: #6ddf78;
    --fxtch-light-btn-bg: #f4f6f8;
    --fxtch-light-btn-text: #1f2f3d;

    background: var(--fxtch-bg);
    color: #ffffff;
    z-index: 60;
}

.fxtch-header .container {
    max-width: 1320px;
}

.fxtch-header__top {
    border-bottom: 1px solid var(--fxtch-border);
}

.fxtch-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 58px;
}

.fxtch-header__logo {
    flex-shrink: 0;
}

.fxtch-header__logo .custom-logo-link img {
    max-height: 34px;
    width: auto;
}

.fxtch-header__search {
    flex: 1 1 auto;
    max-width: 460px;
    position: relative;
}

.fxtch-header__search input {
    width: 100%;
    border: 1px solid #5a6068;
    border-radius: 4px;
    background: #ffffff;
    color: #202124;
    padding: 0.45rem 2.3rem 0.45rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
}

.fxtch-header__search button {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #6b7179;
    cursor: pointer;
}

.fxtch-header__search-icon {
    width: 1rem;
    height: 1rem;
}

.fxtch-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fxtch-header__btn {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.fxtch-header__btn--light {
    background: var(--fxtch-light-btn-bg);
    color: var(--fxtch-light-btn-text);
}

.fxtch-header__btn--green {
    background: var(--fxtch-green);
    color: #ffffff;
}

.fxtch-header__btn:hover {
    filter: brightness(1.06);
}

.fxtch-header__nav .header-nav {
    width: 100%;
}

.fxtch-header__nav .header-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0.65rem 0;
}

.fxtch-header__nav .header-nav-menu > li {
    margin: 0;
}

.fxtch-header__nav .header-nav-menu > li > a {
    color: var(--fxtch-text);
    font-size: 0.84rem;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.95;
}

.fxtch-header__nav .header-nav-menu > li > a:hover {
    color: var(--fxtch-green-soft);
}

.fxtch-header__nav .header-nav .nav-container {
    transform: none;
    opacity: 1;
    position: static;
    background: transparent;
    width: auto;
    max-height: none;
    padding: 0;
}

/* Desktop dropdown panel */
@media (min-width: 71.5rem) {
    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children {
        position: relative;
    }

    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children > .sub-menu {
        display: none;
        position: absolute;
        left: 0;
        top: calc(100% + 0.45rem);
        min-width: 720px;
        background: var(--fxtch-bg-soft);
        border: 1px solid var(--fxtch-border);
        border-radius: 6px;
        padding: 0.75rem 1rem;
        z-index: 80;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        columns: 4;
        column-gap: 2rem;
    }

    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children > .sub-menu > li {
        break-inside: avoid;
        margin: 0 0 0.45rem;
        padding: 0;
    }

    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children > .sub-menu > li > a {
        color: var(--fxtch-muted);
        font-size: 0.83rem;
    }

    .fxtch-header__nav .header-nav-menu > li.menu-item-has-children > .sub-menu > li > a:hover {
        color: var(--fxtch-green-soft);
    }
}

/* Mobile */
@media (max-width: 71.49rem) {
    .fxtch-header__inner {
        flex-wrap: wrap;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .fxtch-header__search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .fxtch-header__actions {
        gap: 0.35rem;
    }

    .fxtch-header__btn {
        font-size: 0.7rem;
    }

    .fxtch-header__nav .header-nav .nav-container {
        position: fixed;
        top: 58px;
        left: 0;
        width: 100%;
        background: var(--fxtch-bg);
        padding: 1rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.2s ease, opacity 0.2s ease;
        max-height: calc(100vh - 58px);
        overflow-y: auto;
        z-index: 80;
    }

    .fxtch-header__nav .header-nav.toggled .nav-container {
        transform: translateY(0);
        opacity: 1;
    }

    .fxtch-header__nav .header-nav-menu {
        display: block;
        padding: 0;
    }

    .fxtch-header__nav .header-nav-menu > li {
        margin: 0 0 0.75rem;
    }

    .fxtch-header__nav .header-nav-menu > li > a {
        display: block;
        padding: 0.35rem 0;
    }
}

