/* Main navigation */
.site-header{position:relative;z-index:20;background:#fff;box-shadow:0 2px 12px rgba(10,48,78,.07)}
.top .top-inner,.site-header .nav{width:min(1680px,94%)}
.top .top-inner{min-height:36px;align-items:center;padding:8px 0;letter-spacing:.01em}
.top .top-inner>a{white-space:nowrap}
.site-header .nav{min-height:84px;gap:clamp(14px,1.4vw,26px)}
.site-header .brand{flex:0 0 auto;gap:10px;letter-spacing:0;line-height:1.1;white-space:nowrap}
.site-header .brand img{width:48px;height:48px;max-width:48px;object-fit:contain}
.site-header .brand small{font-size:9px;letter-spacing:.11em;white-space:nowrap}
.site-header .nav-call{flex:0 0 auto;white-space:nowrap;border-radius:3px;min-height:44px;padding:14px 19px}
.site-header .menu-toggle{cursor:pointer;border-radius:4px}
.site-header .menu-toggle[aria-expanded=true]{background:#edf6fc}
.site-header .nav-links>ul>li>a{transition:color .2s ease}
.site-header .nav-links>ul>li.current-menu-item>a,.site-header .nav-links>ul>li.current_page_parent>a{color:#126ba9}
@media(min-width:1701px){
 .site-header .nav-links{flex:1 1 auto;min-width:0}
 .site-header .nav-links>ul{justify-content:center;align-items:center;gap:clamp(10px,.8vw,17px)}
 .site-header .nav-links>ul>li{flex:0 0 auto}
 .site-header .nav-links>ul>li>a{position:relative;display:block;white-space:nowrap;font-size:13px;line-height:1.4;padding:14px 0}
 .site-header .nav-links>ul>li>a::after{content:'';position:absolute;left:0;right:0;bottom:6px;height:2px;background:#1b75bb;transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
 .site-header .nav-links>ul>li:hover>a::after,.site-header .nav-links>ul>li:focus-within>a::after,.site-header .nav-links>ul>li.current-menu-item>a::after,.site-header .nav-links>ul>li.current_page_parent>a::after{transform:scaleX(1)}
 .site-header .nav-links .sub-menu{top:100%;border-top:3px solid #1b75bb;border-radius:0 0 4px 4px}
}
@media(max-width:1700px){
 .site-header .nav{min-height:76px;gap:10px}
 .site-header .nav-links{display:none;position:absolute;top:100%;left:-3.2%;right:-3.2%;z-index:10;background:white;padding:16px 4%;box-shadow:0 12px 20px #1233;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);overflow:auto;overscroll-behavior:contain;border-top:1px solid #e6eef4}
 .site-header .nav-links.open{display:block}
 .site-header .nav-links ul{display:block}
 .site-header .nav-links .sub-menu{display:block;position:static;box-shadow:none;padding:0 0 0 18px}
 .site-header .nav-links>ul>li>a{display:block;padding:13px 0;border-bottom:1px solid #e8f0f5;line-height:1.4}
 .site-header .nav-links .sub-menu a{font-weight:500;padding:10px 0}
 .site-header .menu-toggle{min-width:44px;min-height:44px;padding:8px;display:block;order:3}
 .site-header .brand img{width:44px;height:44px}
}
@media(max-width:480px){
 .top .top-inner{justify-content:center}
 .site-header .nav{min-height:72px;gap:6px}
 .site-header .brand{font-size:14px;gap:7px}
 .site-header .brand img{width:40px;height:40px}
 .site-header .brand small{font-size:8px;letter-spacing:.04em}
 .site-header .nav-call{font-size:10px;padding:12px 9px;min-height:42px}
}
/* Menu nhiều cấp; mục cha vẫn là đường dẫn riêng. */
.site-header .nav-links li.menu-item-has-children{display:flex;align-items:center;flex-wrap:wrap}
.site-header .submenu-toggle{display:none;align-items:center;justify-content:center;width:28px;height:40px;padding:0;border:0;background:transparent;cursor:pointer;color:#1b75bb}
.site-header .nav-js .submenu-toggle{display:inline-flex}.site-header .submenu-toggle span{width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}.site-header .submenu-toggle[aria-expanded=true] span{transform:translateY(2px) rotate(225deg)}
@media(min-width:1701px){.site-header .nav-links>ul{gap:clamp(10px,1.2vw,23px)}.site-header .nav-links .sub-menu{min-width:240px;padding:10px 0}.site-header .nav-links .sub-menu a{padding:12px 18px;line-height:1.45;color:#244c66}.site-header .nav-links .sub-menu a:hover,.site-header .nav-links .sub-menu a:focus-visible{background:#eff7fb;color:#176da3}.site-header .nav-links li.submenu-open>.sub-menu{display:flex}.site-header .nav-links .sub-menu li{width:100%}}
@media(max-width:1700px){.site-header .nav-links li.menu-item-has-children{display:flex;justify-content:space-between}.site-header .nav-links li.menu-item-has-children>a{flex:1 1 auto}.site-header .nav-js .submenu-toggle{width:44px;height:44px}.site-header .nav-links .sub-menu{flex:0 0 100%;width:100%;border-left:2px solid #d2e5ef;margin:0 0 12px 8px;padding-left:15px}.site-header .nav-js li.menu-item-has-children>.sub-menu{display:none}.site-header .nav-js li.menu-item-has-children.submenu-open>.sub-menu{display:block}.site-header .nav-links .sub-menu a{font-size:13px;line-height:1.4;color:#315b74}}
/* Highlight the profile without competing with the consultation button. */
.site-header .nav-links>ul>li.menu-profile>a{display:inline-flex;align-items:center;gap:8px;background:#eaf4fa;border:1px solid #b9d9ea;border-radius:4px;color:#105d91;font-weight:800;padding:10px 13px;transition:background .2s,color .2s,border-color .2s,transform .2s}
.site-header .nav-links>ul>li.menu-profile>a::before{content:'↗';display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#d0e8f5;color:#126ba9;font-size:13px;line-height:1}
.site-header .nav-links>ul>li.menu-profile>a::after{display:none}
.site-header .nav-links>ul>li.menu-profile>a:hover,.site-header .nav-links>ul>li.menu-profile>a:focus-visible,.site-header .nav-links>ul>li.menu-profile.current-menu-item>a{background:#0e659e;border-color:#0e659e;color:#fff}
.site-header .nav-links>ul>li.menu-profile>a:hover::before,.site-header .nav-links>ul>li.menu-profile>a:focus-visible::before,.site-header .nav-links>ul>li.menu-profile.current-menu-item>a::before{background:#ffffff30;color:#fff}
@media(max-width:1700px){.site-header .nav-links>ul>li.menu-profile{margin-top:12px}.site-header .nav-links>ul>li.menu-profile>a{display:inline-flex;padding:11px 14px;border:1px solid #b9d9ea}}
.top .top-hotlines{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.top .top-hotlines a{color:#fff}.top .top-hotlines b{color:#a9ddf6}@media(max-width:550px){.top .top-inner>.top-hotlines{display:flex}.top .top-hotlines span:first-child{display:inline}}
@media(max-width:550px){.top .top-hotlines span{display:inline}}
/* Menu cấp ba mở cạnh nhóm cha trên máy tính và mở theo tầng trên điện thoại. */
@media(min-width:1701px){.site-header .nav-links .sub-menu li.menu-item-has-children>a{flex:1 1 auto}.site-header .nav-links .sub-menu .submenu-toggle{height:42px;margin-right:8px}.site-header .nav-links .sub-menu .submenu-toggle span{transform:rotate(-45deg)}.site-header .nav-links .sub-menu .sub-menu{left:100%;top:-3px;max-height:calc(100vh - 150px);overflow:auto}.site-header .nav-links .sub-menu li.menu-item-has-children:focus-within>.sub-menu,.site-header .nav-links .sub-menu li.menu-item-has-children:hover>.sub-menu{display:flex}}
@media(max-width:1700px){.site-header .nav-links .sub-menu .sub-menu{margin-left:8px}.site-header .nav-links .sub-menu .sub-menu a{font-weight:400}}
@media(min-width:1701px) and (max-width:1850px){.site-header .nav{gap:10px}.site-header .brand{font-size:15px;gap:7px}.site-header .brand img{width:42px;height:42px}.site-header .nav-links>ul{gap:8px}.site-header .nav-links>ul>li>a{font-size:12px}.site-header .submenu-toggle{width:21px}.site-header .nav-call{padding:12px 14px;font-size:11px}}

/* Keep the brand and actions in two predictable groups before the full menu fits. */
@media(max-width:1700px){
 .site-header .nav{justify-content:flex-start}
 .site-header .brand{min-width:0;max-width:calc(100% - 220px)}
 .site-header .brand span{overflow:hidden;text-overflow:ellipsis}
 .site-header .nav-call{margin-left:auto}
 .site-header .menu-toggle{flex:0 0 44px;margin-left:2px}
 .site-header .nav-links{left:0;right:0;padding:16px 24px}
}
@media(max-width:650px){
 .site-header .nav{min-height:68px}
 .site-header .brand{max-width:calc(100% - 58px)}
 .site-header .brand img{flex:0 0 40px}
 .site-header .nav>.nav-call{display:none}
 .site-header .menu-toggle{margin-left:auto}
 .site-header .nav-links{padding:14px 18px}
 .site-header .nav-links .nav-call-mobile{display:flex;width:100%;margin-top:18px;padding:15px 18px;background:#1b75bb;color:#fff;font-size:12px;font-weight:800;justify-content:center}
 .top .top-inner{gap:10px}
 .top .top-inner>span{display:none}
 .top .top-hotlines{justify-content:center;flex-wrap:wrap;white-space:normal;font-size:11px}
}
@media(min-width:651px){.site-header .nav-links .nav-call-mobile{display:none}}
