.of-header{position:sticky;top:0;z-index:1000;background:#0c2d72;color:#fff;font-family:Montserrat,system-ui,sans-serif;border-bottom:1px solid rgba(255,255,255,.08)}
.of-header *{box-sizing:border-box}
.of-header [hidden]{display:none!important}
.of-header-inner{max-width:1280px;padding:12px 32px;margin:auto;display:flex;align-items:center;gap:40px}
.of-logo{flex:none;display:block}
.of-logo img{display:block;width:150px;height:60px;object-fit:contain}
.of-header a{color:inherit;text-decoration:none}
.of-header button{font:inherit;cursor:pointer;touch-action:manipulation}
.of-header a:focus-visible,.of-header button:focus-visible{outline:2px solid #f58220!important;outline-offset:4px}
.of-header ul{list-style:none;padding:0;margin:0}
.of-navigation{display:flex;align-items:center;justify-content:space-between;flex:1;gap:24px;min-width:0}
.of-menu{display:flex;align-items:center;gap:24px}
.of-menu>li>a,.of-solutions-label>.of-solutions-toggle{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;white-space:nowrap}
.of-menu a:hover,.of-menu a[aria-current=page]{text-decoration:underline;text-underline-offset:7px;text-decoration-color:#f58220}
.of-solutions-label{display:flex;align-items:center}
.of-solutions-toggle,.of-menu-toggle{color:#fff;background:transparent;border:1px solid transparent;border-radius:4px;min-width:44px;min-height:44px;padding:8px}
.of-solutions-toggle:hover,.of-menu-toggle:hover{background:rgba(255,255,255,.12)}
.of-solutions-toggle[aria-expanded=true] .of-nav-icon{transform:rotate(180deg)}
.of-header .of-nav-icon{display:inline-block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.of-menu-toggle{display:none;align-items:center;gap:10px}
html:not(.of-nav-js) .of-menu-toggle,html:not(.of-nav-js) .of-solutions-toggle{display:none}
.of-solutions-panel{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px;background:#fff;color:#0a1224;border:1px solid #d5d9e1;border-radius:6px;box-shadow:0 16px 36px rgba(0,0,0,.16)}
.of-header.is-ready .of-solutions-panel{position:absolute;top:100%;left:32px;width:min(660px,calc(100% - 64px))}
.of-header-inner{position:relative}
.of-solutions-panel p{margin:0 0 12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#5a6477}
.of-solutions-panel a{display:block;padding:12px 10px;border-radius:4px}
.of-solutions-panel a:hover{background:#e7ecf6}
.of-solutions-panel a span{font-size:15px;font-weight:600}
.of-solutions-panel small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:#5a6477}
.of-nav-actions{flex:none;display:flex;align-items:center;gap:20px}
.of-header .of-track{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1px solid rgba(255,255,255,.45);border-radius:4px;color:#fff;font-size:14px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;transition:background .18s ease,color .18s ease,border-color .18s ease}
.of-header .of-track:hover,.of-header .of-track:focus-visible{background:#fff;color:#0c2d72;border-color:#fff}
.of-header .of-hotline{display:flex;align-items:center;gap:9px;padding:6px 0;background:transparent;color:#fff;border:0;border-radius:0;white-space:nowrap}
.of-hotline-icon{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;background:#0c2d72;color:#fff;box-shadow:0 0 0 5px rgba(255,190,190,.28)}
.of-hotline-icon::after{content:"";position:absolute;inset:-6px;border:1px solid rgba(255,190,190,.62);border-radius:50%;pointer-events:none;animation:of-hotline-pulse 2.6s ease-out infinite}
.of-hotline-icon .of-nav-icon{width:22px;height:22px;transition:color .18s ease}
.of-hotline-icon .of-hotline-handset{fill:currentColor;stroke:none}
.of-hotline-icon .of-hotline-signal{fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round}
.of-hotline-text{display:flex;flex-direction:column;gap:4px}
.of-hotline-text>span{font-size:10.5px;font-weight:500;line-height:1.2;color:rgba(255,255,255,.68);transition:color .18s ease}
.of-hotline-text strong{font-size:16px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;color:#fff;transition:color .18s ease}
@keyframes of-hotline-pulse{from{transform:scale(.82);opacity:.55}to{transform:scale(1.25);opacity:0}}
@media(hover:hover){
.of-header .of-hotline:hover .of-hotline-icon,.of-header .of-hotline:hover .of-hotline-text strong{color:#f58220}
.of-header .of-hotline:hover .of-hotline-text>span{color:#fff}
}
@media(prefers-reduced-motion:reduce){.of-hotline-icon::after{animation:none;display:none}}
.of-skip{position:absolute;left:16px;top:0;transform:translateY(-150%);background:#fff!important;color:#0c2d72!important;padding:12px;z-index:2}
.of-skip:focus{transform:translateY(0)}
#of-main{scroll-margin-top:20px}
@media(max-width:1000px){
.of-header-inner{padding:10px 20px;gap:12px;flex-wrap:wrap;justify-content:space-between}
.of-logo img{width:125px;height:50px}
.of-menu-toggle{display:inline-flex}
.of-navigation{flex-basis:100%;display:block;padding:12px 0 20px}
html.of-nav-js .of-navigation{position:absolute;left:0;right:0;top:100%;padding:12px 20px 20px;background:#0c2d72;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 24px rgba(0,0,0,.16)}
.of-menu{display:block}
.of-menu>li{border-top:1px solid rgba(255,255,255,.18)}
.of-menu>li>a,.of-solutions-label>.of-solutions-toggle{padding:14px 0;min-height:52px}
.of-solutions-label{justify-content:space-between}
.of-solutions-label>.of-solutions-toggle{flex:1}
.of-header.is-ready .of-solutions-panel{position:static;width:100%;box-shadow:none;margin-bottom:16px}
.of-nav-actions{margin-top:20px;flex-direction:column;align-items:stretch;gap:12px}
.of-header .of-track{justify-content:center;height:52px}
.of-header .of-hotline{justify-content:center;min-height:52px;padding:8px 14px;border:1px solid rgba(255,255,255,.2);border-radius:4px}
}
@media(max-width:560px){.of-solutions-panel{grid-template-columns:minmax(0,1fr);gap:20px;padding:20px 12px}}

.of-header .of-solutions-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-left:0;padding-right:8px;font-size:15px;font-weight:600;line-height:1.5;text-transform:none;letter-spacing:normal}
.of-solutions-overview{grid-column:1/-1;border-bottom:1px solid #d5d9e1;padding-bottom:12px}

/* Keep page widths stable when navigating between short and long pages. */
html{scrollbar-gutter:stable}
.of-header button{transition:background-color .15s ease}
.of-solutions-toggle .of-nav-icon{transition:transform .15s ease}
@media(prefers-reduced-motion:no-preference){
  .of-header.is-ready .of-solutions-panel:not([hidden]){animation:of-menu-enter .15s ease-out}
  @keyframes of-menu-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){.of-header button,.of-hotline-icon .of-nav-icon,.of-hotline-text>span,.of-hotline-text strong,.of-solutions-toggle .of-nav-icon{transition:none}}

/* Menu cố định khi cuộn */
.of-header{transition:background-color .3s ease,backdrop-filter .3s ease}
.of-header-inner{transition:padding .3s ease}
.of-logo img{transition:width .3s ease,height .3s ease}
.of-header::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:linear-gradient(90deg,#f58220,#ffb066);transform:scaleX(var(--of-sp,0));transform-origin:left;opacity:0;transition:opacity .3s ease;pointer-events:none}
@media(min-width:1001px){
.of-header-inner{height:85px;padding-top:0;padding-bottom:0}
.of-header.is-stuck{background:rgba(12,45,114,.86);-webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px);animation:of-drop .35s ease-out}

.of-header.is-stuck .of-logo img{width:120px;height:48px}
.of-header.is-stuck::after{opacity:1}
}
@keyframes of-drop{from{transform:translateY(-14px);opacity:.4}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.of-header.is-stuck{animation:none}.of-header,.of-header-inner,.of-logo img{transition:none}}
html{scroll-padding-top:96px}
body.admin-bar .of-header{top:32px}
@media(max-width:782px){body.admin-bar .of-header{top:46px}}
@media(max-width:1000px){html{scroll-padding-top:76px}}

/* Nút Nhận tư vấn: chỉ hiện khi header thu gọn (desktop rộng) */
.of-header .of-cta{display:none}
@media(min-width:1200px){
.of-header.is-stuck .of-cta{display:inline-flex;align-items:center;height:40px;padding:0 18px;margin-left:12px;border-radius:4px;background:#f58220;color:#fff;font-size:14px;font-weight:600;white-space:nowrap;animation:of-drop .35s ease-out;transition:background .18s ease}
.of-header.is-stuck .of-cta:hover,.of-header.is-stuck .of-cta:focus-visible{background:#ff9a3d}
}
