.topbar-social-links {
    align-items: center;
    align-self: center;
    display: flex;
    font-size: 0.8125rem;
    gap: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

#topbar .topbar-widget a,
.topbar-social-label,
.topbar-social-links a {
    color: #707070;
    font-weight: 500;
}

#topbar .topbar-widget a {
    align-items: center;
    display: inline-flex;
    font-size: 0.8125rem;
    transition: color 180ms ease;
}

#topbar .topbar-widget i,
.topbar-social-links a i {
    color: #dfb50c;
    font-size: 0.875rem;
    margin-top: 0;
}

.topbar-social-label {
    color: #707070;
}

.topbar-social-links a {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    transition: color 180ms ease;
}

.topbar-social-links a i {
    margin-right: 0;
}

.topbar-social-links a:hover,
.topbar-social-links a:focus-visible,
#topbar .topbar-widget a:hover,
#topbar .topbar-widget a:focus-visible {
    color: #dfb50c;
}

@media (max-width: 1399px) {
    .topbar-social-links {
        display: none;
    }
}
header #logo .sitename {
    font-weight: 800 !important;
}

@media (min-width: 1400px) {
    #topbar .container,
    header:not(.header-mobile) > .container {
        max-width: 1350px;
    }
}

@media (min-width: 1200px) {
    header:not(.header-mobile) > .container > .row > .col-md-12 > .de-flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    header:not(.header-mobile) > .container > .row > .col-md-12 > .de-flex > :first-child {
        justify-self: start;
    }

    header:not(.header-mobile) .header-col-mid {
        justify-self: center;
    }

    header:not(.header-mobile) > .container > .row > .col-md-12 > .de-flex > :last-child {
        justify-self: end;
    }
}

/* Mobile header layout: retain the existing brand colors while separating
   the utility bar from the primary navigation row. */
@media (max-width: 991px) {
    header.header-mobile {
        position: fixed !important;
        padding: 0 !important;
        background: #fff !important;
    }

    header.header-mobile #topbar {
        display: block !important;
        height: 38px;
        background: #f3f3f5 !important;
        border-bottom: 1px solid rgba(15, 38, 71, .08);
    }

    header.header-mobile #topbar .container,
    header.header-mobile > .container {
        max-width: 100% !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    header.header-mobile #topbar .d-flex.justify-content-between.xs-hide {
        display: flex !important;
        height: 38px;
        align-items: center;
    }

    header.header-mobile #topbar .d-flex.justify-content-between.xs-hide > .d-flex {
        min-width: 0;
        align-items: center;
        gap: 12px;
        padding-right: 42px;
    }

    header.header-mobile #topbar .topbar-widget {
        margin: 0 !important;
        min-width: 0;
    }

    header.header-mobile #topbar .topbar-widget:first-child,
    header.header-mobile #topbar .topbar-social-links {
        display: none !important;
    }

    header.header-mobile #topbar .topbar-widget a {
        max-width: 200px;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header.header-mobile #topbar .topbar-widget i {
        flex: 0 0 auto;
        margin-right: 5px;
        font-size: 12px;
    }

    header.header-mobile > .container > .row > .col-md-12 > .de-flex {
        min-height: 56px;
        padding-right: 0;
        padding-left: 0;
    }

    header.header-mobile #logo .sitename {
        font-size: 16px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    header.header-mobile .menu_side_area {
        margin-left: 12px;
    }

    header.header-mobile .menu_side_area > .btn-line {
        display: none !important;
    }

    header.header-mobile #menu-btn {
        background: transparent !important;
        box-shadow: none !important;
    }

    header.header-mobile #menu-btn::before {
        background: transparent !important;
        box-shadow: none !important;
        color: #663433 !important;
        transform: scaleX(1.4);
        transform-origin: center;
    }

    header.header-mobile .header-language-switcher {
        position: fixed !important;
        top: 20px !important;
        right: 12px !important;
        left: auto !important;
        z-index: 10001;
        display: block !important;
        margin: 0 !important;
    }

    header.header-mobile .header-language-switcher .floating-language-toggle {
        display: inline-flex;
        min-width: 42px;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 4px 0;
    }

    header.header-mobile .header-language-current-flag {
        display: block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

    header.header-mobile .floating-language-chevron {
        color: #0f2647;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    header.header-mobile #topbar .d-flex.justify-content-between.xs-hide > .d-flex {
        gap: 8px;
    }

    header.header-mobile #topbar .topbar-widget a {
        max-width: 160px;
        font-size: 10px;
    }
}
