    html[lang="fa-IR"] .lang-en {
        display: none;
    }

    html[lang="fa-IR"] .lang-fa {
        display: block;
    }

    html[lang="en-US"] .lang-fa {
        display: none;
    }

    html[lang="en-US"] .lang-en {
        display: block;
    }

    body {
        overflow: hidden;
        font-size: 12px;
        margin: 0;
        padding: 0;
        line-height: 23px;
        background: #edf1f1;
        font-family: 'IRANSans', sans-serif !important;
        position: relative;
    }

    .custom-page-container {
        font-family: 'IRANSans', sans-serif !important;
        display: flex;
        flex-direction: row;
        height: 100vh;
    }

    /* مخفی کردن هدر و فوتر */
    header,
    footer {
        display: none !important;
    }


    /* محتوای اصلی */
    .main-content {
        width: calc(100% - 20rem);
        height: 100%;
        overflow-y: auto;
        order: 2;
        /* محتوای اصلی به سمت راست منتقل می‌شود */
    }

    /* بازگرداندن چیدمان پیش‌فرض المنتور */
    .main-content .page-content .elementor-section,
    .main-content .page-content .elementor-row,
    .main-content .page-content .elementor-column {
        display: flex !important;
        flex-direction: row !important;
        /* اطمینان از افقی بودن ستون‌ها */
    }

    /* محدود کردن استایل‌ها به محتوای خاص قالب */
    .main-content .main-content-title {
        font-size: 24px;
        color: #333;
        direction: rtl;
    }

    .main-content .page-title {
        font-size: 20px;
        color: #333;
        direction: rtl;
    }

    .main-content .section-title {
        font-size: 18px;
        color: #0056b3;
        margin-top: 20px;
        direction: rtl;
    }

    .main-content .section-text,
    .main-content .default-message {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        direction: rtl;
    }

    .main-content .section-list {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        direction: rtl;
        padding-right: 20px;
        /* برای تورفتگی لیست */
    }

    .main-content code {
        background: #f0f0f0;
        padding: 2px 5px;
        border-radius: 3px;
    }

    .main-content .api-endpoint .section-text {
        background: #e6f0fa;
        padding: 10px;
        border-radius: 5px;
    }

    /* سایدبار */
    .custom-sidebar {
        flex: 1;
        height: 100vh;
        background-color: #fff;
        overflow-x: hidden;
        text-align: right;
        font-size: 16px !important;
        border-radius: 5px;
        order: 1;
    }

    .sidebar-title {
        font-size: 1.2rem;
        width: 100%;
        font-weight: 700;
        color: #15318a;
        margin-right: 16px;
       padding: 8px 8px 0px 8px;
        text-align: start;
    }

    .page-list {
        list-style: none;
        padding: 0;
    }

    .page-item {
        cursor: pointer;
        margin-inline-start: 7px;
        direction: inherit !important;
        font-family: 'IRANSansWeb-en' !important; 
    }

    .page-link {
        display: flex;
        align-items: center;
        /* برای تراز عمودی فلش و متن */
        justify-content: space-between;
        /* فلش به سمت راست و متن به سمت چپ */
        padding: 8px 15px;
        color: #333;
        text-decoration: none;
        font-size: 16px !important;
        direction: inherit !important;
        transition: background 0.3s;
        position: relative;
        cursor: pointer;
        /* برای آیتم‌های والد که لینک نیستند */
    }

    .page-link:hover {
        background: #edf1f1;
    }

    .page-link.active {
        border-inline-start: 3px solid #15318a;
        transition: .4s ease;
        background: #edf1f1;
    }

    /* استایل فلش برای آیتم‌های والد */
    .has-submenu .page-link .arrow {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #333;
        margin-left: 5px;
        /* فاصله فلش از متن */
        transition: transform 0.3s ease;
    }

    .has-submenu .page-link.active .arrow,
    .has-submenu .page-link[aria-expanded="true"] .arrow {
        border-top-color: #333;
        transform: rotate(180deg);
    }

    .submenu {
        list-style: none;
        padding: 0;
        display: none;
        /* زیرمنوها به‌صورت پیش‌فرض بسته هستند */
        margin-top: 5px;
    }

    .submenu .page-item {
        margin-inline-start: 20px;
    }
    
.submenu .page-item .page-link {
          display: flex;
        align-items: center;
        /* برای تراز عمودی فلش و متن */
        justify-content: space-between;
        /* فلش به سمت راست و متن به سمت چپ */
        padding: 8px 10px;
        color: #333;
        text-decoration: none;
        font-size: 13px !important;
        direction: inherit !important;
        transition: background 0.3s;
        position: relative;
}

.dark-btn{
    align-self: center;
    transform: scale(0.7);
}

.titr{
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #15318a;
    align-self: center;
}

