/* ================================
   CUSTOM PAGE LOADER (INDEPENDENTE)
   ================================ */
#ajax-loading-screen,
#ajax-loading-screen * {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ================================
   BLOQUEAR CONTEÚDO ATÉ LOADER SAIR
   ================================ */

/* Containers principais do Salient */
body.loader-active #ajax-content-wrap,
body.loader-active .container-wrap {
  opacity: 0;
}

/* Transição suave quando o loader sai */
#ajax-content-wrap,
.container-wrap {
  transition: opacity 0.4s ease;
}


#custom-page-loader {
  position: fixed;
  inset: 0;
  background-color: #0d50ad;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#custom-page-loader.active {
  opacity: 1;
  pointer-events: all;
}

/* Logo wrapper */
#custom-page-loader .custom-logo-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-page-loader svg {
  width: clamp(200px, 25vw, 350px);
  height: auto;
}

#custom-page-loader path {
  opacity: 0;
  animation: logoReveal 1.6s ease-in-out infinite;
}

/* INSIGNYA – esquerda → direita */
#custom-page-loader path:nth-child(2) { animation-delay: 0s;   } /* I */
#custom-page-loader path:nth-child(5) { animation-delay: 0.1s; } /* N */
#custom-page-loader path:nth-child(6) { animation-delay: 0.2s; } /* S */
#custom-page-loader path:nth-child(1) { animation-delay: 0.3s; } /* I */
#custom-page-loader path:nth-child(3) { animation-delay: 0.4s; } /* G */
#custom-page-loader path:nth-child(4) { animation-delay: 0.5s; } /* N */
#custom-page-loader path:nth-child(7) { animation-delay: 0.6s; } /* Y */
#custom-page-loader path:nth-child(8) { animation-delay: 0.7s; } /* A */

@keyframes logoReveal {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}