/* Раздел «Статьи»
   Дополнение к css/style.css: только то, чего нет в шаблоне.
================================================== */

/* Заголовки статей набраны кириллицей — capitalize/uppercase из шаблона их портит */
.entry-header .entry-title,
.post-content h3,
.article-card .entry-title,
.widget.recent-posts .post-info .entry-title,
.widget.recent-posts .post-date {
  text-transform: none;
  letter-spacing: 0;
}

/* Карточка в списке
================================================== */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e3e3e3;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  border-color: #119996;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.article-card .article-thumb {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.article-card .article-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-card .article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 25px;
}

.article-card .entry-title {
  font-size: 19px;
  line-height: 28px;
  margin: 8px 0 15px;
}

.article-card .entry-title a {
  color: #212121;
}

.article-card .entry-title a:hover {
  color: #119996;
}

.article-card .article-excerpt {
  flex: 1 1 auto;
  margin-bottom: 20px;
}

.article-card .post-meta {
  padding-bottom: 0;
  font-size: 13px;
  color: #999;
}

/* Одна статья
================================================== */

/* Фото под шапкой. Показываем в натуральном размере на подложке,
   чтобы не растягивать исходник и не терять резкость. */
.article-hero {
  background: #f4f4f4;
  text-align: center;
  margin: 0 0 30px;
  padding: 0;
}

.article-hero img {
  max-width: 100%;
  height: auto;
}

.post-content h3 {
  font-size: 21px;
  line-height: 30px;
  margin: 35px 0 15px;
}

.post-content .article-lead {
  font-size: 17px;
  line-height: 30px;
  color: #444;
}

.post-content .article-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 25px;
}

.post-content .article-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 14px;
}

.post-content .article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #119996;
}

/* Блок «От CORRSTOP» */
.article-note {
  background: #f4f4f4;
  border-left: 4px solid #119996;
  padding: 25px 30px;
  margin: 40px 0 30px;
}

.article-note h4 {
  margin-bottom: 15px;
}

/* Источник — блок перед текстом статьи */
.article-source {
  background: #f8f8f8;
  border-left: 3px solid #dadada;
  padding: 15px 20px;
  margin: 0 0 30px;
  font-size: 13px;
  line-height: 22px;
  color: #777;
}

.article-source a {
  color: #119996;
  font-weight: 600;
  white-space: nowrap;
}

.article-source a:hover {
  color: #222;
}

.article-source a i {
  font-size: 11px;
}

/* Поделиться */
.article-share {
  margin: 25px 0;
}

.article-share .share-label {
  font-weight: 600;
  color: #303030;
  margin-right: 10px;
}

.article-share a {
  display: inline-block;
  border: 1px solid #dadada;
  color: #7c7c7c;
  font-size: 13px;
  padding: 4px 14px;
  margin-right: 5px;
}

.article-share a:hover {
  background: #119996;
  border-color: transparent;
  color: #fff;
}

/* Предыдущая / следующая */
.article-nav {
  border-top: 1px solid #dadada;
  padding-top: 25px;
  margin-top: 30px;
}

.article-nav a {
  display: block;
  color: #303030;
  font-weight: 600;
  line-height: 24px;
}

.article-nav a:hover {
  color: #119996;
}

.article-nav .article-nav-label {
  display: block;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}

/* Сайдбар «Другие статьи» */
.widget.recent-posts .posts-thumb img {
  object-fit: cover;
}

/* Пустой раздел / 404 */
.articles-empty {
  padding: 40px 0;
}

@media (max-width: 767px) {
  .article-card .article-thumb img {
    height: 200px;
  }

  .article-nav .article-nav-next {
    margin-top: 20px;
  }
}
