:root {

  --bg-light: #f8f9fa;
}



/* --- Container & Layout --- */
.news-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- Sidebar --- */
.news-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-sidebar .box {
  background: var(--primary-color);
  color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.news-sidebar .search-box input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  outline: none;
}



.news-sidebar .links h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.news-sidebar .links a {
  display: block;
  padding: 10px 0;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: color 0.2s, padding-left 0.2s;
}

.news-sidebar .links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.news-sidebar .box-news img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* --- Main Content --- */
.news-main {
  background: transparent;
}

/* Карточка новости */
.news-item {
  /* background: #fff; */
  margin-bottom: 30px;
  padding: 25px;
  border-radius: 12px;
  /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
  color: var(--primary-color);
  padding-top: 0;
}

/* Эффект поднятия при наведении */
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.news-item h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.news-item h2 a:hover {
  color: var(--secondary-color);
}

.news-item__content {
  display: flex;
  gap: 25px;
  margin-top: 15px;
}

/* Wrapper для картинки, чтобы делать зум */
.news-img-wrapper {
  flex: 0 0 50%;
  overflow: hidden;
  /* Обрезает картинку при увеличении */
  border-radius: 8px;
}

.news-img-wrapper img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-img-wrapper img {
  transform: scale(1.08);
}

.news-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-text-content p {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.read-more-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Пагинация */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination .page-numbers {
  padding: 8px 15px;
  background: #fff;
  border-radius: 4px;
  margin: 0 5px;
  text-decoration: none;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
}

/* --- Mobile / Responsive --- */
.mobile-filter-btn {
  display: none;
  /* Скрыта на десктопе */
}

@media (max-width: 1361px) {
  .news-text-content p {
    font-size: 12px;
  }
}

@media (max-width: 990px) {
  .news-container {
    grid-template-columns: 1fr;
    padding: 10px;
    display: block;
    /* Сброс грида */
  }

  .mobile-filter-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
  }

  /* Сайдбар скрыт по умолчанию на мобильном, но показывается через JS */
  .news-sidebar {
    display: none;
    margin-bottom: 20px;
    background: var(--bg-light);
  }

  .news-sidebar.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .news-item__content {
    flex-direction: column;
  }

  .news-img-wrapper {
    width: 100%;
    max-height: 200px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .news-item__content {
    gap: 10px;
  }
}


/* Single news  */


.post-navigation {
  color: var(--primary-color);
}

.post-navigation a {
  color: var(--primary-color);
}