/* Shared site header: language, notifications, profile */
.header-right-actions .btn {
    border-color: #ffffffcc;
    color: #fff;
    font-size: 12px;
}

.header-right-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.header-right-actions .btn.rounded-circle {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right-actions #headerProfileInitials {
    font-size: 12px;
    font-weight: 600;
    color: #6A2D76;
}

/* Full-width header row — match home page layout on all pages */
.container-fluid.px-0[style*="#6A2D76"] {
    width: 100%;
    max-width: 100%;
}

.container-fluid.px-0[style*="#6A2D76"] .row.gx-0,
.site-header-row {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    margin: 0;
}

.container-fluid.px-0[style*="#6A2D76"] .row.gx-0 > .site-header-logo,
.container-fluid.px-0[style*="#6A2D76"] .site-header-row > .site-header-logo {
    flex: 0 0 auto;
}

/* Nav column fills all remaining horizontal space */
.container-fluid.px-0[style*="#6A2D76"] .row.gx-0 > [class*="col-lg-"]:last-child,
.site-header-row > [class*="col-lg-"]:last-child {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
    min-width: 0;
}

.container-fluid.px-0[style*="#6A2D76"] .navbar {
    width: 100%;
}

.container-fluid.px-0[style*="#6A2D76"] .navbar-expand-lg .navbar-collapse {
    align-items: center;
}

.container-fluid.px-0[style*="#6A2D76"] .header-right-actions {
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 16px;
}

.container-fluid.px-0[style*="#6A2D76"] .navbar-nav {
    flex-wrap: nowrap;
}

.container-fluid.px-0[style*="#6A2D76"] .navbar-nav .nav-link {
    white-space: nowrap;
}

.profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.profile-overlay-inner {
    position: absolute;
    top: 80px;
    right: 40px;
    pointer-events: auto;
}

.header-profile-menu {
    position: relative;
    display: none;
    background-color: #fff;
    border-radius: 12px;
    padding: 4px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    list-style: none;
    margin: 0;
}

.header-profile-menu.show {
    display: block;
}

@media (max-width: 768px) {
    .profile-overlay-inner {
        top: 70px;
        right: 12px;
        left: 12px;
    }

    .header-profile-menu {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .site-header-row,
    .container-fluid.px-0[style*="#6A2D76"] .row.gx-0 {
        flex-wrap: nowrap;
    }

    .site-header-row > [class*="col-lg-"]:last-child,
    .container-fluid.px-0[style*="#6A2D76"] .row.gx-0 > [class*="col-lg-"]:last-child {
        flex: 1 1 auto;
        width: auto;
    }

    .site-mobile-nav {
        padding: 0 !important;
        min-height: 44px;
    }

    .site-mobile-nav .navbar-brand {
        display: none !important;
    }

    .site-mobile-nav .navbar-toggler {
        margin-left: auto;
    }

    .site-header-logo {
        width: 30px !important;
        height: 30px !important;
        margin-left: 12px !important;
        margin-right: 8px !important;
    }
}
