/* ============================================
   MODERN NEWS MODULE
   ============================================ */
   
.modern-news-category {
    padding: 20px 0;
}
.modern-news-module {
    width: 100%;
    padding: 60px 0;
    background: #FFFDFB;
}

.modern-news-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок и ссылка */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.modern-news-category .news-header {
    justify-content: center;
}

/* .news-title {
    font-size: 36px;
    font-weight: 600;
    font-family: "Rubik", sans-serif;
    color: #322614;
    margin: 0;
    position: relative;
    display: inline-block;
} */
/* 
.news-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #C09D5C;
} */

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: "Rubik", sans-serif;
    color: #322614;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-button {
        margin: 20px auto;
    float: none;
}

.news-view-all:hover {
    color: #C09D5C;
}

.news-view-all svg {
    transition: transform 0.3s ease;
}

.news-view-all:hover svg {
    transform: translateX(4px);
}

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

/* Карточка новости */
.news-item {
    background: #FCF9F7;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-info {
    padding: 30px;
}

.news-date {
    font-size: 18px;
    font-weight: 400;
    font-family: "Rubik", sans-serif;
    color: #C09D5C;
    margin-bottom: 20px;
}

.news-item-title {
    font-size: 24px;
    font-weight: 600;
    font-family: "Noto Sans", sans-serif;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-item-title a {
    color: #322614;
    text-decoration: none!important;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: #C09D5C;
}

.news-item-text {
    font-size: 18px;
    font-weight: 400;
    font-family: "Rubik", sans-serif;
    /* color: #6B7280; */
    /* line-height: 1.5; */
    margin: 0;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .modern-news-module {
        padding: 50px 0;
    }
    
    .news-header {
        margin-bottom: 40px;
    }
    
/*     .news-title {
    font-size: 32px;
} */
    
    .news-grid {
        gap: 24px;
    }
    
    .news-item {
        padding: 25px;
    }
    
    .news-item-title {
        font-size: 18px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modern-news-module {
        padding: 40px 0;
    }
    
    .news-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    
/*     .news-title {
    font-size: 28px;
} */
    
/*     .news-title::after {
    left: 50%;
    transform: translateX(-50%);
} */
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-item {
        padding: 20px;
        text-align: center;
    }
    
    .news-item-title {
        font-size: 18px;
    }
    
    .news-item-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modern-news-module {
        padding: 30px 0;
    }
    
/*     .news-title {
    font-size: 24px;
} */
    
    .news-view-all {
        font-size: 14px;
    }
    
    .news-item {
        padding: 18px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .news-item-title {
        font-size: 16px;
    }
}

.news-image {
    width: 100%;
    height: 261px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin-bottom: 20px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .news-image {
        height: 180px;
    }
}

/* Пагинация */
.com-content-category__pagination {
    margin-top: 40px;
    text-align: center;
}

.com-content-category__pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.com-content-category__pagination .pagination li {
    display: inline-block;
}

.com-content-category__pagination .pagination li a,
.com-content-category__pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #FCF9F7;
    border-radius: 8px;
    color: #322614;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.com-content-category__pagination .pagination li a:hover {
    background: #C09D5C;
    color: #FFFDFB;
}

.com-content-category__pagination .pagination li.active span {
    background: #C09D5C;
    color: #FFFDFB;
}

.com-content-category__counter {
    text-align: center;
    margin-top: 20px;
    color: #6B7280;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
}

/* Кнопка добавления статьи */
.news-create-button {
    text-align: center;
    margin-top: 30px;
}

.news-create-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #C09D5C;
    color: #FFFDFB;
    border: none;
    border-radius: 30px;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-create-button .btn:hover {
    background: #322614;
    transform: translateY(-2px);
}

/* Статус новости */
.news-status {
    margin-top: 12px;
}

.news-status .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: "Rubik", sans-serif;
}

/* Сообщение об отсутствии новостей */
.alert-info {
    background: #FCF9F7;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: #6B7280;
    font-family: "Rubik", sans-serif;
}

/* Стили для заголовка категории (если нужно) */
.modern-news-category .news-title {
    font-size: 36px;
    font-weight: 600;
    font-family: "Rubik", sans-serif;
    color: #322614;
    margin: 0;
    position: relative;
    display: inline-block;
}

.modern-news-category .news-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #C09D5C;
}