/*
Theme Name: Nian
Theme URI: http://example.com/
Author: esi
Author URI: http://example.com/
Description: A simple WordPress theme example
Version: 1.0
*/

@font-face {
    font-family: 'Nian';
    src: url('/wp-content/themes/Home-New/css/fonts/w_Nian.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.font-weight-extra-bold, .font-weight-black {
    
    font-family: 'Nian' !important;;
}
.box-content p:first-of-type {
	
	font-family: 'Nian' !important;
	font-weight: bold;
}
a.dropdown-item {
    font-weight: bold;
	font-family: 'Nian' !important;
}

/* منو جدا کننده */
#mainNav > li {
    display: flex;
    align-items: center;
}

#mainNav > li:not(:last-child)::after {
    content: "|";
    color: #ccc;
    font-size: 13px;
    font-weight: 400;
    margin: 0 10px;
    opacity: 0.8;
}
@media (min-width: 992px) {
    #header .header-nav-main nav > ul > li {
       
         margin-right: 0px!important; 
    }
}
/* مخفی کردن action ها به صورت پیش‌فرض */
.thumb-info-action {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* جلوگیری از تعامل قبل از hover */
}

/* وقتی موس روی wrapper است */
.thumb-info-wrapper:hover .thumb-info-action {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* فعال شدن تعامل */
}

/* wrapper باید position relative باشد */
.thumb-info-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
}
.news-header {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border-top: 2px solid #424f6c;
    margin-top: 10px;
}

.news-title h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2a44;
}

.news-archive-link {
   
    margin-bottom:20px;
    padding:8px 18px;
    background:#e4b354;
    color:#424f6c;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
}
.news-archive-link:hover {color:#fff;text-decoration:none}
.news-archive-link::after {
    content: " ←";
}

.post-item {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 25px 0;
    border-top: 1px solid #e4b354;
    margin-top: 5px;
}

.post-title {
    flex: 0 0 420px;
    text-align: right;
    padding-right: 15px;
}
.post-title h2 {font-weight:800}
.post-title h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1f2a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-summary {
    flex: 00 520px;
	width:520px;
    font-size: 12px;
    color: #555;
    line-height: 1.8;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	font-weight: bold;
}

.read-more {
    color: #0b4f9c;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
	margin-right: auto;
}

.read-more:hover{text-decoration:none}

.read-more::after {
    content: " 🡠";
	 font-size: 18px;
    font-weight: 900;
    margin-right: 6px;

    text-shadow:
        0.5px 0 currentColor,
        -0.5px 0 currentColor,
        0 0.5px currentColor,
        0 -0.5px currentColor;
}
.footbg {
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 0 !important;

    width: 100%;
    height: 75px !important;
    min-height: unset !important;

    background-color: #e4b354;
}


/* تصویر پس‌زمینه محو */
.footbg::before {
    content: "";
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-image: url('/wp-content/themes/Home-New/img/bgfooter.png');
    background-repeat: repeat;
    background-position: center;

    opacity: 0.12;

    pointer-events: none;
    z-index: 0;
}


/* محتوای فوتر روی تصویر باقی بماند */
.footbg > * {
    position: relative;
    z-index: 1;
}
.foot{
    background-color: #e4b354;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin: 0px;

}


#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6
Specificity: (1,0,1)
 {
    color: #000;
}

#revolutionSlider .tp-caption {
    text-align: center !important;
}
.fab{line-height: inherit !important;}

/*  side baner */

.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
	margin-top: 20px;
}

.page-content {
    flex: 1;
    min-width: 0;
}

.page-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.06);

    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

.sidebar-card a {
    color: inherit;
    text-decoration: none;
}

.sidebar-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sidebar-card-content {
    padding: 15px;
}

.sidebar-card-content h3 {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 8px;
}

.sidebar-card-content p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    color: #777;
}


/* موبایل */
@media (max-width: 991px) {

    .page-layout {
        flex-direction: column;
    }

    .page-sidebar {
        width: 100%;
    }

}
/* باکس اول و سوم */
.page-sidebar .sidebar-card:nth-of-type(1),
.page-sidebar .sidebar-card:nth-of-type(3) {
    background-color: #3f4d68;
    color: #e2b354;
}

/* باکس دوم */
.page-sidebar .sidebar-card:nth-of-type(2) {
    background-color: #e2b354;
    color: #3f4d68;
}

/* رنگ عنوان و متن داخل باکس‌ها */
.page-sidebar .sidebar-card h3,
.page-sidebar .sidebar-card p,
.page-sidebar .sidebar-card a {
    color: inherit;
	
}

/* هاور */
.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
/* style 3 box article */

.single-layout {
    display: flex;
    gap: 35px;
    align-items: flex-start;
	margin-top: 20px;
}

.single-content {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.sidebar-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.sidebar-box a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sidebar-box-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.sidebar-box-content {
    padding: 15px;
}

.sidebar-box-content h4 {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 8px;
}

.sidebar-box-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #777;
    margin: 0;
}

@media (max-width: 991px) {

    .single-layout {
        flex-direction: column;
    }

    .single-sidebar {
        width: 100%;
    }

}
.sidebar-box {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}
.single-sidebar {
    width: 320px;
    flex-shrink: 0;
    transition: margin-top 0.2s ease;
}

@media (max-width: 991px) {
    .single-sidebar {
        width: 100%;
        margin-top: 0 !important;
    }
}
/* باکس اول و سوم */
.single-sidebar .sidebar-box:nth-of-type(1),
.single-sidebar .sidebar-box:nth-of-type(3) {
    background-color: #3f4d68;
    color: #e2b354;
}

/* باکس دوم */
.single-sidebar .sidebar-box:nth-of-type(2) {
    background-color: #e2b354;
    color: #3f4d68;
}

/* رنگ عنوان و متن داخل باکس‌ها */
.single-sidebar .sidebar-box h4,
.single-sidebar .sidebar-box p,
.single-sidebar .sidebar-box a {
    color: inherit;
}

/* هاور */
.sidebar-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.page-header.page-header-modern.page-header-md {
  padding-top: 0px !important;
}
.fa.fa-search.header-nav-top-icon{font-size:2em !important}
#footer a:not(.btn) {
  color: #3c4a69 !important;
  transition: all 0.1s ease-in-out;
  font-size: 1.2em;
}
/* ==================================================
   FLOATING SEARCH
================================================== */

.floating-search {
    position: fixed;
    left: 0;
    top: 33%;
    transform: translateY(-50%);
    z-index: 9999;
}


/* ==================================================
   SEARCH BUTTON
================================================== */

.floating-search-btn {
    width: 50px;
    height: 50px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    /* سمت چپ صاف - سمت راست گرد */
    border-radius: 0 25px 25px 0;

    background-color: #3f4d68;
    color: #e2b354;

    font-size: 19px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.18);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.floating-search-btn:hover {
    background-color: #e2b354;
    color: #3f4d68;

    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.22);
}

.floating-search-btn:focus {
    outline: none;
}


/* ==================================================
   SEARCH BOX - DESKTOP
================================================== */

.floating-search-box {
    position: absolute;

    left: 60px;
    top: 50%;

    width: 340px;
    max-width: calc(100vw - 80px);

    padding: 10px;

    background-color: #fff;

    border-radius: 10px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-50%)
        translateX(-10px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* زمانی که سرچ باز می‌شود */
.floating-search.open .floating-search-box {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(-50%)
        translateX(0);
}


/* ==================================================
   SEARCH FORM
================================================== */

.floating-search-box form {
    width: 100%;
    padding: 0;
    margin: 0;
}

.floating-search-box .simple-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;

    width: 100%;

    padding: 0;
    margin: 0;
}

.floating-search-box .form-control {
    flex: 1 1 auto;

    width: 1%;
    min-width: 0;

    height: 42px;

    margin: 0;

    direction: rtl;
    text-align: right;

    font-size: 13px;
}

.floating-search-box .input-group-append {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

.floating-search-box .btn {
    width: 44px;
    height: 42px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #3f4d68;
    color: #e2b354;

    border: none;

    cursor: pointer;
}

.floating-search-box .btn:hover {
    background-color: #e2b354;
    color: #3f4d68;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991px) {

    .floating-search-btn {
        width: 46px;
        height: 46px;

        font-size: 17px;

        border-radius: 0 23px 23px 0;
    }

    .floating-search-box {
        left: 55px;

        width: 300px;
        max-width: calc(100vw - 70px);
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .floating-search {
        left: 0;
        top: 42%;

        transform: translateY(-50%);
    }


    /* دکمه */
    .floating-search-btn {
        width: 44px;
        height: 44px;

        font-size: 16px;

        border-radius: 0 22px 22px 0;
    }


    /* باکس */
    .floating-search-box {
        position: absolute;

        left: 52px;
        right: auto;

        top: 50%;

        width: calc(100vw - 64px);
        max-width: none;

        padding: 8px;

        border-radius: 8px;

        transform:
            translateY(-50%)
            translateX(-8px);
    }


    .floating-search.open .floating-search-box {
        transform:
            translateY(-50%)
            translateX(0);
    }


    /* اینپوت */
    .floating-search-box .form-control {
        height: 40px;

        font-size: 13px;
    }


    /* دکمه سرچ داخل فرم */
    .floating-search-box .btn {
        width: 42px;
        height: 40px;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 480px) {

    .floating-search-btn {
        width: 42px;
        height: 42px;

        font-size: 15px;

        border-radius: 0 21px 21px 0;
    }


    .floating-search-box {
        left: 49px;

        width: calc(100vw - 59px);

        padding: 7px;
    }


    .floating-search-box .form-control {
        height: 38px;

        font-size: 12px;
    }


    .floating-search-box .btn {
        width: 38px;
        height: 38px;
    }

}


/* ==========================================
   Search Result Page
========================================== */

.search-results-page {
    direction: rtl;
    padding: 40px 0 60px;
    background: #f8f9fb;
    min-height: 600px;
}


/* =========================
   Header
========================= */

.search-page-header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 35px;
    padding-bottom: 20px;

    border-bottom: 2px solid #e2b354;
}

.search-page-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3f4d68;
    color: #e2b354;

    font-size: 20px;

    border-radius: 50%;
}

.search-page-title h1 {
    margin: 0 0 6px;

    font-family: 'Nian', Tahoma, Arial, sans-serif;

    font-size: 25px;
    font-weight: bold;

    color: #3f4d68;
}

.search-page-title p {
    margin: 0;

    font-size: 14px;
    color: #777;
}

.search-page-title strong {
    color: #e2b354;
}


/* =========================
   Results
========================= */

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* کارت */
.search-result-card {
    display: flex;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid #eee;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.search-result-card:hover {
    transform: translateY(-3px);

    border-color: rgba(226, 179, 84, .5);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.09);
}


/* =========================
   Image
========================= */

.search-result-image {
    width: 220px;
    min-width: 220px;

    overflow: hidden;
}

.search-result-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.search-result-image img {
    width: 100%;
    height: 100%;

    min-height: 180px;

    object-fit: cover;

    display: block;

    transition: transform .35s ease;
}

.search-result-card:hover
.search-result-image img {
    transform: scale(1.04);
}


/* =========================
   Content
========================= */

.search-result-content {
    position: relative;

    flex: 1;

    padding: 22px 25px;
}

.search-result-meta {
    margin-bottom: 8px;

    font-size: 12px;

    color: #999;
}

.search-result-meta i {
    margin-left: 5px;

    color: #e2b354;
}


/* عنوان */
.search-result-title {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.8;

    font-family:
        'Nian',
        Tahoma,
        Arial,
        sans-serif;
}

.search-result-title a {
    color: #3f4d68;

    text-decoration: none;

    transition: color .2s ease;
}

.search-result-title a:hover {
    color: #e2b354;

    text-decoration: none;
}


/* خلاصه */
.search-result-excerpt {
    max-width: 850px;

    margin-bottom: 18px;

    font-size: 13px;
    line-height: 2;

    color: #666;
}


/* ادامه مطلب */
.search-result-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 16px;

    background: #e2b354;

    color: #3f4d68 !important;

    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;

    text-decoration: none !important;

    transition: all .25s ease;
}

.search-result-more:hover {
    background: #3f4d68;

    color: #e2b354 !important;
}

.search-result-more i {
    font-size: 11px;
}


/* =========================
   Pagination
========================= */

.search-pagination {
    direction: ltr;

    display: flex;

    justify-content: center;

    margin-top: 40px;
}

.search-pagination .page-numbers {
    min-width: 38px;
    height: 38px;

    margin: 0 3px;

    padding: 0 10px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    color: #3f4d68;

    border: 1px solid #eee;

    border-radius: 6px;

    text-decoration: none;

    transition: all .2s ease;
}

.search-pagination
.page-numbers:hover,
.search-pagination
.page-numbers.current {
    background: #3f4d68;

    color: #e2b354;

    border-color: #3f4d68;
}


/* =========================
   No Result
========================= */

.search-no-result {
    max-width: 650px;

    margin: 60px auto;

    padding: 45px 40px;

    background: #fff;

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, .07);
}

.search-no-result-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #3f4d68;

    color: #e2b354;

    border-radius: 50%;

    font-size: 25px;
}

.search-no-result h2 {
    margin-bottom: 12px;

    color: #3f4d68;

    font-size: 22px;
}

.search-no-result p {
    color: #777;

    font-size: 14px;
}

.search-no-result-help {
    margin-bottom: 25px;
}


/* فرم جستجوی مجدد */
.search-page-form {
    display: flex;

    max-width: 500px;

    margin: 25px auto 0;

    direction: rtl;
}

.search-page-form input {
    flex: 1;

    min-width: 0;

    height: 46px;

    padding: 0 15px;

    border: 1px solid #ddd;

    border-left: none;

    border-radius: 0 7px 7px 0;

    outline: none;

    font-size: 13px;
}

.search-page-form input:focus {
    border-color: #e2b354;
}

.search-page-form button {
    width: 50px;

    border: none;

    border-radius: 7px 0 0 7px;

    background: #3f4d68;

    color: #e2b354;

    cursor: pointer;
}

.search-page-form button:hover {
    background: #e2b354;

    color: #3f4d68;
}


/* ==========================================
   Tablet
========================================== */

@media (max-width: 991px) {

    .search-results-page {
        padding: 30px 0 45px;
    }

    .search-result-image {
        width: 180px;
        min-width: 180px;
    }

    .search-result-content {
        padding: 18px 20px;
    }

    .search-result-title {
        font-size: 17px;
    }

}


/* ==========================================
   Mobile
========================================== */

@media (max-width: 767px) {

    .search-results-page {
        padding: 25px 0 40px;
    }

    .search-page-header {
        gap: 12px;

        margin-bottom: 25px;
    }

    .search-page-icon {
        width: 46px;
        height: 46px;

        font-size: 17px;
    }

    .search-page-title h1 {
        font-size: 20px;
    }

    .search-page-title p {
        font-size: 12px;
    }


    /* کارت عمودی */
    .search-result-card {
        flex-direction: column;
    }

    .search-result-image {
        width: 100%;
        min-width: 100%;

        height: 190px;
    }

    .search-result-image img {
        width: 100%;
        height: 190px;
        min-height: 0;
    }

    .search-result-content {
        padding: 17px 18px;
    }

    .search-result-title {
        font-size: 16px;
    }

    .search-result-excerpt {
        font-size: 12px;

        line-height: 1.9;
    }


    /* بدون نتیجه */
    .search-no-result {
        margin: 30px 0;

        padding: 30px 20px;
    }

}


/* ==========================================
   Small Mobile
========================================== */

@media (max-width: 480px) {

    .search-page-icon {
        width: 42px;
        height: 42px;

        font-size: 15px;
    }

    .search-page-title h1 {
        font-size: 18px;
    }

    .search-result-image {
        height: 165px;
    }

    .search-result-image img {
        height: 165px;
    }

    .search-page-form input {
        font-size: 12px;

        padding: 0 10px;
    }
	.featured-boxes-flat .featured-box { margin-bottom: 5px;}
	.heading.heading-middle-border::before{top: 100%;}
}
.heading.heading-middle-border {
    position: relative;
    text-align: right;
}

.heading.heading-middle-border::before {
    content: "";
    position: absolute;

    top: 50%;
    right: 0;
    left: 0;

    border-top: 1px solid #0b4f9c;

    z-index: 0;
}

.heading.heading-middle-border h1 {
    position: relative;
    z-index: 1;

    display: inline-block;

    margin: 0;

    padding-left: 15px;
    padding-right: 0;

    background: #e4b354;
}

@media (max-width: 767px) {

    .heading.heading-middle-border h1 {
        font-size: 20px;
        padding-left: 10px;
    }

}
/* =====================================
   Inner Page Sidebar - Right Side
===================================== */

.inner-sidebar-menu {
    position: relative;
    z-index: 10000;
}


/* دکمه کنار راست صفحه */
.inner-sidebar-toggle {
    position: fixed;

    right: 0;
    left: auto;
    top: 30%;

    width: 48px;
    height: 48px;

    border: none;

    /* سمت راست صاف - سمت چپ گرد */
    border-radius: 24px 0 0 24px;

    background: #3f4d68;
    color: #e2b354;

    font-size: 18px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: -4px 4px 15px rgba(0,0,0,.15);

    z-index: 10002;

    transition: all .25s ease;
}

.inner-sidebar-toggle:hover {
    background: #e2b354;
    color: #3f4d68;
}


/* =====================================
   Panel
===================================== */

.inner-sidebar-panel {
    position: fixed;

    top: 0;

    right: 0;
    left: auto;

    width: 310px;
    max-width: 85vw;

    height: 100vh;

    background: #fff;

    z-index: 10004;

    box-shadow: -5px 0 30px rgba(0,0,0,.16);

    /* مخفی شدن به سمت راست */
    transform: translateX(105%);

    transition: transform .35s ease;

    overflow-y: auto;

    direction: rtl;
    text-align: right;
}


/* حالت باز */
.inner-sidebar-menu.open .inner-sidebar-panel {
    transform: translateX(0);
}


/* =====================================
   Header
===================================== */

.inner-sidebar-header {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: #3f4d68;
    color: #e2b354;

    font-size: 18px;
    font-weight: bold;

    direction: rtl;
    text-align: right;
}


/* دکمه بستن */
.inner-sidebar-close {
    width: 35px;
    height: 35px;

    border: none;

    background: transparent;
    color: #e2b354;

    font-size: 18px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================
   Menu
===================================== */

.inner-sidebar-nav {
    direction: rtl;
    text-align: right;
}

.inner-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inner-sidebar-nav li {
    position: relative;

    margin: 0;

    border-bottom: 1px solid #eee;

    text-align: right;
}

.inner-sidebar-nav li a {
    display: block;

    padding: 14px 20px;

    color: #3f4d68;

    font-size: 14px;
    line-height: 1.8;

    text-align: right;
    direction: rtl;

    text-decoration: none;

    transition: all .25s ease;
}

.inner-sidebar-nav li a:hover {
    background: #e2b354;
    color: #3f4d68;

    padding-right: 27px;

    text-decoration: none;
}


/* آیتم فعال */
.inner-sidebar-nav .current-menu-item > a,
.inner-sidebar-nav .current-menu-parent > a,
.inner-sidebar-nav .current-menu-ancestor > a {
    background: #3f4d68;
    color: #e2b354;
}


/* =====================================
   Sub Menu
===================================== */

.inner-sidebar-nav .sub-menu {
    background: #f7f7f8;

    padding: 0;
    margin: 0;
}

.inner-sidebar-nav .sub-menu li {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.inner-sidebar-nav .sub-menu li a {
    padding-right: 35px;

    font-size: 13px;
}

.inner-sidebar-nav .sub-menu .sub-menu li a {
    padding-right: 50px;
}


/* =====================================
   Overlay
===================================== */

.inner-sidebar-overlay {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background: rgba(0,0,0,.30);

    z-index: 10003;

    opacity: 0;
    visibility: hidden;

    transition: all .3s ease;
}

.inner-sidebar-menu.open .inner-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}


/* =====================================
   Tablet
===================================== */

@media (max-width: 991px) {

    .inner-sidebar-toggle {
        width: 44px;
        height: 44px;

        font-size: 16px;

        border-radius: 22px 0 0 22px;
    }

}


/* =====================================
   Mobile
===================================== */

@media (max-width: 767px) {

    .inner-sidebar-panel {
        right: 0;
        left: auto;

        width: 280px;
        max-width: 85vw;

        transform: translateX(105%);
    }

    .inner-sidebar-menu.open .inner-sidebar-panel {
        transform: translateX(0);
    }

    .inner-sidebar-toggle {
        right: 0;
        left: auto;

        width: 42px;
        height: 42px;

        top: 40%;

        font-size: 15px;

        border-radius: 21px 0 0 21px;
    }

    .inner-sidebar-header {
        height: 60px;

        padding: 0 16px;

        font-size: 16px;
    }

    .inner-sidebar-nav li a {
        padding: 13px 17px;

        font-size: 13px;
    }

    .inner-sidebar-nav li a:hover {
        padding-right: 22px;
    }

}

/* =========================================
   Main Menu Dropdown Fix - RTL
========================================= */

@media (min-width: 992px) {

    /* آیتم اصلی باید مرجع موقعیت زیرمنو باشد */
    #header #mainNav > li {
        position: relative;
    }


    /* زیرمنوی سطح اول */
    #header #mainNav > li.dropdown > .dropdown-menu,
    #header #mainNav > li.menu-item-has-children > .dropdown-menu {

        position: absolute !important;

        top: 100% !important;

        right: 0 !important;
        left: auto !important;

        min-width: 220px;

        margin: 0 !important;
        padding: 6px 0;

        background: #fff;

        border: none;
        border-top: 3px solid #e2b354;

        box-shadow: 0 8px 25px rgba(0,0,0,.12);

        text-align: right;
        direction: rtl;

        z-index: 99999;
    }


    /* مخفی بودن قبل از Hover */
    #header #mainNav > li.dropdown > .dropdown-menu,
    #header #mainNav > li.menu-item-has-children > .dropdown-menu {
        display: block !important;

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transform: translateY(5px);

        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease;
    }


    /* نمایش دقیقاً زیر منوی اصلی */
    #header #mainNav > li.dropdown:hover > .dropdown-menu,
    #header #mainNav > li.menu-item-has-children:hover > .dropdown-menu {

        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto;

        transform: translateY(0);
    }


    /* =================================
       آیتم‌های داخل Dropdown
    ================================= */

    #header #mainNav .dropdown-menu > li {
        position: relative;

        width: 100%;

        display: block;
    }

    #header #mainNav .dropdown-menu > li > a {
        display: block;

        width: 100%;

        padding: 9px 18px;

        color: #3f4d68;

        font-size: 13px;

        text-align: right;
        direction: rtl;

        white-space: nowrap;

        text-decoration: none;

        transition: all .2s ease;
    }

    #header #mainNav .dropdown-menu > li > a:hover {
        background: #f6f6f6;

        color: #e2b354;

        padding-right: 23px;
    }


    /* =================================
       Dropdown سطح دوم
       در سایت RTL به سمت چپ باز شود
    ================================= */

    #header #mainNav .dropdown-menu li.dropdown-submenu,
    #header #mainNav .dropdown-menu li.menu-item-has-children {
        position: relative;
    }

    #header #mainNav .dropdown-menu li.dropdown-submenu > .dropdown-menu,
    #header #mainNav .dropdown-menu li.menu-item-has-children > .dropdown-menu {

        position: absolute !important;

        top: 0 !important;

        right: 100% !important;
        left: auto !important;

        min-width: 220px;

        margin: 0 !important;

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transform: translateX(5px);

        background: #fff;

        border-top: 3px solid #e2b354;

        box-shadow: 0 8px 25px rgba(0,0,0,.12);

        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease;
    }


    #header #mainNav .dropdown-menu li.dropdown-submenu:hover > .dropdown-menu,
    #header #mainNav .dropdown-menu li.menu-item-has-children:hover > .dropdown-menu {

        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto;

        transform: translateX(0);
    }

}
body.sidebar-is-open {
    overflow: hidden;
}
#footer{
	
background-color: #fbf5e8 !important;	
}
/* =========================================
   Article Comments
========================================= */

.article-comments {
    margin-top: 50px;
    padding-top: 30px;

    border-top: 1px solid #eee;

    direction: rtl;
}


/* باکس اصلی */
.comments-area {
    background: #fff;

    padding: 30px;

    border: 1px solid #eee;
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}


/* عنوان */
.comments-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 12px;

    border-bottom: 2px solid #e2b354;
}

.comments-title h3 {
    margin: 0;

    font-size: 20px;

    color: #3f4d68;
}

.comments-title span {
    font-size: 12px;

    color: #777;
}


/* عنوان فرم */
.comment-form-title {
    margin: 0 0 8px;

    font-size: 21px;

    color: #3f4d68;
}


.comment-notes {
    margin-bottom: 25px;

    font-size: 13px;

    color: #777;
}


/* فیلدها */
.comment-field {
    margin-bottom: 18px;
}


.comment-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: bold;

    color: #3f4d68;
}


.comment-field input,
.comment-field textarea {
    width: 100%;

    padding: 11px 14px;

    background: #fafafa;

    border: 1px solid #ddd;
    border-radius: 7px;

    font-family: 'Nian', Tahoma, Arial, sans-serif;

    font-size: 13px;

    direction: rtl;

    outline: none;

    transition: all .2s ease;
}


.comment-field input {
    height: 45px;
}


.comment-field textarea {
    resize: vertical;

    min-height: 130px;
}


.comment-field input:focus,
.comment-field textarea:focus {
    border-color: #e2b354;

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(226,179,84,.12);
}


/* دکمه */
.comment-submit-btn {
    border: none;

    padding: 10px 25px;

    background: #3f4d68;

    color: #e2b354;

    border-radius: 7px;

    font-family: 'Nian', Tahoma, Arial, sans-serif;

    font-size: 14px;

    cursor: pointer;

    transition: all .25s ease;
}


.comment-submit-btn:hover {
    background: #e2b354;

    color: #3f4d68;
}


/* =========================================
   Existing Comments
========================================= */

.comment-list {
    list-style: none;

    padding: 0;
    margin: 0 0 35px;
}


.comment-list li.comment {
    margin-bottom: 15px;

    padding: 18px;

    background: #f8f9fa;

    border-radius: 8px;

    border-right: 3px solid #e2b354;
}


.comment-author {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 8px;
}


.comment-author img {
    border-radius: 50%;
}


.comment-author .fn {
    font-style: normal;

    font-weight: bold;

    color: #3f4d68;
}


.comment-metadata {
    margin-bottom: 10px;

    font-size: 11px;

    color: #999;
}


.comment-content {
    font-size: 13px;

    line-height: 2;

    color: #555;
}


/* پاسخ‌ها */
.comment-list .children {
    list-style: none;

    margin-top: 15px;

    padding-right: 25px;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .article-comments {
        margin-top: 35px;
    }

    .comments-area {
        padding: 20px 15px;
    }

    .comments-title h3,
    .comment-form-title {
        font-size: 17px;
    }

    .comment-field input,
    .comment-field textarea {
        font-size: 12px;
    }

    .comment-submit-btn {
        width: 100%;
    }

}