body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #21201f;
    color: #e6e6e6;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}


.site-header {
    background: #0f0f0f;
    padding: 20px 0;
    text-align: center;
}

.logo a {
    font-size: 32px;
    color: #ca3657;
    text-decoration: none;
}

.site-description {
    color: #b8b8b8;
    margin: 10px 0;
    font-size: 12px;
    text-align: justify;
}


.search-form {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.search-form input[type="search"] {
    padding: 6px 10px;
    width: 250px;
    border: 1px solid #333;
    border-radius: 3px 0 0 3px;
    background: #262626;
    color: #fff;
}

.search-form button {
    padding: 6px 10px;
    border: 1px solid #ca3657;
    border-left: 0;
    background: #ca3657;
    color: #1c1c1c;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}


.single-post-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    max-width: 1200px;
}


.container.main {

    margin: 30px auto;
}


.single-post {
    flex: 3;
}


.single-post h1 {
    font-weight: normal;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    word-wrap: break-word;
    text-align: center;
}


.post-content {
    line-height: 1.6;
    margin: 15px 0;
}

.post-content img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


.post-content a {
    display: inline-block;
    margin: 15px auto;
    padding: 8px 15px;
    background: #ca3657;
    color: #1c1c1c;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: 0.3s;
}

.post-content a:hover {
    background: #e03e6f;
    color: #fff;
}


.post-tags {
    margin-top: 20px;
    text-align: left;
}

.post-tags a {
    display: inline-block;
    background: #ca3657;
    color: #1c1c1c;
    padding: 3px 7px;
    margin: 0 5px 5px 0;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
}

.sidebar {
    flex: 1;
}


.widget {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.widget-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 15px;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* максимум 4 в ряд */
    gap: 20px;
}

@media (max-width: 1000px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 750px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
.post-card {
    background-color: #0f0f0f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    margin: 0;
}

.post-card:hover {
    transform: scale(1.03);
}

.post-card a {
    color: #ca3657;
    text-decoration: none;
    display: block;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-card h4 {
    font-size: 0.9rem;
    margin: 10px;
    color: #ca3657;
    font-weight: normal;
}


.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    background: #262626;
    color: #e6e6e6;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.pagination a:hover {
    background: #ca3657;
    color: #fff;
}

.pagination span.current {
    background: #ca3657;
    color: #fff;
    pointer-events: none;
}


.site-footer {
    background-color: #0f0f0f;
    padding: 20px 0;
    text-align: center;
}


@media(max-width: 900px) {
    .single-post-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .post-content a {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

.single-post .post-content {
    line-height: 1.6;
    margin: 15px 0;
    text-align: center;
}

.single-post .post-content .download-btn {
    display: inline-block;
    margin: 15px 0;
    padding: 8px 20px;
    background: #ca3657;
    color: #1c1c1c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.single-post .post-content .download-btn:hover {
    background: #e03e6f;
    color: #fff;
}

.post-card h2 {
    font-size: 0.9rem;
    margin: 10px;
    color: #ca3657;
    word-wrap: break-word;
    font-weight: normal;
}

.post-card .meta {
    font-size: 0.75rem;
    margin: 0 10px 10px;
    color: #7e7e7e;
}

.sidebar .widget {
    background: none;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
}

.sidebar .widget-title {
    color: #ca3657;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.sidebar .widget p,
.sidebar .widget li {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar .widget a {
    color: #e6e6e6;
    text-decoration: none;
}

.sidebar .widget a:hover {
    text-decoration: underline;
    color: #e03e6f;
}

.recent-post-item h4 {
    font-weight: normal;
    font-size: 14px;
}

.recent-post-thumb.wp-post-image {
    border-radius: 8px;
}

.post-views {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.post-meta-row .post-views {
}

.post-meta-row .post-date {
    text-align: right;
}