.blog-wrapper {
    margin-bottom: 80px;
    margin-top: -50px;
}
.blog-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
}
.blog-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.blog-category-link {
    padding: 8px 16px;
    background-color: #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition:
        background-color 0.3s,
        color 0.3s;
}
.blog-category-link:hover {
    background-color: #6b298a;
    color: white;
}
.blog-category-link.active {
    background-color: #6b298a;
    color: white;
    font-weight: 600;
}
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.blog-card {
    width: 100%;
    max-width: 380px; 
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    flex-shrink: 0; /* не сжимать карточку */
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.blog-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.blog-card-body {
    padding: 20px;
}
.blog-card-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: #242424;
    line-height: 1.2;
    font-weight: 700;
}
.blog-card-meta {
    font-size: 0.9rem;
    color: #242424;
    margin-bottom: 15px;
}
.icon-eye {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.blog-category-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #222222;
    font-weight: bold;
}
.hashtag {
    color: #cf6db7;
    font-weight: bold;
    margin-right: 6px;
}

/* --------- Post ------------ */
.blog-post-wrapper {
    max-width: 1000px;
    margin-top: -50px;
    margin-bottom: 50px;
}
.blog-post-image img {
    width: 90%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.blog-post-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #222;
    line-height: 1.2;
}
.blog-post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
}
.blog-post-meta .category a {
    color: #007bff;
    text-decoration: none;
}
.blog-post-meta .category a:hover {
    text-decoration: underline;
}
.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.blog-post-content h2 {
    font-size: 1.8rem;
}
.blog-post-content h3 {
    font-size: 1.5rem;
}
.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
}
.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 18px;
    background-color: #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}