/* Mega menu width and alignment */
body.ltr .sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-full{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(1200px, 100vw) !important;
}

/* Hide demo badges/icons in mega menu */
.sp-menu-badge,
.sp-menu-badge-right,
.sp-menu-badge-left,
.fa-codepen {
  display: none !important;
}

/* Language toggle (custom) */
.custom-lang-toggle {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 1200;
  background: rgb(51 51 51);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-lang-toggle a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.75;
}

.custom-lang-toggle a.active {
  opacity: 1;
  text-decoration: underline;
}

.custom-lang-toggle .sep {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

#sp-top-bar {
  position: relative;
}

.custom-lang-toggle.inside-topbar {
  position: absolute;
  top: 6px;
  right: 14px;
}
/* Override template.css megamenu padding (template.css is regenerated). */
.sp-megamenu-parent>li>a, .sp-megamenu-parent>li>span {
  padding: 0 9px !important;
}
/* Footer overrides */
#sp-bottom, #sp-footer {
    background-color: #003C5D !important;
}

/* Footer tag pills (bottom4) */
#sp-bottom .footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#sp-bottom .footer-tags a,
#sp-bottom .footer-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
#sp-bottom .footer-tags a:hover {
  background-color: #ffffff;
  color: #003C5D;
}
#sp-bottom .footer-tags span:hover {
  background-color: #ffffff;
  color: #003C5D;
}
