﻿body {
    background: #f6f7fb;
    color: #222;
}

/* ===== WRAPPER ===== */
.uiFaq_root {
    display: flex;
    gap: 18px;
    padding: 20px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.uiFaq_side {
    width: 280px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.uiFaq_sideTitle {
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.uiFaq_catItem {
    display: flex;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .2s;
    font-size: 14px;
    flex-direction: row;
    text-align: right;
    align-items: center;
}

    .uiFaq_catItem:hover {
        background: #f9fbff;
    }

.uiFaq_catItem--active {
    border: 2px solid #ff8a00;
}

.uiFaq_catIcon {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ===== SUPPORT BOX ===== */
.uiFaq_support {
    margin-top: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    text-align:center
}

.uiFaq_supportBtn {
    margin-top: 10px;
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
}

/* ===== MAIN ===== */
.uiFaq_main {
    flex: 1;direction:rtl
}

/* HEADER */
.uiFaq_head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    flex-direction: row-reverse;
    align-items: center;
}

.uiFaq_headText h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.uiFaq_breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.uiFaq_subtitle {
    font-size: 12px;
    color: #666;
}

.uiFaq_helpBox {
    width: 62px;
    height: 62px;
    background: #0f172a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

/* ===== SEARCH ===== */
.uiFaq_search {
    background: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

    .uiFaq_search input {
        width: 100%;
        border: none;
        outline: none;
        font-size: 14px;
    }

/* ===== FAQ BOX ===== */
.uiFaq_box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* ITEM */
.uiFaq_item {
    border-bottom: 1px solid #eee;
}

    .uiFaq_item input {
        display: none;
    }

/* QUESTION */
.uiFaq_q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.uiFaq_toggle {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

/* ANSWER */
.uiFaq_a {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    transition: .25s ease;
}

/* OPEN STATE */
.uiFaq_item input:checked ~ .uiFaq_a {
    max-height: 200px;
    padding-bottom: 16px;
}

/* active question border like image */
.uiFaq_item input:checked + label {
    border: 2px solid #ff8a00;
    border-radius: 12px;
 
}

    .uiFaq_item input:checked + label .uiFaq_toggle {
        border-color: #ff8a00;
        color: #ff8a00;
    }
/* پیش‌فرض: + */
.uiFaq_toggle::before {
    content: "+";
}

/* وقتی باز شد: - */
.uiFaq_item input:checked + label .uiFaq_toggle::before {
    content: "-";
}