/* --- accessibility improvement --- */
@media (min-width:1050px) {
  .hd-mega-menu .hamburger {
    display: none !important;
    visibility: hidden;
  }
}

/* --- Header States --- */
.body-container-wrapper {margin: 72px 0 0;}
.hd-mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hd-mega-menu.header-hidden {
  transform: translateY(-100%);
}

/* --- Header Container --- */
.hd-mega-menu .nav-container {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.hd-mega-menu .nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hd-mega-menu .logo-link img {
  max-height: 38px;
  width: auto;
  display: block;
}

.hd-mega-menu .nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* --- Navigation --- */
.hd-mega-menu .nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: normal;
  gap: 16px;
}

/* Base targetable hit area */
.hd-mega-menu .nav-links .nav-item .nav-trigger {
  padding: 8px 10px;             /* gives the bg somewhere to live */
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover + “open” (sticky) state */
.hd-mega-menu .nav-links .nav-item:hover > .nav-trigger,
.hd-mega-menu .nav-links .nav-item.is-open > .nav-trigger {
  color: #004eba;
  background: rgba(18,108,238,0.10);  /* subtle blue pill */
}

/* Optional: keyboard parity */
.hd-mega-menu .nav-links .nav-item:focus-within > .nav-trigger {
  color: #004eba;
  background: rgba(18,108,238,0.10);
}

/* Distinct keyboard focus ring on nav triggers */
.hd-mega-menu .nav-links .nav-item .nav-trigger:focus-visible {
  outline: 2px solid #126cee;
  outline-offset: 2px;
  background: rgba(18,108,238,0.10);
  color: #004eba;
}

.hd-mega-menu .nav-links .nav-item button,
.hd-mega-menu .nav-links .nav-item a {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: #171717;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-mega-menu .nav-links .nav-item:hover button,
.hd-mega-menu .nav-links .nav-item:hover a {
  color: #004eba;
}

/* --- Icons / Buttons --- */
.hd-mega-menu .search-btn,
.hd-mega-menu .lang-btn,
.hd-mega-menu .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Language Dropdown --- */
.hd-mega-menu .lang-switcher {
  position: relative;
}

.hd-mega-menu .lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 160px;
  z-index: 2000;
}

.hd-mega-menu .lang-switcher.active .lang-dropdown {
  display: block;
}

/* --- Search + Language button hover/active states --- */
.hd-mega-menu .search-btn,
.hd-mega-menu .lang-btn {
  border-radius: 8px;
  padding: 8px 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover and focus (match .nav-trigger hover style) */
.hd-mega-menu .search-btn:hover,
.hd-mega-menu .lang-btn:hover {
  background: rgba(18,108,238,0.10);
}

.hd-mega-menu .search-btn:focus-visible,
.hd-mega-menu .lang-btn:focus-visible {
  background: rgba(18,108,238,0.10);
  outline: 2px solid #126cee;
  outline-offset: 2px;
}

.hd-mega-menu .search-btn svg path,
.hd-mega-menu .lang-btn svg path {
  transition: stroke 0.2s ease;
}

.hd-mega-menu .search-btn:hover svg path,
.hd-mega-menu .search-btn:focus-visible svg path,
.hd-mega-menu .lang-btn:hover svg path,
.hd-mega-menu .lang-btn:focus-visible svg path {
  stroke: #004eba;
}

/* Optional: when active/open */
.hd-mega-menu .lang-switcher.active .lang-btn {
  background: rgba(18,108,238,0.10);
}
.hd-mega-menu .lang-switcher.active .lang-btn svg path {
  stroke: #004eba;
}


/* --- Mega Menu Panel --- */
.hd-mega-menu .mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-top: 1px solid #e5e7eb;
  animation: fadeIn 0.25s ease-out;
  z-index: 9999;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255,255,255,0.85);       
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); 
  border: 1px solid rgba(255,255,255,0.35);  
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* Fallback: increase opacity when backdrop-filter isn’t supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hd-mega-menu .mega-menu { background: rgba(255,255,255,0.96); }
}

.hd-mega-menu .mega-menu.active {
  display: block;
}

/* --- Mega Menu Layout --- */
.hd-mega-menu .mega-menu-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  position: relative;
  box-sizing: border-box;
}

.hd-mega-menu .mega-menu-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 66%;
  width: 1px;
  height: 100%;
  background: #e5e7eb;
}

.hd-mega-menu .mega-col.left .mega-heading, .hd-mega-menu .mega-col.right .mega-heading {
  font-weight: 400;
  font-size: 14px;
  color: #004eba;
  margin: 0 0 20px;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* --- Left Column --- */
.hd-mega-menu .mega-col.left h4 {
  font-weight: 400;
  font-size: 14px;
  color: #004eba;
  margin: 0 0 20px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.hd-mega-menu .mega-col.left ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px 40px;
}

.hd-mega-menu .mega-col.left li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Make each row a card */
.hd-mega-menu .mega-col.left li{
  padding:12px 14px;
  border-radius:12px;
  border: 1px solid transparent; 
  transition:background .3s, box-shadow .18s, transform .18s;
  cursor:pointer;

}
.hd-mega-menu .mega-col.left li:hover,
.hd-mega-menu .mega-col.left li:focus-within{
  transition:background .3s, box-shadow .18s, transform .18s;
  background:rgba(18,108,238,.10); /* frosted blue */
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  border-color: #c7deff; 
}

/* Keep text colors stable (no blue title-on-hover) */
.hd-mega-menu .mega-col.left a{ color:#171717; }
.hd-mega-menu .mega-col.left li:hover p{ color:#1f2937; }

/* Icon as a badge */
.hd-mega-menu .mega-col.left .icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px;
  padding: 8px;
  background:#eef5ff; color:#126cee;   /* closer to your example */
  font-size:22px; line-height:1; flex-shrink:0;
}
.hd-mega-menu .mega-col.left li:hover .icon{ background:#e1ecff; color:#0d56cf; }



.hd-mega-menu .mega-col.left .icon {
  font-size: 20px;
  color: #004eba;
  margin-top: 2px;
}

.hd-mega-menu .mega-col.left a {
  font-weight: 700;
  font-size: 15px;
  color: #171717;
  text-decoration: none;
  transition: color 0.2s ease;
}


/* Row hover/focus drives the title color (not just text hover) */
.hd-mega-menu .mega-col.left li:hover .menu-title,
.hd-mega-menu .mega-col.left li:focus-within .menu-title {
  color: #004eba;
}


.hd-mega-menu .mega-col.left p {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 2px 0 0;
}

/* --- Right Column --- */
.hd-mega-menu .mega-col.right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hd-mega-menu .mega-col.right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-mega-menu .mega-col.right ul li a {
  font-weight: 600;
  font-size: 15px;
  color: #171717;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-mega-menu .mega-col.right ul li a:hover {
  color: #004eba;
}

/* --- Desktop-only hover arrow for right-column list links --- */
@media (min-width: 1049px) {
  .hd-mega-menu .mega-col.right ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
  }

  .hd-mega-menu .mega-col.right ul li a::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24' fill='%231f1f1f'><path d='M646-440H200q-17 0-28.5-11.5T160-480q0-17 11.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T589-691l183 183q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L589-269q-12 12-28.5 11.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/></svg>") no-repeat center / contain;
    transform: translateX(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  }

  .hd-mega-menu .mega-col.right ul li a:hover::after,
  .hd-mega-menu .mega-col.right ul li a:focus-visible::after {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24' fill='%23126cee'><path d='M646-440H200q-17 0-28.5-11.5T160-480q0-17 11.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T589-691l183 183q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L589-269q-12 12-28.5 11.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/></svg>") no-repeat center / contain;
    transform: translateX(6px);
    opacity: 1;
  }
}


/* --- Cards --- */
.hd-mega-menu .right-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hd-mega-menu .product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f5f5f5;
  border: 1px solid #ededed;
  border-radius: 8px;
  text-decoration: none;
  padding: 12px 16px;
  transition: transform 0.2s ease;
}


.hd-mega-menu .product-card:hover {
  background: hsla(0, 0%, 100%, .8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  border: 1px solid #c7deff;
}

.hd-mega-menu .product-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.hd-mega-menu .product-card .card-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
  color: #111;
}

.hd-mega-menu .product-card:hover .card-title,
.hd-mega-menu .featured-card:hover .card-title {
  color: #004eba;
}

.hd-mega-menu .product-card p {
  font-size: 13px;
  color: #555;
  margin: 0;
}
/* --- Featured Card (Right Column Highlight) --- */
.hd-mega-menu .featured-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border: 1px solid #ededed;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hd-mega-menu .featured-card:hover {
  background: hsla(0, 0%, 100%, .8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  border: 1px solid #c7deff;
}

.hd-mega-menu .featured-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
}

.hd-mega-menu .featured-text {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hd-mega-menu .featured-text .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #171717;
  margin: 0;
}

/* --- Hover arrow for product + featured cards --- */
.hd-mega-menu .product-card .card-title,
.hd-mega-menu .featured-card .card-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Base (hidden) arrow – same shape, gray fill */
.hd-mega-menu .product-card .card-title::after,
.hd-mega-menu .featured-card .card-title::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24' fill='%231f1f1f'><path d='M646-440H200q-17 0-28.5-11.5T160-480q0-17 11.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T589-691l183 183q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L589-269q-12 12-28.5 11.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/></svg>") no-repeat center / contain;
  transform: translateX(0);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* Animate + recolor on hover */
.hd-mega-menu .product-card:hover .card-title::after,
.hd-mega-menu .featured-card:hover .card-title::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24' fill='%23126cee'><path d='M646-440H200q-17 0-28.5-11.5T160-480q0-17 11.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T589-691l183 183q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L589-269q-12 12-28.5 11.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/></svg>") no-repeat center / contain;
  transform: translateX(6px);
  opacity: 1;
}


.hd-mega-menu .featured-text p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.hd-mega-menu .featured-text .cta-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #004eba;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-mega-menu .featured-text .cta-link:hover {
  text-decoration: underline;
  color: #003fa8;
}

/* --- Mega Footer (Enhanced CTA version) --- */
.hd-mega-menu .mega-footer .acolad-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
}

.hd-mega-menu .mega-footer {
  width: 100%;
  border-top: 1px solid #e5e7eb;
  padding: 18px 32px;
  box-sizing: border-box;
}

.hd-mega-menu .mega-footer .footer-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hd-mega-menu .mega-footer .footer-cta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hd-mega-menu .mega-footer .footer-cta-text {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.hd-mega-menu .mega-footer .footer-link-left {
  font-weight: 600;
  font-size: 14px;
  color: #004eba;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.hd-mega-menu .mega-footer .footer-link-left:hover {
  text-decoration: underline;
  color: #003fa8;
}

.hd-mega-menu .mega-footer .footer-link-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #004eba;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.hd-mega-menu .mega-footer .footer-link-right:hover {
  text-decoration: underline;
  color: #003fa8;
}

.hd-mega-menu .mega-footer .footer-link-right .material-icons {
  font-size: 18px;
  line-height: 1;
}
/* --- Search Quick Links --- */
.hd-mega-menu .search-quick {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px 24px;
  border-top: 1px solid #f1f3f5;
  background: #fff;
}

.hd-mega-menu .quick-heading {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
}

.hd-mega-menu .quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-mega-menu .quick-link {
  font-size: 15px;
  font-weight: 500;
  color: #004eba;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-mega-menu .quick-link:hover {
  text-decoration: underline;
  color: #0041a8;
}

/* --- Responsive adjustments for footer CTA --- */
@media (max-width: 768px) {
  .hd-mega-menu .mega-footer .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .hd-mega-menu .mega-footer .footer-cta-left {
    justify-content: center;
  }
}

/* ========== LOGIN MODAL ========== */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #171717;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.login-btn:hover {
  color: #004eba;
  background: #e0edff;
  border-color: transparent;

}

.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding-bottom: 15vh;
}

.login-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.login-modal__content {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  background: #fff;
  border-radius: 24px;
  padding: 80px 48px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #171717;
  transition: opacity 0.2s;
}

.login-modal__close:hover {
  opacity: 0.7;
}

.login-modal__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: #171717;
}

.login-modal__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #525252;
  margin: 0 0 40px 0;
}

.login-modal__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
}

.login-modal__columns::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d4d4d4;
  transform: translateX(-50%);
}

.login-modal__column {
  text-align: left;
  padding: 24px;
}

.login-modal__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-modal__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.login-modal__badge--go {
  background: #E0F2FE;
  color: #0066FF;
}

.login-modal__badge--services {
  background: #F0FDF4;
  color: #16A34A;
}

.login-modal__description {
  font-size: 16px;
  color: #525252;
  margin: 0 0 24px 0;
}

.login-modal__button {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #126cee;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #004eba;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.login-modal__button:hover {
  background: #0043a1;
  border-color: #0043a1;
  color: #fff;
  text-decoration: none;
}

.login-modal__button:focus-visible {
  background: #0043a1;
  border-color: #0043a1;
  color: #fff;
  text-decoration: none;
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #004eba;
}

.login-modal__signup {
  font-size: 14px;
  color: #525252;
  margin: 0;
}

.login-modal__signup a {
  color: #0066FF;
  text-decoration: none;
  font-weight: 500;
}

.login-modal__signup a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .login-btn {
    display: none;
  }
  
  .login-modal__content {
    padding: 32px 24px;
  }
  
  .login-modal__title {
    font-size: 24px;
  }
  
  .login-modal__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Search --- */
.hd-mega-menu .search-bar-wrapper {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.hd-mega-menu .search-bar-wrapper.active {
  display: block;
}

.hd-mega-menu .search-form {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  gap: 10px;
}

.hd-mega-menu .search-form .input {
  flex: 1;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #111;
}

.hd-mega-menu .search-form .submit {
  background: #004eba;
  border: 0;
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hd-mega-menu .search-form .clear {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  padding: 0 6px;
}

/* --- Animation --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-mega-menu .mega-menu,
  .hd-mega-menu .search-bar-wrapper,
  .hd-mega-menu .nav-links,
  .login-modal,
  .login-modal__content {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1048px) {
  .hd-mega-menu .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .hd-mega-menu .mega-menu-content::after {
    display: none;
  }
}

/* Right quick links in header */
.hd-mega-menu .right-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Link look */
.hd-mega-menu .right-quick-links .right-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #126cee;
  border: 1px solid #126cee;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* Button variant + When there’s only one CTA */
.hd-mega-menu .right-quick-links .right-link.button, .hd-mega-menu .right-quick-links .right-link:only-child {
  background: #126cee;
  color: #fff;
  border-color: #004eba;
}


.hd-mega-menu .right-quick-links .right-link:only-child:hover {
  background: #0041a8;
  border-color: #0041a8;
}


/* Hover states */
.hd-mega-menu .right-quick-links .right-link:hover {
  color: #004eba;
  background: #e0edff;
  border-color: transparent;
}

.hd-mega-menu .right-quick-links .right-link:focus-visible {
  outline: 2px solid #126cee;
  outline-offset: 2px;
  color: #004eba;
  background: #e0edff;
}

.hd-mega-menu .right-quick-links .right-link.button:focus-visible {
  color: #fff;
}

.hd-mega-menu .right-quick-links .right-link.button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #004eba;
  background: #0043a1;
}

/* Hover for primary (blue) buttons and single CTA */
.hd-mega-menu .right-quick-links .right-link.button:hover,
.hd-mega-menu .right-quick-links .right-link:only-child:hover {
  background: #0043a1;
  border-color: #0043a1;
  color: #fff;
}


/* --- Mega Menu Card Hover --- */
.hd-mega-menu .mega-col.left li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hd-mega-menu .mega-col.left li:hover,
.hd-mega-menu .mega-col.left li:focus-within {
  background: rgba(255,255,255,0.80);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.hd-mega-menu .mega-col.left .menu-card {
  display: block;
  text-decoration: none;
  color: #171717;
}

.hd-mega-menu .mega-col.left .menu-card:focus-visible {
  outline: 2px solid #126cee;
  outline-offset: 2px;
  border-radius: 10px;
}

.hd-mega-menu .mega-col.left .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ededed;
  color: #126cee;
  font-size: 32px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.hd-mega-menu .mega-col.left .icon.material-symbols-outlined {
  opacity: 0;
}

.hd-mega-menu .mega-footer .material-symbols-outlined {
  opacity: 1;
}

.hd-mega-menu .mega-col.left li:hover .icon {
  background: #e1ecff;
  color: #0d56cf;
}

.hd-mega-menu .mega-col.left .menu-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  transition: color .2s ease;
}

.hd-mega-menu .mega-col.left .menu-desc {
  display: block;
  font-size: 13px;
  color: #525252;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.5;
}




/* Keep clean on mobile (optional: hide) */
@media (max-width: 1049px) {
  .hd-mega-menu .right-quick-links {
    display: none;
  }
}

@media (max-width: 1048px) {

  /* Container basics */
  .hd-mega-menu .nav-container {
    height: 64px;
    padding: 0 20px;
  }

/* Hide main nav until opened */
  .hd-mega-menu .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #fff;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    z-index: 9999;
    padding: 16px 24px;
    animation: slideDown 0.25s ease forwards;
  }

/* When mobile menu open */
  .hd-mega-menu.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Stack nav items */
  .hd-mega-menu .nav-links ul {
    flex-direction: column;
    gap: 16px;
  }

  .hd-mega-menu .nav-item button,
  .hd-mega-menu .nav-item a {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    text-align: left;
  }

  /* Hamburger */
  .hd-mega-menu .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
  }

  .hd-mega-menu .hamburger span {
    width: 20px;
    height: 2px;
    background: #171717;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
  }

  /* Transform to X when active */
  .hd-mega-menu.mobile-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hd-mega-menu.mobile-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .hd-mega-menu.mobile-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mega panels hidden in mobile */
  .hd-mega-menu .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: #f9fafb;
    padding: 12px 0;
  }

  .hd-mega-menu .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .hd-mega-menu .mega-col.left ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hd-mega-menu .mega-footer {
    padding: 12px 24px;
  }

  /* Hide desktop-only elements */
  .hd-mega-menu .right-quick-links {
    display: none;
  }

  /* Animation */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-mega-menu .hamburger span {
    transition: none !important;
  }
  .hd-mega-menu .mega-menu {
    transition: none !important;
  }
}
}

/* --- Accessibility Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* --- Mobile Info Block --- */
@media (max-width: 1048px) {
  .mobile-info-block {
    margin-top: 20px;
    padding: 20px 24px;
    background: #f4f8ff;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e5e7eb;
  }

  .mobile-info-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: #171717;
    margin: 0 0 8px;
  }

  .mobile-info-block .mobile-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
  }
}

/* Hidden on desktop */
@media (min-width: 1049px) {
  .mobile-info-block, .mobile-cta-buttons {
    display: none !important;
  }
}

/* --- Accordion toggle arrows --- */
@media (max-width: 1048px) {
  .hd-mega-menu .nav-item[data-menu] .nav-trigger {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 10px 15px 10px 25px;
    transition: color 0.2s ease;
  }

  /* Chevron icon */
  .hd-mega-menu .nav-item[data-menu] .nav-trigger::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #171717;
    border-bottom: 2px solid #171717;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  /* Active = blue + rotated chevron */
  .hd-mega-menu .nav-item.open .nav-trigger {
    color: #004eba;
    background: rgba(18,108,238,0.06);
    padding: 10px 15px 10px 25px;
  }

  .hd-mega-menu .nav-item .nav-trigger:focus-visible {
    outline: 2px solid #126cee;
    outline-offset: -2px;
    border-radius: 8px;
  }

  .hd-mega-menu .nav-item.open .nav-trigger::after {
    transform: translateY(-50%) rotate(-135deg);
  }

  /* --- Accordion panels --- */
  .hd-mega-menu .mega-menu {
    display: block;
    background: #f9fafb;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    padding:0;
  }

  .hd-mega-menu .mega-menu.active {
    max-height: none;
    overflow-y: visible;
    opacity: 1;
    transform: translateY(0);
    padding: 12px 0;
  }

  .hd-mega-menu .mega-menu-content {
    padding: 12px 8px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  /* --- Left links inside panel --- */
  .hd-mega-menu .mega-col.left li {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
    padding: 10px 12px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .hd-mega-menu .mega-col.left li:hover {
    background: rgba(18,108,238,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }

  /* --- Mobile info block refinement --- */
  .hd-mega-menu .mobile-info-block {
    margin-top: 24px;
    background: #f4f8ff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 20px;
  }

  .hd-mega-menu .mobile-info-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 6px;
  }

  .hd-mega-menu .mobile-info-block .mobile-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
  }

  /* --- Drawer scroll + padding fix --- */
  .hd-mega-menu.mobile-open .nav-links {
    padding-bottom: 60px; /* space for info block */
  }
}
/* --- Desktop chevrons hidden --- */
@media (min-width: 1049px) {
  .hd-mega-menu .nav-item[data-menu] .nav-trigger::after {
    display: none !important;
  }
}
@media (max-width: 1048px) {
  .hd-mega-menu .mega-menu.active { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .hd-mega-menu .nav-links ul { gap: 0px !important; } /* tighten stack */
  .hd-mega-menu .nav-item[data-menu]:last-child { margin-bottom: 0 !important; }
  .hd-mega-menu .search-quick {padding: 12px 24px 20px;}
  .hd-mega-menu .search-form {padding:16px;}
  .mega-footer {display:none;}
}

/* --- Scroll behavior --- */
.hd-mega-menu {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}

/* Transparent at very top of page */
.hd-mega-menu:not(.scrolled):not(.active) {
  box-shadow: none;
}

/* Slide hide on scroll down */
.hd-mega-menu.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.hd-mega-menu:not(.header-hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Solid white header on scroll-up */
html.scroll-up .hd-mega-menu {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

@media (max-width: 1048px) {
/* Overlay drawer */
  .hd-mega-menu .nav-links {
    position: fixed !important;
    top: 64px;
    left: 0;
    width: 100vw;
    height: calc(100dvh - 64px);
    display: none;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 10000;
    background: #fff;
  }
  
  /* Scrollable wrapper for nav items + dropdowns */
  .hd-mega-menu .nav-links .nav-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
  }
  
  .hd-mega-menu .nav-links .nav-scroll-area > ul {
    padding: 0;
    margin: 0;
  }
  
/* Open nav-item sticks to top of scroll area */
  .hd-mega-menu .nav-item {
    position: relative;
  }
  
  .hd-mega-menu .nav-item.open {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    margin: 0 -20px;
    padding: 0 20px;
  }
  
  .hd-mega-menu .mega-col.right .right-list { gap: 0; }

  .hd-mega-menu .mega-col.right .right-list li {
    list-style: none;
    margin-bottom: 10px;
  }
  .hd-mega-menu .mega-col.right .right-list li:last-child { margin-bottom: 0; }

  .hd-mega-menu .mega-col.right .right-list li a {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;              /* match left column */
    color: #171717;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, color .2s, border-color .2s;
  }

  .hd-mega-menu .mega-col.right .right-list li a:hover {
    background: rgba(18,108,238,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-color: #c7deff;
    color: #004eba;
  }

  .hd-mega-menu .mega-col.right .right-list li a:focus-visible {
    background: rgba(18,108,238,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-color: #c7deff;
    color: #004eba;
    outline: 2px solid #126cee;
    outline-offset: -2px;
  }
  
/* Fixed CTAs at bottom */
  .mobile-cta-buttons{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 20px));
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  }
  
  .mobile-cta-buttons .mobile-cta-link{
    width:100%;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:12px 16px;
    font-weight:600;
    font-size:16px;
    line-height:1;
    text-decoration:none;
    min-height: 48px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    color:#171717;
    background:#fff;
    transition:background .2s,color .2s,border-color .2s;
  }

  /* Primary (blue) variant */
  .mobile-cta-buttons .mobile-cta-link.button{
    background:#126cee;
    color:#fff;
    border-color:#126cee;
    order:2; /* primary below */
  }

  /* Secondary (outline) variant */
  .mobile-cta-buttons .mobile-cta-link:not(.button){
    order:1; /* secondary on top */
    border: 2px solid #126cee;
    color: #126cee;
  }

  /* Hover states */
  .mobile-cta-buttons .mobile-cta-link:hover{
    color:#004eba; border-color:#cbd5e1;
  }
  .mobile-cta-buttons .mobile-cta-link.button:hover{
    background:#003887; border-color:#003887; color:#fff;
  }

  /* If there’s only one CTA on mobile, make it primary */
  .mobile-cta-buttons .mobile-cta-link:only-child{
    background:#004eba; color:#fff; border-color:#004eba;
    order:unset;
  }
  .mobile-cta-buttons .mobile-cta-link:only-child:hover{
    background:#003887; border-color:#003887;
  }

  .mobile-cta-buttons .mobile-cta-link:focus-visible {
    outline: 2px solid #126cee;
    outline-offset: 2px;
    color: #004eba;
  }

  .mobile-cta-buttons .mobile-cta-link.button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #004eba;
    color: #fff;
  }
  
}

/* === HubSpot Language Switcher — clean final === */

/* Globe button: match .search-btn (32x32 box, 20px icon) */
.hd-mega-menu .lang-switcher .globe_class{
  width:32px; height:32px; border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; background:transparent; transition:background .2s;
  font-size:0; line-height:0;
}
.hd-mega-menu .lang-switcher .globe_class::after{
  content:""; width:20px; height:20px; display:block;
  background:url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'>\
    <circle cx='12' cy='12' r='10' stroke='%23171717' stroke-width='2'/>\
    <path d='M2 12h20' stroke='%23171717' stroke-width='2'/>\
    <path d='M12 2c2.3 0 4.2 4.5 4.2 10s-1.9 10-4.2 10S7.8 17.5 7.8 12 9.7 2 12 2z' stroke='%23171717' stroke-width='2' fill='none'/>\
  </svg>") no-repeat center/contain;
}
.hd-mega-menu .lang-switcher .globe_class:hover {
  background: rgba(18,108,238,.10);
}

.hd-mega-menu .lang-switcher .globe_class:focus-visible {
  background: rgba(18,108,238,.10);
  outline: 2px solid #126cee;
  outline-offset: 2px;
}

/* Kill HubSpot's built-in caret on the container */
.hd-mega-menu .lang-switcher .lang_switcher_class::before,
.hd-mega-menu .lang-switcher .lang_switcher_class::after{
  content:none !important; display:none !important;
  border:0 !important; background:transparent !important; box-shadow:none !important;
}

/* Dropdown panel (UL) */
.hd-mega-menu .lang-switcher .lang_list_class{
  position:absolute; right:0; top:calc(100% + 6px);  /* close gap */
  z-index:2000; min-width:200px;
  margin:0; padding:10px 0; list-style:none;
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  box-shadow:0 12px 24px rgba(0,0,0,.08); overflow:hidden;
}

/* Remove any HS borders on list/items */
.hd-mega-menu .lang-switcher .lang_list_class,
.hd-mega-menu .lang-switcher .lang_list_class li,
.hd-mega-menu .lang-switcher .lang_list_class li a{ border:0 !important; }

/* Our caret (light, matches border) */
.hd-mega-menu .lang-switcher .lang_list_class::before{
  content:""; position:absolute; top:-6px; right:12px;
  width:12px; height:12px; background:#fff;
  border-left:1px solid #e5e7eb; border-top:1px solid #e5e7eb;
  transform:rotate(45deg);
}

/* Hover bridge to prevent flicker when moving from icon to menu */
.hd-mega-menu .lang-switcher .lang_list_class::after{
  content:""; position:absolute; top:-10px; left:0; width:100%; height:10px;
  background:transparent; pointer-events:auto;
}

/* Items */
.hd-mega-menu .lang-switcher .lang_list_class li a{
  display:block; padding:10px 14px; border-radius:8px;
  font-size:15px; font-weight:600; line-height:1.2; color:#171717; text-decoration:none;
  transition:background .15s, color .15s;
}
.hd-mega-menu .lang-switcher .lang_list_class li a:hover {
  background: rgba(18,108,238,.06);
  color: #004eba;
}

.hd-mega-menu .lang-switcher .lang_list_class li a:focus-visible {
  background: rgba(18,108,238,.06);
  color: #004eba;
  outline: 2px solid #126cee;
  outline-offset: -2px;
}

/* Mobile stacking safety */
@media (max-width:1048px){ .hd-mega-menu .lang-switcher{ z-index:10001; } }

/* Language menu visibility controlled by JS */
.hd-mega-menu .lang-switcher .lang_list_class { display: none !important; }
.hd-mega-menu .lang-switcher .lang_switcher_class.is-open .lang_list_class { display: block !important; }

/* keep the gap small + hover bridge */
.hd-mega-menu .lang-switcher .lang_list_class { top: calc(100% + 6px); }
.hd-mega-menu .lang-switcher .lang_list_class::after {
  content: "";
  position: absolute;
  top: -10px; left: 0; width: 100%; height: 10px;
  background: transparent; pointer-events: auto;
}