/* =============================================================================
   chisinau_banner.css
   Top banner reconstructed from http://intruniri.chisinau.md
   - Deep municipal blue (#003B7A / #0052A5) gradient band
   - Coat-of-arms logo (left) + PRIMĂRIA MUNICIPIULUI / CHIȘINĂU title (right)
   - Gold (#F2B441) accent rule under the band
   - White-on-blue navigation menu bar
   Fully self-contained, responsive, overrides no AdminLTE class names.
   ========================================================================== */

/* --- 1. TOP BANNER BAND (logo + title) ---------------------------- */
.ew-banner-chisinau {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #0052A5 0%, #003B7A 100%);
    background-color: #003B7A;
    border-bottom: 4px solid #F2B441;   /* the gold municipal accent */
    color: #ffffff;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    z-index: 1030;
}

.ew-banner-chisinau .ew-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 110px;
    flex-wrap: nowrap;
}

/* Coat-of-arms logo (left) */
.ew-banner-chisinau .ew-banner-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 96px;
}
.ew-banner-chisinau .ew-banner-logo img {
    height: 96px;
    width: auto;
    display: block;
}

/* Title block (right of logo) */
.ew-banner-chisinau .ew-banner-title {
    flex: 1 1 auto;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
}
.ew-banner-chisinau .ew-banner-line1 {
    display: block;
    font-size: 1.05rem;     /* "PRIMĂRIA MUNICIPIULUI" */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #F2B441;         /* gold subtitle */
    text-transform: uppercase;
}
.ew-banner-chisinau .ew-banner-line2 {
    display: block;
    font-size: 2.5rem;      /* "CHIȘINĂU" */
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: Verdana, "Segoe UI", Arial, sans-serif;
    margin-top: 2px;
}

/* Right-side utility area (language switch / date / search) */
.ew-banner-chisinau .ew-banner-utils {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
    font-size: .8rem;
    color: #C7D6EA;
}
.ew-banner-chisinau .ew-banner-utils a {
    color: #F2B441;
    text-decoration: none;
    padding: .25rem .4rem;
    border-radius: .2rem;
}
.ew-banner-chisinau .ew-banner-utils a:hover {
    background: rgba(242, 180, 65, .15);
    color: #ffffff;
}

/* --- 2. NAVIGATION MENU BAR (white links on blue) ---------------- */
.ew-menubar-chisinau {
    background: #003B7A;
    border-bottom: 1px solid #002A5C;
    font-family: Arial, "Segoe UI", sans-serif;
}
.ew-menubar-chisinau .ew-menubar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 42px;
}
.ew-menubar-chisinau a.ew-menu-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: .7rem 1rem;
    display: inline-block;
    line-height: 1.4;
    border-right: 1px solid rgba(255, 255, 255, .12);
    transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.ew-menubar-chisinau a.ew-menu-link:first-child {
    border-left: 1px solid rgba(255, 255, 255, .12);
}
.ew-menubar-chisinau a.ew-menu-link:hover,
.ew-menubar-chisinau a.ew-menu-link.active {
    background: #0052A5;
    color: #F2B441;          /* gold hover text, like the source site */
}
.ew-menubar-chisinau .ew-menu-spacer {
    flex: 1 1 auto;
}

/* --- 3. RESPONSIVE ---------------------------------------------- */
@media (max-width: 767.98px) {
    .ew-banner-chisinau .ew-banner-inner {
        min-height: 80px;
        gap: .75rem;
    }
    .ew-banner-chisinau .ew-banner-logo,
    .ew-banner-chisinau .ew-banner-logo img {
        height: 64px;
    }
    .ew-banner-chisinau .ew-banner-line1 { font-size: .8rem; }
    .ew-banner-chisinau .ew-banner-line2 { font-size: 1.6rem; }
    .ew-banner-chisinau .ew-banner-utils { display: none; }

    .ew-menubar-chisinau .ew-menubar-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .ew-menubar-chisinau a.ew-menu-link {
        padding: .6rem .8rem;
        font-size: 13px;
    }
}

/* --- 4. PUSH ADMINLTE CONTENT BELOW THE FIXED BANNER ------------- */
/* Add a spacer equal to banner+menubar height so the page header is
   not hidden behind the banner. Body-level rule, low specificity.   */
body.has-chisinau-banner .main-header,
body.has-chisinau-banner .content-wrapper {
    margin-top: 0; /* banner is in normal flow by default; no offset needed */
}
