/* Поиск */
.search-form .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.btn-search {
    background: linear-gradient(90deg, #ff6b6b, #ff8e72);
    color: #fff;
    border: none;
}

.btn-search:hover {
    background: linear-gradient(90deg, #ff8e72, #ff6b6b);
}

/* Карточки */
.news-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255,107,107,0.3);
}

/* Placeholder */
.news-placeholder {
    background: linear-gradient(135deg, #ff6b6b, #ff8e72, #ffb199, #ffe0e0); 
    color: #fff;
}

/* Кнопка */
.btn-news {
    background: linear-gradient(135deg, #ff6b6b, #ff8e72, #ffb199, #ffe0e0);
    color: #fff;
    border: none;
}

.btn-news:hover {
    background: linear-gradient(135deg, #ff8e72, #ff6b6b, #ffb199, #ffe0e0);
}

/* Пагинация */
.pagination .page-link {
    border: none;
    color: #ff6b6b;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(90deg, #ff6b6b, #ff8e72);
    color: #fff;
}

.pagination .page-link:hover {
    background: rgba(255,107,107,0.1);
}

/* Контейнер */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Карточка статьи */
.news-article {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Дата */
.news-date {
    color: #555;   /* было слишком бледно */
}

/* Картинка — БЕЗ ОБРЕЗКИ */
.news-image-full {
    text-align: center;
}

.news-image-full img {
    max-width: 100%;
    height: auto;              /* ключевое */
    object-fit: contain;       /* не режет */
    border-radius: 1rem;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Контент */
.news-content {
    line-height: 1.75;
    margin-top: 1.5rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* Таблицы */
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.news-content td,
.news-content th {
    border: 1px solid #dee2e6;
    padding: 8px;
}

/* Бейджи */
.badge-important {
    background: linear-gradient(90deg, #ffb199, #ff6b6b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
}

.badge-published {
    background: rgba(40,167,69,0.1);
    color: #28a745;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Кнопка назад */
.btn-back {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #ff6b6b, #ff8e72);
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}
