aside {
  display: flex;
  flex-direction: column;
  gap: 15px;

  & .noticia {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 15px #00000011;
    gap: 15px;

    & picture {
      display: block;
      width: 100%;
      max-height: 300px;
      overflow: inherit;
      border-radius: 7px;

      & img {
        object-fit: cover;
        border-radius: 7px;
      }
    }

    & .titulo-noticia {
      & h3 {
        padding: 0;
        border: none;
        font-size: 1.2rem;
        text-align: center;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-wrap: break-word;
      }
    }
  }
}

#portal-noticias {
  padding: 20px;

  & a {
    text-decoration: none;
    color: var(--color) !important;
  }

  & .noticia {
    /* tag generalizada no style.css */
    height: 300px;
  }

  & .noticia.horizontal.full {
    /* tag generalizada no style.css */
    height: 100%;
    max-height: 500px;
    padding: 30px;
    gap: 30px;

    & .imagem {
      border-right: 1px solid #ccc;
      padding-right: 30px;
      max-height: 350px;
    }

    & .texto {
      & h3 {
        padding-bottom: 20px;
        margin-bottom: 20px;
      }
    }
  }

  .noticias-menores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 10px;
    width: 100%;

    & > a > * {
      height: 100%;
    }

    & .noticia {
      gap: 15px;

      & .imagem {
        height: 250px;
      }

      & .texto {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;

        & .info {
          display: flex;
          justify-content: space-between;
        }
      }
    }
  }
}

#noticia {
  background-color: #fff;
  padding: 70px 120px;
  min-height: 100%;

  & > section {
    display: flex;
    flex-direction: column;
    gap: 45px;

    & > header {
      h1 {
        text-align: center;
        margin: 0;
        padding: 0;
        padding-bottom: 30px;
      }

      p {
        text-align: center;
        margin: 0;
        padding: 0;
      }
    }

    & picture {
      & img {
        max-width: 100%;
        max-height: 500px;
        object-fit: contain;
        border-radius: 10px;
      }
    }

    & > .conteudo {
      & p {
        font-size: 1.4rem !important;
      }
    }

    & > .info {
      display: flex;
      justify-content: space-between;
    }

    & > .anexo {
      width: 100%;
      display: flex;
      justify-content: center;

      & > a {
        display: flex;
        width: fit-content;
        padding: 20px 20px;
        gap: 20px;
        justify-content: center;
        background-color: var(--cor-secundaria);
        border-radius: 10px;
        transition: 0.2s ease-in-out;

        & * {
          color: #fff !important;
          font-size: 1.4rem;
          font-weight: normal;
          text-align: center;
        }

        & .icone {
          font-size: 1.7rem;
        }
      }

      & > a:hover {
        background-color: var(--cor-secundaria-clara);

        & * {
          color: #fff !important;
        }
      }
    }
  }
}

@media (max-width: 1024px) {
  #noticia {
    background-color: #fff;
    padding: 70px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;

    & > section {
      width: 80%;
    }
  }
}

.nav-paginacao {
  display: flex;
  justify-content: center;
}

.paginacao .active {
  background-color: var(--cor-principal);
  color: white;
}

.conteudo-noticias {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  width: 100%;
  padding: 15px;
}

.lista-noticias {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  width: 100%;
}

.item-noticia {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  text-decoration: none;
  border-bottom: 2px solid #e5e5e5;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}

.item-noticia:hover .titulo-noticia {
  text-decoration: underline;
}

.thumb-noticia {
  min-width: 180px;
  max-width: 180px;
  height: 110px;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
  flex-shrink: 0;
}

.thumb-noticia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conteudo-noticia {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
}

.data-noticia {
  font-size: 14px;
  margin-bottom: 5px;
}

.titulo-noticia {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  padding: 0px;
  border: none;
}

@media (max-width: 768px) {
  .item-noticia {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb-noticia {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 200px;
  }

  .titulo-noticia {
    font-size: 22px;
  }

  .descricao-noticia {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .thumb-noticia {
    height: 160px;
  }

  .titulo-noticia {
    font-size: 20px;
  }

  .descricao-noticia {
    font-size: 15px;
  }
}

/* Barra de Pesquisa  */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-container:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.search-container:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: color 0.2s ease;
  pointer-events: none;
}

.search-container:hover .search-icon {
  color: #6b7280;
}

.search-container:focus-within .search-icon {
  color: #2563eb;
}

#pesquisa {
  flex: 1;
  padding: 1rem 3rem 1rem 3.2rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: #1a1a1a;
}

#pesquisa::placeholder {
  color: #9ca3af;
}

.clear-button {
  position: absolute;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border: none;
  background-color: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #6b7280;
}

.clear-button:hover {
  background-color: #e5e7eb;
  color: #1a1a1a;
}

.clear-button.visible {
  display: flex;
}

/* Contador de Resultados */
.search-results-info {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  min-height: 1.25rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.search-results-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 2px dashed #d0d7de;
  border-radius: 12px;
  color: #333;
  margin-top: 20px;
}

.not-found i {
  font-size: 40px;
  color: #004b87;
  margin-bottom: 12px;
}

.not-found h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  border: none;
}

.not-found p {
  font-size: 16px;
  color: #666;
}
