/*
Theme Name: News Box
Theme URI: https://wpthemespace.com/product/news-box/
Author: Noor alam
Author URI: https://profiles.wordpress.org/nalam-1/
Description:  News Box is a smart WordPress news and magazine theme. News Box is right choice for news paper and magazine website. You can create full feature news paper and magazine website by the News Box WordPress theme. News Box WordPress theme support custom header, header banner widget, home page feature section, feature image, color changing options, custom background, footer widget, font Awesome icons. News Box also support two different type content view. So you can enjoy your news paper or magazine website with the WordPress news Box theme.
Version: 1.3.0
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-box
Tags: news, blog, Two-columns, Right-sidebar, custom-header,custom-colors, custom-logo, footer-widgets, theme-options, custom-menu, featured-images, editor-style, microformats, sticky-post, flexible-header, rtl-language-support 

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*--------------------------------------------------------------
>>> RTL TABLE OF CONTENTS:
----------------------------------------------------------------
# General RTL Styles
# Header RTL Styles  
# Navigation RTL Styles
# Content Area RTL Styles
# Sidebar RTL Styles
# Footer RTL Styles
# Form Elements RTL Styles
# Comments RTL Styles
# Responsive RTL Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# General RTL Styles
--------------------------------------------------------------*/

body {
  direction: rtl;
  text-align: right;
}

/* Reset text alignment for RTL */
.site-branding a {
  text-align: right;
}

/* Reverse floats */
.alignleft {
  float: right;
  margin-left: 1.5em;
  margin-right: 0;
}

.alignright {
  float: left;
  margin-right: 1.5em;
  margin-left: 0;
}

.aligncenter {
  clear: both;
  display: block;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Header RTL Styles
--------------------------------------------------------------*/

/* Header elements */
.site-header {
  direction: rtl;
}

.site-branding {
  text-align: right;
}

.custom-logo-link {
  float: right;
}

/* Search form in header */
.header-search {
  float: left;
}

.header-search .search-form {
  direction: rtl;
}

.search-field {
  text-align: right;
  padding-right: 40px;
  padding-left: 10px;
}

.search-submit {
  right: auto;
  left: 0;
}

/*--------------------------------------------------------------
# Navigation RTL Styles
--------------------------------------------------------------*/

/* Main navigation */
.main-navigation {
  direction: rtl;
}

.main-navigation ul {
  text-align: right;
}

.main-navigation li {
  float: right;
  text-align: right;
}

.main-navigation a {
  text-align: right;
}

/* Dropdown menus */
.main-navigation ul ul {
  float: right;
  left: auto;
  right: -999em;
}

.main-navigation ul ul ul {
  left: auto;
  right: -999em;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  right: auto;
  left: 100%;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  right: auto;
  left: 100%;
}

/* Dropdown arrows */
.dropdown-toggle {
  left: 0;
  right: auto;
}

/* Mobile menu button */
.menu-toggle {
  float: right;
}

/* Bootstrap navbar RTL fixes */
.navbar-nav {
  float: right !important;
}

.navbar-nav > li {
  float: right;
}

.navbar-right {
  float: left !important;
}

.navbar-left {
  float: right !important;
}

.dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

.dropdown-menu-right {
  left: 0;
  right: auto;
}

.dropdown-menu-left {
  left: auto;
  right: 0;
}

/*--------------------------------------------------------------
# Content Area RTL Styles
--------------------------------------------------------------*/

/* Main content container */
.site-main {
  direction: rtl;
}

/* Post content */
.entry-content,
.entry-summary,
.page-content {
  direction: rtl;
  text-align: right;
}

/* Post meta */
.entry-meta {
  text-align: right;
}

.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
  margin-right: 0;
  margin-left: 1em;
}

/* Post thumbnails */
.post-thumbnail {
  text-align: right;
}

/* Pagination */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  direction: rtl;
}

.nav-previous {
  float: right;
  text-align: right;
}

.nav-next {
  float: left;
  text-align: left;
}

/* Page links */
.page-links {
  direction: rtl;
}

.page-links a,
.page-links > span {
  margin-right: 0;
  margin-left: 0.3076923077em;
}

/*--------------------------------------------------------------
# Sidebar RTL Styles  
--------------------------------------------------------------*/

.widget-area {
  direction: rtl;
}

.widget {
  text-align: right;
}

.widget-title {
  text-align: right;
}

/* Widget lists */
.widget ul {
  text-align: right;
}

.widget li {
  text-align: right;
}

/* Widget forms */
.widget input,
.widget textarea,
.widget select {
  direction: rtl;
  text-align: right;
}

/* Search widget */
.widget_search .search-field {
  direction: rtl;
  text-align: right;
}

/* Calendar widget */
.widget_calendar table {
  direction: rtl;
}

.widget_calendar th,
.widget_calendar td {
  text-align: center;
}

/* Tag cloud */
.tagcloud a {
  margin-left: 0.375em;
  margin-right: 0;
}

/*--------------------------------------------------------------
# Footer RTL Styles
--------------------------------------------------------------*/

.site-footer {
  direction: rtl;
  text-align: right;
}

.footer-widgets {
  direction: rtl;
}

.footer-widgets .widget {
  text-align: right;
}

.site-info {
  text-align: right;
}

/*--------------------------------------------------------------
# Form Elements RTL Styles
--------------------------------------------------------------*/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  direction: rtl;
  text-align: right;
}

/* Button alignment */
.wp-block-button {
  text-align: right;
}

.wp-block-button.alignleft {
  text-align: right;
}

.wp-block-button.alignright {
  text-align: left;
}

/*--------------------------------------------------------------
# Comments RTL Styles
--------------------------------------------------------------*/

.comment-content {
  direction: rtl;
  text-align: right;
}

.comment-author {
  float: right;
}

.comment-metadata {
  text-align: right;
}

.reply {
  text-align: right;
}

.comment-form {
  direction: rtl;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  text-align: right;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
  float: right;
  margin-left: 0.5em;
  margin-right: 0;
}

/* Comment list */
.comment-list {
  text-align: right;
}

.comment-list .children {
  margin-right: 0;
  margin-left: 2em;
}

/*--------------------------------------------------------------
# News Box Specific RTL Styles
--------------------------------------------------------------*/

/* Table borders RTL */
.entry-content table,
.comment-content table {
  border-right: 1px solid #ccc;
  border-left: none;
  border-bottom: 1px solid #ccc;
}

.entry-content table td,
.entry-content table th,
.comment-content table td,
.comment-content table th {
  border-left: 1px solid #ccc;
  border-right: none;
  border-top: 1px solid #ccc;
}

/* Image alignment RTL overrides from default.css */
.alignleft {
  float: right !important;
  margin-left: 1.5em !important;
  margin-right: 0 !important;
}

.alignright {
  float: left !important;
  margin-right: 1.5em !important;
  margin-left: 0 !important;
}

/* Content area specific RTL styles */
.content-area,
.news-box-sidebar {
  direction: rtl;
}

/* Search form positioning */
.search-form {
  direction: rtl;
}

/* Header banner */
.header-banner {
  text-align: right;
}

/* Feature posts */
.feature-post {
  direction: rtl;
}

.feature-post .post-content {
  text-align: right;
}

/* Post cards */
.post-card {
  direction: rtl;
  text-align: right;
}

/* Ticker */
.news-ticker {
  direction: rtl;
}

.ticker-content {
  text-align: right;
}

/* Social media icons */
.social-icons {
  text-align: right;
}

.social-icons a {
  margin-left: 10px;
  margin-right: 0;
}

/* Bootstrap columns RTL */
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
  float: right;
}

/* Pull classes RTL */
.pull-left {
  float: right !important;
}

.pull-right {
  float: left !important;
}

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

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

/*--------------------------------------------------------------
# Responsive RTL Styles
--------------------------------------------------------------*/

@media screen and (max-width: 768px) {
  .main-navigation ul {
    text-align: right;
  }
  
  .menu-toggle {
    float: right;
  }
  
  .site-branding {
    text-align: right;
  }
  
  .header-search {
    float: none;
    text-align: right;
    margin-top: 1em;
  }
}

@media screen and (max-width: 600px) {
  .comment-list .children {
    margin-left: 1em;
  }
  
  .nav-previous,
  .nav-next {
    float: none;
    text-align: center;
    margin-bottom: 1em;
  }
}

/*--------------------------------------------------------------
# WordPress Block Editor RTL Styles
--------------------------------------------------------------*/

/* Block alignment */
.wp-block-image.alignleft {
  float: right;
  margin-left: 1em;
  margin-right: 0;
}

.wp-block-image.alignright {
  float: left;
  margin-right: 1em;
  margin-left: 0;
}

/* Quote blocks */
.wp-block-quote {
  text-align: right;
}

.wp-block-quote cite {
  text-align: right;
}

/* List blocks */
.wp-block-list {
  text-align: right;
}

/* Table blocks */
.wp-block-table {
  direction: rtl;
}

.wp-block-table th,
.wp-block-table td {
  text-align: right;
}

/* Gallery blocks */
.wp-block-gallery {
  direction: rtl;
}

/* Group blocks */
.wp-block-group {
  direction: rtl;
}

/* Cover blocks */
.wp-block-cover {
  direction: rtl;
}

.wp-block-cover .wp-block-cover__inner-container {
  direction: rtl;
  text-align: right;
}