/* MTL_HEADER_REBUILD_V1
   MTL_HEADER_BREAKPOINT_820_FIT
   Desktop navigation from 820px upward; compact desktop from 820-1199px; mobile below 820px. */

/* Do not allow the Bootstrap desktop header to squeeze at tablet widths. */
@media(max-width:819px){
  body:not(.mtl-portal-family) .header-area.header-area1{display:none!important}
  body:not(.mtl-portal-family) .mobile-header{display:block!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-header-elements{display:flex!important;align-items:center!important;gap:10px!important;min-height:68px!important;padding:8px 16px!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-logo{margin-right:auto!important;flex:0 0 auto!important;max-width:172px!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-logo img{display:block!important;width:160px!important;max-width:160px!important;height:auto!important;object-fit:contain!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-nav-icon{flex:0 0 auto!important;margin-left:2px!important}
  body:not(.mtl-portal-family) #mtl-header-langs.mtl-in-header{flex:0 0 auto!important;margin:0 4px 0 auto!important}
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-student-nav-cta>a,
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-ai-nav-cta>a,
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-lead-nav-cta>a,
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-chat-nav-cta>a{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:44px!important;height:auto!important;margin:5px 0!important;padding:11px 14px!important;font-size:13px!important;line-height:20px!important;border-radius:8px!important;box-sizing:border-box!important;animation:none!important;transform:none!important}
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-student-nav-cta>a{background:#FFD84D!important;color:#1F2430!important;border-color:#F0BE22!important}
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-ai-nav-cta>a{background:#C95A00!important;color:#fff!important;border-color:#A84900!important}
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-lead-nav-cta>a{background:#0B5FA5!important;color:#fff!important;border-color:#084C84!important}
  body:not(.mtl-portal-family) .mobile-sidebar li.mtl-chat-nav-cta>a{background:#087A3E!important;color:#fff!important;border-color:#066331!important}
}
@media(max-width:520px){
  body:not(.mtl-portal-family) .mobile-header .mobile-header-elements{min-height:62px!important;padding:7px 11px!important;gap:7px!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-logo{max-width:145px!important}
  body:not(.mtl-portal-family) .mobile-header .mobile-logo img{width:138px!important;max-width:138px!important}
}

/* True desktop: one balanced row. */
@media(min-width:820px){
  body:not(.mtl-portal-family) .header-area.header-area1{display:block!important}
  body:not(.mtl-portal-family) .mobile-header{display:none!important}
  body:not(.mtl-portal-family) .header-area.header-area1>.container{width:100%!important;max-width:1440px!important;padding-left:20px!important;padding-right:20px!important;margin-left:auto!important;margin-right:auto!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .header-elements{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:72px!important;width:100%!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo{flex:0 0 176px!important;width:176px!important;max-width:176px!important;min-width:176px!important;margin:0 8px 0 0!important;overflow:visible!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo a{display:flex!important;align-items:center!important;width:176px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo img{display:block!important;width:176px!important;max-width:176px!important;height:auto!important;object-fit:contain!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-ex{flex:1 1 auto!important;min-width:0!important;padding:0!important;margin:0!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-content>ul{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:0!important;margin:0!important;padding:0!important;white-space:nowrap!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-content>ul>li{display:block!important;flex:0 0 auto!important;margin:0!important;padding:0!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-content>ul>li.nav-item>a{display:flex!important;align-items:center!important;min-height:34px!important;padding:7px 6px!important;font-size:13px!important;line-height:20px!important;font-weight:700!important;white-space:nowrap!important;color:#17243a!important}
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-student-nav-cta>a{height:36px!important;min-height:36px!important;padding:7px 12px!important;margin:0 5px 0 0!important;font-size:12px!important;line-height:20px!important;border-radius:8px!important;white-space:nowrap!important}
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-ai-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-lead-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-chat-nav-cta>a{height:25px!important;min-height:25px!important;padding:4px 7px!important;margin:0 0 0 4px!important;font-size:9px!important;line-height:15px!important;border-radius:6px!important;white-space:nowrap!important;box-shadow:0 3px 9px var(--mtl-cta-glow),inset 0 1px 0 rgba(255,255,255,.10)!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .header2-buttons{flex:0 0 auto!important;margin:0 0 0 3px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .header2-buttons .theme-btn1{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:38px!important;min-height:38px!important;padding:8px 11px!important;font-size:12px!important;line-height:18px!important;border-radius:8px!important;white-space:nowrap!important;box-shadow:0 6px 16px rgba(244,122,0,.14)!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .header2-buttons .theme-btn1 span{width:21px!important;height:21px!important;min-width:21px!important;margin-left:6px!important}
  body:not(.mtl-portal-family) #mtl-header-langs.mtl-in-header{flex:0 0 auto!important;margin:0 3px 0 6px!important;position:relative!important;top:auto!important;right:auto!important;box-shadow:none!important}
}
@media(min-width:820px) and (max-width:1199px){
  body:not(.mtl-portal-family) .header-area.header-area1>.container{max-width:100%!important;padding-left:12px!important;padding-right:12px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .header-elements{gap:4px!important;min-height:66px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo{flex:0 0 140px!important;width:140px!important;max-width:140px!important;min-width:140px!important;margin-right:5px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo a{width:140px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .site-logo img{width:140px!important;max-width:140px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-content>ul>li.nav-item>a{min-height:31px!important;padding:5px 4px!important;font-size:11px!important;line-height:18px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-student-nav-cta>a{height:33px!important;min-height:33px!important;padding:6px 9px!important;margin-right:3px!important;font-size:10.5px!important;line-height:19px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-ai-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-lead-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-chat-nav-cta>a{height:23px!important;min-height:23px!important;padding:3px 5px!important;margin-left:3px!important;font-size:8.4px!important;line-height:15px!important;border-radius:5px!important}
  body:not(.mtl-portal-family) #mtl-header-langs.mtl-in-header{margin-left:4px!important;margin-right:0!important}
  body:not(.mtl-portal-family) #mtl-header-langs .mtl-lang-toggle{width:43px!important;height:32px!important;padding:0 5px!important}
}
@media(min-width:1360px){
  body:not(.mtl-portal-family) .header-area.header-area1 .main-menu-content>ul>li.nav-item>a{font-size:13.5px!important;padding-left:7px!important;padding-right:7px!important}
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-ai-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-lead-nav-cta>a,
  body:not(.mtl-portal-family) .header-area.header-area1 li.mtl-chat-nav-cta>a{font-size:9.5px!important;padding-left:8px!important;padding-right:8px!important}
}
