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

/* Основной контейнер */
.news-container {
    background: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Заголовок */
.news-container h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* Карточка новости */
.news-item {
    background: #ffffff;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid #ddd;
    position: relative;
}

.news-item:hover {
    border-color: #f15a07;
}

/* Дата новости */
.news-date {
    margin-bottom: 10px;
    padding: 4px 8px;
    background: #f15a07;
    color: white;
    display: inline-block;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.date-text {
    font-size: 12px;
    font-weight: normal;
}

/* Контент новости */
.news-content {
    padding-right: 80px;
}

/* Заголовок новости */
.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}

.news-title:hover {
    color: #666;
    text-decoration: none;
}

/* Анонс новости */
.news-announce {
    margin-bottom: 10px;
}

.news-announce p {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Ссылка "Читать далее" */
.news-more {
    color: #000;
    font-size: 14px;
    text-decoration: none;
}

.news-more:hover {
    text-decoration: underline;
    color: #666;
}

/* Пустое состояние */
.news-empty {
    text-align: center;
    padding: 30px 20px;
    color: #777;
}

.news-empty p {
    font-size: 14px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-container {
        padding: 15px;
        margin: 15px 0;
    }

    .news-container h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-item {
        padding: 12px;
    }

    .news-date {
        position: static;
        margin-bottom: 8px;
        display: block;
    }

    .news-content {
        padding-right: 0;
    }

    .news-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 12px;
    }

    .news-item {
        padding: 10px;
    }

    .news-date {
        margin-bottom: 6px;
    }

    .date-text {
        font-size: 11px;
    }

    .news-title {
        font-size: 14px;
    }

    .news-announce p {
        font-size: 13px;
    }
}