/* Page Content Shortcode - Styles */

.pcs-wrapper {
	margin: 1.5rem 0;
	position: relative;
	font-family: 'YekanBakh', inherit;
}

.pcs-content {
	overflow: hidden;
	transition: max-height 0.45s ease;
	line-height: 1.8;
	color: #333;
	font-family: 'YekanBakh', inherit;
}

.pcs-content.pcs-collapsed {
	max-height: 260px;
	position: relative;
}

.pcs-content.pcs-collapsed::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgb(254 251 219 / 48%) 35%,
		rgb(254 251 219) 70%,
		#fefbdb 100%
	) !important;
	pointer-events: none;
	z-index: 1;
}


.pcs-content.pcs-expanded {
	max-height: none !important;
}

.pcs-content.pcs-expanded::after {
	display: none;
}

.pcs-toggle-wrapper {
	text-align: center;
	margin-top: 0.75rem;
	position: relative;
	z-index: 2;
}

.pcs-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: transparent;
	border: none;
	color: #222;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	padding: 0.35rem 0.5rem;
	transition: opacity 0.2s ease;
	font-family: 'YekanBakh', inherit;
	direction: rtl;
}

.pcs-toggle-btn:hover {
	opacity: 0.7;
}

.pcs-toggle-btn:focus {
	outline: none;
}

.pcs-btn-text {
	display: inline-block;
}

.pcs-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.85em;
	height: 0.85em;
}

.pcs-btn-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.pcs-toggle-btn.pcs-more .pcs-icon-more {
	display: inline-flex;
}

.pcs-toggle-btn.pcs-more .pcs-icon-less {
	display: none;
}

.pcs-toggle-btn.pcs-less .pcs-icon-more {
	display: none;
}

.pcs-toggle-btn.pcs-less .pcs-icon-less {
	display: inline-flex;
}


.pcs-responsive-img,
.pcs-content img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 1rem auto;
}


.pcs-responsive-table,
.pcs-content table {
	width: 100% !important;
	max-width: 100%;
	display: block;
	overflow-x: auto;
	margin: 1.5rem 0;
}


.pcs-responsive-video,
.pcs-content video {
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 1.5rem auto;
}

.pcs-iframe-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin: 1.5rem 0;
}

.pcs-responsive-iframe,
.pcs-iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}


.h_iframe-aparat_embed_frame > span {
	padding: 0 !important;
}

/* .h_iframe-aparat_embed_frame iframe {
	position: relative !important;
	width: revert-layer !important;
} */

.pcs-content, .pcs-btn-text, .pcs-content table{
    font-family: 'YekanBakh' !important;
}
.pcs-content.pcs-collapsed::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(254 251 219 / 48%) 35%, rgb(254 251 219) 70%, #fefbdb 100%) !important;
}

.pcs-error {
	color: #b32d2e;
	background: #fcf0f1;
	padding: 0.8rem 1rem;
	border-radius: 4px;
	border-right: 4px solid #b32d2e;
	font-family: 'YekanBakh', inherit;
}

.h_iframe-aparat_embed_frame > span {
    padding: 0 !important;
}
.h_iframe-aparat_embed_frame iframe{
	position:relative !important;
}
.pcs-content iframe {
    width: 640px !important;
    height: 360px !important;
}

@media (max-width: 600px) {
	.pcs-content.pcs-collapsed {
		max-height: 220px;
	}

	.pcs-toggle-btn {
		font-size: 0.9rem;
	}
}
