/* Mobile drawer — theme: --main-color (#0d3a7d), accent #bd7b1b */
/* Shell below loads synchronously in Site.Master; responsive-shared/en/ar are deferred (print→all). */

@media (max-width: 991.98px) {
  #siteNav,
  .d-menu-col {
    display: none;
  }

  /* Match deferred responsive-shared.css so header height does not jump when print→all CSS loads */
  .header .header-main,
  .header-wrap {
    min-height: 60px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
  }

  .mih-50:not(.sticky-header),
  .mih-55:not(.sticky-header) {
    min-height: 50px !important;
  }

  .mih-70:not(.sticky-header),
  .mih-80:not(.sticky-header),
  .mih-90:not(.sticky-header) {
    min-height: 60px !important;
  }

  .site-header__logo.mobileview {
    display: block;
  }

  .js-mobile-nav-toggle .fa-solid,
  .js-mobile-nav-toggle .fa-regular {
    display: none;
  }

  .js-mobile-nav-toggle.mobile-nav--open .fa-bars,
  .js-mobile-nav-toggle.mobile-nav--close .icon.fa-xmark {
    display: inline-block;
  }

  body.menuOn:after {
    background: rgba(13, 58, 125, 0.45);
    backdrop-filter: blur(2px);
  }

  .js-mobile-nav-toggle .fa-solid,
  .js-mobile-nav-toggle .fa-regular {
    color: #fff !important;
    background: var(--main-color, #0d3a7d) !important;
    border: 1px solid #bd7b1b !important;
    border-radius: 10px !important;
    padding: 6px 8px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(13, 58, 125, 0.25);
  }

  .page-wrapper .mobile-nav-wrapper {
    display: block;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 4px 0 24px rgba(13, 58, 125, 0.18);
    border-inline-end: 3px solid #bd7b1b;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition:
      transform 0.4s ease-in-out,
      opacity 0.4s ease-in-out,
      visibility 0.4s ease-in-out;
  }

  .page-wrapper.dir_rtl .mobile-nav-wrapper {
    /* inset-inline-start: auto; */
    inset-inline-end: 0;
    transform: translateX(100%);
  }

  .page-wrapper .mobile-nav-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .page-wrapper .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .page-wrapper .mobile-nav-header.closemobileMenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--main-color, #0d3a7d) 0%, #0a2d61 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }

  .page-wrapper .mobile-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .page-wrapper .mobile-nav-title i {
    color: #bd7b1b;
    font-size: 1.1rem;
  }

  .page-wrapper .mobile-nav-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
  }

  /* Override style-shared .closemobileMenu .fa-xmark and .icon.fa-solid chip styles */
  .page-wrapper .mobile-nav-header.closemobileMenu .mobile-nav-close-btn > .fa-xmark,
  .page-wrapper .mobile-nav-header.closemobileMenu .mobile-nav-title > .fa-solid {
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-block !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
  }

  .page-wrapper .mobile-nav-header.closemobileMenu .mobile-nav-close-btn > .fa-xmark {
    color: #fff !important;
    font-size: 1.25rem !important;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 20px;
    scroll-behavior: smooth;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li {
    border: none;
  }

  .page-wrapper .mobile-nav__section {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 18px 6px;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #bd7b1b;
  }

  .page-wrapper .mobile-nav__section--categories::before {
    content: "\f009";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: var(--main-color, #0d3a7d);
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__item--category a {
    padding: 10px 18px;
    padding-inline-start: 28px;
    margin: 1px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__item--category a > span::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-inline-end: 10px;
    border-radius: 50%;
    background: #bd7b1b;
    vertical-align: middle;
    transform: translateY(-1px);
  }

  .page-wrapper .mobile-nav__divider.acLink {
    height: 1px;
    margin: 12px 18px;
    padding: 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(13, 58, 125, 0.2) 20%,
      rgba(189, 123, 27, 0.35) 50%,
      rgba(13, 58, 125, 0.2) 80%,
      transparent
    );
    border: none;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    margin: 2px 10px;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a > i {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(13, 58, 125, 0.08);
    color: var(--main-color, #0d3a7d);
    font-size: 15px;
    line-height: 1;
    text-align: center;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a > span {
    flex: 1;
    line-height: 1.35;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a:hover,
  .page-wrapper .mobile-nav-wrapper #MobileNav li a:focus {
    background: rgba(189, 123, 27, 0.1);
    color: #0a2d61;
    outline: none;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a:hover > i,
  .page-wrapper .mobile-nav-wrapper #MobileNav li a:focus > i {
    background: rgba(189, 123, 27, 0.2);
    color: #9f6716;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li a.ActiveMenu {
    background: rgba(13, 58, 125, 0.1);
    box-shadow: inset 3px 0 0 #bd7b1b;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__item--muted a {
    font-size: 14px;
    color: #555;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__item--muted a > i {
    background: #f3f4f6;
    color: #666;
    font-size: 13px;
    width: 32px;
    height: 32px;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__help {
    margin: 16px 12px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--main-color, #0d3a7d), #0a2d61);
    color: #fff;
    list-style: none;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__help .mobile-nav__help-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__help .mobile-nav__help-title i {
    color: #bd7b1b;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__help .mobile-nav__help-phone {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.03em;
  }

  .page-wrapper .mobile-nav-wrapper #MobileNav li.mobile-nav__help .mobile-nav__help-phone:hover {
    color: #f5d4a8;
  }

  .page-wrapper.dir_rtl .mobile-nav-wrapper #MobileNav li a.ActiveMenu {
    box-shadow: inset -3px 0 0 #bd7b1b;
  }
}
