/* One shared outer grid for navigation, page sections and footer. */
:root { --pixels-container: 1440px; --pixels-gutter: 24px; }
.nhuy-site #header .header-inner,
.nhuy-content .container,
.nhuy-content .hero-message .container,
.nhuy-content #bac-si > .container,
.nhuy-content #dich-vu > .container,
.nhuy-content #vi-sao-chon > .container,
.nhuy-content #co-so-vat-chat > .container,
.journal .journal-container,
.nhuy-site #footer .nf-container,
.nhuy-site #footer .absolute-footer > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--pixels-container);
    margin-inline: auto;
    padding-inline: var(--pixels-gutter);
}
@media (max-width: 639px) { :root { --pixels-gutter: 20px; } }

/* Fit the desktop header within the shared content grid. */
@media (min-width: 1200px) {
    .nhuy-site #header .header-inner {
        gap: 20px;
        padding-right: 0;
    }
    .nhuy-site #header #logo {
        flex: 0 0 220px;
        width: 220px;
        margin-right: 0;
    }
    .nhuy-site #header .header-inner > .hide-for-medium.flex-left {
        flex: 1 1 0;
        min-width: 0;
    }
    .nhuy-site #header .header-inner > .hide-for-medium.flex-right {
        flex: 0 0 auto;
    }
    .nhuy-site #header .header-nav.nav-left {
        gap: 16px;
        justify-content: center;
    }
    .nhuy-site #header .header-nav > li > a {
        padding-inline: 10px;
        font-size: 14px;
    }
    .nhuy-site #header .header-nav.nav-right {
        gap: 12px;
        margin-left: 0;
    }
    .nhuy-site #header .header-button .button {
        min-width: 0;
        padding-inline: 18px;
        font-size: 13px;
    }
}

@media (min-width: 1200px) and (max-width: 1319px) {
    .nhuy-site #header .header-inner { gap: 14px; }
    .nhuy-site #header #logo { flex-basis: 190px; width: 190px; }
    .nhuy-site #header .header-nav > li > a { padding-inline: 8px; font-size: 13px; }
    .nhuy-site #header .header-button .button { padding-inline: 14px; }
}

/* Keep standard Flatsome rows on the same outer grid. */
.nhuy-site #main .row:not(.row-collapse):not(.row-full-width),
.nhuy-site #footer .footer-widgets > .row {
    max-width: var(--pixels-container);
}
/* Override Flatsome's configured width while preserving full-width rows. */
body.nhuy-site .container,
body.nhuy-site .container-width,
body.nhuy-site .full-width .ubermenu-nav,
body.nhuy-site .row:not(.row-full-width) {
    max-width: var(--pixels-container);
}
