/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    --blue-main: #0072B8;
    --blue-dark: #003B73;
    --gray: #9AA1A9;
    --black: #0D0D0D;
    --white: #FFFFFF;
    --transition: 0.3s ease;
}

/* GLOBAL */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* HEADER */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    padding: 18px 0;
}

.header .container,
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    width: 140px;
}

  /* LANGUAGE DROPDOWN (DARK MODE FIXED) */
.lang-dropdown {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: transparent !important;
    border: 2px solid var(--blue-main) !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    color: var(--white) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.lang-btn:hover {
    background: var(--blue-main) !important;
}

/* القائمة المنسدلة */
.lang-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #0e0e0e !important;   /* 🔥 خلفية داكنة جداً */
    border: 1px solid #1f1f1f !important; /* 🔥 بوردر داكن */
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6); /* 🔥 شادو خفيف يناسب الموقع */
}

.lang-menu a {
    padding: 12px 15px;
    color: #dcdcdc !important;  /* 🔥 نص رمادي جميل */
    border-bottom: 1px solid #1f1f1f;
    font-weight: 500;
}

.lang-menu a:hover {
    background: var(--blue-main) !important;
    color: var(--white) !important;
}

.lang-menu a:last-child {
    border-bottom: none;
}

/* إظهار القائمة عند الـ hover */
.lang-dropdown:hover .lang-menu {
    display: flex !important;
}


.lang-btn:hover {
    background: var(--blue-main) !important;
}

.lang-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 999;
}

.lang-menu a {
    padding: 10px 15px;
    color: var(--white);
    border-bottom: 1px solid #222;
}

.lang-menu a:hover {
    background: var(--blue-main);
}

.lang-menu a:last-child {
    border-bottom: none;
}

/* إظهار القائمة عند الهوفر */
.lang-dropdown:hover .lang-menu {
    display: flex !important;
}

/* NAVBAR */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.navbar ul li a {
    color: var(--white);
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    border-color: var(--blue-main);
}

.btn-nav {
    background: var(--blue-main);
    padding: 10px 18px;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--blue-dark);
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* إصلاح قص العنوان */
    overflow: hidden;
}

/* خلفية الصورة بجودة احترافية */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/home.png');
    background-size: cover;     /* يمنع التمدد أو التشويه */
    background-position: center; /* يجعل الشخص/اللوقو بالوسط */
    background-repeat: no-repeat;
    z-index: 1;
}

/* طبقة تغميق الصورة حتى يبان النص */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.60); /* تغميق احترافي */
    z-index: 2;
}

/* المحتوى فوق الصورة */
.hero-content {
    position: relative;
    z-index: 3; /* يخلي النص والأزرار فوق كل شيء */
    text-align: center;
    max-width: 750px;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7); /* يحمي النص من الخلفية */
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ddd;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* أزرار الهيرو */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    position: relative;
    z-index: 4;
}


.btn-primary {
    padding: 12px 26px;
    background: var(--blue-main);
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-secondary {
    padding: 12px 26px;
    border: 2px solid var(--blue-main);
    border-radius: 6px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--blue-main);
}

/* ABOUT SHORT */
.about-short {
    padding: 90px 0;
    text-align: center;
    background: #111;
}

.about-short h2 {
    font-size: 38px;
    margin-bottom: 18px;
}

.about-short p {
    max-width: 800px;
    margin: auto;
    color: var(--gray);
    margin-bottom: 30px;
}

.btn-learn {
    padding: 12px 22px;
    background: var(--blue-main);
    border-radius: 6px;
}

.btn-learn:hover {
    background: var(--blue-dark);
}

/* SERVICES PREVIEW */
.services-preview {
    padding: 100px 0;
}

.services-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: #111;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    background: #161616;
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--blue-main);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.service-card p {
    color: var(--gray);
}

.btn-services {
    display: block;
    width: fit-content;
    margin: 45px auto 0;
    padding: 12px 26px;
    background: var(--blue-main);
    border-radius: 6px;
}

.btn-services:hover {
    background: var(--blue-dark);
}

/* WHY US */
.why-us {
    padding: 100px 0;
    background: #0f0f0f;
}

.why-us h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.why-card {
    background: #111;
    padding: 35px 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    background: #161616;
}

.why-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--gray);
}

/* PARTNERS */
.partners {
    padding: 100px 0;
}

.partners h2 {
    margin-bottom: 40px !important;
    margin-top: 20px !important;
    text-align: center;
    font-size: 36px;
}


.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.partner {
    height: 120px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;     /* يمنع الصورة من الالتصاق بالأطراف */
    filter: brightness(0.90);
    transition: 0.3s;
}


.partner img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}


.partner:hover {
    background: #222;
    transform: translateY(-6px);
}

/* FOOTER */
.footer {
    background: #0b0b0b;
    padding: 60px 0 25px;
    margin-top: 100px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 140px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--blue-main);
}

.footer-contact p {
    color: var(--gray);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    color: #555;
    font-size: 14px;
}

/* PAGE HERO (ABOUT, SERVICES, CONTACT) */
.page-hero {
    height: 45vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

.page-hero .hero-content {
    position: relative;
    text-align: center;
}

.page-hero h1 {
    font-size: 45px;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--gray);
    font-size: 18px;
}

/* ABOUT PAGE */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--gray);
}

.about-image .img-placeholder {
    width: 100%;
    height: 350px;
    background: url('../img/about.png') center/cover no-repeat;
    border-radius: 10px;
}


.vision-mission {
    padding: 100px 0;
    background: #0f0f0f;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.vm-card {
    background: #111;
    padding: 35px 25px;
    border-radius: 10px;
}

.vm-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.vm-card p {
    color: var(--gray);
}

.core-values {
    padding: 100px 0;
}

.core-values h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: #111;
    padding: 25px 20px;
    border-radius: 10px;
}

.value-card h3 {
    margin-bottom: 10px;
}

.value-card p {
    color: var(--gray);
}

.facilities {
    padding: 100px 0;
    background: #0f0f0f;
}

.facilities h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.facility-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray);
}

.facility-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.facility-img {
    height: 250px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* image inside facility box */
.facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* مهم */
    transition: transform 0.4s ease;
}

.facility-img:hover img {
    transform: scale(1.05);
}


/* SERVICES PAGE */
.services-list {
    padding: 100px 0;
}

.service-card-full {
    background: #111;
    padding: 35px 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.service-card-full:hover {
    background: #161616;
    transform: translateY(-8px);
}

.service-card-full h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card-full p {
    color: var(--gray);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--blue-main);
    margin-bottom: 20px;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
}

.btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 26px;
    background: var(--blue-main);
    border-radius: 6px;
}

.btn-cta:hover {
    background: var(--blue-dark);
}

/* CONTACT PAGE */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 8px;
    color: var(--gray);
}

.contact-form {
    background: #111;
    padding: 35px 25px;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #1a1a1a;
    color: var(--white);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--blue-main);
    border-radius: 6px;
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--blue-dark);
}

.map-section {
    padding: 90px 0;
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 380px;
    background-image: url("assets/img/map-pro.png"); /* ضع اسم الصورة الجديدة */
    background-size: contain; /* تظهر كاملة بدون قص */
    background-repeat: no-repeat; 
    background-position: center; 
    background-color: #121212; /* لون داكن للخلفية */
    border-radius: 10px;
}



.faq-section {
    padding: 100px 0;
    background: #0f0f0f;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    background: #111;
    padding: 25px 20px;
    border-radius: 10px;
}

.faq-item h3 {
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--gray);
}

/* RTL SUPPORT (FOR ARABIC PAGES) */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .header .container,
html[dir="rtl"] .header-flex {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar ul {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown {
    margin-right: 20px;
    margin-left: 0;
}

html[dir="rtl"] label,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-form-wrapper {
    direction: rtl;
}

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 992px) {

    .navbar ul {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .services-grid,
    .why-grid,
    .values-grid,
    .facility-images,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .navbar ul {
        display: none;
    }

    .header {
        padding: 15px 0;
    }

    .hero {
        height: 85vh;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .services-grid,
    .why-grid,
    .values-grid,
    .facility-images,
    .partners-logos,
    .faq-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .service-card,
    .why-card,
    .service-card-full,
    .value-card,
    .faq-item {
        text-align: center;
    }

    .about-text h2,
    .contact-info h2 {
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-learn,
    .btn-services,
    .btn-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}
/* FIX: Prevent hero titles from being cut under fixed header */
.page-hero,
.hero {
    padding-top: 120px !important;
}

/* GOOGLE MAP LINK BUTTON */
.map-open-btn {
    text-align: center;
    margin-top: 15px;
}

.map-open-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0072B8;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    transition: 0.3s ease;
}

.map-open-btn a:hover {
    background: #005a8f;
}

.maps-icon {
    width: 24px;
    height: 24px;
}
/* CLIENTS FIXED DESIGN */

.partners {
    padding: 100px 0;
    text-align: center;
}

.partners h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

/* ترتيب المربعات */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: center;
}

/* المربعات */
.partner {
    width: 100%;
    height: 160px;
    background: #1a1a1a;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

/* صور العملاء */
.partner img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: 0.3s ease;
    filter: brightness(0.95);
}

.partner img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* للهواتف */
@media (max-width: 768px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-logos {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* CLIENTS SLIDER */
.clients {
    padding: 90px 0;
    text-align: center;
}

.clients .section-title {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}

.client-slide {
    width: 100%;
    height: 160px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لو بدكها تغطي كامل المربع بدون أي فراغات استبدلها بـ cover */
    transition: 0.3s ease;
}

.client-slide img:hover {
    transform: scale(1.05);
}
/* ============================
   OUR CLIENTS – SLIDER STYLE
============================ */

/* ============================
   OUR CLIENTS – CLEAN LOGO SLIDER
============================ */

.partners {
    padding: 80px 0;
    background: #0e0e0e;
    text-align: center;
}

.clients-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 700;
}

/* Slider container */
/* FIX: Make client logos full size and restore original look */

.clients-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.slide-track {
    display: flex;
    gap: 40px;
    animation: scroll 25s linear infinite;
    align-items: center;
}

.slide {
    min-width: 220px; /* حجم القالب */
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* يخلّي اللوقو يظهر كامل بدون قص */
    filter: brightness(1); /* تعديل الإضاءة إذا بدك */
}

/* حركة السلايدر */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Fix slider in RTL Arabic pages */
.partners {
    direction: ltr !important;
}

.partners h2 {
    direction: rtl !important;
    text-align: center;
}

/* Ensure full slides always show */
.clients-slider .slide-track {
    direction: ltr !important;
    display: flex;
}

.clients-slider .slide {
    direction: ltr !important;
}
/* === GLOBAL HEADER OFFSET FIX === */
:root {
    --header-height: 90px; /* default */
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --header-height: 95px;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    :root {
        --header-height: 80px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}
.hero *,
.page-hero * {
    scroll-margin-top: var(--header-height);
}
/* === FIX HERO OFFSET FOR FIXED HEADER === */
.hero,
.page-hero {
    margin-top: 75px;
}
/* ============================= */
/* INTEGRATION PAGE – FINAL */
/* ============================= */

/* ============================= */
/* HERO */
/* ============================= */

.integration-hero {
    padding: 160px 0 110px;
    text-align: center;
    background: radial-gradient(circle at top, #111, #000);
}

.integration-hero h1 {
    font-size: 42px;
    max-width: 900px;
    margin: 0 auto 18px;
}

.integration-hero p {
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================= */
/* LOGOS GRID (12 LOGOS) */
/* ============================= */

.integration-logos {
    padding: 90px 0;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    column-gap: 35px;
    row-gap: 60px; /* ✅ مسافة عمودية أوضح */
    max-width: 850px;
    margin: 0 auto;
    place-items: center;
}

.logos-grid img {
    width: 120px; /* ✅ أصغر وأفخم */
    height: auto;
    object-fit: contain;
    filter: none; /* ✅ ألوان طبيعية دائماً */
    opacity: 1;
}

/* ============================= */
/* DETAILS SECTION */
/* ============================= */

.integration-details {
    padding: 120px 0;
    background: #0b0b0b;
}

/* ✅ English default */
.integration-flex {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* TEXT | IMAGE */
    gap: 60px;
    align-items: center;
}

.integration-content {
    text-align: left;
}

.integration-image {
    order: 2;
}

.integration-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
}

/* ✅ Arabic layout only */
html[dir="rtl"] .integration-flex {
    grid-template-columns: 1fr 1.2fr; /* IMAGE | TEXT */
}

html[dir="rtl"] .integration-content {
    text-align: right;
}

html[dir="rtl"] .integration-image {
    order: -1;
}

/* ============================= */
/* INTERACTIVE POINTS – FINAL */
/* ============================= */

.integration-points {
    list-style: none;
    padding: 0;
    margin-top: 35px;
}

/* ITEM */
.int-item {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
    cursor: pointer;
    align-items: flex-start;
}

/* DOT */
.int-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 8px;
    background: #003b73;
    transition: 0.35s ease;
}

/* HOVER */
.int-item:hover .int-dot {
    background: #005fa3;
    box-shadow: 0 0 8px rgba(0,114,184,0.5);
}

/* TEXT (HIDDEN BY DEFAULT) */
.int-text p {
    display: none;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
}

/* ACTIVE STATE */
.int-item.active .int-dot {
    background: #0072B8;
    box-shadow:
        0 0 8px rgba(0,114,184,0.9),
        0 0 18px rgba(0,114,184,0.7),
        0 0 35px rgba(0,114,184,0.5);
}

.int-item.active .int-text p {
    display: block;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 992px) {
    .integration-flex {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }
}

/* ===============================
   FINAL RTL / LTR INTEGRATION FIX
================================ */

/* ===== English (default) ===== */
.integration-flex {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* TEXT | IMAGE */
    gap: 60px;
    align-items: center;
}

.integration-content {
    text-align: left;
}

.integration-image {
    order: 2;
}

/* ===== Arabic ONLY ===== */
html[dir="rtl"] .integration-flex {
    grid-template-columns: 1.2fr 1fr; /* TEXT | IMAGE */
}

html[dir="rtl"] .integration-content {
    text-align: right;
}

html[dir="rtl"] .integration-image {
    order: 2; /* ✅ الصورة باليسار فعلياً بسبب RTL */
}
body.page-about-ar .footer-bottom,
body.page-services-ar .footer-bottom {
    text-align: center !important;
    margin: 20px auto 0;
}
body.page-about-ar .footer-bottom p,
body.page-services-ar .footer-bottom p {
    text-align: center !important;
    width: 100%;
}
/* Footer Legal Links */
.footer-legal {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: #00aaff;
    text-decoration: underline;
}

.footer-legal span {
    margin: 0 8px;
    color: #555;
}
/* ============================= */
/* LEGAL PAGES (Privacy & Terms)
/* ============================= */

.legal-page {
    padding: 110px 0 120px;
    background: linear-gradient(180deg, #0b0b0b, #050505);
}

.legal-content {
    max-width: 900px;
    background: rgba(255,255,255,0.02);
    border-radius: 18px;
    padding: 60px 55px;
    line-height: 1.9;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.legal-content h3 {
    margin-top: 45px;
    margin-bottom: 12px;
    font-size: 22px;
    color: #fff;
}

.legal-content p {
    color: #cfd3d8;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 15px 0 25px;
    padding-left: 20px;
}

html[dir="rtl"] .legal-content ul {
    padding-left: 0;
    padding-right: 20px;
}

.legal-content ul li {
    color: #cfd3d8;
    margin-bottom: 10px;
}

/* Fix header overlap */
.page-hero {
    padding-top: 140px !important;
}

/* Footer legal links */
.footer-legal {
    margin-top: 10px;
    font-size: 14px;
}

.footer-legal a {
    color: #9aa3ad;
    text-decoration: none;
    margin: 0 6px;
}

.footer-legal a:hover {
    color: #ffffff;
}
/* FOOTER CONTACT ALIGNMENT FIX */
.footer-contact {
    text-align: center;
}

.footer-contact p {
    margin: 6px 0;
    color: #9aa1a9;
    font-size: 14px;
    line-height: 1.6;
}

/* RTL fix (Arabic) */
html[dir="rtl"] .footer-contact {
    text-align: center;
}
/* ============================
   FOOTER FINAL ALIGN FIX (AR)
============================ */

html[dir="rtl"] .footer {
    text-align: center;
}

html[dir="rtl"] .footer-contact {
    text-align: center !important;
}

html[dir="rtl"] .footer-contact p {
    direction: rtl;
    text-align: center;
}
/* ===========================
   FOOTER LOCATION TOOLTIP
=========================== */

.footer-location {
    position: relative;
    color: inherit;           /* ✅ نفس لون النص العادي */
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease;
}

/* ✅ يتحول أزرق فقط عند المرور */
.footer-location:hover {
    color: #1da1ff;
}

/* TOOLTIP */
.footer-location::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

/* سهم صغير */
.footer-location::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
    opacity: 0;
    transition: 0.25s ease;
}

/* إظهار الـ tooltip عند hover */
.footer-location:hover::after,
.footer-location:hover::before {
    opacity: 1;
}
/* === SAFETY: Headings Responsive Fix === */
@media (max-width: 768px) {
    h1 {
        font-size: 28px !important;
        line-height: 1.4;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }
}
/* === SAFETY: Prevent Horizontal Scroll === */
html, body {
    overflow-x: hidden;
}
/* === LEGAL PAGES MOBILE FIX === */
@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.8;
    }
}
/* === FOOTER MOBILE FINAL FIX === */
@media (max-width: 768px) {
    .footer-top {
        align-items: center;
        gap: 20px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        text-align: center;
    }
}
/* === IMAGE SAFETY === */
img {
    height: auto;
    max-width: 100%;
}
/* =========================
   MOBILE NAVIGATION (FINAL)
========================= */

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide normal navbar */
  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #0b0b0b;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease;
    z-index: 1000;
  }

  /* Active menu */
  .navbar ul.active {
    right: 0;
  }

  .navbar ul li a {
    font-size: 20px;
    padding: 10px 0;
  }

  /* CTA button bigger */
  .navbar ul li a.btn-nav {
    padding: 14px 30px;
    font-size: 18px;
  }

  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }

  /* FIX header overlap for pages */
  body {
    padding-top: 90px;
  }
}
/* FIX MENU BUTTON POSITION */
.menu-toggle {
  margin-left: auto;
}

/* Arabic: button on left */
html[dir="rtl"] .menu-toggle {
  margin-left: 0;
  margin-right: auto;
}
/* LEGAL PAGES FIX */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-container {
  max-width: 900px;
  margin: auto;
  background: #111;
  padding: 50px;
  border-radius: 14px;
}

.legal-container h1 {
  margin-bottom: 20px;
}

.legal-container h3 {
  margin-top: 30px;
}

@media (max-width: 768px) {
  .legal-container {
    padding: 30px 20px;
  }
}
/* ============================= */
/* MOBILE NAV – FINAL & CLEAN */
/* ============================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s ease;
}

/* Animate X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {

  /* show burger */
  .menu-toggle {
    display: block;
  }

  /* logo size */
  .logo img {
    width: 105px;
  }

  /* NAV */
  .navbar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #0b0b0b;
    flex-direction: column;
    padding: 120px 30px;
    gap: 22px;
    transition: 0.35s ease;
    z-index: 1000;
  }

  .navbar ul.active {
    left: 0;
  }

  /* RTL */
  html[dir="rtl"] .navbar ul {
    left: auto;
    right: -100%;
  }

  html[dir="rtl"] .navbar ul.active {
    right: 0;
  }

  /* Header layout EN */
  html:not([dir="rtl"]) .header-flex {
    justify-content: space-between;
  }

  /* Header layout AR */
  html[dir="rtl"] .header-flex {
    justify-content: space-between;
  }

  /* Language spacing */
  .lang-dropdown {
    margin: 0 8px;
  }
}

/* ============================= */
/* HEADER RTL FIX – FINAL */
/* ============================= */

/* Base */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Desktop RTL ===== */
html[dir="rtl"] .header-flex {
  flex-direction: row;
}

/* Logo right */
html[dir="rtl"] .logo {
  order: 3;
}

/* Navigation middle */
html[dir="rtl"] .navbar {
  order: 2;
}

/* Language + menu left */
html[dir="rtl"] .lang-dropdown {
  order: 1;
}

/* ============================= */
/* LEGAL PAGES STYLE */
/* ============================= */

.legal-page {
  padding: 140px 0 80px; /* مسافة تحت الهيدر */
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: #111;
  padding: 40px 45px;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.legal-content h3 {
  margin-top: 35px;
  margin-bottom: 10px;
  color: #fff;
}

.legal-content p,
.legal-content li {
  color: var(--gray);
  line-height: 1.9;
  font-size: 15px;
}

.legal-content ul {
  padding-inline-start: 20px;
}

/* =====================================================
   MOBILE HEADER & NAV – FINAL FIX (ADD AFTER LINE 1500)
===================================================== */

@media (max-width: 768px) {

  /* ===== HEADER LAYOUT ===== */
  .header {
    height: 75px;
  }

  .header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ===== LOGO ===== */
  .logo img {
    width: 95px;
    height: auto;
  }

  /* ===== MENU + LANGUAGE WRAPPER ===== */
  .lang-dropdown,
  .menu-toggle {
    z-index: 1200;
  }

  /* ===== HAMBURGER BUTTON ===== */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
  }

  /* Hamburger → X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* ===== NAV MENU ===== */
  .navbar ul {
    position: fixed;
    top: 0;
    width: 80%;
    height: 100vh;
    background: #0b0b0b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: 0.35s ease;
    z-index: 1100;
  }

  .navbar ul li a {
    font-size: 20px;
  }

  /* ===== ENGLISH (LTR) ===== */
  html:not([dir="rtl"]) .navbar ul {
    right: -100%;
  }

  html:not([dir="rtl"]) .navbar ul.active {
    right: 0;
  }

  /* ===== ARABIC (RTL) ===== */
  html[dir="rtl"] .navbar ul {
    left: -100%;
  }

  html[dir="rtl"] .navbar ul.active {
    left: 0;
  }

  /* ===== ORDER FIX ===== */

  /* Arabic */
  html[dir="rtl"] .menu-toggle { order: 1; }
  html[dir="rtl"] .lang-dropdown { order: 2; }
  html[dir="rtl"] .logo { order: 3; }

  /* English */
  html:not([dir="rtl"]) .logo { order: 1; }
  html:not([dir="rtl"]) .lang-dropdown { order: 2; }
  html:not([dir="rtl"]) .menu-toggle { order: 3; }

  /* ===== BODY LOCK ===== */
  body.menu-open {
    overflow: hidden;
  }
}
/* ======================================================
   🔥 MOBILE RESPONSIVE FIX (FINAL & CLEAN)
   ضع هذا الكود في نهاية ملف CSS تماماً
====================================================== */

/* 1. إعدادات زر القائمة (الهامبرغر) - يظهر فقط في الجوال */
.menu-toggle {
    display: none; /* مخفي في الديسكتوب */
    cursor: pointer;
    z-index: 9999; /* لضمان ظهوره فوق القائمة دائماً */
    background: transparent;
    border: none;
    padding: 0;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* حركة تحول الزر إلى X */
.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }


/* ======================================================
   📱 بداية تعديلات شاشة الجوال (Max-width: 768px)
====================================================== */
@media (max-width: 768px) {

    /* --- أ. إصلاح الهيدر وترتيب العناصر (LOGO & BUTTONS) --- */
    
    .header-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
        height: 70px; /* ارتفاع ثابت للهيدر لمنع الخروج */
        padding: 0 15px; /* هوامش جانبية */
    }

    /* تصغير اللوجو ليتناسب مع الجوال */
    .logo img {
        max-width: 100px; 
        height: auto;
    }

    /* إظهار زر القائمة */
    .menu-toggle {
        display: block !important;
    }

    /* زر اللغة: ضبط المسافات */
    .lang-dropdown {
        margin: 0 10px;
    }

    /* --- ب. ترتيب العناصر حسب اللغة (RTL vs LTR) --- */

    /* 🇸🇦 في العربية (RTL) */
    html[dir="rtl"] .header-flex {
        flex-direction: row; /* اتجاه طبيعي */
    }
    /* اللوجو يمين */
    html[dir="rtl"] .logo { order: 1; margin-left: auto; } 
    /* زر اللغة وسط */
    html[dir="rtl"] .lang-dropdown { order: 2; }
    /* زر القائمة يسار */
    html[dir="rtl"] .menu-toggle { order: 3; margin-right: 0; }


    /* 🇺🇸 في الإنجليزية (LTR) */
    html:not([dir="rtl"]) .header-flex {
        flex-direction: row; 
    }
    /* اللوجو يسار */
    html:not([dir="rtl"]) .logo { order: 1; margin-right: auto; }
    /* زر اللغة وسط */
    html:not([dir="rtl"]) .lang-dropdown { order: 2; }
    /* زر القائمة يمين */
    html:not([dir="rtl"]) .menu-toggle { order: 3; margin-left: 0; }


    /* --- ج. تصميم القائمة الجانبية الإبداعي (Glassmorphism) --- */
    
    .navbar ul {
        display: flex;
        flex-direction: column;
        justify-content: center; /* توسيط الروابط عمودياً */
        align-items: center;
        gap: 25px;
        
        position: fixed;
        top: 0;
        height: 100vh; /* طول كامل الشاشة */
        width: 80%; /* عرض القائمة */
        max-width: 320px;
        
        /* 🔥 التأثير الزجاجي (Blur) واللون */
        background: rgba(11, 11, 11, 0.9); /* لون أسود شفاف قليلاً */
        backdrop-filter: blur(15px); /* تأثير الضبابية خلف القائمة */
        -webkit-backdrop-filter: blur(15px); /* لدعم متصفح سفاري */
        box-shadow: 0 0 40px rgba(0,0,0,0.5); /* ظل ناعم */
        
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* حركة ناعمة جداً */
        z-index: 9990; /* تحت زر القائمة مباشرة */
        padding: 0;
    }

    /* تكبير الخطوط داخل القائمة */
    .navbar ul li a {
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* تصميم الزر المميز داخل القائمة */
    .navbar ul li a.btn-nav {
        background: #fff;
        color: #000;
        padding: 12px 30px;
        border-radius: 50px;
        margin-top: 15px;
    }

    /* --- د. اتجاه خروج القائمة (Animation Direction) --- */

    /* العربية: تخرج من اليمين */
    html[dir="rtl"] .navbar ul {
        right: -120%; /* مخفية تماماً لليمين */
        left: auto;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    html[dir="rtl"] .navbar ul.active {
        right: 0; /* تظهر */
    }

    /* الإنجليزية: تخرج من اليسار (أو العكس حسب رغبتك، هنا جعلتها عكس العربية) */
    html:not([dir="rtl"]) .navbar ul {
        left: -120%; /* مخفية تماماً لليسار */
        right: auto;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    html:not([dir="rtl"]) .navbar ul.active {
        left: 0; /* تظهر */
    }

    /* منع تحريك الصفحة الخلفية عند فتح القائمة */
    body.menu-open {
        overflow: hidden;
    }
    
    /* --- هـ. إصلاحات النصوص والصفحات القانونية --- */
    .legal-content {
        padding: 20px !important;
    }
    h1 { font-size: 26px !important; line-height: 1.3; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 19px !important; }
}
/* ======================================================
   ✨ FINAL MASTER MOBILE FIX (RTL & LTR)
   تنسيق احترافي للقائمة مع معالجة الترتيب والظهور
====================================================== */

@media (max-width: 768px) {
    /* 1. ضبط الهيدر العام */
    .header-flex {
        display: flex !important;
        flex-direction: row !important; /* الحفاظ على الصف */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        height: 75px !important;
    }

    /* 2. ضبط اللوجو والتحكم (عربي/إنجليزي) */
    .logo {
        display: flex;
        align-items: center;
        z-index: 1200;
    }

    /* أزرار اللغة والقائمة */
    .nav-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 1200;
    }

    /* === منطق الترتيب (RTL vs LTR) === */
    /* عربي: لوجو يمين - أزرار يسار */
    html[dir="rtl"] .logo { order: 1; margin-left: auto; margin-right: 0; }
    html[dir="rtl"] .nav-controls { order: 2; margin-right: 0; }

    /* إنجليزي: لوجو يسار - أزرار يمين */
    html:not([dir="rtl"]) .logo { order: 1; margin-right: auto; margin-left: 0; }
    html:not([dir="rtl"]) .nav-controls { order: 2; margin-left: 0; }

    /* 3. زر القائمة (الهامبرغر) */
    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: 0.3s ease-in-out;
        border-radius: 2px;
    }

    /* تحويل الزر إلى X عند الفتح */
    .menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* 4. القائمة الجانبية (Mobile Menu) - الطول والشفافية */
    .navbar ul {
        display: flex !important;
        flex-direction: column !important; /* إجبار الروابط تظهر بالطول */
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        
        position: fixed !important;
        top: 0 !important;
        width: 80% !important;
        height: 100vh !important;
        
        /* تأثير احترافي وبلور */
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        
        transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1) !important;
        z-index: 1100 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* إخفاء القائمة حسب اللغة */
    html[dir="rtl"] .navbar ul { right: -100%; left: auto; } /* تخرج من اليمين */
    html:not([dir="rtl"]) .navbar ul { left: -100%; right: auto; } /* تخرج من اليسار */

    /* إظهار القائمة عند التفعيل */
    .navbar ul.active {
        right: 0 !important;
        left: 0 !important;
    }

    /* تنسيق الروابط داخل القائمة */
    .navbar ul li {
        list-style: none !important;
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        font-size: 22px !important;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500;
        display: block;
        padding: 10px;
    }

    /* زر الـ CTA داخل القائمة */
    .navbar ul li a.btn-nav {
        background: #fff !important;
        color: #000 !important;
        border-radius: 50px;
        padding: 12px 35px !important;
        margin-top: 10px;
        display: inline-block !important;
        width: auto !important;
    }

    /* قفل السكرول */
    body.menu-open {
        overflow: hidden !important;
    }
}
/* ======================================================
   🚀 FINAL FIX: HEADER ALIGNMENT & RESPONSIVE
====================================================== */

@media (max-width: 768px) {
    /* ضمان بقاء العناصر داخل الهيدر */
    .header {
        height: auto !important; /* يسمح للهيدر بالتوسع ليحتوي العناصر */
        min-height: 70px;
        padding: 10px 0;
        background: #0b0b0b; /* نفس لون الخلفية لضمان عدم خروج العناصر */
    }

    .header-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        max-width: 100%;
        padding: 0 20px !important;
        box-sizing: border-box; /* لمنع خروج العناصر من الحواف */
    }

    /* ضبط حجم اللوجو */
    .logo img {
        max-width: 90px !important;
        height: auto;
    }

    /* تجميع أزرار التحكم لضبط المسافات */
    .nav-controls {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important; /* 👈 هذه القيمة تزيد المسافة بين زر اللغة والقائمة */
    }

    /* === ترتيب العناصر (عربي vs إنجليزي) === */
    
    /* العربية RTL */
    html[dir="rtl"] .logo { 
        order: 1; 
        margin-left: auto; 
    }
    html[dir="rtl"] .nav-controls { 
        order: 2; 
        flex-direction: row-reverse; /* يضمن ترتيب الزرين بشكل صحيح يسار اللوجو */
    }

    /* الإنجليزية LTR */
    html:not([dir="rtl"]) .logo { 
        order: 1; 
        margin-right: auto; 
    }
    html:not([dir="rtl"]) .nav-controls { 
        order: 2; 
    }

    /* === إصلاح صفحات السياسة (Legal Pages) === */
    .legal-page {
        padding-top: 100px !important; /* لمنع تداخل المحتوى مع الهيدر الثابت */
    }

    /* === إصلاح القائمة الجانبية (ظهور طولي) === */
    .navbar ul {
        display: flex !important;
        flex-direction: column !important; /* ترتيب طولي إجباري */
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 100px !important;
        gap: 25px !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px);
    }
}

/* حل مشكلة زر اللغة إذا كان يخرج عن الإطار */
.lang-dropdown {
    display: inline-flex;
    align-items: center;
    white-space: nowrap; /* يمنع انقسام النص داخل الزر */
}
/* ===========================================
   MOBILE FIXES FOR MENU / HEADER / LEGAL PAGES
   Add this at the end of your style.css
   =========================================== */

/* Ensure header controls always visible and top-most on mobile */
@media (max-width: 768px) {

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300 !important;
    background: #0b0b0b;
  }

  .header-flex,
  .logo,
  .nav-controls {
    display: flex !important;
    align-items: center !important;
    z-index: 1301 !important;
  }

  .menu-toggle {
    display: block !important;
    z-index: 1310 !important;
  }

  /* Increase gap between language button and hamburger (both LTR & RTL) */
  .nav-controls {
    gap: 16px !important; /* default gap for mobile */
  }

  /* Extra spacing for Arabic (RTL) so language button not too close to menu */
  html[dir="rtl"] .nav-controls {
    gap: 20px !important;
  }

  /* Make sure language button stays inline and doesn't overflow */
  .lang-dropdown {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  /* MOBILE SIDE MENU - glass + center content vertically */
  .navbar ul {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* vertically center the links */
    align-items: center !important;
    gap: 22px !important;
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    width: 80% !important;
    max-width: 340px !important;
    padding: 0 !important; /* center vertically uses no extra top padding */
    margin: 0 !important;
    background: rgba(11,11,11,0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: transform 0.35s cubic-bezier(.7,0,.3,1) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
    z-index: 1290 !important;
  }

  /* Offscreen positioning by direction (keep hidden until .active) */
  html:not([dir="rtl"]) .navbar ul { transform: translateX(-120%); left: 0; }
  html[dir="rtl"] .navbar ul { transform: translateX(120%); right: 0; }

  .navbar ul.active {
    transform: translateX(0) !important;
  }

  /* Make menu links center and large for easy touch */
  .navbar ul li {
    width: 100% !important;
    text-align: center !important;
  }

  .navbar ul li a {
    display: block !important;
    padding: 12px 10px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
  }

  .navbar ul li a.btn-nav {
    background: #fff !important;
    color: #000 !important;
    border-radius: 50px !important;
    padding: 12px 32px !important;
    display: inline-block !important;
    width: auto !important;
  }

  /* Prevent page scroll while menu open */
  body.menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Remove big top padding on hero/page-hero/legal pages on mobile
     so content sits right below/sticky to the header */
  .hero,
  .page-hero,
  .legal-page {
    padding-top: calc(var(--header-height, 70px)) !important;
    margin-top: 0 !important;
  }

  /* Some places explicitly set too-large padding-top; override */
  .hero { padding-top: calc(var(--header-height, 70px)) !important; }
  .page-hero { padding-top: calc(var(--header-height, 70px)) !important; }
  .legal-page { padding-top: calc(var(--header-height, 70px)) !important; }

  /* Reduce header overlap issues: ensure scroll-margin applied */
  .hero * , .page-hero * {
    scroll-margin-top: calc(var(--header-height, 70px)) !important;
  }

  /* Ensure logo size fits on mobile */
  .logo img { max-width: 95px !important; height: auto !important; }

  /* Slight vertical alignment fix for language button + hamburger */
  .nav-controls { align-items: center !important; }

  /* If the language is inside header and too close — add margin in RTL specifically */
  html[dir="rtl"] .lang-dropdown { margin-left: 10px !important; margin-right: 0 !important; }
  html:not([dir="rtl"]) .lang-dropdown { margin-right: 10px !important; margin-left: 0 !important; }

  /* Keep footer/header z-index safe */
  .footer { z-index: 1; }
}

/* Extra: small screens (<=480) slightly smaller font in menu */
@media (max-width: 480px) {
  .navbar ul li a { font-size: 18px !important; padding: 10px 8px !important; }
  .nav-controls { gap: 14px !important; }
}
/* ================================
   MOBILE: Get-Started + Contact fixes
   Add at the end of style.css
   ================================ */

/* Mobile specific tweaks */
@media (max-width: 768px) {

  /* ------------------
     CTA (Get Started) inside mobile menu
     ------------------ */
  /* Target the CTA inside the side menu */
  .navbar ul li a.btn-nav {
    /* creative navy gradient */
    background: linear-gradient(135deg, #002B52 0%, #005a8f 40%, #0072B8 100%) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 30px rgba(0,114,184,0.18) !important;
    border: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }

  .navbar ul li a.btn-nav:hover,
  .navbar ul li a.btn-nav:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 40px rgba(0,114,184,0.25) !important;
  }

  /* if you prefer to target only a specific CTA, add class .btn-nav.menu-cta to the HTML and use:
     .navbar ul li a.btn-nav.menu-cta { ... }
  */

  /* ------------------
     Ensure mobile side menu centers links vertically
     ------------------ */
  .navbar ul {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* center vertically */
    align-items: center !important;
    padding: 0 !important; /* no extra top padding so centering works */
    gap: 22px !important;
    transform: translateX(-120%); /* default hidden for LTR */
  }
  html[dir="rtl"] .navbar ul { transform: translateX(120%); } /* default hidden for RTL */
  .navbar ul.active { transform: translateX(0) !important; }

  /* Big touch targets and center alignment */
  .navbar ul li { width: 100% !important; text-align: center !important; }
  .navbar ul li a { padding: 12px 18px !important; font-size: 20px !important; display: inline-block !important; }

  /* ------------------
     Contact page (Get in touch) — prevent being cut on mobile
     ------------------ */

  /* Allow contact section to grow naturally and not be clipped */
  .contact-section,
  .contact-grid,
  .contact-form,
  .contact-info,
  .contact-details {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Ensure the grid collapses to single column and form rows wrap vertically */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .form-row {
    flex-direction: column !important; /* stack fields vertically on mobile */
    gap: 14px !important;
    margin-bottom: 14px !important;
  }

  .form-group {
    width: 100% !important;
  }

  .contact-form {
    padding: 24px !important;
    max-height: none !important;
  }

  /* Give some breathing room at the bottom so footer doesn't overlap content */
  .contact-section { padding-bottom: 110px !important; }

  /* If you use any fixed height placeholder images inside the contact page — make them auto */
  .map-placeholder, .contact-image, .contact-form .img-placeholder {
    height: auto !important;
    min-height: 150px !important;
    background-size: cover !important;
  }

  /* ------------------
     Prevent accidental overflow / hidden when menu isn't open
     ------------------ */
  html, body {
    height: auto !important;
    overflow-x: hidden !important; /* keep no horizontal scroll but allow vertical */
  }

  /* ------------------
     Adjust header/contact offset so content is not cut behind fixed header
     ------------------ */
  /* Use the header height variable already defined, fall back to 70px */
  .hero,
  .page-hero,
  .legal-page {
    padding-top: calc(var(--header-height, 70px)) !important;
    margin-top: 0 !important;
  }

  /* if a page used 100vh that's causing crop, override it on mobile */
  .hero { height: auto !important; min-height: calc(60vh) !important; }

  /* ------------------
     Spacing between language button and hamburger (RTL/LTR)
     ------------------ */
  .nav-controls { gap: 16px !important; align-items: center !important; }
  html[dir="rtl"] .nav-controls { gap: 20px !important; }
  html[dir="rtl"] .lang-dropdown { margin-left: 10px !important; margin-right: 0 !important; }
  html:not([dir="rtl"]) .lang-dropdown { margin-right: 10px !important; margin-left: 0 !important; }

}
/* small screens tweaks */
@media (max-width: 480px) {
  .navbar ul li a.btn-nav {
    padding: 10px 22px !important;
    font-size: 18px !important;
  }
  .contact-section { padding-bottom: 90px !important; }
  .form-row { gap: 12px !important; }
}
/* ============================
   Slider & Integration fixes
   Add at the end of style.css
   ============================ */

/* ------- CLIENTS SLIDER: faster + responsive ------- */
.clients-slider {
    overflow: hidden;
    padding: 20px 0;
}

/* reduce slide size so more logos visible, and adjust speed */
.slide-track {
    display: flex;
    gap: 28px;
    animation: scroll 18s linear infinite; /* faster: was 25s */
    align-items: center;
}

/* default slide size (desktop) */
.slide {
    min-width: 180px; /* reduced from 220 to show more on screen */
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* keep logos visible and centered */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    transition: transform 0.3s ease;
    padding: 8px;
}

/* faster loop on small screens and smaller slides */
@media (max-width: 992px) {
    .slide-track { animation-duration: 14s; gap: 22px; }
    .slide { min-width: 160px; height: 110px; }
}

@media (max-width: 768px) {
    .slide-track { animation-duration: 12s; gap: 18px; } /* mobile: even faster */
    .slide { min-width: 140px; height: 100px; }
}

/* Keyframes unchanged but make sure continuous loop translates enough.
   Keep -50% if track is duplicated via JS for an infinite loop. */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Safety: ensure slider shows centered logos and no clipping on mobile */
.clients-slider,
.slide-track,
.slide {
    box-sizing: border-box;
}

/* ------- INTEGRATION PAGE: move image below features on mobile ------- */
/* On mobile: stack content, put image under the points and center it */
@media (max-width: 992px) {
    .integration-flex {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px !important;
    }

    /* ensure points come first, image after */
    .integration-content { order: 1; text-align: left; } /* keep text left inside the block for readability */
    .integration-points { order: 2; margin: 0 auto; text-align: left; max-width: 520px; }
    .integration-image { order: 3; width: 100%; text-align: center; margin-top: 12px; }

    .integration-image img {
        display: block;
        margin: 14px auto 0;
        max-width: 260px; /* fit nicely under the points */
        width: 70%;
        height: auto;
    }

    /* adjust items spacing to avoid cramped look */
    .int-item { gap: 14px; align-items: flex-start; }
    .int-dot { margin-top: 6px; }
    .int-text p { display: none; } /* keep collapsed unless active — unchanged behavior */
}

/* On small mobile tighten sizes */
@media (max-width: 480px) {
    .integration-image img { max-width: 220px; width: 66%; }
    .integration-points { max-width: 360px; margin: 0 auto; }
    .int-item { gap: 12px; }
}
/* Slider: safety & mobile tuning (add at end of style.css) */
.clients-slider { overflow: hidden; padding: 18px 0; }
.slide-track { display: flex; gap: 20px; align-items: center; will-change: transform; }
.slide { flex: 0 0 auto; display:flex; justify-content:center; align-items:center; box-sizing:border-box; padding:6px; }
.slide img { width: auto; max-width: 100%; height: 100%; object-fit: contain; display:block; }

/* mobile tuning */
@media (max-width: 768px) {
  .slide { height: 90px; padding:6px; }
  .slide-track { gap: 14px; }
}
@media (max-width: 768px) {
  /* ensure integration section uses right alignment in Arabic */
  html[dir="rtl"] .integration-flex,
  html[dir="rtl"] .integration-content,
  html[dir="rtl"] .integration-hero .hero-content {
    text-align: right !important;
    direction: rtl !important;
  }
  html[dir="rtl"] .int-text {
    order: 1 !important;
    flex: 1 1 auto !important;
    text-align: right !important;
    direction: rtl !important;
    display: block !important;
  }
  /* ===== MOBILE: Vision & Mission — Title centered, content below, RTL fixed =====
   Add this at the end of style.css
*/
@media (max-width: 768px) {
  /* Ensure grid stacks vertically */
  .vision-mission .vm-grid {
    display: block !important;
    gap: 16px !important;
  }

  /* Make each card a horizontal-appearing rectangle whose content is stacked:
     - Title centered at top of card
     - Description underneath, properly aligned for language (LTR / RTL)
  */
  .vision-mission .vm-card {
    display: block !important;
    width: 100% !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
    background: #0f0f0f !important;
    border-radius: 12px !important;
    min-height: auto !important;
    margin-bottom: 14px !important;
    /* make sure the title is visually separated from the body */
  }

  /* Title: centered in the card */
  .vision-mission .vm-card h3 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  /* Description: occupies full width below the title */
  .vision-mission .vm-card p {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: var(--gray) !important;
    word-break: break-word !important;
    white-space: normal !important;
    text-align: left !important; /* default for English / LTR pages */
    text-justify: inter-word !important;
  }

  /* RTL (Arabic) specific adjustments:
     - Keep the title centered visually, but the paragraph should be RTL & justified
     */
  html[dir="rtl"] .vision-mission .vm-card {
    direction: rtl !important;
  }

  html[dir="rtl"] .vision-mission .vm-card h3 {
    text-align: center !important; /* title remains centered */
  }

  html[dir="rtl"] .vision-mission .vm-card p {
    text-align: justify !important;
    direction: rtl !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
  }

  /* Small phones: slightly reduce sizes for readability */
  @media (max-width: 420px) {
    .vision-mission .vm-card { padding: 14px 12px !important; }
    .vision-mission .vm-card h3 { font-size: 16px !important; }
    .vision-mission .vm-card p  { font-size: 14px !important; line-height: 1.7 !important; }
  }
}