/*
Theme Name: X Blog
Template: x-blog
Description: RTL stylesheet for X Blog theme. This file adds right-to-left language support.
*/

/* RTL base direction */
html[dir="rtl"], body[dir="rtl"] {
  direction: rtl;
  unicode-bidi: embed;
}

/* Layout adjustments */
.baby-container,
.content-row,
.content-area,
.site-content .widget-area,
.left-sidebar .content-row,
.full-width .content-row,
.left-sidebar .content-area,
.full-width .content-area,
.site-content.full-width .widget-area,
.site-content.full-width aside section.widget {
  direction: rtl;
}

/* Text alignments */
.text-left {
  text-align: right;
}
.text-right {
  text-align: left;
}

/* Navigation and menus */
.main-navigation ul li {
  float: right;
}
.main-navigation ul ul {
  left: auto;
  right: -999em;
}
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  right: 100%;
  left: auto;
}
.main-navigation ul ul ul {
  right: -999em;
  left: auto;
}
.main-navigation ul ul ul ul ul {
  left: auto;
  right: 250px;
}
.main-navigation ul ul ul ul ul ul ul {
  left: 250px;
  right: auto;
}

/* Padding and margin swaps */
.entry-header span.posted-on,
.entry-footer span,
.entry-footer span i,
.entry-meta span i {
  margin-left: 10px;
  margin-right: 0;
}

.entry-footer span {
  margin-left: 20px;
  margin-right: 0;
}

.entry-footer span i {
  margin-left: 5px;
  margin-right: 0;
}

blockquote,
.format-quote p {
  border-right: 5px solid #ccc;
  border-left: none;
  padding-right: 15px;
  padding-left: 0;
}

/* Widget and calendar */
.widget ul li {
  border-left: 1px solid #fafafa;
  border-right: none;
}
.calendar_wrap td,
.calendar_wrap th {
  border-left: 1px solid #ccc;
  border-right: none;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
  .header-search-form {
    right: auto;
    left: 40px;
  }
}
