/*
* RTL support for Newspaper Eye theme
* Author: Noor Alam
*/

/* Base RTL styles */
body {
  direction: rtl;
  text-align: right;
}

/* List padding adjustments */
ul, ol {
  padding-right: 2.5rem;
  padding-left: 0;
}

/* Text alignment fixes */
.text-left {
  text-align: right !important;
}

.text-right {
  text-align: left !important;
}

/* Header adjustments */
.ht-row {
  flex-direction: row-reverse;
}

.header .web-date {
  margin-left: 10px;
  margin-right: 0;
}

.header .web-date i {
  margin-left: 5px;
  margin-right: 0;
}

.header .breaking-news-title {
  margin-left: 10px;
  margin-right: 0;
}

.header .breaking-news-title i {
  margin-left: 5px;
  margin-right: 0;
}

.header .categroy-tag a {
  margin-left: 10px;
  margin-right: 0;
}

.header .categroy-tag a:last-child {
  margin-left: 0;
}

.header .categroy-tag i {
  margin-left: 4px;
  margin-right: 0;
}

.header .social-links {
  margin-right: auto;
  margin-left: 0;
}

/* Search box adjustments */
.search-box input.search-submit {
  left: 0;
  right: auto;
}

.header .search-box input.search-field {
  padding-left: 50px;
  padding-right: 0.75rem;
}

.search-box form:before {
  left: 20px;
  right: auto;
}

/* Navigation menu RTL */
.main-navigation ul li {
  float: right;
}

.main-navigation ul li:after {
  left: 0;
  right: auto;
}

.main-navigation ul li ul {
  right: 0;
  left: auto;
  text-align: right;
}

.main-navigation ul li ul ul {
  right: 250px;
  left: auto;
}

.main-navigation ul li.menu-item.menu-item-has-children>a:after {
  left: 2px;
  right: auto;
}

.main-navigation ul ul li.menu-item.menu-item-has-children>a:after {
  left: 12px;
  right: auto;
}

.main-navigation ul>li.menu-item.menu-item-has-children {
  padding-left: 15px;
  padding-right: 0;
}

/* Widget area positioning */
.widget-area {
  left: 0;
  right: auto;
}

.widget h2:before,
h2.widget-title:before {
  right: 0;
  left: auto;
}

.widget h2:after,
h2.widget-title:after {
  left: 0;
  right: auto;
}

/* Search popup RTL */
.nssearch {
  flex-direction: row-reverse;
}

.sclose {
  float: left;
}

/* Category menu RTL */
#nseye-catmenu {
  direction: rtl;
}

#nseye-smenu-ul .nsy-toggle {
  left: 0;
  right: auto;
  margin-left: 5px;
  margin-right: 0;
}

.nseye-smenu-sec ul li>ul.sub-menu {
  margin-right: 10px;
  margin-left: 0;
}

/* List and grid items RTL */
.nx-list-item .single-nx-list-item.nx-no-img {
  border-right: 5px solid var(--color-primary);
  border-left: 0;
}

.nx-list-item .nx-single-list-details {
  padding: 20px 25px 20px 10px;
}

/* Grid item category positioning */
a.catimg-top {
  left: 20px;
  right: auto;
}

.nbox-grid-cat {
  right: 0;
  left: auto;
  border-radius: 10px 0 0 10px;
}

/* Entry meta and pagination RTL */
.entry-meta a,
.entry-meta span,
.ghead-meta,
.reding-time {
  margin-left: 5px;
  margin-right: 0;
}

.pagination .nav-links a,
.pagination .nav-links span {
  margin-left: 10px;
  margin-right: 0;
}

.navigation.post-navigation .nav-links .nav-next {
  margin-right: auto;
  margin-left: 0;
}

/* Footer entry adjustments */
footer.entry-footer span {
  margin-left: 10px;
  margin-right: 0;
  padding-left: 10px;
  padding-right: 0;
  border-left: 1px solid #ccc;
  border-right: 0;
}

footer.entry-footer span:last-child {
  border-left: none;
}

/* Misc RTL adjustments */
.serach-show {
  margin-right: 20px;
  margin-left: 0;
}

.newspaper-eye-top-social i,
.besearch-icon i {
  margin-right: 10px;
  margin-left: 0;
}

.nx-list-item .nx-list-load-more-btn i {
  margin-right: 5px;
  margin-left: 0;
}

.tag-btns a {
  margin-left: 10px;
  margin-right: 0;
}

a.catname {
  margin-left: 5px;
  margin-right: 0;
}

span.catname {
  margin-left: 10px;
  margin-right: 0;
}

.tagcloud a {
  margin: 0 0 5px 2px;
}

/* Click to top positioning */
a#clickTop {
  left: 5px !important;
  right: auto !important;
}

/* Responsive RTL adjustments */
@media (max-width: 580px) {
  .nx-list-item .nx-single-list-details {
    padding-right: 20px;
    padding-left: 20px;
  }
}
