/* ======================= BLOG STYLES ======================= */
.blog-hero {
    padding: 150px 0 40px;
    text-align: center;
    background-color: var(--bg-color);
    /* Match main site background */
}

.blog-hero h1 {
    font-family: "Unbounded", sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

#blog-section {
    padding: 40px 0 80px;
}

/* Category Filters */
#blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    /* Мягкая тень */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Легкая рамка */
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.blog-card__title {
    font-family: "Unbounded", sans-serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card__excerpt {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card__readmore {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    align-self: flex-start;
}

.blog-card:hover .blog-card__readmore {
    border-color: var(--primary-color);
}

/* Loader */
.blog-loader {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--primary-color);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }
}

/* ======= SINGLE POST ADDITIONAL STYLES ======= */
#single-post {
    padding: 120px 0 80px;
}

.post-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.post-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 32px;
    margin-bottom: 30px;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.post-back-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.post-back-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.post-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta-bottom {
    font-size: 1rem;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.post-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }
}