/* BASE.CSS - Базовые стили из вашего оригинального файла */

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #e7ecf1;
    color: #3c486b;
}

a {
    color: #003580;
    text-decoration: underline;
    transition: color 0.2s, font-weight 0.2s;
    cursor: pointer; 
}

.main-content a:not(.prev-btn):not(.next-btn):hover,
.main-content a:not(.prev-btn):not(.next-btn):focus {
    color: #003580;
    cursor: pointer;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

blockquote {
    background-color: #f0f1e1ff;
    border-left: 6px solid rgba(30, 169, 179, 1);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #333;
    position: relative;
    border-radius: 6px;
}

blockquote::before {
    content: '„';
    font-size: 3.5rem;
    color: rgba(30, 169, 179, 1);
    position: absolute;
    top: -15px;
    left: 8px;
    line-height: 1;
    font-weight: bold;
    font-family: "Times New Roman", serif;
}

blockquote::after {
    content: '„';
    font-size: 3.5rem;
    color: rgba(30, 169, 179, 1);
    position: absolute;
    bottom: -18px;
    right: 8px;
    line-height: 1;
    font-weight: bold;
    font-family: "Times New Roman", serif;
    transform: rotate(180deg);
}

.image_resized img {
    width: 100%;
    height: auto;
}
/* --- Автор биографии --- */
.bio-author {
    font-weight: bold;  /* сделает весь текст жирным */
    margin: 1em 0;
}

.bio-author a {
    font-weight: bold;
    color: #1f4b85;
    text-decoration: none;
}

.bio-author a:hover {
    color: #003580;
    text-decoration: underline;
}

/* LAYOUT.CSS - Структура страницы из вашего оригинального файла */
.header {
    background-color: #4c5c6d; /* мягкий пастельный синий для всего сайта */
    color: #ffffff;             /* белый текст */
}

body.home-page footer {
    background-color: #3c486b;
    color: #e7ecf1;
}

body.home-page header h1 a {
    color: #e7ecf1;
    text-decoration: none;
}

body.home-page footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s; 
}

body.home-page footer a:hover,
body.home-page footer a:focus {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
}

header, footer {
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.container {
    display: flex;
    min-height: 80vh;
    gap: 10px; /* добавить небольшой промежуток */
}

aside {
    width: 10%;
    background: #e0e6ee;
    padding: 20px 15px; /* уменьшить боковые отступы */
    border-right: 1px solid #c3ccd7;
}

main {
    width: 90%;
    padding: 20px;
    padding: 20px 20px 20px 15px; /* уменьшить левый отступ */
    background: #ffffff;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #8893a0;
}
/* Стили для списка категорий в сайдбаре */
.sidebar ul {
    padding-left: 40px; /* сдвигает точки и ссылки */
}

.sidebar ul li {
    margin-bottom: 10px; /* расстояние между пунктами */
}

.sidebar ul li a {
    color: #485563ff;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus {
    color: #3c486b;
    font-weight: 600;
}

nav.toc a {
    color: #485563ff;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

nav.toc a:hover,
nav.toc a:focus {
    color: #3c486b;
    font-weight: 600;
}

aside a {
    color: #485563ff;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

aside a:hover,
aside a:focus {
    color: #3c486b;
    font-weight: 600;
}

.site-footer {
    background-color: #3c486b;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.site-footer .slogan {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e4eaf0ff;
}

.site-footer a {
    color: #bcd2e8;
}

.site-footer a:hover {
    color: white;
}

/* --- Соцсети в подвале ---
   Кнопки в pill-стиле (как share-buttons и .subscribe-btn в статьях):
   бежевый фон / тёмно-синий текст / бирюзовый hover. На тёмно-синем
   фоне footer'а они контрастируют и не сливаются с текстовыми ссылками
   меню. Селектор с двойным классом — чтобы перебить `.site-footer a`. */
.site-footer__social {
    margin: 16px 0 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.site-footer .site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #e8eadb;
    color: #003580;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .site-footer__social-link:hover {
    background: #1ea9b3;
    color: #ffffff;
}

.site-footer__social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- CTA-блок «Подписывайтесь» под статьями ---
   Используется в biography_detail / news_detail / story_detail.
   Стиль кнопок повторяет .share-buttons (тот же #e8eadb / #003580 / hover
   #1ea9b3), чтобы визуально не выбиваться из общей системы статьи. */
.social-subscribe {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 40px 0 24px;
    padding: 20px;
    border-top: 1px solid #dce1eb;
    border-bottom: 1px solid #dce1eb;
    text-align: center;
}

.social-subscribe__lead {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #003580;
}

.social-subscribe__buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #e8eadb;
    color: #003580;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.subscribe-btn:hover {
    background: #1ea9b3;
    color: #ffffff;
}

.subscribe-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .social-subscribe {
        padding: 16px 12px;
    }
    .social-subscribe__buttons {
        gap: 8px;
    }
    .subscribe-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}

.category-page-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.content-main__main-title a {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.header {
    background-color: #4c5c6d; /* мягкий пастельный синий для всего сайта */
    color: #ffffff;             /* белый текст */
}

.breadcrumbs-wrapper {
    background: #f5f7fa;       /* светлый фон */
    padding: 10px 0;           /* отступ сверху/снизу */
    border-bottom: 1px solid #cfd9e3; /* тонкая линия снизу для разделения */
}

.breadcrumbs-inner {
    margin-left: calc(15% + 10px + 20px); /* сдвиг под main */
    max-width: calc(85% - 30px);
    display: flex;            /* горизонтальное расположение элементов */
    gap: 5px;                 /* небольшой промежуток между ссылками */
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumbs a {
    text-decoration: none;
    color: #3c486b;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.breadcrumbs a:hover {
    background: #dce1eb;      /* при наведении фон */
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .breadcrumbs-inner {
        margin-left: 10px;  /* небольшой отступ на мобильных */
        max-width: calc(100% - 20px);
    }
}