:root {
    --primary-color: #3a7e4f;
    --secondary-color: #c49b3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --dark-gray: #888;
    --border-radius: 4px;
}

/* Blog Container */
.blog-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-main {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    width: 200px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 8px 15px;
    cursor: pointer;
}

.category-filter select {
    padding: 8px 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: white;
}

/* Blog Posts */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--medium-gray);
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-post-image:hover img {
    transform: scale(1.03);
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.blog-post-meta span i {
    margin-right: 5px;
}

.blog-post-title {
    margin-bottom: 15px;
}

.blog-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2d6a3e;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--light-gray);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    margin: 0 15px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: var(--light-gray);
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-title {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.recent-post-title:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.archive-list li {
    margin-bottom: 10px;
}

.archive-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.archive-list a:hover {
    color: var(--primary-color);
}

.archive-count {
    background-color: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

.newsletter-form button {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #2d6a3e;
}

/* Blog Post Page Styles */
.blog-post-section {
    padding: 60px 0;
}

.blog-post-container {
    display: flex;
    gap: 30px;
}

.blog-post-main {
    flex: 2;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.post-meta span i {
    margin-right: 5px;
}
.post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.post-content blockquote {
    padding: 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.post-tag {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.post-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-share {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}

.post-share h4 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #dd4b39;
}

.qr-code-container {
    margin-top: 15px;
}

#qrCodeDisplay {
    margin-top: 15px;
    text-align: center;
}

#qrCode {
    display: inline-block;
    padding: 10px;
    background-color: white;
    border: 1px solid var(--medium-gray);
}

#qrCodeDisplay p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.post-author-bio {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.author-info p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.related-posts {
    margin-bottom: 30px;
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-posts ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    margin: 0;
    font-size: 1rem;
    margin-bottom: 5px;
}

.related-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.post-comments {
    margin-top: 30px;
}

.post-comments h3 {
    margin-bottom: 20px;
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.comment-content {
    line-height: 1.6;
}

.comment-form-container {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

.comment-form-container h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

.form-group button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #2d6a3e;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-container,
    .blog-post-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .related-posts ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box,
    .category-filter {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .related-posts ul {
        grid-template-columns: 1fr;
    }
    
    .post-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    header, footer, .blog-sidebar, .post-share, .post-comments, .related-posts {
        display: none !important;
    }
    
    .blog-post-main {
        box-shadow: none;
        padding: 0;
    }
    
    .post-content {
        font-size: 12pt;
    }
    
    .post-content a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .post-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}












