/* ==================== استایل‌های اختصاصی صفحه وبلاگ ==================== */
.blog-page {
    margin-top: 145px;
}

/* بخش Hero */
.blog-hero {
    background: linear-gradient(135deg, #101218 0%, #1a1f2e 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 174, 19, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 174, 19, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(249, 174, 19, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.blog-hero-badge span {
    color: var(--main-color-one);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.blog-hero h1 span {
    color: var(--main-color-one);
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* نوار جستجو و دسته‌بندی */
.blog-search-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--gray-border);
}

.blog-search-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.blog-search-box input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.blog-search-box input:focus {
    border-color: var(--main-color-one);
    box-shadow: 0 0 0 3px rgba(249, 174, 19, 0.1);
}

.blog-search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.blog-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-cat-btn {
    padding: 8px 20px;
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-cat-btn.active,
.blog-cat-btn:hover {
    background: var(--main-color-one);
    border-color: var(--main-color-one);
    color: #000;
}

/* بخش مقالات اصلی */
.blog-main-section {
    padding: 60px 0;
    background: #fafafc;
}

/* کارت مقاله بزرگ (ویژه) */
.featured-post {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-post-image {
    height: 100%;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 35px;
}

.post-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(249, 174, 19, 0.12);
    color: var(--main-color-one);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-post-content h2 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-content h2 a:hover {
    color: var(--main-color-one);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-meta i {
    margin-left: 5px;
}

.post-excerpt {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color-one);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* گرید مقالات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color-one);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card .post-category {
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--main-color-one);
}

.blog-card .post-meta {
    margin-bottom: 12px;
    font-size: 0.7rem;
}

.blog-card .post-excerpt {
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link.active,
.page-link:hover {
    background: var(--main-color-one);
    border-color: var(--main-color-one);
    color: #000;
}

/* سایدبار */
.blog-sidebar {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--gray-border);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--main-color-one);
    border-radius: 3px;
}

/* پست‌های محبوب */
.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.popular-post-item:hover {
    transform: translateX(-5px);
}

.popular-post-img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.popular-post-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* برچسب‌ها */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: #f8f9fc;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--main-color-one);
    color: #000;
}

/* CTA بخش */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #101218 0%, #1a1f2e 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 174, 19, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--main-color-one);
    border-radius: 50px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--main-color-one-dark);
    gap: 14px;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--main-color-one);
    border-radius: 50px;
    font-weight: 700;
    color: var(--main-color-one);
    text-decoration: none;
    transition: all 0.3s ease;
}

.submit-btn {
    margin-top: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f9ae13, #ffce6c);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--main-color-one);
    color: #000;
    gap: 14px;
    transform: translateY(-2px);
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .blog-page {
        margin-top: 120px;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search-box {
        max-width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .featured-post-content {
        padding: 25px;
    }

    .featured-post-content h2 {
        font-size: 1.3rem;
    }
}