/* Simple Blog Styles */

/* Header */
.simple-blog-header {
    background: #f8f4f0;
    padding: 40px 0;
    text-align: center;
}

.simple-blog-header h1 {
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 10px;
}

.simple-blog-header h1 span {
    color: #c17b4b;
}

.simple-blog-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Filter Bar */
.blog-filter-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-sort-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;  /* Right side pe align */
    flex-wrap: wrap;
}

.sort-options {
    min-width: 180px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: #c17b4b;
}

.blog-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: #c17b4b;
}

.blog-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Blog Grid */
.blog-grid-section {
    padding: 50px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

/* Category badges - Agar chahiye to rakho, warna hata do */
.blog-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.blog-category.nutrition { background: #44a57c; }
.blog-category.wellness { background: #b5838d; }
.blog-category.recipes { background: #e9b741; }
.blog-category.lifestyle { background: #6d6875; }
.blog-category.fitness { background: #e76f51; }

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c1810;
}

.blog-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    /* Excerpt ko 3 lines mein limit karne ke liye */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

.blog-meta i {
    margin-right: 5px;
}

.read-more {
    color: #c17b4b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #a5673a;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-sort-wrapper {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .blog-search {
        width: 100%;
        max-width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-blog-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .simple-blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
}


/* Load More Button Styles */
.load-more-btn {
    background: transparent;
    border: 2px solid #c17b4b;
    color: #c17b4b;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #c17b4b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 123, 75, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn i {
    font-size: 0.9rem;
}

/* Hidden Blog Class */
.hidden-blog {
    display: none;
}

/* Animation for new blogs */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-sort-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-options, .blog-search {
        width: 100%;
    }
}