/* Base Setup */
div#hs_cos_wrapper_widget_1668520150455 { display: none; }
.hs-hamburger { display: none; }

.hs-navbar-wrapper {
  width: 100%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.hs-navbar-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.hs-nav-logo img { height: 60px; width: auto; display: block; }

/* Main Menu Items */
.hs-nav-menu { display: flex; align-items: center; }

.hs-dynamic-nav-list {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-item { position: static; list-style: none !important; }

.nav-link {
  text-decoration: none;
  color: #4e5c80;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 25px 0;
  transition: color 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.nav-link:hover { color: #2C4B96; }

.nav-item.has-mega-menu .nav-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #4e5c80;
  border-bottom: 2px solid #4e5c80;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s ease;
}

.nav-item.has-mega-menu:hover .nav-link::after {
  transform: translateY(2px) rotate(225deg);
  border-color: #2C4B96;
}

/* Mega Menu Container */
.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 90%;
  max-width: 1200px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  padding: 40px;
}

.nav-item.has-mega-menu:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.mega-menu-section { border-right: 1px solid #e2e8f0; padding-right: 20px; }
.mega-menu-section:last-child { border-right: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.section-icon { width: 32px; height: 32px; object-fit: contain; }
.section-header h4 { color: #2C4B96; font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; font-family: 'Lato', sans-serif; }

.section-links { list-style: none !important; padding: 0; margin: 0; }
.section-links li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.section-links li::before {
  content: "•";
  color: #f26522;
  font-size: 22px;
  position: absolute;
  left: 0;
  top: -2px;
}

.section-links li a { color: #64748b; font-size: 16px; text-decoration: none; transition: all 0.2s; font-family: 'Lato', sans-serif; }
.section-links li a:hover { color: #2C4B96; font-weight: 600; }

.hs-btn-quote {
  background-color: #44BC72;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s ease;
}
.hs-btn-quote:hover { background-color: #38a160; }


@media (max-width: 1440px) {

.nav-link{
      font-size: 16px;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE (<= 1024px)
   ========================================== */
@media (max-width: 1024px) {
  
  .hs-hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hs-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #2C4B96;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger Animations */
  .hs-hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hs-hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hs-hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .hs-nav-cta { display: none; }

  /* Mobile Menu Parent */
  .hs-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none; /* Default Hidden */
    flex-direction: column;
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* JS class to show menu */
  .hs-nav-menu.menu-open { display: flex !important; }

  .hs-dynamic-nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-item { width: 100%; border-bottom: 1px solid #e2e8f0; }
  .nav-link { justify-content: space-between; padding: 20px 30px; font-size:12px; }

  .mega-menu-wrapper {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 30px 20px 30px;
    background: #f8fafc;
    display: none;
  }

  .nav-item.has-mega-menu:hover .mega-menu-wrapper {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .nav-item.has-mega-menu.mobile-open .mega-menu-wrapper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 10px 20px 20px 20px;
    background: #f8fafc;
  }

  .nav-item.has-mega-menu.mobile-open .nav-link::after {
    transform: translateY(2px) rotate(225deg);
    border-color: #2C4B96;
  }

  .mega-menu-grid { grid-template-columns: 1fr; gap: 20px; }
  .mega-menu-section { border-right: none; padding-right: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
  .mega-menu-section:last-child { border-bottom: none; padding-bottom: 0; }

  /* Inner Accordion */
  .section-links { display: none !important; padding-left: 10px; margin-top: 15px; }
  .mega-menu-section.inner-open .section-links { display: block !important; }
  
  .section-header {
    cursor: pointer;
    justify-content: startn;
    padding-right: 15px;
    position: relative;
    border-bottom: none;
    padding-bottom: 0;
  }
  .section-header::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #2C4B96;
    border-bottom: 2px solid #2C4B96;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }
  .mega-menu-section.inner-open .section-header::after {
    transform: rotate(225deg);
    margin-top: 5px;
  }
  .section-header h4, .section-header img { pointer-events: none; }
}