/* Основная сетка новостей */
.baknur-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Карточка новости */
.baknur-news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baknur-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Изображение */
.baknur-news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Контент */
.baknur-news-content {
    padding: 15px;
}

.baknur-news-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.baknur-news-title a {
    color: #333;
    text-decoration: none;
}

.baknur-news-title a:hover {
    color: #0066cc;
}

.baknur-news-meta {
    font-size: 12px; /* Уменьшенный размер */
    color: #666;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.baknur-news-meta span {
    display: flex;
    align-items: center;
}

.baknur-news-author {
    margin-left: 8px;
    font-weight: 700; /* Жирный текст */
}

/* Стиль для даты */
.baknur-news-date {
    color: #777;
}

/* Стиль для источника */
.baknur-news-source {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* Стиль для "Важно" */
.featured-badge {
    background: #ff3d3d;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.baknur-news-excerpt {
    font-size: 14px; /* Размер по умолчанию */
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.baknur-news-read-more {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.baknur-news-read-more:hover {
    text-decoration: underline;
}

/* Стили для полной новости */
.baknur-single-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.baknur-single-news-container article {
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.entry-title {
    font-size: 2.2em;
    margin: 0 0 10px;
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 0.9em;
}

.entry-meta span {
    margin-right: 15px;
    display: inline-block;
}

.featured-image {
    margin: 0 0 30px;
}

.news-featured-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

.news-categories a {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
}

.news-categories a:hover {
    background: #e9e9e9;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous a, 
.nav-next a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.nav-previous a:hover, 
.nav-next a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8em;
    }
    
    .baknur-single-news-container {
        padding: 10px;
    }
    
    .baknur-single-news-container article {
        padding: 20px;
    }
}

/* Стили для галереи */
.news-gallery {
    margin: 30px 0;
    overflow: hidden;
}

.news-gallery .swiper-slide {
    text-align: center;
}

.news-gallery img {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
}

/* Анимация карточек */
.baknur-news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baknur-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Слайдер в превью */
.baknur-news-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.baknur-news-thumbnail .swiper {
    height: 100%;
}

.baknur-news-thumbnail .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.baknur-news-thumbnail img {
    max-height: 100%;
    width: auto;
    object-fit: cover;
}

/* Автоподстройка заголовков */
.baknur-news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.3;
    margin: 0 0 10px;
    max-height: 2.6em;
    transition: font-size 0.3s ease;
}

/* Для важных новостей */
.baknur-news-card.featured .baknur-news-title {
    font-size: clamp(18px, 3.5vw, 24px);
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .baknur-news-title {
        -webkit-line-clamp: 3;
        max-height: 3.9em;
    }
}