/*
Theme Name: inovauscs
Theme URI: http://localhost/
Author: "miguel"
Author URI: http://localhost/
Description: Tema feito 100% manualmente com VS Code
Version: 1.0
*/

/* ==========================================================
   RESET E CONFIGURAÇÕES GERAIS
========================================================== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: sans-serif;
}
* {
  box-sizing: border-box;
}

/* ==========================================================
   HEADER (NAVEGAÇÃO PRINCIPAL)
========================================================== */

/* Barra de navegação principal */
nav {
  background-color: #ffffff;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 2000;
}

/* Logo à esquerda */
.logo {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

/* Botão para abrir o drawer (menu lateral) */
.drawer-toggle {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background-color 0.3s;
  color: #222;
}
.drawer-toggle:hover,
.drawer-toggle:focus {
  background-color: #ff960c;
  outline: none;
}

/* ==========================================================
   DRAWER MENU (MENU LATERAL)
========================================================== */
.drawer-menu {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  max-height: 600px;
  overflow-y: auto;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem 2rem;
  z-index: 3000;
  border-radius: 0 0 12px 12px;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}
.drawer-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Lista principal do drawer */
.drawer-menu-list,
.drawer-menu-list ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer-menu-list > li {
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  position: relative;
}
.drawer-menu-list > li > a {
  color: #222;
  text-decoration: none;
  display: inline-block;
  padding: 12px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  font-weight: 600;
  padding-right: 2rem;
  width: 100%;
  transition: background-color 0.3s;
}
.drawer-menu-list > li > a:hover,
.drawer-menu-list > li > a:focus {
  background-color: #e1e7f0;
  color: #1e3a5f;
  outline: none;
}

/* Submenu e seta */
.menu-item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.submenu-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  padding: 0 0.5rem;
  color: #666;
  transition: transform 0.3s ease;
  background-color: #e0e7ff;
  border: none;
  border-radius: 8px;
}
.submenu-toggle.open {
  transform: translateY(-50%) rotate(180deg);
}
li.submenu-open > .menu-item-wrapper .submenu-toggle {
  color: #0073aa;
}
li.submenu-open > .menu-item-wrapper {
  background-color: #f5f5f5;
}
.drawer-menu-list li ul.sub-menu {
  display: none;
  flex-direction: column;
  padding-left: 1.5rem;
  margin-top: 1rem;
  gap: 1.5rem;
}
.drawer-menu-list li ul.sub-menu.open {
  display: flex;
}
.drawer-menu-list li ul.sub-menu li a {
  padding: 8px 16px;
  background-color: #eef2f7;
  border-radius: 8px;
  font-weight: normal;
  color: #000000;
  text-decoration: none;
  transition: background-color 0.3s;
}
.drawer-menu-list li ul.sub-menu li a:hover,
.drawer-menu-list li ul.sub-menu li a:focus {
  background-color: #4687f7;
  color: #1e3a5f;
  outline: none;
}

/* Scrollbar do drawer */
.drawer-menu.open::-webkit-scrollbar {
  width: 8px;
}
.drawer-menu.open::-webkit-scrollbar-thumb {
  background-color: rgba(30,58,138,0.4);
  border-radius: 4px;
}

/* ==========================================================
   MENU PRINCIPAL (DESKTOP)
========================================================== */
.menu-principal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  font-size: 10px;
}
.menu-principal > li > a {
  display: block !important;
  padding: 10px 16px !important;
  color: #222 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
}
.menu-principal > li > a:hover {
  background-color: #f0f0f0 !important;
  color: #1e3a5f !important;
}
.menu-principal > li {
  position: relative;
}
.menu-principal .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.menu-principal .sub-menu li a {
  display: block;
  padding: 8px 16px;
  color: #222;
  text-decoration: none;
}
.menu-principal .sub-menu li a:hover {
  background-color: #f0f0f0;
}
.menu-principal > li:hover > .sub-menu {
  display: block;
}

/* ==========================================================
   USER DROPDOWN (LOGO)
========================================================== */
.user-menu-trigger {
  position: relative;
  display: inline-block;
}
.user-menu-trigger img {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.user-menu-trigger img:hover {
  transform: scale(1.05);
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 180px;
  max-width: 90vw;
  overflow-wrap: break-word;
  z-index: 999;
}
.user-dropdown.open {
  display: block;
}
.user-dropdown a {
  display: block;
  text-decoration: none;
  padding: 8px 12px;
  color: #222;
  border-radius: 6px;
  transition: background-color 0.3s;
}
.user-dropdown a:hover {
  background-color: #f0f0f0;
}
.user-dropdown p {
  margin-bottom: 10px;
  font-weight: bold;
}

/* ==========================================================
   POPUP DE LOGIN
========================================================== */
.popup-login {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-login.active {
  display: flex;
}
.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 300px;
}
.popup-login-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0073aa;
  text-decoration: underline;
  font-weight: bold;
}
.popup-close {
  margin-top: 1rem;
  background: transparent;
  border: none;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ==========================================================
   CONTEÚDO CENTRALIZADO
========================================================== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
}
.container p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #333;
}
.container h1,
.container h2,
.container h3,
.container h4 {
  color: #111;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* ==========================================================
   RODAPÉ
========================================================== */
.site-footer {
  background-color: #1e3a5f;
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
}
.partners-slider {
  background-color: #fff;
  padding: 2rem 0;
}
.partners-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.partners-slider img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}
.footer-logo-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo-info img {
  height: 60px;
  width: auto;
}
.footer-logo-info p {
  font-size: 1.2rem;
  font-weight: bold;
}
.footer-address p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: #ffffff;
}
.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: #ccc;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ==========================================================
   RESPONSIVIDADE
========================================================== */
@media (max-width: 767px) {
  nav {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .drawer-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
  .drawer-menu-list > li > a {
    font-size: 1.1rem;
  }
  .menu-principal {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .menu-principal > li > a {
    padding: 10px 14px;
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo img {
    margin-bottom: 1rem;
  }
}

/* ==========================================================
   AJUSTES EXTRAS
========================================================== */
.password-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  flex: 1;
}
.password-field button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.wp-block-cover {
  border-radius: 20px;
  overflow: hidden;
}

/* =====================
   SWIPER (Slider)
===================== */

.swiper-pagination {
  display: none !important;
}

.swiper-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}


/* =====================
   RESPONSIVIDADE
===================== */

@media (max-width: 767px) {
  /* Menu e navegação em coluna */
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .menu-principal {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .menu-principal > li > a {
    padding: 10px 14px;
    width: 100%;
  }

  /* Rodapé em coluna */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo img {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .menu-principal {
    gap: 0.75rem;
  }

  .footer-content {
    gap: 2rem;
  }
}


/* =====================
   MENU HAMBÚRGUER
===================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #222;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .menu-principal {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .menu-principal.show {
    display: flex;
  }
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* =====================
   FORMULÁRIOS: LOGIN / CADASTRO
===================== */

.login-page, .cadastro-page {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-page h2, .cadastro-page h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-page input,
.cadastro-page input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-page input[type="submit"],
.cadastro-page input[type="submit"] {
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

.login-page input[type="submit"]:hover,
.cadastro-page input[type="submit"]:hover {
  background-color: #555;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .password-wrapper input {
    width: 100%;
    padding-right: 2.5rem; /* Espaço para o ícone */
  }

  .toggle-password {
    position: absolute;
    right: 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    color: #666;
  }

  .toggle-password:hover {
    color: #000;
  }

/* Ajustes no mobile */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* LOGO centralizada no topo */
  .logo {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

  /* Campo de busca centralizado */
  .menu-search-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    margin-top: 24px;

  }
  @media (max-width: 768px) {
  .drawer-toggle {
    margin-top: 20px; /* ajuste conforme desejar */
  }
}

  .menu-search-form input[type="search"] {
    flex: 1;
    min-width: 60%;
  }

  .menu-search-form button {
    flex-shrink: 0;
  }

  /* Botões "Sobre nós" e "Menu" alinhados à direita */
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 1rem;
  }

  .header-actions .drawer-toggle {
    display: inline-flex;
    align-items: center;
  }

  .drawer-sobre-btn {
    display: inline-block;
    margin-right: 8px;
  }

  /* Evita quebras inesperadas */
  .header-actions .drawer-toggle div {
    display: inline;
  }
}

/* ==============================
   MENU DRAWER RESPONSIVO
   ============================== */

.drawer-menu-list,
.drawer-menu-list ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Itens principais do menu */
.drawer-menu-list > li {
  border-bottom: 1px solid #ddd;
}

/* Links do menu principal */
.drawer-menu-list a {
  display: block;
  padding: 12px 16px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  background-color: #fff;
  transition: background 0.2s;
  word-break: break-word;
}

/* Hover */
.drawer-menu-list a:hover {
  background-color: #f1f1f1;
}

/* Submenus */
.drawer-menu-list li ul {
  padding-left: 16px;
  background-color: #fafafa;
  border-left: 3px solid #ccc;
}

/* Links de submenu */
.drawer-menu-list li ul a {
  font-size: 15px;
  padding: 10px 14px;
  background-color: #f5f5f5;
  border-radius: 6px;
  margin: 4px 0;
}

/* Remove bullets dos subitens */
.drawer-menu-list li ul li {
  list-style: none;
}

/* TOGGLE DE SUBMENU (ícone ▾ que aparece ao lado de menus com filhos) */
.submenu-toggle {
  float: right;
  font-size: 14px;
  margin-top: 3px;
}

/* ==============================
   RESPONSIVO PARA CELULARES
   ============================== */
@media (max-width: 480px) {
  .drawer-menu-list a {
    font-size: 15px;
    padding: 10px 12px;
  }

  .drawer-menu-list li ul a {
    font-size: 14px;
    padding: 8px 12px;
  }
}
@media (max-width: 767px) {
  nav {
    flex-direction: column;
    align-items: stretch;
  }




  /* Reorganiza o topo: logo + botões (Menu, Sobre nós) na mesma linha */
  .nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    margin-bottom: 0;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  /* Move o campo de busca para baixo e centraliza */
  .menu-search-form {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    padding: 0 1rem;
  }

  .menu-search-form input[type="search"] {
    width: 100%;
    max-width: 400px;
  }
}


/* Seta no item principal do menu que tem submenu */
.drawer-menu-list li.menu-item-has-children > a::after {
  content: "\f078"; /* Seta Font Awesome (fa-chevron-down) */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Rotaciona a seta quando o submenu estiver aberto (opcional) */
.drawer-menu-list li.menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

/* Remove setas indevidas dentro dos subitens */
.drawer-menu-list .sub-menu .fa-chevron-down {
  display: none !important;
}

/* Ajusta o link com a seta ao lado */
.drawer-menu-list > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-right: 40px; /* espaço para a seta */
}

/* Botão de seta */
.submenu-toggle {
  background-color: #e0e7ff;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #1e3a8a;
  transition: transform 0.3s ease;
  margin-left: auto;
}

/* Animação de rotação */
.submenu-toggle.open {
  transform: rotate(180deg);
}

/* Corrige z-index se precisar */
.drawer-menu-list > li {
  position: relative;
}
/* Alinha item de menu e seta no mesmo eixo */
.drawer-menu-list > li {
  position: relative;
}

/* Botão da seta (fora do <a>, mas posicionado à direita) */
.drawer-menu-list > li > .submenu-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background-color: #e0e7ff;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #1e3a8a;
  transition: transform 0.3s ease;
}

/* Gira a seta quando aberto */
.drawer-menu-list > li > .submenu-toggle.open {
  transform: translateY(-50%) rotate(180deg);
}
/* ========================
   Botão "Sobre nós" no header
   ======================== */
.drawer-sobre-btn {
  background: none;
  border: none;
  color: #222;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  margin-right: 0.5rem;
  transition: background-color 0.3s ease;
}

.drawer-sobre-btn:hover,
.drawer-sobre-btn:focus {
  background-color: #f0f0f0;
  color: #1e3a5f;
  outline: none;
}
  /* ========================
   Agrupamento de botões do header
   ======================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre os botões */
  margin-left: auto; /* joga o grupo para o canto direito */
  padding-right: 20px; /* ajuste fino para borda */
}

/* Ajuste responsivo opcional */
@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    padding-right: 10px;
  }
}
/* ========================
   Sugestões do campo de busca
   ======================== */

/* ==============================
   Campo de Pesquisa no Menu (Centralizado)
   ============================== */

/* Container do formulário de busca */
.menu-search-form {
  position: relative;             /* Necessário para posicionar a caixa de sugestões */
  display: flex;                  /* Layout em linha */
  align-items: center;           /* Centraliza verticalmente os elementos */
  gap: 0.5rem;                    /* Espaço entre input e botão */
  max-width: 400px;              /* Largura máxima do campo */
  margin: 0 auto;                /* Centraliza horizontalmente */
}

/* Input de busca */
.menu-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

/* Foco no input */
.menu-search-form input[type="search"]:focus {
  border-color: #1e3a8a;
}

/* Botão de pesquisa (ícone de lupa) */
.menu-search-form button {
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-search-form button:hover {
  background-color: #163b6c;
}

/* Caixa de sugestões (autocomplete) */
#menu-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  margin-top: 4px;
}

/* Cada sugestão clicável */
.suggestion-item {
  display: block;
  padding: 10px 14px;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f4ff;
}

/* Texto quando nenhuma sugestão é encontrada */
#menu-search-suggestions .no-results {
  padding: 10px 14px;
  color: #666;
  font-style: italic;
  text-align: center;
}
/* Container geral da busca */
.search-results-container {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid para resultados */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Card individual */
.search-result-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.search-result-card:hover {
  background-color: #f1f1f1;
  transform: translateY(-3px);
}

.search-result-card h2 a {
  text-decoration: none;
  color: #1e3a8a;
}

.search-result-card h2 a:hover {
  text-decoration: underline;
}

.search-result-card p {
  margin-top: 10px;
  color: #555;
  font-size: 15px;
}
/* Estilo da página de resultados de busca */
.search-results {
  padding: 2rem;
}

.search-results h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
}

.search-results-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-result-item {
  flex: 1 1 300px;
  background-color: #f5f5f5;
  border-left: 4px solid #1e3a8a;
  padding: 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.search-result-item:hover {
  background-color: #e0e7ff;
}

.search-result-link {
  text-decoration: none;
  color: inherit;
}

.search-result-link h3 {
  margin: 0;
  font-size: 1.2rem;
}

.search-result-link p {
  margin-top: 0.5rem;
  color: #555;
}

/* ==========================
   TEMA ESCURO
   ========================== */
.dark-mode body {
  background-color: #222;
  color: #fff;
}

.dark-mode nav,
.dark-mode .drawer-menu,
.dark-mode .popup-content,
.dark-mode .menu-principal .sub-menu,
.dark-mode .drawer-menu-list a,
.dark-mode .drawer-menu-list li ul a,
.dark-mode .search-result-card,
.dark-mode .search-result-item,
.dark-mode .login-page,
.dark-mode .cadastro-page {
  background-color: #333 !important;
  color: #fff !important;
}

.dark-mode nav a,
.dark-mode .drawer-menu-list a,
.dark-mode .menu-principal > li > a,
.dark-mode .user-dropdown a,
.dark-mode .footer-address p,
.dark-mode .footer-logo-info p,
.dark-mode .search-result-card h2 a,
.dark-mode .search-result-card p {
  color: #fff !important;
}

.dark-mode .drawer-menu-list li ul.sub-menu li a {
  background-color: #444 !important;
}

.dark-mode .drawer-menu-list li ul.sub-menu li a:hover {
  background-color: #555 !important;
}

.dark-mode .submenu-toggle {
  color: #ccc !important;
}

.dark-mode .menu-search-form input[type="search"] {
  background-color: #444;
  color: #fff;
  border-color: #888;
}

.dark-mode .menu-search-form button {
  background-color: #345b9e;
}

.dark-mode .search-results h2 {
  color: #9dbfff;
}

.dark-mode .search-result-item {
  background-color: #444;
  border-left-color: #4687f7;
}

.dark-mode .search-result-item:hover {
  background-color: #555;
}

/* Footer mantém fundo azul, mas texto fica escuro */
.dark-mode .site-footer {
  background-color: #1e3a5f;
  color: #000;
}

.dark-mode .footer-address p,
.dark-mode .footer-logo-info p,
.dark-mode .footer-social a {
  color: #000;
}

.dark-mode .footer-social a:hover {
  color: #333;
}

.dark-mode .partners-slider {
  background-color: #1f1f1f !important;
}
/* Estilo do autocomplete no modo escuro */
.dark-mode #menu-search-suggestions {
  background-color: #2c2c2c !important;
  border-color: #444 !important;
}

.dark-mode .suggestion-item {
  color: #fff !important;
  background-color: #2c2c2c !important;
  border-bottom: 1px solid #444 !important;
}

.dark-mode .suggestion-item:hover {
  background-color: #3a3a3a !important;
}

.dark-mode #menu-search-suggestions .no-results {
  color: #aaa !important;
}
.dark-mode .drawer-toggle {
  color: #fff !important;
}
/* Aplica cinza claro como fundo padrão para tudo no modo escuro */
.dark-mode * {
  background-color: transparent !important;
}

/* Corrige fundo branco que sobrou */
.dark-mode body,
.dark-mode .container,
.dark-mode .container > div,
.dark-mode .container > div > div,
.dark-mode .container section,
.dark-mode .container article,
.dark-mode .container main,
.dark-mode .container .content,
.dark-mode .container .content-area,
.dark-mode .container .page,
.dark-mode .container .page-content {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

/* Botões ou caixas escuras já existentes */
.dark-mode .container .botao,
.dark-mode .container .caixa,
.dark-mode .container .painel,
.dark-mode .container button {
  background-color: #3a3a3a !important;
  color: #fff !important;
}

/* Corrige campos com fundo branco como inputs e áreas */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}

/* Corrige scrollbars claros */
.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #666 !important;
}
/* -----------------------
   FUNDO PADRÃO ESCURO (sem afetar footer nem botões)
-------------------------- */
.dark-mode body,
.dark-mode main,
.dark-mode .container,
.dark-mode .container > div,
.dark-mode .container > div > div,
.dark-mode .page-content,
.dark-mode .content-area,
.dark-mode .content,
.dark-mode .custom-section {
  background-color: #2a2a2a !important;
  color: #fff !important;
}

/* Campos brancos */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: #333 !important;
  color: #fff !important;
  border-color: #666 !important;
}

/* NÃO altera botões escuros já estilizados */
.dark-mode button,
.dark-mode .botao,
.dark-mode .caixa,
.dark-mode .painel {
  background-color: #3a3a3a !important;
  color: #fff !important;
}

/* Mantém o rodapé azul escuro */
.dark-mode .site-footer {
  background-color: #1e3a5f !important;
  color: #000 !important;
}

.dark-mode .site-footer p,
.dark-mode .footer-logo-info p,
.dark-mode .footer-address p,
.dark-mode .footer-bottom {
  color: #000 !important;
}
/* Corrige o fundo do bloco central do rodapé (INOVA USCS + contatos) */
.dark-mode .site-footer .footer-content {
  background-color: #1e3a5f !important;
}

/* Mantém o texto preto nesse bloco */
.dark-mode .site-footer .footer-content p,
.dark-mode .site-footer .footer-content span,
.dark-mode .site-footer .footer-content a {
  color: #000 !important;
}
/* Aplica fundo azul escuro ao bloco completo do meio do rodapé */
.dark-mode .site-footer .footer-content,
.dark-mode .site-footer .footer-content * {
  background-color: #1e3a5f !important;
  color: #000 !important;
}

/* Botões do Gutenberg no modo escuro */
.dark-mode .wp-block-button__link {
  background-color: #235495 !important; /* azul escuro */
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  display: inline-block;
  text-align: center;
}

/* Hover */
.dark-mode .wp-block-button__link:hover {
  background-color: #04265a !important;
}

/* Dropdown do usuário no modo escuro */
.dark-mode .user-dropdown {
  background-color: #2a2a2a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Links dentro do dropdown */
.dark-mode .user-dropdown a {
  color: #fff !important;
}

/* Links ao passar o mouse */
.dark-mode .user-dropdown a:hover {
  background-color: #333 !important;
}

.password-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .password-field input[type="password"],
  .password-field input[type="text"] {
    flex: 1; /* Faz o input ocupar o espaço disponível */
  }

  .password-field button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .wp-block-cover {
  border-radius: 20px; /* ajuste o valor como quiser */
  overflow: hidden;    /* garante que a imagem também fica arredondada */
}

/* ==========================
   TEMA ESCURO CORRIGIDO E OTIMIZADO
========================== */

/* Fundo geral e textos */
.dark-mode,
.dark-mode body,
.dark-mode main,
.dark-mode .container,
.dark-mode .content,
.dark-mode .page-content {
  background-color: #181c24 !important;
  color: #f3f6fa !important;
}

/* Header, Drawer, Cards, Modais, Tabelas */
.dark-mode nav,
.dark-mode .drawer-menu,
.dark-mode .popup-content,
.dark-mode .menu-principal .sub-menu,
.dark-mode .drawer-menu-list a,
.dark-mode .drawer-menu-list li ul a,
.dark-mode .login-page,
.dark-mode .cadastro-page,
.dark-mode .modal1,
.dark-mode .modal-conteudo,
.dark-mode .modal,
.dark-mode .incubado-card,
.dark-mode .painel,
.dark-mode .caixa,
.dark-mode table,
.dark-mode th,
.dark-mode td {
  background-color: #232837 !important;
  color: #f3f6fa !important;
  border-color: #3a4157 !important;
}

/* Textos, labels, cabeçalhos, células, botões */
.dark-mode label,
.dark-mode legend,
.dark-mode th,
.dark-mode td,
.dark-mode .btn,
.dark-mode .botoes-modal button,
.dark-mode .mentor-escolhido-nome,
.dark-mode .mentor-escolhido-nome-edicao,
.dark-mode .botoes-acao .btn,
.dark-mode .botoes-modal button,
.dark-mode .user-dropdown a,
.dark-mode .footer-address p,
.dark-mode .footer-logo-info p,
.dark-mode .footer-social a,
.dark-mode .footer-bottom,
.dark-mode .suggestion-item,
.dark-mode .search-result-card h2 a,
.dark-mode .search-result-card p {
  color: #f3f6fa !important;
}

/* Inputs, selects, textareas */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: #232837 !important;
  color: #f3f6fa !important;
  border: 1px solid #3a4157 !important;
}

/* Placeholder */
.dark-mode ::placeholder {
  color: #b3b9c9 !important;
  opacity: 1;
}

/* Botões padrão */
.dark-mode button,
.dark-mode .botao,
.dark-mode .caixa,
.dark-mode .painel {
  background-color: #2d3346 !important;
  color: #f3f6fa !important;
  border: 1px solid #3a4157 !important;
}

/* Botões de ação principais (azul e vermelho) */
.dark-mode .btn,
.dark-mode .botoes-acao .btn,
.dark-mode .botoes-modal button {
  border: none;
  color: #fff !important;
}
.dark-mode .btn,
.dark-mode .botoes-acao .btn:not(.excluir) {
  background-color: #1e3a8a !important;
}
.dark-mode .botoes-acao .btn.excluir,
.dark-mode .botoes-modal button.excluir,
.dark-mode .btn.excluir {
  background-color: #d32f2f !important;
}
.dark-mode .btn:hover,
.dark-mode .botoes-acao .btn:hover,
.dark-mode .botoes-modal button:hover {
  filter: brightness(1.15);
}

/* Footer mantém azul e texto claro */
.dark-mode .site-footer,
.dark-mode .footer-content,
.dark-mode .footer-logo-info p,
.dark-mode .footer-address p,
.dark-mode .footer-social a,
.dark-mode .footer-bottom {
  background-color: #1e3a5f !important;
  color: #fff !important;
}
.dark-mode .footer-social a:hover {
  color: #8cb4ff;
}

/* Corrige autocomplete/sugestões */
.dark-mode #menu-search-suggestions,
.dark-mode .suggestion-item {
  background-color: #232837 !important;
  color: #f3f6fa !important;
  border-bottom: 1px solid #3a4157 !important;
}
.dark-mode .suggestion-item:hover {
  background-color: #2d3346 !important;
}
.dark-mode #menu-search-suggestions .no-results {
  color: #b3b9c9 !important;
}

/* Dropdown do usuário */
.dark-mode .user-dropdown {
  background-color: #232837 !important;
  color: #f3f6fa !important;
  border: 1px solid #3a4157 !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.dark-mode .user-dropdown a {
  color: #f3f6fa !important;
}
.dark-mode .user-dropdown a:hover {
  background-color: #2d3346 !important;
}

/* Botão Gutenberg */
.dark-mode .wp-block-button__link {
  background-color: #4687f7 !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 16px;
  display: inline-block;
  text-align: center;
}
.dark-mode .wp-block-button__link:hover {
  background-color: #235495 !important;
}

/* Melhor contraste para campos de formulário */
.dark-mode label,
.dark-mode legend {
  color: #b3b9c9 !important;
}

/* Placeholder mais claro */
.dark-mode ::placeholder {
  color: #b3b9c9 !important;
  opacity: 1;
}

/* Corrige fundo de cards e painéis */
.dark-mode .incubado-card,
.dark-mode .painel,
.dark-mode .caixa {
  background-color: #232837 !important;
  color: #f3f6fa !important;
}

/*Corrige fundo de modais */
.dark-mode .modal1,
.dark-mode .modal-conteudo, .dark-mode .modal {
  background-color: #232837 !important;
  color: #f3f6fa !important;
}


/* Corrige fundo de tabelas */
.dark-mode table,
.dark-mode th,
.dark-mode td {
  background-color: #232837 !important;
  color: #f3f6fa !important;
  border-color: #3a4157 !important;
}