/* Базовые настройки страницы */
/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 40px 20px;
    margin: 0;
} */

/* Центральный контейнер временной шкалы */
.timeline-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Центральная линия дерева */
.timeline-container::before {
    content: '';
    position: absolute;
    left: calc(95% - 2px);
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Элемент узла мероприятия */
.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
}

/* Чередование узлов слева и справа */
.timeline-item:nth-child(even) .timeline-content {
    order: 1; /* На четных элементах текст уходит вправо */
}

/* Точка на центральной линии */
.timeline-item::after {
    content: '';
    position: absolute;
    left: calc(95% - 10px);
    top: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #007bff;
    border-radius: 50%;
    z-index: 1;
}

/* Блок с датой */
.timeline-date {
    flex-basis: 120px;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-weight: bold;
    border: 2px solid #007bff;
}

.timeline-date .day {
    display: block;
    font-size: 24px;
    color: #007bff;
}

.timeline-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

/* Блок с описанием события */
.timeline-content {
    flex-basis: calc(95% - 80px); /* Занимаем половину ширины минус отступы */
    padding: 15px 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* Стрелка, указывающая на центральную линию */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* Направление стрелки меняется в зависимости от стороны */
.timeline-item:nth-child(odd) .timeline-content::before {
    /* right: 100%; /* Для левых элементов стрелка смотрит направо */ 
    left: 100%; /* Для левых элементов стрелка смотрит направо */
    /* border-right: 12px solid #fff; */
    border-left: 12px solid #fff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: 100%; /* Для правых элементов стрелка смотрит налево */
    border-left: 12px solid #fff;
}

/* Стили текста внутри блока контента */
.timeline-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 15px;
}

.timeline-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

/* Метаданные (время и место) */
.time, .location {
  /*  display: inline-block;
    font-size: 17px;
    color: #888;
    margin-right: 18px;
	*/
	display: inline-block; 
	font-size: 14px; /* Можно немного увеличить размер текста под иконку */ 
	color: #555; 
	margin-right: 20px;
}
/* Класс непосредственно для самой иконки */ 
.meta-icon { 
	margin-right: 8px; /* Отступ между иконкой и текстом */ 
	width: 16px; /* Фиксируем ширину для выравнивания всех строк */ 
	text-align: center; vertical-align: middle; /* Выравниваем по вертикали относительно строки */ 
	color: #007bff; /* Задаем цвет иконки отличный от цвета текста */ 
}
 /* Если вы не хотите добавлять класс в HTML, можно обратиться к i напрямую внутри span */ 
.time i, .location i {
	 margin-right: 8px; 
	 width: 16px; 
	 text-align: center; 
	 vertical-align: middle; 
	 color: #007bff; 
}

/* .time::before {
    content: '🕒';
    margin-right: 5px;
} */

.location::before {
    content: '📍';
    margin-right: 5px;
}

/* Адаптивность для мобильных устройств */
@media(max-width: 768px) {
    .timeline-container::before {
        left: 50px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-item::after {
        left: 40px;
    }

    .timeline-date {
        position: absolute;
        left: 0;
        top: 0;
    }

    .timeline-content {
        flex-basis: auto;
        width: calc(100% - 60px);
        margin-top: 40px;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-item:nth-child(even) .timeline-content {
        order: 0;
    }
}