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

  /* ===== CLEAN MOBILE MENU CSS ===== */
  
  .mobile-menu-bar {
    background: var(--white);
    display: block;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1002;
  }

  .mobile-menu-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .mobile-menu-bar button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: auto;
  }

  .mobile-menu-bar button:hover {
    transform: translateY(-1px);
  }

  /* Mobile Navigation Container */
  nav#mobile-navigation {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  /* Menu List - HIDDEN by default */
  #mobile-navigation ul {
    background: var(--white);
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    padding: 30px 30px 30px;
    margin: 0;
    list-style: none;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
  }

  /* Menu becomes VISIBLE when navigation has menu-active class */
  #mobile-navigation.menu-active ul {
    transform: translateX(0);
  }

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

  /* Menu Items */
  #mobile-navigation ul li {
    border-bottom: 1px solid #3a3a3a;
    margin: 0;
  }

  #mobile-navigation ul li:last-child {
    border-bottom: none;
  }

  #mobile-navigation ul li a {
    padding: 18px 0;
    text-decoration: none;
    display: block;
    color: var(--black);
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    padding-left: 20px;
  }

  #mobile-navigation ul li a:hover,
  #mobile-navigation ul li a:focus {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background: #f8f9fa;
    padding-left: 30px;
  }

  /* Current page styling */
  #mobile-navigation ul li.current-menu-item > a,
  #mobile-navigation ul li.current_page_item > a {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background: #f8f9fa;
    font-weight: 700;
  }

  /* Submenu Styles */
  #mobile-navigation .menu-item-has-children {
    position: relative;
  }

  #mobile-navigation .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
  }

  #mobile-navigation .menu-item-has-children.submenu-open > a::after {
    transform: rotate(45deg);
  }

  #mobile-navigation .menu-item-has-children .sub-menu,
  #mobile-navigation .page_item_has_children .children {
    background: #f8f9fa;
    margin-left: 20px;
    margin-top: 10px;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobile-navigation .menu-item-has-children.submenu-open .sub-menu,
  #mobile-navigation .page_item_has_children.submenu-open .children {
    max-height: 500px;
  }

  #mobile-navigation .menu-item-has-children .sub-menu li a,
  #mobile-navigation .page_item_has_children .children li a {
    padding: 12px 20px;
    font-size: 16px;
    color: #666;
    border-left: none;
  }

  #mobile-navigation .menu-item-has-children .sub-menu li a:hover,
  #mobile-navigation .page_item_has_children .children li a:hover {
    color: var(--color-primary);
    background: white;
    padding-left: 30px;
  }

  /* Hide text spans in button */
  .mobile-menu-bar button span.mclose {
    display: none;
  }

  /* Button styling when menu is active - stays in same position */
  .mobile-menu-bar button[aria-expanded="true"] {
    background: #e74c3c;
    z-index: 1001;
  }

  .mobile-menu-bar button[aria-expanded="true"]:hover {
    background: #c0392b;
  }

  .hero-img {
    justify-content: flex-end;
  }
    .home-intro .content h1{
      font-size: 40px;
    }
    a.intro-btn{
      padding: 0.8rem 2.2rem;
      font-size: 15px;
    }


}

/* 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;
  }
    .home-all-content {
      flex-direction: column;
    }
    .home-intro .content h1 {
      font-size: 40px;
    }
}

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