/* ==========================================================================
   Phan dung chung moi trang theo Figma (frame 1920px):
   nen trang, header (menu), footer. Nap sau app.css + figma-fonts.css.
   ========================================================================== */

/* Nen moi trang trong Figma: #fbf8f0 */
body,
#primary {
    background-color: #fbf8f0
}

/* <br class="gt-br"> + nowrap: xuong dong dung cho nhu Figma (frame 1920).
   Duoi 1440px dong chu ngan hon nen de trinh duyet tu xuong dong, tranh tran. */
@media screen and (max-width:1439px) {
    .gt-br {
        display: none
    }

    .tamnhin__wapper p,
    .cauchuyen__content>p.quotation,
    .cauchuyen__wapper article p,
    .kinhte article p,
    .hanhtrinh__description p,
    .page-outro .page-outro__line,
    .bv-quote__text,
    .sx-step__desc,
    .sx-factory__body p {
        white-space: normal !important
    }
}

/* Man hinh 1024-1439: menu co lai (do rong co dinh Figma 836px chi dung tu 1440) */
@media screen and (min-width:1024px) and (max-width:1439px) {
    #navbarToggler .navbar-nav>li:nth-child(n) {
        width: auto !important;
        flex: 1 1 auto !important
    }

    #navbarToggler .navbar-nav>li>h2,
    #navbarToggler .navbar-nav>li:last-child>h2 {
        padding: 0 clamp(12px, 2vw, 40px) !important;
        white-space: nowrap
    }

    #navbarToggler .navbar-nav>li:not(:last-child):after {
        margin-left: 0 !important
    }
}

@media screen and (min-width:1024px) {
    :root {
        /* 256px o 1920px: khung noi dung 1408px can giua */
        --gt-edge: max(70px, calc((100% - 1408px) / 2))
    }

    /* ---------- Header: menu ----------
       Moi muc = le trai 40 + chu + vach 1px o mep phai.
       Do rong tung muc dung Figma (o 1920px): 166 / 172 / 185 / 167 / 146 */
    #navbarToggler .navbar-nav>li {
        display: flex;
        align-items: flex-end;
        flex: none
    }

    #navbarToggler .navbar-nav>li>h2 {
        display: block;
        padding: 0 0 0 40px;
        font-size: 16px;
        font-weight: 700
    }

    #navbarToggler .navbar-nav>li:last-child>h2 {
        padding: 0 40px
    }

    #navbarToggler .navbar-nav>li:not(:last-child):after {
        flex: none;
        margin-left: auto
    }

    #navbarToggler .navbar-nav>li:nth-child(1) {
        width: 166px
    }

    #navbarToggler .navbar-nav>li:nth-child(2) {
        width: 172px
    }

    #navbarToggler .navbar-nav>li:nth-child(3) {
        width: 185px
    }

    #navbarToggler .navbar-nav>li:nth-child(4) {
        width: 167px
    }

    #navbarToggler .navbar-nav>li:nth-child(5) {
        width: 146px
    }

    /* Figma: muc menu dau tien 15.1px, cac muc con lai 16px */
    #navbarToggler .navbar-nav>li:first-child>h2 {
        font-size: 15.1px
    }

    #navbarToggler #language a {
        font-size: 13px;
        line-height: 15.78px;
        letter-spacing: .5px;
        opacity: .7
    }

    /* ---------- Footer ---------- */
    .footer .widget h6 {
        font-weight: 400;
        line-height: 22.4px
    }

    .footer .widget--contact h6 {
        font-size: 15.6px
    }

    .footer .widget--copyright h6 {
        font-size: 15.5px
    }

    .footer .widget--address h6 {
        font-size: 14.8px
    }

    .footer .widget p,
    .footer .widget--address .col-12 {
        line-height: 19.42px
    }

    .footer .widget--contact .col-6:nth-child(1) p {
        font-size: 14.5px
    }

    .footer .widget--contact .col-6:nth-child(2) p {
        font-size: 14.8px
    }

    .footer .widget--contact .col-12 p {
        font-size: 14.4px
    }

    .footer .widget--copyright p {
        font-size: 14.1px
    }

    .footer .widget--address .col-12 {
        font-size: 15.1px
    }

    /* Menu cuoi trang nam trong khung 1408px (256 -> 1664), moi o 282px */
    .navbar-nav--footer {
        padding: 0 var(--gt-edge)
    }

    .navbar-nav--footer li {
        padding: 17px 16px 18.42px
    }

    .navbar-nav--footer li a {
        font-size: 16px
    }

    .navbar-nav--footer li:first-child a {
        font-size: 15.3px
    }

    /* ---------- Khoi ket trang (nen do): 222px ---------- */
    .page-outro {
        padding: 89px 20px 90.6px
    }

    .page-outro:before {
        width: 148px;
        height: 144px;
        max-height: none
    }

    .page-outro .page-outro__line {
        max-width: none;
        font-family: Inter, sans-serif;
        font-weight: 400;
        font-size: 32px;
        line-height: 41.6px;
        white-space: nowrap
    }
}
