/* ═══════════════════════════════════════════════════════════
   HEADER: Full-width banner + nav bar below
   Replicates the old aviamidel.ca Gantry 4 layout.
   Root cause of invisible nav: Cassiopeia sets mod-menu
   color:#fff; user.css set background to #fff → white on white.
   ═══════════════════════════════════════════════════════════ */

/* Stack logo above nav (column instead of side-by-side grid) */
.container-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background-color: #ffffff;
    background-image: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Logo: fill full width, no internal padding */
.container-header .grid-child:not(.container-nav) {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.container-header .navbar-brand {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: inherit;
}

.container-header .brand-logo {
    display: block;
}

.container-header .brand-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nav: full-width bar below the banner image */
.container-header .container-nav {
    width: 100%;
    padding: 0 !important;
    padding-bottom: 0 !important;
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
    justify-content: flex-start !important;
}

.container-header .container-nav nav {
    margin-top: 0 !important;
    width: 100%;
}

/* Fix white-on-white: override Cassiopeia's color:#fff on mod-menu */
.container-header .mod-menu {
    color: #495057 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    padding: 0 4px !important;
    margin: 0;
}

/* Nav item links */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: #495057 !important;
    padding: 9px 14px;
    display: block;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

/* Active item */
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.active > span {
    color: #001B4C !important;
    font-weight: 600;
    background-color: #ffffff;
    border-bottom: 2px solid #001B4C;
}

/* Hover */
.container-header .mod-menu > li > a:hover {
    color: #001B4C !important;
    background-color: rgba(0, 27, 76, 0.05);
    border-bottom: 2px solid #001B4C;
    text-decoration: none;
}

/* Kill the animated underline pseudo-element (conflicts with border-bottom) */
.container-header .mod-menu > li::after {
    display: none !important;
}

/* Dropdown submenu (Репозиторий sub-items) */
.container-header .mod-menu .parent {
    position: relative;
}

.container-header .mod-menu .parent > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    z-index: 1000;
    padding: 4px 0;
    color: #495057 !important;
}

.container-header .mod-menu .parent > ul li a {
    display: block;
    padding: 7px 16px;
    color: #495057 !important;
    font-size: 0.875rem;
    text-decoration: none;
}

.container-header .mod-menu .parent > ul li a:hover {
    background-color: #f0f3f8;
    color: #001B4C !important;
}

.container-header .mod-menu .parent:hover > ul {
    display: block;
}

/* Fix brand/logo link color */
.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .navbar-brand:hover,
.container-header .navbar-brand:focus {
    color: #112855;
    padding: 0;
}

/* ── Hide breadcrumb ("Вы здесь: Главная") — user request ── */
.mod-breadcrumbs__wrapper {
    display: none !important;
}
