.news-page__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .news-page__container {
    padding: 0 20px;
  }
}

.news-page__heading {
  font-family: "Fixel Display", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #04083a;
  margin: 0 0 24px;
  letter-spacing: -0.8px;
}
@media screen and (max-width: 768px) {
  .news-page__heading {
    font-size: 28px;
  }
}
@media screen and (max-width: 480px) {
  .news-page__heading {
    font-size: 22px;
  }
}

.news-page__empty {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  color: #7a7d98;
  padding: 40px 0;
}

.news-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .news-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

.news-filters__cats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .news-filters__cats {
    gap: 12px;
  }
}

.news-filters__cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #04083a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.news-filters__cat .news-filters__chevron {
  width: 24px;
  height: 24px;
  color: #eb7a1b;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.news-filters__cat:active {
  color: #eb7a1b;
}
@media screen and (min-width: 1025px) {
  .news-filters__cat:hover {
    color: #eb7a1b;
  }
}
.news-filters__cat.is-active {
  color: #eb7a1b;
  font-weight: 600;
}
.news-filters__cat.is-active .news-filters__chevron {
  transform: rotate(180deg);
}
@media screen and (max-width: 768px) {
  .news-filters__cat {
    font-size: 16px;
  }
}

.news-filters__clear {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #7a7d98;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.news-filters__clear:active {
  color: #eb7a1b;
}
@media screen and (min-width: 1025px) {
  .news-filters__clear:hover {
    color: #eb7a1b;
  }
}

.news-filters__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .news-filters__right {
    width: 100%;
  }
}

.news-filters__filter-wrap {
  position: relative;
  flex-shrink: 0;
}

.news-filters__filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px 12px;
  background: rgba(235, 122, 27, 0.08);
  border: 1px solid rgba(235, 122, 27, 0.32);
  border-radius: 4px;
  color: #eb7a1b;
  cursor: pointer;
  transition: background-color 0.2s;
}
.news-filters__filter-btn:active {
  background: rgba(235, 122, 27, 0.16);
}
@media screen and (min-width: 1025px) {
  .news-filters__filter-btn:hover {
    background: rgba(235, 122, 27, 0.16);
  }
}

.news-filters__filter-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #a7ccee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(4, 8, 58, 0.12);
  padding: 20px;
  width: 320px;
}
.news-filters__filter-popup[hidden] {
  display: none;
}
@media screen and (max-width: 480px) {
  .news-filters__filter-popup {
    width: calc(100vw - 40px);
    left: 0;
  }
}

.news-filters__filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-filters__filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-filters__filter-label {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7a7d98;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-filters__filter-select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #04083a;
  background: #fafcfe;
  transition: border-color 0.2s;
  outline: none;
}
.news-filters__filter-select:focus {
  border-color: #eb7a1b;
}

.news-filters__filter-dates {
  display: flex;
  gap: 12px;
}

.news-filters__date-label-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7a7d98;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-filters__date-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #04083a;
  background: #fafcfe;
  transition: border-color 0.2s;
  outline: none;
}
.news-filters__date-input:focus {
  border-color: #eb7a1b;
}

.news-filters__date-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.news-filters__date-apply {
  flex: 1;
  height: 34px;
  background: #eb7a1b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.news-filters__date-apply:active {
  opacity: 0.9;
}
@media screen and (min-width: 1025px) {
  .news-filters__date-apply:hover {
    opacity: 0.9;
  }
}

.news-filters__date-clear {
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  color: #7a7d98;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.news-filters__date-clear:active {
  border-color: rgba(4, 8, 58, 0.4);
  color: #04083a;
}
@media screen and (min-width: 1025px) {
  .news-filters__date-clear:hover {
    border-color: rgba(4, 8, 58, 0.4);
    color: #04083a;
  }
}

.news-filters__search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  padding: 0 12px;
  gap: 10px;
  width: 308px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.news-filters__search:focus-within {
  border-color: #eb7a1b;
}
@media screen and (max-width: 768px) {
  .news-filters__search {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}

.news-filters__search-icon {
  flex-shrink: 0;
  color: rgba(4, 8, 58, 0.37);
}

.news-filters__search-input {
  flex: 1;
  border: none !important;
  outline: none;
  background: none;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #04083a;
  padding-left: 0 !important;
}
.news-filters__search-input::-webkit-input-placeholder {
  color: rgba(4, 8, 58, 0.25) !important;
}
.news-filters__search-input:-moz-placeholder {
  color: rgba(4, 8, 58, 0.25) !important;
}
.news-filters__search-input::-moz-placeholder {
  color: rgba(4, 8, 58, 0.25) !important;
}
.news-filters__search-input:-ms-input-placeholder {
  color: rgba(4, 8, 58, 0.25) !important;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 480px) {
  .news-pagination {
    gap: 8px;
  }
}
@media screen and (max-width: 380px) {
  .news-pagination {
    justify-content: flex-start;
  }
}

.news-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #a7ccee;
  border-radius: 999px;
  color: #04083a;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.news-pagination__btn:active {
  border-color: #eb7a1b;
  color: #eb7a1b;
}
@media screen and (min-width: 1025px) {
  .news-pagination__btn:hover {
    border-color: #eb7a1b;
    color: #eb7a1b;
  }
}
.news-pagination__btn--disabled {
  opacity: 0.35;
  pointer-events: none;
}

.news-pagination__pages {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #04083a;
  text-decoration: none;
  transition: color 0.2s;
}
.news-pagination__page:active {
  color: #eb7a1b;
}
@media screen and (min-width: 1025px) {
  .news-pagination__page:hover {
    color: #eb7a1b;
  }
}
.news-pagination__page--active {
  width: 44px;
  height: 44px;
  background: #eb7a1b;
  border-radius: 999px;
  color: #fff;
}

.news-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #04083a;
}
