@media (max-width: 768px) {
  #container,
  .layer,
  #footer,
  body ul#breadcrumbs {
    padding: 25px;
  }
}

@media screen and (min-width: 500px) {
  .pages-child-theme #container {
    max-width: 80%;
    margin-top: calc(var(--hero-grid-margin) + 90px);
  }
  .pages-child-theme #container {
    display: flex;
    justify-content: center;
  }

  #container {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 768px) {
  .pages-child-theme .post::after,
  .search article::after {
    margin-left: 42% !important;
  }
}

@media (max-width: 1500px) {
  .post-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .pages-child-theme #container #content {
    width: 100%;
    margin-right: 0px;
  }

  .pages-child-theme #container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .pages-child-theme.post-template-default #container #content,
  .pages-child-theme.page-template-default #container #content {
    padding: 20px;
  }
  .pages-child-theme #content {
    padding: 2px;
  }

  .pages-child-theme.post-template-default #content {
    padding: 20px !important;
  }

  .pages-child-theme.post-template-default #container,
  .pages-child-theme.blog #container {
    margin-top: 20px;
  }

  .pages-child-theme.post-template-default #container {
    margin-top: 0;
  }
}

/* Responsividade: rolagem horizontal em telas pequenas */
@media screen and (max-width: 768px) {
  .pages-child-theme table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* MOSTRA MENU MOBILE */

@media screen and (min-width: 1500px) {
  .pages-child-theme #container #sidebar {
    max-width: 25%;
  }
}

@media screen and (min-width: 1109px) {
  .mobile-footer-controls {
    display: none;
  }
}

/* Estiliza o overlay de busca */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* Exibe quando ativo */
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Estiliza o formulário de pesquisa */
.search-overlay form {
  width: 80%;
  max-width: 500px;
  position: relative;
}

.search-overlay input[type="search"] {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
}

/* Botão de fechar */
.close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
/* Ajusta a cor do texto digitado no campo de busca */
.search-form input[type="search"] {
  color: white !important; /* Garante que o texto digitado fique visível */
  background-color: rgba(
    0,
    0,
    0,
    0.8
  ); /* Um fundo mais escuro para contraste */
  border: none;
  outline: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 5px;
}

/* Ajusta a cor do placeholder para ficar mais visível */
.search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Garante que a área de pesquisa fique destacada */
.search-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* ESTILIZAÇÃO DA META DESCRIÇÃO NO MENU MOBILE */

/* Oculta o menu no mobile por padrão */
.mobile-menu {
  display: none;
  left: 0;
  width: 100%;
  background: #111; /* Cor de fundo do menu */
  padding: 15px;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estiliza os links do menu */
.mobile-menu .mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu .mobile-nav-list li {
  margin-bottom: 10px;
}

/* .mobile-menu .mobile-nav-list ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
} */

.mobile-menu .mobile-nav-list a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px 0;
}

.mobile-menu .mobile-nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Exibe o menu quando a classe "active" é adicionada */
.mobile-menu.active {
  display: block;
}

/* Ajuste para o botão do menu */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Estiliza o menu inicialmente invisível */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  pointer-events: none;
}

/* Quando o menu estiver ativo, ele aparece suavemente */
#mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estiliza o menu inicialmente invisível e fora da tela */
#mobile-menu {
  position: fixed;
  top: 0;
  left: -100%; /* Começa totalmente fora da tela */
  width: 80%; /* Define a largura do menu */
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease-out;
  z-index: 1000;
}

/* Quando o menu estiver ativo, ele desliza para dentro */
#mobile-menu.active {
  left: 0;
}

/* Botão de fechar */
.close-menu {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

#sidebar-header {
  display: none;
}

body:has(.mobile-menu.active) .hero-item .overlay-link {
  z-index: 0;
}

@media (max-width: 1108px) {
  #header {
    border-bottom: 2px solid #35c1bc;
  }
}
