/* =========================================================
   MADIBENG CONNECT
   HEADER / NAVIGATION
   ========================================================= */

.mc-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf0;
}

.mc-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 70px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* =========================================================
   LOGO / SITE NAME
   ========================================================= */

.mc-site-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mc-site-brand,
.mc-site-brand:hover,
.mc-site-brand:focus {
    text-decoration: none;
}

.mc-site-title {
    margin: 0;
    color: #0b2a55;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.4px;
}

/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.mc-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
}

.mc-main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mc-main-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 14px;

    border-radius: 8px;

    color: #0f172a;
    background: transparent;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.mc-main-nav a:hover,
.mc-main-nav a:focus {
    color: #0D6EFD;
    background: #f1f6ff;
    text-decoration: none;
}

/* =========================================================
   ACTIVE LINK
   ========================================================= */

.mc-main-nav .current-menu-item > a,
.mc-main-nav .current_page_item > a,
.mc-main-nav .current-menu-parent > a {
    color: #0D6EFD;
}

/* =========================================================
   SUBMIT LISTING BUTTON
   ========================================================= */

.mc-main-nav .mc-nav-submit a,
.mc-main-nav a.mc-submit-link {
    min-height: 42px;
    padding: 0 17px;

    border-radius: 9px;

    background: #0b2a55;
    color: #ffffff;

    font-weight: 800;
}

.mc-main-nav .mc-nav-submit a:hover,
.mc-main-nav .mc-nav-submit a:focus,
.mc-main-nav a.mc-submit-link:hover,
.mc-main-nav a.mc-submit-link:focus {
    background: #0D6EFD;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.mc-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mc-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dbe2ea;
    border-radius: 9px;

    background: #ffffff;
    color: #0b2a55;

    cursor: pointer;
}

.mc-menu-toggle:hover {
    background: #f1f6ff;
    border-color: #0D6EFD;
    color: #0D6EFD;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .mc-header-inner {
        min-height: 64px;
        width: min(100% - 30px, 1180px);
    }

    .mc-main-nav {
        gap: 0;
    }

    .mc-main-nav a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }

}

@media (max-width: 768px) {

    .mc-header-inner {
        position: relative;
    }

    .mc-site-title {
        font-size: 19px;
    }

    .mc-menu-toggle {
        display: inline-flex;
    }

    .mc-main-nav {
        display: none;

        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        padding: 12px;

        background: #ffffff;

        border: 1px solid #e5eaf0;
        border-top: 0;

        box-shadow: 0 15px 35px rgba(15, 23, 42, .10);
    }

    .mc-main-nav.is-open {
        display: block;
    }

    .mc-main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .mc-main-nav li {
        width: 100%;
    }

    .mc-main-nav a {
        width: 100%;
        min-height: 44px;

        justify-content: flex-start;

        padding: 0 14px;

        border-radius: 8px;

        font-size: 14px;
    }

    .mc-main-nav .mc-nav-submit a,
    .mc-main-nav a.mc-submit-link {
        justify-content: center;
        margin-top: 6px;
    }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .mc-header-inner {
        width: calc(100% - 24px);
    }

    .mc-site-title {
        font-size: 18px;
    }

}