.section-editor {
    margin: 150px 0 !important;
}

.section-editor {
    position: relative;
}

.editor_content {
    border: 1px solid #EFECFA;
    border-radius: 2.1rem;
    padding: 3.1rem;
    padding-bottom: 5rem;
    background-color: #FFFFFF;
    box-shadow: 0px 20px 50px 0px #0000000A;
    position: relative;
    font-family: 'dana';
}

.editor_content h3 {
    color: #001B2F;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-family: var(--bold-font);
}

.editor_content .wrap {
    line-height: 3;
    color: #0F0F0F;
    text-align: justify;
    margin-top: 3rem;
}

.editor_content .heading-line {
    position: relative;
    height: 1px;
    background-color: #F5F3FC;
}

.editor_content .heading-line::before {
    content: '';
    position: absolute;
    height: 3px;
    background-color: rgb(0, 45, 80);
    ;
    box-shadow: 0px 4px 4px 0px #2C00D440;
    width: 5.5rem;
    border-radius: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    right: 0;
}

/* ✅ اصلاح‌شده برای متن + آیکن */
.toggle__editor {
    width: auto;
    height: 2.5rem;
    padding: 0 1rem;
    gap: .5rem;
    background-color: #fff;
    color: #D5A84A;
    border: 1px solid #D5A84A;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.375rem !important;
    position: absolute !important;
    bottom: -50px;
    right: 0;
    cursor: pointer !important;
}

.toggle__editor:hover {
    background-color: #D5A84A;
    color: #fff;
    border-color: #D5A84A;
}

.toggle__editor .toggle__text {
    font-size: .8rem;
    line-height: 1;
    white-space: nowrap;
}

.editor_content:after {
    content: "";
    width: calc(100% - 5%);
    height: 100%;
    display: flex;
    border-radius: 2.1rem;
    background-color: #F5F3FC;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, -2%);
    z-index: -1;
}

.editor-wrapper-txt {
    font-size: 0.875rem;
}

.toggle__editor i {
    transition: .8s;
    transform: rotate(-90deg);
}

.toggle__editor.active i {
    transform: rotate(90deg);
}

.editor--wrapper {
    position: relative;
}

.toggle__editor {
    z-index: 10 !important;
    pointer-events: auto !important;
}

.remain_words {
    display: block;
    /* همیشه تو DOM باشه */
    max-height: 0;
    /* بسته */
    opacity: 0;
    overflow: hidden;
    transition: max-height .6s ease, opacity .4s ease;
    will-change: max-height, opacity;
}

/* وقتی باز شد */
.editor--wrapper.is-open .remain_words {
    opacity: 1;
}


@media (max-width: 991.98px) {
    .editor_content {
        padding: 2rem 1.25rem;
        padding-bottom: 5rem;
    }

    .editor_content h3 {
        font-size: 1.125rem;
    }

    .editor_content .wrap {
        margin-top: 1.75rem;
    }

    .toggle__editor {
        bottom: -55px;
        right: 0;
        left: unset;
    }

    .section-editor {
        margin-block: 3rem !important;
    }
}