/* ===== Лента новостей ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 20px 0;
}
 
.news-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}
 
.news-card-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
 
.news-card-body h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.3;
}
 
.news-card-body h2 a {
  text-decoration: none;
  color: #222;
}
 
.news-meta {
  font-size: 0.9rem;
  color: #777;
  margin: 8px 0;
}
 
.news-excerpt {
  margin: 12px 0 20px;
  color: #333;
}
 
.btn-read {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}
 
.btn-read:hover {
  background: #0056b3;
}
 
/* ===== Детальная страница ===== */
.news-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1rem;
}
 
.news-header {
  text-align: center;
  margin-bottom: 40px;
}
 
.news-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
 
.news-article h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
 
.news-article .news-meta {
  font-size: 0.9rem;
  color: #666;
}
 
.news-content p {
  margin: 20px 0;
  text-align: justify;
}
 
.news-content figure {
  margin: 30px auto;
  text-align: center;
}
 
.news-content figure img {
  max-width: 100%;
  border-radius: 12px;
}
 
.news-content figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  background: #f9f9f9;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination .current {
  background: #007bff;
  color: #fff;
  font-weight: bold;
  border-color: #007bff;
}

.pagination .dots {
  padding: 6px 12px;
  color: #888;
  border: none;
  background: transparent;
}

