/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {}

/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {}

/* Mobile Layout: 320px. */
@media only screen and (max-width: 991px) {
  .slicknav_menu {
    display: block;
  }

  /* Hide desktop menu bar on mobile */
  .menu-bar {
    display: none;
  }
.mobile-menu-header a{
  text-decoration: inherit;
}
  .npaper.search-box {
    margin-bottom: 7px;
  }

  h1 {
    font-size: 35px;
  }

  h1.page-title {
    font-size: 20px;
  }

  h2 {
    font-size: 28px;
  }

  nav#site-navigation {
    display: none;
  }

  /* ========================================
     IMPROVED MOBILE MENU STYLES
     ======================================== */

  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Mobile Menu Bar */
  .mobile-menu-bar {
    background: var(--color-primary);
    display: block;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .admin-bar .mobile-menu-bar {
    top: 46px;
  }

  /* Mobile Menu Header with Logo */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-header .head-logo-sec {
    flex: 1;
  }

  /* Mobile Search Icon */
  .mobile-search-icon {
    margin-right: 10px;
  }

  .mobile-search-icon a {
    color: #fff;
    font-size: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-icon a:hover,
  .mobile-search-icon a:focus {
    opacity: 0.8;
  }

  /* Mobile Menu Actions Container */
  .mobile-menu-actions {
    display: flex;
    align-items: center;
  }

  .mobile-menu-header .head-logo-sec .site-title {
    font-size: 18px;
    margin: 0;
  }

  .mobile-menu-header .head-logo-sec .site-title a {
    color: #fff;
  }

  .mobile-menu-header .head-logo-sec .site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
  }

  .mobile-menu-header .brand-logo img {
    max-height: 40px;
    width: auto;
  }

  /* Hamburger Button */
  .mobile-menu-bar button.menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-left: auto;
  }

  .mobile-menu-bar button.menu-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* Animated Hamburger Icon */
  .hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
  }

  .hamburger-inner::before {
    top: -7px;
  }

  .hamburger-inner::after {
    bottom: -7px;
  }

  /* Hamburger Animation - Active State */
  .menu-btn.is-active .hamburger-inner {
    background-color: transparent;
  }

  .menu-btn.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-btn.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  .menu-text.mclose {
    display: none;
  }

  .menu-btn.is-active .menu-text.mopen {
    display: none;
  }

  .menu-btn.is-active .menu-text.mclose {
    display: inline;
  }

  /* Mobile Navigation Container */
  nav#mobile-navigation {
    position: relative;
  }

  /* Mobile Menu Dropdown */
  .wsm-menu nav div > ul {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    background: var(--white);
    position: absolute;
    left: auto;
    right: 0;
    top: 60px;
    z-index: 99999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    border-radius: 0 0 12px 12px;
  }

  .wsm-menu nav.menu-active div > ul {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    opacity: 1;
    padding: 10px 0;
    min-width: 250px;
  }

  /* Menu Items */
  .wsm-menu div > ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .wsm-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .wsm-menu ul li:last-child {
    border-bottom: none;
  }

  .wsm-menu ul li a {
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    color: var(--color-heding);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
  }

  .wsm-menu ul li a:hover,
  .wsm-menu ul li a:focus {
    background: var(--color-primary);
    color: #fff;
  }

  .wsm-menu ul li.current-menu-item > a,
  .wsm-menu ul li.current_page_item > a {
    color: var(--color-primary);
    background: rgba(250, 91, 15, 0.1);
  }

  /* Menu Items with Children */
  .menu-item-has-children,
  .page_item_has_children {
    display: flex;
    flex-flow: row wrap;
    position: relative;
  }

  .menu-item-has-children > a,
  .page_item_has_children > a {
    flex: 1;
    min-width: 0;
  }

  /* Submenu Toggle Button */
  .submenu-toggle {
    width: 50px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-gray);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
  }

  .submenu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
  }

  .submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
  }

  .menu-item-has-children.clicked > .submenu-toggle i,
  .page_item_has_children.clicked > .submenu-toggle i,
  .menu-item-has-children.focus > .submenu-toggle i,
  .page_item_has_children.focus > .submenu-toggle i {
    transform: rotate(180deg);
  }

  /* Submenus */
  .menu-item-has-children .sub-menu,
  .page_item_has_children .sub-menu {
    display: block;
    width: 100%;
  }

  #wsm-menu ul ul.sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.03);
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  #wsm-menu ul .menu-item-has-children.clicked > ul.sub-menu,
  #wsm-menu ul .menu-item-has-children.focus > ul.sub-menu,
  #wsm-menu ul .page_item_has_children.clicked > ul.sub-menu,
  #wsm-menu ul .page_item_has_children.focus > ul.sub-menu {
    max-height: 500px;
    opacity: 1;
  }

  #wsm-menu ul ul.sub-menu li a {
    padding-left: 35px;
    font-size: 14px;
  }

  #wsm-menu ul ul.sub-menu ul.sub-menu li a {
    padding-left: 50px;
    font-size: 13px;
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hide old span elements */
  span.mclose,
  span.mopen {
    display: none;
    margin-left: 10px;
  }
}

/* Wide Mobile Layout: 480px. */
@media only screen and (max-width: 767px) {
  h1 {
    font-size: 35px;
  }

  h1.page-title {
    font-size: 24px;
  }

  h2 {
    font-size: 30px;
  }
  .menu-bar.is-fixed {
    position: inherit;
  }
}

/* Wide Mobile Layout: 480px. */
@media only screen and (max-width: 479px) {
  .header-search-form {
    right: 0;
  }
}