/**
Theme Name: pc Kadence
Version: 1.0.0
Text Domain: pc-kadence
Template: kadence
*/
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 900;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Black.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb_Black.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb_Black.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb_Black.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: bold;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Bold.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb_Bold.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 500;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Medium.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb_Medium.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 300;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Light.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb_Light.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 200;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_UltraLight.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: normal;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb.ttf') format('truetype');
}

@font-face {
	font-family: farsiNum;
	font-style: normal;
	font-weight: normal;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb(FaNum).eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb(FaNum).woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}

@font-face {
	font-family: farsiNum;
	font-style: normal;
	font-weight: 200;
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot');
	src: url('/wp-content/uploads/fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');
}


@font-face {
	font-family: dastnevis;
	font-style: normal;
	font-weight: bold;
	src: url('/wp-content/uploads/fonts/eot/iransansdnbold.eot');
	src: url('/wp-content/uploads/fonts/eot/iransansdnbold.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */
		url('/wp-content/uploads/fonts/woff2/iransansdnbold.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/
		url('/wp-content/uploads/fonts/woff/iransansdnbold.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		url('/wp-content/uploads/fonts/ttf/iransansdnbold.ttf') format('truetype');
}

body,
.farsi-section {
	font-weight: 200;
	font-family: IranSans, Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
}

.english-section {
	direction: ltr;
}

.farsi-section {
	direction: rtl;

}

.grey-box-text {
	background-color: #F2F5F7;
	padding: 15px;
	border-radius: 15px;
	color: #000000;
	margin-bottom: 15px;
}

.grey-box-text ul {
	margin-right: 25px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.9;
	font-family: dastnevis, IranSans,
		Tahoma,
		'Segoe UI',
		Geneva,
		Verdana,
		sans-serif;

}

p,
a,
ul,
li,
ol,
h1,
h2,
h3,
h4,
h5,
h6 {
	unicode-bidi: plaintext;
	text-align: start;
}

@media screen and (max-width:1024px) {
	.primary-sidebar {
		display: none;
	}
}


h1 {
	color: #900c3f;
	font-size: 1.8rem;
	font-weight: normal;
	line-height: 1.6;
}

/* =========================================
   رنگ‌بندی طیفی هدرهای داخلی (سلسله‌مراتب بصری)
   ========================================= */

/* H2: تیترهای داخلیِ اصلی (تیره‌ترین حالت و بولد) */
h2 {
	color: #1e3a8a;
	font-size: 1.6rem;
}

/* H3: زیرمجموعه H2 (کمی روشن‌تر) */
h3 {
	color: #29479b;
	font-size: 1.4rem;
}

/* H4: تیترهای خیلی ریز (طوسی ملایم‌تر) */
h4 {
	color: #3b58ad;
	font-size: 1.15rem;
}


h5 {
	color: #526db8;
}

h6 {

	color: #019a01;
	font-size: 15px;

}

.center {
	text-align: center;
}



.mobile-html-inner .site-tag {
	font-size: 12px;
	color: #019a01;
	text-align: center;

}

/* تنظیم مجدد ستون‌های گرید در موبایل */
#mobile-header .site-main-header-inner-wrap.site-header-row-center-column {
	display: grid !important;
	/* ستون چپ و راست به اندازه محتوا (auto) و وسط تمام فضا (1fr) */
	grid-template-columns: auto 1fr auto !important;
	gap: 10px;
	/* فاصله بین المان‌ها */
}

/* حذف عرض‌های ثابت احتمالی از ستون‌ها */
#mobile-header .site-header-section-left,
#mobile-header .site-header-section-center,
#mobile-header .site-header-section-right {
	width: auto !important;
	min-width: 0;
}

/* وسط‌چین کردن محتوای ستون وسط */
#mobile-header .site-header-section-center {
	display: flex !important;
	justify-content: center !important;
	align-items: center;
}

/* راست‌چین کردن دکمه منو برای چسبیدن به لبه */
#mobile-header .site-header-section-right {
	display: flex !important;
	justify-content: flex-end !important;
}

.pc-nav-links {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 20px;
	margin-bottom: 20px;
}

#aparat-link,
#youtube-link {
	padding: 15px;
}

.aparat-button {
	display: block;
	background-image: url(/wp-content/uploads/2025/01/aparat.png);
	background-size: 32px auto;
	background-repeat: no-repeat;
	background-position-x: right;
	background-position-y: center;
	padding-right: 35px;
}

.youtube-button {
	display: block;
	background-image: url(/wp-content/uploads/2025/01/youtube_icon.png);
	background-size: 64px auto;
	background-repeat: no-repeat;
	background-position-x: right;
	background-position-y: center;
	padding-right: 64px
}

.activities-list {

	border: 1px solid lightgray;
	border-bottom: 2px solid #e2e7ed;
	border-radius: 6px;
	margin: 1.5em 0;
	overflow: hidden;
	box-sizing: border-box;
}

.activities-list .acts-header,
.activities-wrapper .acts-header {
	background-color: #0c4781;
	color: white;
	border-radius: 6px 6px 0 0;
	padding: 15px;
	margin: 0;
	border: none;
	font-size: 16px;
	font-weight: 600;
}

.activities-list .activity-item {
	border-top: 1px dashed #c0c0c0;
	margin-bottom: 1px;
	padding: 20px;
}


.activities-list .activity-item {
	border-top: 1px dashed #c0c0c0;
	margin-bottom: 1px;
}

.single-pc_topic .activity-item a {
	margin: 25px;
	text-decoration: none;
}

.video-menu {
	padding: 15px;
}

.video-menu ul h3,
.video-menu ul h2 {
	color: var(--global-palette1);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.5;
	font-family: IranSans;
}

.rtl .lesson-no {
	font-family: farsiNum;
	margin-left: 5px;

}

.lesson-menu .menu-title,
.activity-menu .menu-title {
	font-family: dastnevis;
	color: #900c3f;
}

.lesson-menu .menu-item,
.activity-menu .menu-item {
	line-height: 2;
	border-bottom: dashed 1px black;
	padding: 10px;
}

.wp-site-blocks .post-thumbnail img {
	-o-object-fit: contain;
	object-fit: contain;
}



.wp-block-kadence-posts.lessons-list.grid-cols {
	row-gap: 1rem;
}

.wp-block-kadence-posts.lessons-list .loop-entry {
	border: solid 1px #ebebeb;
}

.wp-block-kadence-posts.lessons-list .loop-entry .entry-content-wrap {
	padding-bottom: 0.5rem;
}

.box-with-shadow {
	box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
	transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
	margin: 0px 25px 0px 25px;
	--e-column-margin-right: 25px;
	--e-column-margin-left: 25px;
	padding: 22px 22px 22px 22px;
	border-radius: 7px;
}

@media screen and (max-width:768px) {
	.wp-block-kadence-posts.lessons-list .entry-title {
		text-align: center;
	}
}

.activities-accordion {
	background-color: #f4f4f4;
	padding-right: 4%;
	padding-left: 4%;
	padding-top: 10px;
	padding-bottom: 20px;
	margin-bottom: 25px;
}

@media screen and (max-width:1024px) {
	.activities-accordion {
		margin-right: -0.7rem;
		margin-left: -0.7rem;
	}
}

.activities-accordion .kt-blocks-accordion-header {
	border-radius: 5px;
	background-color: #FFF;

}

.rtl .activities-accordion .kt-blocks-accordion-title-wrap,
div[dir="rtl"].activities-accordion .kt-blocks-accordion-title-wrap {
	padding-left: 0;
	width: 100%;
}

div[dir="rtl"].activities-accordion .kt-blocks-accordion-icon-trigger {
	margin-left: 0;
	margin-right: auto;
}

.activities-accordion .kt-blocks-accordion-header:hover {
	background-color: var(--global-palette7, #eeeeee);
}

.activities-accordion .kt-accordion-panel-inner {
	border: 1px solid #BDBFC1;
	border-top-width: 0;
	border-radius: 0 0 5px 5px;
}

.activities-accordion .kt-blocks-accordion-header.kt-accordion-panel-active {
	background-color: #0c4781;
	border-radius: 5px 5px 0 0;
}

.activities-accordion .kt-accordion-pane {
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	border-radius: 5px;
}

.activities-accordion .kt-accordion-panel {
	background-color: white;
	border-radius: 5px;
}

.site-bottom-footer-wrap {
	position: fixed;
	bottom: 0;
	background-color: #0c4781;

}

#colophon .footer-navigation .footer-menu-container>ul>li>a {

	color: #FFF;
}

.footer-navigation .menu {
	width: 100vw;
}

.site-bottom-footer-wrap {
	width: 100%;
}

.site-bottom-footer-inner-wrap {
	padding-top: 5px;
	padding-bottom: 5px;
}

.btn-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding-top: 3px;
	padding-bottom: 3px;
	border-radius: 6px;
	border: none;

	background: linear-gradient(180deg, #4B91F7 0%, #367AF6 100%);
	background-origin: border-box;
	box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
	/*user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;*/
	-webkit-animation: pulsing 2.5s linear infinite;
	animation: pulsing 2.5s linear infinite;
}

.btn-nav.nav-next {
	padding-right: 3px;
	padding-left: 6px;
}

.btn-nav.nav-previous {
	padding-right: 6px;
	padding-left: 3px;
}

.btn-nav a {
	color: #fff;
	text-decoration: none;
	font-weight: 400;
}

@media screen and (max-width:768px) {
	.btn-nav a {
		font-size: 14px;
	}
}

.pc-nav-links:not(:has(.nav-next)) {
	justify-content: flex-end;
}

.btn-nav .dashicons {
	color: #fff;
}

.nav-next .dashicons-arrow-right-alt2 {
	margin-left: 4px;
}

.nav-previous .dashicons-arrow-left-alt2 {
	margin-right: 4px;
}

.btn-nav:focus {
	box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2), 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
	outline: 0;
}

@keyframes pulsing {

	0% {
		box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
	}

	100% {
		box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
	}
}

.menu-item-374 .menu-item-542 {
	display: none;
}

.rtl .number {
	font-family: farsiNum;
}

.button a {
	color: white;
	text-decoration: none;
}

.medium-icon img {
	height: 200px;
	width: auto;
}

.rtl .kt-blocks-accordion-header {
	text-align: right;
}

.h5p-question-next .h5p-tooltip {
	display: none;
}

.kt-blocks-accordion-header:focus {
	color: var(--global-palette5, #555555);
}

.kt-blocks-accordion-header.kt-accordion-panel-active:focus {
	color: white;
}

.wp-block-kadence-pane:target .kt-accordion-panel {
	display: block;
	max-height: fit-content !important;
}

.rtl .content-area {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.act-footer .video_lightbox_anchor_image {
	width: 36px;
}

.act-footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.act-footer .wpulike {
	padding: 0;
}

.video-like.like-button {
	text-align: center;
	padding: 15px;
}

.single-post .wpulike {
	text-align: center;
}

.wp-block-kadence-posts h2 {
	color: #0c4781;
}

.entry-related .entry-meta {
	display: none;
}

.entry-related .entry-title {
	color: #0c4781;
	text-align: center;
}

.act-footer {
	margin-top: 5px;
}


.wp-block-lazyblock-lang-block {
	margin-top: 7px;
	margin-bottom: 7px;
}

.wp-block-kadence-posts.kb-posts-style-boxed .loop-entry {
	box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.22);
}

.wp-block-kadence-posts .post-thumbnail {
	height: auto;
	align-content: center;
}

.wp-block-kadence-posts .loop-entry.pc_course-farsi-alphabet .entry-summary {
	direction: ltr;
}

.lesson-introduction {
	margin-bottom: 20px;
}

.main-video figcaption {
	text-align: center;
	margin-top: 10px;
	font-family: dastnevis;
	font-size: 14pt;
}

.main-video figure {
	margin-bottom: 5px;
}

.video-menu {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width:768px) {

	.rtl .single-content ul,
	.rtl .single-content ol {
		padding-right: 0.5em;
	}
}

.wp-block-kadence-accordion.video-details button.kt-blocks-accordion-header:active,
.wp-block-kadence-accordion.video-details button.kt-blocks-accordion-header:focus {
	background-color: #F7FAFC;
	color: #576173;
}

figcaption {
	text-align: center;
	margin-top: 15px;
}

.single-forum .entry-header.forum-title,
.entry-header.forum-archive-title {
	justify-content: end;
}

/* Force Title to White for High Contrast */
.single-forum .forum-hero-section .entry-title {

	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	/* Adds a subtle shadow for 100% readability */
}

.entry-hero.forum-archive-hero-section h1,
.entry-hero.forum-archive-hero-section .entry-title {
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.forum-archive-hero-section .hero-section-overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);

}

/* =========================================
   PC bbPress Breadcrumbs (Segmented Box Style)
   ========================================= */

/* --- 1. Container & Layout --- */
.pc-bbp-breadcrumbs-wrapper {
	background: transparent;
	border: none;
	padding: 0;
	margin-top: 15px;
	margin-bottom: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	overflow: visible;
	/* Must be visible so arrows can stick out */
}

/* Hide default bbPress slash text */
.pc-bbp-breadcrumbs-wrapper span.bbp-breadcrumb-item {
	font-size: 0;
	display: flex;
}

/* --- 2. Z-Index Stacking (Crucial!) --- */
/* Previous items must sit ON TOP of next items for the arrow to overlay correctly */
.pc-bbp-breadcrumbs-wrapper span:nth-child(1) {
	z-index: 10;
	position: relative;
}

.pc-bbp-breadcrumbs-wrapper span:nth-child(2) {
	z-index: 9;
	position: relative;
}

.pc-bbp-breadcrumbs-wrapper span:nth-child(3) {
	z-index: 8;
	position: relative;
}

.pc-bbp-breadcrumbs-wrapper span:nth-child(4) {
	z-index: 7;
	position: relative;
}

.pc-bbp-breadcrumbs-wrapper span:nth-child(5) {
	z-index: 6;
	position: relative;
}

/* --- 3. Item Styling (The White Box) --- */
.pc-bbp-breadcrumbs-wrapper a {
	font-size: 0.95rem;
	text-decoration: none;
	position: relative;
	float: left;
	height: 44px;
	line-height: 44px;
	padding: 0 10px 0 35px;
	/* Left padding for text */

	background: #ffffff;
	border: 1px solid #cbd5e1;
	/* Gray Border */
	border-right: none;
	/* Open right side for arrow */

	color: #64748b;
	margin-right: -4px;
	/* Negative margin makes them overlap */
	transition: all 0.2s;
}

/* --- 4. The Arrow Geometry (Stacked Triangles) --- */

/* Bottom Triangle (Gray Border) */
.pc-bbp-breadcrumbs-wrapper a::after {
	content: "";
	position: absolute;
	top: 50%;
	margin-top: -23px;
	/* Centering */
	right: -23px;
	/* Pushing out */
	z-index: 2;

	border-top: 23px solid transparent;
	border-bottom: 23px solid transparent;
	border-left: 23px solid #cbd5e1;
	/* The Border Color */
}

/* Top Triangle (White Fill) */
.pc-bbp-breadcrumbs-wrapper a::before {
	content: "";
	position: absolute;
	top: 50%;
	margin-top: -23px;
	right: -21.5px;
	/* Slightly offset to reveal the gray border */
	z-index: 3;

	border-top: 23px solid transparent;
	border-bottom: 23px solid transparent;
	border-left: 23px solid #ffffff;
	/* The Background Color */
}

/* Hover Effects */
.pc-bbp-breadcrumbs-wrapper a:hover {
	background: #f8fafc;
	color: #0f172a;
}

.pc-bbp-breadcrumbs-wrapper a:hover::before {
	border-left-color: #f8fafc;
	/* Update fill on hover */
}

/* --- 5. First Item (Home) Exception --- */
.pc-bbp-breadcrumbs-wrapper span:first-child a {
	padding-left: 15px;
	/* Normal padding */
	border-left: 1px solid #cbd5e1;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

/* --- 6. HIDE CURRENT TITLE (The Strategy Change) --- */
/* Completely hide the last item (the blue box) */
.pc-bbp-breadcrumbs-wrapper .bbp-breadcrumb-current {
	display: none !important;
}

/* Style the "New" Last Item (The link before the hidden title) */
.pc-bbp-breadcrumbs-wrapper span:nth-last-child(2) a {
	padding-right: 15px;
	/* Normal padding */
	border-right: 1px solid #cbd5e1;
	/* Close the box */
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
	margin-right: 0;
}

/* Remove arrows from the new last item */
.pc-bbp-breadcrumbs-wrapper span:nth-last-child(2) a::after,
.pc-bbp-breadcrumbs-wrapper span:nth-last-child(2) a::before {
	display: none;
}

/* =========================================
   End of PC bbPress Breadcrumbs (Segmented Box Style)
   ========================================= */

/* =========================================
   Smart Bi-Directional Text (Mixed Farsi/English)
   ========================================= */

/* 1. تشخیص خودکار جهت برای عنوان تاپیک‌ها */
li.bbp-body .bbp-topic-title .bbp-topic-permalink {
	unicode-bidi: plaintext;
	/* جادوی اصلی: تشخیص جهت بر اساس متن */
	text-align: start;
	/* تراز کردن متن بر اساس جهت تشخیص داده شده */
	display: inline-block;
	/* برای اطمینان از عملکرد صحیح با flex */
	width: 100%;
}


/* 2. تشخیص خودکار برای توضیحات متا (مثل: شروع شده توسط...) */
li.bbp-body .bbp-topic-meta {
	unicode-bidi: plaintext;
	text-align: start;
}

/* 3. تشخیص خودکار برای ستون "آخرین نوشته" */
li.bbp-body .bbp-topic-freshness {
	unicode-bidi: plaintext;
	text-align: start;
}

/* ۴. تشخیص خودکار برای منوها */
li.menu-item {
	unicode-bidi: plaintext;
	text-align: start;
}

/* لینک‌های داخل آخرین نوشته (نام نویسنده و زمان) */
li.bbp-body .bbp-topic-freshness a {
	unicode-bidi: plaintext;
	text-align: start;
	display: inline-block;
}

/* =========================================
   Modern Grid Layout Updates (Updated for mixed content)
   ========================================= */

/* اطمینان از اینکه فلکس‌باکس مانع تغییر جهت نمی‌شود */
li.bbp-body>ul {
	/* تنظیمات قبلی سر جای خود بماند */
	display: flex;
	align-items: center;
	flex-direction: column;
}

.bbp-replies-list li {
	width: 100%;
}

/* ستون عنوان: اجازه می‌دهیم متن جهت خودش را انتخاب کند */
li.bbp-body .bbp-topic-title {
	flex-grow: 1;
	text-align: start;
	padding-right: 10px;
	/* جهت پیش‌فرض بر اساس زبان سایت */
}

li.bbp-topic-freshness {
	text-align: left;
}

/*end of direction=====

/*persian coral added*/
.post-type-archive-forum .content-area {
	margin-top: 0;
}

/* =========================================
   FIXED: Modern Login Form (Card Style)
   ========================================= */

/* 1. کانتینر اصلی کارت */
.bbp-login-form {
	max-width: 400px !important;
	margin: 40px auto !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
	padding: 40px 30px !important;
	position: relative !important;
}

/* 2. فیلدست (پاکسازی کادرهای اضافی) */
.bbp-login-form fieldset {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
}

/* 3. عنوان "Log In" (رفع مشکل مخفی شدن) */
.bbp-login-form legend {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin-bottom: 25px !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	text-align: center !important;
	border: none !important;
	float: none !important;
	/* جلوگیری از شناور بودن */
	position: static !important;
}

/* 4. لیبل‌ها و اینپوت‌ها */
.bbp-login-form label {
	display: block !important;
	margin-bottom: 8px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	font-size: 0.95rem !important;
	cursor: pointer !important;
}

.bbp-login-form .bbp-username,
.bbp-login-form .bbp-password {
	margin-bottom: 20px !important;
}

.bbp-login-form input[type="text"],
.bbp-login-form input[type="password"] {
	display: block !important;
	width: 100% !important;
	padding: 12px 15px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background: #f8fafc !important;
	color: #333 !important;
	box-sizing: border-box !important;
	/* جلوگیری از بیرون زدگی */
	height: auto !important;
	box-shadow: none !important;
}

/* فوکوس */
.bbp-login-form input[type="text"]:focus,
.bbp-login-form input[type="password"]:focus {
	background: #ffffff !important;
	border-color: #0693E3 !important;
	box-shadow: 0 0 0 4px rgba(6, 147, 227, 0.1) !important;
	outline: none !important;
}

/* 5. رفع مشکل دکمه (حذف خطوط اطراف) */
.bbp-login-form .bbp-submit-wrapper {
	margin-top: 25px !important;
	text-align: center !important;
	float: none !important;
	display: block !important;
	width: 100% !important;
	border: none !important;
	/* حذف خطوط قالب */
	padding: 0 !important;
	position: static !important;
}

/* مخفی کردن خطوط تزئینی قالب (Before/After) */
.bbp-login-form .bbp-submit-wrapper::before,
.bbp-login-form .bbp-submit-wrapper::after {
	display: none !important;
	content: none !important;
}

/* استایل دکمه */
.bbp-login-form button.user-submit {
	display: block !important;
	width: 100% !important;
	background-color: #0693E3 !important;
	color: #ffffff !important;
	border: none !important;
	padding: 12px 0 !important;
	/* پدینگ عمودی */
	border-radius: 8px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	text-transform: none !important;
	white-space: nowrap !important;
	/* جلوگیری از شکستن متن */
	box-shadow: 0 4px 10px rgba(6, 147, 227, 0.3) !important;
	margin: 0 !important;
	opacity: 1 !important;
}

.bbp-login-form button.user-submit:hover {
	background-color: #0470ad !important;
	transform: translateY(-2px) !important;
}

/* 6. چک باکس مرا به خاطر بسپار */
.bbp-login-form .bbp-remember-me {
	margin-top: 10px !important;
	margin-bottom: 20px !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.bbp-login-form .bbp-remember-me input {
	width: auto !important;
	/* چک باکس نباید 100% باشد */
	margin: 0 !important;
}

.bbp-login-form .bbp-remember-me label {
	margin: 0 !important;
	font-weight: 400 !important;
}

.footer-html-inner p {
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
}

.footer-html-inner p.small-text {
	font-size: 0.8rem;
}

/* تبدیل Wrapper داخلی قالب به فلکس‌باکس برای چینش افقی */
li.pc-profile-link a .nav-drop-title-wrap {
	display: flex !important;
	align-items: center !important;
	flex-direction: row !important;
	gap: 8px !important;
}

/* تنظیمات آواتار */
li.pc-profile-link a img.pc-menu-avatar {
	margin: 0 !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	/* دایره کامل */
	object-fit: cover !important;
	box-shadow: none !important;
	border: none !important;
}

/* تنظیمات متن نام کاربری */
li.pc-profile-link a span.pc-menu-name {
	margin: 0 !important;
	line-height: 1 !important;
	display: inline-block !important;
}

/* اصلاح حاشیه آیکون دراپ‌داون قالب (در صورت نیاز) */
li.pc-profile-link a span.dropdown-nav-toggle {
	margin-left: 4px !important;
}



/* استایل هر کارت */
.pc-forum-card {
	background: #fff !important;
	border: 1px solid #eef2f7 !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
	margin: 0 !important;
}

/* آزاد سازی فرزندان مستقیم برای چیدمان گرید */
#bbpress-forums li.bbp-body {
	display: contents !important;
}

/* تبدیل لیست به گرید چند ستونه */
#bbpress-forums ul.bbp-forums {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
	gap: 25px;
	list-style: none;
	padding: 0;
	justify-content: center;
}

/* استایل کارت */

#bbpress-forums li.bbp-body ul.forum.pc-forum-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 0;
}

.pc-card-header {
	height: 160px;
	background: #f8fafc;
	overflow: hidden;
}

.pc-forum-banner {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.3s;
}

.pc-forum-card:hover .pc-forum-banner {
	transform: scale(1.05);
}

.bbp-forum-info {
	padding: 15px !important;
	flex-grow: 1;
	border: none !important;
	width: 100% !important;
}

.bbp-forum-title {
	font-size: 1.15rem !important;
	font-weight: bold !important;
	margin-bottom: 8px !important;
	display: block;
}

.pc-forum-stats-row {
	display: flex;
	border-top: 1px solid #f1f5f9;
	background: #f8fafc;
	padding: 10px !important;
}

.pc-stat-item {
	flex: 1;
	text-align: center;
}

.pc-stat-v {
	display: block;
	font-weight: bold;
	font-size: 1rem;
}

.pc-stat-l {
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
}

.bbp-forum-freshness {
	padding: 10px 15px !important;
	background: #fff;

	width: 100% !important;
}



.bbp-topic-meta {
	margin: 0 !important;
}



/* ۲. اصلاح ظرف داخلی که در اینسپکتور دیدیم */
#bbpress-forums li.bbp-body {
	display: contents;
	/* این تگ فقط نقش ظرف دارد و نباید چیدمان را خراب کند */
}

/* ۳. استایل کارت‌ها */
#bbpress-forums .pc-forum-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ۴. افقی کردن آمار (رفع مشکل عمودی شدن اعداد) */
#bbpress-forums .pc-forum-stats-row {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	padding: 15px 0;
	background-color: #f8fafc;
	border-top: 1px solid #edf2f7;
}

/* ۵. خنثی کردن استایل‌های پیش‌فرض بیبی‌پرس بدون !important */
#bbpress-forums .pc-forum-card li {
	float: none;
	/*width: auto;*/
	padding: 0;
	margin: 0;
	list-style: none;
	text-align: center;
}

/* ۶. اصلاح بخش Freshness */


.pc-forum-card .pc-forum-stats-row {
	width: 100%;
}

#bbpress-forums .pc-freshness-wrapper {
	display: flex;
	justify-content: center;
	/* مرکزچین کردن محتوا */
	align-items: center;
	padding: 15px;
	background: #fdfdfd;
	text-align: center;
}

#bbpress-forums .pc-last-post-content {
	display: flex;
	flex-direction: column;
	width: 100%;
}

#bbpress-forums .pc-last-topic-title a {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #2d3748;
	text-decoration: none;
	display: block;
	/* جلوگیری از به هم ریختن کارت در صورت طولانی بودن عنوان */
	white-space: wrap;
	text-align: start;
}

#bbpress-forums .pc-freshness-time {
	font-size: 12px;
	color: #a0aec0;
	margin-top: 4px;
}

#bbpress-forums .pc-no-activity {
	font-size: 13px;
	color: #cbd5e0;
}

/* حذف نهایی هرگونه متادیتا یا المان اضافه از بیبی‌پرس */
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .pc-freshness-author {
	display: none !important;
}

/* حذف استایل‌های پیش‌فرض و ایجاد خط جداکننده */
#bbpress-forums ul.pc-wpforo-topic {
	border: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
	padding: 15px 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

/* کانتینر اصلی: چیدمان فلکس برای چپ و راست */
.pc-topic-content-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

/* بخش سمت چپ */
.pc-topic-main {
	flex: 1;
	padding-right: 20px;
	text-align: left;
}

/* ردیف عنوان و آیکون */
.pc-topic-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.pc-topic-icon {
	color: #64748b;
	font-size: 20px;
}

.pc-topic-title-row .bbp-topic-permalink {
	font-size: 1.15rem;
	font-weight: 600;
	color: #0c4781;
	/* رنگ آبی مشابه قالب شما */
	text-decoration: none;
}

/* ردیف متادیتا (اطلاعات زیر عنوان) */
.pc-topic-meta-row {
	font-size: 0.85rem;
	color: #f97316;
	/* رنگ نارنجی مشابه عکس wpForo */
	display: flex;
	align-items: center;
	gap: 8px;
}

.pc-meta-toggle {
	display: flex;
	align-items: center;
}

.pc-meta-divider {
	color: #cbd5e1;
}

.pc-meta-last-post {
	color: #0c4781;
	display: flex;
	align-items: center;
}

.pc-meta-last-post a {
	color: #0c4781;
	font-weight: normal;
	margin: 0 4px;
	text-decoration: none;
}

/* بخش سمت راست (آمار) */
.pc-topic-stats {
	display: flex;
	gap: 40px;
	min-width: 120px;
	justify-content: flex-end;
}

.pc-stat-box {
	text-align: center;
	width: 40px;
}

.pc-stat-num {
	font-size: 1.1rem;
	color: #64748b;
	font-weight: 400;
}

/* مخفی کردن آواتارهای پیش‌فرض bbPress در این بخش */
.pc-topic-meta-row img.avatar {
	display: none !important;
}

/* پشتیبانی از حالت موبایل */
@media screen and (max-width: 768px) {
	.pc-topic-content-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.pc-topic-stats {
		justify-content: flex-start;
		gap: 20px;
	}
}

/* =========================================
   استایل هدر لیست تاپیک‌ها 
   ========================================= */

/* تنظیم کانتینر اصلی هدر با بالا بردن وزن انتخاب‌گر */
#bbpress-forums ul.pc-topics-list li.bbp-header.pc-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 3px solid #3b82f6;
	padding: 10px 0 15px 0;
	background: transparent;
	width: 100%;
	margin-bottom: 10px;
}

/* بخش سمت چپ (عنوان تاپیک) */
#bbpress-forums ul.pc-topics-list li.pc-header-row .pc-header-left {
	flex: 1;
	text-align: left;
	font-weight: 600;
	color: #64748b;
	font-size: 0.9rem;
}

/* بخش سمت راست (آمار) */
#bbpress-forums ul.pc-topics-list li.pc-header-row .pc-header-right {
	display: flex;
	gap: 40px;
	min-width: 120px;
	justify-content: flex-end;
	font-weight: 600;
	color: #64748b;
	font-size: 0.9rem;
}

/* عرض ثابت برای اعداد آمار تا با ستون‌های پایین تراز شوند */
#bbpress-forums ul.pc-topics-list li.pc-header-row .pc-head-posts,
#bbpress-forums ul.pc-topics-list li.pc-header-row .pc-head-views {
	width: 48px;
	text-align: center;
}

.single-entry.forum {
	margin-right: 25px;
	margin-left: 25px;
}

#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
	text-align: start;
}

#bbpress-forums ul.bbp-forums>li.bbp-header {
	display: none;
}

/* =========================================
   استایل باکس خاکستری و پیش‌نمایش پیام‌ها
   ========================================= */

/* کانتینر باکس خاکستری */
.pc-previews-container {
	background-color: #f8fafc;
	border-left: 3px solid #cbd5e1;
	margin: 15px 20px 5px 35px;
	/* ایجاد تورفتگی برای قرارگیری زیر عنوان */
	padding: 12px 15px;
	border-radius: 4px;
	display: block;
	width: 100%;
}

/* قرار دادن آیکون، متن و تاریخ در یک خط (افقی) */
.pc-previews-container .pc-preview-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 8px;
	font-size: 13px;
	/* ریزتر شدن فونت */
}

.pc-previews-container .pc-preview-row:last-child {
	margin-bottom: 0;
}

/* آیکون‌ها */
.pc-preview-row .pc-pre-icon {
	font-size: 15px;
	color: #94a3b8;
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

/* متن خلاصه (جلوگیری از دو خط شدن) */
.pc-preview-row .pc-pre-text {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #64748b;
	unicode-bidi: plaintext
}

/* اطلاعات متا (نویسنده و تاریخ) */
.pc-preview-row .pc-pre-meta {
	margin-left: 15px;
	white-space: nowrap;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	color: #94a3b8;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
	border-top: none;
}

.pc-preview-row .pc-pre-meta a {
	color: #3b82f6;
}

.single-topic #bbpress-forums li.bbp-header {
	display: none;
}

/* =========================================
   عملکرد باز و بسته شدن پیش‌نمایش‌ها (نسخه نهایی)
   ========================================= */

/* تبدیل نشانگر موس به دست */
body #bbpress-forums .pc-meta-toggle {
	cursor: pointer;
	user-select: none;
}

/* کلاسی که جاوااسکریپت برای مخفی کردن استفاده می‌کند */
body #bbpress-forums .pc-previews-container.pc-collapsed {
	display: none !important;
}

/* =========================================
   استایل زیرانجمن‌ها (نسخه تمیز و استاندارد)
   ========================================= */

/* کانتینر اصلی لیست */
#bbpress-forums .bbp-forums-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 15px 0 5px 0;
	padding: 0;
	list-style: none;
}

/* آیتم‌های لیست */
#bbpress-forums .bbp-forums-list li {
	margin: 0;
	padding: 0;
	display: inline-flex;
}

/* مخفی کردن ویرگول‌های پیش‌فرض بیبی‌پرس */
#bbpress-forums .bbp-forums-list li::after,
#bbpress-forums .bbp-forums-list li::before {
	display: none;
}

/* استایل خود دکمه‌ها (تگ‌ها) */
#bbpress-forums .bbp-forums-list li a {
	background-color: #f8fafc;
	color: #475569;
	font-size: 0.85rem;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
	display: inline-block;
	white-space: nowrap;
}

/* افکت هنگام رفتن موس روی تگ‌ها */
#bbpress-forums .bbp-forums-list li a:hover {
	background-color: #e2e8f0;
	color: #0f172a;
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

/* =========================================
   استایل اعداد و کلمات ریز در زیرانجمن‌ها
   ========================================= */

/* استایل کل بخش اعداد داخل پرانتز */
#bbpress-forums .bbp-forums-list .pc-sub-count {
	margin-left: 4px;
	color: #64748b;
	/* رنگ کمی مات‌تر از نام اصلی */
}

/* استایل کلمات topics و posts */
#bbpress-forums .bbp-forums-list .pc-tiny-text {
	font-size: 0.7rem;
	color: #94a3b8;
	/* طوسی روشن و ملایم */
	font-weight: normal;
	margin: 0 0 0 2px;
}

/* =========================================
   استایل بخش ورود با گوگل (مخصوص Site Kit)
   ========================================= */

/* کانتینر اصلی */
.pc-social-login-wrapper {
	margin-top: 25px;
	width: 100%;
}

/* استایل خط جداکننده و کلمه OR */
.pc-login-divider {
	display: flex !important;
	align-items: center;
	text-align: center;
	margin-bottom: 20px;
	color: #94a3b8;
	font-size: 0.9rem;
}

.pc-login-divider::before,
.pc-login-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e2e8f0;
}

.pc-login-divider span {
	padding: 0 15px;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 1px;
}

/* تنظیم دکمه Site Kit در مرکز فرم */
.pc-google-btn-container {
	display: flex !important;
	justify-content: center;
	width: 100%;
}

/* خنثی کردن فاصله‌های مزاحم دکمه */
.pc-google-btn-container>div {
	margin: 0 !important;
}

.pc-google-btn-container iframe {
	margin: 0 !important;
}

.bbpress-admin-settings-container {
	color: var(--global-palette6);
}

.bbpress-admin-settings-container .bbp-admin-links {
	opacity: 1;
}

body:not(.logged-in) .bbpress-admin-settings-container {
	display: none;
}

/* =========================================
   خنثی کردن کدهای مزاحم موبایل بیبی‌پرس (جلوگیری از شکستن کپسول‌ها)
   ========================================= */
@media screen and (max-width: 480px) {

	/* برگرداندن li و spanها به حالت خطی (inline) */
	#bbpress-forums .bbp-forums-list .bbp-forum,
	#bbpress-forums .bbp-forums-list .bbp-forum span {
		display: inline-block;
	}
}

/* =========================================
   📱 استایل‌های اختصاصی موبایل (هماهنگ با سورس سایت)
   ========================================= */
@media screen and (max-width: 768px) {

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		line-height: 1.2;
	}



	/* --- ۱. اصلاح Breadcrumbs (مسیر سایت) --- */
	/* یک‌خطی کردن مسیر و اضافه کردن اسکرول لمسی (کشیدن با انگشت) */
	.pc-bbp-breadcrumbs-wrapper {
		font-size: 11px !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		padding-bottom: 5px;
		margin-bottom: 15px !important;
		-webkit-overflow-scrolling: touch;
		/* نرم شدن اسکرول در آیفون */
	}

	.pc-bbp-breadcrumbs-wrapper .bbp-breadcrumb-item {
		white-space: nowrap !important;
		flex-shrink: 0 !important;
		/* جلوگیری از فشرده شدن کلمات */
	}

	/* --- ۲. کاهش ارتفاع عکس بالای انجمن --- */

	.entry-hero.forum-hero-section .entry-header {
		min-height: 200px;
	}

	.entry-hero.forum-archive-hero-section .entry-header {
		min-height: 200px;
	}

	.page-title-wrap .entry-hero {
		min-height: 150px;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	#bbpress-forums,
	#bbpress-forums ul.bbp-forums,
	#bbpress-forums ul.bbp-lead-topic,
	#bbpress-forums ul.bbp-replies,
	#bbpress-forums ul.bbp-search-results,
	#bbpress-forums ul.bbp-topics {
		line-height: 1.2;
	}

	/* --- ۳. اصلاح چیدمان تاپیک‌ها و هدر --- */
	body #bbpress-forums ul.pc-topics-list li.pc-header-row .pc-header-right {
		display: none;
	}

	/* تغییر چیدمان اصلی از حالت افقی به ستونی (زیر هم) */
	body #bbpress-forums ul.pc-topic-item div.pc-topic-content-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	/* تمام‌عرض کردن بخش عنوان و متا */
	body #bbpress-forums ul.pc-topic-item div.pc-topic-main {
		padding-right: 0;
		width: 100%;
	}

	/* جلوگیری از شکستن اسم‌ها با اجازه دادن به رفتن به خط دوم */
	body #bbpress-forums ul.pc-topic-item div.pc-topic-meta-row {
		flex-wrap: wrap !important;
		line-height: 2 !important;
		row-gap: 8px;
	}

	/* --- ۴. مرتب‌سازی آمار (پست‌ها و بازدیدها) در موبایل --- */
	/* انتقال به زیر متن‌ها با یک خط چین جداکننده ظریف */
	body #bbpress-forums ul.pc-topic-item div.pc-topic-stats {
		justify-content: flex-start !important;
		width: 100%;
		gap: 20px !important;
		padding-top: 12px;
		border-top: 1px dashed #e2e8f0;
	}

	/* مرتب کردن باکس‌های عدد */
	body #bbpress-forums ul.pc-topic-item div.pc-stat-box {
		width: auto !important;
		display: flex;
		align-items: center;
		gap: 5px;
		font-size: 0.95rem;
	}

	/* اضافه کردن نوشته‌های Posts و Views کنار اعداد */
	body #bbpress-forums ul.pc-topic-item div.pc-stat-box:nth-child(1)::before {
		content: "Posts:";
		color: #94a3b8;
		font-size: 0.85rem;
	}

	body #bbpress-forums ul.pc-topic-item div.pc-stat-box:nth-child(2)::before {
		content: "Views:";
		color: #94a3b8;
		font-size: 0.85rem;
	}

	/* --- ۵. اصلاح ظاهر پیش‌نمایش در موبایل --- */
	body #bbpress-forums ul.pc-topic-item div.pc-previews-container {
		margin: 10px 0 5px 0 !important;
	}

	body #bbpress-forums ul.pc-topic-item div.pc-preview-row {
		flex-wrap: wrap;
	}

	body #bbpress-forums ul.pc-topic-item div.pc-preview-row div.pc-pre-meta {

		margin-left: 23px !important;
		margin-top: 4px;
		width: 100%;
	}

	#bbpress-forums ul.pc-topics-list li.bbp-header.pc-header-row {
		display: none;
	}

	/* --- ۶. استایل‌های داخل پست (رفع مشکل فضای خالی با Grid پیشرفته) --- */
	.bbp-template-notice.info {
		margin-bottom: 10px;
	}

	.page-title {
		font-size: 1.3rem;

		margin-bottom: 15px;
	}

	/* ساختار گرید برای کل پست */
	#bbpress-forums .bbp-replies-list>li>div[id^="post-"] {
		display: grid;
		grid-template-columns: 45px 1fr;
		/* ستون اول اندازه عکس، ستون دوم بقیه فضا */
		column-gap: 12px;
		row-gap: 5px;
		/* فاصله بین هدر و متن پست */
		padding: 15px 0;
		border-top: 1px solid #e2e8f0;
	}

	/* ستون اول: فقط عکس آواتار */
	#bbpress-forums .bbp-body div.bbp-reply-author,
	#bbpress-forums .bbp-body div.bbp-topic-author {

		grid-column: 1 / 2;
		width: 45px;
		margin: 0;
		padding: 0;
		min-height: 60px;
		border-bottom: 1px dashed #e2e8f0;
	}

	#bbpress-forums div.bbp-reply-author img.avatar,
	#bbpress-forums div.bbp-topic-author img.avatar {
		width: 45px;
		height: 45px;
		border-radius: 50%;
		margin: 0;
	}



	/* باز کردن جعبه محتوا تا متن‌ها بتوانند تمام‌عرض شوند */
	#bbpress-forums .bbp-reply-content {
		display: contents;
	}

	/* ستون دوم: هدر (نام و تاریخ) که روبروی آواتار قرار می‌گیرد */
	#bbpress-forums .bbp-reply-content>.bbp-head-area {
		grid-column: 2 / 3;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		padding-bottom: 8px;
		border-bottom: 1px dashed #e2e8f0;

	}

	/* تمام‌عرض شدن متن پیام (می‌آید زیر عکس آواتار و هدر) */
	#bbpress-forums .bbp-reply-content>* {
		grid-column: 1 / -1;
		/* این خط، متن را از لبه راست تا لبه چپ می‌کشد! */
		font-size: 0.95rem;
		line-height: 1.7;

	}


}

#bbpress-forums div.bbp-reply-content h2 {
	line-height: 1.6;
}


.pc-bbp-share-btn svg {
	margin-left: 6px;
}

/* ظرف دکمه‌ها برای تراز بندی */
.pc-topic-share-top,
.pc-reply-share-bottom {
	margin: 15px 0;
	display: flex;
}

.pc-topic-share-top {
	justify-content: flex-end;
}

/* تاپیک سمت چپ/راست */
.pc-reply-share-bottom {
	border-top: 1px solid #f0f0f0;
	padding-top: 15px;
}

/* استایل جدید دکمه */
#bbpress-forums a.pc-bbp-share-btn,
#bbpress-forums .bbp-reply-content a.pc-bbp-share-btn {
	display: inline-flex;
	align-items: center;
	background-color: #ffffff;
	/* پس‌زمینه روشن */
	color: #2271b1;
	/* رنگ آبی لینک وردپرس یا رنگ سازمانی شما */
	border: 2px solid #2271b1;
	/* حاشیه ضخیم‌تر و رنگی */
	padding: 7px 15px 7px 4px;
	;
	border-radius: 50px;
	/* حالت کپسولی کامل */
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	/* سایه بسیار ملایم */
}

/* حالت هاور (وقتی موس روی آن می‌رود یا لمس می‌شود) */
#bbpress-forums a.pc-bbp-share-btn:hover {
	background-color: #2271b1 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 8px rgba(34, 113, 177, 0.2);
	transform: translateY(-1px);
}

.pc-bbp-share-btn svg {
	margin-right: 8px;
	stroke: currentColor;
	/* هماهنگی رنگ آیکون با متن */
}

/* تنظیم ظرف دکمه‌ها برای تراز مرکزی در موبایل */
@media screen and (max-width: 480px) {

	.pc-topic-share-top,
	#bbpress-forums .bbp-reply-content a.pc-reply-share-bottom {
		justify-content: center;
		/* تراز عمودی در مرکز */
		display: flex;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	#bbpress-forums .bbp-reply-content a.pc-bbp-share-btn {
		width: auto;
		/* جلوگیری از تمام‌عرض شدن */
		justify-content: center;

		font-size: 13px;
	}

	#bbpress-forums .bbp-reply-content .pc-reply-share-bottom {
		border-top: 1px solid #eee;
		padding-top: 20px;
		margin-top: 20px;
	}
}

.pc-bbp-login-gateway {
	border: 2px dashed #d1d5db;
	padding: 30px;
	text-align: center;
	border-radius: 12px;
	background-color: #f3f4f6;
	margin: 20px 0;
}

.single-content .pc-login-message {
	font-size: 1.1em;
	font-weight: 600;
	color: #374151;
	margin-bottom: 20px;
}

.pc-login-button {
	background-color: #2563eb !important;
	color: #ffffff !important;
	padding: 12px 24px !important;
	font-weight: bold;
	border-radius: 6px;
	transition: background 0.3s ease;
}

.pc-login-button:hover {
	background-color: #1d4ed8 !important;
}

.single-content .pc-register-text {
	margin-top: 15px;
	font-size: 0.9em;
	color: #6b7280;
}

.single-entry.page {
	padding-right: 2%;
	padding-left: 2%;
}

.category-lesson-list .entry-title {
	text-align: center;
}

.wp-block-rank-math-toc-block a {
	text-decoration: none;
}

/*Styles for TOC
/* 1. The Main Container Box */
.category-course details.wp-block-details {
	margin: 2rem 0;
	border: 1px solid #e2e8f0;
	/* Soft gray border */
	border-radius: 12px;
	/* Modern rounded corners */
	background-color: #fcfdfd;
	/* Extremely light blue/grey tint */
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 2. Hover Effect for UX */
.category-course details.wp-block-details:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 3. The Clickable Header (Summary) */
.category-course details.wp-block-details summary {
	padding: 16px 20px;
	font-weight: 600;
	font-size: 1.1rem;
	color: #334155;
	cursor: pointer;
	list-style: none;
	/* Removes default arrow */
	display: flex;
	justify-content: start;
	/* Keeps English left and Persian right */
	align-items: center;

}

/* Webkit fix for removing the default arrow */
.category-course details.wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* 4. Adding a Custom Icon (Optional but recommended for UX) */
.category-course details.wp-block-details summary::before {
	content: "+";
	/* Simple indicator */
	font-size: 1.4rem;
	color: #94a3b8;
	transition: transform 0.3s ease;
	margin-right: 5px;
}

/* Rotate icon when open */
.category-course details[open].wp-block-details summary::before {
	content: "−";
	transform: rotate(180deg);
	margin-right: 5px;
}

/* 5. The Content Inside (Table of Contents) */
.category-course details.wp-block-details .wp-block-rank-math-toc-block {
	padding-bottom: 20px;
	padding-left: 20px;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
}

/*course page banner style*/
.category-course #course-banner {
	margin-bottom: 15px;
}

/* Container setup to allow overlapping */
.category-course #course-banner .kt-inside-inner-col {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	/* Pushes title to the bottom */
}

/* Force image to be edge-to-edge and control height */
.category-course .course-banner img {
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(-50vw + 50%);
	/* Centers the ultra-wide image */
	height: 350px;
	/* Adjust this to control "not too tall" */
	object-fit: cover;
	/* Prevents stretching */
	display: block;
}

/* The Overlay */
.category-course .course-banner {
	position: relative;
	margin-bottom: 0;
}

.category-course .course-banner::after {
	content: "";
	position: absolute;
	top: 0;
	left: calc(-50vw + 50%);
	width: 100vw;
	height: 100%;
	/* Gradient: Transparent at top (0) to 30% black at bottom (0.3) */
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
	pointer-events: none;
	/* Ensures the overlay doesn't block clicks on the image/links */

}

/* Positioning the Title */
.category-course .wp-block-post-title {
	position: absolute;
	bottom: 5px;
	/* Distance from bottom */
	z-index: 10;
	color: #ffffff;
	/* Make text white to pop against overlay */
	margin: 0;
	width: 100%;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	.category-course .course-banner img {
		height: 250px;
		/* Shorter on mobile */
	}

	.category-course .wp-block-post-title {
		font-size: 1.5rem;
		/* Slightly smaller text for small screens */
		bottom: 20px;
	}

	.category-course .entry-content-wrap {
		padding-top: 2px;
	}
}

@media (max-width: 1024px) {
	.entry-content-wrap {
		padding-top: 0;
	}

	.content-area {
		margin-top: 0;

	}
}