section.search-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

section.search-container div h1 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

section.search-container div {
  margin-bottom: 1rem;
}

.search-input {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

section.search-container div p {
  text-align: center;
  text-justify: inter-character;
  word-spacing: normal !important;
  hyphens: none;
  word-break: break-word;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

section.search-container input {
  width: 95%;
  height: 2rem;
  border-radius: 0.5rem;
  padding: 0 0.5rem;
}

.filters-container {
  display: flex;
  gap: 0.9375rem;
}

.filter-item {
  position: relative;
  display: inline-block;
}

.filter-button {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #000000;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 0 0.25rem 0.25rem;
  padding: 0.3125rem 0;
  z-index: 1;
}

.option-button {
  background: none;
  border: none;
  padding: 0.625rem 1rem;
  text-align: left;
  width: 100%;
  display: block;
  font-size: 0.875rem;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.option-button:hover {
  background-color: #4c74f8;
  color: #ffffff;
}


.filter-item:hover .dropdown-content {
  display: block;
}

@media only screen and (max-width: 420px) {
  .filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .filter-item {
    width: 90%;
    display: flex;
    justify-content: center;
  }

  .filter-button {
    width: 100%;
    text-align: center;
  }
}






/* Seções de Filtro */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Botões de Filtro */
.btn-filter {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  /*border: 1px solid #cbd5e1;*/
  background: var(--bg-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-filter:hover {
  background: var(--bg-color-hover);
}

.btn-filter.active-etapa {
  background: #3f63f5;
  color: #ffffff;
  border-color: #3f63f5;
}

.btn-filter.active-ano {
  background: #3f63f5;
  color: #ffffff;
}

.btn-filter.active-materia {
  background: #3f63f5;
  color: #ffffff;
}

.year-section {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}