/* InsightBD R12 — shared mobile navigation fix for all 13 standalone themes.
   Keeps Home, Portfolio, Services, About Us and Contact Us on one row.
   This file is deliberately loaded LAST so theme-specific typography cannot
   make individual links wrap onto a second line. Desktop is unchanged. */
@media screen and (max-width: 900px) {
  /* 12 contemporary theme layouts, including InsightBD Previous Design. */
  body:not(.insight-exact) .site-header .nav-bar {
    width: 100%;
    max-width: 100%;
  }
  body:not(.insight-exact) .site-header .nav-bar .nav-inner {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
  }
  body:not(.insight-exact) .site-header .nav-bar .nav-inner > a {
    display: flex !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 13px 2px !important;
    box-sizing: border-box;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
    font-size: clamp(9px, 2.5vw, 13px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    text-transform: none !important;
  }
  /* Original 2015 InsightBD template: keep the original desktop appearance,
     but use the same five-link, single-row layout on phones and tablets. */
  body.insight-exact .insight-legacy-nav .insight-menu-toggle {
    display: none !important;
  }
  body.insight-exact .insight-legacy-nav,
  body.insight-exact .insight-legacy-nav > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.insight-exact .insight-legacy-nav > .container {
    padding: 0 4px !important;
  }
  body.insight-exact .insight-legacy-nav #insight-nav-list,
  body.insight-exact .insight-legacy-nav #insight-nav-list.is-open {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  body.insight-exact .insight-legacy-nav #insight-nav-list > li {
    display: block !important;
    flex: 1 1 0 !important;
    float: none !important;
    min-width: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
  }
  body.insight-exact .insight-legacy-nav #insight-nav-list > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 13px 2px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: clamp(9px, 2.5vw, 13px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }
}
