/* ==================================================
   BLOG PAGE STYLES
   ================================================== */

.custom-education-theme-blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Blog Main Article Card --- */
.custom-education-theme-blog-article {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.custom-education-theme-blog-article:hover { box-shadow: var(--glass-shadow-hover); }

.custom-education-theme-blog-article-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.custom-education-theme-blog-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.custom-education-theme-blog-article:hover .custom-education-theme-blog-article-img img {
    transform: scale(1.06);
}

.custom-education-theme-blog-article-body { padding: 28px 32px 32px; }

.custom-education-theme-blog-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.custom-education-theme-blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-education-theme-blog-article-meta i { color: var(--accent); }

.custom-education-theme-blog-article-body h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.custom-education-theme-blog-article-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
}

.custom-education-theme-blog-article-content h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 10px;
}

.custom-education-theme-blog-article-content blockquote {
    padding: 14px 20px;
    background: var(--accent-glow-08);
    border-right: 4px solid var(--accent);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-primary);
}

[dir="ltr"] .custom-education-theme-blog-article-content blockquote {
    border-right: none;
    border-left: 4px solid var(--accent);
}

.custom-education-theme-blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.custom-education-theme-blog-tag {
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--transition);
}

.custom-education-theme-blog-tag:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* --- Blog Sidebar --- */
.custom-education-theme-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.custom-education-theme-blog-sidebar-card {
    padding: 22px;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

.custom-education-theme-blog-sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-education-theme-blog-sidebar-card h3 i { color: var(--accent); }

.custom-education-theme-blog-recent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-education-theme-blog-recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.custom-education-theme-blog-recent-item:hover {
    background: var(--accent-glow-08);
    transform: translateX(-4px);
}

.custom-education-theme-blog-recent-img {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.custom-education-theme-blog-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-education-theme-blog-recent-item:hover .custom-education-theme-blog-recent-img img { transform: scale(1.1); }

.custom-education-theme-blog-recent-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    justify-content: center;
}

.custom-education-theme-blog-recent-body h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.custom-education-theme-blog-recent-item:hover .custom-education-theme-blog-recent-body h5 { color: var(--accent); }

.custom-education-theme-blog-recent-body span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============ BLOG RESPONSIVE ============ */
@media (max-width: 1100px) {
    /* ✅ در سایز کوچکتر از 1100px زیر هم میشن */
    .custom-education-theme-blog-layout {
        grid-template-columns: 1fr;
    }
    .custom-education-theme-blog-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .custom-education-theme-blog-article-body { padding: 20px 20px 24px; }
    .custom-education-theme-blog-article-body h1 { font-size: 1.2rem; }
    .custom-education-theme-blog-article-img { height: 220px; }
    .custom-education-theme-blog-article-content { font-size: 0.88rem; }
}