/* NFP Menu Widget Styles */

.nfp-menu-widget {
  /* Container for the menu widget */
}

.nfp-menu-horizontal .nfp-menu-list {
  display: flex;
  flex-direction: row;
}

.nfp-menu-vertical .nfp-menu-list {
  display: flex;
  flex-direction: column;
}

.nfp-menu-list,
.nfp-menu-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nfp-menu-submenu {
  /* Always show submenus inline, not as dropdowns */
  display: flex;
  flex-direction: row;
}

.nfp-menu-vertical .nfp-menu-submenu {
  flex-direction: column;
}

.nfp-menu-submenu > li > a {
  display: block;
}

/* Add more styles as needed for active, hover, etc. */

/* Mega menu main layout */
.nfp-mega-menu {
  display: flex;
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
}
#jet-mega-menu-item-13179 > div.jet-mega-menu-mega-container > div {
  padding: 0;
}
/* Left: Main categories */
.nfp-mega-menu-parents {
  width: 220px;
  min-width: 160px;
  max-width: 280px;
  background: #fff;
  box-sizing: border-box;
}
.nfp-mega-menu-parent {
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 500;
  color: #222;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.nfp-mega-menu-parent.active,
.nfp-mega-menu-parent:hover {
  background: #f5f5f5;
  color: #000;
}

/* Right: Subcategory container */
.nfp-mega-menu-grid {
  flex: 1;
  padding: 0px 32px 0px 40px;
  background: #fafafa;
  min-height: 400px;
  box-sizing: border-box;
}
.nfp-mega-menu-panel {
  display: none;
}
.nfp-mega-menu-panel[data-active="1"] {
  display: block;
}

/* Grid inside subcategory container */
.nfp-mega-menu-grid-inner {
  width: 100%;
  display: grid;
  gap: 32px;
}
.nfp-mega-menu-child {
  background: none;
  padding: 0 0 16px 0;
  min-height: 80px;
  box-sizing: border-box;
}
.nfp-mega-menu-child-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  cursor: pointer;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid #eee;
  margin-top: 8px;
}
.nfp-mega-menu-child-title:hover {
  color: #0073e6;
}
.nfp-mega-menu-subchild {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 4px;
  margin-left: 0;
  padding-left: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.nfp-mega-menu-subchild:hover {
  color: #0073e6;
}

.nfp-mega-menu-parent,
.nfp-mega-menu-child-title,
.nfp-mega-menu-subchild {
  display: block;
  text-decoration: none;
}

.nfp-mega-menu,
.nfp-mega-menu-parent,
.nfp-mega-menu-child-title,
.nfp-mega-menu-subchild {
  font-size: 0.9rem;
}
ul.nfp-mega-menu-mobile-main-list.nfp-mega-menu-mobile-extra-menu {
  padding: 0!important;
}
/* Mobile Responsive Styles */
@media screen and (max-width: 767px) {
  .nfp-mega-menu {
    background: #f7f8fa;
    font-family: 'Inter', Arial, sans-serif;
    padding: 16px 0;
    min-height: 100vh;
  }
  /* Main categories list */
  .nfp-mega-menu-mobile-main-list {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .nfp-mega-menu-mobile-maincat-li {
    margin: 0;
    padding: 0;
  }
  .nfp-mega-menu-mobile-maincat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e3e6ea;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    user-select: none;
  }
  .nfp-mega-menu-mobile-maincat:active,
  .nfp-mega-menu-mobile-maincat:hover {
    background: #eaf3ff;
    color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transform: scale(1.03);
  }

  .nfp-mega-menu-maincat-chevron {
    margin-left: 12px;
    font-size: 1.2em;
    color: #888;
    flex-shrink: 0;
  }

  /* Back button styling */
  .nfp-mega-menu-mobile-back {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 999px;
    color: #0056b3;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 18px 8px 12px;
    margin: 0 0 18px 16px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: background 0.18s, color 0.18s;
  }
  .nfp-mega-menu-mobile-back:hover {
    background: #eaf3ff;
    color: #003366;
  }

  /* Accordion styling */
  .nfp-mega-menu-mobile-accordion {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .nfp-mega-menu-mobile-acc-li {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e3e6ea;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: box-shadow 0.18s;
  }
  .nfp-mega-menu-mobile-acc-header {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    padding: 14px 20px 14px 16px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.18s, color 0.18s;
  }
  /* Remove the :after icon, use a span instead */
  .nfp-mega-menu-acc-chevron {
    margin-left: auto;
    font-size: 1.3em;
    color: #888;
    padding-left: 12px;
    transition: color 0.2s;
    pointer-events: none;
  }
  .nfp-mega-menu-mobile-acc-header.active .nfp-mega-menu-acc-chevron {
    color: #0056b3;
    /* Optionally, you can change the icon to minus with JS if desired */
  }
  .nfp-mega-menu-mobile-acc-panel {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 12px;
    background: #f7f8fa;
    border-top: 1px solid #e3e6ea;
    animation: nfp-acc-open 0.25s ease;
  }
  @keyframes nfp-acc-open {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Sub-subcategory links */
  .nfp-mega-menu-subchild {
    display: block;
    padding: 10px 12px 10px 8px;
    font-size: 0.98rem;
    color: #0056b3;
    border-radius: 6px;
    margin: 2px 0;
    text-decoration: none;
    transition: background 0.16s, color 0.16s;
  }
  .nfp-mega-menu-subchild:hover {
    background: #eaf3ff;
    color: #003366;
    text-decoration: underline;
  }
  .nfp-mega-menu-mobile-main, .nfp-mega-menu-mobile-subcats {
    width: 100%;
  }
}

/* Hide mobile menu containers on desktop, show only desktop menu */
@media (min-width: 768px) {
  .nfp-mega-menu-mobile-main,
  .nfp-mega-menu-mobile-subcats {
    display: none !important;
  }
  .nfp-mega-menu-desktop {
    display: flex !important;
    width: 100%;
}
}

/* Hide desktop menu on mobile, show only mobile containers */
@media (max-width: 767px) {
  .nfp-mega-menu-mobile-main,
  .nfp-mega-menu-mobile-subcats {
    display: block;
  }
  .nfp-mega-menu-desktop {
    display: none !important;
  }
} 