/* Стили для страницы блога */

/* Заголовок блога */
.blog-hero {
    text-align: center;
    padding: 50px 0;
    border-radius: 20px;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Фильтры категорий */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Сетка постов */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media screen and (max-width: 576px) {
    .posts {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Карточки постов */
.card-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 42, 127, 0.06);
    transition: all 0.3s ease;
}

.card-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 42, 127, 0.1);
}

/* Изображения постов */
.card-post__img {
    position: relative;
    height: 200px;
    overflow: hidden;
    inline-size: fit-content;
}

.card-post__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-post__category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Заголовок поста */
.card-post__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px;
    line-height: 1.4;
}

/* Контент поста */
.card-post__content {
    padding: 0 20px 20px;
}

.card-post__description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Мета-информация */
.card-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.card-post__date,
.card-post__views {
    display: flex;
    align-items: center;
    gap: 8px;
}



/* Состояние "Нет постов" */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    background: #f8f9fa;
}

.no-posts-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.no-posts-icon img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-posts p {
    color: #64748b;
    font-size: 1rem;
}

/* Пагинация */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
