/* Font geometry and Unicode ranges from the supplied Nova5 package. */
@font-face {
  font-family: 'MXH Nova Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/mxh-nova-r4/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'MXH Nova Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/mxh-nova-r4/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'MXH Nova Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/mxh-nova-r4/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* MXH consolidated UI repair R4. Load after all previous theme overlays.
 * This file styles existing server-rendered controls; it does not enable modules.
 * Original Nova5 Inter subsets are declared above this stylesheet by the builder. */
body.mxh-extend-ui {
  --mxh-r4-header-bottom:70px;
  --font-primary:"MXH Nova Inter",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:var(--font-primary);
  --body-font-family:var(--font-primary);
  font-family:"MXH Nova Inter",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.5;
}
body.mxh-extend-ui .form-control,
body.mxh-extend-ui .form-select {font-size:16px}
body.mxh-extend-ui .btn {font-size:14px}
body.mxh-extend-ui .btn-sm {font-size:13px}
body.mxh-extend-ui .card-header {font-size:16px}
body.mxh-extend-ui .dropdown-menu .dropdown-item {font-size:15px;line-height:1.5}
body.mxh-extend-ui .main-header .search-wrapper .form-control {font-size:16px}

/* Block/line-height centering caused mixed SVG baselines in the old controls. */
body.mxh-extend-ui .main-header .navbar-wrapper>ul>li>a {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:40px;
  line-height:1;
}
body.mxh-extend-ui .main-header .navbar-wrapper>ul>li>a>.svg-container,
body.mxh-extend-ui .main-header .menu-icon>.svg-container {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  margin:0!important;
  line-height:0;
}
body.mxh-extend-ui .main-header .navbar-wrapper .user-menu>img {margin:0;flex:none}
body.mxh-extend-ui .main-header .menu-icon {padding:0;width:44px;height:44px;top:13px}
body.mxh-extend-ui .main-header .menu-icon>.svg-container {position:absolute;inset:0;margin:auto!important}
body.mxh-extend-ui .main-header .dropdown-toggle::after {margin-inline-start:2px;flex:none}

/* Keep the native5 28px artwork; align the entire control, not the SVG paths. */
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav a,
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav .static {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:48px;
  padding:10px 13px;
  font-size:16px;
  line-height:1.5;
  font-weight:500;
  border-radius:12px;
  overflow-wrap:anywhere;
}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav>li.active>a {font-weight:600}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav a>.svg-container,
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav a>img {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px!important;
  height:28px!important;
  min-width:28px;
  flex:0 0 28px;
  margin:0!important;
  vertical-align:middle;
}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav ul a {font-size:15px;margin-inline-start:30px}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav a[data-bs-toggle="collapse"]::after {
  content:"";
  display:block;
  flex:0 0 18px;
  width:18px;
  height:18px;
  margin-inline-start:auto;
  float:none;
  background:currentColor;
  -webkit-mask:url(../images/svg/mxh-nova5-r2/tabler/chevron-down.svg) center/contain no-repeat;
  mask:url(../images/svg/mxh-nova5-r2/tabler/chevron-down.svg) center/contain no-repeat;
  transform:rotate(0deg);
}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav a[data-bs-toggle="collapse"][aria-expanded="true"]::after {transform:rotate(180deg)}
body.mxh-extend-ui .mxh-r4-nav-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
body.mxh-extend-ui .mxh-r4-nav-heading .mxh-nova-sidebar-label {font-size:13px;line-height:1.5}
body.mxh-extend-ui .mxh-r4-nav-close {display:none}
body.mxh-extend-ui .mxh-r4-close-icon {
  display:block;
  width:20px;
  height:20px;
  background:currentColor;
  -webkit-mask:url(../images/svg/mxh-nova5-r2/tabler/x.svg) center/contain no-repeat;
  mask:url(../images/svg/mxh-nova5-r2/tabler/x.svg) center/contain no-repeat;
}

/* The live Custom CSS hides li.active, all /blogs links and the Mine toggle.
 * These narrow overrides restore only links that this sidebar actually renders.
 * A closed Mine accordion stays closed; backend conditions are unchanged. */
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav>li.active {display:list-item!important}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav li>a[href*="/blogs"],
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav>a[href="#mine"] {display:flex!important}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav #mine.show,
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav #mine.collapsing {display:block!important}
body.mxh-extend-ui .mxh-r4-navigation .main-side-nav [hidden] {display:none!important}
body.mxh-extend-ui .mxh-r4-navigation .ads-descrition {color:var(--mxh-ui-muted)}
body.mxh-extend-ui .mxh-r4-navigation .ads-title a {color:var(--mxh-ui-accent)}

/* The original .active toggle remains owned by Custom core.js.
 * Progressive drawer layout activates only after its small helper is ready. */
.mxh-r4-nav-backdrop {display:none}
@media (max-width:767.98px) {
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas {
    overflow:visible;
    min-height:0!important;
  }
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas .sg-offcanvas-mainbar,
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas.active .sg-offcanvas-mainbar {
    position:relative;
    left:0;
    right:auto;
    transition:none;
  }
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas .sg-offcanvas-sidebar {
    position:fixed!important;
    top:var(--mxh-r4-header-bottom);
    left:0;
    right:auto;
    bottom:0;
    width:min(86vw,320px);
    max-width:100%;
    height:auto!important;
    margin:0;
    padding:12px 10px calc(24px + env(safe-area-inset-bottom,0px));
    z-index:1041;
    background:var(--mxh-ui-surface);
    border-inline-end:1px solid var(--mxh-ui-line);
    box-shadow:10px 0 35px rgba(0,0,0,.15);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform:translateX(-105%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .22s ease,visibility .22s;
  }
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas.active .sg-offcanvas-sidebar {
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
  }
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas-sidebar>.theiaStickySidebar {
    position:static!important;
    width:auto!important;
    min-height:0!important;
    transform:none!important;
  }
  body.mxh-extend-ui.mxh-r4-nav-ready .mxh-r4-navigation {border:0;box-shadow:none;background:transparent}
  body.mxh-extend-ui.mxh-r4-nav-ready .mxh-r4-navigation>.card-body {padding:0}
  body.mxh-extend-ui.mxh-r4-nav-ready .mxh-r4-nav-heading {position:sticky;top:-12px;z-index:2;background:var(--mxh-ui-surface);padding-block:4px}
  body.mxh-extend-ui.mxh-r4-nav-ready .mxh-r4-nav-close {display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:11px;background:var(--mxh-ui-raised);color:var(--mxh-ui-text);cursor:pointer}
  body.mxh-extend-ui.mxh-r4-nav-open {overflow:hidden}
  body.mxh-extend-ui.mxh-r4-nav-open .mxh-r4-nav-backdrop {
    display:block;
    position:fixed;
    inset:var(--mxh-r4-header-bottom) 0 0;
    z-index:1040;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:rgba(10,12,20,.42);
    cursor:pointer;
  }
  body.mxh-extend-ui.mxh-r4-nav-open .footer-bottom-bar {z-index:1039}
  html[dir="rtl"] body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas .sg-offcanvas-sidebar {left:auto;right:0;transform:translateX(105%)}
  html[dir="rtl"] body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas.active .sg-offcanvas-sidebar {transform:translateX(0)}
  html[dir="rtl"] body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas .sg-offcanvas-mainbar,
  html[dir="rtl"] body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas.active .sg-offcanvas-mainbar {left:auto;right:0}
}
@media (prefers-reduced-motion:reduce) {
  body.mxh-extend-ui.mxh-r4-nav-ready .sg-offcanvas .sg-offcanvas-sidebar {transition:none}
}
