/* 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: 1024px) {
  .slicknav_menu {
    display: block;
  }

  .menu-bar,
  .menu-bar.is-fixed {
    position: relative !important;
    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*/

  /* Show burger menu on mobile */
  .burger-menu {
    display: flex !important;
  }

  .mobile-menu-bar {
    background: transparent;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  .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: 0;
    background: #ecf0f3;
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 99999;
    opacity: 1;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .wsm-menu nav.menu-active ul {
    left: 0;
  }

  /* Add overlay when menu is active */
  .wsm-menu nav.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
  }

  .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: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wsm-menu ul li a .fas.fa-chevron-down {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

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

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