section.posts-pages {
  padding: 60px 80px;
  color: var(--secondary);
}

.grid-publicacoes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

@media screen and (min-width: 500px) and (max-width: 700px) {
  .post-card {
    display: flex;
  }

  .post-card .post-card-img-container {
    width: 40%;
  }

  .post-card .post-card-info {
    width: 60%;
  }
}

@media screen and (max-width: 700px) {
  .post-card {
    max-width: 100%;
  }

  .grid-publicacoes {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 500px) {
  .post-card .post-card-img-container {
    max-height: 200px;
  }
}

@media screen and (max-width: 600px) {
  section.posts-pages {
    padding: 40px;
  }
}

@media screen and (max-width: 400px) {
  section.posts-pages {
    padding: 20px;
  }
}

.posts-filtro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.search-input {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input input {
  border: 1px solid #d9e1eb;
  background: white;
  padding: 12px 40px;
  width: 100%;
  color: #929292;
  font-family: "Noto Sans";
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
}

.search-input .search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 16px;
  z-index: 1;
}

.search-input .btn-clear-field {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border-radius: 100px;
  aspect-ratio: 1 / 1;
  background: transparent;
  color: var(--secondary);
  padding: 3px;
  display: none;
}

.search-input .btn-clear-field:hover {
  border: 1px solid var(--secondary);
  cursor: pointer;
}

.search-filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  color: #243653;
  font-size: 1.1em;
}

.search-filter-btn button {
  position: absolute;
  right: 4;
  top: 4;
  height: calc(100% - 8px);
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.filter label {
  color: var(--secondary, #1F2D3D);
  font-family: "Noto Sans";
  font-size: 12px;
  font-weight: 700;
  width: max-content;
}

.select-wrapper select {
  padding: 6px 12px;
  border-radius: 20px;
  border: 0.5px solid #B1B1B1;
  background: #FFF;
  appearance: none;
  padding-right: 36px;
  font-family: "Noto Sans";
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary);
}

.filters-select {
  display: flex;
  gap: 40px;
}

.filter {
  display: flex;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper i {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 18px;
}

@media screen and (max-width: 1100px) {
  .filter {
    column-gap: 12px;
    row-gap: 8px;
    flex-direction: column;
    align-items: start;
  }

  .filters-select {
    gap: 20px;
  }
}

@media screen and (max-width: 800px) {
  .posts-filtro {
    flex-direction: column;
    gap: 20px;
  }

  .filters-select {
    gap: 20px;
    align-self: end;
    flex-wrap: wrap;
    justify-content: end;
  }

  .search-input {
    max-width: unset;
  }
}

@media screen and (max-width: 400px) {
  .filter {
    width: 100%;
  }

  .select-wrapper {
    width: 100%;
  }

  .select-wrapper select {
    width: 100%;
  }
}

.no-posts-found{
  display: flex;
  height: 280px;
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans";
}

.pagination-ajax {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 32px 0 0 0;
}

.pagination-ajax a,
.pagination-ajax span,
.pagination-ajax .page-numbers {
  font-family: "Noto Sans";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #F2F2F2 ;
  color: var(--main);
  background: #fff;
  font-weight: 500;
  transition: all 0.16s;
  margin: 0 2px;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
}

.pagination-ajax .active,
.pagination-ajax .current,
.pagination-ajax span.current {
  background: var(--main);
  color: #fff !important;
  border-color: var(--main);
  pointer-events: none;
}

.pagination-ajax a:hover:not(.current):not(.active) {
  background: #ffe7df;
}

.pagination-ajax a[aria-disabled="true"],
.pagination-ajax a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-ajax .page-numbers.dots {
  border: none;
  background: none;
  color: #bdbdbd;
}

@media (max-width: 600px) {
  .pagination-ajax a,
  .pagination-ajax span,
  .pagination-ajax .page-numbers {
    min-width: 32px;
    min-height: 32px;
    font-size: 15px;
    padding: 0 6px;
    border-radius: 6px;
  }
}

