/*!
Theme Name: bonyan
Theme URI: https://underscores.me/
Author: Automattic
Author URI: https://automattic.com/
Description: Hi. I'm a starter theme called <code>bonyan</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bonyan
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

bonyan is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 3em 1.5em 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-right: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-right: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: right;
	position: absolute;
	top: 100%;
	right: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	right: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	right: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	right: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	right: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 1.5em;
}
/* تعديل التنسيق للنسخة العربية فقط */
body {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6, p, li {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
}

.section, .container, .row {
  direction: rtl;
}
.slogan,
.main-navigation,
.main-navigation a,
.main-navigation li,
.menu-item a,
.menu li a {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}
.video-container, .hero-banner-container {
  position: relative;
}

/* Step 2: Arabic slogan styling – NOT sticky anymore */
html[lang="ar"] .slogan-wrapper {
  position: absolute;
  bottom: 5%;
  right: 40px;
  transform: translateY(0);
  max-width: 900px;
  text-align: right;
  direction: rtl;
  z-index: 10;
}

html[lang="ar"] .slogan-line {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-size: 4.2em;
  line-height: 0.7;
  color: #fff;
  display: block;
  margin: 0;
  padding: 0;
}

html[lang="ar"] .highlight {
  font-family: 'Aref Ruqaa', serif !important;
  font-size: 1.9em;
  color: #fff;
  display: inline;
  margin-right: 4px;
}

html[lang="ar"] .slogan-line:nth-of-type(2) {
  margin-right: 170px;
}

/* Keep the whole section RTL aligned */
html[lang="ar"] .bonyan-section {
  direction: rtl;
}

/* Only shift the content block slightly to the left */
html[lang="ar"] .bonyan-content {
  direction: rtl;
  padding-right: 40px;
  padding-left: 0;
}

.bonyan-content p {
  text-align: justify;
  margin-inline-start: 20px;
}

/* Keep individual elements aligned without extra offset */
html[lang="ar"] .bonyan-subtitle,
html[lang="ar"] .bonyan-content h1,
html[lang="ar"] .bonyan-content p,
html[lang="ar"] .bonyan-content .button {
  margin: 0;
  padding: 0;
  text-align: right;
}

html[lang="ar"] .bonyan-subtitle {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

html[lang="ar"] .statistics-section {
  direction: ltr !important;
}

html[lang="ar"] .statistics-section .stat {
  direction: rtl !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
html[lang="ar"] .vision-content {
  padding-right: 60px; /* Adjust based on your layout */
  text-align: right;
}

html[lang="ar"] .vision-content h2.section-title {
  text-align: right;
}

html[lang="ar"] .vision-content h2.section-title::before,
html[lang="ar"] .vision-content h2.section-title::after {
  margin-right: 0;
  margin-left: auto; /* move left */
  display: block;
}
html[lang="ar"] .sectors-carousel-wrapper,
html[lang="ar"] .sectors-carousel {
  direction: ltr !important;
}

html[lang="ar"] .sectors-section .section-subtitle,
html[lang="ar"] .sectors-section .section-title {
  text-align: right;
  direction: rtl;
  padding-right: 40px;
}
html[lang="ar"] .projects-section .section-subtitle,
html[lang="ar"] .projects-section .section-title {
  text-align: right;
}
html[lang="ar"] .news-section {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .news-title,
html[lang="ar"] .news-subtitle {
  text-align: right;
}
html[lang="ar"] .partners-section {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .partners-section .section-subtitle,
html[lang="ar"] .partners-section .section-title {
  text-align: right;
}
html[lang="ar"] .section-subtitle,
html[lang="ar"] .section-title,
html[lang="ar"] .news-subtitle,
html[lang="ar"] .news-title,
html[lang="ar"] .projects-section .section-title,
html[lang="ar"] .projects-section .section-subtitle,
html[lang="ar"] .partners-section .section-title,
html[lang="ar"] .contact-button,
html[lang="ar"] .partners-section .section-subtitle {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
}
html[lang="ar"] .contact-title {
  text-align: center !important;
  direction: ltr !important;
}
html[lang="ar"] .logos-carousel,
html[lang="ar"] .logos-track {
  direction: ltr !important;
}

.logo-box {
  flex-shrink: 0;
  width: 130px; /* حجم موحد لكل الصناديق */
  height: 60px;
  margin-inline-end: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

html[lang="ar"] .logos-track,
html[lang="ar"] .logos-carousel {
  direction: ltr !important;
}

html[lang="ar"] .sector-title,
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .project-name,
html[lang="ar"] .footer-links,
html[lang="ar"] .footer-designed,
html[lang="ar"] .footer-logo-text,
html[lang="ar"] .bonyan-vision,
html[lang="ar"] .project-location,
html[lang="ar"] .filter-dropdown,
html[lang="ar"] .clear-filters,
html[lang="ar"] .project-location,
html[lang="ar"] .project-location,
html[lang="ar"] .project-location,
html[lang="ar"] .sector-description{
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}
/* لضبط محاذاة المحتوى داخل كروت القطاعات */
.sector-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
}

/* لضبط العناوين الفرعية والعنوان والوصف */
.sector-subtitle,
.sector-title,
.sector-description {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
}

.sector-subtitle {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 400;
}

.sector-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
}

.sector-description {
  font-size: 15px;
  font-weight: 300;
}

/* للتأكد إن الكرت نفسه بيحافظ على المحاذاة */
.sector-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* لضبط محاذاة عنوان القطاع والسبتايتل في RTL */
.sectors-section .section-subtitle,
.sectors-section .section-title {
  text-align: right;
  direction: rtl;
}
.bonyan-tab-button, 
.bonyan-tab-button span {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}
html[lang="ar"] .read-more i.fas.fa-arrow-right {
  transform: rotate(180deg);
}
.slogan {
  left: auto !important;
  right: 40px !important;
  text-align: right !important;
  direction: rtl !important;
}
html[lang="ar"] .sectors-button {
  color: #2F353B !important;
}

html[lang="ar"] .sectors-button:hover {
  color: #ffffff !important;
}
html[lang="ar"] .news-button {
  color: #2F353B !important;
}

html[lang="ar"] .news-button:hover {
  color: #ffffff !important;
}
html[lang="ar"] .vision-section {
  flex-direction: row-reverse;
}
html[lang="ar"] .bonyan-section .bonyan-subtitle,
html[lang="ar"] .bonyan-section h1,
html[lang="ar"] .bonyan-section .job-details {
  text-align: center !important;
}
html[lang="ar"] .bonyan-section .job-details p {
  text-align: center !important;
}
html[lang="ar"] .bonyan-section .job-details p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html[lang="ar"] .why-bonyan-timeline .timeline-header {
  text-align: center !important;
}

html[lang="ar"] .why-bonyan-timeline .timeline-header h2,
html[lang="ar"] .why-bonyan-timeline .timeline-header p {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
html[lang="ar"] .sector-content {
  left: auto !important;
  right: 20px !important;
  text-align: right !important;
  align-items: flex-end !important;
}
html[lang="ar"] .sector-title,
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .project-location {
  text-align: right !important;
}
html[lang="ar"] .sector-content * {
  text-align: right !important;
}
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .project-location {
  text-align: right !important;
  direction: rtl !important;
  align-self: flex-end !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .project-location {
  width: 100% !important;
}
html[lang="ar"] .bonyan-content {
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .bonyan-content h1,
html[lang="ar"] .bonyan-subtitle {
  text-align: right !important;
  display: block;
  direction: rtl;
}
/* RTL override for Bonyan subtitle */
html[lang="ar"] .bonyan-subtitle {
  text-align: right !important;
  margin-right: 20px !important;  /* same spacing as the original left-margin */
  margin-left: 0 !important;       /* kill the LTR left-margin */
}
/* flip *only* the project subtitle to the right in Arabic */
html[lang="ar"] .bonyan-section .bonyan-subtitle.project-subtitle {
  text-align: right !important;
  margin-right: 20px !important;  /* same indent, on the right */
  margin-left: 0 !important;       /* kill any left-margin */
}
/* RTL: map-pin + location flush right, icon after text */
html[lang="ar"] .related-location {
  display: flex !important;             /* make it a flex container */
  width: 100% !important;               /* stretch it across the card */
  flex-direction: row-reverse !important; /* text first, then icon */
  align-items: center !important;       /* vertical centering */
  justify-content: flex-end !important; /* push the pair to the right edge */
}

/* optional spacing between the text and the pin */
html[lang="ar"] .related-location i {
  margin-left: 6px;
  margin-right: 0;
}
/* RTL: keep map-pin visible, text then icon, all flushed right */
html[lang="ar"] .related-location {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  /* no width or justify-content here */
}

/* small gap between the location text and the pin */
html[lang="ar"] .related-location i {
  margin-left: 6px !important;
  margin-right: 0 !important;
}
/* RTL: keep location + pin together, flush right */
html[lang="ar"] .related-location {
  text-align: right !important;      /* push entire line to the right */
  direction: rtl !important;         /* ensure icon follows text */
  unicode-bidi: isolate-override;     /* treat text+icon as one unit */
  margin: 0;                         /* reset any stray margins */
  padding: 0;
}

/* small gap between the location text and the pin */
html[lang="ar"] .related-location i {
  margin-inline-start: 6px !important;  /* gap before the icon */
  margin-inline-end: 0 !important;
}
/* hide the original CSS-injected pin in RTL */
html[lang="ar"] .related-location::before {
  display: none !important;
}

/* then align your markup icon+text as before */
html[lang="ar"] .related-location {
  text-align: right !important;
  direction: rtl !important;
  unicode-bidi: isolate-override;
}
html[lang="ar"] .related-location i {
  margin-inline-start: 6px !important;
  margin-inline-end: 0 !important;
}


/* align the location under the card title by matching its horizontal margins */
html[lang="ar"] .related-box .related-location {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  margin: 0 16px 16px !important;  /* top 0, right/left 16px, bottom 16px */
}

/* small gap between the location text and the pin */
html[lang="ar"] .related-location i {
  margin-inline-start: 6px !important;
  margin-inline-end: 0 !important;
}
/* give a slightly larger gap between text and pin in Arabic cards */
html[lang="ar"] .related-location i {
  margin-inline-start: 0px !important;  /* was 6px—feel free to tweak 8px or 12px too */
}
/* add a little breathing room between the location text and the pin */
html[lang="ar"] .related-location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;           /* ← easiest way to set the space */
}

/* if you prefer the old margin approach, comment out gap and do this instead:
html[lang="ar"] .related-location i {
  margin-inline-end: 8px !important;   /* adds space to the left of the pin */
  margin-inline-start: 0 !important;
}
*/

html[lang="ar"] .rtl-center-title {
  text-align: center !important;
  direction: rtl !important;
}
.careers-main-title {
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Neo Sans Std', sans-serif;
  line-height: 1.3;
  text-align: left; /* Default for English */
}
/* Keep the Careers page’s H1 centered in Arabic */
html[lang="ar"] body.page-template-template_careers .bonyan-section .bonyan-content > h1 {
  text-align: center !important;
  /* undo any direction override if you need: */
  direction: ltr !important;
}
/* RTL: align the “unique news” H2 flush right */
html[lang="ar"] .unique-news-section .unique-news-title {
  text-align: right !important;
  direction: rtl !important;
}



/* Keep the “Latest News” heading centered in Arabic */
html[lang="ar"] body.page-template-template_news .bonyan-section .bonyan-content > h1 {
  text-align: center !important;
  margin: 0 auto !important;
  direction: ltr !important;  /* optional, undo any rtl direction on the text */
}

/* If you also want the subtitle (“Insights”) centered: */
html[lang="ar"] body.page-template-template_news .bonyan-section .bonyan-content > .bonyan-subtitle {
  text-align: center !important;
  margin: 0 auto !important;
  direction: ltr !important;
}
html[lang="ar"] .bonyan-subtitle-about {
  text-align: right !important;
  margin-left: 0 !important;
  margin-right: 20px;
  direction: rtl;
}
html[lang="ar"] .section-button {
  color: #fff !important;
}

html[lang="ar"] .section-button:hover {
  background-color: #fff;
  color: #2F353B !important;
  border-color: #fff;
}
html[lang="ar"] .why-page .bonyan-subtitle,
html[lang="ar"] .why-page h1 {
  text-align: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
  direction: rtl !important;
}
html[lang="ar"] .caption-readmore {
  color: #fff !important;        /* Default text color: white */
  transition: color 0.3s ease;
}

html[lang="ar"] .caption-readmore:hover {
  color: #2F353B !important;     /* Hover color: dark gray */
}
html[lang="ar"] .footer-designed {
  direction: ltr !important;
  text-align: left !important;
}
html[lang="ar"] .footer-logo-text {
  text-align: right !important;
  direction: rtl !important;
  margin-top: 10px; /* حسب المسافة اللي تناسبك */
}
html[lang="ar"] .menu {
  margin: 0;
}

html[lang="ar"] .extra {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
html[lang="ar"] .bonyan-content p {
  text-align: justify;
}

html[lang="ar"] .yellow-arrow {
  border-left: none;
  border-right: 18px solid #FDC400;
  margin-right: 0;
  margin-left: 12px;
}

html[lang="ar"] .our-sectors-subheading,
html[lang="ar"] .our-sectors-heading {
  text-align: right !important;
}

html[lang="ar"] .our-sectors-carousel-track {
  direction: ltr !important;
}


html[lang="ar"] .our-sectors-title {
  text-align: right !important;
  display: block;
  width: 100%;
  padding-inline: 10px;
  box-sizing: border-box;
  line-height: 1.3;
  white-space: normal; /* لو فيه لف للكلام */
}

html[lang="ar"] .our-sectors-textbox {
  padding-right: 12px;
  padding-left: 12px;
  text-align: right;
}

html[lang="ar"] .our-sectors-textbox {
  direction: rtl;
  text-align: right;
  padding: 12px;
  box-sizing: border-box;
}

html[lang="ar"] .our-sectors-textbox * {
  direction: rtl;
  text-align: right !important;
}


html[lang="ar"] .our-sectors-textbox {
  direction: rtl;
  text-align: right;
  padding: 16px 20px; /* top-bottom 16px, right-left 20px */
  box-sizing: border-box;
}

html[lang="ar"] .our-sectors-mini-title,
html[lang="ar"] .our-sectors-title,
html[lang="ar"] .our-sectors-description {
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  word-wrap: break-word;
}

html[lang="ar"] .contact-description {
  text-align: center !important;
}

html[lang="ar"] .news-button:hover {
  color: #000 !important;
}
html[lang="ar"] .sectors-button:hover {
  color: #000 !important;
}

html[lang="ar"] * {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* Fix icon fonts in Arabic (RTL) mode */
html[lang="ar"] i,
html[lang="ar"] .fi,
html[lang="ar"] [class^="fi-"],
html[lang="ar"] [class*=" fi-"],
html[lang="ar"] [class^="fa-"],
html[lang="ar"] [class*=" fa-"] {
  font-family: "Flaticon", "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
  font-weight: 900 !important;
  direction: ltr !important;
  text-align: center !important;
}

/* ===== Fix Arabic alignment for sector blocks ===== */
html[lang="ar"] .sector-block,
html[lang="ar"] .sector-content,
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .sector-title,
html[lang="ar"] .sector-description {
  text-align: right !important;
  direction: rtl !important;
}

/* تأكيد إن النصوص بتبدأ من اليمين */
html[lang="ar"] .sectors-section .sector-content {
  align-items: flex-end !important;
  justify-content: flex-end !important;
}


/* في بعض الأحيان flex بيكسر المحاذاة العمودية */
html[lang="ar"] .sector-title,
html[lang="ar"] .sector-subtitle,
html[lang="ar"] .sector-description {
  display: block !important;
  width: 100%;
}

/* ===== Fix Arabic alignment for sector blocks ONLY ===== */
html[lang="ar"] .sectors-section .sector-block,
html[lang="ar"] .sectors-section .sector-content,
html[lang="ar"] .sectors-section .sector-subtitle,
html[lang="ar"] .sectors-section .sector-title,
html[lang="ar"] .sectors-section .sector-description {
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .sectors-section .sector-content {
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

html[lang="ar"] .sectors-section .sector-title,
html[lang="ar"] .sectors-section .sector-subtitle,
html[lang="ar"] .sectors-section .sector-description {
  display: block !important;
  width: 100%;
}


html[lang="ar"] .scroll-decor {
  left: auto;              /* تعطيل الخاصية اليسرى */
  right: -150px;           /* وضع العنصر خارج الحافة اليمنى */
  transform: translate(30px, -50%) scale(1.3);
}
/* عند إضافة الصنف .visible للعناصر الزخرفية في العربية */
html[lang="ar"] .scroll-decor.visible {
  transform: translate(0, -50%) scale(1.3);
}



html[lang="ar"] .with-triangle::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: none;
  border-right: 18px solid #FFD700;
  margin-left: 12px;
  margin-right: 0;
  vertical-align: middle;
}

html[lang="ar"] .project-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .project-content * {
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .project-name,
html[lang="ar"] .project-name a,
html[lang="ar"] .project-location {
  text-align: right !important;
  direction: rtl !important;
  display: block !important;
}

html[lang="ar"] .bonyan-content {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center !important;
}

html[lang="ar"] .fa-arrow-right::before {
  content: "\f060"; /* fa-arrow-left بدلاً من fa-arrow-right */
}






/* توجيه عام لليمين في العربية */
html[lang="ar"] .bonyan-content {
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* التحكم في الـ subtitle */
html[lang="ar"] .bonyan-subtitle.project-subtitle {
  text-align: right;
  margin-right: 0;
  margin-left: 0;
}

/* العنوان الرئيسي مع السهم */
html[lang="ar"] .bonyan-title-line {
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* التأكد إن السهم قبل النص */
html[lang="ar"] .bonyan-title-line .yellow-arrow {
  margin-left: 8px;
  margin-right: 0;
  order: -1; /* يخلي السهم يسبق النص */
}

/* الفقرة اللي تحت العنوان */
html[lang="ar"] .bonyan-content p {
  text-align: right;
}


html[lang="ar"] .bonyan-contact-grid .contact-box h4 {
  text-align: center !important;
  margin: 0 auto !important;
  display: block;
}

html[lang="ar"] .bonyan-contact-grid .contact-box {
  text-align: center !important;
}



html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] label {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] ::placeholder {
  text-align: right;
  direction: rtl;
}








