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

  /* Mobile Menu style*/

  .mobile-menu-bar {
    background: #333;
    display: block;
  }

  .mobile-menu-bar button {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }

  nav#mobile-navigation {
    position: relative;
  }

  .wsm-menu nav div>ul {
    box-shadow: 0px 5px 42px -6px rgb(92 91 92);
    padding: 20px;
    margin-bottom: 10px;
    background: var(---light-body);
    position: absolute;
    left: auto;
    right: 0;
    top: 80px;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    min-width: 200px;
  }

  .wsm-menu nav.menu-active ul {
    top: 40px;
    visibility: visible;
    opacity: 1;
  }

  .wsm-menu div>ul {
    margin: 0;
    padding: 0;
  }

  .wsm-menu ul li a {
    padding: 7px 10px;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    display: block;
  }

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

  .menu-item-has-children {
    display: flex;
    flex-flow: row wrap;
  }

  .menu-item-has-children>a {
    width: 80%;
    min-width: 250px;
  }

  .menu-item-has-children .sub-menu {
    display: block;
    width: 100%;
  }

  span.mclose {
    display: none;
  }

  .menu-item-has-children>i {
    padding: 10px 15px;
    margin-left: auto;
  }

  #wsm-menu ul ul.sub-menu {
    visibility: hidden;
    max-height: 0;
    height: auto;
    opacity: 0;
    transition: 0.5s;
  }

  #wsm-menu ul .menu-item-has-children.clicked>ul.sub-menu,
  #wsm-menu ul .menu-item-has-children.focus>ul.sub-menu {
    max-height: 1000px;
    visibility: visible;
    opacity: 1;
    height: auto;
  }

  /* Overlay & submenu-toggle improvements */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .submenu-toggle {
    border: 0;
    background: transparent;
    padding: 10px 15px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
  }
  .submenu-toggle::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f078"; /* chevron-down */
    font-weight: 900;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
    margin-left: 6px;
  }
  .menu-item-has-children.submenu-open > .submenu-toggle::after {
    transform: rotate(180deg);
  }
  #wsm-menu ul .menu-item-has-children.submenu-open>ul.sub-menu {
    max-height: 1000px;
    visibility: visible;
    opacity: 1;
    height: auto;
  }
}

/* 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;
  }
    section.home-intro {
      height: auto;
    }
    #affsearch input[type="search"] {
      min-width: auto;
    }
    
    form.search-form input,
    form.search-form label {
      width: 100%;
      margin-bottom: 5px;
    }
    #affsearch .sclose {
      right: 5px;
      top: 5px;
    }
}

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