/* Основные стили */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-bg-color);
}
/* Стили раздела с новостями */
.news-section {
    flex: 1;
    padding: 20px;
    max-width: 1000px;
    margin: 20px auto;
}
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.news-image {
    width: 100%;
    height: 200px; /* Фиксированная высота */
    object-fit: cover; /* Сохраняет пропорции изображения и обрезает его, если нужно */
    border-radius: var(--border-radius);
}

.news-content {
    padding: 10px;
}

.news-title {
    font-size: 24px;
    color: var(--highlight-color);
    margin: 10px 0;
}

.news-text {
    font-size: 16px;
    color: #555;
}
.news-item a {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    color: var(--font-color-white);
    background-color: #151414;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.news-item a:hover {
    background-color: #0056b3; /* Темный синий при наведении */
    text-decoration: underline;
}

/* Адаптивные стили */
@media (min-width: 768px) {
    .news-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .news-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
