/*
 Theme Name:   DEISO Child
 Description:  DEISO Child Theme
 Theme URI:    https://deiso.co.jp
 Author:       DEISO
 Author URI:   https://deiso.co.jp
 Template:     DEISO
 Version:      1.0.0
 License:      License version 3.0
 License URI:  https://deiso.co.jp
 Text Domain:  deiso
*/

/* Fix headers and text alignment for Arabic */
html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6,
html[lang="ar"] .grve-text-black,
html[lang="ar"] .grve-fancy-box-inner,
html[lang="ar"] .grve-widget-title {
  text-align: right !important;
}


/* RTL Fix for specific elements */
html[lang="ar"] .elementor-240047 .elementor-element.elementor-element-352cd29 > .elementor-widget-container,
html[lang="ar"] .elementor-element-83a12d7,
html[lang="ar"] #ds_hero h2 {
  direction: ltr !important; /* Keep these elements left-to-right */
}

html[lang="ar"] #menu-item-235580 > div.grve-classic-sub-menu.grve-sub-menu {
  right: 12.5em !important;
  left: auto !important;
}

/* Fix for Arabic Font (Tahoma) */
html[lang="ar"] #weglot-language-ar,
html[lang="ar"] span.grve-item,
html[lang="ar"] .elementor-widget-container > p,
html[lang="ar"] .menu-item-object-page > a {
  font-family: "Tahoma", Sans-serif !important;
}

/* Do not apply Tahoma to headers */
html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6 {
  font-family: inherit !important;
}

/* Add spacing between content blocks in Arabic */
html[lang="ar"] .animated.animated-slow {
  margin: 10px !important;
}

/* Fix for icons and text spacing */
html[lang="ar"] .grve-horizontal-menu .grve-item .grve-menu-icon,
html[lang="ar"] .grve-vertical-menu .grve-item .grve-menu-icon {
  margin-left: 6px !important;
}

/* Language switcher fix */
.language-list > .language-option > a {
  font-size: 12px !important;
}

@media (max-width: 770px) {
  .language-list > .language-option > a {
    font-size: 14px !important;
    font-weight: bold !important;
  }

  html[lang="ar"] .weglot_switcher.bubble img.wg-flag {
    margin-left: 5px !important;
  }
}

/* Adjust flag icon size */
.weglot_switcher.vertical_expand .language-option a img {
  width: 20px !important;
  height: 20px !important;
}

/* Fix Weglot switcher alignment in RTL */
html[lang="ar"] .weglot_switcher.bubble .language-list.right:after {
  right: 12px !important;
}

html[lang="ar"] .weglot_switcher.bubble .language-list.right {
  right: 0px !important;
  left: unset !important;
}

/* Specific fixes for Elementor layout in AR version */
html[lang="ar"] body.rtl .elementor-240047 .elementor-element.elementor-element-18ce170 {
  right: -45% !important;
}

html[lang="ar"] .elementor-240047 .elementor-element.elementor-element-401952d > .elementor-widget-container {
  margin: -96px 0px 8px -146px !important;
}

/* Fix for label alignment in AR version */
html[lang="ar"] .grve-header-menu .grve-label {
  min-width: 31px !important;
}

/*Arabic Language Fixes */


