/* News Page Styles */

/* Отступ от футера для страницы новостей */
.catalog-page {
    margin-bottom: 150px; /* Десктоп */
}

/* Убираем боковые отступы и возвращаем верхний только для страницы новостей */
.catalog-page .catalog-content {
    margin-top: 50px;
    padding-left: 0;
    padding-right: 0;
}

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

/* Сообщение "Новости не найдены" */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #9C9B9A;
    font-family: 'Commissioner', sans-serif;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* === Адаптив === */

/* Планшет */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
}

/* Мобиле */
@media (max-width: 575px) {
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* === СТИЛИ ПАГИНАЦИИ НОВОСТЕЙ === */

/* Блок пагинации */
.news-pagination-section {
    margin-top: 20px;
    border-top: 1px solid #35333133;
    padding-top: 40px;
    margin-bottom: 140px;
}

.news-pagination-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.news-show-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-show-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -6%;
    color: #353331;
}

.news-show-params {
    display: flex;
    align-items: center;
    gap: 0;
}

.news-show-param {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -6%;
    color: #3533314D;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.news-show-param:not(:last-child)::after {
    content: '/';
    margin-left: 5px;
    margin-right: 5px;
    color: #3533314D;
}

.news-show-param.active {
    color: #353331;
}

.news-show-param:hover {
    color: #353331;
}

.news-pagination {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.news-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-page-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #3533310D;
    color: #3533314D;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -6%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.news-page-number.active {
    background: #353331;
    color: #FFFFFF;
}

.news-page-number:hover {
    background: #353331;
    color: #FFFFFF;
}

.news-page-dots {
    color: #3533314D;
    font-size: 16px;
    margin: 0 5px;
}

.news-pagination-arrows {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 30px;
}

.news-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #353331;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-decoration: none;
}

.news-arrow.disabled {
    background: #EAEAEA;
    cursor: not-allowed;
    pointer-events: none;
}

.news-arrow img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.news-arrow.disabled img {
    filter: brightness(0) invert(0.5);
}

.news-load-more-wrapper {
    display: flex;
    justify-content: center;
}

.news-load-more-btn {
    background: #353331;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 19px 15px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -4%;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-load-more-btn:hover:not(:disabled) {
    background: #232A39;
}

.news-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.news-load-more-btn.loading {
    background: #666;
    cursor: wait;
}

/* === АДАПТИВ ПАГИНАЦИИ === */

@media (max-width: 991px) {
    .news-pagination-section {
        margin-top: 15px;
        padding-top: 30px;
        margin-bottom: 100px;
    }
    
    .news-pagination-top {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .news-show-options {
        justify-content: center;
    }
    
    .news-pagination {
        justify-content: center;
    }
    
    /* Отступ от футера на планшете */
    .catalog-page {
        margin-bottom: 60px;
    }
}

@media (max-width: 575px) {
    .news-pagination-section {
        margin-top: 10px;
        padding-top: 20px;
        margin-bottom: 60px;
    }
    
    .news-pagination-top {
        gap: 15px;
    }
    
    .news-show-options {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-pagination-arrows {
        margin-left: 0;
    }
    
    /* Отступ от футера на мобайле */
    .catalog-page {
        margin-bottom: 70px;
    }
} 