.main_blog {
    background: url("../images 2/blog-bg.jpg") center / cover no-repeat;
    min-height: 50vh;
    position: relative;
}

.main_blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.blog {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.blog__filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid #303a4d;
    border-radius: 30px;
    background: transparent;
    color: #303a4d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog__filter:hover,
.blog__filter.active {
    background: #303a4d;
    color: #fff;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog__post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog__post:hover {
    transform: translateY(-5px);
}

.blog__post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog__post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__post-content {
    padding: 1.5rem;
}

.blog__post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e1e4eb;
    border-radius: 15px;
    font-size: 0.875rem;
    color: #303a4d;
    margin-bottom: 1rem;
}

.blog__post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #303a4d;
}

.blog__post-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog__post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.875rem;
}

.blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.blog__pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid #303a4d;
    border-radius: 5px;
    background: transparent;
    color: #303a4d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog__pagination button:hover:not(:disabled) {
    background: #303a4d;
    color: #fff;
}

.blog__pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog__pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.blog__pagination-numbers button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.blog__pagination-numbers button.active {
    background: #303a4d;
    color: #fff;
}

@media (max-width: 768px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .blog__filters {
        gap: 0.5rem;
    }

    .blog__filter {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
} 