/* =========================================
   RTL OVERRIDES  (add these at the end)
   ========================================= */
[dir="rtl"] .navbar a i,
[dir="rtl"] .navbar a:focus i {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .navbar .getstarted,
[dir="rtl"] .navbar .getstarted:focus {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] .navbar .dropdown:hover>ul {
    left: auto;
    right: 0;
}

[dir="rtl"] .navbar .dropdown .dropdown ul {
    left: auto;
    right: 100%;
}

[dir="rtl"] .navbar .dropdown .dropdown:hover>ul {
    left: auto;
    right: 100%;
}

@media (max-width: 1366px) {
    [dir="rtl"] .navbar .dropdown .dropdown ul {
        left: auto;
        right: 100%;
    }

    [dir="rtl"] .navbar .dropdown .dropdown:hover>ul {
        left: auto;
        right: 100%;
    }
}

[dir="rtl"] .navbar .dropdown>a i {
    transform: scaleX(-1);
}

[dir="rtl"] .ticker-wrapper-h .heading:after {
    transform: scaleX(-1);
}

[dir="rtl"] p,
h1,
h2,
h3,
h4,
h5,
h6 {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] form#tk3_top_form_search {
    left: 15px !important;
    right: auto !important;
    width: 250px !important;
}

[dir="rtl"] .tk3-top-form-search-state-1,
[dir="rtl"] .tk3-top-form-search-state-2 {
    right: auto !important;
    left: 0 !important;
    width: 0px !important;
}

[dir="rtl"] .page-item:first-child .page-link {
    border-top-right-radius: var(--bs-pagination-border-radius);
    border-bottom-right-radius: var(--bs-pagination-border-radius);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] .page-item:last-child .page-link {
    border-top-left-radius: var(--bs-pagination-border-radius);
    border-bottom-left-radius: var(--bs-pagination-border-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir="rtl"] .dt-container thead th,
.dt-container thead td {
    text-align: right !important;
}
