/*
	Theme Name: Konkor Blog
	Theme URI: https://example.com
	Description: قالب مستقل و اختصاصی برای سایت بلاگی/مشاوره کنکور. کاملاً جدا از Hello Elementor، سبک و سریع، و به‌طور کامل با Elementor و Elementor Pro (Theme Builder) قابل ویرایش است. شامل نوع محتوای «اساتید» و ویجت اختصاصی کارت‌های اساتید.
	Author: Custom Build
	Version: 1.0.0
	Requires at least: 6.0
	Requires PHP: 7.4
	Text Domain: konkor-blog
	Tags: blog, education, rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===== ریست پایه ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	color: #22252a;
	background: #fff;
	line-height: 1.9;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
}
.skip-link {
	position: absolute;
	right: -9999px;
	z-index: 999;
	padding: 10px 16px;
	background: #7a5af8;
	color: #fff;
}
.skip-link:focus { right: 6px; top: 6px; }
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== هدر پیش‌فرض (فقط وقتی Elementor Theme Builder برای هدر تنظیم نشده باشد) ===== */
.site-header {
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 100;
}
.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 20px;
	max-width: 1200px;
	margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title a { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.site-description { font-size: 12px; color: #888; margin: 0; }
.site-navigation ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-navigation a { font-weight: 600; font-size: 15px; }
.site-navigation a:hover { color: #7a5af8; }
.header-cta {
	background: #7a5af8;
	color: #fff !important;
	padding: 10px 22px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.nav-toggle {
	display: none;
	border: none;
	background: none;
	font-size: 26px;
	cursor: pointer;
}
@media (max-width: 780px) {
	.site-navigation { display: none; width: 100%; }
	.site-navigation.is-open { display: block; }
	.site-navigation ul { flex-direction: column; gap: 12px; padding: 16px 0; }
	.nav-toggle { display: block; }
	.header-inner { flex-wrap: wrap; }
}

/* ===== فوتر پیش‌فرض ===== */
.site-footer {
	background: #14151a;
	color: #cfcfd6;
	margin-top: 60px;
	padding: 50px 20px 20px;
}
.site-footer .footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: #7a5af8; }
.footer-bottom {
	max-width: 1200px;
	margin: 30px auto 0;
	border-top: 1px solid #262731;
	padding-top: 18px;
	font-size: 13px;
	color: #8a8a94;
	text-align: center;
}
@media (max-width: 780px) {
	.site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.site-footer .footer-inner { grid-template-columns: 1fr; }
}

/* ===== آرشیو / صفحه بلاگ (فال‌بک) ===== */
.page-header { text-align: center; margin: 40px 0; }
.page-header .entry-title { font-size: 30px; margin: 0 0 8px; }
.archive-description { color: #666; }

.blog-grid {
	max-width: 1200px;
	margin: 0 auto 60px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0,0,0,.06);
	transition: transform .25s ease;
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: #f2f2f5; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 18px; }
.blog-card .cat { display: inline-block; font-size: 12px; color: #7a5af8; font-weight: 700; margin-bottom: 8px; }
.blog-card .entry-title { font-size: 17px; margin: 0 0 8px; }
.blog-card .excerpt { font-size: 13px; color: #666; }
.blog-card .meta { font-size: 12px; color: #999; margin-top: 10px; }

.pagination { display: flex; justify-content: center; gap: 16px; margin: 30px 0 60px; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 8px; background: #f2f2f5; }

/* ===== تک‌پست ===== */
.single-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.single-wrap .entry-title { font-size: 28px; margin-bottom: 10px; }
.single-wrap .post-meta { color: #888; font-size: 13px; margin-bottom: 24px; }
.single-wrap .featured-img { border-radius: 16px; overflow: hidden; margin-bottom: 30px; }
.single-wrap .page-content { font-size: 16px; line-height: 2; }
.single-wrap .page-content img { border-radius: 12px; margin: 20px 0; }

/* ===== 404 / جستجو ===== */
.not-found-wrap { text-align: center; padding: 80px 20px; }
