/* ============================
   Сайдбар "Останні новини"
============================ */
.right-sidebar {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9; /* лёгкий фон */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* мягкая тень */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
}

/* Заголовок сайдбара */
.right-sidebar h3 {
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #0057b7; /* синий акцент */
    margin-bottom: 16px;
    position: relative;
}

/* Тонкая линия под заголовком */
.right-sidebar h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background: #ffd700; /* желтый акцент */
    margin-top: 4px;
    border-radius: 1px;
}

/* Список новостей */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-list li {
    margin-bottom: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* subtle separator */
    padding-bottom: 8px;
}

.sidebar-news-list li:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* лёгкая тень */
}

/* Ссылки новостей */
.sidebar-news-list li a {
    display: block;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    color: #333; /* основной цвет */
    transition: color 0.3s;
}

/* Hover эффект для новостей — один цвет */
.sidebar-news-list li a:hover {
    color: #0057b7;
    text-decoration: underline;
}

/* Мета-информация (дата и категория) */
.sidebar-news-list .meta {
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    margin-top: 2px;
}

/* Объединяем дату и категорию в одну строку */
.sidebar-news-list .date-category {
    white-space: nowrap; /* гарантирует одну строку */
}

/* Ссылка категории */
.sidebar-news-list .category-link {
    color: #0057b7;
    text-decoration: none;
    transition: color 0.3s;
    display: inline; /* важно, чтобы была в одну строку */
}

.sidebar-news-list .category-link:hover {
    text-decoration: underline;
}

/* ============================
   Кнопка "Всі новини"
============================ */
.all-news-button {
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    text-align: center;
    background: linear-gradient(90deg, #0057b7, #ffd700);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.all-news-button::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.all-news-button:hover::after {
    left: 100%;
}

.all-news-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* ============================
   Адаптив
============================ */
@media (max-width: 900px) {
    .news-container,
    .single-news-page {
        flex-direction: column;
    }

    .right-sidebar {
        min-width: 100%;
    }
}
