
.ref-nav>nav>.ref-nav-about{position:relative;display:flex;align-items:center}
.ref-nav>nav .ref-nav-submenu{display:none;position:absolute;z-index:100;top:calc(100% - 18px);left:-14px;min-width:195px;padding:8px 0;background:var(--ref-navy,#07152f);border-top:2px solid var(--ref-gold,#d8a915);box-shadow:0 18px 38px #0004}
.ref-nav>nav>.ref-nav-about:hover .ref-nav-submenu,.ref-nav>nav>.ref-nav-about:focus-within .ref-nav-submenu{display:block}
.ref-nav>nav .ref-nav-submenu a{display:block;padding:13px 16px;color:#fff;white-space:nowrap;font-size:10px}
.ref-nav>nav .ref-nav-submenu a:after{display:none}
.ref-nav>nav .ref-nav-submenu a:hover{color:var(--ref-gold,#d8a915)}
.ref-mobile-menu .ref-mobile-about{display:grid}
.ref-mobile-menu .ref-mobile-about .ref-mobile-submenu-link{padding-left:27px;color:#ffffffbd;font-size:9px}
.ref-contact-links .ref-contact-address{display:grid;grid-template-columns:80px 1fr auto;align-items:center;min-height:88px;border-bottom:1px solid #071d4240}
.ref-contact-address small{text-transform:uppercase;font-size:8px;font-weight:800}
.ref-contact-address strong{font-family:var(--font-structural),Arial,sans-serif;font-size:clamp(13px,1.35vw,19px);line-height:1.45}
@media(max-width:680px){.ref-contact-links .ref-contact-address{grid-template-columns:65px 1fr;gap:8px}.ref-contact-address strong{font-size:13px}}


/* Luxury Floating Language Widget at Bottom Left - White Background with Gold Border */
#certione-lang-widget {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid #d7a31d !important;
  border-radius: 40px !important;
  padding: 5px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16), 0 0 20px rgba(215, 163, 29, 0.25) !important;
  font-family: var(--font-structural), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  user-select: none !important;
  direction: ltr !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

#certione-lang-widget:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22), 0 0 26px rgba(215, 163, 29, 0.35) !important;
}

.certione-lang-btn {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 13px !important;
  border-radius: 30px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #071d42 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  outline: none !important;
}

.certione-lang-btn:hover {
  background: rgba(215, 163, 29, 0.15) !important;
  color: #071d42 !important;
}

.certione-lang-btn.is-active {
  background: #d7a31d !important;
  color: #ffffff !important;
  border-color: #d7a31d !important;
  box-shadow: 0 4px 14px rgba(215, 163, 29, 0.45) !important;
  font-weight: 800 !important;
}

.certione-flag {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 2.5px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0 !important;
}

.certione-flag svg {
  display: block !important;
}

@media (max-width: 600px) {
  #certione-lang-widget {
    bottom: 16px !important;
    left: 16px !important;
    padding: 4px !important;
  }
  .certione-lang-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }
}

/* ========================================================= */
/* RTL & ARABIC ONLY STYLES (Cairo Font, Swapped Hero, Larger Eyebrows) */
/* ========================================================= */
html[lang="ar"],
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] strong,
html[dir="rtl"] small,
html[dir="rtl"] li,
html[dir="rtl"] div,
html[dir="rtl"] em,
html[dir="rtl"] summary {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

html[dir="rtl"] {
  direction: rtl !important;
  text-align: right !important;
}

/* 1. HERO SECTION IN ARABIC: Mirror English layout — Text on Right, Seal on Left (Strict 2-Line Layout) */
html[dir="rtl"] .ref-hero {
  position: relative !important;
}

html[dir="rtl"] .ref-hero-copy {
  padding: 96px 0 140px 42% !important;
  text-align: right !important;
}

html[dir="rtl"] .ref-hero h1 {
  text-align: right !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  font-size: clamp(36px, 4.6vw, 72px) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

html[dir="rtl"] .ref-hero h1 em {
  text-align: right !important;
  display: block !important;
  margin-top: 14px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

html[dir="rtl"] .hero-seal-showcase {
  right: auto !important;
  left: 5% !important;
}

html[dir="rtl"] .ref-slide-controls {
  right: auto !important;
  left: 26px !important;
}

html[dir="rtl"] .ref-hero-actions {
  justify-content: flex-end !important;
  flex-direction: row !important;
  gap: 30px !important;
  margin-top: 39px !important;
}

html[dir="rtl"] .ref-hero-lede {
  text-align: right !important;
  max-width: 630px !important;
  line-height: 1.8 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  html[dir="rtl"] .ref-hero-copy {
    padding: 60px 0 100px 0 !important;
    text-align: right !important;
  }
  html[dir="rtl"] .ref-hero h1 {
    font-size: clamp(26px, 6.5vw, 42px) !important;
  }
  html[dir="rtl"] .hero-seal-showcase {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 20px auto 0 !important;
  }
  html[dir="rtl"] .ref-hero-actions {
    justify-content: flex-start !important;
  }
}


/* Hero Proof Bar (06 07 08) in Arabic: Move from Left to Right under the text */
html[dir="rtl"] .ref-hero-proof {
  left: auto !important;
  right: max(28px, 50vw - 690px) !important;
  direction: rtl !important;
}

html[dir="rtl"] .ref-hero-proof > span {
  direction: rtl !important;
  text-align: right !important;
  gap: 12px !important;
}

html[dir="rtl"] .ref-hero-proof small {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
  text-align: right !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  html[dir="rtl"] .ref-hero-proof {
    left: 18px !important;
    right: 18px !important;
    justify-content: space-between !important;
  }
}

/* 4. LARGER EYEBROWS IN ARABIC (Item 4) */
html[dir="rtl"] .ref-eyebrow {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .ref-eyebrow > span {
  width: 32px !important;
  height: 2.5px !important;
  background: var(--ref-gold, #d7a31d) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Keep Mission & Vision eyebrow at 23px */
html[dir="rtl"] .ref-mv-card .ref-eyebrow {
  font-size: 23px !important;
  font-weight: 600 !important;
}

/* Other small badges enhanced readability */
html[dir="rtl"] .ref-impartial-head-badge {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

html[dir="rtl"] .ref-values-dock strong {
  font-size: 16px !important;
  font-weight: 700 !important;
}

html[dir="rtl"] .ref-systems-card h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
}

html[dir="rtl"] .ref-mv-number {
  right: auto !important;
  left: 28px !important;
}

html[dir="rtl"] .ref-card-number {
  right: auto !important;
  left: 24px !important;
}

html[dir="rtl"] .ref-nav nav {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .ref-section-head {
  text-align: right !important;
}

html[dir="rtl"] .ref-step-rail li div {
  text-align: right !important;
}

html[dir="rtl"] .ref-about-points article {
  text-align: right !important;
}

html[dir="rtl"] .ref-about-points article>div {
  text-align: right !important;
}

html[dir="rtl"] .ref-values-dock {
  direction: rtl !important;
}

html[dir="rtl"] .ref-footer-grid {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] #certione-lang-widget {
  left: 24px !important;
  right: auto !important;
  direction: ltr !important;
}


/* Policy Pillars (Impartial, Transparent, Confidential, Competent) RTL */
html[dir="rtl"] .ref-policy-four-pillars {
  direction: rtl !important;
}
html[dir="rtl"] .ref-policy-pillar-item {
  direction: rtl !important;
  text-align: right !important;
}
html[dir="rtl"] .ref-policy-pillar-item h4,
html[dir="rtl"] .ref-policy-pillar-item p {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
  text-align: right !important;
}

/* FOOTER: Force Cairo font in Arabic mode */
html[dir="rtl"] .ref-footer,
html[dir="rtl"] .ref-footer p,
html[dir="rtl"] .ref-footer a,
html[dir="rtl"] .ref-footer span,
html[dir="rtl"] .ref-footer div,
html[dir="rtl"] .ref-footer small,
html[dir="rtl"] .ref-footer strong,
html[dir="rtl"] .ref-footer-links a,
html[dir="rtl"] .ref-footer-tagline,
html[dir="rtl"] .ref-footer-brand,
html[dir="rtl"] .ref-footer-left,
html[dir="rtl"] .ref-footer-right,
html[dir="rtl"] .ref-policy-footer .ref-footer-links a,
html[dir="rtl"] .ref-policy-footer .ref-footer-tagline {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}
