/*
 * News Portal Lite — Dari / Persian RTL
 * Production RTL override
 *
 * IMPORTANT:
 * - This file is based on the selectors present in the supplied theme RTL file.
 * - It changes reading direction/layout without redesigning the theme.
 * - Slider engines and technical content intentionally remain LTR where required.
 */

/* =========================================================
   1. RTL DOCUMENT BASE
   ========================================================= */

html,
body {
    direction: rtl;
}

body {
    text-align: right;
}

/* Semantic text containers: establish RTL at the level where
   Persian text is actually rendered. */
.site,
.site-header,
.site-content,
.site-main,
.site-footer,
#masthead,
#content,
#primary,
#secondary,
#main-navigation,
#site-navigation,
#colophon,
.entry-header,
.entry-content,
.entry-summary,
.page-content,
.page-header,
.archive-header,
.comments-area,
.comment-content,
.comment-respond,
.widget,
.widget-area,
.np-block,
.np-block-title,
.np-block-posts-wrapper,
.np-single-post,
.np-post-content,
.np-slide-content-wrap,
.np-secondary-block-wrap,
.np-primary-block-wrap,
.np-featured-posts-wrapper,
.np-featured-posts,
.np-recent-posts-wrapper,
.np-archive-post-content-wrapper,
.np-archive-grid-post-wrapper,
.news_portal_block_posts,
.news_portal_recent_posts,
.news_portal_featured_posts,
.news_portal_default_tabbed,
.news_portal_carousel,
.news_portal_featured_slider {
    direction: rtl;
}

/* =========================================================
   2. FONTS
   ========================================================= */


/* =========================================================
   2. FONTS
   ========================================================= */
/*
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

strong, b {
    font-weight: 700;
}


@font-face {
    font-family: "Yekan";
    src: url("fonts/WebYekan.eot");
    src:
        url("fonts/WebYekan.eot?#iefix") format("embedded-opentype"),
        url("fonts/WebYekan.woff") format("woff"),
        url("fonts/WebYekan.ttf") format("truetype"),
        url("fonts/WebYekan.svg#WebYekan") format("svg");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "mitra";
    src: url("fonts/BMitra.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "mitra";
    src: url("fonts/BMitraBold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
*/
/* New Pashtu fonts */

@font-face{
 font-family: 'MyPashtoFont';
 src: url('fonts/NassimArabic-Regular.eot'); /* IE9 Compat Modes */
 src: url('fonts/NassimArabic-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
 url('fonts/NassimArabic-Regular.woff2') format('woff2'), /* Super Modern Browsers */
 url('fonts/NassimArabic-Regular.woff') format('woff'), /* Pretty Modern Browsers */
 url('fonts/NassimArabic-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
 url('fonts/nassimarabic-regular-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

for bold format


@font-face{
 font-family: 'MyPashtoFontBold';
 src: url('Fonts/NassimArabic-Bold.eot'); /* IE9 Compat Modes */
 src: url('Fonts/NassimArabic-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
 url('Fonts/NassimArabic-Bold.woff2') format('woff2'), /* Super Modern Browsers */
 url('Fonts/NassimArabic-Bold.woff') format('woff'), /* Pretty Modern Browsers */
 url('Fonts/NassimArabic-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
 url('Fonts/nassimarabic-bold-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

/* Apply Yekan Font to Website Content */
body,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select,
.site-title,
.site-description,
.main-navigation,
.main-navigation a,
.top-navigation,
.top-navigation a,
.entry-title,
.entry-content,
.entry-summary,
.page-title,
.page-content,
.widget-title,
.widget,
.np-block-title,
.np-related-title,
.np-post-content,
.np-post-meta,
.entry-meta,
.breadcrumbs,
.pagination,
.comments-area,
.comment-content,
.comment-author,
.comment-metadata,
#footer-navigation {
    font-family: "MyPashtoFont", Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

/* Preserve Mitra Font for Selected Theme Areas */
.site-description,
.main-navigation,
.main-navigation .nav-menu > li > a,
.main-navigation ul ul li a,
.header-bottom h1,
.header-bottom h2,
.header-bottom h3,
.header-bottom h4,
.home-header-bottom h1,
.home-header-bottom h2,
.home-header-bottom h3,
.home-header-bottom h4 {
    font-family: "MyPashtoFont", "MyPashtoFont", Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

/* =========================================================
   3. TEXT DIRECTION / ALIGNMENT
   ========================================================= */

.site-title,
.site-description,
.main-navigation,
.main-navigation a,
.top-navigation,
.top-navigation a,
.entry-title,
.entry-content,
.entry-summary,
.page-title,
.page-content,
.archive-title,
.widget-title,
.widget,
.np-block-title,
.np-related-title,
.np-post-content,
.np-post-meta,
.entry-meta,
.cat-links,
.tags-links,
.breadcrumbs,
.pagination,
.comments-area,
.comment-content,
.comment-author,
.comment-metadata,
.comment-respond,
.footer-widget,
.site-info,
#footer-navigation {
    direction: rtl;
    text-align: start;
}

/* Explicitly cover the theme's common title/content elements. */
h1,
h2,
h3,
h4,
h5,
h6,
p,
caption,
th,
td,
.entry-header,
.entry-content,
.entry-summary,
.page-content,
.page-header,
.widget,
.widget-title,
.np-block-title,
.np-related-title,
.np-post-content,
.np-slide-content-wrap {
    direction: rtl;
}

/* Lists should use RTL text while preserving normal list flow. */
ul,
ol,
li {
    direction: rtl;
}

/* =========================================================
   4. SITE TITLE / HEADER
   ========================================================= */

#masthead .site-branding {
    float: right;
    margin: 20px 0;
    direction: rtl;
    text-align: start;
}

#masthead .site-title,
#masthead .site-title a {
    direction: rtl;
    text-align: start;
}

#masthead .site-description {
    direction: rtl;
    text-align: start;
}

#masthead .np-header-ads-area {
    float: left;
    direction: ltr;
}

.np-header-menu-wrapper,
.np-header-menu-block-wrap,
.header-bottom,
.home-header-bottom {
    direction: rtl;
}

.np-header-menu-wrapper .mt-container::before {
    right: 50%;
    left: auto;
    margin-right: -480px;
    margin-left: 0;
}

.np-header-menu-wrapper::before,
.np-header-menu-wrapper::after {
    right: -5px;
    left: auto;
}

.np-header-menu-wrapper::after {
    right: auto;
    left: -5px;
}

.np-header-menu-block-wrap::before,
.np-header-menu-block-wrap::after {
    right: -5px;
    left: auto;
    border-right: none;
    border-left: 5px solid #03717f;
}

.np-header-menu-block-wrap::after {
    right: auto;
    left: -5px;
}

/* =========================================================
   5. TOP BAR
   ========================================================= */

.np-top-left-section-wrapper {
    float: right;
    direction: rtl;
}

.np-top-left-section-wrapper .date-section {
    float: right;
    margin-right: 0;
    margin-left: 10px;
    direction: rtl;
}

.np-top-left-section-wrapper .date-section::before {
    margin-right: 0;
    margin-left: 8px;
}

.np-top-right-section-wrapper {
    float: left;
    direction: ltr;
}

.np-top-right-section-wrapper .social-link {
    float: right;
    direction: ltr;
}

.np-top-right-section-wrapper .social-link a {
    margin-right: 10px;
    margin-left: 0;
    direction: ltr;
}

.top-navigation {
    float: right;
}

.top-navigation ul,
.top-navigation li,
.top-navigation a {
    direction: rtl;
}

.top-navigation ul li {
    border-right: 1px solid #fff;
    border-left: none;
}

/* =========================================================
   6. MAIN NAVIGATION
   ========================================================= */

#site-navigation {
    float: right;
    direction: rtl;
}

#site-navigation .menu,
#site-navigation .nav-menu,
#site-navigation ul,
#site-navigation li,
#site-navigation a {
    direction: rtl;
}

#site-navigation ul li {
    margin-right: 0;
    margin-left: -3px;
}

#site-navigation ul li a {
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    text-align: start;
}

#site-navigation ul#primary-menu li.menu-item-has-children > a,
#site-navigation #primary-menu li.page_item_has_children > a {
    padding-right: 15px;
    padding-left: 30px;
}

#site-navigation ul li.menu-item-has-children > a::before,
#site-navigation ul li.page_item_has_children > a::before {
    right: auto;
    left: 10px;
}

#site-navigation ul.sub-menu,
#site-navigation ul.children {
    right: 0;
    left: auto;
    direction: rtl;
}

#site-navigation ul.sub-menu ul,
#site-navigation ul.children ul {
    right: auto;
    left: -100%;
    top: -20%;
}

#site-navigation ul.sub-menu li.menu-item-has-children > a::before,
#site-navigation ul.children li.page_item_has_children > a::before {
    content: "\f104";
}

.np-home-icon,
.np-home-icon a,
.menu-toggle {
    float: right;
}

.np-home-icon,
.np-home-icon a,
.menu-toggle {
    direction: ltr;
}

.sub-toggle {
    direction: ltr;
}

/* =========================================================
   7. SEARCH
   ========================================================= */

.np-header-search-wrapper {
    float: left;
    direction: ltr;
}

.np-header-search-wrapper .search-form-main {
    right: auto;
    left: 0;
    direction: rtl;
    text-align: right;
}

.np-header-search-wrapper .search-form-main::before {
    right: auto;
    left: 15px;
    border-right: none;
    border-left: 10px solid transparent;
}

.np-header-search-wrapper .search-form-main .search-field,
.np-header-search-wrapper .search-form-main .search-submit {
    float: right;
}

.search-form,
.search-form label,
.search-form .search-field,
.search-form .search-submit,
.widget_search,
.widget_search form {
    direction: rtl;
}

.search-field {
    text-align: start;
}

.search-submit,
.search-form button {
    direction: ltr;
}

/* =========================================================
   8. TICKER
   ========================================================= */

.ticker-caption {
    float: right;
    margin-right: 0;
    margin-left: 20px;
    direction: rtl;
    text-align: start;
}

.ticker-content-wrapper {
    float: right;
    direction: rtl;
}

.ticker-content-wrapper .post-cats-list {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

.news-ticker-title,
.news-ticker-title > a {
    direction: rtl;
    text-align: start;
}

.post-cats-list,
.post-cats-list a {
    direction: rtl;
}

.post-cats-list a {
    margin-right: 0;
    margin-left: 5px;
}

.np-ticker-block .lSAction {
    right: auto;
    left: 10px;
}

/* Keep the slider/carousel calculation engine LTR.
   Only its visible Persian content is RTL. */
.slider-posts,
.lSSlideOuter,
.news_portal_featured_slider .slider-posts,
.np-block-posts-wrapper {
    direction: ltr;
}

.slider-posts .np-single-post,
.lSSlideOuter .np-single-post,
.news_portal_featured_slider .np-slide-content-wrap,
.np-slide-content-wrap {
    direction: rtl;
    text-align: right;
}

/* =========================================================
   9. POST META
   ========================================================= */

.np-post-meta,
.entry-meta,
.np-post-meta span,
.entry-meta span,
.posted-on,
.byline,
.cat-links,
.comments-link,
.tags-links {
    direction: rtl;
}

.np-post-meta span,
.entry-meta span {
    margin-right: 0;
    margin-left: 15px;
}

.posted-on::before,
.byline::before,
.cat-links::before,
.comments-link::before {
    margin-right: 0;
    margin-left: 5px;
}

.tags-links::before {
    margin-right: 0;
    margin-left: 3px;
}

/* =========================================================
   10. FEATURED SLIDER
   ========================================================= */

.news_portal_featured_slider {
    direction: rtl;
}

.news_portal_featured_slider .slider-posts {
    float: right;
    direction: ltr;
}

.news_portal_featured_slider .featured-posts {
    float: left;
    direction: rtl;
}

.news_portal_featured_slider .featured-posts .np-single-post-wrap {
    float: right;
    padding-right: 5px;
    padding-left: 0;
    direction: rtl;
}

.news_portal_featured_slider .slider-posts .lSAction {
    right: auto;
    left: 20px;
}

.news_portal_featured_slider .slider-posts .lSAction a,
.np-ticker-block .lSAction a {
    direction: ltr;
}

.news_portal_featured_slider .np-slide-content-wrap,
.news_portal_featured_posts .np-single-post .np-post-content {
    right: 0;
    left: auto;
    direction: rtl;
    text-align: right;
}

/* =========================================================
   11. MAIN CONTENT / SIDEBAR
   ========================================================= */

#primary,
.home.blog #primary {
    float: right;
    direction: rtl;
}

#secondary,
.home.blog #secondary {
    float: left;
    direction: rtl;
}

.left-sidebar #primary {
    float: left;
}

.left-sidebar #secondary {
    float: right;
}

/* =========================================================
   12. POST BLOCKS / CARDS
   ========================================================= */

.np-block-title,
.widget-title,
.page-header .page-title,
.np-related-title {
    direction: rtl;
    text-align: start;
}

.np-single-post,
.np-single-post-wrap,
.np-post-thumb,
.np-post-content,
.np-primary-block-wrap,
.np-secondary-block-wrap {
    direction: rtl;
}

.np-secondary-block-wrap .np-post-thumb,
.news_portal_default_tabbed .np-post-thumb {
    float: right;
}

.np-secondary-block-wrap .np-post-content,
.news_portal_default_tabbed .np-post-content {
    float: right;
    text-align: start;
}

.news_portal_block_posts .np-primary-block-wrap {
    float: right;
    width: 48%;
}

.news_portal_block_posts .np-secondary-block-wrap {
    float: left;
    width: 49%;
}

.news_portal_block_posts .layout2 .np-primary-block-wrap,
.news_portal_block_posts .layout2 .np-secondary-block-wrap {
    margin-right: -3%;
    margin-left: 0;
}

.news_portal_block_posts .layout2 .np-primary-block-wrap .np-single-post,
.news_portal_block_posts .layout2 .np-secondary-block-wrap .np-single-post {
    margin-right: 3%;
    margin-left: -4px;
}

.news_portal_block_posts .layout3 .np-secondary-block-wrap {
    margin-right: -2%;
    margin-left: 0;
}

.news_portal_block_posts .layout3 .np-secondary-block-wrap .np-single-post {
    float: right;
    margin-right: 2%;
    margin-left: 0;
}

.news_portal_block_posts .layout3 .np-primary-block-wrap,
.news_portal_block_posts .layout3 .np-secondary-block-wrap,
.news_portal_block_posts .layout3 .np-single-post {
    direction: rtl;
}

/* =========================================================
   13. RECENT POSTS
   ========================================================= */

.news_portal_recent_posts .np-recent-posts-wrapper {
    direction: rtl;
}

.news_portal_recent_posts .np-recent-posts-wrapper .np-post-thumb {
    float: right;
    width: 30%;
}

.news_portal_recent_posts .np-recent-posts-wrapper .np-post-content {
    float: right;
    width: 66%;
    margin-right: 4%;
    margin-left: 0;
    text-align: start;
}

/* =========================================================
   14. FEATURED POSTS
   ========================================================= */

.news_portal_featured_posts .np-featured-posts-wrapper {
    margin-right: -2%;
    margin-left: 0;
    direction: rtl;
}

.news_portal_featured_posts .np-single-post-wrap {
    float: right;
    margin-right: 2%;
    margin-left: 0;
    direction: rtl;
}

.news_portal_featured_posts .np-single-post-wrap .np-post-thumb,
.news_portal_featured_posts .np-single-post-wrap .np-post-content {
    float: right;
}

.news_portal_featured_posts .np-single-post-wrap .np-post-content {
    margin-right: 4%;
    margin-left: 0;
    text-align: start;
}

.np-home-middle-section {
    direction: rtl;
}

.np-home-middle-section .middle-primary {
    float: right;
}

.np-home-middle-section .middle-aside {
    float: left;
}

.middle-primary .news_portal_featured_posts .np-single-post-wrap {
    float: right;
    margin-right: 2%;
    margin-left: 0;
}

.middle-primary .news_portal_featured_posts .np-featured-posts-wrapper {
    margin-right: -2%;
    margin-left: 0;
}

/* =========================================================
   15. ARCHIVE
   ========================================================= */

.np-archive-post-content-wrapper {
    direction: rtl;
    text-align: right;
}

.np-archive-post-content-wrapper::before {
    right: 20px;
    left: auto;
    border-right: none;
    border-left: 15px solid transparent;
}

.np-archive-grid-post-wrapper {
    margin-right: -3%;
    margin-left: 0;
    direction: rtl;
}

.np-archive-grid-post-wrapper article {
    margin-right: 0;
    margin-left: -4px;
    direction: rtl;
}

.np-archive-more .np-button i {
    margin-right: 0;
    margin-left: 8px;
    direction: ltr;
}

/* =========================================================
   16. WIDGETS
   ========================================================= */

.widget,
.widget-title,
.widget ul,
.widget li,
.widget a {
    direction: rtl;
}

.widget_archive a,
.widget_categories a,
.widget_recent_entries a,
.widget_meta a,
.widget_recent_comments li,
.widget_rss li,
.widget_pages li a,
.widget_nav_menu li a {
    padding-right: 22px;
    padding-left: 0;
    text-align: start;
}

.widget_archive a::before,
.widget_categories a::before,
.widget_recent_entries a::before,
.widget_meta a::before,
.widget_recent_comments li::before,
.widget_rss li::before,
.widget_pages li a::before,
.widget_nav_menu li a::before {
    right: 0;
    left: auto;
    content: "\f104";
}

.widget_recent_entries .post-date {
    padding-right: 24px;
    padding-left: 0;
    direction: rtl;
}

.widget_nav_menu .sub-menu {
    padding-right: 10px;
    padding-left: 0;
}

.widget_tag_cloud,
.widget_tag_cloud .tagcloud {
    direction: rtl;
    text-align: start;
}

.widget_tag_cloud .tagcloud a {
    margin: 0 0 10px 5px;
}

.news_portal_default_tabbed ul.widget-tabs {
    direction: rtl;
}

.news_portal_default_tabbed ul.widget-tabs li {
    margin-right: 0;
    margin-left: -4px;
}

.news_portal_default_tabbed ul.widget-tabs li.ui-tabs-active::before,
.news_portal_default_tabbed ul.widget-tabs li:hover::before {
    right: 50%;
    left: auto;
    border-right: none;
    border-left: 5px solid transparent;
}

/* =========================================================
   17. COMMENTS
   ========================================================= */

#comments,
.comments-area,
.comments-area ol,
.comments-area ul,
.comment-list,
.comment,
.comment-body,
.comment-content,
.comment-respond,
.comment-form {
    direction: rtl;
}

.news_portal_default_tabbed #comments ul .np-comment-avatar {
    float: right;
}

.news_portal_default_tabbed #comments ul .np-comment-desc-wrap {
    float: left;
    direction: rtl;
}

.comment-author,
.comment-author a {
    direction: rtl;
}

.comment-author img {
    margin-right: 0;
    margin-left: 15px;
    vertical-align: text-top;
}

.comment-metadata {
    margin-top: -10px;
    padding-right: 57px;
    padding-left: 0;
    text-align: start;
}

.comment-content {
    padding-right: 58px;
    padding-left: 0;
    text-align: start;
}

.commentmetadata {
    float: left;
}

.comments-area ol.children {
    margin: 0 15px 0 0;
}

#cancel-comment-reply-link::before {
    margin: 0 20px 0 5px;
}

/* =========================================================
   18. COMMENT / CONTENT FORMS
   ========================================================= */

.comment-form label,
.comment-form input,
.comment-form textarea,
.comment-form select,
.comment-form p,
.contact-form input,
.contact-form textarea,
.contact-form select {
    direction: rtl;
    text-align: start;
}

input[type="email"],
input[type="url"] {
    /* These fields can contain LTR strings. */
    unicode-bidi: plaintext;
}

textarea {
    padding-right: 3px;
    padding-left: 0;
    direction: rtl;
    text-align: start;
}

/* =========================================================
   19. POST NAVIGATION / PAGINATION
   ========================================================= */

.nav-links {
    direction: rtl;
}

.nav-links .nav-previous,
.nav-links .nav-next {
    float: right;
}

.nav-links .nav-next {
    float: left;
    text-align: end;
}

.nav-links .nav-previous a,
.nav-links .nav-next a,
.page-numbers,
.pagination a,
.pagination span {
    direction: rtl;
}

.nav-links .nav-previous a::before {
    content: "\f0d9";
    font-family: "FontAwesome";
    font-style: normal;
    margin-right: 0;
    margin-left: 5px;
    float: none;
    direction: ltr;
}

.nav-links .nav-next a::after {
    content: "\f0da";
    font-family: "FontAwesome";
    font-style: normal;
    margin-left: 0;
    margin-right: 5px;
    float: none;
    direction: ltr;
}

/* =========================================================
   20. ALIGNMENTS
   ========================================================= */

/*
 * WordPress .alignleft/.alignright are visual/editor classes.
 * Their RTL meanings are intentionally mirrored to preserve
 * the theme's original visual behavior.
 */
.alignleft {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

.alignright {
    float: left;
    margin-left: 0;
    margin-right: 15px;
}

.entry-thumbnail {
    float: right;
}

.entry-excerpt {
    float: left;
    direction: rtl;
    text-align: start;
}

.short-content + .bttn {
    float: left;
}

/* =========================================================
   21. GALLERY / COLUMNS
   ========================================================= */

.gallery {
    margin-right: -2%;
    margin-left: 0;
    direction: rtl;
}

.gallery-item {
    margin-right: 2%;
    margin-left: 0;
    direction: rtl;
}

.mt-column-wrapper {
    margin-right: -2%;
    margin-left: 0;
    direction: rtl;
}

.mt-column-1,
.mt-column-2,
.mt-column-3,
.mt-column-4 {
    float: right;
    margin-right: 2%;
    margin-left: 0;
}

/* =========================================================
   22. BREADCRUMBS
   ========================================================= */

.breadcrumb,
.breadcrumbs,
.breadcrumb-trail,
.breadcrumbs-container {
    direction: rtl;
    text-align: start;
}

.breadcrumb a,
.breadcrumbs a,
.breadcrumb-trail a {
    direction: rtl;
}

.breadcrumb .separator,
.breadcrumbs .separator,
.breadcrumb-trail .separator {
    display: inline-block;
    direction: ltr;
}

/* =========================================================
   23. FOOTER
   ========================================================= */

.site-footer,
#top-footer,
#bottom-footer,
.footer-widget,
.site-info,
#footer-navigation {
    direction: rtl;
}

.site-info {
    float: right;
    text-align: start;
}

#footer-navigation ul {
    float: left;
    direction: rtl;
}

#footer-navigation ul li,
#footer-navigation ul li a {
    direction: rtl;
}

#footer-navigation ul li a {
    border-right: 2px solid #7f7f7f;
    border-left: none;
    margin-right: 10px !important;
    margin-left: 0 !important;
    padding-right: 10px;
    padding-left: 0;
}

#footer-navigation ul li:first-child a {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#top-footer .np-footer-widget-wrapper {
    margin-right: -2%;
    margin-left: 0;
    direction: rtl;
}

#top-footer.footer_column_one .np-footer-widget,
#top-footer.footer_column_two .np-footer-widget,
#top-footer.footer_column_three .np-footer-widget,
#top-footer.footer_column_four .np-footer-widget {
    float: right;
    margin-right: 2%;
    margin-left: 0;
}

/* Preserve the valid border rule from the supplied file. */
#top-footer .widget-title {
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   24. SCROLL-UP / ACCESSIBILITY
   ========================================================= */

#np-scrollup {
    right: auto;
    left: 20px;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
    right: 5px;
    left: auto;
}

/* =========================================================
   25. LTR EXCEPTIONS
   ========================================================= */

/*
 * Do NOT apply RTL to these elements:
 * - Font Awesome/icon glyphs
 * - slider calculations
 * - social icon rows
 * - URLs / email addresses when they are displayed as technical strings
 * - code/preformatted content
 */
.fa,
.fas,
.far,
.fal,
.fab,
[class^="fa-"],
[class*=" fa-"],
.fontawesome,
.dashicons,
.icon,
i[class*="icon"] {
    direction: ltr;
    unicode-bidi: isolate;
}

pre,
code,
kbd,
samp,
var,
.wp-block-code,
.highlight,
.syntaxhighlighter {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

pre *,
code *,
kbd *,
samp *,
var * {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

a[href^="http://"],
a[href^="https://"],
a[href^="mailto:"] {
    unicode-bidi: plaintext;
}

/* Common technical text fields. */
input[type="url"],
input[type="email"] {
    unicode-bidi: plaintext;
}

/* Numbers can stay naturally ordered inside Persian text. */
time,
.post-date,
.entry-date {
    unicode-bidi: plaintext;
}

/* =========================================================
   26. WORDPRESS MEDIA / EMBEDS
   ========================================================= */

.wp-caption,
.wp-caption-text,
.gallery-caption,
figcaption {
    direction: rtl;
    text-align: start;
}

iframe,
video,
audio,
embed,
object {
    direction: ltr;
}

/* =========================================================
   27. MOBILE / TABLET
   ========================================================= */

@media (max-width: 768px) {

    body,
    .site,
    .site-content,
    .site-main,
    #primary,
    #secondary,
    .widget-area,
    .entry-content,
    .entry-summary,
    .page-content,
    .widget,
    .np-post-content,
    .np-slide-content-wrap {
        direction: rtl;
    }

    #site-navigation,
    #site-navigation .menu,
    #site-navigation .nav-menu,
    #site-navigation ul,
    #site-navigation li,
    #site-navigation a {
        direction: rtl;
    }

    .sub-toggle {
        right: auto;
        left: 15px;
        direction: ltr;
    }

    .sub-toggle i {
        /*
         * This is an icon orientation change, not text reversal.
         * Keep because the original mobile submenu icon needs
         * to point toward the RTL submenu direction.
         */
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .np-ticker-block .lSAction {
        display: none !important;
    }

    #masthead .site-branding {
        float: none;
        direction: rtl;
        text-align: center;
    }

    #footer-navigation .menu-toggle {
        display: none;
    }

    .news_portal_featured_slider .slider-posts {
        direction: ltr;
    }

    .news_portal_featured_slider .featured-posts,
    .news_portal_featured_slider .np-slide-content-wrap {
        direction: rtl;
    }
}

/* =========================================================
   28. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-title,
    .site-description,
    .entry-title,
    .page-title,
    .widget-title,
    .np-block-title,
    .np-related-title {
        direction: rtl;
        text-align: start;
    }

    .entry-content,
    .entry-summary,
    .page-content,
    .widget,
    .comment-content {
        direction: rtl;
        text-align: start;
    }

    .np-header-search-wrapper .search-form-main {
        direction: rtl;
    }
}

/* =========================================================
   RTL — CAROUSEL TITLE + NAVIGATION
   Persian title on RIGHT
   Carousel controls on LEFT
   ========================================================= */

.np-block-title-nav-wrap {
    position: relative;
    direction: rtl;
}

/* Persian/Dari section title */
.np-block-title-nav-wrap .np-block-title {
    direction: rtl;
    text-align: right;
    padding-left: 80px;
}

/* Carousel arrows on LEFT */
.np-block-title-nav-wrap .carousel-nav-action {
    position: absolute;
    right: auto;
    left: 0;
    top: 0;

    direction: ltr;

    display: flex;
    gap: 6px;
    margin-left: 0;
	padding-top: 3px;
}

/* Keep arrow icons unchanged */
.np-block-title-nav-wrap .carousel-nav-action a,
.np-block-title-nav-wrap .carousel-nav-action i {
    direction: ltr;
}

/* =========================================================
   FOOTER — FULL RTL FIX
   ========================================================= */

/* Footer overall */
#colophon,
.site-footer,
.footer-widgets,
.footer-widget-area {
    direction: rtl !important;
    text-align: right !important;
}

/* Footer columns */
#colophon .widget,
.site-footer .widget {
    direction: rtl !important;
    text-align: right !important;
}

/* Footer widget titles */
#colophon .widget-title,
.site-footer .widget-title,
#colophon .widget-title a,
.site-footer .widget-title a {
    direction: rtl !important;
    text-align: right !important;
}

/* =========================================================
   CONTACT INFO
   ========================================================= */

#colophon ul.contact-info,
.site-footer ul.contact-info,
.contact-info {
    direction: rtl !important;
    text-align: right !important;

    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Each contact row */
#colophon .contact-info li,
.site-footer .contact-info li,
.contact-info li {
    direction: rtl !important;
    text-align: right !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    justify-content: flex-start !important;

    list-style: none !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

/* Remove theme bullets / pseudo-elements */
#colophon .contact-info li::before,
#colophon .contact-info li::after,
.site-footer .contact-info li::before,
.site-footer .contact-info li::after,
.contact-info li::before,
.contact-info li::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   CONTACT ICONS
   ========================================================= */

#colophon .contact-info li i,
.site-footer .contact-info li i,
.contact-info li i {
    direction: ltr !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    min-width: 20px !important;

    margin: 0 0 0 8px !important;

    text-align: center !important;

    flex-shrink: 0 !important;
}

/* =========================================================
   PERSIAN / DARI TEXT
   ========================================================= */

#colophon .contact-info li,
#colophon .contact-info li a,
.site-footer .contact-info li,
.site-footer .contact-info li a {
    font-family: "Yekan", Tahoma, Arial, sans-serif !important;
}

/* Normal Persian links */
#colophon .contact-info li a,
.site-footer .contact-info li a {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext !important;

    display: inline-block !important;

    text-decoration: none !important;
}

/* =========================================================
   PHONE NUMBER
   ========================================================= */

#colophon .contact-info a[href^="tel:"],
.site-footer .contact-info a[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;

    white-space: nowrap !important;
}

/* =========================================================
   EMAIL
   ========================================================= */

#colophon .contact-info a[href^="mailto:"],
.site-footer .contact-info a[href^="mailto:"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;

    white-space: nowrap !important;
}

/* =========================================================
   FOOTER LINKS
   ========================================================= */

#colophon a,
.site-footer a {
    unicode-bidi: plaintext;
}

/* =========================================================
   FOOTER LISTS
   ========================================================= */

#colophon ul,
#colophon ol,
.site-footer ul,
.site-footer ol {
    direction: rtl !important;
    text-align: right !important;
}

/* =========================================================
   FOOTER NEWS / RECENT POSTS
   ========================================================= */

#colophon .recent-posts,
#colophon .widget_recent_entries,
#colophon .widget_archive,
#colophon .widget_categories,
.site-footer .recent-posts,
.site-footer .widget_recent_entries,
.site-footer .widget_archive,
.site-footer .widget_categories {
    direction: rtl !important;
    text-align: right !important;
}

/* Post links in footer */
#colophon .widget_recent_entries li,
#colophon .widget_categories li,
#colophon .widget_archive li,
.site-footer .widget_recent_entries li,
.site-footer .widget_categories li,
.site-footer .widget_archive li {
    direction: rtl !important;
    text-align: right !important;
}






/* ================================================
   DARI/PERSIAN POST TITLE — CAROUSEL OVERLAY FIX
   ================================================ */

/* Position and direction of the post overlay */
.news_portal_carousel .np-single-post .np-post-content {
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    padding: 12px 20px 20px !important;
}

/* Exact title element confirmed in Inspect */
.news_portal_carousel .np-single-post .np-post-content h3.np-post-title.small-size {
    direction: rtl !important;
    text-align: right !important;
    text-transform: none !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;

    line-height: 1.7 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

/* Link containing the Persian headline */
.news_portal_carousel .np-single-post .np-post-content h3.np-post-title.small-size a {
    direction: rtl !important;
    text-align: right !important;
    text-transform: none !important;

    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    line-height: inherit !important;
}

/* Prevent title text from inheriting unwanted capitalization */
.news_portal_carousel .np-single-post .np-post-content h3.np-post-title,
.news_portal_carousel .np-single-post .np-post-content h3.np-post-title a {
    letter-spacing: normal !important;
}

