/* 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;
  }

  .menu-bar {
    position: relative;
    left: 0;
    top: 0;
  }

  .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;
  }

  /* ======================================
     Modern Mobile Menu Styles
     ====================================== */
  
  .mobile-menu-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

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

  @media only screen and (min-width: 783px) {
    .admin-bar .mobile-menu-bar {
      top: 32px;
    }
  }

  .mobile-menu-bar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 15px;
  }

  /* Hamburger Button */
  .mobile-menu-bar button.menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
  }

  .mobile-menu-bar button.menu-btn:hover,
  .mobile-menu-bar button.menu-btn:focus {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    outline: none;
  }

  /* Hamburger Icon */
  .mobile-menu-bar button.menu-btn .menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
  }

  .mobile-menu-bar button.menu-btn .menu-icon::before,
  .mobile-menu-bar button.menu-btn .menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
  }

  .mobile-menu-bar button.menu-btn .menu-icon::before {
    top: -6px;
  }

  .mobile-menu-bar button.menu-btn .menu-icon::after {
    bottom: -6px;
  }

  /* Hamburger to X animation */
  .mobile-menu-bar button.menu-btn[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .mobile-menu-bar button.menu-btn[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-bar button.menu-btn[aria-expanded="true"] .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  .mobile-menu-bar button.menu-btn .mopen,
  .mobile-menu-bar button.menu-btn .mclose {
    display: inline-block;
  }

  .mobile-menu-bar button.menu-btn .mclose {
    display: none;
  }

  .mobile-menu-bar button.menu-btn[aria-expanded="true"] .mopen {
    display: none;
  }

  .mobile-menu-bar button.menu-btn[aria-expanded="true"] .mclose {
    display: inline-block;
  }

  /* Mobile Menu Header with Close Button */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 15px;
    background: linear-gradient(135deg, #ff376c 0%, #e73c7e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-header .menu-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-menu-header .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .mobile-menu-header .mobile-menu-close:hover,
  .mobile-menu-header .mobile-menu-close:focus {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
    outline: none;
  }

  /* Mobile Navigation Container */
  nav#mobile-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 999999;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
  }

  nav#mobile-navigation.menu-active {
    left: 0;
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 99998;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  nav#mobile-navigation.menu-active ~ .mobile-menu-overlay,
  body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
  }


  /* Menu List Styles */
  .wsm-menu nav > ul,
  .wsm-menu nav div > ul,
  nav#mobile-navigation > ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    position: static;
    visibility: visible;
    opacity: 1;
    background: transparent;
    box-shadow: none;
  }

  .wsm-menu ul,
  nav#mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Menu Items */
  .wsm-menu ul li,
  nav#mobile-navigation ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
  }

  .wsm-menu ul li:last-child,
  nav#mobile-navigation ul li:last-child {
    border-bottom: none;
  }

  /* Menu Links */
  .wsm-menu ul li a,
  nav#mobile-navigation ul li a {
    display: block;
    padding: 16px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
  }

  .wsm-menu ul li a:hover,
  .wsm-menu ul li a:focus,
  nav#mobile-navigation ul li a:hover,
  nav#mobile-navigation ul li a:focus {
    background: rgba(255, 55, 108, 0.15);
    color: #ff376c;
    border-left-color: #ff376c;
    padding-left: 30px;
  }

  .wsm-menu ul li.current-menu-item > a,
  .wsm-menu ul li.current_page_item > a,
  nav#mobile-navigation ul li.current-menu-item > a,
  nav#mobile-navigation ul li.current_page_item > a {
    background: rgba(255, 55, 108, 0.2);
    color: #ff376c;
    border-left-color: #ff376c;
  }

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

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

  /* Submenu Toggle Icon */
  .menu-item-has-children > i,
  .page_item_has_children > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-item-has-children > i:hover,
  .menu-item-has-children > i:focus,
  .page_item_has_children > i:hover,
  .page_item_has_children > i:focus {
    background: rgba(255, 55, 108, 0.2);
    color: #ff376c;
    outline: none;
  }

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

  .menu-item-has-children .sub-menu,
  .page_item_has_children .children {
    width: 100%;
  }

  /* Submenu Styles */
  #wsm-menu ul ul.sub-menu,
  nav#mobile-navigation ul ul.sub-menu,
  nav#mobile-navigation ul ul.children {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s 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.children,
  #wsm-menu ul .page_item_has_children.focus > ul.children,
  nav#mobile-navigation ul .menu-item-has-children.clicked > ul.sub-menu,
  nav#mobile-navigation ul .menu-item-has-children.focus > ul.sub-menu {
    max-height: 1000px;
    visibility: visible;
    opacity: 1;
    padding: 10px 0;
  }

  /* Submenu Links */
  #wsm-menu ul ul.sub-menu li a,
  nav#mobile-navigation ul ul.sub-menu li a,
  nav#mobile-navigation ul ul.children li a {
    padding-left: 45px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
  }

  #wsm-menu ul ul.sub-menu li a:hover,
  nav#mobile-navigation ul ul.sub-menu li a:hover {
    padding-left: 50px;
  }

  /* Nested Submenus */
  #wsm-menu ul ul.sub-menu ul.sub-menu li a,
  nav#mobile-navigation ul ul.sub-menu ul.sub-menu li a {
    padding-left: 65px;
    font-size: 13px;
  }

  /* Close Button in Menu */
  .mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
  }

  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: #ff376c;
    transform: rotate(90deg);
    outline: none;
  }

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

  /* Menu Animation for Items */
  nav#mobile-navigation.menu-active ul li {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
  }

  nav#mobile-navigation.menu-active ul li:nth-child(1) { animation-delay: 0.1s; }
  nav#mobile-navigation.menu-active ul li:nth-child(2) { animation-delay: 0.15s; }
  nav#mobile-navigation.menu-active ul li:nth-child(3) { animation-delay: 0.2s; }
  nav#mobile-navigation.menu-active ul li:nth-child(4) { animation-delay: 0.25s; }
  nav#mobile-navigation.menu-active ul li:nth-child(5) { animation-delay: 0.3s; }
  nav#mobile-navigation.menu-active ul li:nth-child(6) { animation-delay: 0.35s; }
  nav#mobile-navigation.menu-active ul li:nth-child(7) { animation-delay: 0.4s; }
  nav#mobile-navigation.menu-active ul li:nth-child(8) { animation-delay: 0.45s; }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Scrollbar Styling for Menu */
  nav#mobile-navigation::-webkit-scrollbar {
    width: 5px;
  }

  nav#mobile-navigation::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  nav#mobile-navigation::-webkit-scrollbar-thumb {
    background: rgba(255, 55, 108, 0.5);
    border-radius: 10px;
  }

  nav#mobile-navigation::-webkit-scrollbar-thumb:hover {
    background: #ff376c;
  }
}

/* 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;
  }

  /* Smaller mobile adjustments */
  nav#mobile-navigation {
    width: 90%;
    max-width: 300px;
  }

  .mobile-menu-bar button.menu-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  .wsm-menu ul li a,
  nav#mobile-navigation ul li a {
    padding: 14px 20px;
    font-size: 14px;
  }
}

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