/* Blog pages: list + post images */

.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-height: 350px;
  object-fit: contain;
}

/* Cover image from front matter */
.blog-post .cover-image {
  max-width: 55%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Default centered content images */
.blog-post .content-image {
  max-width: 280px;
  width: auto;
  display: block;
  margin: 1rem auto;
}

/* Заголовок статьи: выравнивание по левому краю (h1 в теле md и h2 в шаблоне) */
.blog-post h1,
article h1,
h1.entry-title,
h2.blog-article-title {
  text-align: left;
}

.blog-post .float-left {
  float: left;
  max-width: 220px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  margin-left: 0;
}

.blog-post .float-right {
  float: right;
  max-width: 220px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  margin-right: 0;
}

.blog-post .clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Blog list previews */
.blog-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.blog-preview-item {
  overflow: auto;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

/* Ссылки внутри статей блога — заметные, кликабельные (кнопка .cta-button не трогаем) */
.blog-post a:not(.cta-button),
.article-content a:not(.cta-button),
.entry-content a:not(.cta-button) {
  color: #2f8f7a; /* фирменный акцент; «классический» синий: #1e88e5 */
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.blog-post a:not(.cta-button):hover,
.article-content a:not(.cta-button):hover,
.entry-content a:not(.cta-button):hover {
  color: #1f2f2a; /* тёмный при наведении */
  text-decoration: underline; /* оставляем, чтобы ссылка оставалась узнаваемой */
}
