/* ==========================================================
   THANH GIANG HEADER V2.8.4 — WIDE FIX
   - Wide desktop container
   - One-line menu
   - Stable hotline block
   - Preserve old theme icons / dropdown markup
   - Front page slider connects directly to Home V2
   ========================================================== */

:root {
    --tg-header-blue: var(--tg-v2-primary, #0757c7);
    --tg-header-blue-dark: color-mix(in srgb, var(--tg-v2-primary, #0757c7) 82%, #001f46);
    --tg-header-navy: var(--tg-v2-navy, #062b52);
    --tg-header-text: #10223b;
    --tg-header-muted: #64748b;
    --tg-header-line: #e4ebf4;
    --tg-header-soft: #f5f8fc;
}

/* ==========================================================
   TOP BAR — preserve the old content/icons, only reskin it
========================================================== */
.top-header {
    display: block !important;
    min-height: 34px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    background: var(--tg-header-navy) !important;
    border: 0 !important;
    color: #dce8f5 !important;
    font-family: Roboto, Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 24px !important;
}

.top-header > .container,
.top-header .container {
    width: min(1500px, calc(100% - 40px)) !important;
    max-width: 1500px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.top-header .row {
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.top-header .widget,
.top-header ul,
.top-header p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.top-header ul {
    padding-left: 0 !important;
}

.top-header a,
.top-header .action-header li,
.top-header .action-header li a {
    color: #dce8f5 !important;
}

.top-header a:hover,
.top-header .action-header li a:hover {
    color: #ffffff !important;
}

/* Preserve existing Font Awesome/social pseudo icons. */
.top-header .widget_social ul li {
    border-right-color: rgba(255,255,255,.22) !important;
}

.top-header .widget_social ul li a {
    color: #dce8f5 !important;
}

.top-header .tuyen-dung-header a,
.top-header .tuyen-dung-header a b,
.tuyen-dung-header a,
.tuyen-dung-header a b {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* ==========================================================
   MAIN HEADER
========================================================== */
#masthead .header-main {
    position: relative !important;
    background: #ffffff !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--tg-header-line) !important;
    box-shadow: 0 4px 16px rgba(15, 45, 78, .055) !important;
}

/* The old Bootstrap .container (1140px) was the main reason the menu wrapped. */
#masthead .header-main > .container,
#masthead .header-main .container {
    width: min(1500px, calc(100% - 40px)) !important;
    max-width: 1500px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 992px) {
    #masthead .header-main .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-height: 96px !important;
    }

    #masthead .header-main .row > [class*="col"] {
        float: none !important;
        min-width: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Logo column */
    #masthead .header-main .row > [class*="col"]:first-child {
        flex: 0 0 190px !important;
        width: 190px !important;
        max-width: 190px !important;
    }

    /* Navigation column: give it all remaining width. */
    #masthead .header-main .row > [class*="col"]:nth-child(2) {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Action/language/hotline column. */
    #masthead .header-main .row > [class*="col"]:last-child {
        flex: 0 0 250px !important;
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
    }
}

#masthead.site-header.header-logo .logo,
#masthead .logo {
    text-align: left !important;
}

#masthead.site-header.header-logo .logo img,
#masthead .logo img {
    display: block !important;
    width: auto !important;
    max-width: 145px !important;
    max-height: 72px !important;
    margin: 8px 0 !important;
    object-fit: contain !important;
}

/* ==========================================================
   MENU — force a single desktop row
========================================================== */
@media (min-width: 992px) {
    #masthead.site-header.header-logo .main-navigation {
        width: 100% !important;
        background: transparent !important;
    }

    #masthead.site-header.header-logo .main-navigation ul.menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    #masthead.site-header.header-logo .main-navigation ul.menu > li {
        float: none !important;
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #masthead.site-header.header-logo .main-navigation ul.menu > li > a {
        display: flex !important;
        align-items: center !important;
        height: 96px !important;
        line-height: 1.25 !important;
        padding: 0 14px !important;
        color: var(--tg-header-text) !important;
        background: transparent !important;
        font-family: Roboto, Tahoma, Arial, sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }

    #masthead.site-header.header-logo .main-navigation ul.menu > li > a:hover,
    #masthead.site-header.header-logo .main-navigation ul.menu > li.current-menu-item > a,
    #masthead.site-header.header-logo .main-navigation ul.menu > li.current-menu-ancestor > a {
        color: var(--tg-header-blue) !important;
        background: #f5f9ff !important;
    }
}

/* Keep the theme's Font Awesome arrow/home pseudo-elements intact. */

/* ==========================================================
   DROPDOWN
========================================================== */
#masthead .main-navigation ul ul {
    min-width: 230px !important;
    padding: 5px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e1e8f1 !important;
    border-top: 3px solid var(--tg-header-blue) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 14px 34px rgba(6,43,82,.14) !important;
}

#masthead .main-navigation ul ul li a {
    padding: 10px 15px !important;
    color: #344054 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #edf1f6 !important;
    font-family: Roboto, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

#masthead .main-navigation ul ul li:last-child > a {
    border-bottom: 0 !important;
}

#masthead .main-navigation ul ul li > a:hover,
#masthead .main-navigation ul ul li.current-menu-item > a {
    color: var(--tg-header-blue) !important;
    background: #f4f8ff !important;
}

/* ==========================================================
   LANGUAGE + HOTLINE
========================================================== */
#masthead .navbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    min-height: 22px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

#masthead .navbar-actions img {
    display: block !important;
    width: auto !important;
    max-height: 20px !important;
    margin: 0 !important;
}

#masthead .header_hotline {
    display: block !important;
    width: 100% !important;
    max-width: 220px !important;
    min-height: 44px !important;
    margin: 0 0 0 auto !important;
    padding: 11px 14px !important;
    background: var(--tg-v2-secondary, #ef233c) !important;
    background-image: none !important;
    border: 1px solid var(--tg-v2-secondary, #ef233c) !important;
    border-radius: 9px !important;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--tg-v2-secondary, #ef233c) 24%, transparent) !important;
    color: #ffffff !important;
    font-family: Roboto, Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Do not inject a second phone icon; the button should stay clean. */
#masthead .header_hotline::before,
#masthead .header_hotline::after {
    display: none !important;
    content: none !important;
}

#masthead .header_hotline a,
#masthead .header_hotline span,
#masthead .header_hotline strong,
#masthead .header_hotline p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    white-space: nowrap !important;
}

/* ==========================================================
   FRONT PAGE SLIDER -> HOME V2
========================================================== */
body.tg-home-v2-page #content,
body.tg-home-v2-page #content > .tg-v2-content-root,
body.tg-home-v2-page .tg-v2-page-shell,
body.tg-home-v2-page .tg-v2-home {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tg-home-v2-page .tg-header-slider,
body.tg-home-v2-page .tg-header-slider > div,
body.tg-home-v2-page .tg-header-slider .metaslider,
body.tg-home-v2-page .tg-header-slider .ml-slider,
body.tg-home-v2-page .tg-header-slider .flexslider,
body.tg-home-v2-page .tg-header-slider .slides {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

body.tg-home-v2-page .tg-header-slider img {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The V2 hero now begins immediately after the slider. */
body.tg-home-v2-page .tg-v2-hero {
    margin-top: 0 !important;
}

/* ==========================================================
   TABLET / MOBILE
========================================================== */
@media (max-width: 991px) {
    .top-header {
        display: none !important;
    }

    #masthead .header-main > .container,
    #masthead .header-main .container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #masthead .header-main .row {
        min-height: 68px !important;
        align-items: center !important;
    }

    #masthead.site-header.header-logo .logo,
    #masthead .logo {
        text-align: left !important;
    }

    #masthead.site-header.header-logo .logo img,
    #masthead .logo img {
        max-width: 108px !important;
        max-height: 52px !important;
        margin: 7px 0 !important;
    }

    #masthead .header_hotline,
    #masthead .navbar-actions {
        display: none !important;
    }

    #masthead #showmenu {
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important;
    }

    #masthead .hamburger-inner,
    #masthead .hamburger-inner::before,
    #masthead .hamburger-inner::after,
    #masthead.site-header:not(.header-banner) .hamburger-inner,
    #masthead.site-header:not(.header-banner) .hamburger-inner::before,
    #masthead.site-header:not(.header-banner) .hamburger-inner::after {
        background-color: var(--tg-header-blue) !important;
    }
}

@media (max-width: 575px) {
    #masthead .header-main .row {
        min-height: 62px !important;
    }

    #masthead.site-header.header-logo .logo img,
    #masthead .logo img {
        max-width: 98px !important;
        max-height: 46px !important;
    }
}
