/* Vazirmatn font loaded via <link> in Head.astro for Arabic pages */

:root {
    --rtl-font-family: "Plus Jakarta Sans", "Vazirmatn", "Maestra", sans-serif;
}
html,
body {
    direction: rtl;
    font-family: var(--rtl-font-family);
}

body :is(h1, h2, h3, h4, h5, h6, p, a, li, label, button, input, textarea, select) {
    font-family: var(--rtl-font-family) !important;
}

#ms-header .ms-logo > a {
    display: inline-flex;
    align-items: center;
}
@media (min-width: 1051px) {
    #ms-header .ms-logo > a {
        translate: 0 -5px;
    }
}

.page-breadcrumb,
.how-to-card,
.use-case-big-card,
.why-maestra-grid .content,
.use-case-grid,
body:not(.wp-admin) .feature-card,
.faq-row,
.rating-card,
.new-footer-design #hook-cta h2,
.new-footer-design #hook-cta p,
.ms-col p,
.social-medias,
.new-footer-design .footer-col,
.big-card-case-text,
.landing h1, .landing p,
.sc-hero h2,
.hook-text h2,
.hook-text p,
.feature-item, .feature-item h3, .feature-item p,
.benefit-row h2, .benefit-detail, #ms-nav ul > li,
.tools-description > *,
.sc-hero, .freeze-scroller .freeze-scroller-item,
.freeze-scroller .freeze-scroller-item h3,
.freeze-scroller .freeze-scroller-item p,
.benefit-blocks-container:nth-child(even) .benefit-blocks-heading,
.benefit-blocks-container:nth-child(even) .benefit-blocks-text
{
    text-align: right !important;
}

.benefit-blocks-container:nth-child(even) .benefit-blocks-heading::after
{
    right: 0;
    left: auto;
}

.step-number
{
    margin-right: 0;
    margin-left: 12px;
}


.sc-hero {
    text-align: right;
    padding-right: 0;
    padding-left: 80px;
}

.half-size:last-child
{
    padding-left: 0 !important;
    padding-right: 40px;
}

#ms-side-nav,
#ms-nav
{
    margin-right: auto;
    margin-left: 0 !important;
}

.big-card-case-text h2
{
    text-align: right !important;
}

.case-img h3 {
    left: auto !important;
    right: 40%;
    transform: translate(50%, -50%) !important;
}

.case-img h3 {
    right: 0;
    left: 0 !important;
    transform: none !important;
}

.faq-row h3::after {
    left: 0;
    right: auto !important;
}

i.icon.icon-upload img.icon-upload-arrow
{
    right: 0;
}

.sub-menu
{
    left: 0;
    right: -60px;
}

#ms-nav ul > li {
    text-align: right;
    margin-left: 30px;
    margin-right: 0 !important;
}

.item-has-children::after {
    left: -5px;
    right: auto;
}

.item-has-children {
    padding-right: 0;
    padding-left: 15px;
}

#hook-cta a
{
    float: left;
}

#landing-cta
{
float:right;
}

.social-medias li
{
    margin-right: 0 !important;
    margin-left: 30px;
}

.footer-links li
{
    padding-right: 20px;
    padding-left: 0;
}

.footer-links li:before
{
    right: 0;
    left: auto;
}

.btn-shape
{
    margin-left: 0 !important;
}

.case-img h3 {
    left: auto !important;
    right: 0;
    transform: none !important;
    position: relative !important;
 
}

@media(max-width:767px){
    .block-showcase
    {
        overflow: hidden;
    }

    .single-main-content table:not(.grand-table) thead tr th:first-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:first-child {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 29px !important;
    }
    .single-main-content table:not(.grand-table) thead tr th:last-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:last-child {
        border-top-right-radius: 0 !important;
        border-top-left-radius: 29px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 29px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:last-child {
        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 29px !important;
    }
}

@media (max-width: 480px) {
    .single-main-content table:not(.grand-table) thead tr th:first-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:first-child {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 27px !important;
    }
    .single-main-content table:not(.grand-table) thead tr th:last-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:last-child {
        border-top-right-radius: 0 !important;
        border-top-left-radius: 27px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 27px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:last-child {
        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 27px !important;
    }
}

@media (max-width: 320px) {
    .single-main-content table:not(.grand-table) thead tr th:first-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:first-child {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 21px !important;
    }
    .single-main-content table:not(.grand-table) thead tr th:last-child,
    .single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:last-child {
        border-top-right-radius: 0 !important;
        border-top-left-radius: 21px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 21px !important;
    }
    .single-main-content table:not(.grand-table) tbody tr:last-child td:last-child {
        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 21px !important;
    }
}

@media(max-width:991px){
    .sc-hero
    {
        padding-left: 0 !important;
    }

    .big-card-case-img, .big-card-case-text
    {
        height: auto;
    }

    .menuicon
    {
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    .social-medias li
    {
        margin-left: 5px !important;
    }

    .footer-links li
    {
        padding-left: 0;
    }
}

@media(max-width: 1360px){
    .header-navs
    {
        right: -100%;
        left: 0;
    }

    .header-navs.active
    {
        right: 0;
    }
}

@media (min-width: 1051px) {
    #ms-header .header-in > .mega-submenu {
        left: auto !important;
        right: auto !important;
        transform: none !important;
        transform-origin: center top !important;
    }
}
/* Blog tables (BNTable, etc.) - RTL alignment and borders */
.single-main-content table:not(.grand-table) {
    direction: rtl !important;
}

.single-main-content table:not(.grand-table) th,
.single-main-content table:not(.grand-table) td {
    text-align: right !important;
    border-right: none !important;
    border-left: 1px solid var(--ncs-container-strong) !important;
}

.single-main-content table:not(.grand-table) th:first-child,
.single-main-content table:not(.grand-table) td:first-child {
    border-left: none !important;
}

.single-main-content table:not(.grand-table) thead tr th {
    border-left-color: color-mix(in srgb, var(--background) 20%, transparent) !important;
}

.single-main-content table:not(.grand-table) thead tr th:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 35px !important;
}

.single-main-content table:not(.grand-table) thead tr th:last-child {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 35px !important;
}

.single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 35px !important;
}

.single-main-content table:not(.grand-table):not(:has(thead)) tbody tr:first-child td:last-child {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 35px !important;
}

.single-main-content table:not(.grand-table) tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 35px !important;
}

.single-main-content table:not(.grand-table) tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 35px !important;
}

@media (min-width: 992px) {
    .bottom-nav-row.right-nav-row {
        margin-inline-start: auto !important;
        margin-inline-end: 0 !important;
        gap: 24px;
    }

    .bottom-nav-row.right-nav-row > li {
        margin: 0 !important;
    }

    .bottom-nav-row.right-nav-row .langs-dropdown {
        margin: 0 !important;
    }

    .bottom-nav-row.right-nav-row .langs-dropdown .langs-dropdown-ul-container {
        inset-inline-start: auto !important;
        inset-inline-end: -120px !important;
    }

    .bottom-nav-row.right-nav-row .langs-dropdown::after {
        visibility: hidden !important;
    }
}
