﻿/* Step 1: Font-face with absolute path */
/*@font-face {
    font-family: '/fonts/Cairo-Regular';
    src: url('/Cairo-Regular.ttf');
    font-display: swap;
    font-weight: 400;
    unicode-range: U+0600-06FF;*/ /* Arabic-only range */
/*}*/

/* Step 2: Force apply to all RTL elements */
/*html[lang="ar"] *,
[dir="rtl"] *, body[dir="rtl"] * {
    font-family: 'Cairo-Regular', sans-serif !important;*/
    /*letter-spacing: 0 !important;*/ /* Fix Arabic spacing */
/*}*/

/* Step 3: Debug helper (remove after verification) */
/*body:after {
    content: 'Cairo-Regular loaded ✓';
    font-family: 'Cairo-Regular';
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: green;
    color: white;
    padding: 5px;
    z-index: 9999;
}*/


/* Font Face Declaration - Regular Only */
@font-face {
    font-family: 'DroidArabicKufi';
    src: url('../fonts/Droid Arabic Kufi Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --ff-body: "DroidArabicKufi";
    --ff-title: "DroidArabicKufi";
    --ff-iconfont: "Font Awesome 6 Pro";
}

body[dir="rtl"] * {
    font-family: "DroidArabicKufi"!important
}
/* Protect images from RTL flipping */
img {
    direction: ltr !important;
}

/* Protect specific elements containing images from RTL effects */
.bd-brand-item img,
.bd-team-thumb img,
.bd-case-studies-thumb-main img,
.bd-case-studies-thumb-circle img,
.bd-service-box img,
.bd-hero-thumb,
.bd-about-thumb img,
.bd-security-thumb img,
.bd-data-management-thumb img,
.bd-footer-widget-logo img,
.bd-testimonial-avatar img,
.bd-preloader-logo img,
.bd-header-logo img,
.bd-offcanvas-logo img {
    transform: none !important;
}
/* Force LTR for phone numbers in header */
.bd-header-top a[href^="tel:"] span:not([class]) {
    direction: ltr !important;
    unicode-bidi: embed; /* Ensures proper number display */
    display: inline-block; /* Prevents text reordering */
}
/* Lock arrow direction regardless of text direction */
.bd-primary-btn .fa-arrow-right-long,
.bd-case-studies-btn .fa-arrow-left-long {
    transform: rotate(0deg) !important; /* Prevents RTL flipping */
}

/* For contact buttons that should always point right */
[dir="rtl"] .bd-primary-btn .fa-arrow-right-long {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* For case study buttons that should keep their original direction */
[dir="rtl"] .bd-case-studies-btn .fa-arrow-left-long {
    margin-left: 0.5rem;
    margin-right: 0;
}
/* RTL Shape Positioning */
[dir="rtl"] .shape img {
    transform: scaleX(-1); /* Flip only */
    position: relative; /* Remove absolute positioning */
    right: unset; /* Clear RTL overrides */
    left: unset;
}
/* Fix RTL case study titles by targeting specific elements */
[dir="rtl"] .bd-case-studies-item:nth-child(1) .title a:before {
    content: "تنفيذ ERP للتصنيع";
    display: block;
}

[dir="rtl"] .bd-case-studies-item:nth-child(2) .title a:before {
    content: "تحول ERP للنفط والغاز";
    display: block;
}

[dir="rtl"] .bd-case-studies-item:nth-child(3) .title a:before {
    content: "تحديث ERP للتجزئة";
    display: block;
}

/* Hide original incorrect text */
[dir="rtl"] .bd-case-studies-item .title a {
    color: transparent;
    position: relative;
}

/* Fix shape image positioning in RTL */
[dir="rtl"] .bd-case-studies-item .shape img {
    transform: none; /* Remove flip if causing issues */
    left: 0;
    right: auto; /* Reset RTL positioning */
}

/* Ensure shape visibility */
[dir="rtl"] .bd-case-studies-thumb-circle-wrap .shape {
    opacity: 1 !important;
    visibility: visible !important;
}


.bd-counter-one-item {

    text-align: center;
}

    .bd-counter-one-item:not(:last-child)::after {
        border: 2px solid #ffffff;
    }


.arabic-numbers {




}
.bd-why-choose-one {
    margin-top: unset;
}

.bd-header-meta .bd-btn {
    display: block!important;
}