@charset "UTF-8";
/* CSS Document - v4.1.1 */

/* ========================================================== */
/* تعریف فونت های جدید بر اساس درخواست شما          */
/* ========================================================== */

/* 1. فونت متن‌های عادی (IRANSansXBlack-1) */
@font-face {
	font-family: 'IranSansX-Normal';
	font-style: normal;
	font-weight: normal;
	src: url('https://bayanbox.ir/download/1895615755585048148/IRANSansXBlack-1.ttf');
	src: url('https://bayanbox.ir/download/1895615755585048148/IRANSansXBlack-1.ttf') format('truetype');
}

/* 2. فونت تیتر خبرها (IRANSansXBlack) */
@font-face {
	font-family: 'IranSansX-Bold';
	font-style: normal;
	font-weight: bold;
	src: url('https://bayanbox.ir/download/1097908582627673093/IRANSansXBlack.ttf');
	src: url('https://bayanbox.ir/download/1097908582627673093/IRANSansXBlack.ttf') format('truetype');
}

/* ========================================================== */
/* اعمال فونت‌های جدید و استایل‌های اصلی          */
/* ========================================================== */

h1,h2,h3,h4,h5,h6{
	font-family: 'IranSansX-Bold', 'Ray', 'Tahoma', sans-serif; /* فونت تیترها */
	cursor: default;
}
body{
	font-family: "IranSansX-Normal", "Ray" !important; /* فونت متن عادی */
	direction: rtl;
	padding-top: 8.2rem;
	line-height: 1.5em;
}

a{
	transition: 0.2s;
}

a h1,a h2,a h3,a h4,a h5,a h6{
	cursor: pointer;
	color: #2A303B;
	transition: 0.2s;
}

a:hover h1, a:hover h2, a:hover h3, a:hover h4, a:hover h5, a:hover h6{
	color: #e82020;
}

.btn-ripple i{
	padding: 10px;
	background: transparent;
	transition: 0.2s;
	border-radius: 50px;
}
.btn-ripple:hover i{
	background: #F1F3F6;
}

.navbar{
	padding: 1.2rem 0;
	background: rgba(255, 255, 255, 0.8) !important;
	border-bottom:1px solid #E4E7ED;
	backdrop-filter: brightness(100%) saturate(150%) blur(15px) !important;
}
.navbar .container{
	position: relative;
}

@supports not (backdrop-filter: none) {
	.navbar {
		background: rgba(255, 255, 255, 0.98) !important;
	}
}

.navbar-brand{
	margin-right: 0;
}

.navbar-nav .nav-link{
	font-size: 88%;
}

.navbar-light .navbar-nav .nav-link {
	color: #434B59;
}

.navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.selected {
	color: #e82020;
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
	color: #e82020;
}

.nav-link{
	font-weight: N;
}

.menu-items{
	padding: 19.69px 0;
}

.btn-sm, .btn-group-sm > .btn{
	padding: 0.25rem 1rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	width: max-content;
}

/* استایل‌های قبلی برای خلاصه مطلب (فعلاً دست نخورده باقی می‌ماند تا توسط استایل‌های نهایی بازنویسی شود) */
.post-list .card-body p {
	position: relative;
	font-size: 14px;
	color: #2A303B;
	
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	
	-webkit-line-clamp: 4 !important;
}

.post-featured .card-body p {
	position: relative;
	font-size: 14px;
	color: #2A303B;
	
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	
	-webkit-line-clamp: 3 !important;
}

body.dark .post-featured .card-body p, body.dark .post-list .card-body p{
	color: #cbcdd3;
}


.card {
	background: transparent;
}

.card-body .small{
	font-size: 13px;
}

.card-text{
	position: relative;
	font-size: 14px;
	color: #2A303B;
}

.post-details .text-success{
	color: #21BF73 !important;
}

.post-details .text-danger{
	olor: #e82020 !important;
}

.post-details .text-secondary{
	color: #778191 !important;
}

.bi.post-details{
	line-height: 19px;
}

.post-list div:last-child hr{
	display: none;
}

.blog-image img{
	width:100%;
	height:auto;
	border-radius:10px;
}

.followBx {
	margin-bottom:20px;
	background: none;
	border-radius: 10px;
	padding: 10px 4px 4px;
	font-family: 'IRANSansX2','tahoma','arial','sans-serif;';
}
.followersTitle {
	padding: 0 4px;
	margin-bottom: 7px;
	font-size: 1rem;
	cursor: default;
}
.followersCount {
	color: #778191;
}

.followThis {
	display: block;
	padding: 6px 16px;
	margin: 2px;
	background: #78e820;
	color: #fff !important;
	border-radius: 0.25rem;
	text-align: center;
	font-family: 'IRANSansX2','tahoma','arial','sans-serif;';
}

.followThis.followed {
	background-color: transparent;
	border: 2px solid #e82020;
	color: #e82020 !important ;
	font-family: 'IranSansX-Normal', 'Ray', 'Tahoma', sans-serif; /* تغییر داده شد */
	border-radius: 0.25rem;
}
#followInBx {
	margin: 0 auto;
	max-width: 100% !important;
}


.social-box i{
	font-size: 26px;
}
.social-box i:hover{
	color: #e82020;
	cursor: pointer;
}
.social-box ul{
	cursor: default;
}
.social-box li{
	cursor: default;
	padding-right: 6px;
}
.social-box h6{
	line-height: 1.4em;
}

.tag-box li{
	direction: rtl;
	display: inline-block;
	margin: 1px 1px 30px;
	padding-bottom: 6px;
}
.tag-box a{
	text-decoration: none;
	background: #F1F3F6;
	border-radius: 5px;
	padding: 3px 5px;
	font-size: 13px;
	color: #778191;
	border: 2px solid transparent;
	transition: 0.2s;
}
.tag-box a:hover{
	background: #F1F3F6;
	color: #e82020;
	border-color: rgba(47,142,237,0.4);
}
.tag-box li.selected a {
	background: #F1F3F6;
	color: #e82020;
	border-color: rgba(47,142,237,0.4);
}
.tag-box ul{
	cursor: default;
	text-align: right;
}

.messages{
	margin-bottom: 30px;
	border-right: 6px solid #e82020;
	padding: 10px 10px 1px;
}
.messages-content h2{
	font-size: 1.25rem;
	
}

.post-item-box li a{
	display: block;
	color: #2A303B;
	font-size: 14px;
	padding: 6px 10px;
	text-decoration: none;
	border-bottom: 1px solid #F5F7FA;
	transition: 0.2s;
}
.post-item-box li a:hover{
	color: #e82020;
	background: #F5F7FA;
}
.post-item-box li.active a{
	color: #e82020;
	background: #F5F7FA;
}

.post-item-box li:last-child a{
	border: none;
}

.category-box{
	cursor: default;
}

.category-box h3{
	display: inline-block;
	color: #2A303B;
	font-size: 14px;
	text-decoration: none;
}

.category-box a{
	text-decoration: none;
}

.category-box .post-list-count{
	font-size: 13px;
}

.category-box ul{
	margin-right: 0;
	padding-right: 0;
}
.category-box ul li{
	position: relative;
	list-style: none;
	margin-right: 12px;
}
.category-box ul li ul li{
	margin-right: 20px;
}
.category-box ul li.active a h3{
	color: #e82020;
}
.category-box ul li ul li.active a h3{
	color: #e82020;
}
.category-box ul li:before{
	display: block;
	content: '';
	position: absolute;
	width: 7px;
	height: 7px;
	background: #e82020;
	top: 8px;
	right: -12px;
	border-radius: 1px;
}
.category-box ul li ul li:before{
	width: 8px;
	height: 12px;
	border: 2px solid #e82020;
	border-top: none;
	border-left: none;
	background: transparent;
	top: 3px;
	right: -12px;
}
.category-box ul li ul li ul li:before{
	border: 2px solid #e82020;
	border-top: none;
	border-left: none;
}

.category-box ul li.active:before{
	background: #e82020;
}
.category-box ul li ul li.active:before{
	background: transparent;
	border-color:#e82020;
}
.category-box ul li ul li ul li.active:before{
	background: transparent;
	border-color:#e82020;
}

.nav-saerch-box{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #fff;
	height: 100%;
	opacity: 0;
	z-index: -1000;
}

.col-centered{
	margin: 0 auto;
	float: none;
}
.nav-saerch-box .search-input{
	height: 99.73px;
	background: transparent;
	border: none;
	border-radius: 0;
}
.nav-saerch-box .search-input:focus{
	box-shadow: none;
}
.nav-saerch-box button{
	border: none;
	background: transparent;
	padding-top: 6px;
	font-size: 18px;
	color: #e82020;
}
.nav-saerch-box ::placeholder{
	color: #e82020;
}
.close-search-box{
	font-size: 20px;
	cursor: pointer;
}

.post-image-wrp{
	margin-top: -30px;
	padding-right: 0 !important;
}
.post-image{
	position: relative;
	overflow: hidden !important;
	z-index: 100;
	text-align: center;
}
.post-image span{
	display: block;
}
.bg-image{
	position: absolute;
	overflow: hidden;
	width: 100%;
	filter: grayscale(50%);
	z-index: 99;
	background-color: #fff;
}
.bg-image img{
	opacity: 0.9;
	filter: blur(15px);
	-webkit-filter: blur(15px);
	transform: scale(1.1);
}

.post-content{
	font-size: 1.08rem;
	font-weight: 300;
	line-height: 1.9;
	color: #4a4a4a;
	list-style-type: persian;
}

.divider{
	font-size: 8px;
	padding: 0 3px;
	opacity: 0.5;
}

.comment-avatar{
	position: relative;
	overflow: hidden;
	width: 46px;
	height: 46px;
	border-radius: 60px;
	z-index: 20;
}
.comment-avatar img{
	width: 100%;
	height: auto;
}

.comment-body{
	font-size: 15px;
}

.comment-item .avatar-line{
	content: '';
	display: ublock;
	position: absolute;
	width: 2px;
	min-height: 10px;
	background: #e82020;
	top: 30px;
	right: 38px;
}
.hasreply .comment-body{
	padding-bottom: 30px;
}
.comment-reply h4{
	color: #e82020;
}
.comment-reply .comment-body{
	padding-bottom: 0;
}

.comment-add-form{
	font-size: 14px;
	padding-right: 50px;
}
.comment-add-form select{
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	min-width: 220px;
	padding:3px 6px;
}
.comment-add-form .sendbutton {
	background: #e82020;
	border: 1px solid #e82020;
	color: #fff;
	border-radius: 6px;
	padding: 3px 30px;
}

body.dark .comment-add-form{
	font-size: 14px;
	padding-right: 50px;
}
body.dark .comment-add-form select , body.dark #captchaInput{
	background: #1c1f26;
	color: #cbcdd3;
	border: 1px solid #596272;
}
body.dark .comment-add-form .sendbutton {
	background: #e82020;
	border: 1px solid #e82020;
	color: #fff;
}

.rate-up i, .rate-up .txt-rate{
	color:#778191;
}
.rate-down i, .rate-down .txt-rate{
	color:#778191;
}

.rate-up.rated i, .rate-up.rated .txt-rate{
	color:#21BF73;
}
.rate-down.rated i, .rate-down.rated .txt-rate{
	color:#e82020;
}

.pagination a {
	padding: 4px 12px;
}
.page-item.current .page-link {
	color: #fff;
	background-color: #e82020;
	border-color: #e82020;
}

blockquote{
	background: #f5f5f5;
	padding: 12px 20px;
	display: inline-block;
	border-right:4px solid #e82020;
	margin: 20px 0;
}

hr{
	background-color: #dee2e6 !important;
	opacity: 1;
}

footer p{
	font-size: 14px;
	cursor: default;
	padding-top: 4px;
}

footer li, footer ul{
	cursor: default;
	vertical-align: middle;
}

footer i{
	display: block;
	background-color: #F1F3F6;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background-size: contain;
	background-repeat: no-repeat;
	border: 2px solid transparent;
	transition: 0.2s;
}
footer i:hover{
	border-color: rgba(47,142,237,0.4);
}

footer i.rss{
	background-image: url('https://bayanbox.ir/download/1871830016811086832/footer-telegram.png');
}
footer i.blog{
	background-image: url('https://bayanbox.ir/download/8894621089404731484/footer-mmz.png');
}
footer i.bbox{
	background-image: url('https://bayanbox.ir/download/11105452335010619/footer-wat.png');
}
footer i.bayan{
	background-image: url('https://bayanbox.ir/download/8205487670769160084/footer-insta.png');
}

@media (max-width: 576px) {
	.comment-add-form {
		padding-right: 0px;
	}
	.commentAvatar{
		display:none;
	}
}

/*
** اصلاحات نهایی برای کادربندی منظم و اجباری Grid (صفحه اصلی)
** این بخش از درخواست‌های قبلی شما برای نظم‌دهی منتقل شده است
*/

/* 1. تضمین ارتفاع و نظم کامل کارت‌های خبر (Grid) */
.post-list .col-lg-4 {
    display: flex; 
    align-items: stretch;
    margin-bottom: 30px !important;
}

.post-list .card {
    height: 100% !important; 
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e7ed !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

/* 2. کادربندی اجباری مستطیل افقی برای تصویر (Aspect Ratio) */
.post-list .card-img-top {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-bottom-left-radius: 0 !important; 
    border-bottom-right-radius: 0 !important;
}

/* 3. محدودیت اجباری خلاصه خبر به دو خط */
/* این استایل تگ <div> حاوی (*post_summary*) را هدف قرار می‌دهد */
.post-list .card-body div:nth-of-type(2) {
    position: relative;
    font-size: 14px;
    color: #4a4a4a;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4em !important;
    max-height: 2.8em !important;
    flex-grow: 1;
    margin-bottom: 10px !important; 
}

/* 4. قرار دادن دکمه ادامه مطلب در پایین کارت */
.post-list .card-body a.btn {
    margin-top: auto !important;
    align-self: flex-start;
}

/* 5. حذف خط جداکننده اضافی */
.post-list .col-lg-4 hr {
    display: none !important;
	/* ========================================================== */
/* A. اصلاح نظم و اندازه تصاویر در موبایل (صفحه اصلی) */
/* ========================================================== */

@media (max-width: 991.98px) {
    /* 1. اجبار Grid به یکنواختی کامل در موبایل */
    /* این شامل col-12 و col-sm-6 در ابعاد کوچک می‌شود */
    .post-list .col-lg-4, 
    .post-list > .row > div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px !important; /* کاهش فاصله عمودی در موبایل */
    }

    .post-list .card {
        height: 100% !important; 
    }
}

@media (max-width: 767.98px) {
    /* در ابعاد گوشی (زیر 768 پیکسل)، هر خبر تمام عرض را می‌گیرد و نظم عمودی حفظ می‌شود */
    .post-list .col-lg-4 {
        margin-bottom: 15px !important;
    }
}

/* 2. کادربندی اجباری مستطیل افقی برای تصویر در موبایل */
.post-list .card-img-top {
    /* همان ارتفاع 180px برای همه ابعاد باقی می‌ماند */
    height: 180px !important; 
    width: 100% !important;
    object-fit: cover !important; 
    /* مطمئن می‌شویم لبه‌های پایین تصویر گرد نیستند */
    border-bottom-left-radius: 0 !important; 
    border-bottom-right-radius: 0 !important;
}

/* 3. حذف خط جداکننده افقی در موبایل که باعث به هم ریختگی می‌شود */
.post-list hr.d-lg-none {
    display: none !important;
}
	/* ========================================================== */
/* B. اصلاح ابعاد تصویر در صفحه جزئیات خبر (موبایل) */
/* ========================================================== */

@media (max-width: 991.98px) {
    /* 1. تصویر کاور در بالای خبر (برای دسکتاپ مخفی، اما در تبلت/موبایل ممکن است نمایش داده شود) */
    .post-detail .post-image-wrp {
        margin-top: 0 !important; /* حذف حاشیه منفی برای بالا آمدن در موبایل */
    }
    
    .post-detail .post-image-wrp .bg-image {
        display: none !important; /* حذف تصویر تار شده پس‌زمینه در موبایل */
    }
    
    .post-detail .post-image-wrp .post-image img {
        /* محدود کردن اندازه تصویر اصلی در موبایل */
        max-width: 90% !important; 
        height: auto !important;
        display: block !important;
        margin: 0 auto !important; /* وسط چین کردن تصویر */
        border-radius: 10px !important;
    }

    /* 2. تصویر داخل متن خبر (اگر کلاس post-content روی آن تأثیر می‌گذارد) */
    .post-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 3. تنظیم عرض ستون محتوا (برای وسط آمدن متن و هم‌ترازی) */
    .main-content .col-lg-9 {
        padding: 0 15px !important; 
    }
    
    .main-content .post-content {
        /* اطمینان از هم‌ترازی متن در ابعاد کوچک */
        padding: 0 !important; 
    }
}
}
/* ========================================================== */
/* A. اصلاح نهایی ابعاد تصاویر در لیست مطالب (Grid Uniformity) */
/* ========================================================== */

/* اطمینان از اعمال قاب مستطیلی 16:9 برای همه تصاویر در لیست مطالب (مخصوصاً موبایل) */
.post-list .card-img-top {
    height: 180px !important; /* ارتفاع ثابت برای قاب افقی */
    width: 100% !important;
    object-fit: cover !important; /* مهم‌ترین بخش: تصویر را مجبور می‌کند کادر را پر کند */
    
    /* حذف گردی پایین تصویر */
    border-bottom-left-radius: 0 !important; 
    border-bottom-right-radius: 0 !important;
}

/* ---------------------------------------------------------- */

/* B. رفع مشکل نمایش حالت شب/روز (Dark Mode) */
/* برخی از عناصر در حالت شب نیاز به تعریف رنگ دارند */

body.dark .navbar {
    background: rgba(28, 31, 38, 0.85) !important; /* رنگ نوار ناوبری در حالت شب */
    border-bottom: 1px solid #333 !important;
}

body.dark .navbar-light .navbar-nav .nav-link {
    color: #cbcdd3 !important; /* رنگ لینک‌ها در حالت شب */
}

body.dark .navbar-light .navbar-nav .nav-link:hover, 
body.dark .navbar-light .navbar-nav .nav-link.active {
    color: #e82020 !important; /* رنگ لینک‌های فعال/هاور در حالت شب */
}

body.dark .social-box i {
    color: #cbcdd3; /* رنگ آیکون‌های اجتماعی */
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6 {
    color: #fff !important; /* رنگ تیترها در حالت شب */
}

body.dark p, body.dark .small, body.dark .card-text {
    color: #cbcdd3 !important; /* رنگ متن‌ها در حالت شب */
}

body.dark .card {
    background-color: transparent !important;
    color: #cbcdd3;
}

/* ---------------------------------------------------------- */

/* C. استایل‌دهی گالری تصاویر جدید */
.image-gallery-box {
    text-align: center;
    padding: 20px 0;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* اجازه می‌دهد عکس‌ها در موبایل زیر هم بیایند */
}

.gallery-item {
    width: 200px; /* عرض هر آیتم در گالری */
    height: 120px; /* ارتفاع ثابت برای قاب گالری (نسبت افقی) */
    overflow: hidden;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* اجبار تصویر به پر کردن قاب */
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* استایل حالت شب برای گالری */
body.dark .gallery-item {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}
/* ========================================================== */
/* C. استایل‌دهی گالری اسلایدر جدید (Single Frame Carousel) */
/* ========================================================== */

.single-frame-gallery {
    max-width: 600px; /* حداکثر عرض اسلایدر */
    height: 350px; /* ارتفاع ثابت برای قاب اسلایدر (افقی) */
    margin: 0 auto; /* وسط چین کردن اسلایدر */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-frame-gallery .carousel-inner {
    height: 100%;
}

.single-frame-gallery .carousel-item {
    height: 100%;
}

.single-frame-gallery img {
    height: 100%; /* اجبار تصویر به پر کردن ارتفاع قاب */
    object-fit: cover; /* مطمئن شدن از اینکه تصویر قاب را بدون کشیدگی پر کند */
    width: 100%;
}

/* اصلاح دکمه‌های جابه‌جایی برای جهت RTL */
.single-frame-gallery .carousel-control-prev {
    right: 0;
    left: auto;
}

.single-frame-gallery .carousel-control-next {
    left: 0;
    right: auto;
}