.m4c-header,
.m4c-header * {
    box-sizing: border-box;
}

.m4c-header {
    position: relative;
    z-index: 40;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #d1d5db;
    color: #334155;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.m4c-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 24px;
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.m4c-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}

.m4c-logo {
    display: flex;
    flex: 0 0 auto;
    line-height: 0;
}

.m4c-logo img {
    display: block;
    height: 46px;
    width: auto;
}

.m4c-brand-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-width: 0;
}

.m4c-brand-title {
    font-family: Poppins, Inter, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1e293b;
}

.m4c-brand-sub {
    display: block;
    margin-top: 5px;
    font-family: Poppins, Inter, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: #d97706;
    line-height: 1;
}

.m4c-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #045cb4;
}

.m4c-menu-toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.m4c-menu-toggle-box span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
}

.m4c-nav {
    flex: 0 0 auto;
    margin-left: auto;
}

.m4c-nav > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.m4c-nav > ul > li {
    flex: 0 0 auto;
}

.m4c-nav a {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}

.m4c-nav > ul > li > a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    white-space: nowrap;
}

.m4c-nav > ul > li > a:hover,
.m4c-nav > ul > li > a[aria-current="page"] {
    color: #045cb4;
}

.m4c-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.m4c-nav .has-submenu {
    position: relative;
}

.m4c-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 50;
}

.m4c-nav .has-submenu:hover .submenu,
.m4c-nav .has-submenu:focus-within .submenu {
    display: block;
}

.m4c-nav .submenu a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    line-height: 1.4;
    white-space: nowrap;
}

.m4c-nav .submenu a:hover {
    background: #f8fafc;
    color: #045cb4;
}

@media (max-width: 1280px) {
    .m4c-brand-title {
        font-size: 20px;
    }

    .m4c-brand-sub {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .m4c-nav > ul > li > a {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .m4c-menu-toggle {
        display: flex;
    }

    .m4c-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #d1d5db;
        box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    }

    .m4c-header.is-open .m4c-nav {
        display: block;
    }

    .m4c-nav > ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
    }

    .m4c-nav > ul > li > a {
        height: auto;
        padding: 12px 24px;
    }

    .m4c-nav .submenu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .m4c-nav .submenu a {
        padding: 8px 24px 8px 40px;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .m4c-header-inner {
        min-height: 78px;
        padding: 10px 16px;
    }

    .m4c-logo img {
        height: 38px;
    }

    .m4c-brand-title {
        font-size: 16px;
    }

    .m4c-brand-sub {
        letter-spacing: 0.12em;
    }
}

@media (max-width: 520px) {
    .m4c-brand-text {
        display: none;
    }
}
