/* assets/css/blog.css */
.blog-post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--contrast-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.post-title {
    margin: 1rem 0;
}

.post-title a {
    color: var(--default-color);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--secondary-color);
    flex: 1;
    margin-bottom: 1.5rem;
}

.post-footer {
    margin-top: auto;
}

.author-avatar {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.author-name {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Recent Posts Widget */
.recent-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.9rem;
    line-height: 1.3;
}

.recent-post-title a {
    color: var(--default-color);
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--default-color);
    border-color: var(--border-color);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .post-image img {
        height: 200px;
    }
    
    .recent-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-post-image {
        margin-bottom: 0.5rem;
    }
}