.sw-news-page {
  background: #0D0D0C;
  padding: 120px 0 120px 0;
  width: 100%;
}

.sw-news-page__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  position: relative;
  padding: 32px 80px;
}

.sw-news-page__title {
  font-family: 'Russo One', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 120%;
  letter-spacing: 0;
  color: #F9F9F9;
  margin: 0px;
  vertical-align: middle;
  text-align: center;
}

.sw-news-page__desc {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  color: #F9F9F9;
  vertical-align: middle;
  text-align: center;
  padding-bottom: 100px;
}

.sw-news-page__controls {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.sw-news-page__search-wrap {
  display: flex;
  align-items: center;
  background: #171717;
  border-radius: 16px;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.sw-news-page__search-icon {
  margin-left: 12px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sw-news-page__search-input {
  background: transparent;
  border: none;
  color: #D8D8D8;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  flex: 1 1 0;
  height: 100%;
  outline: none;
  padding: 0;
  min-width: 0;
}

.sw-news-page__search-label {
  color: #D8D8D8;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 0;
  pointer-events: none;
  background: transparent;
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s;
}

.sw-news-page__search-input:focus + .sw-news-page__search-label,
.sw-news-page__search-input:not(:placeholder-shown) + .sw-news-page__search-label {
  top: 8px;
  left: 44px;
  font-size: 12px;
  color: #D8D8D8;
}

.sw-news-page__filter-wrap {
  display: flex;
  align-items: center;
  margin-left: 0;
  position: relative;
  min-width: 180px;
  height: 56px;
}

.sw-news-page__filter-btn {
  height: 56px !important;
  min-width: 180px;
  font-size: 16px;
  padding: 0 20px;
  border-radius: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 180px;
  background: #FCD704 !important;
  color: #3A3A3C !important;
  border: 2px solid transparent;
  font-weight: 500;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.4;
  transition: background 0.2s;
}

.sw-news-page__filter-btn:hover,
.sw-news-page__filter-btn:focus {
  background: #E3C103 !important;
}

.sw-news-page__filter-arrow {
  margin-left: 4px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sw-news-page__filter-btn.active .sw-news-page__filter-arrow {
  transform: rotate(180deg);
}

.sw-news-page__filter-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 180px;
  background: #232323;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #00000022;
  z-index: 10;
  flex-direction: column;
  padding: 8px 0;
  margin-top: 4px;
  width: 100%;
  min-width: 0;
}

.sw-news-page__filter-dropdown.open {
  display: flex;
}

.sw-news-page__filter-option {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #F9F9F9;
  background: none;
  border: none;
  padding: 12px 24px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.sw-news-page__filter-option:hover,
.sw-news-page__filter-option.active {
  background: #FCD70429;
  color: #FCD704;
}

.sw-news-page__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.sw-news-page__list-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.sw-news-page__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
}

.sw-news-page__card {
  width: 100%;
  height: 600px;
  background: #171717;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  box-sizing: border-box;
  cursor: pointer;
}

.sw-news-page__card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sw-news-page__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sw-news-page__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.sw-news-page__card-content {
  position: relative;
  z-index: 3;
  background: #0D0D0C;
  border-radius: 16px;
  padding: 16px;
  margin-top: auto;
}

.sw-news-page__card-date {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: #D8D8D8;
  margin-bottom: 8px;
}

.sw-news-page__card-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #F9F9F9;
}

.sw-news-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #F9F9F9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  padding: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
  .sw-news-page__container {
    padding: 32px 40px;
  }
  
  .sw-news-page__search-wrap {
    height: 56px;
    min-height: 56px;
  }
  
  .sw-news-page__list-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sw-news-page {
    padding: 36px 0 0 0;
  }

  .sw-news-page__container {
    padding: 32px 16px 64px 16px;
    gap: 16px;
    align-items: flex-start;
  }
  
  .sw-news-page__title {
    font-size: 24px;
    text-align: left;
  }
  
  .sw-news-page__desc {
    text-align: left;
    padding-bottom: 64px;
  }
  
  .sw-news-page__controls {
    flex-direction: column;
  }
  
  .sw-news-page__search-wrap {
    height: 56px;
    min-height: 56px;
  }
  
  .sw-news-page__filter-wrap {
    width: 100%;
    height: 56px;
    min-height: 56px;
  }
  
  .sw-news-page__filter-btn {
    width: 100%;
    min-width: auto;
    height: 56px !important;
    min-height: 56px;
  }
  
  .sw-news-page__list-row {
    grid-template-columns: 1fr;
  }

  .sw-news-page__item {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .sw-news-page__search-wrap {
    height: 56px;
    min-height: 56px;
  }
  
  .sw-news-page__filter-wrap {
    width: 100%;
    height: 56px;
    min-height: 56px;
  }
  
  .sw-news-page__filter-btn {
    width: 100%;
    min-width: auto;
    height: 56px !important;
    min-height: 56px;
  }
}
