/* =========================================================
   MONGOLIA-SWISS CCIS
   CASSIOPEIA HEADER AND MAIN NAVIGATION
   ========================================================= */


/* ---------------------------------------------------------
   1. HEADER
   White background
   --------------------------------------------------------- */

.container-header {
    background: #ffffff;
    background-image: none;
    box-shadow: none;
}


/* ---------------------------------------------------------
   2. LOGO AREA
   Center logo horizontally
   --------------------------------------------------------- */

.container-header .grid-child:first-child {
    justify-content: center;
}

.container-header .navbar-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 8px 20px 12px;
}


/* ---------------------------------------------------------
   3. LOGO SIZE
   Keep proportions
   --------------------------------------------------------- */

.container-header .navbar-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 520px;
    max-height: 110px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   4. NAVIGATION AREA
   Full available width with dark blue background
   --------------------------------------------------------- */

.container-header .container-nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: #1f3b6d;
}


/* ---------------------------------------------------------
   5. MENU MODULE
   Fill entire navigation bar
   --------------------------------------------------------- */

.container-header .container-nav nav,
.container-header .container-nav .navbar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ---------------------------------------------------------
   6. MAIN MENU
   One horizontal row on desktop
   --------------------------------------------------------- */

.container-header .mod-menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}


/* ---------------------------------------------------------
   7. INDIVIDUAL MENU ITEMS
   Automatically share available width
   --------------------------------------------------------- */

.container-header .mod-menu > li {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   8. WHITE VERTICAL SEPARATORS
   --------------------------------------------------------- */

.container-header .mod-menu > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.65);
}


/* ---------------------------------------------------------
   9. MENU LINKS
   Same size, white text, one line
   --------------------------------------------------------- */

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > .nav-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
/* ==========================================================
   ALIGN NAVIGATION BAR WITH PAGE CONTENT WIDTH
   ========================================================== */

/* Keep the outer Joomla navigation area transparent */
.container-header .container-nav {
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Blue navigation bar aligned with page content */
.container-header .container-nav nav {
    background: var(--ccis-blue) !important;

    width: calc(100% - 2rem) !important;
    max-width: 1320px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;
}
   