/* 1) Kill any sticky/fixed sidebar behavior that can create scroll-trap */
#secondary,
#secondary.sidebar,
#secondary.widget-area,
.sidebar,
.widget-area,
.cm-sidebar,
.newsup-sidebar,
aside#secondary,
aside.sidebar {
  position: static !important;
  top: auto !important;
}

/* 2) Aggressively remove any internal scroll area inside sidebar */
#secondary,
#secondary * ,
.sidebar,
.sidebar * ,
.widget-area,
.widget-area * ,
aside#secondary,
aside#secondary * ,
aside.sidebar,
aside.sidebar * {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* 3) Specifically target common "sticky sidebar" wrappers used by news themes */
.sticky-sidebar,
.sticky-sidebar * ,
.sidebar-sticky,
.sidebar-sticky * ,
.theiaStickySidebar,
.theiaStickySidebar * ,
.tg-site-sidebar,
.tg-site-sidebar * ,
.widget-area-inner,
.widget-area-inner * ,
.inside-sidebar,
.inside-sidebar * {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
/* Hide category badges (front-end only) */
body:not(.wp-admin) .mg-blog-category{
  display:none !important;
}
* 1) زبان‌های RTL (فارسی) */
html:lang(fa), html:lang(fa-IR) {
  direction: rtl;
}
html:lang(fa) .main-navigation,
html:lang(fa-IR) .main-navigation {
  direction: rtl;
  text-align: right;
}
/* =========================================
   LTR headings/titles for English + Swedish
   Replace iran-en / iran-sv with your real category slugs if needed
   ========================================= */

/* Single post/page titles */
body.category-iran-en .entry-title,
body.category-iran-sv .entry-title,
body.category-iran-en .page-title,
body.category-iran-sv .page-title,
body.category-iran-en .post-title,
body.category-iran-sv .post-title,
body.category-iran-en .title,
body.category-iran-sv .title {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

/* Headings inside the post content */
body.category-iran-en .entry-content h1,
body.category-iran-en .entry-content h2,
body.category-iran-en .entry-content h3,
body.category-iran-en .entry-content h4,
body.category-iran-en .entry-content h5,
body.category-iran-en .entry-content h6,
body.category-iran-sv .entry-content h1,
body.category-iran-sv .entry-content h2,
body.category-iran-sv .entry-content h3,
body.category-iran-sv .entry-content h4,
body.category-iran-sv .entry-content h5,
body.category-iran-sv .entry-content h6 {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

/* Archive / blog cards / post lists */
body.category-iran-en .mg-blog-post .title,
body.category-iran-sv .mg-blog-post .title,
body.category-iran-en .mg-blog-post h1,
body.category-iran-en .mg-blog-post h2,
body.category-iran-en .mg-blog-post h3,
body.category-iran-en .mg-blog-post h4,
body.category-iran-sv .mg-blog-post h1,
body.category-iran-sv .mg-blog-post h2,
body.category-iran-sv .mg-blog-post h3,
body.category-iran-sv .mg-blog-post h4 {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

/* Widgets / recent posts / side blocks if titles appear there */
body.category-iran-en .widget h1,
body.category-iran-en .widget h2,
body.category-iran-en .widget h3,
body.category-iran-en .widget h4,
body.category-iran-en .widget .title,
body.category-iran-sv .widget h1,
body.category-iran-sv .widget h2,
body.category-iran-sv .widget h3,
body.category-iran-sv .widget h4,
body.category-iran-sv .widget .title {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}
html[lang="sv-SE"] .small-post .entry-title,
html[lang="sv-SE"] .large-post .entry-title,
html[lang="sv-SE"] .featured-post .entry-title,
html[lang="sv-SE"] .mg-blog-post .entry-title,
html[lang="en-US"] .small-post .entry-title,
html[lang="en-US"] .large-post .entry-title,
html[lang="en-US"] .featured-post .entry-title,
html[lang="en-US"] .mg-blog-post .entry-title {
    direction: ltr !important;
    text-align: left !important;
}
.iwo-facebook-sidebar,
.iwo-facebook-sidebar .fb-page,
.iwo-facebook-sidebar .fb_iframe_widget,
.iwo-facebook-sidebar .fb_iframe_widget span,
.iwo-facebook-sidebar iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.iwo-facebook-sidebar .fb_iframe_widget,
.iwo-facebook-sidebar .fb_iframe_widget span,
.iwo-facebook-sidebar iframe {
    min-height: 700px !important;
    height: 700px !important;
}

.iwo-facebook-sidebar {
    overflow: visible !important;
}
.iwo-facebook-sidebar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.iwo-facebook-sidebar .fb-page,
.iwo-facebook-sidebar .fb_iframe_widget,
.iwo-facebook-sidebar .fb_iframe_widget span,
.iwo-facebook-sidebar iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.iwo-facebook-sidebar .fb_iframe_widget,
.iwo-facebook-sidebar .fb_iframe_widget span,
.iwo-facebook-sidebar iframe {
    height: 680px !important;
    min-height: 680px !important;
}
.iwo-facebook-sidebar .fb-page,
.iwo-facebook-sidebar iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.iwo-facebook-sidebar iframe {
    height: 680px !important;
}