/* Minimal styling to keep layout close to source but on Bootstrap grid */
.stm-news-item{
  padding: 0 0 1.75rem 0;
  margin: 0 0 1.75rem 0;
  border-bottom: 1px solid #e9ecef;
}
.stm-news-item:last-child{
  border-bottom: 0;
}

.stm-news-date{
  display: inline-block;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.2;
}

.stm-news-media img{
  border-radius: .25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.stm-news-link{
  text-decoration: none;
  color: inherit;
  display: block;
}
.stm-news-link:hover .stm-news-title{
  text-decoration: underline;
}

.stm-news-title{
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .75rem 0;
  line-height: 1.25;
}
.stm-news-excerpt{
  color: #212529;
}

/* Серверный список новостей и пагинация */
.stm-news-list{
  width: 100%;
}

.stm-news-image-link{
  display: block;
  text-decoration: none;
}

.stm-news-media img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stm-news-empty{
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.stm-news-pagination{
  gap: .35rem;
}

.stm-news-pagination .page-link{
  min-width: 2.4rem;
  min-height: 2.4rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b5e9e;
  background: #f2f6fa;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.stm-news-pagination .page-link:hover{
  background: #e7f0f8;
  color: #084c82;
}

.stm-news-pagination .active .page-link{
  color: #fff;
  background: #0b5e9e;
}

.stm-news-pagination .disabled .page-link{
  color: #adb5bd;
  background: #f8f9fa;
  box-shadow: none;
}

.stm-news-pagination__dots{
  min-width: 2rem;
}
