/* ================================
   Arabic / RTL Base
================================ */

html,
body {
    direction: rtl;
    text-align: right;
}

/* اجعل النصوص العربية تبدأ من اليمين */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
a,
button,
input,
textarea,
select {
    text-align: right;
}

/* ================================
   Layout Helpers
================================ */


.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

.ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ================================
   Header / Navigation
================================ */

.site-header,
.header,
.main-navigation,
.navbar,
.menu,
.primary-menu {
    direction: rtl;
}

.menu,
.navbar-nav,
.primary-menu {
    padding-right: 0;
}

.menu li,
.navbar-nav li {
    text-align: right;
}

/* عكس اتجاه الأسهم داخل المنيو */
.menu .icon,
.menu svg,
.navbar svg {
    transform: rotate(180deg);
}

/* لا تقلب اللوجو */
.logo img,
.site-logo img {
    transform: none !important;
}

/* ================================
   Buttons
================================ */

.dsn-btn,
.button,
.emra-join-btn,
.general-buttons {
    direction: rtl;
}

.dsn-btn .icon,
.button .icon {
    transform: rotate(180deg);
}

/* ================================
   Dynamic Tabs Section
================================ */

.single-page .emra-info-wrapper {
    direction: rtl;
}

.single-page .emra-info-sidebar {
    text-align: right;
}

.single-page .emra-info-tab {
    text-align: right;
    direction: rtl;
}

.single-page .emra-info-tab .tab-arrow {
    transform: rotate(180deg);
}

.single-page .emra-info-content {
    text-align: right;
}

.single-page .general-tab-description,
.single-page .general-tab-description p {
    text-align: right;
}

.single-page .general-buttons {
    justify-content: flex-start;
}

/* ================================
   Accordion / FAQ
================================ */

.single-page #faqs .accordion__question {
    direction: rtl;
    text-align: right;
}

.single-page #faqs .title-accordion {
    text-align: right;
}

.single-page #faqs .accordion__answer,
.single-page #faqs .accordion__answer p {
    text-align: right;
}

.single-page #faqs .accordion-arrow {
    margin-right: 20px;
    margin-left: 0;
}

/* ================================
   Blog / Cards
================================ */

/* .dsn-posts,
.post-card,
.blog-card,
.card,
article {
    direction: rtl;
    text-align: right;
}

.post-meta,
.post-meta-share {
    direction: rtl;
}

.post-share {
    direction: ltr;
} */

/* ================================
   Forms
================================ */

input,
textarea,
select {
    direction: rtl;
    text-align: right;
}

input[type="email"],
input[type="url"],
input[type="tel"] {
    direction: rtl;
    text-align: right;
}

/* ================================
   Footer
================================ */

footer,
.site-footer,
.footer {
    direction: rtl;
    text-align: right;
}

footer ul,
.site-footer ul {
    padding-right: 0;
}

/* ================================
   SVG / Icons Exceptions
================================ */

/* لا تقلب أيقونات السوشيال */
.social,
.socials,
.social-links,
.post-share {
    direction: ltr;
}

.social svg,
.socials svg,
.social-links svg,
.post-share svg,
.post-share i {
    transform: none !important;
}
/* new added for slider  */
@media only screen and (min-width: 992px) {
    .root-posts .pin-spacer .dsn-grid-layout {
        direction: ltr;
    }}
    .partners-slider-wrapper {
        direction: ltr;
    }

    /* RTL title fill animation */
.dsn-fill .word,
body.rtl .dsn-fill .word {
    direction: rtl;
    background-position: right center !important;
    transform-origin: 100% 0% !important;
}
/* Rights slider content RTL alignment */
.rights-section .dsn-item-post .content {
    right: 0;
    left: auto;
    text-align: right;
    direction: rtl;
    align-items: flex-start;
}

.rights-section .dsn-item-post .content .d-flex {
    width: 100%;
    justify-content: flex-start !important;
}

.rights-section .title-rights,
.rights-section .para-rights-slider {
    text-align: right;
    direction: rtl;
}
@media only screen and (min-width: 992px) {
    .site-header:not(.dsn-hamburger) ul.primary-nav > li:not(:first-of-type) {
        margin-right: 30px;
        margin-left: 0px;
    }
}
.dsn-btn.dsn-btn-shape {
    direction: rtl;
}

.dsn-btn.dsn-btn-shape.d-flex {
    flex-direction: row-reverse;
}

.dsn-btn.dsn-btn-shape .button {
    direction: rtl;
}
.dsn-btn.dsn-btn-shape .title-btn,
.dsn-btn.dsn-btn-shape .title-btn span,
.dsn-btn.dsn-btn-shape .title-btn::before,
.dsn-btn.dsn-btn-shape .title-btn::after {
    direction: rtl;
    text-align: right;
}

.dsn-btn .icon, .button .icon {
    transform: rotate(15deg);
}
ul.nav-item li.nav-item > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    direction: rtl;
    text-align: right;
}
@media (min-width:1005px){
ul.nav-item li.nav-item > a::after {
    content: "←" !important;
    font-size: 15px;
    font-weight: var(--fw-medium);
    line-height: 1;
    margin-right: auto;
    margin-left: 0;
}}

#dsn_preloader .logo-box,
#dsn_preloader .logo-box .title,
#dsn_preloader .logo-box .word,
#dsn_preloader .logo-box .char {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: center !important;
}
.dsn-fill .word,
.dsn-fill-animation .word {
    direction: rtl;
    unicode-bidi: isolate;
    display: inline-block;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    transform-origin: 100% 50% !important;
    line-height: 1.25;
    padding-top: 0.05em;
    padding-bottom: 0.08em;
}
.circle-after.circle-before.circle-both-before{
    padding-right: 0px;
    padding-left: 0;
}
.square-before:before, .circle-before:before {
    right: -30px;
    left: unset;
}
.circle-after.circle-before.circle-both-before:after {
    left: auto;
    right: -20px;
}
@media (max-width:767px){
.circle-after.circle-before.circle-both-before {
    padding-right: 20px;
    padding-left: 0;
}
.square-before:before, .circle-before:before {
    right: -8px;
    left: unset;
}
.circle-after.circle-before.circle-both-before:after {
    left: auto;
    right: 2px;
}}
.header-corporate .content .title-lg {
    text-align: center;
}
.post-date {
    direction: ltr;
}
.single-page .emra-info-tab .tab-arrow {
    transform: rotate(2deg);
}
.toggle-text {
display: none;
}
@media (max-width: 991px) {
    #site_menu_header #navbar_toggle {
        flex: 0 0 auto;
        width: auto !important;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}