/* =================================================================
   ULTIMATE GOOGLE TRANSLATE OVERRIDES (KILLS ALL BARS & BRANDING)
================================================================= */

/* 1. Hide the old AND new iframe banners, wrappers, and widgets */
.goog-te-banner-frame.skiptranslate, 
iframe.goog-te-banner-frame,
#goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate > iframe,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc { 
    display: none !important; 
    visibility: hidden !important;
} 

/* 2. Force BOTH the body and html to ignore Google's injected spacing */
html, body {
    top: 0px !important; 
    position: static !important; 
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* 3. Hide the hover tooltips, balloons, and original text popups */
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip {
    display: none !important;
}

/* 4. Stop Google from highlighting text when you hover over it */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}


/* =================================================================
   ARABIC RIGHT-TO-LEFT (RTL) FIXES
================================================================= */

/* Flip standard floats */
body[dir="rtl"] .float-left { 
    float: right !important; 
}

body[dir="rtl"] .float-right { 
    float: left !important; 
}

/* Fix image margins */
body[dir="rtl"] .about-main-content .img-box,
body[dir="rtl"] .angel-img-box {
    margin-right: 0;
    margin-left: 20px;
}

/* Fix custom list checkmarks */
body[dir="rtl"] .custom-list li {
    padding-left: 0;
    padding-right: 25px;
}

body[dir="rtl"] .custom-list li::before {
    left: auto;
    right: 0;
}

/* Push the language button to the far right of the navbar */
.theme-main-menu #mega-menu-holder ul li.lang-right {
    float: right !important;
    margin-right: 30px;
}

/* Optional: Make the flag emoji slightly larger so it looks great */
#lang-toggle {
    font-size: 15px; 
}

.flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: cover;
  background-position: center;
  margin-right: 6px;
  vertical-align: middle;
}

.flag.en {
  background-image: url('https://flagcdn.com/w20/gb.png');
}

.flag.ar {
  background-image: url('https://flagcdn.com/w20/sa.png');
}

/* ===== MOBILE FLAG VISIBILITY FIX (STRONG) ===== */

@media (max-width: 767px) {

  /* Allow content to overflow properly */
  .theme-main-menu #mega-menu-holder ul li a {
    display: flex !important;
    align-items: center;
    overflow: visible !important;
  }

  /* Fix flag visibility */
  #lang-toggle .flag {
    display: inline-block !important;
    width: 20px !important;
    height: 14px !important;
    min-width: 20px;
    margin-left: 30px;   /* 👈 pushes flag right */
    margin-right: 6px;
    background-size: cover;
    background-position: center;
  }

  /* Prevent clipping */
  .theme-main-menu #mega-menu-holder ul li {
    overflow: visible !important;
  }

}