/*
 Theme Name:   Kanews Child
 Theme URI:    https://www.kanthemes.com/tanitim/kanews/
 Description:  Kanews Theme Child Theme
 Author:       Kan Themes
 Author URI:   https://www.kanthemes.com
 Template:     kanews
 Version:      1.1
 License: Kanews License
 License URI: https://www.kanthemes.com/tema/kanews/lisans/
 Text Domain:  kan-child
*/

/* ---------------------------
   Fonts
---------------------------- */

@font-face {
  font-family: "Rabar 38";
  src:
    url("./fonts/Rabar_038.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rabar 40";
  src:
    url("./fonts/Rabar_040.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------
   Language-specific fonts
---------------------------- */

body.wpml-lang-ar {
  font-family: "Noto Kufi Arabic", sans-serif !important;
  --kan-font-family: "Noto Kufi Arabic", sans-serif;
}

body.wpml-lang-ku {
  font-family: "Rabar 38", "Rabar 40", sans-serif !important;
  --kan-font-family: "Rabar 38", "Rabar 40", sans-serif;
}

body.wpml-lang-ku .entry-content-inner,
body.wpml-lang-ku h1,
body.wpml-lang-ku h2,
body.wpml-lang-ku h3,
body.wpml-lang-ku h4,
body.wpml-lang-ku h5,
body.wpml-lang-ku h6 {
  font-family: "Rabar 40", "Rabar 38", sans-serif !important;
  --kan-font-family: "Rabar 40", "Rabar 38", sans-serif;
}
/* ---------------------------
   RTL base + minimal fixes
---------------------------- */

html[dir="rtl"],
body.rtl {
  direction: rtl;
  unicode-bidi: isolate;
}

body.rtl,
body.rtl .site-main,
body.rtl .entry-content,
body.rtl .kanews-post-content,
body.rtl .kanews-section-heading .kanews-section-headline,
body.rtl .entry-content-inner {
  text-align: right;
}

/* Force common containers to start from right */
body.rtl .container,
body.rtl .container-fluid,
body.rtl .row,
body.rtl .site-wrapper,
body.rtl .site-head,
body.rtl .site-header,
body.rtl .site-subheader,
body.rtl .site-navbar {
  direction: rtl;
}

/* Fix floats that may pull blocks to left in RTL */
body.rtl .float-start {
  float: right !important;
}
body.rtl .float-end {
  float: left !important;
}

/* Generic alignment utilities often used in theme markup */
body.rtl .text-start {
  text-align: right !important;
}
body.rtl .text-end {
  text-align: left !important;
}

/* Flip common margin/padding helpers */
body.rtl .ms-1, body.rtl .ms-2, body.rtl .ms-3, body.rtl .ms-4, body.rtl .ms-5 {
  margin-right: var(--bs-gutter-x, 0.25rem) !important;
  margin-left: 0 !important;
}
body.rtl .me-1, body.rtl .me-2, body.rtl .me-3, body.rtl .me-4, body.rtl .me-5 {
  margin-left: var(--bs-gutter-x, 0.25rem) !important;
  margin-right: 0 !important;
}

/* Bootstrap-ish utility fixes (when theme uses LTR utilities) */
body.rtl .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

body.rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Common dropdown alignment */
body.rtl .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

/* Common left/right positioned elements */
body.rtl .dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}

/* Make flex rows read naturally in RTL where appropriate */
body.rtl .d-flex.flex-row {
  flex-direction: row-reverse;
}


/* Menus */


/* Icons before text: keep spacing consistent */
body.rtl .site-header svg,
body.rtl .site-navbar svg {
  margin-left: 0.35rem;
  margin-right: 0;
}

/* Reverse icon spacing when icon is after text */
body.rtl .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

/* Weather location bar: chips + scroll buttons should feel natural in RTL */
body.rtl .weather-loc-bar__chips {
  direction: rtl;
}

body.rtl .weather-loc-bar__scroll--prev {
  order: 2;
}

body.rtl .weather-loc-bar__scroll--next {
  order: 0;
}

/* Inputs */
body.rtl input,
body.rtl textarea {
  text-align: right;
}


body.rtl .kanews-slider-2 .slick-dots {
  direction: rtl;
}
body.rtl .kanews-slider-global .kanews-slide-content .kanews-slide-headline {
margin-left: auto
}

body.rtl .site-header .header-btn-icon i {
vertical-align: middle
}

body.rtl .kanews-slider-wrapper:not(.kanews-slider-thumbs):not(.kanews-slider-grid) .slick-track {
direction: ltr;
}