.fmpj {
	--fm-accent: #e85941;
	--fm-accent-soft: rgba(232, 89, 65, 0.1);
	--fm-dark: #2e3f50;
	--fm-dark-deep: #1a2832;
	--fm-text: #18191d;
	--fm-muted: #6b7a88;
	--fm-line: rgba(46, 63, 80, 0.1);
	--fm-radius: 18px;
	--fm-ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	max-width: var(--fm-site);
	margin: 0 auto;
	padding: 1.5rem var(--fm-page-gutter) 3rem;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	direction: rtl;
	color: var(--fm-text);
	box-sizing: border-box;
}

.fmpj *,
.fmpj *::before,
.fmpj *::after {
	box-sizing: border-box;
}

.fmpj__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1.5rem;
	font-size: 0.82rem;
	color: var(--fm-muted);
}

.fmpj__breadcrumb a {
	color: var(--fm-muted);
	text-decoration: none;
	transition: color var(--fm-ease);
}

.fmpj__breadcrumb a:hover {
	color: var(--fm-accent);
}

.fmpj__breadcrumb span:last-child {
	color: var(--fm-dark);
	font-weight: 600;
}

.fmpj__bc-sep {
	opacity: 0.45;
}

.fmpj__eyebrow {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fm-accent);
	letter-spacing: 0.02em;
}

.fmpj__title,
.fmpj__archive-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.45;
	color: var(--fm-dark);
}

.fmpj__lead,
.fmpj__archive-lead {
	margin: 0;
	max-width: 58ch;
	font-size: 0.95rem;
	line-height: 1.9;
	color: var(--fm-muted);
}

.fmpj__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.fmpj__gallery {
	display: grid;
	gap: 0.85rem;
}

.fmpj__gallery-main {
	position: relative;
	border-radius: var(--fm-radius);
	overflow: hidden;
	background: linear-gradient(145deg, #f8fafc, #eef2f6);
	border: 1px solid var(--fm-line);
	display: block;
}

.fmpj__gallery--multi .fmpj__gallery-main {
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmpj__gallery-main--placeholder {
	background: linear-gradient(135deg, rgba(232, 89, 65, 0.06), transparent 55%), #f1f5f9;
	min-height: 220px;
}

.fmpj__gallery-hero {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.fmpj__gallery--multi .fmpj__gallery-hero {
	height: 100%;
	object-fit: cover;
}

.fmpj__gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.fmpj__gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	transition: border-color var(--fm-ease), transform 0.2s ease;
}

.fmpj__gallery-thumb.is-active,
.fmpj__gallery-thumb:hover {
	border-color: var(--fm-accent);
}

.fmpj__gallery-thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.fmpj__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
}

.fmpj__content {
	font-size: 0.95rem;
	line-height: 1.95;
	color: var(--fm-text);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fmpj__content p {
	margin: 0 0 1rem;
}

.fmpj__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.fmpj__content table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	margin: 1rem 0;
}

.fmpj__aside {
	display: grid;
	gap: 1rem;
}

.fmpj__meta-box,
.fmpj__cta-box {
	padding: 1.25rem;
	border-radius: var(--fm-radius);
	border: 1px solid var(--fm-line);
	background: #fff;
	box-shadow: 0 10px 30px rgba(24, 25, 29, 0.04);
}

.fmpj__meta-title,
.fmpj__section-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--fm-dark);
}

.fmpj__meta-row {
	display: grid;
	gap: 0.25rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--fm-line);
}

.fmpj__meta-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.fmpj__meta-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fm-accent);
}

.fmpj__meta-value {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--fm-dark);
}

.fmpj__cta-box {
	display: grid;
	gap: 0.65rem;
}

.fmpj__cta-box .fmpj__btn {
	width: 100%;
}

.fmpj__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.1rem;
	border-radius: 10px;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all var(--fm-ease);
}

.fmpj__btn--primary {
	background: var(--fm-accent);
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(232, 89, 65, 0.22);
}

.fmpj__btn--primary:hover {
	background: #d14a34;
}

.fmpj__btn--ghost {
	background: #fff;
	color: var(--fm-dark) !important;
	border-color: var(--fm-line);
}

.fmpj__btn--ghost:hover {
	border-color: rgba(232, 89, 65, 0.35);
	color: var(--fm-accent) !important;
}

.fmpj__btn--link {
	background: transparent !important;
	color: var(--fm-accent) !important;
	border: 0 !important;
	border-top: 1px solid var(--fm-line) !important;
	box-shadow: none !important;
	width: 100%;
	margin-top: 0.15rem;
	padding: 0.85rem 0 0.15rem;
	justify-content: center;
	text-decoration: none !important;
	font-size: 0.84rem;
}

.fmpj__btn--link:hover {
	color: var(--fm-accent-2) !important;
	background: transparent !important;
	text-decoration: underline !important;
}

.fmpj__related {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--fm-line);
}

.fmpj__related-grid,
.fmpj__archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.fmpj__card {
	border-radius: var(--fm-radius);
	overflow: hidden;
	border: 1px solid var(--fm-line);
	background: #fff;
	box-shadow: 0 8px 24px rgba(24, 25, 29, 0.04);
	transition: transform var(--fm-ease), box-shadow var(--fm-ease);
}

.fmpj__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(24, 25, 29, 0.08);
}

.fmpj__card-media {
	display: block;
	overflow: hidden;
	background: #eef2f6;
	line-height: 0;
}

.fmpj__card-media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: unset;
	object-position: center;
	transition: transform var(--fm-ease);
}

.fmpj__card:hover .fmpj__card-media img {
	transform: scale(1.04);
}

.fmpj__card-body {
	padding: 1rem 1.1rem 1.15rem;
}

.fmpj__card-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	line-height: 1.55;
}

.fmpj__card-title a {
	color: var(--fm-dark);
	text-decoration: none;
	transition: color var(--fm-ease);
}

.fmpj__card-title a:hover {
	color: var(--fm-accent);
}

.fmpj__card-excerpt {
	margin: 0 0 0.65rem;
	font-size: 0.86rem;
	line-height: 1.75;
	color: var(--fm-muted);
}

.fmpj__card-meta {
	display: block;
	margin-bottom: 0.65rem;
	font-size: 0.8rem;
	color: var(--fm-accent);
	font-weight: 600;
}

.fmpj__card-link {
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--fm-accent);
	text-decoration: none;
}

.fmpj__archive-head {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--fm-line);
}

.fmpj__empty {
	padding: 2rem;
	text-align: center;
	border-radius: var(--fm-radius);
	background: #f8fafc;
	border: 1px dashed var(--fm-line);
}

.fmpj__empty p {
	margin: 0 0 1rem;
	color: var(--fm-muted);
}

@media (min-width: 768px) {
	.fmpj__hero {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		align-items: center;
	}

	.fmpj__related-grid,
	.fmpj__archive-grid {
		gap: 1.25rem;
	}
}

@media (min-width: 992px) {
	.fmpj__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.fmpj__related-grid,
	.fmpj__archive-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.fmpj {
		padding: 1.15rem var(--fm-page-gutter) 2.5rem;
	}

	.fmpj__related-grid,
	.fmpj__archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.fmpj__card-body {
		padding: 0.65rem 0.7rem 0.75rem;
	}

	.fmpj__card-title {
		font-size: 0.82rem;
		line-height: 1.4;
	}

	.fmpj__card-excerpt {
		display: none;
	}

	.fmpj__card-meta {
		font-size: 0.7rem;
	}

	.fmpj__card-link {
		font-size: 0.72rem;
	}

	.fmpj__gallery-thumb img {
		width: 56px;
		height: 56px;
	}

	.fmpj__meta-box,
	.fmpj__cta-box {
		padding: 1.1rem;
	}
}

.elementor-widget-shortcode:has(.fmpj),
.elementor-widget-shortcode:has(.fmpj) .elementor-widget-container,
.elementor-element:has(.fmpj) {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	align-self: stretch !important;
}
