/* =========================================================
   NAVBAR - COMPLETE CSS
   Desktop + Laptop + Tablet + Mobile
   No Animation
========================================================= */


/* =========================================================
   COMMON RESET
========================================================= */

.navbar-default,
.navbar-default * {
    box-sizing: border-box;
}

.navbar-default .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-default .navbar-nav > .nav-item {
    list-style: none;
}

.navbar-default .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 10px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    color: #222;
    white-space: nowrap;

    text-decoration: none;

    background: transparent;
}

.navbar-default .navbar-nav .nav-link:hover,
.navbar-default .navbar-nav .nav-link:focus {
    color: #111;
    background: transparent;
}

.navbar-default .navbar-nav .nav-item.active > .nav-link {
    color: #111;
}


/* =========================================================
   TEXT LINE
========================================================= */

.navbar-default .navbar-nav .nav-link .text-line,
.navbar-default .navbar-nav .dropdown-menu .dropdown-item .text-line {
    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   MEGA DROPDOWN PARENT
========================================================= */

.navbar-default .mega-dropdown {
    position: static !important;
}


/* =========================================================
   MAIN MEGA DROPDOWN
========================================================= */

.navbar-default .mega-dropdown > .dropdown-menu,
.navbar-default .header-flyout.dropdown-menu {

    position: absolute;

    top: 100%;
    left: 50% !important;
    right: auto !important;

    transform: translateX(-50%) !important;

    display: none;

    width: min(1120px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);

    min-width: 0;
    min-height: 0;
    height: auto;

    margin: 0;
    padding: 0;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 0 0 14px 14px;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    z-index: 1050;
}


/* =========================================================
   OPEN DROPDOWN
   ONLY CLICK / BOOTSTRAP
========================================================= */

.navbar-default .mega-dropdown > .dropdown-menu.show,
.navbar-default .header-flyout.dropdown-menu.show {

    display: flex !important;

    visibility: visible !important;
    opacity: 1 !important;

    transform: translateX(-50%) !important;
}


/* =========================================================
   IMPORTANT
   NO HOVER OPEN
========================================================= */

/*
.navbar-default .mega-dropdown:hover > .dropdown-menu {
    display: flex !important;
}
*/


/* =========================================================
   FLYOUT INNER ROW
========================================================= */

.header-flyout.dropdown-menu > li,
.mega-dropdown-menu > li {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.header-flyout__sidebar {

    width: 250px;
    min-width: 250px;

    height: 100%;

    padding: 14px 0;

    background: #fff;

    border-right: 1px solid #e8e8e8;

    max-height: 500px;

    overflow-y: auto;
    overflow-x: hidden;
}


/* Sidebar scrollbar */

.header-flyout__sidebar::-webkit-scrollbar {
    width: 5px;
}

.header-flyout__sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.header-flyout__sidebar::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 10px;
}


/* Sidebar links */

.header-flyout__sidebar a {

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 9px 22px;

    color: #333;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    background: #fff;

    visibility: visible !important;
    opacity: 1 !important;
}

.header-flyout__sidebar a:hover {
    color: #111;
    background: #f7f7f7;
}


/* =========================================================
   RIGHT CONTENT AREA
========================================================= */

.header-flyout__stage {

    flex: 1;

    width: calc(100% - 250px);

    min-width: 0;

    min-height: 0;

    display: flex;

    align-items: flex-start !important;
    justify-content: center !important;

    gap: 20px;

    padding: 28px;

    background: #f7f7f7;

    overflow: hidden;
}


/* =========================================================
   PROMOTIONAL CARD
========================================================= */

.header-flyout__card {

    position: relative;

    width: 300px;
    min-width: 0;

    height: 220px;

    flex: 0 1 300px;

    overflow: hidden;

    border-radius: 14px;

    background: #fff;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);

    color: #fff;

    text-decoration: none;
}

.header-flyout__card:hover {
    color: #fff;
}


/* Card image */

.header-flyout__card img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Card text */

.header-flyout__card-copy {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px 20px;

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .65),
        rgba(0, 0, 0, 0)
    );
}

.header-flyout__card-copy strong {

    display: block;

    color: #fff;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   NORMAL DROPDOWN
========================================================= */

.navbar-default .dropdown-menu:not(.mega-dropdown-menu):not(.header-flyout) {

    border: 1px solid #e8e8e8;

    border-radius: 8px;

    padding: 8px 0;

    background: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

.navbar-default .dropdown-menu .dropdown-item {

    padding: 8px 16px;

    font-size: 13px;

    color: #333;

    background: #fff;

    white-space: nowrap;
}

.navbar-default .dropdown-menu .dropdown-item:hover {

    color: #111;

    background: #f7f7f7;
}


/* =========================================================
   BRAND LOGO
========================================================= */

.home-brand-logo {

    width: 110px;
    height: 90px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
}

.home-brand-logo img,
.blog-post .home-brand-logo img {

    width: 72px !important;
    height: 48px !important;

    max-width: 72px;
    max-height: 48px;

    object-fit: contain;
    object-position: center;

    padding: 0;

    border-radius: 0 !important;
}


/* =========================================================
   LAPTOP
   992px - 1199px
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .navbar-default .navbar-nav .nav-link {

        padding-left: 7px;
        padding-right: 7px;

        font-size: 12px;
    }

    .navbar-default .mega-dropdown > .dropdown-menu,
    .navbar-default .header-flyout.dropdown-menu {

        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }

    .header-flyout__sidebar {

        width: 220px;
        min-width: 220px;
    }

    .header-flyout__stage {

        width: calc(100% - 220px);

        gap: 15px;

        padding: 22px;
    }

    .header-flyout__card {

        width: 270px;

        height: 200px;

        flex-basis: 270px;
    }
}


/* =========================================================
   TABLET
   768px - 991px
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .navbar-default .navbar-nav {

        flex-wrap: wrap;

        justify-content: flex-start;
    }

    .navbar-default .navbar-nav .nav-link {

        padding: 11px 8px;

        font-size: 12px;
    }


    /* Mega dropdown */

    .navbar-default .mega-dropdown {

        position: relative !important;
    }

    .navbar-default .mega-dropdown > .dropdown-menu,
    .navbar-default .header-flyout.dropdown-menu {

        position: absolute;

        top: 100%;

        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);

        max-height: 500px;

        border-radius: 0 0 12px 12px;
    }


    .navbar-default .header-flyout.dropdown-menu.show {

        display: flex !important;

        transform: translateX(-50%) !important;
    }


    /* Sidebar */

    .header-flyout__sidebar {

        width: 210px;
        min-width: 210px;

        max-height: 500px;
    }


    .header-flyout__sidebar a {

        padding: 8px 18px;

        font-size: 13px;
    }


    /* Stage */

    .header-flyout__stage {

        width: calc(100% - 210px);

        padding: 20px;

        gap: 14px;

        overflow-x: auto;
        overflow-y: hidden;

        justify-content: flex-start !important;
    }


    /* Cards */

    .header-flyout__card {

        width: 230px;
        min-width: 230px;

        height: 175px;

        flex: 0 0 230px;
    }
}


/* =========================================================
   MOBILE
   0 - 767px
========================================================= */

@media (max-width: 767px) {

    .navbar-default .navbar-nav {

        display: block;

        width: 100%;

        margin: 0;
        padding: 0;
    }


    .navbar-default .navbar-nav > .nav-item {

        display: block;

        width: 100%;
    }


    .navbar-default .navbar-nav .nav-link {

        display: flex;

        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 12px 5px;

        font-size: 14px;

        white-space: normal;

        text-align: left;
    }


    /* =====================================================
       MOBILE MEGA DROPDOWN
    ===================================================== */

    .navbar-default .mega-dropdown {

        position: relative !important;
    }

    .navbar-default .mega-dropdown > .dropdown-menu,
    .navbar-default .header-flyout.dropdown-menu {

        position: static !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;

        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        min-height: 0 !important;

        height: auto !important;

        margin: 0 !important;

        padding: 0 !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }


    .navbar-default .header-flyout.dropdown-menu.show {

        display: block !important;

        transform: none !important;
    }


    /* =====================================================
       MOBILE SIDEBAR
    ===================================================== */

    .header-flyout__sidebar {

        width: 100%;
        min-width: 100%;

        max-height: 260px;

        padding: 5px 0;

        border-right: 0;

        border-bottom: 1px solid #e8e8e8;

        overflow-y: auto;
    }


    .header-flyout__sidebar a {

        padding: 10px 15px;

        font-size: 13px;
    }


    /* =====================================================
       MOBILE STAGE
    ===================================================== */

    .header-flyout__stage {

        display: block;

        width: 100%;

        padding: 15px;

        background: #f7f7f7;

        overflow: visible;
    }


    /* =====================================================
       MOBILE CARD
    ===================================================== */

    .header-flyout__card {

        display: block;

        width: 100%;
        min-width: 100%;

        height: 155px;

        margin: 0 0 12px;

        border-radius: 10px;
    }


    .header-flyout__card:last-child {

        margin-bottom: 0;
    }


    .header-flyout__card-copy {

        padding: 14px 15px;

        font-size: 13px;
    }

    .header-flyout__card-copy strong {

        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   0 - 575px
========================================================= */

@media (max-width: 575px) {

    .navbar-default .navbar-nav .nav-link {

        padding: 11px 4px;

        font-size: 13px;
    }


    .header-flyout__sidebar {

        max-height: 230px;
    }


    .header-flyout__sidebar a {

        padding: 9px 14px;

        font-size: 13px;
    }


    .header-flyout__stage {

        padding: 12px;
    }


    .header-flyout__card {

        height: 145px;

        border-radius: 9px;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .navbar-default .navbar-nav .nav-link {

        font-size: 12px;

        padding: 10px 3px;
    }

    .header-flyout__card {

        height: 135px;
    }
}


/* Desktop: open only when the pointer is on that category.
   Hidden menus must not capture the mouse (theme CSS used
   visibility:hidden + display:block, which opened flyouts
   when moving anywhere under the navbar). */
@media (min-width: 992px) {

    .navbar.navbar-default .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        margin-top: 0 !important;
    }

    .navbar.navbar-default .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .navbar.navbar-default .navbar-nav > .nav-item.mega-dropdown:hover > .dropdown-menu {
        display: flex !important;
    }
}