/*
Theme Name:   X Blog Free
Description:  Blog, News and magazine WordPress theme with comprehensive RTL support.
X Blog Free, an exceptional WordPress theme that brings a new level of awesomeness to your blog, magazine, or news website. This theme, which is a child theme of X Blog, offers a range of impressive features and functionalities that will take your online presence to the next level. With X Blog Free, you have the freedom to unleash your creativity and showcase your content in a visually stunning and captivating way. The theme provides a collection of beautiful and professional layouts, allowing you to create a website that is both visually appealing and highly functional. One of the remarkable aspects of X Blog Free is its flexibility and editability. You have the power to customize and personalize every aspect of your website, ensuring that it aligns perfectly with your unique vision and brand identity. Whether it's adjusting the colors, typography, or layout, X Blog Free empowers you to create a truly tailored experience for your visitors. The theme now includes comprehensive RTL (Right-to-Left) language support, making it perfect for websites in Arabic, Hebrew, Persian, Urdu, and other RTL languages. The RTL implementation includes automatic detection, proper text flow, navigation adjustments, and full responsive design support for RTL layouts.
Author:       Noor alam
Author URI:   https://profiles.wordpress.org/nalam-1/
Theme URI:    https://wpthemespace.com/product/x-blog-free
Template:     x-blog
Version: 1.3.2
Tested up to: 7.1
Requires at least: 6.0
Requires PHP: 7.4
License:        GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: 		   blog, news, education, custom-logo, one-column, two-columns, grid-layout, right-sidebar, custom-background, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, threaded-comments, translation-ready, block-styles, rtl-language-support
Text Domain: x-blog-free

*/
/* X Blog Free v1.3.1 Refinements */
html { scroll-behavior: smooth; }
a { transition: color 0.25s ease, background-color 0.25s ease; }
.site-content p { line-height: 1.72; }
.btn, .button, input[type="button"], input[type="reset"], input[type="submit"] { border-radius: 4px; transition: all 0.25s ease; }

/* ==========================================================================
   Header Logo & Navigation Spacing Rule (wp-theme-updater Rule #7 & #10)
   Prevents logo/menu collision & prevents menu items from breaking words vertically.
   ========================================================================== */
.site-branding,
.header-img,
.site-title,
.custom-logo-link {
  min-width: 0;
  max-width: 100%;
}

.site-branding .custom-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Rule #9: Blog list spacing & inline badges */
.post-list .post-thumb,
.entry-list .post-thumb {
  margin-right: 20px;
}

.main-btn,
.read-more,
.more-link,
.post-categories a,
.cat-links a,
.entry-footer a {
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
  display: inline-block !important;
}

/* ==========================================================================
   Desktop Navigation Flex-Flow & Word-Wrap Preservation (Rule #10)
   Prevents menu items from breaking words vertically when there are many items.
   Items wrap cleanly to new lines with full words preserved.
   ========================================================================== */
@media (min-width: 992px) {
  .menu-bar,
  .xmenu-bar,
  .site-header .main-navigation,
  .main-navigation ul,
  .baby-menu,
  #baby-menu,
  #primary-menu,
  .navbar-nav {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center;
  }

  .baby-menu > li,
  #baby-menu > li,
  #primary-menu > li,
  .main-navigation ul > li,
  .menu-bar nav > ul > li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .baby-menu > li > a,
  #baby-menu > li > a,
  #primary-menu > li > a,
  .main-navigation ul > li > a,
  .menu-bar nav > ul > li > a,
  .nav-link {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    display: block;
  }

  /* Submenus maintain vertical column flow */
  .baby-menu ul,
  #baby-menu ul,
  #primary-menu ul,
  .main-navigation ul ul,
  .dropdown-menu {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .baby-menu ul > li > a,
  #baby-menu ul > li > a,
  #primary-menu ul > li > a,
  .main-navigation ul ul > li > a {
    white-space: nowrap !important;
  }
}

/* Universal mobile suppression of legacy navbar toggle & slicknav & old bars (Rule #8) */
@media screen and (max-width: 991px) {
  .slicknav_menu,
  .slicknav_btn,
  .slicknav_nav,
  .menu-toggle:not(#mmenu-btn),
  button.menu-toggle:not(#mmenu-btn),
  .mmenu-hide,
  .xmenu-bar,
  .menu-bar,
  #masthead .site-branding:not(.mobile-topbar-logo) {
    display: none !important;
  }
  #wsm-menu.mobile-menu-bar {
    display: block !important;
  }
}
