/* ==========================================================================
   IELTS-City | اتوماسیون محتوای هوش مصنوعی — استایل خوانا و شیک مقاله
   این استایل فقط روی مقاله‌های ساخته‌شده با افزونه (کلاس .ielts-ai-article) اعمال می‌شود.
   ========================================================================== */

/* ۱) فونت وزیرمتن (Vazirmatn) از CDN — در سایت اصلی لود می‌شود.
   توجه: در پیش‌نمایشِ درون‌افزونه (که شبکه در دسترس نیست) ممکن است بارگذاری نشود؛
   فونت‌های جایگزینِ پایینِ همین stack رندر را حفظ می‌کنند. */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ==========================================================================
   ۱. تنظیمات پایه و فونت
   ========================================================================== */
.ielts-ai-article {
	font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI",
		"IRANSans", "Yekan", Tahoma, Roboto, sans-serif;
	direction: rtl;
	text-align: right;
	color: #2c3e50;
	line-height: 1.9;
	font-size: 16px;
	max-width: 820px;
	margin: 0 auto;
	padding: 20px;
	letter-spacing: 0;
}
.ielts-ai-article * { box-sizing: border-box; }
.ielts-ai-article > *:first-child { margin-top: 0; }
.ielts-ai-article > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   ۲. عناوین و تیترها (Headings)
   ========================================================================== */
.ielts-ai-article h1 {
	font-size: 2rem; /* 32px */
	font-weight: 800;
	color: #1a252f;
	margin-top: 10px;
	margin-bottom: 24px;
	line-height: 1.4;
	border-bottom: 2px solid #eef2f5;
	padding-bottom: 15px;
}
.ielts-ai-article h2 {
	font-size: 1.5rem; /* 24px */
	font-weight: 700;
	color: #2c3e50;
	margin-top: 40px;
	margin-bottom: 16px;
	position: relative;
	padding-right: 15px;
	line-height: 1.5;
}
/* خط تزئینی کنار H2 */
.ielts-ai-article h2::before {
	content: '';
	position: absolute;
	right: 0;
	top: 15%;
	height: 70%;
	width: 4px;
	background-color: #3498db;
	border-radius: 2px;
}
.ielts-ai-article h3 {
	font-size: 1.2rem; /* 19.2px */
	font-weight: 600;
	color: #34495e;
	margin-top: 28px;
	margin-bottom: 12px;
	line-height: 1.5;
}
.ielts-ai-article h4 {
	font-size: 1.05rem;
	font-weight: 600;
	color: #465a70;
	margin-top: 22px;
	margin-bottom: 10px;
}

/* ==========================================================================
   ۳. پاراگراف‌ها و متن‌ها
   ========================================================================== */
.ielts-ai-article p {
	margin-bottom: 20px;
	color: #4a5568;
	word-spacing: 0.5px;
	line-height: 1.9;
}
.ielts-ai-article strong {
	color: #1a202c;
	font-weight: 700;
}

/* ==========================================================================
   ۴. باکس‌های نکته و نقل‌قول (Blockquote)
   ========================================================================== */
.ielts-ai-article blockquote {
	background-color: #f7fafc;
	border-right: 4px solid #3182ce;
	border-radius: 6px 0 0 6px;
	margin: 25px 0;
	padding: 18px 20px;
	color: #2d3748;
	font-size: 0.95em;
}
.ielts-ai-article blockquote p {
	margin-bottom: 0;
	color: #2d3748;
}

/* ==========================================================================
   ۵. لیست‌ها (Lists)
   ========================================================================== */
.ielts-ai-article ul,
.ielts-ai-article ol {
	padding-right: 25px;
	margin-bottom: 24px;
	text-align: right;
}
.ielts-ai-article li {
	margin-bottom: 10px;
	color: #4a5568;
	line-height: 1.9;
}
.ielts-ai-article li::marker {
	color: #3182ce;
	font-weight: bold;
}

/* ==========================================================================
   ۶. جدول‌ها (Tables)
   ========================================================================== */
.ielts-ai-article table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0;
	font-size: 0.95rem;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ielts-ai-article th {
	background-color: #edf2f7;
	color: #2d3748;
	text-align: right;
	padding: 12px 16px;
	font-weight: 700;
}
.ielts-ai-article td {
	padding: 12px 16px;
	border-bottom: 1px solid #e2e8f0;
	color: #4a5568;
}
.ielts-ai-article tr:nth-child(even) {
	background-color: #f8fafc;
}

/* ==========================================================================
   ۷. خط جداکننده (Horizontal Rule)
   ========================================================================== */
.ielts-ai-article hr {
	border: 0;
	height: 1px;
	background: #e2e8f0;
	margin: 40px 0;
}

/* ==========================================================================
   ۸. لینک‌ها و تصاویر
   ========================================================================== */
.ielts-ai-article a {
	color: #1f6fb9;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .15s, color .15s;
}
.ielts-ai-article a:hover {
	color: #0d4f86;
	border-bottom-color: #0d4f86;
}
.ielts-ai-article img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

/* ==========================================================================
   ۹. جلوگیری از سرریز (کد/پیش‌فرمت)
   ========================================================================== */
.ielts-ai-article pre,
.ielts-ai-article code {
	white-space: pre-wrap;
	word-break: break-word;
	direction: ltr;
	text-align: left;
	background: #f5f7fa;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}

/* ==========================================================================
   ۱۰. موبایل
   ========================================================================== */
@media (max-width: 768px) {
	.ielts-ai-article {
		font-size: 15px;
		padding: 12px 16px;
	}
	.ielts-ai-article h2 { font-size: 1.3rem; }
	.ielts-ai-article h3 { font-size: 1.1rem; }
}
