/* Контейнер статьи */
.article-content-block {
    margin: 0 auto;
    padding: 20px 0;
    line-height: 1.6;
}

/* Заголовок статьи */
.article-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Ссылка на тему */
.article-theme {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.8;
}

.article-theme a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-theme a:hover {
    border-color: currentColor;
}

/* Аннотация статьи */
.article-annotation {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Основной текст статьи */
.article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content i,
.article-content em {
    font-style: italic;
}

i.fa {
    font-style: normal;
	top: 1px;
  position: relative;
}

.article-content b,
.article-content strong {
    font-weight: 600;
}

.article-content a {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.article-content a:hover {
    opacity: 0.7;
}

/* Списки */
.article-content ul,
.article-content ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.article-content li {
    margin-bottom: 0.5em;
}

/* Цитаты */
.article-content blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 3px solid currentColor;
    opacity: 0.9;
}

/* Изображения */
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
}

/* Разделители */
.article-content hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid currentColor;
    opacity: 0.3;
}

/* Блок темы под заголовком статьи */
.article-theme {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.85;
}

/* Ссылка на тему */
.article-theme a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* тонкое подчёркивание */
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

/* При наведении — лёгкий акцент */
.article-theme a:hover {
    color: #C5531A; /* твой корпоративный цвет */
    border-color: #C5531A;
    opacity: 1;
}

/* Контейнер одной статьи в списке */
.post-item {
	padding-top: 0px;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

/* Заголовок статьи */
.post-item h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
}

.post-item h2 a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, opacity 0.25s ease;
}

/* Аннотация статьи */
.post-item .post-annotation {
    margin: 0 0 15px 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
	margin-bottom: 10px;
}

/* Мета-информация (категория, тема) */
.post-item .post-meta {
    margin-bottom: 12px;
    font-size: 0.9rem;
    opacity: 0.75;
}

.post-item .post-meta .category {
    display: inline-block;
}

/* Кнопка "Читать далее" */
.post-item .read-more {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
    transition: opacity 0.25s ease;
}

.post-item .read-more:hover {
    opacity: 0.7;
}

.post-item p {
    margin-bottom: 1em;
}

.post-item ul,
.post-item ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.post-item li {
    margin-bottom: 0.5em;
}

.post-item i,
.post-item em {
    font-style: italic;
}

.post-item b,
.post-item strong {
    font-weight: 600;
}

.post-item a {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.post-item a:hover {
    opacity: 0.7;
}

.article-annotation {
  margin: 24px 0;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  line-height: 1.6;
}

.back-to-section {
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-section a {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.back-to-section a:hover {
  opacity: 1;
  color: #C5531A; /* твой фирменный цвет */
}

/* Заголовок темы на странице списка статей */
.theme-heading {
  font-weight: 600;              /* плотный, но не чрезмерно жирный */
  font-size: 2.4rem;             /* крупный, визуально как главный раздел */
  line-height: 1.25;             /* компактнее, чем у обычного текста */
  margin-bottom: 0.6em;          /* отступ снизу перед аннотацией */
  text-align: center;            /* выравнивание по центру */
  letter-spacing: 0.02em;        /* лёгкое разрежение букв */
}

/* Адаптация для мобильных экранов */
@media (max-width: 768px) {
  .theme-heading {
    font-size: 1.9rem;
    margin-bottom: 0.5em;
  }
}

.theme-heading {
  position: relative;
}

.theme-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.15);
  margin: 0.4em auto 0;
}

/* Контейнер пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 10px 0;
}

/* Ссылки страниц */
.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* Наведение */
.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #C5531A;
}

/* Активная страница */
.pagination a.active-page,
.pagination a[class="active-page"] {
    background-color: #0078d4;
    color: #fff;
    border-color: #0078d4;
    font-weight: 600;
}

/* Для мобильных устройств */
@media (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

.also-read {
    margin-top: 40px;
    padding: 20px;
    background: #faf8f6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.also-read-toggle {
    font-weight: 600;
    font-size: 1.2em;
    cursor: pointer;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.also-read-toggle:hover {
    color: #222;
}

.also-read-content {
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.also-block {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.also-block:hover {
    transform: translateY(-3px);
}

.also-block strong {
    display: block;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 8px;
}

.also-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.also-block li {
    margin: 6px 0;
}

.also-block a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
}

.also-block a:hover {
    color: #000;
}

.also-read-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.also-read-content.show {
    display: block;
    opacity: 1;
}
