
/* Blog Styles */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 2rem;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-post-meta span {
    display: inline-block;
}

.blog-post-meta a {
    color: #3498db;
    text-decoration: none;
}

.blog-post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-title a:hover {
    color: #3498db;
}

.blog-post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Blog Sidebar */
.blog-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}

.blog-widget {
    margin-bottom: 30px;
}

.blog-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e6ea;
    padding-bottom: 10px;
    color: #2c3e50;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.category-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #3498db;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #e9ecef;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #3498db;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link.active,
.page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Single Post */
.single-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comment {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-body {
    line-height: 1.6;
}

/* Responsive Blog */
@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 20px;
    }
}

/* Additional Blog Styles */
.page-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.single-post-title {
    margin-bottom: 10px;
}

.single-post-meta {
    margin-bottom: 20px;
}

.meta-separator {
    margin: 0 10px;
    color: #ccc;
}

.post-tags-container {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 10px;
}

.comments-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.no-comments-text {
    margin-bottom: 30px;
    color: #7f8c8d;
    font-style: italic;
}

.comment-form-title {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-top: 20px;
    margin-bottom: 30px;
}

.category-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
