/* ═══════════════════════════════════════════════
   IranDV Pro — استایل‌های پایه (RTL)
   ═══════════════════════════════════════════════ */

:root {
	--iv-navy: #0b1f3a;
	--iv-navy-2: #102a4c;
	--iv-navy-3: #16345e;
	--iv-green: #10b981;
	--iv-green-dark: #059669;
	--iv-gold: #fbbf24;
	--iv-bg: #f6f8fb;
	--iv-surface: #ffffff;
	--iv-text: #0f172a;
	--iv-text-2: #475569;
	--iv-text-3: #94a3b8;
	--iv-border: #e2e8f0;
	--iv-radius: 14px;
	--iv-radius-sm: 10px;
	--iv-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
	--iv-shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
	--iv-font: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--iv-font);
	background: var(--iv-bg);
	color: var(--iv-text);
	line-height: 1.9;
	font-size: 16px;
	margin: 0;
	direction: rtl;
}

img { max-width: 100%; height: auto; }

a { color: var(--iv-green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--iv-green); }

h1, h2, h3, h4, h5, h6 { line-height: 1.5; margin: 0 0 0.6em; color: var(--iv-navy); font-weight: 800; }

.iv-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 20px;
}

.iv-container--narrow { max-width: 860px; }

.iv-center { text-align: center; margin-top: 34px; }

/* ─────────── دکمه‌ها ─────────── */
.iv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	padding: 11px 22px;
	border-radius: 12px;
	font-family: var(--iv-font);
	font-size: 15px;
	font-weight: 700;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.22s ease;
	line-height: 1.6;
	white-space: nowrap;
}

.iv-btn--primary {
	background: linear-gradient(135deg, var(--iv-green), var(--iv-green-dark));
	color: #fff;
	box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}

.iv-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(16, 185, 129, 0.42);
	color: #fff;
}

.iv-btn--ghost {
	background: transparent;
	border-color: var(--iv-border);
	color: var(--iv-text);
}

.iv-btn--ghost:hover { border-color: var(--iv-green); color: var(--iv-green-dark); background: rgba(16, 185, 129, 0.06); }

.iv-btn--white {
	background: #fff;
	color: var(--iv-navy);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.iv-btn--white:hover { transform: translateY(-2px); color: var(--iv-navy); }

.iv-btn--sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.iv-btn--lg { padding: 14px 30px; font-size: 16.5px; border-radius: 14px; }
.iv-btn--block { width: 100%; }

/* ─────────── هدر ─────────── */
.iv-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--iv-border);
}

.iv-header__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 72px;
}

.iv-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	font-size: 20px;
	color: var(--iv-navy);
}

.iv-brand__mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--iv-green), var(--iv-green-dark));
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.iv-brand--footer .iv-brand__text { color: #fff; }
.iv-brand--footer .iv-brand__mark { background: rgba(255, 255, 255, 0.14); box-shadow: none; }

.custom-logo { max-height: 52px; width: auto; }

.iv-nav { flex: 1; }

.iv-nav__list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.iv-nav__list li { position: relative; }

.iv-nav__list a {
	display: block;
	padding: 9px 14px;
	border-radius: 10px;
	color: var(--iv-text-2);
	font-weight: 600;
	font-size: 15px;
}

.iv-nav__list a:hover,
.iv-nav__list .current-menu-item > a {
	color: var(--iv-navy);
	background: rgba(16, 185, 129, 0.08);
}

/* زیرمنو */
.iv-nav__list ul {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--iv-border);
	border-radius: 12px;
	box-shadow: var(--iv-shadow);
	list-style: none;
	margin: 0;
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 50;
}

.iv-nav__list li:hover > ul,
.iv-nav__list li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.iv-header__actions { display: flex; align-items: center; gap: 12px; }

.iv-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.iv-burger span { width: 24px; height: 2.5px; background: var(--iv-navy); border-radius: 3px; transition: all 0.25s; }
.iv-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.iv-burger.is-open span:nth-child(2) { opacity: 0; }
.iv-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─────────── سربرگ صفحات داخلی ─────────── */
.iv-page-head {
	background: linear-gradient(135deg, var(--iv-navy), var(--iv-navy-3));
	padding: 46px 0 40px;
	color: #fff;
}

.iv-page-head__title { color: #fff; margin: 0; font-size: 30px; }
.iv-page-head__desc { color: rgba(255, 255, 255, 0.75); margin: 8px 0 0; }

.iv-breadcrumbs { color: rgba(255, 255, 255, 0.65); font-size: 14px; display: flex; gap: 8px; }
.iv-breadcrumbs a { color: #fff; }

/* ─────────── چیدمان با سایدبار ─────────── */
.iv-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; padding-block: 40px; align-items: start; }

.iv-widget {
	background: var(--iv-surface);
	border: 1px solid var(--iv-border);
	border-radius: var(--iv-radius);
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: var(--iv-shadow);
}

.iv-widget__title { font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--iv-bg); }

.iv-widget ul { list-style: none; margin: 0; padding: 0; }
.iv-widget li { padding: 7px 0; border-bottom: 1px dashed var(--iv-border); }
.iv-widget li:last-child { border-bottom: 0; }

.iv-widget--cta { background: linear-gradient(160deg, var(--iv-navy), var(--iv-navy-3)); color: #fff; }
.iv-widget--cta .iv-widget__title { color: #fff; border-color: rgba(255, 255, 255, 0.14); }
.iv-widget--cta p { color: rgba(255, 255, 255, 0.75); font-size: 14px; }

/* ─────────── کارت نوشته ─────────── */
.iv-posts { display: grid; gap: 22px; }
.iv-posts--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.iv-post-card {
	background: var(--iv-surface);
	border: 1px solid var(--iv-border);
	border-radius: var(--iv-radius);
	overflow: hidden;
	box-shadow: var(--iv-shadow);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	display: flex;
	flex-direction: column;
}

.iv-post-card:hover { transform: translateY(-4px); box-shadow: var(--iv-shadow-lg); }

.iv-post-card__thumb { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--iv-navy-2), var(--iv-navy-3)); overflow: hidden; }
.iv-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.iv-post-card:hover .iv-post-card__thumb img { transform: scale(1.05); }

.iv-post-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255, 255, 255, 0.5); }

.iv-post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.iv-post-card__date { color: var(--iv-text-3); font-size: 13px; }
.iv-post-card__title { font-size: 17px; margin: 0; }
.iv-post-card__title a { color: var(--iv-navy); }
.iv-post-card__title a:hover { color: var(--iv-green-dark); }
.iv-post-card__excerpt { color: var(--iv-text-2); font-size: 14px; margin: 0; flex: 1; }
.iv-post-card__link { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

/* ─────────── نوشته تکی ─────────── */
.iv-single { background: var(--iv-surface); border: 1px solid var(--iv-border); border-radius: var(--iv-radius); padding: 34px; box-shadow: var(--iv-shadow); }

.iv-single__title { font-size: 28px; }
.iv-single__meta { display: flex; gap: 14px; align-items: center; color: var(--iv-text-3); font-size: 14px; flex-wrap: wrap; }
.iv-single__thumb { margin: 20px 0; border-radius: var(--iv-radius-sm); overflow: hidden; }
.iv-single__tags a { display: inline-block; background: var(--iv-bg); border: 1px solid var(--iv-border); border-radius: 8px; padding: 3px 12px; font-size: 13px; margin: 4px 2px; }

.iv-content { font-size: 16.5px; color: #1e293b; }
.iv-content > *:first-child { margin-top: 0; }
.iv-content h2 { font-size: 23px; margin-top: 1.6em; }
.iv-content h3 { font-size: 19px; margin-top: 1.4em; }
.iv-content img { border-radius: var(--iv-radius-sm); }
.iv-content blockquote { border-right: 4px solid var(--iv-green); background: rgba(16, 185, 129, 0.05); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; }
.iv-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ناوبری نوشته */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.post-navigation .nav-previous, .post-navigation .nav-next { background: var(--iv-surface); border: 1px solid var(--iv-border); border-radius: var(--iv-radius-sm); padding: 14px 18px; }
.post-navigation .nav-next { text-align: left; }
.post-navigation span { display: block; color: var(--iv-text-3); font-size: 13px; }
.post-navigation a { font-weight: 700; font-size: 15px; }

/* ─────────── صفحه‌بندی ─────────── */
.pagination, .page-numbers { margin-top: 30px; }
.nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--iv-surface);
	border: 1px solid var(--iv-border);
	border-radius: 10px;
	color: var(--iv-text-2);
	font-weight: 700;
}
.page-numbers.current { background: var(--iv-green); border-color: var(--iv-green); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--iv-green); color: var(--iv-green-dark); }

/* ─────────── فرم‌ها و دیدگاه‌ها ─────────── */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="search"], textarea, select {
	font-family: var(--iv-font);
	font-size: 15px;
	padding: 11px 14px;
	border: 1.5px solid var(--iv-border);
	border-radius: var(--iv-radius-sm);
	background: #fff;
	color: var(--iv-text);
	width: 100%;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--iv-green);
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.iv-search-form { display: flex; gap: 10px; margin-bottom: 26px; }

.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--iv-surface); border: 1px solid var(--iv-border); border-radius: var(--iv-radius-sm); padding: 18px; margin-bottom: 14px; }
.comment-form textarea { min-height: 130px; }

/* ─────────── ۴۰۴ و حالت خالی ─────────── */
.iv-404 { padding: 70px 20px; text-align: center; }
.iv-404__box b { font-size: 90px; color: var(--iv-green); opacity: 0.35; line-height: 1; display: block; }
.iv-404__actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

.iv-empty { background: var(--iv-surface); border: 1.5px dashed var(--iv-border); border-radius: var(--iv-radius); padding: 44px 20px; text-align: center; color: var(--iv-text-2); }

/* ─────────── فوتر ─────────── */
.iv-footer {
	background: linear-gradient(180deg, var(--iv-navy), #081527);
	color: rgba(255, 255, 255, 0.78);
	margin-top: 60px;
	padding-top: 54px;
}

.iv-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }

.iv-footer__heading { color: #fff; font-size: 16px; margin-bottom: 16px; }

.iv-footer__about { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }

.iv-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iv-footer__links a { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
.iv-footer__links a:hover { color: var(--iv-green); }

.iv-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.iv-footer__contact li { display: flex; align-items: center; gap: 10px; }
.iv-footer__contact .iv-icon { color: var(--iv-green); }

.iv-socials { display: flex; gap: 10px; margin-top: 16px; }
.iv-socials__link {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}
.iv-socials__link:hover { background: var(--iv-green); transform: translateY(-3px); }

.iv-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 20px 0 26px; }
.iv-footer__disclaimer { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin: 0 0 8px; }
.iv-footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin: 0; }

/* ─────────── واکنش‌گرایی ─────────── */
@media (max-width: 992px) {
	.iv-layout { grid-template-columns: 1fr; }
	.iv-layout__sidebar { order: 2; }
	.iv-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--iv-border);
		box-shadow: var(--iv-shadow-lg);
		padding: 14px 20px 20px;
		transform: translateY(-130%);
		transition: transform 0.3s ease;
		z-index: 800;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.iv-nav.is-open { transform: translateY(0); }
	.iv-nav__list { flex-direction: column; gap: 2px; }
	.iv-nav__list ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; }
	.iv-burger { display: flex; }
}

@media (max-width: 768px) {
	.iv-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.iv-single { padding: 22px; }
	.iv-header__actions .iv-btn { display: none; }
	.iv-burger { display: flex; }
	.post-navigation { grid-template-columns: 1fr; }
}

/* آیکن خطی */
.iv-icon { vertical-align: middle; flex-shrink: 0; }
