/* ================= هدر صفحه ================= */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

/* ================= فیلترها ================= */
.filters-section {
    background: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-search {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.filter-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-search input {
    width: 100%;
    padding: 12px 46px 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-tag {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ================= لیست وبلاگ ================= */
.blog-section {
    padding: 50px 0 70px;
    background: var(--bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.blog-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .thumb-bg {
    transform: scale(1.1);
}

.thumb-bg i {
    font-size: 60px;
    color: #fff;
    opacity: 0.9;
}

.bg-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bg-electronics {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.bg-network {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.bg-iot {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.bg-office {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.blog-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.blog-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-meta i {
    color: var(--primary);
    margin-left: 4px;
}

.blog-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.blog-title a {
    color: var(--dark);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 18px;
}

.blog-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.blog-link i {
    transition: var(--transition);
}

.blog-card:hover .blog-link i {
    transform: translateX(-4px);
}

/* ================= عدم نتیجه ================= */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 50px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 10px;
}

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

.page-btn {
    min-width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ================= خبرنامه ================= */
.newsletter {
    background: linear-gradient(135deg, var(--bg-light), #e0f2fe);
    padding: 60px 0;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 15px;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

/* ================= CTA پایانی ================= */
.cta-bottom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
}

.cta-bottom-inner {
    text-align: center;
}

.cta-bottom h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-bottom p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.cta-bottom .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.cta-bottom .btn-primary:hover {
    background: var(--dark);
    color: #fff;
}

/* ================= ریسپانسیو ================= */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .cta-bottom h2 {
        font-size: 22px;
    }
}