/* --- Blog Specific Styles --- */

/* 1. ბლოგების სია (List View) - ჰედერი */
.blog-list-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid #bbf7d0;
}

.blog-list-header h1 {
    color: #166534;
    font-size: 32px;
    margin-bottom: 10px;
}

.blog-list-header p {
    color: #4b5563;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. კატეგორიები (Pills) */
.blog-categories-wrapper {
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-categories-wrapper::-webkit-scrollbar { 
    display: none; 
}

.blog-categories-scroll {
    display: flex;
    gap: 10px;
    padding-bottom: 5px;
}

.blog-cat-pill {
    background: #f8fafc;
    color: #475569;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-cat-pill span {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.blog-cat-pill:hover, .blog-cat-pill.active {
    background: #4CBB8D;
    color: white;
    border-color: #4CBB8D;
    box-shadow: 0 4px 10px rgba(76, 187, 141, 0.3);
}

.blog-cat-pill.active span, .blog-cat-pill:hover span {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 3. ბადეები (Grids) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.section-header {
    font-size: 22px;
    color: #2c3e50;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 20px;
}

/* 4. პაგინაცია (Pagination) */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: #4CBB8D;
    color: white;
    border-color: #4CBB8D;
}

.page-link.prev, .page-link.next { 
    width: auto; 
    padding: 0 15px; 
    gap: 8px; 
}

/* 5. სტატიის შიდა გვერდი (Inside Article) */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-content h2, .blog-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 🛑 6. მობილურის ადაპტაცია 🛑 */
@media (max-width: 768px) {
    /* ჰედერის (მწვანე ბლოკის) დაპატარავება */
    .blog-list-header { 
        padding: 25px 15px !important; 
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        border-radius: 16px !important;
    }
    
    .blog-list-header h1 { 
        font-size: 24px !important; 
        margin-bottom: 5px !important;
    }
    
    .blog-list-header p {
        font-size: 14px !important; 
        line-height: 1.5 !important;
    }

    /* შიდა სტატიის ტექსტების დაცვა გადაჭრისგან */
    .blog-title { 
        font-size: 20px !important; 
        line-height: 1.4 !important; 
        word-wrap: break-word; 
        hyphens: auto; 
    }
    
    .blog-content h1 { 
        font-size: 22px !important; 
        line-height: 1.4; 
        word-wrap: break-word; 
        hyphens: auto; 
    }
    
    .blog-content h2 { 
        font-size: 20px !important; 
        line-height: 1.4; 
        word-wrap: break-word; 
        hyphens: auto; 
    }
    
    /* შიდა სტატიის კონტეინერის დაპატარავება */
    .blog-container { 
        padding: 20px 15px !important; 
    }
}