/* 
 * History Page Styles
 * CoverNews Child Theme
 */

/* ВВОДНАЯ СЕКЦИЯ - СДЕРЖАННЫЙ СТИЛЬ */
.history-hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-bottom: 3px solid #c41e3a;
    margin-bottom: 60px;
}

.history-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.history-hero .lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #666;
}

/* Тёмная тема для вводной секции */
body.dark .history-hero,
body.dark-mode .history-hero {
    background: #2a2a2a;
    border-bottom-color: #ff6b7a;
}

body.dark .history-hero h1,
body.dark-mode .history-hero h1 {
    color: #fff;
}

body.dark .history-hero .lead,
body.dark-mode .history-hero .lead {
    color: #ccc;
}

/* ВРЕМЕННАЯ ШКАЛА */
.timeline-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

/* Вертикальная линия по центру */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #c41e3a, #0033a0);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

/* Чередование слева/справа */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* КОНТЕЙНЕР КОНТЕНТА - АНИМАЦИЯ КАК У НОВОСТЕЙ */
.timeline-content {
    width: 45%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #f5f5f5;
}

/* Год в круге */
.timeline-year {
    width: 10%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-year span {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #c41e3a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* Пустое пространство с другой стороны */
.timeline-spacer {
    width: 45%;
}

.timeline-content h2 {
    color: #c41e3a;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.timeline-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.timeline-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.read-more {
    display: inline-block;
    padding: 12px 24px;
    background: #c41e3a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
}

.read-more:hover {
    background: #a01828;
    transform: translateX(5px);
}

/* СЕКЦИЯ ПОЧЁТНЫХ ЛЮДЕЙ */
.honored-people-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.honored-people-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* КАРТОЧКИ ЛЮДЕЙ - АНИМАЦИЯ КАК У НОВОСТЕЙ */
.person-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.person-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #f5f5f5;
}

.person-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.person-card-content {
    padding: 25px;
}

.person-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4rem;
}

.person-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.person-card a {
    display: block;
    padding: 15px;
    background: #c41e3a;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
}

.person-card a:hover {
    background: #a01828;
}

/* Адаптивность */
@media (max-width: 968px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        width: auto;
    }
    
    .timeline-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .history-hero h1 {
        font-size: 2rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }
}

/* ТЁМНАЯ ТЕМА */
body.dark .timeline-content,
body.dark .person-card,
body.dark-mode .timeline-content,
body.dark-mode .person-card {
    background: #333;
}

body.dark .timeline-content:hover,
body.dark .person-card:hover,
body.dark-mode .timeline-content:hover,
body.dark-mode .person-card:hover {
    background: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

body.dark .timeline-content h2,
body.dark-mode .timeline-content h2 {
    color: #ff6b7a;
}

body.dark .timeline-content p,
body.dark .person-card p,
body.dark-mode .timeline-content p,
body.dark-mode .person-card p {
    color: #ccc;
}

body.dark .person-card h3,
body.dark-mode .person-card h3 {
    color: #fff;
}

body.dark .honored-people-section,
body.dark-mode .honored-people-section {
    background: #1a1a1a;
}

body.dark .honored-people-section h2,
body.dark-mode .honored-people-section h2 {
    color: #fff;
}
/* СЕКЦИЯ РУКОВОДСТВО И АКТИВИСТЫ */
.leadership-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.leadership-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Карточки руководителей */
.leader-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.leader-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #f5f5f5;
}

.leader-header {
    border-bottom: 2px solid #c41e3a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.leader-header h3 {
    color: #c41e3a;
    font-size: 1.6rem;
    margin: 0 0 8px 0;
}

.leader-position {
    color: #666;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

.leader-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.leader-content p:last-child {
    margin-bottom: 0;
}

.leader-content em {
    color: #888;
    font-size: 0.95rem;
}

.leader-content strong {
    color: #333;
}

/* Тёмная тема */
body.dark .leadership-section h2,
body.dark-mode .leadership-section h2 {
    color: #fff;
}

body.dark .leader-card,
body.dark-mode .leader-card {
    background: #333;
}

body.dark .leader-card:hover,
body.dark-mode .leader-card:hover {
    background: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

body.dark .leader-header h3,
body.dark-mode .leader-header h3 {
    color: #ff6b7a;
}

body.dark .leader-header,
body.dark-mode .leader-header {
    border-bottom-color: #ff6b7a;
}

body.dark .leader-position,
body.dark-mode .leader-position {
    color: #aaa;
}

body.dark .leader-content p,
body.dark-mode .leader-content p {
    color: #ccc;
}

body.dark .leader-content strong,
body.dark-mode .leader-content strong {
    color: #fff;
}

body.dark .leader-content em,
body.dark-mode .leader-content em {
    color: #999;
}

/* Адаптивность */
@media (max-width: 768px) {
    .leadership-section h2 {
        font-size: 2rem;
    }
    
    .leader-card {
        padding: 20px;
    }
    
    .leader-header h3 {
        font-size: 1.3rem;
    }
}
/* ============================================
   СТРАНИЦА ИСТОРИИ - МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */

@media (max-width: 968px) {
    /* Вертикальная линия слева */
    .timeline::before {
        left: 25px;
    }
    
    /* Элемент временной шкалы */
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px; /* Уменьшил с 80px до 60px */
        margin-bottom: 40px; /* Уменьшил отступ между элементами */
        position: relative;
    }
    
    /* Год в кружке - УМЕНЬШИЛ */
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        width: auto;
        z-index: 3;
    }
    
    .timeline-year span {
        width: 50px; /* Было 80px */
        height: 50px; /* Было 80px */
        line-height: 50px; /* Было 80px */
        font-size: 1rem; /* Было 1.4rem */
        box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    }
    
    /* Контент - УМЕНЬШИЛ ОТСТУПЫ */
    .timeline-content {
        width: 100%;
        padding: 18px; /* Было 30px */
        margin-top: 15px; /* Добавил отступ сверху */
    }
    
    .timeline-content h2 {
        font-size: 1.4rem; /* Уменьшил заголовок */
        margin-bottom: 10px;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.5; /* Уменьшил межстрочный интервал */
        margin-bottom: 12px;
    }
    
    .timeline-content img {
        height: 180px; /* Уменьшил высоту изображений */
        margin: 15px 0;
    }
    
    .timeline-spacer {
        display: none;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ
   ============================================ */

@media (max-width: 768px) {
    /* Вводная секция */
    .history-hero {
        padding: 40px 15px;
    }
    
    .history-hero h1 {
        font-size: 2rem;
    }
    
    .history-hero .lead {
        font-size: 1rem;
    }
    
    /* Заголовок хронологии */
    .timeline-wrapper h2 {
        font-size: 2rem !important;
        margin-bottom: 40px !important;
    }
    
    /* Контент - еще меньше отступов */
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h2 {
        font-size: 1.3rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .timeline-content img {
        height: 150px;
    }
    
    /* Секция руководства */
    .leadership-section {
        padding: 0 15px;
    }
    
    .leadership-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .leader-card {
        padding: 20px;
    }
    
    .leader-header h3 {
        font-size: 1.3rem;
    }
    
    .leader-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ============================================
   ПРАВКИ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ
   ============================================ */

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 50px; /* Еще меньше отступ */
    }
    
    .timeline-year span {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .timeline-content h2 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .timeline-content img {
        height: 120px;
    }
}