/* Стили для списка новостей на странице /o_kompanii/novosti/ */

.news-list {
    margin-top: 30px;
}

.news-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item__wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-item__image {
    flex-shrink: 0;
    width: 300px;
}

.news-item__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.news-item__content {
    flex: 1;
}

.news-item__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-item__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item__title a:hover {
    color: #007bff;
}

.news-item__meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.news-item__meta time {
    font-style: italic;
}

.news-item__excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.news-item__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffc107;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item__link::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-item__link:hover {
    background: #ffb300;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.news-item__link:hover::after {
    transform: translateX(4px);
}

.no-news {
    padding: 40px 0;
    text-align: center;
    color: #666;
}

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

.news-pagination .page-numbers {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .page-numbers li {
    display: inline-block;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.news-pagination .page-numbers a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.news-pagination .page-numbers .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Стили для отдельной страницы новости */
.news-single {
    max-width: 100%;
}

.news-single__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.news-single__header .title_1 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}

.news-single__meta {
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.news-single__meta time {
    color: #666;
}

.news-single__image {
    margin: 30px 0;
    text-align: center;
}

.news-single__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-single__content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    margin-bottom: 40px;
}

.news-single__content p {
    margin-bottom: 20px;
}

.news-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-single__content .intro_text_block {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.news-single__footer {
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.news-single__categories {
    font-size: 14px;
    color: #666;
}

.news-single__categories span {
    font-weight: 600;
    color: #333;
}

.news-single__categories a {
    color: #007bff;
    text-decoration: none;
    margin-right: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.news-single__categories a:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Адаптивность для отдельной новости */
@media (max-width: 768px) {
    .news-single__header .title_1 {
        font-size: 24px;
    }

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

    .news-single__content .intro_text_block {
        font-size: 16px;
        padding: 15px;
    }
}

/* Адаптивность для списка новостей */
@media (max-width: 768px) {
    .news-item__wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .news-item__image {
        width: 100%;
    }

    .news-item__title {
        font-size: 20px;
    }
}

