* {
    box-sizing: border-box;
    font-family: 'YekanBakhFaNum2', sans-serif !important;
}

body {
    font-family: 'YekanBakhFaNum2', sans-serif !important;
    background: #f9f9f9;
    margin: 0;
    direction: rtl;
}

.blog-header {
    background: #28a745;
    border-radius: 20px;
    padding: 40px 30px 35px 30px;
    color: #fff;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    margin-top: 0;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
    z-index: 2;
}

.blog-header h1, .blog-header p, .blog-header i {
    color: #fff !important;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.3rem;
    margin: 0;
}

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

.search-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -35px;
    position: relative;
    z-index: 3;
    width: 100%;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'YekanBakhFaNum2', sans-serif;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.main-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .main-content {
        margin-top: -10px;
        padding: 16px 6px;
        border-radius: 12px;
    }
}

.sidebar {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.section-title {
    font-size: 1.5rem;
    color: #28a745;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.section-title i {
    color: #28a745;
}

.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-post-content {
    padding: 20px;
}

.featured-post h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.featured-post p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
}

.post-meta i {
    color: #28a745;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
}

.sidebar-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-post-content h4 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
}

.sidebar-post-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #28a745;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-posts {
        grid-template-columns: 1fr;
    }
}
.back-btn {
    background: #f4f6fb;
    color: #28a745;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #e8f0fe;
    font-weight: 500;
}
.back-btn:hover {
    background: #28a745;
    color: #fff;
}
.back-btn i {
    font-size: 1.1em;
}
.back-mobile { display: none; }
.back-desktop { display: inline; }
@media (max-width: 768px) {
    .back-desktop { display: none; }
    .back-mobile { display: inline; }
    .back-btn { padding: 7px 12px; font-size: 1.1rem; }
}