/* ========== Карточка статьи (каталог) ========== */
.article-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.article-card__thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.article-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-card__category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
    text-decoration: none;
}
.article-card__category-badge:visited,
.article-card__category-badge:hover,
.article-card__category-badge:active {
    color: #fff !important;
}
.article-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}
.article-card__title a {
    color: var(--color-text-primary);
    text-decoration: none;
}
.article-card__title a:hover {
    color: var(--color-link);
}
.article-card__excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.article-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}
.article-card__views,
.article-card__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}
/* Убираем псевдоэлемент, который мог добавлять точку */
.article-card__date::before {
    content: none;
}

/* Сайдбар – свежие статьи */
.sidebar-articles-widget {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.sidebar-article-item:hover {
    background: #f9fafb;
}
.sidebar-article-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sidebar-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-article-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.sidebar-article-info {
    overflow: hidden;
}
.sidebar-article-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.sidebar-article-date {
    font-size: 12px;
    color: var(--color-text-muted);
}