

/* Start:/local/templates/main/components/bitrix/news.list/blog_news/style.css?17793602004494*/
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
}

.news-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: bold;
}

/* Сетка для главной страницы - 3 в ряд */
.news-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Сетка для остальных страниц - список */
.news-grid-all {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8ecef;
    overflow: hidden;
}

/* Стили карточек для главной страницы */
.news-grid-home .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-grid-home .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-grid-home .news-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e8ecef;
}

.news-grid-home .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid-home .news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Стили карточек для страницы всех новостей */
.news-grid-all .news-card {
    display: flex;
    flex-direction: row;
}

.news-grid-all .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-grid-all .news-image {
    flex: 0 0 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #e8ecef;
}

.news-grid-all .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid-all .news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Общие стили контента */
.news-date {
    color: #7d8b99;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #00AFE0;
    text-decoration: none;
}
.news-card:hover .news-title {
    color: #00AFE0;
}
.news-preview {
    color: #5d6d7e;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

.news-footer {
    text-align: center;
    margin-top: 40px;
}

.all-news-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.all-news-btn:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.news-pagination {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .news-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .news-grid-all .news-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .news-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-grid-all .news-card {
        flex-direction: column;
    }
    .news-grid-all .news-image {
        flex: 0 0 200px;
        border-right: none;
        border-bottom: 1px solid #e8ecef;
    }
    .news-container {
        padding: 40px 15px;
    }
    .news-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .news-grid-home .news-image,
    .news-grid-all .news-image {
        height: 180px;
    }
    .news-grid-home .news-content,
    .news-grid-all .news-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1.8rem;
    }
    .news-title {
        font-size: 1.2rem;
    }
    .news-preview {
        font-size: 0.9rem;
    }
}
/* End */
/* /local/templates/main/components/bitrix/news.list/blog_news/style.css?17793602004494 */
