/* ================================================
   blog.css — стили для раздела /blog/
   flora.guru | CP1251
   ================================================ */

/* --- Подзаголовок на странице списка --- */
.blog-subtitle {
   font-size: 18px;
   color: #8a8a8a;
   text-align: center;
   margin: 0 0 50px;
   font-style: italic;
}

/* --- Сообщение "статей пока нет" --- */
.blog-empty-wrap {
   padding: 60px 0;
   text-align: center;
}

.blog-empty {
   font-size: 18px;
   color: #8a8a8a;
   margin: 0;
}

/* --- Карточка статьи в списке --- */
.blog-cards {
   margin-top: 20px;
}

.blog-card {
   background: #fff;
   border: 1px solid #ebebeb;
   border-radius: 4px;
   overflow: hidden;
   height: 100%;
   display: flex;
   flex-direction: column;
   transition: box-shadow .25s ease, transform .25s ease;
   margin-bottom: 30px;
}

.blog-card:hover {
   box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
   transform: translateY(-3px);
}

.blog-card-img-wrap {
   display: block;
   overflow: hidden;
   aspect-ratio: 16 / 10;
   background: #f5f5f5;
}

.blog-card-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .4s ease;
}

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

.blog-card-body {
   padding: 22px 22px 24px;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.blog-card-meta {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 12px;
   color: #9a9a9a;
   margin-bottom: 10px;
   text-transform: uppercase;
   letter-spacing: .5px;
}

.blog-card-cat {
   color: #b3946a;
   text-decoration: none;
   font-weight: 500;
}

.blog-card-cat:hover {
   color: #8f7449;
}

.blog-card-title {
   font-family: "Cardo", Georgia, serif;
   font-size: 22px;
   line-height: 1.3;
   margin: 0 0 12px;
   font-weight: 400;
}

.blog-card-title a {
   color: #2c2c2c;
   text-decoration: none;
   transition: color .2s ease;
}

.blog-card-title a:hover {
   color: #b3946a;
}

.blog-card-excerpt {
   color: #6b6b6b;
   font-size: 14px;
   line-height: 1.6;
   margin: 0 0 18px;
   flex: 1;
}

.blog-card-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: auto;
}

.blog-card-reading {
   font-size: 12px;
   color: #9a9a9a;
}

/* --- Пагинация --- */
.blog-pagination {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
   margin-top: 50px;
   padding-top: 30px;
   border-top: 1px solid #ebebeb;
}

.blog-pagination-btn {
   min-width: 140px;
}

.blog-pagination-info {
   font-size: 14px;
   color: #6b6b6b;
}

/* --- Страница статьи --- */
.blog-post-wrap {
   max-width: 820px;
}

.blog-post-cover {
   margin-bottom: 35px;
   border-radius: 6px;
   overflow: hidden;
}

.blog-post-cover img {
   width: 100%;
   height: auto;
   display: block;
}

.blog-post-title {
   font-family: "Cardo", Georgia, serif;
   font-size: 38px;
   line-height: 1.2;
   margin: 0 0 20px;
   font-weight: 400;
   color: #2c2c2c;
}

.blog-post-meta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 10px;
   font-size: 13px;
   color: #9a9a9a;
   margin-bottom: 30px;
   padding-bottom: 25px;
   border-bottom: 1px solid #ebebeb;
}

.blog-post-sep {
   color: #d0d0d0;
}

.blog-post-cat {
   color: #b3946a;
   text-decoration: none;
   letter-spacing: .5px;
   font-weight: 500;
}

.blog-post-cat:hover {
   color: #8f7449;
}

.blog-post-excerpt {
   font-size: 19px;
   line-height: 1.6;
   color: #4a4a4a;
   font-style: italic;
   margin-bottom: 30px;
   padding: 20px 25px;
   border-left: 3px solid #b3946a;
   background: #faf8f4;
}

.blog-post-body {
   font-size: 16px;
   line-height: 1.75;
   color: #3a3a3a;
}

.blog-post-body h2,
.blog-post-body h3 {
   font-family: "Cardo", Georgia, serif;
   margin: 40px 0 18px;
   font-weight: 400;
   color: #2c2c2c;
}

.blog-post-body h2 { font-size: 28px; }
.blog-post-body h3 { font-size: 22px; }

.blog-post-body p {
   margin-bottom: 18px;
}

.blog-post-body img {
   max-width: 100%;
   height: auto;
   display: block;
   margin: 25px auto;
   border-radius: 4px;
}

.blog-post-body ul,
.blog-post-body ol {
   margin: 0 0 20px;
   padding-left: 25px;
}

.blog-post-body li {
   margin-bottom: 8px;
}

.blog-post-body a {
   color: #b3946a;
   text-decoration: underline;
}

.blog-post-body a:hover {
   color: #8f7449;
}

/* --- Теги на странице статьи --- */
.blog-post-tags {
   margin-top: 35px;
   padding-top: 25px;
   border-top: 1px solid #ebebeb;
}

.blog-post-tags-label {
   color: #9a9a9a;
   font-size: 13px;
   margin-right: 8px;
}

.blog-tag {
   display: inline-block;
   padding: 4px 12px;
   margin: 0 4px 6px 0;
   background: #f5f2ec;
   color: #6b5a3f;
   font-size: 13px;
   text-decoration: none;
   border-radius: 3px;
   transition: background .2s ease;
}

.blog-tag:hover {
   background: #b3946a;
   color: #fff;
}

/* --- Шеринг в соцсети --- */
.blog-post-share {
   margin-top: 25px;
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
}

.blog-post-share-label {
   color: #9a9a9a;
   font-size: 13px;
   margin-right: 8px;
}

.blog-share-btn {
   display: inline-block;
   padding: 6px 16px;
   font-size: 13px;
   text-decoration: none;
   border-radius: 3px;
   transition: opacity .2s ease;
}

.blog-share-btn:hover {
   opacity: .85;
}

.blog-share-vk { background: #4a76a8; color: #fff; }
.blog-share-tg { background: #0088cc; color: #fff; }

.blog-share-vk:hover,
.blog-share-tg:hover { color: #fff; }

/* --- Блок "Похожие статьи" --- */
.blog-related {
   padding: 60px 0;
}

.blog-section-title {
   font-family: "Cardo", Georgia, serif;
   text-align: center;
   font-size: 30px;
   margin: 0 0 40px;
   font-weight: 400;
   color: #2c2c2c;
}

/* --- Адаптив --- */
@media (max-width: 767px) {
   .blog-post-title { font-size: 28px; }
   .blog-post-excerpt { font-size: 16px; padding: 15px 18px; }
   .blog-post-body { font-size: 15px; }
   .blog-post-body h2 { font-size: 22px; }
   .blog-post-body h3 { font-size: 18px; }
   .blog-pagination {
      flex-direction: column;
      gap: 12px;
   }
}

/* ============================================
   Теги статьи — бежевые пилюли с тонкой рамкой
   ============================================ */
.blog-post-tags {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px 10px;
   margin: 28px 0 20px;
   padding: 20px 0 0;
   border-top: 1px solid #eee3d0;
}

.blog-post-tags-label {
   font-size: 14px;
   color: #8a7b5c;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   margin-right: 4px;
}

.blog-tag {
   display: inline-block;
   padding: 6px 14px;
   font-size: 14px;
   line-height: 1.3;
   color: #6b5d43;
   background: #faf5ea;
   border: 1px solid #e6d9bd;
   border-radius: 999px;
   text-decoration: none;
   transition: all 0.2s ease;
   white-space: nowrap;
}

.blog-tag:hover,
.blog-tag:focus {
   background: #f1e6cb;
   border-color: #c9b78a;
   color: #4a3f26;
   text-decoration: none;
}

/* ============================================
   Категория статьи (в meta-блоке поста)
   ============================================ */
.blog-post-meta-category {
   display: inline-block;
   padding: 4px 12px;
   font-size: 13px;
   font-weight: 500;
   color: #8a7b5c;
   background: #faf5ea;
   border: 1px solid #e6d9bd;
   border-radius: 999px;
   text-decoration: none;
   letter-spacing: 0.02em;
   text-transform: none;
   transition: all 0.2s ease;
}

.blog-post-meta-category:hover {
   background: #f1e6cb;
   color: #4a3f26;
   text-decoration: none;
}

/* ============================================
   Мета-блок карточки (категория + дата)
   ============================================ */
.blog-card-meta {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: #8a7b5c;
   margin-bottom: 8px;
}

.blog-card-category {
   font-weight: 500;
   color: #b89a5d;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   font-size: 12px;
}

.blog-card-meta-sep {
   opacity: 0.5;
}

.blog-card-date {
   color: #8a7b5c;
}

/* ===============================================
   ОТСТУПЫ: ПОСТ > ПОХОЖИЕ СТАТЬИ > ФУТЕР
   =============================================== */

/* Убираем у .blog-post лишний нижний отступ.
   .section (от базовой темы) уже даёт нужный padding-bottom.
   Используем !important, т.к. .section может иметь свои паддинги
   с высокой специфичностью. */
.blog-post.section {
   padding-bottom: 40px !important;
}

@media (min-width: 768px) {
   .blog-post.section {
      padding-bottom: 50px !important;
   }
}

/* Блок похожих статей — небольшой "воздух" сверху,
   нормальный отступ снизу (перед футером) */
.blog-related {
   padding: 30px 0 60px;
}

@media (min-width: 768px) {
   .blog-related {
      padding: 40px 0 80px;
   }
}

@media (min-width: 992px) {
   .blog-related {
      padding: 50px 0 90px;
   }
}

.blog-related .blog-related-title,
.blog-related .blog-section-title {
   margin-bottom: 35px;
}