body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.article-title {
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.article-image {
    margin-bottom: 20px;
    border-radius: 5px;
}

.article-content {
    margin-bottom: 30px;
}

.article-tags {
    margin-bottom: 20px;
    clear: both;
}

.article-tags a {
    margin-right: 5px;
    color: #007bff;
}

.article-share {
    margin-bottom: 30px;
}

.tag-link {
    display: inline-block; /* чтобы можно было задать padding и margin */
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.tag-link:hover {
    background-color: #ddd;
}

.marker{
    background-color: yellow;
}

/* Блоки популрными новостями и тегами */
.sidebar-widget {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden; /* чтобы содержимое не выходило за границы */
}

.sidebar-widget h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

/* Топ 3 популярных новости */
.sidebar-widget .popular-news-list li {
    margin-bottom: 10px;
    overflow: hidden; /* для корректного переноса */
}

.sidebar-widget .popular-news-list img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-widget .popular-news-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.sidebar-widget .popular-news-list span {
    font-weight: bold;
    word-break: break-word; /* разрешаем перенос слов */
    overflow-wrap: break-word; /* альтернативное свойство для переноса */
    display: -webkit-box; /* ограничение количества строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* добавление многоточие при обрезании текста */
}

/* Топ 3 популярных тега */
.sidebar-widget .popular-tags-list li {
    margin-bottom: 8px;
}
.sidebar-widget .popular-tags-list a {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Адаптивность изображений */
@media (max-width: 768px) {
    .sidebar-widget .popular-news-list img {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}