/* Основные стили для страницы детали новости */
.news-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #4a4a9f;
    padding-bottom: 10px;
}

.news-image {
    text-align: center;
    margin: 20px 0;
}

.news-image img {
    width: 100%;
    max-width: 500px; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}

.news-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #666;
}

/* Адаптивность для страницы деталей новости */
@media (max-width: 768px) {
    .news-detail {
        padding: 15px;
    }

    .news-header h1 {
        font-size: 2rem;
    }

    .news-content {
        font-size: 1rem;
    }
}
