/* TEMPLATE CSS*/
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');


h1 {
  font-family: "Quicksand", sans-serif;
  font-size: 2.625rem;
}

h2 {
  font-family: "Quicksand", sans-serif;
  font-size: 2.25rem;
}

h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.75rem;
}

h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
}

h5 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.25rem;
}

h6 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.10rem;
}

p {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
}

* {
  font-family: "Quicksand", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box; 
}


html {
  font-size: var(--base-font-size);
  transition: font-size 0.3s ease;
}

:root {
      --base-font-size: 1rem;
}

body {
  background-color: white;
  color: black;
  transition: all 0.3s ease;
}

.grayscale {
  filter: grayscale(1);
}


.invert-colors {
  filter: invert(1);
}


.highlight-links a,
.highlight-links button,
.highlight-links [role="button"] {
  background-color: yellow;
  color: black !important;
  text-decoration: underline !important;
  font-weight: bold;
}

/*.btn-group {
  padding: 20px;
  text-align: center;
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
}*/

/* Ícone fixo na tela */
.acessibilidade-icon {
  position: fixed;
  top: 80px;
  right: 10px;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  padding: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 1000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo do menu suspenso */
.acessibilidade-menu {
  display: none;
  position: fixed;
  top: 110px;
  right: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 220px;
  z-index: 999;
  padding: 5px 0;
}

.acessibilidade-menu button {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.acessibilidade-menu button:hover {
  background-color: #f4f4f4;
}

.acessibilidade-menu button:last-child {
  border-bottom: none;
}

.acessibilidade-menu.show {
  display: block;
}


.versao-desktop {
  display: block;
}

.versao-mobile {
  display: none;
}

.btn-veja-mais {
  background-color: #fbe474;
  border: none;
  padding: 7px 20px 6px 20px;
  border-radius: 25px;
  text-align: center;
  color: #203736;
  font-size: 0.9em; 
  font-weight: bold;
  transition: 0.3s;
  text-decoration: none;
  margin-left: 10px;
  margin-top: 2px;
}

.btn-veja-mais:hover {
  background-color: #203736;
  color: #fbe474;
}

.vinheta-home-titulo {
  color: #203736;
  font-size: 1.5em; 
  font-weight: bold;
}

/* BARRA TOPO DESKTOP */

.barra-topo-desktop {
    background-color: #fbe474;
    font-size: 0.9em; 
    font-weight: 600;
    color: #505659;
    display: block;
}

.barra-topo-desktop-icon   {
    padding: 7px 0px;
}


.barra-topo-desktop-icon a  {
    text-decoration: none;
}

.barra-topo-desktop-icon a i {
    background-color:  #505659;
    border: none;
    border-radius: 4px; 
    padding: 2px 5px;
    font-size: 1.10em; 
    color:#fbe474;
    margin-left: 7px;
    transition: 0.3s
}

.barra-topo-desktop-icon a i:hover {    
    color: #999;
    text-decoration: none;
}

.barra-topo-desktop-acessibilidade {
  padding: 7px 0px;
  background-color: #f3c934;
  font-size: 0.9em; 
  font-weight: 600;
  color: #505659;
}

.barra-topo-desktop-acessibilidade button {
  background-color: #fbe474;
  border: none;
  border-radius: 4px; 
  padding: 2px 6px;
  font-size: 1.10em; 
  color: #505659;
  margin-left: 7px;
  transition: 0.3s
}

.barra-topo-desktop-acessibilidade button:hover {
  background-color: #454a4c;
  color: #fbe474;
}

.barra-topo-desktop-right {
  padding: 9px 3px 0px;
  font-size: 0.9em; 
  font-weight: 600;
  color: #505659;
}

/* BARRA TOPO MOBILE */

.barra-topo-mobile {
    display: none;
}

.header {
  box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.10);
  background-image: linear-gradient(to top, #f7f6f2, #fff);
}

.header-desktop {
  display: block;
}

.header-mobile {
  display: none;
}

.menu-desktop {
    display: block;    
  }

.menu-mobile {
  display: none;    
}


.logo-header {
  width: 250px;
  padding: 20px 0px;
}

.acesso-rapido {
   background-color: #203736;
   padding: 40px 0px;
}

.acesso-rapido h5 {
   font-size: 1.5em;
   font-weight: bold;
   color: #85959e;
   text-align: center;
}

.acesso-rapido .servicos-carousel .card {
  background-color: #2d473f; /* levemente mais claro que o fundo */
  border-radius: 8px;
  padding: 20px;
  color: white;
  text-align: center;
  margin: 0 10px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.acesso-rapido .servicos-carousel .card img {
  max-width: 40px;
  margin: 0 auto 15px auto;
}

.acesso-rapido .servicos-carousel a {
  text-decoration: none;
  transition: 0.3s;
}

.acesso-rapido .servicos-carousel a:hover {
  text-decoration: none;
  opacity: 0.75;
  transform: scale(1.03);
}

.acesso-rapido .servicos-carousel .card h5 {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

/* Setas personalizadas para fora */
.acesso-rapido .slick-prev,
.acesso-rapido .slick-next {
  width: 40px;
  height: 40px;
  background-color: #BFA23B !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white !important;
  font-size: 20px;
  line-height: 1;
  border: none;
  outline: none;
  opacity: 1 !important;
}

.acesso-rapido .slick-prev:hover,
.acesso-rapido .slick-next:hover {
  background-color: #BFA23B !important;
  color: white !important;
  opacity: 0.85 !important;
}

.acesso-rapido .slick-prev i,
.acesso-rapido .slick-next i {
  font-size: 18px;
  color: white;
}

.acesso-rapido .slick-prev {
  left: -45px;
}

.acesso-rapido .slick-next {
  right: -45px;
}

/* Remove as setas padrão do slick */
.acesso-rapido .slick-prev:before,
.acesso-rapido .slick-next:before {
  content: "";
}

/* POPUP */
.popup-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.popup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Remover padding e fundo do popup */
.swal2-popup {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Botão de fechar customizado */
.swal2-close {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  font-size: 20px !important;
  line-height: 32px;
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  outline: none !important;
  cursor: pointer;
  z-index: 9999;
}

.swal2-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* EDITAIS */

.edital-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 4px;
}

.edital-item-coluna1 {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edital-item-pdf-icon {
  background-color: #d32f2f;
  color: #fff;
  border-radius: 4px;
  padding: 10px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.edital-item-coluna2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.edital-item-titulo {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edital-item-titulo a {
  text-decoration: none;
  color: inherit;
}

.edital-item-titulo a:hover {
  text-decoration: none;
  color: #406c9b;
}

.edital-item-data {
  font-size: 0.875em;
  color: #444;
  margin-top: 5px;
}

.edital-item-coluna3 {
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: right;
}

.edital-item-botao {
  padding: 8px 12px;
  background-color: #406c9b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875em;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.edital-item-botao:hover {
  background-color: #315983;
  color: #fff;
}

.video-item {
  border-radius: 10px;
  background-color: #edeff1;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
}

.video-item-codigo iframe {
  border-radius: 6px;
  width:100%;
  height: 200px;
}

.video-item-content {
  font-size: 1em;
  font-weight: bold;
  color: #203736;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limita a 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* GALERIA */

.galeria-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.galeria-card {
  display: flex;
  width: calc(50% - 15px);
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  height: 220px;
}

.galeria-imagem {
  width: 55%;
  background-size: cover;
  background-position: center;
  height: 100%;
}

.galeria-conteudo {
  width: 45%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.galeria-titulo {
  font-size: 1em;
  margin: 0 0 6px 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.galeria-categoria {
  background-color: #03b34e;
  border-radius: 4px;
  padding: 6px 18px;
  color: #fff;
  font-size: 0.6em;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 7px;
}

.galeria-botao {
  margin-top: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.galeria-botao:hover {
  background-color: #0056b3;
  color: #fff;
}

@media (max-width: 768px) {
  .galeria-card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .galeria-imagem {
    width: 100%;
    height: 180px;
  }
  .galeria-conteudo {
    width: 100%;
  }
}

@media (max-width: 768px) {

  .versao-desktop {
    display: none;
  }

  .versao-mobile {
    display: block;
  }

  /* BARRA TOPO DESKTOP */

  .barra-topo-mobile {
    background-color: #fbe474;
    font-size: 0.8em; 
    font-weight: 600;
    color: #505659;
    display: block;
  }

  .barra-topo-mobile-icon   {
    padding: 7px 0px;
  }


  .barra-topo-mobile-icon a  {
    text-decoration: none;
  }

  .barra-topo-mobile-icon a i {
    background-color: #505659;
    border: none;
    border-radius: 4px; 
    padding: 2px 5px;
    font-size: 0.8em; 
    color:#fbe474;
    margin-left: 0px;
    margin-right: 3px;
    transition: 0.3s
  }

  .barra-topo-mobile-icon a i:hover {    
    color: #999;
    text-decoration: none;
  }

  .barra-topo-mobile-right {
    padding: 9px 3px 0px;
    font-size: 0.9em;
    font-weight: 600;
    color: #505659;
  }

  .barra-topo-mobile-acessibilidade {
    padding: 7px 0px;
    background-color: #fff;
    font-size: 0.9em; 
    font-weight: 600;
    color: #505659;
    border-top: 1px solid #eee;
  }

  .barra-topo-mobile-acessibilidade button {
    background-color: #fff;
    border: none;
    border-radius: 50px; 
    padding: 3px 6px;
    font-size: 1.0em; 
    color: #505659;
    margin: 3px 2px;
    transition: 0.3s;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.12);
  }

  .barra-topo-mobile-acessibilidade button:hover {
    opacity: 0.8;
  }

  /* BARRA TOPO MOBILE */

  .barra-topo-desktop {
      display: none;
  }

  .header {
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.10);
    background-image: none;
    background-color: #fff;
  }

  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }

  .logo-header-mobile {
    width: 265px;
    padding: 15px 0px;
  }

  .menu-desktop {
    display: none;    
  }

  .menu-mobile {
    display: block;    
  }

  .btn-veja-mais {
    background-color: #fbe474;
    border: none;
    padding: 5px 15px 3px 15px;
    border-radius: 25px;
    text-align: center;
    color: #203736;
    font-size: 0.8em; 
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
    margin-left: 6px;
    margin-top: 2px;
  }

  .btn-veja-mais:hover {
    background-color: #203736;
    color: #fbe474;
  }

  .vinheta-home-titulo {
    color: #203736;
    font-size: 1em; 
    font-weight: bold;
  }

}