/* Header Background */
.header-bg {
  background: var(--azulcrescento4);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 300;

  
}

/* Menu Container */
.menu.affix-top {
  background: #0b2846;
  padding: 0;
}

.menu .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.menu .row.flex {
  display: flex;
  align-items: center;
  min-height: 70px;
}

/* Logo */
.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.navbar-main-navigation {
  display: flex;
  align-items: center;
}

.mega-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mega-menu-item {
  position: relative;
  list-style: none;
}

.mega-menu-link {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.mega-menu-link:hover {
  color: #fff;
  opacity: 0.8;
}

.mega-menu-link::after {
  content: "";
  display: block;
  height: 1px;
  width: 0%;
  background: rgb(255, 255, 255);
  margin-top: 4px;
  transition: 0.3s;
  position: absolute;
}

.mega-menu-link:hover::after {
  width: 100%;
}

.mega-indicator {
  margin-left: 5px;
}

/* Sub-menu */
.mega-sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0b2846;
  min-width: 200px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mega-menu-item-has-children:hover .mega-sub-menu {
  display: block;
}

.mega-sub-menu .mega-menu-link {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-sub-menu .mega-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Botão Agendar Diagnóstico */
.mega-botao.botao .mega-menu-link {
  background: #fff;
  color: #0b2846;
  border-radius: 4px;
  font-weight: 600;
}

.mega-botao.botao .mega-menu-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0b2846;
}

.mega-botao.botao .mega-menu-link::after {
  display: none;
}

/* Mobile Menu Button */
.navbar-toggle {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  margin: 4px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Search Button */
button[data-toggle="modal"] {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button[data-toggle="modal"]:hover {
  opacity: 0.7;
}

/* Language Switcher */
.trp_language_switcher_shortcode {
  display: inline-block;
}

.trp-language-switcher {
  position: relative;
}

.trp-ls-shortcode-current-language a,
.trp-ls-shortcode-language a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  display: inline-block;
}

.trp-ls-shortcode-language {
  position: absolute;
  top: 100%;
  right: 0;
  background: #0b2846;
  min-width: 100px;
  z-index: 1000;
}

.trp-language-switcher:hover .trp-ls-shortcode-language {
  display: block !important;
}

/* User Info (mantido do header original) */
.logado {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15px;
}

.logado #caixa_nome {
  color: #fff;
  text-decoration: none;
}

.logado .logout {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.logado .logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-main-navigation {
    display: none;
  }
  
  .navbar-main-navigation.collapse.in {
    display: block;
  }
  
  .mega-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .mega-menu-item {
    width: 100%;
  }
  
  .mega-menu-link {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mega-sub-menu {
    position: static;
    display: block;
    box-shadow: none;
  }
  
  .mega-menu-item-has-children:hover .mega-sub-menu {
    display: block;
  }
}
