/* Blog Page Styles */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-main-content {
    flex: 3;
    min-width: 300px;
}

.blog-sidebar {
    flex: 1;
    min-width: 250px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.blog-post-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.entry-title a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #003d82;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-summary {
    margin-bottom: 1rem;
    color: #555;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #003d82;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f0f8ff;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-top: 0;
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #0056b3;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: #f0f8ff;
    color: #0056b3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #0056b3;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}