:root {
    --dark-bg: #2c3e50;
    --post-header-bg: #34495e;
    --post-border: #2c3e50;
    --post-content-bg: #ffffff;
    --side-margin: 15px; /* Новые отступы по бокам */
}

.blog-container {
    max-width: 100%;
    margin: 0 var(--side-margin);
    padding: 10px 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 1rem;
}

.post-card {
    margin-bottom: 15px; /* Уменьшенный отступ между постами */
    border-left: 1px solid var(--post-border);
    border-right: 1px solid var(--post-border);
    line-height: 1.5;
    border-radius: 10px;
}

.post-card-header {
    padding: 0.8rem;
    background: var(--post-header-bg);
    color: white;
    border-bottom: 1px solid var(--post-border);
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.post-preview {
    padding: 1rem;
    font-size: 0.95rem;
}

.post-card-footer {
    padding: 0.8rem;
    background: var(--post-header-bg);
    border-top: 1px solid var(--post-border);
    border-radius: 0 0 10px 10px;
}


/* Оптимизация заголовка */
.post-title {
    margin: 0;
    font-size: 1.5rem; /* Уменьшенный размер */
    line-height: 1.3;
}

/*дата поста*/
.post-date {
    font-size: 0.7rem;
    text-align: right;
}

