/* === BASE === */
body {
  background-color: #f8f9fa !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.header {
  background: #000;
  color: #fff;
  padding: 10px 0;
}
.header .logo {
  width: 60px;
}

.header .logo.clear-width {
  width: auto !important;
}

.w130 {
  width: 130px !important;
}

/* .header .logo::before {
  height: 50px !important;
} */
.btn-print,
.btn-controle,
#btn-exibir,
#btn-ocultar {
  color: initial !important;
  text-decoration: none !important;
  padding: 2px 5px;
  background: #eee;
}

.btn-group.list {
  display: flex;
  gap: 10px; /* ajusta o espaço entre os botões */
  align-items: center;
}

/* === CARDS GERAIS === */
.repo-card,
.doc-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.doc-card.destaked {
  /* background: #000; */
}
/* Borda e destaque */
.doc-card.destaked {
  border: 2px solid #7a5f2f;
  box-shadow: 0 0 12px rgba(122, 95, 47, 0.25);
  background-color: #fff9f0;
  position: relative;
}
.doc-card.destaked span {
  background-color: #fff !important;
}

.doc-card.destaked::before {
  content: "Destacado";
  position: absolute;
  top: -10px;
  left: -10px;
  background: #7a5f2f;
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.doc-card.destaked h5,
.doc-card.destaked p {
  /* color: #fff !important; */
}

.repo-card:hover,
.doc-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.repo-icon,
.doc-icon {
  background: #eaeaea;
  color: #000;
  font-size: 26px;
  padding: 12px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
}

.repo-info h5,
.doc-info h5 {
  margin: 0;
  font-weight: 600;
}

.repo-info p,
.doc-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  padding-right: 25px;
}

.repo-buttons a,
.doc-buttons a {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* === SUBCATEGORIAS DOS CARDS DO REPOSITÓRIO === */

/* .repo-subcats {
    /* margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
} 
*/

.repo-subcats h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a5f2f;
  margin-bottom: 10px;
}

.repo-subcats ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.repo-subcats ul li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.repo-subcats ul li a {
  color: #333;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.repo-subcats ul li a:hover {
  color: #7a5f2f;
}

.repo-subcats ul li i {
  font-size: 0.75rem;
  margin-right: 6px;
  opacity: 0.7;
}

/* === BOTÕES === */
.btn-download {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background-color: #222;
  color: gold !important;
}

.btn-access {
  background-color: #e5e7eb !important;
  color: #111;
}

.btn-access:hover {
  background-color: #d1d5db;
}

.btn-buscar {
  background-color: #000;
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-buscar:hover {
  background-color: #222;
  transform: scale(1.03);
}

/* === LOGO === */
.logo-wrapper {
  .logo {
    position: relative;
    margin-right: 75px;

    img {
      width: 110px;
    }
  }

  .logo::before {
    content: "";
    top: 15px;
    position: absolute;
    width: 1px;
    height: 120px;
    background-color: #fff;
    left: 120px;
  }

  .text-logo {
    font-size: 58px;
    font-weight: 700;

    span {
      font-size: 12px;
      display: block;
      font-weight: 200;
      letter-spacing: 3px;
    }
  }
  .text-logo h1 {
    font-size: 40px !important;
    font-weight: bold;
    letter-spacing: -0.5px;
  }
  .text-logo h1 span {
    font-size: 18px;
  }
}

.logo-estado figure {
  height: 140px;
  display: flex;
  align-items: center;
}
.logo-estado figure img,
.logo-estado img {
  width: 220px;
}

/* === MENU === */
.menu li {
  list-style-type: none;
}

.menu a {
  color: #000;
  text-decoration: none;
  padding: 10px 10px 10px 25px;
  position: relative;
  display: block;
  transition: 0.5s all;
}
.menu a:hover {
  color: #000 !important;
}

.menu a::before {
  content: "";
  background: url(../../assets/images/arrow.svg);
  background-size: cover;
  width: 15px;
  height: 15px;
  position: absolute;
  left: 10px;
  top: 15px;
  transform: rotate(270deg);
  transition: 0.1s all;
}

.menu a:hover {
  background-color: #f1f1f1;
}

.menu a:hover::before {
  left: 12px;
}

/* === BARRA DE BUSCA === */
.search-index .block-search {
  position: relative;
  background: #fff;
  border-radius: 15px;
}

.search-index .block-search input,
.search-index .block-search button {
  border: none;
  background: none;
}

.search-index .block-search button {
  position: absolute;
  right: 0;
  top: -50%;
  transform: translateY(-50%);
}

/* === BARRA DE BUSCA AVANÇADA === */
.search-bar {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  margin-bottom: 40px;
  border-left: 6px solid #000;
}

.search-bar h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #111;
  display: flex;
  align-items: center;
}

.search-bar h5 i {
  color: #000;
  margin-right: 10px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  z-index: 999;
}

.input-icon input,
.input-icon .select2-container--default .select2-selection--single,
.input-icon .select2-container--default .select2-selection--multiple {
  padding-left: 35px !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 12px !important;
  border-color: #ccc !important;
  min-height: 40px;
  box-shadow: none;
}

/* === PÁGINA SINGLE === */
.single-container {
  margin-top: 40px;
}

.single-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.single-meta {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.single-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: Arial, Helvetica, sans-serif !important;
}
.single-content.print {
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single-content p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px !important;
  /* margin-bottom: 1rem; */
}
.single-content h4 {
  margin: 1.2em 0 !important;
  text-align: center;
  font-size: 12pt !important;
  font-weight: bold !important;
}

.single-content h2,
.single-content h3 {
  font-weight: 700;
  color: #000;
  margin-top: 1.5rem;
}

.single-content ul,
.single-content ol {
  margin-left: 0 !important;
  /* margin-bottom: 1rem; */
  margin-bottom: 0 !important;
  padding-left: 10px;
}

.single-content li {
  /* margin-bottom: 0.5rem; */
  /* list-style-type: none; */
  margin-bottom: 0px !important;
  list-style: " - ";
  margin-bottom: 0 !important;
}

.single-content a {
  text-decoration: underline;
}

.single-content a:hover {
  color: #444;
}

.single-content blockquote {
  border-left: 4px solid #000;
  padding-left: 15px;
  color: #555;
  font-style: italic;
  background: #f3f3f3;
  border-radius: 8px;
  margin: 1.2rem 0;
}
.single-content td {
  border-width: 1pt;
}
/* === SIDEBAR === */
.sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar h5 {
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.sidebar h5 i {
  color: #000;
  margin-right: 8px;
}

/* === BOX PDF === */
.pdf-box {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  background: #f9f9f9;
}

.pdf-box i {
  font-size: 40px;
  color: #000;
  margin-bottom: 10px;
}

.pdf-box p {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 15px;
}

/* === META DOC === */
.doc-meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}

.doc-meta span {
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

.sidebar-toc {
  position: sticky;
  top: 100px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 1em 1.5em;
  border-radius: 10px;
  font-size: 0.9em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-height: 80vh;
  overflow-y: auto;
}
.sidebar-toc h3 {
  margin-top: 0;
  font-size: 1.1em;
  color: #333;
}
.sidebar-toc ul {
  list-style: none;
  padding-left: 0;
}
.sidebar-toc li {
  margin-bottom: 6px;
}
.sidebar-toc li.nivel-3 {
  margin-left: 10px;
}
.sidebar-toc li.nivel-4 {
  margin-left: 20px;
}

.sidebar-toc a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-toc a:hover {
  color: #005f8d;
}
.sidebar-toc a.active {
  color: #005f8d;
  font-weight: bold;
}
.min-height {
  min-height: calc(100vh - 341px);
}
/* ======== SEÇÃO DE NOTÍCIAS ======== */
.news-section {
  padding: 40px 0;
}

.news-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.news-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Cada coluna */
.news-section .col {
  flex: 1 1 300px;
  max-width: 350px;
}

/* ======== CARD ======== */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ======== IMAGEM ======== */
.news-thumb {
  position: relative;
}

.news-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid #f4b400; /* cor destaque */
}

/* Categoria no canto superior esquerdo */
.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f4b400;
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ======== CONTEÚDO ======== */
.news-content {
  padding: 16px 20px 20px;
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 6px;
}

.news-title {
  font-size: 1rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-excerpt {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: #f4b400;
}

.filtro-ano-publicacao {
  margin-bottom: 20px;
}

.filtro-ano-publicacao ul {
  list-style: none;
  padding: 0;
}

.filtro-ano-publicacao li {
  display: inline-block;
  margin-right: 4px;
}

.filtro-ano-publicacao a {
  background: #eee;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  margin-bottom: 4px;
  display: block;
}

.filtro-ano-publicacao a:hover {
  background: #ccc;
}

.lista-repositorios ul {
  list-style: none;
  padding: 0;
}

.lista-repositorios li {
  margin-bottom: 8px;
}

/* ======== SEÇÃO PRINCIPAL (BLOCOS INDEX) ======== */
.home-blocos {
  background: #f5f5f5;
  padding: 60px 0;
}

.home-blocos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blocos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.procedimento-copiavel {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 600;
}

.procedimento-copiavel:hover {
  text-decoration: underline;
}

.procedimento-copiavel.copiado {
  color: #16a34a;
}

/* ======== BLOCOS INDIVIDUAIS ======== */
.bloco-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  width: 320px;
  min-height: 280px;
  padding: 40px 25px;
  text-align: center;
  color: #3a3a3a;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.bloco-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Ícones */
.bloco-icone {
  font-size: 50px;
  color: #7a5f2f; /* tom marrom institucional */
  margin-bottom: 20px;
}

/* Título */
.bloco-titulo {
  font-size: 1.3rem;
  color: #2b2b2b;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Texto */
.bloco-texto {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ======== SEÇÃO DE NOTÍCIAS ======== */
.secao-noticias {
  background: #f4f5f7;
  padding: 60px 0;
}

.secao-noticias .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======== CABEÇALHO ======== */
.noticias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.noticias-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

/* link "ver tudo" */
.noticias-header .ver-tudo {
  color: #7a5f2f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticias-header .ver-tudo:hover {
  color: #000;
}

/* ======== LISTA DE NOTÍCIAS ======== */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-posts li {
  margin-bottom: 12px;
}

/* ======== CARD ======== */
.noticia-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.noticia-data {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.noticia-data i {
  margin-right: 5px;
  color: #7a5f2f;
}

.noticia-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.noticia-titulo a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticia-titulo a:hover {
  color: #7a5f2f;
}

.search-wrapper {
  display: flex;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  outline: none;
}

.search-select {
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  border-left: 1px solid #e5e5e5;
  background: #f8f8f8;
  outline: none;
}

.search-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #333;
}

.pagination-wrapper {
  text-align: center;
  margin-top: 30px;
}

.pagination-wrapper ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 8px;
}

.pagination-wrapper li {
  display: inline-block;
}

.pagination-wrapper a,
.pagination-wrapper span {
  padding: 10px 16px;
  background: #f5f5f5;
  border-radius: 6px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.pagination-wrapper a:hover {
  background: #7a5f2f;
  color: #fff;
  border-color: #7a5f2f;
}

.pagination-wrapper .current {
  background: #7a5f2f;
  color: #fff !important;
  border-color: #7a5f2f;
}

.pagination-wrapper i {
  font-size: 14px;
}

.acesso-restrito-box {
  margin-top: 100px;
  margin-bottom: 370px;
}

.acesso-restrito-box h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}
.acesso-restrito-box h4 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 30px;
  color: #555;
  font-weight: 100;
}
.acesso-restrito-box p {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}
.acesso-restrito-box .acesso-btns {
  text-align: center;
}
.acesso-restrito-box .acesso-btns a {
  display: inline-block;
  margin: 0 15px;
  padding: 12px 28px;
  font-size: 18px;
  color: #fff !important;
  background-color: #000;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.badge-pad {
  background-color: #dc2626; /* vermelho */
}

.badge-sind {
  background-color: #2563eb; /* azul */
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.procedimento-texto {
  margin-right: 6px;
}

.modal-content {
  background: #fff;
  max-width: 500px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 6px;
}

.modal textarea {
  width: 100%;
  padding: 10px;
}

.comentario-item {
  background: #f9fafb;
  border-left: 4px solid #1d4ed8;
  padding: 10px;
  margin-bottom: 10px;
}

.pagination,
.page-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 2px !important;
}

/* Botões */
.page-numbers a,
.page-numbers,
.page-numbers.current {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

/* Hover */
.page-numbers a:hover {
  background: #f1f1f1;
  border-color: #bbb;
}

/* Página atual */
.page-numbers.current {
  background: #e5e7eb;
  border-color: #bbb !important;
  color: #000;
  font-weight: 600;
}

/* Botão próxima */
.page-numbers.next {
  font-weight: 600;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
  .noticias-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .blocos-grid {
    flex-direction: column;
    align-items: center;
  }
  .bloco-item {
    width: 90%;
  }
}

/* === RESPONSIVIDADE === */
@media (max-width: 992px) {
  .sidebar {
    margin-top: 30px;
  }
}
