/* Blog Page Styles */
.blog-page {
    padding: 80px 0 100px;
    background-color: #fafafa;
}

.blog-header {
    margin-bottom: 40px;
    max-width: 600px;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.blog-desc {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

/* Category Filter Bar */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 50px;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    background-color: #e0e0e0;
}

.filter-pill.active {
    background-color: #0A882E;
    color: #fff;
}

/* Main Layout Structure */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Post Grid (Left Column) */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-cat {
    color: #0A882E;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h3 a:hover {
    color: #0A882E;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0A882E;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 100px;
}

/* Search Widget */
.widget-search {
    position: relative;
}

.widget-search input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 50px;
    border-radius: 30px;
    border: none;
    background-color: #f0f0f0;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: background-color 0.2s;
    font-family: inherit;
}

.widget-search input:focus {
    background-color: #e8e8e8;
}

.widget-search button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0A882E;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Sidebar Widgets Generic */
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

/* Categories Widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 16px;
}

.widget-categories li:last-child {
    margin-bottom: 0;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-categories a:hover {
    color: #0A882E;
}

.cat-count {
    background-color: #f0f0f0;
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pop-post {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pop-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pop-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pop-info h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pop-info h4 a:hover {
    color: #0A882E;
}

.pop-meta {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* CTA Widget */
.widget-cta {
    background-color: #0A882E;
    border-radius: 24px;
    padding: 32px 24px;
    color: #fff;
}

.widget-cta-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
    opacity: 0.9;
}

.widget-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.widget-cta p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 24px;
}

.widget-cta .btn {
    width: 100%;
    background-color: #fff;
    color: #0A882E;
    border-color: #fff;
    font-weight: 700;
}

.widget-cta .btn:hover {
    background-color: #f8f8f8;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
    border-color: #0A882E;
    color: #0A882E;
}

.blog-pagination .page-numbers.current {
    background-color: #0A882E;
    color: #fff;
    border-color: #0A882E;
}

/* Related Posts Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive */
@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-sidebar {
        margin-top: 50px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .widget-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
}
