.oe-gate-wrap, .oe-result-wrap {
    text-align: center;
    padding: 60px 20px;
}

/* تلاش خودکار برای حذف سایدبار خالی قالب در صفحه آزمون و تمام‌عرض کردن محتوا */
body.oe-full-width-exam #secondary,
body.oe-full-width-exam .widget-area,
body.oe-full-width-exam aside.sidebar,
body.oe-full-width-exam .sidebar,
body.oe-full-width-exam .elementor-widget-sidebar {
    display: none !important;
}
body.oe-full-width-exam #primary,
body.oe-full-width-exam .content-area,
body.oe-full-width-exam main#main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.oe-btn {
    display: inline-block;
    padding: 14px 34px;
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}
.oe-q-block {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: right;
}
.oe-q-text { font-weight: 700; margin-bottom: 10px; }
.oe-q-note { font-size: 13px; color: #666; margin: -4px 0 10px; }
.oe-q-image { max-width: 100%; display: block; margin-bottom: 10px; border-radius: 6px; }
.oe-choice {
    display: block;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
}
.oe-choice:hover { background: #fafafa; }
.oe-choice.oe-correct { background: #e6f7ea; border-color: #34a853; }
.oe-choice.oe-wrong-selected { background: #fdeaea; border-color: #e94b4b; }
.oe-q-explanation {
    margin-top: 10px;
    padding: 10px 14px;
    background: #eef6ff;
    border-radius: 6px;
    font-size: 14px;
    color: #234;
}

.oe-history-wrap { direction: rtl; }
/* فرمول‌های ریاضی MathJax همیشه باید چپ‌به‌راست باشند تا علائمی مثل < و > در محیط راست‌به‌چپ برعکس نمایش داده نشوند */
mjx-container { direction: ltr !important; unicode-bidi: isolate; }
.oe-history-empty { padding: 20px 0; color: #666; }
.oe-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.oe-history-table thead th {
    background: #f7f7f8;
    text-align: right;
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}
.oe-history-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}
.oe-history-table tbody tr:last-child td { border-bottom: none; }
.oe-history-table tbody tr:hover { background: #fafafa; }
.oe-history-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}
.oe-history-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
.oe-history-btn:hover { background: #333; color: #fff; }
.oe-history-back {
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
    color: #555;
}
.oe-history-exam-title { margin-bottom: 14px; }

@media (max-width: 600px) {
    .oe-history-table thead { display: none; }
    .oe-history-table, .oe-history-table tbody, .oe-history-table tr, .oe-history-table td { display: block; width: 100%; }
    .oe-history-table tr {
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 6px 0;
    }
    .oe-history-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 8px 16px;
    }
    .oe-history-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #777;
        font-size: 12px;
    }
}

.oe-score-box {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.oe-color-green { background: #e6f7ea; color: #1e7e34; }
.oe-color-yellow { background: #fff8e1; color: #8a6d00; }
.oe-color-red { background: #fdeaea; color: #b02a2a; }
.oe-feedback-text { font-size: 16px; margin-bottom: 20px; }

.oe-product-promo {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    text-align: center;
    background: #fafafa;
}
.oe-promo-title { font-weight: 700; margin-bottom: 10px; }
.oe-promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}
.oe-promo-link img { max-width: 140px; border-radius: 8px; margin: 0 auto 8px; display: block; }
.oe-promo-name { display: block; font-weight: 600; margin-bottom: 6px; }
.oe-promo-price { display: block; color: #555; }
.oe-promo-btn { padding: 10px 26px; font-size: 14px; }
