/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.blog-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Заголовки */
.blog-title {
    font-size: 2.8rem;
    text-align: center;
    color: #1a2980;
    margin-bottom: 0;
    margin-top: 200px;
}
.blog-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: 5px;
    font-size: 1.2rem;
}

/* Фильтр категорий */
.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0 30px 0;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1a2980;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: #1a2980;
    color: white;
}

/* Колонка постов (одна колонка) */
.posts-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Карточка поста */
.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Медиа-область */
.post-media {
    position: relative;
    width: 100%;
    height: 400px;
    background: #e2e8f0;
    overflow: hidden;
}
.post-media img, .post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.no-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}
.media-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Контент поста */
.post-content {
    padding: 25px 30px;
}
.post-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.post-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}
.post-meta {
    display: flex;
    gap: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Детальная страница */
.post-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a2980;
    text-decoration: none;
}
.detail-title {
    font-size: 2.5rem;
    color: #0f172a;
}
.detail-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    margin-bottom: 30px;
}
.detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}
.gallery-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
.gallery-item img, .gallery-item video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}
.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
    margin-top: 30px;
}