/* Blog page specific styles */

/* Page Header */
.blog-page .page-header,
.page-header {
    background: linear-gradient(rgba(27, 48, 34, 0.9), rgba(27, 48, 34, 0.95)),
                url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: #f5f0e6;
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-image .blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-content h3 a:hover {
    color: #2d5a27;
}

.blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: #2d5a27;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.blog-meta i {
    margin-right: 5px;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2d5a27;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.pagination-btn:hover {
    background: #1e3d1a;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* Empty State */
.empty-blog-state {
    text-align: center;
    padding: 80px 20px;
    color: #777;
}

.empty-blog-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-blog-state h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2d5a27;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #2d5a27;
}

.search-form button {
    padding: 12px 15px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #1e3d1a;
}

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

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.category-list a:hover,
.category-list a.active {
    background: #f5f5f5;
    color: #2d5a27;
    font-weight: 500;
}

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

.featured-post {
    display: flex;
    gap: 15px;
}

.featured-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.featured-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-content h4 a:hover {
    color: #2d5a27;
}

.featured-date {
    font-size: 12px;
    color: #888;
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.recent-posts a:hover {
    color: #2d5a27;
}

.recent-date {
    font-size: 12px;
    color: #888;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2d5a27;
}

.newsletter-form button {
    padding: 12px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #1e3d1a;
}

/* Blog Section */
.blog-section {
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
