/* Site header with mega menu (replaces the theme's transparent overlay header) */

:root {
    --mx-green: #1e7fe4;
    --mx-green-dark: #1565c0;
    --mx-green-soft: #e8f2fd;
    --mx-ink: #16202c;
    --mx-muted: #66707c;
    --mx-line: #e5eaf0;
    --mx-topbar-bg: #0b2e57;
    --mx-bar-h: 76px;
}

/* Sticks once the 36px top bar has scrolled away, so only the main bar stays visible */
header.mx-header {
    position: sticky;
    top: -36px;
    left: auto;
    display: block;
    width: 100%;
    z-index: 999;
    background: #fff;
    transition: box-shadow 0.25s ease;
}
header.mx-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

.mx-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar */
.mx-topbar {
    background: var(--mx-topbar-bg);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
.mx-topbar .mx-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.mx-topbar ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
.mx-topbar-info li { margin-right: 28px; }
.mx-topbar-info i, .mx-topbar-links i { margin-right: 6px; color: #8cc2ff; }
.mx-topbar-info a { color: inherit; }
.mx-topbar-info a:hover, .mx-topbar-info a:focus { color: #fff; }
.mx-topbar-links > li { margin-left: 22px; }
.mx-topbar-links a { color: rgba(255, 255, 255, 0.85); }
.mx-topbar-links a:hover, .mx-topbar-links a:focus { color: #fff; }
.mx-topbar-social { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.mx-topbar-social a { margin-left: 14px; }
.mx-topbar-social a:first-child { margin-left: 0; }
.mx-topbar-social i { margin: 0; color: inherit; }

/* Main bar */
.mx-bar { position: relative; border-bottom: 1px solid var(--mx-line); }
.mx-bar-inner {
    display: flex;
    align-items: center;
    height: var(--mx-bar-h);
}
.mx-logo { flex: 0 0 auto; display: block; margin-right: 32px; }
.mx-logo img { height: 56px; width: auto; display: block; }

.mx-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.mx-menu {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.mx-item { position: static; display: flex; align-items: stretch; }

.mx-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 18px;
    border: 0;
    background: none;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--mx-ink);
    cursor: pointer;
    white-space: nowrap;
}
.mx-link i { margin-left: 6px; font-size: 14px; transition: transform 0.2s ease; }
.mx-link::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    background: var(--mx-green);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.mx-link:hover, .mx-link:focus, .mx-item.is-active > .mx-link, .mx-item.is-open > .mx-link { color: var(--mx-green); }
.mx-item.is-active > .mx-link::after, .mx-item.is-open > .mx-link::after { transform: scaleX(1); }
.mx-item.is-open > .mx-link i { transform: rotate(180deg); }
.mx-link:focus { outline: none; }
.mx-link:focus-visible { outline: 2px solid var(--mx-green); outline-offset: -4px; }

.mx-cta {
    flex: 0 0 auto;
    padding: 13px 28px;
    border-radius: 50px;
    background: var(--mx-green);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(30, 127, 228, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mx-cta i { margin-left: 8px; transition: transform 0.2s ease; }
.mx-cta:hover, .mx-cta:focus, .mx-cta.is-active {
    background: var(--mx-green-dark);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 127, 228, 0.36);
    transform: translateY(-1px);
}
.mx-cta:hover i { transform: translateX(4px); }

/* Mega panel */
.mx-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--mx-line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.mx-item.is-open > .mx-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.mx-panel-grid {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 36px;
}
.mx-col { flex: 1 1 0; min-width: 0; }
.mx-col-wide { flex: 2 1 0; }
.mx-col ul { margin: 0; padding: 0; list-style: none; }
.mx-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.mx-col-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mx-line);
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mx-muted);
}
.mx-col-title a { color: var(--mx-green); }
.mx-col-title a i { margin-left: 4px; }

.mx-sublink {
    display: block;
    position: relative;
    margin: 0 -12px;
    padding: 11px 12px 11px 64px;
    min-height: 62px;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.mx-sublink > i {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mx-green-soft);
    color: var(--mx-green);
    font-size: 17px;
    line-height: 40px;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.mx-sublink:hover > i, .mx-sublink:focus > i { background: var(--mx-green); color: #fff; }
.mx-sublink strong {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mx-ink);
}
.mx-sublink span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--mx-muted); }
.mx-sublink:hover, .mx-sublink:focus { background: #f3f8fe; }
.mx-sublink:hover strong, .mx-sublink:focus strong { color: var(--mx-green); }

/* Current page inside a mega panel */
.mx-sublink.is-active { background: var(--mx-green-soft); }
.mx-sublink.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--mx-green);
}
.mx-sublink.is-active strong { color: var(--mx-green); }
.mx-sublink.is-active > i { background: var(--mx-green); color: #fff; }
.mx-col-title a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.mx-topbar-links a.is-active { color: #fff; font-weight: 600; }

.mx-feature {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mx-green) 0%, var(--mx-green-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}
.mx-feature > * { position: relative; }
.mx-feature > .mx-feature-bg {
    position: absolute;
    right: -18px;
    bottom: -26px;
    font-size: 150px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
}
.mx-feature:hover > .mx-feature-bg { transform: rotate(-8deg) scale(1.05); }
.mx-feature-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mx-feature strong {
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 19px;
    line-height: 1.3;
    color: #fff;
}
.mx-feature em { margin-top: auto; padding-top: 18px; font-style: normal; font-weight: 700; color: #fff; }
.mx-feature em i { margin-left: 6px; transition: transform 0.2s ease; }
.mx-feature:hover, .mx-feature:focus { color: rgba(255, 255, 255, 0.95); }
.mx-feature:hover em i { transform: translateX(4px); }

/* Mobile toggle */
.mx-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: none;
    cursor: pointer;
}
.mx-toggle span, .mx-toggle span::before, .mx-toggle span::after {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--mx-ink);
    transition: transform 0.2s ease, background 0.2s ease;
}
.mx-toggle span { top: 21px; }
.mx-toggle span::before, .mx-toggle span::after { content: ""; left: 0; }
.mx-toggle span::before { top: -7px; }
.mx-toggle span::after { top: 7px; }
.mx-toggle[aria-expanded="true"] span { background: transparent; }
.mx-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.mx-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Inner page banners no longer sit under an overlay header */
section.iq-breadcrumb3 { padding: 110px 0 110px; }

@media (max-width: 1199px) and (min-width: 992px) {
    .mx-topbar-info li:last-child { display: none; }
    .mx-feature-wide-only { display: none; }
}

@media (max-width: 1199px) {
    .mx-link { padding: 0 12px; font-size: 14px; }
    .mx-link::after { left: 12px; right: 12px; }
    .mx-logo { margin-right: 16px; }
    .mx-logo img { height: 52px; }
    .mx-cta { padding: 12px 20px; }
    .mx-feature { flex-basis: 250px; }
}

@media (max-width: 991px) {
    :root { --mx-bar-h: 68px; }
    header.mx-header { top: 0; }
    .mx-topbar { display: none; }
    .mx-logo img { height: 48px; }
    .mx-toggle { display: block; }

    .mx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - var(--mx-bar-h));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 20px;
        background: #fff;
        border-top: 1px solid var(--mx-line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }
    .mx-header.is-menu-open .mx-nav { display: flex; }

    .mx-menu { flex-direction: column; height: auto; }
    .mx-item { display: block; border-bottom: 1px solid var(--mx-line); }
    .mx-link { width: 100%; justify-content: space-between; padding: 16px 24px; font-size: 16px; }
    .mx-link::after { display: none; }

    .mx-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: 0;
        box-shadow: none;
        background: #f8fbff;
        transition: none;
    }
    .mx-item.is-open > .mx-panel { display: block; }
    .mx-panel-grid { flex-direction: column; gap: 18px; padding: 16px 24px 20px; }
    .mx-cols-2 { grid-template-columns: 1fr; }
    .mx-sublink { margin: 0; }
    .mx-feature { display: none; }

    .mx-cta { margin: 20px 24px 0; text-align: center; }

    section.iq-breadcrumb3 { padding: 70px 0 70px; }
}
