/* Стили для главной страницы */

/* Анимации для новостей */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для элементов новостей */

.news-item__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item__link:hover {
    text-decoration: none;
    color: inherit;
}

.news-item__image {
    position: relative;
    overflow: hidden;
}

.news-item__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.news-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
}

.news-item__date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Стили для индикатора загрузки */
.loading {
    margin: 20px 0;
}

/* Стили для сообщений об ошибках */
.news-error {
    margin: 20px 0;
}

.news-error .btn {
    margin-left: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-item {
        margin-bottom: 20px;
    }
    
    .news-item__image img {
        height: 150px;
    }
    
    .news-item__title {
        font-size: 0.9rem;
    }
}

/* Улучшения для списка новостей */
.news-list {
    margin-top: 20px;
}

/* Стили для иконок (если используется Font Awesome) */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Fallback для иконок, если Font Awesome не загружен */
.fas:before {
    content: '';
}

.fa-exclamation-triangle:before {
    content: '⚠️';
}

.fa-check-circle:before {
    content: '✓';
} 