.news-page__search-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-page__search-icon {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#newsPageSearchInput {
  padding-left: 50px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-black);
  outline: none;
  border: 1px solid transparent;
  background-color: var(--color-gray-275);
  border-radius: 100px;
  width: 100%;
  box-sizing: border-box;
}

.news-page__search-bar input {
  padding: 15px;
}

#newsPageSearchInput::placeholder {
  color: var(--color-gray-700);
}

#newsPageSearchInput:focus {
  border: 1px solid var(--color-primary);
}

.news-page__search {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.news-page__tag {
  padding: 7px 20px;
  border: 1px solid var(--color-gray-300);
  background-color: var(--color-white);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
}

.news-page__tag:hover {
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.news-page__tag.activeTag {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  cursor: default;
}

@media (max-width: 1024px) {
  .news-page__tags {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .news-page__tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-page__tags::-webkit-scrollbar {
    display: none;
  }

  .news-page__search-bar input {
    padding: 12px;
  }
}
