/* ==========================================================================
   Новости — стили секции (список новостей + блок «Новости» на главной)
   Карточки повторяют карточки блога (/blog/index.css, .blog-card) —
   при изменении карточек блога поправьте и эти стили.
   ========================================================================== */

/* ---------- Список новостей ---------- */

.news_list-tabs .tab-head {
  text-transform: uppercase;
  font-size: 12px;
  font-family: "OpenSansSemiBold";
}

.news_list-tabs .tab-head span {
  line-height: 1;
  display: inline-block;
}

.news_list-tabs .tab-head.active {
  color: #004778;
}

.news_list-tabs .tabs-head {
  margin-bottom: 34px;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .news-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .news-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.news-card__image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f1f1;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.news-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(34, 34, 34, 0.55);
}

.news-card__meta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.news-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-family: "OpenSans-Bold";
  color: #222222;
  transition: color 0.2s ease-in-out;
}

.news-card:hover .news-card__title {
  color: #004778;
}

.news-card__description {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(34, 34, 34, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-index__pager {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.news-index__empty {
  padding: 40px 0;
  font-size: 15px;
  color: rgba(34, 34, 34, 0.6);
  text-align: center;
}


/* ---------- Блок "Новости" на главной странице ---------- */
/* include/template_parts/news/news.php — переиспользует .news-cards/.news-card выше */

.news-home-row {
  padding: 60px 0;
}

@media (max-width: 639px) {
  .news-home-row {
    padding: 40px 0;
  }
}

@media (max-width: 1024px) {
  .news-home-row .news-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.news-home-row__head {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.news-home-row__head .head {
  margin: 0;
  color: #222222;
  font-family: "OpenSans-Regular";
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .news-home-row__head .head {
    font-size: 22px;
    line-height: 1.3;
  }
}

.news-home-row__all {
  flex: 0 0 auto;
  font-size: 14px;
  font-family: "OpenSansSemiBold";
  color: #004778;
  border-bottom: 1px solid #004778 !important;
  transition: border-color 0.2s ease-in-out;
}

.news-home-row__all:hover {
  border-bottom: 1px solid transparent !important;
}
