

/*recent posts */
.recent-posts-01 article {
	background-color: #fafafa;
	text-align: center;
	border: 1px solid #e3e3e3;
	margin-bottom: 20px;
	color: #333333;
}
.recent-posts-01 .pic img {
	width: 100%;
}
.recent-posts-01 .title {
	font-size: 18px;
	line-height: 23px;
	margin: 60px 15px 29px 15px;
	position: relative;
}
.recent-posts-01 .title a,
.recent-posts-01 .title a:link,
.recent-posts-01 .title a:active,
.recent-posts-01 .title a:visited {
	color: #333333;
}
.recent-posts-01 .title a:hover {
	color: #20a3f0;
	text-decoration: none;
}
.recent-posts-01 .title:before {
	width: 27px;
	margin: 0 0 0 -14px;
	border: 1px solid #000;
	content: "";
	position: absolute;
	left: 50%;
	bottom: -18px;
}
.recent-posts-01 span.time {
	color: #d610ce;
	display: inline-block;
	padding: 0 0 25px 0;
	line-height: 1.2;
}
.recent-posts-01 .excerpt {
	padding: 0 30px;
}
.recent-posts-01 .imginfo {
	border-top: 1px solid #e3e3e3;
	padding: 30px 0;
	margin: 32px 0 0 0;
}
.recent-posts-01 .imginfo img {
	display: inline-block;
}
.recent-posts-01 .imginfo span {
	display: inline-block;
	margin: 0 0 0 5px;
}

@media only screen and (max-width: 991px) {
.recent-posts-01 .title {
	margin-top: 30px;
}
}
.recent-posts-02 {
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
}
.recent-posts-02 .item {
	color: #d610ce;
	position: relative;
	padding: 0;
	background-size: cover;
	border-right: 1px solid #dcdcdc;
	-moz-transition: color ease-in 200ms;
	-webkit-transition: color ease-in 200ms;
	-o-transition: color ease-in 200ms;
	-ms-transition: color ease-in 200ms;
	transition: color ease-in 200ms;
}
.recent-posts-02 .item:last-child {
	border: none!important;
}
.recent-posts-02 .item:after {
	content: "";
	background-color: #f8f8f8;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-moz-transition: background-color ease-in 200ms;
	-webkit-transition: background-color ease-in 200ms;
	-ms-transition: background-color ease-in 200ms;
	-o-transition: background-color ease-in 200ms;
	transition: background-color ease-in 200ms;
}
.recent-posts-02 .imgbg-cover {
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
}
.recent-posts-02 .cont-box {
	padding: 70px 40px 160px;
}
.recent-posts-02 .cont-box > * {
	position: relative;
	z-index: 1;
}
.recent-posts-02 .title {
	font-size: 24px;
	font-weight: normal;
	margin: 0 0 90px;
	-moz-transition: color ease-in 200ms;
	-webkit-transition: color ease-in 200ms;
	-o-transition: color ease-in 200ms;
	-ms-transition: color ease-in 200ms;
	transition: color ease-in 200ms;
	position: relative;
}
.recent-posts-02 .title:after {
	content: "";
	width: 80px;
	display: block;
	position: absolute;
	bottom: -45px;
	left: 0;
	border-bottom: 2px solid #20a3f0;
	transition: border-color ease-in 200ms;
	-moz-transition: border-color ease-in 200ms;
	/* Firefox 4 */
	-webkit-transition: border-color ease-in 200ms;
	/* Safari and Chrome */
	-o-transition: border-color ease-in 200ms;
	/* Opera */
	-ms-transition: border-color ease-in 200ms;/* IE9? */
}
.recent-posts-02 .title a,
.recent-posts-02 .title a:link,
.recent-posts-02 .title a:active,
.recent-posts-02 .title a:visited {
	color: #333333;
}
.recent-posts-02 .item .title a:hover,
.recent-posts-02 .item:hover .title a:hover {
	color: #20a3f0;
	text-decoration: none;
}
.recent-posts-02 .date {
	font-style: italic;
	font-size: 14px;
}
.recent-posts-02 .footer {
	position: absolute;
	bottom: 60px;
	left: 40px;
	right: 40px;
}
.recent-posts-02 .footer:after {
	content: "";
	display: block;
	clear: both;
}
.recent-posts-02 .footer i {
	margin: 0px 6px;
	font-size: 1.2em;
	vertical-align: text-top;
}
.recent-posts-02 .footer,
.recent-posts-02 .footer a,
.recent-posts-02 .footer a:link,
.recent-posts-02 .footer a:active,
.recent-posts-02 .footer a:visited {
	color: #20a3f0;
	transition: color ease-in 200ms;
	-moz-transition: color ease-in 200ms;
	/* Firefox 4 */
	-webkit-transition: color ease-in 200ms;
	/* Safari and Chrome */
	-o-transition: color ease-in 200ms;
	/* Opera */
	-ms-transition: color ease-in 200ms;/* IE9? */
}
.recent-posts-02 .item:hover,
.recent-posts-02 .item:hover .title a {
	color: #FFF;
}
.recent-posts-02 .item:hover .title:after {
	border-color: #FFF;
}
.recent-posts-02 .item:hover:after {
	background-color: rgba(0, 0, 0, 0.85);
}
.recent-posts-02 .item:hover .title:after {
	border-color: #FFF;
}
.recent-posts-02 .postlikes.activate >i:before {
	content: "\f004";
}
.recent-posts-02 .item:hover .footer,
.recent-posts-02 .item:hover .footer a,
.recent-posts-02 .item:hover .footer a:link,
.recent-posts-02 .item:hover .footer a:active,
.recent-posts-02 .item:hover .footer a:visited {
	color: #FFF;
}
.recent-posts-02 .item:hover .footer a:hover {
	color: #20a3f0;
	text-decoration: none;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
.recent-posts-02 .cont-box {
	padding: 15px 15px 80px 15px;
}
.recent-posts-02 .title {
	font-size: 18px;
	margin-bottom: 40px;
}
.recent-posts-02 .title:after {
	bottom: -20px;
}
.recent-posts-02 .footer {
	left: 15px;
	right: 15px;
	bottom: 20px;
}
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
.recent-posts-02 .cont-box {
	padding: 15px 15px 80px 15px;
}
.recent-posts-02 .title {
	font-size: 14px;
	margin-bottom: 40px;
}
.recent-posts-02 .title:after {
	bottom: -20px;
}
.recent-posts-02 .footer {
	left: 15px;
	right: 15px;
	bottom: 20px;
}
}

@media only screen and (max-width: 767px) {
.recent-posts-02 {
	display: block;
}
.recent-posts-02 .item {
	width: 100%;
	display: block;
	border: none;
	border-bottom: 1px solid #dcdcdc;
}
.recent-posts-02 .cont-box {
	padding: 15px 15px 80px 15px;
}
.recent-posts-02 .footer {
	left: 15px;
	right: 15px;
	bottom: 20px;
}
}
.recent-posts-03 {
}
.recent-posts-03 article {
	background-color: #FFF;
	text-align: center;
	margin-bottom: 20px;
}
.recent-posts-03 .pic img {
    width: 100%;
    transition: all ease 0.3s;
}
.recent-posts-03 .cont {
    padding: 15px 15px;
    background: #f9f9f9;
    text-align: justify;
    border: 2px solid #dfdfdf;
    border-top: none;
}
.recent-posts-03 .title {
    font-size: 16px;
    color: #333333;
    line-height: 2;
    margin: 0px 0 8px 0;
    position: relative;
}
.recent-posts-03 .title a,
.recent-posts-03 .title a:link,
.recent-posts-03 .title a:active,
.recent-posts-03 .title a:visited {
	color: #1d4781;
}
.recent-posts-03 .title a:hover {
	color: #f77419;
	text-decoration: none;
}
.recent-posts-03 .info {
    color: #666;
    line-height: 1.2;
    font-size: 11px;
}
.recent-posts-03 .info:after {
    content: "";
    width: 80px;
    margin: 15px 0;
    border-bottom: 2px solid #1d4781;
    display: block;
}
.recent-posts-03 .sep {
	margin: 0 6px;
}
.recent-posts-03 .social {
	overflow: hidden;
	margin-top: 20px;
}
.recent-posts-03 .social>span {
	display: inline-block;
	position: relative;
	padding: 0 10px;
}
.recent-posts-03 .social>span:after,
.recent-posts-03 .social>span:before {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	width: 1000px;
	border-bottom: 1px solid #bbbbbb;
	margin-top: -1px;
}
.recent-posts-03 .social>span:before {
	left: auto;
	right: 100%;
}
.recent-posts-03 .social .fa {
	color: #000000;
	display: inline-block;
	vertical-align: middle;
	font-size: 16px;
	margin: 0 5px;
	transition: all ease-in 200ms;
	-moz-transition: all ease-in 200ms;
	/* Firefox 4 */
	-webkit-transition: all ease-in 200ms;
	/* Safari and Chrome */
	-o-transition: all ease-in 200ms;
	/* Opera */
	-ms-transition: all ease-in 200ms;/* IE9? */
}
.recent-posts-03 .social .fa:hover {
	color: #20a3f0;
}
.recent-posts-03 .more a {
	color: inherit;
	text-decoration-line: none;
}
.recent-posts-04 .pic img {
	max-width: 100%;
}
.recent-posts-04 .cont {
	padding: 25px 0;
}
.recent-posts-04 .title {
	margin: 0 0 8px;
	font-size: 18px;
}
.recent-posts-04 .title a,
.recent-posts-04 .title a:link,
.recent-posts-04 .title a:active,
.recent-posts-04 .title a:visited {
	color: #333333;
}
.recent-posts-04 .title a:hover {
	color: #20a3f0;
	text-decoration: none;
}
.recent-posts-04 .time {
	margin-bottom: 10px;
	display: block;
}
.recent-posts-04 .cont > p .fa {
	padding-right: 5px;
}
.recent-posts-04.light,
.recent-posts-04.light .title,
.recent-posts-04.light .title a,
.recent-posts-04.light .title a:link,
.recent-posts-04.light .title a:active,
.recent-posts-04.light .title a:visited {
	color: #FFF;
}
.recent-posts-04.light .excerpt,
.recent-posts-04.light .excerpt a,
.recent-posts-04.light .excerpt a:link,
.recent-posts-04.light .excerpt a:active,
.recent-posts-04.light .excerpt a:visited {
	color: #fff;
}
.recent-posts-05 article {
	margin-bottom: 15px;
	position: relative;
}
.recent-posts-05 .title {
	font-size: 18px;
	margin: 0 0 8px;
}
.recent-posts-05 .title a,
.recent-posts-05 .title a:link,
.recent-posts-05 .title a:active,
.recent-posts-05 .title a:visited {
	color: #333333;
}
.recent-posts-05 .title a:hover {
	color: #20a3f0;
	text-decoration: none;
}
.recent-posts-05 .newsbox {
	padding: 25px 20px;
	border: 1px solid #e3e3e3;
	border-top: 0;
}
.recent-posts-05 .category {
	margin: 0 -20px 20px;
	padding: 0 20px 10px;
	border-bottom: 1px solid #e3e3e3;
}
.recent-posts-05 .category a,
.recent-posts-05 .category a:link,
.recent-posts-05 .category a:active,
.recent-posts-05 .category a:visited {
	color: #666666;
}
.recent-posts-05 .sep {
	color: #cccccc;
	padding: 0px 5px;
}
.recent-posts-05 img {
	width: 100%;
}
.recent-posts-05 p {
	margin-bottom: 20px;
}
.recent-posts-05 .date {
	position: absolute;
	width: 52px;
	left: 0;
	top: 0;
	text-align: center;
}
.recent-posts-05 .date .month {
	display: block;
	height: 25px;
	line-height: 25px;
	color: #FFF;
	font-size: 14px;
	background-color: #20a3f0;
}
.recent-posts-05 .date .day {
	display: block;
	background-color: #eeeeee;
	line-height: 38px;
	font-size: 20px;
	color: #333333;
}
.recent-posts-05.light,
.recent-posts-05.light .title,
.recent-posts-05.light .title a,
.recent-posts-05.light .title a:link,
.recent-posts-05.light .title a:active,
.recent-posts-05.light .title a:visited {
	color: #FFF;
}
.recent-posts-05.light .category a,
.recent-posts-05.light .category a:link,
.recent-posts-05.light .category a:active,
.recent-posts-05.light .category a:visited {
	color: #dbdbdb;
}
.recent-posts-05.light .excerpt,
.recent-posts-05.light .excerpt a,
.recent-posts-05.light .excerpt a:link,
.recent-posts-05.light .excerpt a:active,
.recent-posts-05.light .excerpt a:visited {
	color: #fff;
}
.recent-posts-05.light .newsbox,
.recent-posts-05.light .category {
	border-color: rgba(255,255,255,0.2);
}
.recent-posts-06 article {
	margin-bottom: 20px;
}
.recent-posts-06 .pic img {
	max-width: 100%;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
.recent-posts-06 .title {
	font-size: 18px;
	margin: 16px 0 5px;
}
.recent-posts-06 .title a,
.recent-posts-06 .title a:link,
.recent-posts-06 .title a:active,
.recent-posts-06 .title a:visited {
	color: #333333;
}
.recent-posts-06 .title a:hover {
	color: #20a3f0;
	text-decoration: none;
}
.recent-posts-06 .date {
	padding: 0 0 12px;
}
.recent-posts-06 .date .fa {
	margin-right: 5px;
}
.recent-posts-06.light,
.recent-posts-06.light .title,
.recent-posts-06.light .title a,
.recent-posts-06.light .title a:link,
.recent-posts-06.light .title a:active,
.recent-posts-06.light .title a:visited {
	color: #FFF;
}
.recent-posts-06.light .excerpt,
.recent-posts-06.light .excerpt a,
.recent-posts-06.light .excerpt a:link,
.recent-posts-06.light .excerpt a:active,
.recent-posts-06.light .excerpt a:visited {
	color: #fff;
}
.recent-posts.owl-carousel {
	width: auto;
}


.postnav-container{
	width: 1380px;
	padding-left:15px;
	padding-right:15px;
	margin-left: auto !important;
	margin-right: auto !important;
}
@media only screen and (max-width: 1599px) and (min-width: 1200px){
	.postnav-container{
		width: 1170px;
	}
}
@media only screen and (max-width: 1199px) {	
	.postnav-container{
		width: 970px;
	}	
}	
@media only screen and (max-width: 991px)  {
	.postnav-container{
		width: 750px;
	}
}
@media only screen and (max-width: 767px) {
	.postnav-container{
		width: auto;
	}
}


.recent-posts-03 article .pic {
    position: relative;
    overflow: hidden;
}
.recent-posts-03 article:hover .pic img {
    transform: scale(1.1) rotate( -5deg );
    -webkit-transform: scale(1.1) rotate( -5deg );
    -ms-transform: scale(1.1) rotate(-5deg);
}
.recent-posts-03 article .pic::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: 0;
    transition: all ease 0.3s;
    z-index:1;
}
.recent-posts-03 article:hover .pic::before {
    opacity: 0.3;
}
.lg-size {
    font-size: 16px;
}











/* کانتینر کلی کارت‌ها */
.latest-posts-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

/* کارت افقی لینک‌دار */
.latest-post-card-horizontal {
    display: flex;
    gap: 1rem;
    background-color: #023a09;        /* بک‌گراند سبز */
    border-radius: 16px;
    border: 2px solid #e2ca74;       /* حاشیه طلایی */
    box-shadow: 0 6px 18px #023a09;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;            /* لینک بدون زیرخط */
    color: inherit;                   /* رنگ متن از کارت */
}

/* افکت هاور روی کل کارت */
.latest-post-card-horizontal:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px #023a09;
    border-color: #ffd700;
}

/* تصویر سمت چپ کارت */
.latest-post-card-horizontal > .post-image {
    flex: 0 0 140px;   /* عرض ثابت تصویر */
    display: flex;
    height: auto;      /* ارتفاع مطابق کارت */
}

/* تصویر داخل کارت */
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* پر کردن کل فضای div */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* افکت هاور تصویر */
.latest-post-card-horizontal:hover .post-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* محتوای متن سمت راست */
.post-content {
    flex: 1;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #e2ca74;
}

/* عنوان مقاله */
.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
    color: #e2ca74; /* رنگ طلایی پایه */
    transition: color 0.3s ease; /* حرکت نرم رنگ */
}

/* تغییر رنگ عنوان هنگام هاور روی کل کارت */
.latest-post-card-horizontal:hover .post-title {
    color: #fff4b2; /* زرد روشن هنگام هاور */
}



/* اطلاعات مقاله (تاریخ، آیکون) */
.post-info {
    font-size: 0.8rem;
    color: #fffbe6;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.post-info .fa {
    color: #e2ca74;
}

/* خلاصه مقاله */
.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fffbe6;
}

/* لینک روی کل کارت و متن‌ها */
.latest-post-card-horizontal .post-title,
.latest-post-card-horizontal .post-content,
.latest-post-card-horizontal .post-image img {
    pointer-events: none; /* کلیک روی هر قسمت کارت فعال است */
}

/* واکنش‌گرایی موبایل */
@media (max-width: 576px) {
    .latest-post-card-horizontal {
        flex-direction: column;
    }
    .post-image {
        width: 100%;
        height: 160px;
        border-radius: 16px 16px 0 0;
    }
    .post-content {
        padding: 0.5rem 0.8rem;
    }
}








.exgold-box {
    max-width: 950px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: "Segoe UI", sans-serif;
    line-height: 1.9;
}

.exgold-box h2 {
    font-size: 32px;
    color: #c5a03a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.exgold-box h3 {
    margin-top: 30px;
    font-size: 20px;
    border-left: 4px solid #d4af37;
    padding-left: 10px;
}

.exgold-box p {
    color: #444;
}

.exgold-highlight {
    background: #faf6e8;
    padding: 15px;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    margin: 20px 0;
}

.exgold-specs {
    list-style: none;
    padding: 0;
}

.exgold-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}





















































/* =========================================================
   ExGold Persian Header / Blog Template RTL Menu Fix
   Put this at the very bottom of Custom CSS
========================================================= */

/* کل هدر فارسی راست‌چین */
html[lang="fa"],
body,
body#Body {
    direction: rtl !important;
    text-align: right !important;
}

/* جلوگیری از برعکس شدن چینش لوگو و هدر */
header,
.header,
.header-wrap,
.header-area,
.header-replace,
.header-container,
.dng-main,
.dng-main-menu,
.dng-megamenu {
    direction: rtl !important;
    text-align: right !important;
}

/* =========================================================
   Main Menu - منوی اصلی: خانه، سکه طلا، شمش طلا و...
========================================================= */

body .dng-megamenu,
body .dng-megamenu ul,
body .dng-megamenu li,
body .dng-megamenu a,
body .dng-megamenu .primary_structure {
    direction: rtl !important;
    text-align: right !important;
}

/* آیتم‌های منوی اصلی از راست به چپ */
body .dng-megamenu .primary_structure {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    float: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* آیتم‌های منو */
body .dng-megamenu .primary_structure > li {
    float: none !important;
    direction: rtl !important;
    text-align: right !important;
}

/* لینک‌های منو */
body .dng-megamenu .primary_structure > li > a,
body .dng-megamenu .primary_structure > li > a span {
    direction: rtl !important;
    text-align: right !important;
}

/* زیرمنوها */
body .dng-megamenu .sub-menu,
body .dng-megamenu .dropdown-menu,
body .dng-megamenu .megamenu,
body .dng-megamenu .mega-menu,
body .dng-megamenu .dnngo_menuslide,
body .dng-megamenu .dnngo_boxslide {
    direction: rtl !important;
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
}

/* آیتم‌های زیرمنو */
body .dng-megamenu .sub-menu li,
body .dng-megamenu .dropdown-menu li,
body .dng-megamenu .megamenu li,
body .dng-megamenu .mega-menu li,
body .dng-megamenu .sub-menu li a,
body .dng-megamenu .dropdown-menu li a,
body .dng-megamenu .megamenu li a,
body .dng-megamenu .mega-menu li a {
    direction: rtl !important;
    text-align: right !important;
}

/* زیرمنوی سطح دوم به سمت چپ باز شود تا بیرون صفحه نرود */
body .dng-megamenu .sub-menu .sub-menu,
body .dng-megamenu .dropdown-menu .dropdown-menu {
    right: 100% !important;
    left: auto !important;
}

/* =========================================================
   Top Utility Menu Fix
   بلاگ / درباره ما / تماس با ما
========================================================= */

/*
   این بخش مخصوص همان منوی کوچکی است که در صفحه بلاگ جدا از منوی اصلی
   نمایش داده می‌شود و در تصویر سمت چپ افتاده بود.
*/

/* والدهایی که لینک‌های بلاگ / درباره / تماس دارند */
body header :has(a[href*="/fa/Blog"]),
body header :has(a[href*="/fa/Home/About"]),
body header :has(a[href*="/fa/About"]),
body header :has(a[href*="/fa/Home/Contact"]),
body header :has(a[href*="/fa/Contact"]),
body .header :has(a[href*="/fa/Blog"]),
body .header :has(a[href*="/fa/Home/About"]),
body .header :has(a[href*="/fa/About"]),
body .header :has(a[href*="/fa/Home/Contact"]),
body .header :has(a[href*="/fa/Contact"]) {
    direction: rtl !important;
    text-align: right !important;
}

/* خود لینک‌های بلاگ، درباره و تماس */
body a[href*="/fa/Blog"],
body a[href*="/fa/Home/About"],
body a[href*="/fa/About"],
body a[href*="/fa/Home/Contact"],
body a[href*="/fa/Contact"] {
    direction: rtl !important;
    text-align: right !important;
}

/* اگر این لینک‌ها داخل لیست باشند */
body ul:has(a[href*="/fa/Blog"]),
body ul:has(a[href*="/fa/Home/About"]),
body ul:has(a[href*="/fa/About"]),
body ul:has(a[href*="/fa/Home/Contact"]),
body ul:has(a[href*="/fa/Contact"]) {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* لیست آیتم‌های منوی کوچک */
body ul:has(a[href*="/fa/Blog"]) > li,
body ul:has(a[href*="/fa/Home/About"]) > li,
body ul:has(a[href*="/fa/About"]) > li,
body ul:has(a[href*="/fa/Home/Contact"]) > li,
body ul:has(a[href*="/fa/Contact"]) > li {
    direction: rtl !important;
    text-align: right !important;
    float: right !important;
}

/* اگر منوی کوچک با flex ساخته شده باشد */
body header ul:has(a[href*="/fa/Blog"]),
body .header ul:has(a[href*="/fa/Blog"]),
body header ul:has(a[href*="/fa/About"]),
body .header ul:has(a[href*="/fa/About"]),
body header ul:has(a[href*="/fa/Contact"]),
body .header ul:has(a[href*="/fa/Contact"]) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
}

/* =========================================================
   Exact Header Position Fix
   منوی کوچک از سمت راست هدر شروع شود نه چپ
========================================================= */

body header .row,
body .header .row,
body .header-wrap .row,
body .header-area .row {
    direction: rtl !important;
}

/* اگر قالب، منوی کوچک را absolute کرده باشد */
body header [class*="top"] ul:has(a[href*="/fa/Blog"]),
body .header [class*="top"] ul:has(a[href*="/fa/Blog"]),
body header [class*="menu"] ul:has(a[href*="/fa/Blog"]),
body .header [class*="menu"] ul:has(a[href*="/fa/Blog"]) {
    right: 0 !important;
    left: auto !important;
}

/* اگر همان دکمه‌های بلاگ/درباره/تماس داخل ستون چپ Bootstrap افتاده باشند */
body header .col-md-1:has(a[href*="/fa/Blog"]),
body header .col-md-2:has(a[href*="/fa/Blog"]),
body header .col-md-3:has(a[href*="/fa/Blog"]),
body header .col-sm-1:has(a[href*="/fa/Blog"]),
body header .col-sm-2:has(a[href*="/fa/Blog"]),
body header .col-sm-3:has(a[href*="/fa/Blog"]),
body .header .col-md-1:has(a[href*="/fa/Blog"]),
body .header .col-md-2:has(a[href*="/fa/Blog"]),
body .header .col-md-3:has(a[href*="/fa/Blog"]),
body .header .col-sm-1:has(a[href*="/fa/Blog"]),
body .header .col-sm-2:has(a[href*="/fa/Blog"]),
body .header .col-sm-3:has(a[href*="/fa/Blog"]) {
    float: right !important;
    right: auto !important;
    left: auto !important;
    text-align: right !important;
}

/* لوگو وسط بماند */
body header img[alt*="Exgold"],
body header img[alt*="ExGold"],
body .header img[alt*="Exgold"],
body .header img[alt*="ExGold"] {
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* =========================================================
   Social Icons / Cart / Language
   این‌ها خراب یا برعکس نشوند
========================================================= */

body a[href*="whatsapp"],
body a[href*="instagram"],
body a[href*="wa.me"],
body a[href*="api.whatsapp"],
body a[href*="/en"],
body a[href*="/EN"],
body .fa,
body .fab,
body .fas,
body .shopping-cart,
body .cart,
body .language,
body .language-object {
    direction: ltr !important;
    text-align: center !important;
}

/* آیکن‌های سمت راست هدر در جای درست بمانند */
body header :has(a[href*="whatsapp"]),
body header :has(a[href*="instagram"]),
body .header :has(a[href*="whatsapp"]),
body .header :has(a[href*="instagram"]) {
    direction: ltr !important;
}

/* =========================================================
   Blog Template Header Safety
   قالب بلاگ جداگانه است، این بخش آن را هم کنترل می‌کند
========================================================= */

body .ArticleView,
body .ArticleView *,
body .modern-centered-article,
body .modern-centered-article *,
body .article-container,
body .article-container * {
    direction: rtl;
    text-align: right;
}

/* ولی عکس‌ها، آیکن‌ها و شبکه‌های اجتماعی داخل مقاله خراب نشوند */
body .ArticleView img,
body .ArticleView picture,
body .ArticleView .SocialIcons,
body .ArticleView .SocialIcons *,
body .modern-centered-article img,
body .modern-centered-article picture,
body .modern-centered-article .SocialIcons,
body .modern-centered-article .SocialIcons * {
    direction: ltr !important;
    text-align: center !important;
}

/* =========================================================
   Mobile Header / Mobile Menu
========================================================= */

body .mobilemenu-main,
body .mobilemenu-main .m-menu,
body .mobilemenu-main .gomenu,
body .mobilemenu-main .gomenu li,
body .mobilemenu-main .gomenu li a {
    direction: rtl !important;
    text-align: right !important;
}

body .mobilemenu-main .gomenu li .arrows {
    left: 15px !important;
    right: auto !important;
}

/* =========================================================
   Final Force
========================================================= */

body .dng-megamenu .primary_structure,
body .dng-megamenu .primary_structure > li,
body .dng-megamenu .primary_structure > li > a {
    direction: rtl !important;
    text-align: right !important;
}

















