/* ============================================
   استایل وبلاگ کلینیک دامپزشکی
   ============================================ */

.blog-wrapper {
    background: #f8faf8;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    font-family: 'Vazirmatn', sans-serif;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر وبلاگ */
.blog-hero {
    background: linear-gradient(135deg, #1a5e3a, #2d8a5e);
    color: white;
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '🐾';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    opacity: 0.1;
}

.blog-hero::after {
    content: '🩺';
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 80px;
    opacity: 0.1;
}

.blog-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* جستجو در هدر */
.blog-search-form {
    max-width: 500px;
    margin: 25px auto 0;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.blog-search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
}

.blog-search-form button {
    padding: 14px 25px;
    background: #1a5e3a;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.blog-search-form button:hover {
    background: #143d28;
}

/* لایوت اصلی */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* گرید مطالب */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* کارت مطلب */
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
}

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

.post-image .category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.post-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a5e3a;
    margin-bottom: 10px;
    line-height: 1.6;
    text-decoration: none;
    display: block;
}

.post-title:hover {
    color: #2d8a5e;
}

.post-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.post-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background: #1a5e3a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.read-more:hover {
    background: #143d28;
    transform: translateX(-3px);
}

/* سایدبار */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.widget {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 15px;
    color: #1a5e3a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.categories-list li a:hover {
    background: #e8f5e9;
    color: #1a5e3a;
    padding-right: 18px;
}

.categories-list .count {
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

.categories-list li a:hover .count {
    background: #1a5e3a;
    color: white;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    background: white;
    color: #1a5e3a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.pagination a:hover {
    background: #e8f5e9;
}

.pagination .current {
    background: #1a5e3a;
    color: white;
    border-color: #1a5e3a;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* صفحه‌ی نمایش مطلب */
.single-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.single-post-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

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

.single-post-body {
    padding: 35px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post h1 {
    font-size: 28px;
    color: #1a5e3a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.single-post-content {
    color: #333;
    line-height: 2;
    font-size: 15px;
}

.single-post-content p {
    margin-bottom: 18px;
}

.single-post-content h2 {
    color: #1a5e3a;
    margin: 25px 0 15px;
    font-size: 22px;
}

.single-post-content h3 {
    color: #2d8a5e;
    margin: 20px 0 12px;
    font-size: 18px;
}

.single-post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 15px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 15px 30px;
}

.single-post-content blockquote {
    background: #f0f9f0;
    border-right: 4px solid #1a5e3a;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
}

.tags-list {
    display: flex;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.tag {
    background: #e8f5e9;
    color: #1a5e3a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
}

.tag:hover {
    background: #1a5e3a;
    color: white;
}

/* مطالب مرتبط */
.related-posts {
    margin-top: 30px;
}

.related-posts h3 {
    color: #1a5e3a;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card .related-image {
    height: 130px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

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

.related-card .related-title {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1a5e3a;
    line-height: 1.6;
}

/* خالی بودن */
.empty-blog {
    background: white;
    padding: 60px 20px;
    border-radius: 16px;
    text-align: center;
    color: #888;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-blog i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

/* ریسپانسیو */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-hero h1 {
        font-size: 24px;
    }
    
    .single-post-body {
        padding: 20px;
    }
    
    .single-post h1 {
        font-size: 22px;
    }
}

/* breadcrumb */
.breadcrumb {
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.breadcrumb a {
    color: #1a5e3a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}