@charset "UTF-8";
/* ===================================
   Mobile Navigation Styles
   For Brand/Brand9
   =================================== */

/* ===== Desktop: hide mobile nav ===== */
@media (min-width: 951px) {
  .top { display: none !important; }
}

/* ===== Mobile: show mobile nav ===== */
@media (max-width: 950px) {
  .top {
    height: 44px;
    background-color: #e9ebf0f0 !important;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 1000;
    border-bottom: 1px solid #ffffff85;
  }

  .wrapper-dropdown-5 {
    width: 44px !important;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    height: 44px;
    position: absolute !important;
    left: 0;
    top: 0;
  }

  .wrapper-dropdown-5:after { display: none; }

  .wrapper-dropdown-5 .dropdown {
    position: fixed;
    left: 0;
    right: 0;
    list-style: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #e9ebf0f0 !important;
    border-bottom-width: 1px;
    border-bottom-color: #C1C1C1;
    height: 100vh;
  }

  .wrapper-dropdown-5.active .dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 100vh;
    margin-top: 0px !important;
  }

  .logo {
    height: 44px;
    width: 44px;
    display: block;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    position: relative;
    z-index: 1;
  }

  .logo img {
    display: block;
    width: 44px;
    height: 44px;
  }

  #pencil {
    height: 44px;
    width: 44px;
    position: absolute !important;
    right: 0;
    top: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  #pencil img {
    display: block;
    width: 44px;
    height: 44px;
  }

  .index_nav3 {
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 95%;
    margin: auto;
    margin-top: 15px;
    padding: 0 !important;
  }

  .index_nav_icon {
    width: 100% !important;
    float: none !important;
    text-align: center;
    box-shadow: 0 0 5px rgb(0 0 0 / 4%) !important;
    border: 1px solid #ffffffeb !important;
    background-color: #f6f6f6a8 !important;
    border-radius: 10px;
    margin: 0 !important;
    height: auto !important;
  }

  .index_nav_icon a {
    text-decoration: none;
    display: block;
    color: #000000;
    padding: 20px;
    height: auto !important;
  }

  #theme-toggle-mobile {
    display: flex !important;
  }

  #theme-toggle-mobile svg {
    opacity: 1 !important;
  }

  /* Hide desktop header on mobile */
  #header-nav,
  header.sticky {
    display: none !important;
  }
}

/* ===== Dark Mode Overrides ===== */
html[data-theme="dark"] .top {
  background-color: #000000cf !important;
  border-bottom: 1px solid #25252585 !important;
}

html[data-theme="dark"] .wrapper-dropdown-5 {
  background-image: url(https://www.qijishow.com/down/assets/images/nav_icon2.png) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

html[data-theme="dark"] .wrapper-dropdown-5 img {
  display: none !important;
}

html[data-theme="dark"] .logo {
  background-image: url(https://www.qijishow.com/down/assets/images/logo2.png) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

html[data-theme="dark"] .logo img {
  display: none !important;
}

html[data-theme="dark"] #pencil {
  background-image: url(https://www.qijishow.com/down/assets/images/pencil_icon2.png) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

html[data-theme="dark"] #pencil img {
  opacity: 0 !important;
}

html[data-theme="dark"] .wrapper-dropdown-5 .dropdown {
  background-color: #121212fa !important;
  height: 100vh !important;
}

html[data-theme="dark"] .wrapper-dropdown-5.active .dropdown {
  margin-top: 42px !important;
  max-height: 100vh !important;
}

html[data-theme="dark"] .index_nav_icon {
  background-color: #2d2d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .index_nav_icon a {
  color: #ffffff !important;
}

/* ===== Dark Mode: invert PNG icons to white ===== */
html[data-theme="dark"] .top img {
  filter: invert(1) brightness(1.8) !important;
  -webkit-filter: invert(1) brightness(1.8) !important;
}

html[data-theme="dark"] #theme-toggle-mobile svg,
html[data-theme="dark"] #theme-toggle-mobile svg * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
