
html,
body {
  overflow-x: clip; 
}

body {
  background-color: #1a294a; 
  font-family: Unbounded, sans-serif; 
  padding-top: 23px; 
  padding-bottom: 0; 

  

  

  

  
  box-sizing: border-box;

  

  
}

.news-page-container {
  width: 100%;
  max-width: 1303px; 
  margin: 0 auto;
  padding-left: 20px; 
  padding-right: 20px; 
  box-sizing: border-box;

  

  

  
}


.search-bar-container {
  display: flex;
  width: 100%; 
  margin: 0 0 40px; 
  background: #004e9f; 
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box; 
}

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 7px; 
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1e1e1e;
  background: white; 
}

.search-input::placeholder {
  color: #cbcbcb; 
  font-weight: 300;
}

.search-button {
  background: transparent;
  border: none;
  padding: 0 10px 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button img {
  width: 20px; 
  height: 20px; 

  

  
}


.main-content-area {
  

  
  display: grid;
  grid-template-columns: 254px 1fr; 
  align-items: flex-start; 
  gap: 21px; 

  

  
}


.sidebar {
  width: 254px; 
  background: white; 
  border-radius: 10px;
  padding: 30px 28px; 
  box-sizing: border-box;
  height: fit-content; 
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  margin-top: 90px; 
}

.sidebar-block {
  margin-bottom: 30px; 
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.suggest-news-btn {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 12px 20px; 
  background: linear-gradient(180deg, #ffef2b 0%, #f9f7d6 100%);
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  color: black;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.suggest-news-btn img {
  width: 20px; 
  height: 20px;
  margin-left: 9px;
  filter: brightness(0%); 
}

.sidebar-label {
  display: block;
  color: black;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
  margin-bottom: 8px;
}

.sidebar-select {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1e1e1e;
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231E1E1E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sidebar-title {
  color: black;
  font-size: 20px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 18px;
  margin-bottom: 15px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px; 
  overflow-y: auto; 
  padding-right: 10px; 
}

.category-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.category-list label {
  color: black;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
  margin-left: 10px;
  cursor: pointer;
}

.category-list input[type='checkbox'] {
  width: 13px; 
  height: 13px;
  border-radius: 2px;
  border: 1px solid black;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.category-list input[type='checkbox']:checked {
  background-color: #004e9f;
  border-color: #004e9f;
}

.category-list input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


.category-list::-webkit-scrollbar {
  width: 5px;
}

.category-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.category-list::-webkit-scrollbar-thumb {
  background: rgb(0 0 0 / 20%); 
  border-radius: 2px;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: rgb(0 0 0 / 30%);
}

.microinvest-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.microinvest-block .sidebar-label {
  margin-bottom: 0;
}


.switch {
  position: relative;
  display: inline-block;
  width: 40px; 
  height: 24px; 
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d9d9d9; 
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: '';
  height: 18px; 
  width: 18px; 
  left: 3px; 
  bottom: 3px; 
  background-color: white; 
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #004e9f; 
}

input:checked + .slider::before {
  transform: translateX(
    16px
  ); 
  background-color: #f5f5f5; 
}

.slider.round {
  border-radius: 9999px;
}

.slider.round::before {
  border-radius: 50%;
}


.help-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #d9d9d9;
  color: white;
  font-size: 10px;
  font-weight: bold;
  cursor: help;
  margin-left: 8px; 
  user-select: none;
  font-family: Circe, sans-serif;
  line-height: 16px;
}

.rating-block .rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.rating-block .rating-value {
  text-align: right;
  color: #1e1e1e;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 19.6px;
}

.rating-slider {
  width: 100%;
  height: 4px; 
  background: #ebebeb; 
  border-radius: 9999px;
  appearance: none;
  outline: none;
  margin-bottom: 5px; 
}


.rating-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px; 
  height: 16px; 
  background: #004e9f; 
  border-radius: 50%;
  cursor: pointer;
}


.rating-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #004e9f;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.rating-filter .noUi-target {
  background: #ebebeb; 
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  height: 4px; 
  margin-bottom: 5px; 
}

.rating-filter .noUi-connect {
  background: #004e9f; 
  border-radius: 9999px;
}

.rating-filter .noUi-handle {
  width: 16px; 
  height: 16px; 
  border-radius: 50%;
  background: #004e9f; 
  border: none;
  box-shadow: none; 
  cursor: pointer;
  right: -8px;
  top: -6px;
}

.rating-filter .noUi-handle:focus {
  outline: none;
}

.rating-filter .noUi-handle::before,
.rating-filter .noUi-handle::after {
  display: none;
}

.rating-filter .noUi-handle::after {
  display: none; 
}

.rating-range-label {
  display: block;
  color: #757575;
  font-size: 8px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.08px;
  margin-top: 20px; 
}

.rating-filter .rating-value {
  text-align: right;
  color: #1e1e1e;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 19.6px;
}

.rating-block .rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.show-filters-btn {
  width: 100%;
  padding: 12px 35px;
  background: linear-gradient(0deg, #004e9f 0%, #006edf 100%) !important;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  border: none;
  color: #f5f5f5 !important;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 16px;
  cursor: pointer;
}


.news-feed-column {
  flex-grow: 1;

  
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    316px
  ); 
  gap: 20px !important; 
  justify-content: space-around; 
  margin-bottom: 40px; 
}


.news-card {
  background: #fff; 
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%); 
  border: 1px solid #c6bbfe; 
  position: relative;
  display: flex;
  flex-direction: column;
  width: 316px; 
  height: 396px; 
}

.news-image-link {
  display: block;
  position: relative; 
  padding: 10px; 
  background-color: #fff; 
  box-sizing: border-box; 
}

.news-image {
  width: 100%;

  

  
  height: calc(
    173px - 20px
  ); 
  object-fit: cover;
  display: block;
  border-radius: 3px; 

  

  

  

  
}

.news-content {
  padding: 20px 21px; 
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
  gap: 15px; 
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 11px; 
}

.news-avatar {
  width: 39px; 
  height: 39px;
  border-radius: 50%;
  object-fit: cover;
}

.news-title-meta {
  display: flex;
  flex-direction: column;
  gap: 8px; 
}

.news-title {
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: black;
  margin: 0;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-meta {
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12px;
  color: black; 
  line-height: 1.3; 
}

.news-tags {
  font-family:
    Unbounded, sans-serif; 
  font-size: 12px; 
  color: #7b61ff; 

  

  
  line-height: 1.3;
}

.news-excerpt {
  font-family: Unbounded, sans-serif; 
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12px;
  color: black; 
  line-height: 1.5;
  flex-grow: 1; 
}

.delete-news-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6161;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: Circe, sans-serif; 
  font-size: 12px; 
  z-index: 10; 
}


.news-card-ad {
  
}

.ad-label-on-image {
  position: absolute;
  bottom: 10px; 
  left: 50%;
  transform: translateX(-50%);
  background: rgb(217 217 217 / 58%); 
  border-radius: 10px;
  padding: 4px 10px; 
  display: flex;
  align-items: center;
  gap: 7px; 
  color: white;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
}

.ad-label-on-image img {
  
  width: 16px; 
  height: 16px;
}


.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 50%);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.popup-close:hover {
  color: #000;
}

.popup h2 {
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: Unbounded, sans-serif; 
  font-size: 14px; 
  font-weight: 300;
  margin-bottom: 8px;
}

.form-group input[type='text'],
.form-group textarea,
.form-group input[type='file'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: Unbounded, sans-serif; 
  font-size: 14px;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 150px; 
  resize: vertical;
}

.submit-btn {
  padding: 12px 25px;
  background: #7b61ff; 
  color: #fff;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  font-family: Unbounded, sans-serif; 
  font-size: 16px;
  font-weight: 400;
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; 
  margin-bottom: 20px;
}

.page-item {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: white; 
  font-size: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 18px;
}

.page-item.current {
  background: white;
  color: #004e9f; 
}

.page-item.dots {
  color: white;
  font-size: 16px;
  font-family: Inter, sans-serif; 
  font-weight: 700;
  padding: 8px 0; 
}

.show-more-container {
  display: flex;
  justify-content: center;
}

.show-more-btn {
  padding: 12px 35px;
  background: transparent !important;
  border: 1px solid white !important;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  color: #f5f5f5 !important;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}






.rating-filter .noUi-target {
  background: #ebebeb; 
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  height: 4px; 
  margin-bottom: 5px; 
}

.rating-filter .noUi-connect {
  background: #004e9f; 
  border-radius: 9999px;
}

.rating-filter .noUi-handle {
  width: 16px; 
  height: 16px; 
  border-radius: 50%;
  background: #004e9f; 
  border: none;
  box-shadow: none; 
  cursor: pointer;
  right: -8px;
  top: -6px;
}

.rating-filter .noUi-handle:focus {
  outline: none;
}

.rating-filter .noUi-handle::before,
.rating-filter .noUi-handle::after {
  display: none;
}

.rating-range-label {
  display: block;
  color: #757575;
  font-size: 8px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.08px;
}

.rating-filter .rating-value {
  text-align: right;
  color: #1e1e1e;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 19.6px;
}

.rating-block .rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

@media (max-width: 1400px) {
  .news-page-container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .news-page-container {
    max-width: 1000px;
  }
  
  .main-content-area {
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }
}

@media (max-width: 992px) {
  .news-page-container {
    max-width: 900px;
  }
  
  .main-content-area {
    grid-template-columns: 200px 1fr;
    gap: 15px;
  }
  
  .sidebar {
    padding: 15px;
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .news-page-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .main-content-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    order: 2;
    padding: 12px;
  }
  
  .news-feed-column {
    order: 1;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .news-card {
    padding: 15px;
  }
  
  .search-bar-container {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .news-page-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .sidebar {
    padding: 10px;
  }
  
  .news-card {
    padding: 12px;
  }
  
  .news-title {
    font-size: 16px;
    line-height: 1.3;
  }
  
  .news-excerpt {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .search-bar-container {
    margin-bottom: 25px;
  }
  
  .search-input {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 360px) {
  .news-page-container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .sidebar {
    padding: 8px;
  }
  
  .news-card {
    padding: 10px;
  }
  
  .news-title {
    font-size: 15px;
  }
  
  .news-excerpt {
    font-size: 12px;
  }
  
  .search-input {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .main-content-area {
    grid-template-columns: 200px 1fr;
    gap: 15px;
  }
  
  .sidebar {
    order: 1;
  }
  
  .news-feed-column {
    order: 2;
  }
}

@media (max-height: 600px) {
  .news-page-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .search-bar-container {
    margin-bottom: 20px;
  }
}
