/* --- Header Layout Fixes --- */

/* Reset Bootstrap grid for header */
.bd-header__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    align-items: center !important;
}

/* Logo container: fixed width, no shrink */
.col-lg-3.navbar-header-items__start {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-right: 1rem !important;
}

/* Main navigation container: grow to fill space */
.col-lg-9.navbar-header-items {
    flex: 1 1 auto !important;
    width: auto !important;
    overflow: hidden !important;
}

/* Right-side icons container: shrink as needed */
.navbar-header-items__end {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 1 !important;
    gap: 0.5rem !important;
    margin-left: auto !important; /* Push to the right */
}

/* Stack right-side icons vertically on small screens */
@media (max-width: 1200px) {
    .navbar-header-items__end {
    display: flex;
    flex-direction: row;       /* Default: horizontal layout */
    flex-wrap: wrap;            /* Allow wrapping to next line */
    justify-content: flex-end; /* Align to the right */
    align-items: center;       /* Vertically center icons */
    gap: 0rem;               /* Small gap between icons */
    margin-left: auto;        /* Push to the right */
    margin-top: 0rem;
    }
    /* Remove extra margins from icon items */
    .navbar-header-items__end .navbar-item {
        margin: 0;
        padding: 0;
    }
}

/* Optional: Limit logo width */
.navbar-brand.logo img {
    max-width: 120px !important;
    height: auto !important;
}