/* Базовые стили статьи */
.sutra-article {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Lora', Georgia, serif;
    font-size: 19px;
    line-height: 1.7;
    color: #333;
}
.sutra-article h1, .sutra-article h2, .sutra-article h3 {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    color: #101010;
    font-weight: 700;
}
.sutra-article h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 15px;
}
.sutra-article a { color: #1a73e8; text-decoration: none; }
.sutra-article a:hover { text-decoration: underline; }

/* 1. СЕРОЕ ОГЛАВЛЕНИЕ (Генерирует ИИ) */
.sutra-toc {
    background-color: #f3f3f3;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}
.sutra-toc .toc-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}
.sutra-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sutra-toc li { margin-bottom: 10px; }
.sutra-toc a { color: #555; text-decoration: underline; text-decoration-color: #ccc; text-underline-offset: 3px; }
.sutra-toc a:hover { color: #101010; text-decoration-color: #101010; }

/* 2. ВРЕЗКА В СЕРЕДИНЕ ТЕКСТА */
.inline-related {
    border-left: 4px solid #1a73e8;
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
}
.inline-related span {
    font-size: 13px;
    text-transform: uppercase;
    color: #767676;
    display: block;
    margin-bottom: 5px;
}
.inline-related a { font-weight: 700; color: #101010; }

/* 3. БЛОК ВНИЗУ "ЧИТАЙТЕ ТАКЖЕ" */
.related-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e2e2;
}
.related-bottom h2 { font-size: 22px; margin-bottom: 20px; }
.related-bottom ul { list-style: none; padding: 0; }
.related-bottom li { margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.related-bottom a { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600; color: #333; }

/* Блок Метода S.UTRA */
.sutra-method-box {
    background: #f0fdf4;
    border-left: 5px solid #22c55e;
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

/* Скрываем стандартную шапку темы на страницах статей */
.single-post .site-header {
    display: none !important;
}

/* Скрываем стандартную шапку темы на страницах статей */
.single-post .site-header {
    display: none !important;
}

/* Скрываем серое поле с датой и автором (если мешает) */
.single-post .entry-meta {
    display: none !important;
}

/* СКРЫВАЕМ ДУБЛИРУЮЩУЮ КАРТИНКУ СВЕРХУ СТАТЬИ (GeneratePress Free) */
.single-post .featured-image {
    display: none !important;
}

/* 1. Убираем пустую серую дыру сверху статьи */
.single-post .site-content {
    padding-top: 0 !important;
}
.single-post .inside-article {
    padding-top: 20px !important; /* Оставляем чуть-чуть воздуха для красоты */
}

/* 2. Делаем журнальный дизайн для даты и автора */
.single-post .entry-header {
    text-align: left;
    margin-bottom: 30px;
}
.single-post .entry-meta {
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888;
    margin-top: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea; /* Тонкая красивая линия под датой */
}
.single-post .entry-meta a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}
.single-post .entry-meta a:hover {
    text-decoration: underline;
}

/* 1. Скрываем боковую колонку (сайдбар) везде */
#right-sidebar {
    display: none !important;
}

/* 2. Растягиваем контент по центру (убираем пустое место от сайдбара) */
@media (min-width: 769px) {
    .site-content .content-area {
        width: 100% !important;
        float: none !important;
    }
}

/* Дизайн автоматического блока "Читайте также" */
.sutra-related-auto {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eaeaea;
}

.sutra-related-title {
    font-size: 26px !important;
    margin-bottom: 25px !important;
    border: none !important; /* Убираем черту под заголовком для этого блока */
}

.sutra-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки (если хочешь 2, напиши repeat(2, 1fr)) */
    gap: 20px;
}

.sutra-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.sutra-related-card:hover {
    transform: translateY(-5px);
}

.sutra-related-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sutra-related-post-title {
    font-size: 17px !important;
    line-height: 1.4 !important;
    color: #101010 !important;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif;
}

.sutra-related-card:hover .sutra-related-post-title {
    color: #1a73e8 !important;
}

/* Мобильная адаптация: на телефонах карточки встанут друг под другом */
@media (max-width: 768px) {
    .sutra-related-grid {
        grid-template-columns: 1fr;
    }
    .sutra-related-img {
        height: 200px;
    }
}

/* --- ДИЗАЙН БЛОКА АВТОРА (ВВЕРХУ СТАТЬИ) --- */
.sutra-author-top {
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между фото и текстом */
    margin-bottom: 35px; /* Отступ снизу до начала текста статьи */
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea; /* Тонкая линия под блоком автора */
}

/* Делаем аватарку круглой */
.sutra-author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Закругление */
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Легкая тень */
}

.sutra-author-info {
    display: flex;
    flex-direction: column;
}

.sutra-author-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #101010;
    line-height: 1.2;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.sutra-author-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #767676 !important; /* Нейтральный серый цвет */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.sutra-author-link:hover {
    color: #1a73e8 !important; /* Фирменный синий при наведении */
}

/* --- ДИЗАЙН МЕТОК / ТЕГОВ (БЕЗ РЕШЕТОК) --- */
.sutra-tags-box {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px; 
    margin: 40px 0; 
    padding-top: 20px;
    border-top: 1px solid #eaeaea; 
}

.sutra-tag {
    background-color: #f3f4f6; 
    color: #4b5563 !important; 
    padding: 6px 16px;
    border-radius: 30px; 
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Эффект при наведении мышки на метку */
.sutra-tag:hover {
    background-color: #1a73e8; 
    color: #ffffff !important; 
}

.sutra-tag:hover::before {
    color: #ffffff; /* Белая решетка при наведении */
}

/* --- УВЕЛИЧИВАЕМ ШРИФТ В СТАТЬЕ --- */
.sutra-article, 
.single-post .entry-content p {
    font-size: 22px !important; /* Было 19px, поставь 22px или любую нужную цифру */
    line-height: 1.8; /* Чуть увеличил межстрочный интервал, чтобы большой текст легче читался */
}

/* --- ЦЕНТРИРУЕМ ЗАГОЛОВОК СТАТЬИ --- */
.single-post header.entry-header h1.entry-title {
    text-align: center !important; /* Принудительно по центру */
    margin-bottom: 30px; /* Отступ снизу, чтобы не прилипало к автору */
}