.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 130px;

}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.blog-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Ссылка как карточка */
.blog-post {
    display: block;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-post:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 20px;
}

.post-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #60a5fa;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    background: #1e293b;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #3b82f6;
}

.blog-post:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 14px;
        margin-bottom: 10px;

    }
    .post-excerpt {
        text-size: 10px
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .post-date {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .blog-container {
        padding-top: 100px;
    }
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    .post-content {
        padding: 10px;
    }
}