.blog-grid {
    max-width: 700px;   
    margin: 0 auto;     
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card-header {
    padding: 1.1rem 1.5rem 0.5rem;
}

.blog-card-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.blog-card-dates {
    font-size: 0.8rem;
    color: #666;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    margin-top: 0.8rem;
    border-radius: 8px;
}

.blog-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-main {
    padding: 1.1rem 1.5rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    margin: 0.4rem 0 0.2rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.blog-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.read-time {
    font-size: 0.8rem;
    color: #888;
}

.views {
    font-size: 0.85rem;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pagination-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.pagination-info {
    color: #666;
    font-weight: 500;
}

.no-posts {
    text-align: center;
    padding: 4rem;
    grid-column: 1 / -1;
}

.no-posts h3 {
    color: #666; margin-bottom: 1rem;
}

.no-posts p {
    color: #888;
}

.no-posts form {
    display: inline-block;
    margin-top: 1rem;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0.8rem 1.5rem;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    border:none;
    cursor:pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary {
    background:#667eea;
    color:#fff;
}
.btn-primary:hover {
    background:#764ba2;
    transform: translateY(-2px);
}