/* fkm-projects — استایل ویجت (بارگذاری فقط هنگام استفاده) */
.ypj-section {
	width: 100%;
	direction: rtl;
	color: #202020;
}
.ypj-section-title {
	margin: 0 0 40px;
	text-align: center;
	font-size: clamp(28px, 3vw, 46px);
	line-height: 1.3;
	font-weight: 800;
	color: #111827;
	text-shadow: 0 6px 8px rgba(0, 0, 0, 0.18);
}
.ypj-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
.ypj-card {
	min-height: 320px;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: inset 0 2px 18px rgba(15, 23, 42, 0.05), 0 10px 22px rgba(0, 0, 0, 0.06);
	padding: 26px 22px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
}
.ypj-logo {
	width: 100%;
	height: 128px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ypj-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ypj-logo-text {
	font-weight: 800;
	font-size: 48px;
	line-height: 1.1;
	text-align: center;
}
.ypj-copy {
	font-size: 17px;
	line-height: 1.8;
	font-weight: 500;
	color: #1f2937;
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ypj-btn {
	border: 0;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #efefef 100%);
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.16);
	color: #5b5b5b;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 20px;
	min-width: 116px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ypj-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 14px rgba(0, 0, 0, 0.18);
}
.ypj-btn:active { transform: translateY(0); }
/* ── مودال ویدیو ── */
.ypj-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	backdrop-filter: blur(8px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.ypj-modal.ypj-active {
	opacity: 1;
	visibility: visible;
}
.ypj-modal-content {
	width: 100%;
	max-width: 960px;
	background: #000;
	border-radius: 25px;
	position: relative;
	box-shadow: 0 25px 60px rgba(0,0,0,0.6);
	transform: scale(0.8);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ypj-modal.ypj-active .ypj-modal-content { transform: scale(1); }
.ypj-modal-close {
	position: absolute;
	top: -55px;
	left: 0;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: #ececec;
	border: none;
	color: #222;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 20px rgba(0,0,0,0.4);
	transition: all 0.3s ease;
	z-index: 10;
}
.ypj-modal-close:hover {
	background: #fff;
	transform: rotate(90deg);
}
.ypj-video-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	background: #000;
	border-radius: 25px;
	overflow: hidden;
}
.ypj-video-wrapper iframe,
.ypj-video-wrapper video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}
@media (max-width: 560px) {
	.ypj-section-title { margin-bottom: 28px; }
}
