/* ========================================
   СТИЛИ ДЛЯ КАРТОЧЕК НОВОСТЕЙ
   ======================================== */

/* Сетка карточек */
.news-catal-cardsnew-out .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 20px 0;
}

.news-catal-cardsnew-out .col-md-6 {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.news-catal-cardsnew-out .col-lg-4 {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .news-catal-cardsnew-out .col-lg-4 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .news-catal-cardsnew-out .col-md-6,
    .news-catal-cardsnew-out .col-lg-4 {
        width: 100%;
    }
}

/* Карточка новости */
.news-card-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

.news-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #F6A81A;
}

/* Изображение карточки */
.news-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-item:hover .news-card-image img {
    transform: scale(1.08);
}

/* Placeholder для карточек без изображений */
.news-card-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-icon {
    font-size: 64px;
    opacity: 0.6;
}

/* Контент карточки */
.news-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-card-heading a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: block;
}

.news-card-heading a:hover {
    color: #F6A81A !important;
    text-decoration: none !important;
}

.news-card-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card-text {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-top: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-card-text a {
    color: #555555 !important;
    text-decoration: underline !important;
}

.news-card-text a:hover {
    color: #F6A81A !important;
}

/* Кнопки фильтров */
.news-catal-cards-buttons-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    background: #f0f8ff;
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 12px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-catal-cards-buttons-btn:hover {
    background: #e0f0ff;
    border-color: #F6A81A;
    transform: translateY(-2px);
}

.catal-cards-buttons-btn-active {
    background: #F6A81A !important;
    color: #ffffff !important;
    border-color: #F6A81A !important;
}

/* Пагинация */
.box-pagination-out .pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.box-pagination-out .page-item {
    margin: 0 5px;
}

.box-pagination-out .page-link {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.box-pagination-out .page-link:hover {
    background: #F6A81A;
    color: #ffffff !important;
    border-color: #F6A81A;
    transform: translateY(-2px);
}

.box-pagination-out .page-item.active .page-link {
    background: #F6A81A;
    color: #ffffff !important;
    border-color: #F6A81A;
}

.box-pagination-out .page-item.disabled .page-link {
    color: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.5;
}