/* --- الأنيميشن --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Changa', sans-serif;
}

.animate-fade-up { animation: fadeUp 1s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 1s ease-out forwards; opacity: 0; animation-delay: 0.3s; }

/* --- الحاوية الرئيسية --- */
.se1 {
    min-height: 100vh; /* السماح بالتمدد إذا كان المحتوى أطول */
    height: auto;      /* إلغاء الطول الثابت */
    width: 100%;
    position: relative;
    /* overflow: hidden; تم إزالتها للسماح بظهور المحتوى */
}

.backim {
    position: absolute;
    inset: 0;
    z-index: -2;
    min-height: 100vh; /* الخلفية تتغطي الشاشة بالكامل */
}

.baim {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

/* --- الهيدر الذكي (menuasset) --- */
.menuasset {
    height: 70px;
    width: 90%;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    margin: 10px auto 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s ease;
    background-color: transparent;
    z-index: 9;
}

html[dir="ltr"] .menuasset {
    flex-direction: row-reverse; 
}

.menuasset.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 65px;
}

.srt1 {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 22px;
    margin-left: 22px;
    gap: 30px; /* مسافة بين الشعار والقائمة */
}

html[dir="ltr"] .srt1 { 
    flex-direction: row-reverse; 
}

.logs { height: 40px; }

.srt1 nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.srt1 nav ul li {
    margin-left: 23px;
    list-style: none;
}
html[dir="ltr"] .srt1 nav ul li { margin-left: 0; margin-right: 23px; }

.srt1 nav ul li a {
    font-size: 15px;
    text-decoration: none;
    font-family: 'Changa', sans-serif;
    font-weight: 500;
    color: #24394E;
    transition: color 0.3s;
}
.srt1 nav ul li a:hover { color: #976A41; }

.menu {
    margin-left: 22px;
    display: flex;
    align-items: center;
}
html[dir="ltr"] .menu { margin-left: 0; margin-right: 22px; }

.mas { height: 18px; margin-right: 20px; }
html[dir="ltr"] .mas { margin-right: 0; margin-left: 20px; }

.shopa { height: 20px; }

.incal {
    height: 100px; /* طول ثابت لضمان الظهور */
    width: 100%;
    position: absolute; /* نضعه فوق الخلفية */
    bottom: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* --- قسم المحتوى (Home) --- */
/* --- قسم المحتوى (Home) --- */
.home1 {
    width: 100%;
    height: auto; /* بدلاً من 90% */
    min-height: 80vh; /* نعطيه حداً أدنى ليناسب الشاشات الكبيرة */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 5%;
}

/* الإنجليزية: الترتيب ينعكس من الـ HTML، والـ RTL يتكفل بالباقي */
html[dir="ltr"] .home1 { flex-direction: row-reverse; }

.hometex {
    width: 40%;
    text-align: right;
    font-family: 'Changa', sans-serif;
    color: #24394E;
}
html[dir="ltr"] .hometex { text-align: left; }

.hedr1 { font-size: 44px; margin: 0; line-height: 1.3; }
.hedr2 { font-size: 33px; font-weight: 100; margin: 0; line-height: 1.3; margin-top: 12px; }
.prgrahed { color: #976A41; font-size: 24px; font-weight: 500; margin-top: 40px; }

.homeimg {
    width: 46%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homeimg img {
    width: 140px;
    margin-left: 10px;
    margin-right: 10px;
}

.sv1 { margin-top: 50px; }
.sv2 { margin-bottom: 150px; }
.sv3 { margin-top: 200px; }

/* --- الأزرار (butcla) --- */
.butcla {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

html[dir="ltr"] .butcla { justify-content: flex-start; }

.butcla button {
    height: 50px;
    width: 160px;
    border: 0px;
    border-radius: 100px;
    cursor: pointer;
    margin-left: 28px;
    font-family: 'Changa', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: 0.4s;
}

html[dir="ltr"] .butcla button { margin-left: 0; margin-right: 28px; }

.bu1 { background-color: #23374F; color: #ffffff; }
.bu1:hover { background-color: #526f94; }

.bu2 { 
    background-color: #EACDAD; 
    color: #23374F; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-direction: row; 
}
html[dir="ltr"] .bu2 { flex-direction: row-reverse; }

.bu2 img {
    height: 20px;
    transform: rotate(180deg); 
    margin-right: 10px; 
    margin-left: 0;
}
html[dir="ltr"] .bu2 img { 
    transform: rotate(0deg); 
    margin-right: 0; 
    margin-left: 10px; 
}
.bu2:hover { background-color: #b89774; }


/* =========================================
   التجاوب مع الشاشات (Responsive) 
========================================= */

/* 1. الشاشات المتوسطة (تابلت) */
/* 1. الشاشات المتوسطة (تابلت) */
@media (max-width: 992px) {
    .home1 { flex-direction: column; padding-top: 120px; padding-bottom: 50px; height: auto; text-align: center; gap: 20px; }
    html[dir="ltr"] .home1 { flex-direction: column; }
    
    .hometex { width: auto; margin: 0 auto; text-align: center; }
    html[dir="ltr"] .hometex { text-align: center; }
    
    /* ترتيب النص فوق والصور تحت */
    .hometex { order: 1; }
    .homeimg { order: 2; width: 100%; height: auto; margin: 0; }

    .butcla { justify-content: center; }
    .hedr1 { font-size: 34px; }
    .hedr2 { font-size: 26px; }
    
    /* إخفاء القائمة العلوية وإظهار زر الهامبرغر */
    .desktop-only { display: none !important; }
    .mobile-menu-btn { display: block !important; } /* أضفنا !important للتأكيد */
    
    /* ترتيب الشريط العلوي */
    .menuasset { 
        width: 90%; 
        padding: 0 15px; 
        justify-content: space-between; /* توزيع العناصر على الأطراف */
    }
    
    /* إصلاح ترتيب العناصر داخل الشريط */
    .srt1 { 
        width: auto; /* إزالة 100% */
        margin: 0; 
        flex-direction: row !important; 
        gap: 0; /* إزالة المسافة بين الشعار (الذي سيختفي) */
    }
    
    /* ترتيب الصور الثلاث */
    .homeimg img { width: 22%; max-width: 150px; margin: 0; }
    .sv1, .sv2, .sv3 { margin: 0 !important; }
    .homeimg { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
}


/* 2. شاشات الجوال (أقل من 768) */
@media (max-width: 768px) {
    .menuasset { width: 90%; border-radius: 100px; top: 10px; }
    
    /* إصلاح اتجاه الشعار وزر القائمة */
    .srt1 { 
        justify-content: space-between !important; 
        flex-direction: row !important;
    }
    html[dir="rtl"] .srt1 { flex-direction: row-reverse !important; }
    
    .logs { height: 35px; }
    .hedr1 { font-size: 28px; }
    .hedr2 { font-size: 22px; }
    .prgrahed { font-size: 18px; margin-top: 15px; }
    
    .butcla { flex-direction: column; width: 100%; gap: 15px; }
    .butcla button { width: 100%; max-width: 250px; margin: 0 auto !important; }
    
    /* الصور الثلاث تصطف بجانب بعضها */
    .homeimg { gap: 8px; }
    .homeimg img { width: 30%; max-width: 120px; margin: 0 !important; }
}

/* 3. شاشات الجوال الصغيرة جداً (أقل من 480) */
@media (max-width: 480px) {
    .hedr1 { font-size: 24px; }
    .hedr2 { font-size: 20px; }
    .prgrahed { font-size: 16px; }
    
    .homeimg { gap: 5px; }
    .homeimg img { width: 30%; max-width: 90px; }
}


/* =========================================
   القائمة الجانبية (Mobile Menu)
========================================= */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.close-menu-btn { position: absolute; top: 20px; left: 20px; background: none; border: none; cursor: pointer; }
html[dir="ltr"] .close-menu-btn { left: auto; right: 20px; }

.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 998;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: #fff; z-index: 999; transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding-top: 60px;
    display: flex; flex-direction: column;
}
html[dir="ltr"] .mobile-sidebar { right: auto; left: -100%; }
.mobile-sidebar.active { right: 0; }
html[dir="ltr"] .mobile-sidebar.active { left: 0; }

.mobile-nav { margin-bottom: 20px;}
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav ul li { border-bottom: 1px solid #eee; }
.mobile-nav ul li a { display: block; padding: 15px 25px; color: #24394E; font-family: 'Changa', sans-serif; font-weight: 600; text-decoration: none; transition: background 0.3s; }
.mobile-nav ul li a:hover { background: #f9f9f9; color: #976A41; }

.mobile-icons { display: flex; justify-content: center; gap: 20px; padding: 20px; border-top: 1px solid #eee; }
.mobile-icons img { height: 22px; }
















/* =========================================
   القسم الثاني (About Section)
========================================= */
.se2 {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 50px 0;
    overflow: hidden;
}

.pos {
    height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: -1;
    /* تم تثبيت اتجاه الصور لكي لا تتأثر باللغة */
    direction: ltr; 
}

/* الصور ثابتة فيزيائياً على اليسار واليمين كما في التصميم الأصلي */
.circl {
    position: absolute;
    left: 0; /* ثابتة يسار */
    bottom: 20px;
    height: 50%;
}

.circl2 {
    position: absolute;
    left: 0; /* ثابتة يسار */
    top: 10px;
    height: 20%;
}

.circl3 {
    position: absolute;
    left: 18%; /* ثابتة يسار */
    top: 10px;
    height: 80%;
}

.circl4 {
    position: absolute;
    left: 30px; /* ثابتة يسار */
    top: 10%;
    height: 75%;
}

.circl5 {
    position: absolute;
    right: 0px; /* ثابتة يمين */
    top: 5%;
    height: 60%;
}

/* --- النصوص --- */
.metwa {
    position: relative;
    width: 50%; /* عرض النص */
    /* تثبيت النص في النصف الأيمن دائماً ليكون بجانب الصور */
    margin-right: 5%; 
    margin-left: auto; 
    font-family: 'Changa', sans-serif;
    color: #23374F;
    text-align: right; /* افتراضي للعربية */
    z-index: 2;
}

/* في الإنجليزية: يبقى النص في اليمين، ولكن يتحول اتجاهه لليسار (LTR) */
html[dir="ltr"] .metwa {
    margin-right: 5%; 
    margin-left: auto;
    text-align: left; 
}

.hwsder2 {
    font-size: 24px;
    margin: 0px;
}

.darws {
    display: flex;
    justify-content: flex-end; /* العربية: الخطوط لليمين */
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}
html[dir="ltr"] .darws { 
    justify-content: flex-start; /* الإنجليزية: الخطوط لليسار */
}

.darw { width: 57px; height: 4px; background-color: #23374F; border-radius: 100px; }
.dar { width: 9px; height: 4px; background-color: #23374F; border-radius: 100px; margin-left: 4px; }
.da { width: 4px; height: 4px; background-color: #23374F; border-radius: 100px; margin-left: 4px; }

.hasatex { 
    margin-right: 50px; /* إزاحة بسيطة من اليمين */
}
html[dir="ltr"] .hasetex { 
    margin-right: 0; 
    margin-left: 0; 
}

.he1 { font-size: 32px; margin: 0px; margin-top: 50px; }
.he2 { font-size: 24px; margin: 0px; font-weight: 400; }
.prgra { font-size: 20px; font-weight: 400; color: #976A41; line-height: 1.8; margin-top: 15px; }

.busdz {
    display: flex;
    justify-content: flex-end; /* العربية: الزر لليمين */
    align-items: flex-end;
    margin-top: 30px;
}
html[dir="ltr"] .busdz { 
    justify-content: flex-start; /* الإنجليزية: الزر لليسار */
}

/* --- زر قراءة المزيد --- */
/* --- زر قراءة المزيد --- */
.bua {
    position: relative;
    background: linear-gradient(to bottom right, #AA8666 0%, #CAA674 100%);
    color: #ffffff;
    display: flex;
    justify-content: center; /* توسيط العناصر داخل المساحة المتاحة */
    align-items: center;
    height: 50px;
    width: 170px;
    border: 0px;
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Changa', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: 0.4s;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0; 
}

/* النص يأخذ المساحة المتبقية ويتمركز فيها */
.bua span {
    flex: 1; /* يأخذ كل المساحة المتبقية */
    text-align: center; /* يوسط النص في المساحة المتبقية */
    display: block;
}

/* في العربية: نضيف مسافة للدائرة اليسرى لكي يبتعد النص عنها */
html[dir="rtl"] .bua {
    padding-left: 46px; /* 36px للدائرة + 10px للمسافة */
}
html[dir="rtl"] .bua span {
    padding-right: 10px; /* تعويض بسيط للتوازن */
}

/* في الإنجليزية: نضيف مسافة للدائرة اليمنى لكي يبتعد النص عنها */
html[dir="ltr"] .bua {
    padding-right: 46px; 
}
html[dir="ltr"] .bua span {
    padding-left: 10px;
}

/* الدائرة */
.serva {
    position: absolute;
    top: 7px;
    height: 36px;
    width: 36px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #CBA574 0%, #C49979 100%);
}

/* مكان الدائرة في العربية (يسار) */
html[dir="rtl"] .serva {
    left: 10px; 
}

/* مكان الدائرة في الإنجليزية (يمين) */
html[dir="ltr"] .serva {
    right: 10px;
}

/* اتجاه السهم */
.serva img {
    transform: rotate(0deg); 
}

html[dir="ltr"] .serva img {
    transform: rotate(180deg); 
}

/* التجاوب مع الجوال */
@media (max-width: 992px) {
    html[dir="ltr"] .darws { 
    justify-content: center; /* الإنجليزية: الخطوط لليسار */
}
    .se2 { 
        padding: 120px 0 50px 0; 
        height: auto; 
        display: flex;
        flex-direction: column-reverse; /* عكس الترتيب لكي تظهر الصورة في الأسفل */
        align-items: center;
    }

    /* إبقاء الأشكال الجانبية ملتصقة بالحواف */
    .pos { 
        position: absolute; 
        inset: 0;
        height: 100%;
        width: 100%;
        opacity: 1; 
        z-index: -1; 
    }

    .circl { left: 0; bottom: 10%; height: 40%; width: auto; }
    .circl2 { left: 0; top: 10%; height: 15%; width: auto; }
    .circl5 { right: 0; top: 10%; height: 30%; width: auto; }
    
    /* تنسيق الصورة الوسطى (غرفة المعيشة) لتكون في الأسفل وتكون واضحة */
    .circl4 { 
        position: relative; /* إلغاء التثبيت */
        display: block;
        margin: 0px auto 0 0; /* توسيطها في الأسفل */
        max-width: 350px;
        height: 170px; 
        z-index: 10;
    }
    
    /* إخفاء الصورة الثالثة المزعجة */
    .circl3 { display: none; }

    /* تنسيق النص ليكون مقروءاً ومريحاً */
    .metwa {
        position: relative;
        width: 90%;
        margin: 0 auto;
        text-align: center;
        background: rgba(255, 255, 255, 0.85); 
        padding: 20px;
        border-radius: 20px;
        z-index: 2;
    }
    
    html[dir="ltr"] .metwa { text-align: center; margin: 0 auto; }
    
    .hwsder2 { font-size: 22px; margin-bottom: 10px; }
    .darws { justify-content: center; margin-bottom: 15px;}
    .hasetex { margin: 0; }
    .he1 { font-size: 26px; margin-top: 0; line-height: 1.4;}
    .he2 { font-size: 18px; margin-top: 5px; }
    .prgra { font-size: 16px; line-height: 1.8; margin-top: 15px; }
    .busdz { justify-content: center; margin-top: 25px;}
}









/* =========================================
   القائمة الجانبية (Mobile Menu) المطورة
========================================= */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }

.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(36, 57, 78, 0.6); /* لون الشعار مع شفافية */
    backdrop-filter: blur(4px); /* تأثير ضبابي خلف القائمة */
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 998;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
    background: #ffffff; z-index: 999; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    border-top-left-radius: 20px; /* حواف دائرية */
    border-bottom-left-radius: 20px;
}

html[dir="ltr"] .mobile-sidebar { 
    right: auto; left: -100%; 
    border-radius: 0 20px 20px 0; /* عكس الحواف للإنجليزية */
}
.mobile-sidebar.active { right: 0; }
html[dir="ltr"] .mobile-sidebar.active { left: 0; }

/* رأس القائمة الجانبية */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, #fdfbfb, #ffffff); /* تدرج لوني خفيف */
    border-top-left-radius: 20px;
}
html[dir="ltr"] .sidebar-header { border-top-left-radius: 0; border-top-right-radius: 20px; }

.sidebar-logo { height: 40px; object-fit: contain; }

.close-menu-btn { 
    background: #f5f5f5; border: none; cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.close-menu-btn:hover { background: #EACDAD; color: #fff; }

/* الروابط */
.mobile-nav { flex: 0.8; padding: 15px 0; overflow-y: auto; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }

.mobile-nav ul li { 
    border-bottom: 1px solid #f5f5f5; 
}

.mobile-nav ul li a { 
    display: flex; 
    align-items: center;
    gap: 15px; /* مسافة بين الأيقونة والنص */
    padding: 16px 25px; 
    color: #24394E; 
    font-family: 'Changa', sans-serif; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
}

/* تأثير الخلفية عند المرور بالماوس */
.mobile-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #f9f9f9;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}
html[dir="ltr"] .mobile-nav ul li a::before { transform: translateX(-100%); }

.mobile-nav ul li a:hover::before { transform: translateX(0); }
.mobile-nav ul li a:hover { color: #976A41; padding-right: 35px; } /* إزاحة النص قليلاً */
html[dir="ltr"] .mobile-nav ul li a:hover { padding-right: 25px; padding-left: 35px; }

/* أيقونات الروابط */
.mobile-nav ul li a svg {
    width: 20px;
    height: 20px;
    color: #976A41; /* لون ذهبي للأيقونات */
    transition: transform 0.3s ease;
}
.mobile-nav ul li a:hover svg { transform: scale(1.1); }

/* تذييل القائمة الجانبية (أيقونات) */
.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-bottom-left-radius: 20px;
}
html[dir="ltr"] .mobile-sidebar-footer { border-bottom-left-radius: 0; border-bottom-right-radius: 20px; }

.mobile-icons { 
    display: flex; 
    justify-content: space-around; 
    align-items: center;
}
.mobile-icons a {
    background: #fff; 
    width: 45px; height: 45px; 
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.mobile-icons a:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.mobile-icons img { height: 20px; width: 20px; object-fit: contain; }

























/* =========================================
   القسم الثالث (الخدمات)
========================================= */
.incaas {
    height: 100px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.se3 {
    width: 100%;
    min-height: 100vh;
    background-color: #F4EDE5;
    position: relative;
    overflow: hidden;
}

.titlswq {
    height: auto;
    padding-top: 80px; /* مساحة من الأعلى */
    z-index: 1;
    color: #23374F;
    text-align: center;
    font-family: 'Changa', sans-serif;
    position: relative;
}

.darwss {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}



/* الشرطة المتوسطة */
.dars { 
    width: 9px; 
    height: 4px; 
    background-color: #23374F; 
    border-radius: 100px; 
    margin-right: 4px; /* بدلاً من margin-left */
}

/* النقطة */
.das { 
    width: 4px; 
    height: 4px; 
    background-color: #23374F; 
    border-radius: 100px; 
    margin-right: 4px; /* بدلاً من margin-left */
}

/* في الإنجليزية نعكس الهوامش */
html[dir="ltr"] .dars { 
    margin-right: 0; 
    margin-left: 4px; 
}
html[dir="ltr"] .das { 
    margin-right: 0; 
    margin-left: 4px; 
}
.dscfcs {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    gap: 50px;
    margin: 0 auto;
}

/* --- النصوص --- */
.services-section {
    width: 100%;
    max-width: 500px;
    text-align: right; /* العربية */
}

html[dir="ltr"] .services-section {
    text-align: left; /* الإنجليزية */
}

.top-title-container { margin-bottom: 5px; }

.top-title {
    color: #976A41;
    font-size: 14px;
    font-weight: 500;
}

.main-description {
    color: #23374F;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 15px;
}

.divider {
    border: none;
    border-top: 2px solid #23374f86;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 80%;
}
html[dir="rtl"] .divider { margin-right: 0; margin-left: auto; }
html[dir="ltr"] .divider { margin-left: 0; margin-right: auto; }

.details-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.detail-item { flex: 1; }

.detail-title {
    color: #976A41;
    font-size: 14px;
    font-weight: 500;
    text-align: end;
    margin-top: 0;
}
html[dir="ltr"] .detail-title { text-align: start; }

.detail-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
html[dir="ltr"] .detail-content { justify-content: flex-start; }

.detail-content p {
    color: #23374F;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.detail-icon { width: 18px; height: 18px; object-fit: contain; }

.button-container {
    display: flex;
    justify-content: flex-end;
}
html[dir="ltr"] .button-container { justify-content: flex-start; }

.cta-button {
    background-color: #E2E2E2;
    color: #23374F;
    border: none;
    border-radius: 100px;
    padding: 8px 16px;
    font-family: 'Changa', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 44px;
    width: 147px;
}

.cta-button:hover { background-color: #ddd5c8; }

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 10px;
}

.btn-icon2 {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 10px;
    transform: rotate(180deg);
}

/* =========================================
   السلايدر (Before / After) - ثابت في اللغتين
========================================= */
.comparison-slider {
    position: relative;
    width: 629px;
    max-width: 100%;
    height: 395px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    user-select: none;
    direction: ltr; /* يمنع المتصفح من عكس السلايدر في العربية */
    z-index: 3;
}

        .comparison-slider img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none; /* منع سحب الصور كملفات */
        }

/* الصورة الأولى (قبل) */
.image-before { 
    z-index: 1; 
}

/* حاوية الصورة الثانية (بعد) */
.image-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    /* احذف سطر border-left من هنا */
    border-right: 2px solid #F4EDE5; 
}

/* تأكد من أن هذه الصورة تأخذ العرض الكامل للحاوية */
.image-after-wrapper img {
    width: 800px; /* أو العرض الذي تستخدمه في .comparison-slider */
    max-width: none;
    height: 100%;
    object-fit: cover;
}

/* المقبض */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;    
    box-shadow: 0 0 0 2px white;
}

.slider-handle::before, .slider-handle::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
}
.slider-handle::before { border-width: 6px 8px 6px 0; border-color: transparent #333 transparent transparent; left: 10px; }
.slider-handle::after { border-width: 6px 0 6px 8px; border-color: transparent transparent transparent #333; right: 10px; }

/* النصوص (قبل / بعد) - ثابتة فيزيائياً */
.label {
    position: absolute;
    top: 10px;
    height: 24px;
    padding: 0 10px;
    background: rgba(239, 246, 255, 0.7);
    color: #23374F;
    font-weight: bold;
    border-radius: 20px;
    z-index: 3;
    pointer-events: none;
    font-size: 12px;    
    font-family: 'Changa', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* نصوص قبل وبعد ثابتة لا تتأثر باللغة */
.label-before { left: 15px; right: auto; }
.label-after { right: 15px; left: auto; }

/* الصورة الخلفية (ثابتة يميناً لا تتأثر باللغة) */
.backesw {
    position: absolute;
    right: 0;
    top: -50px;
    height: 70%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   التجاوب (Responsive)
========================================= */
@media (max-width: 992px) {
    .dscfcs {
        flex-direction: column;
        gap: 40px;
    }
    
    .services-section { 
        max-width: 90%; 
        text-align: center; 
    }
    html[dir="ltr"] .services-section { 
        text-align: center; 
    }
    
    .divider { 
        margin: 20px auto; 
    }
    
    .details-container { 
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }
    .detail-title, .detail-content { 
        text-align: center; 
        justify-content: center; 
    }
    html[dir="ltr"] .detail-title, html[dir="ltr"] .detail-content { 
        text-align: center; 
        justify-content: center; 
    }
    
    .button-container, html[dir="ltr"] .button-container { 
        justify-content: center; 
    }
    
    .backesw { 
        opacity: 0.2; 
    }
}

@media (max-width: 768px) {
    .comparison-slider {
        width: 90%;
        height: 300px;
    }
    
    .image-after-wrapper img {
        width: 100vw; /* تعديل العرض ليتناسب مع الشاشة */
    }
}

/* إخفاء أيقونات الخدمات في اللغة الإنجليزية */
html[dir="ltr"] .detail-icon {
    display: none;
}




















/* =========================================
   القسم الرابع (الخدمات) - كما هو في التصميم الأصلي
========================================= */

.se4 {
    width: 100%;
    background-color: #F4EDE5;
    position: relative;
    background: linear-gradient(to bottom right, #B29C84 0%, #D9D0C6 100%);
    /* تمت إزالة overflow: hidden للسماح للأشكال بالظهور */
}

.barsmj {
    width: 100%;
    position: absolute;
    top: 0px;
    z-index: 1;
}

/* تثبيت الأشكال في أماكنها الفيزيائية (لا تتأثر باللغة) */
.nqutr { position: absolute; top: -130px; right: 220px; z-index: 2; height: 334px; }
.nqutr2 { position: absolute; bottom: -150px; height: 322px; right: 150px; z-index: 2; }
.nqutr3 { position: absolute; bottom: -280px; height: 300px; right: 190px; z-index: 2; }
.nqutr4 { position: absolute; bottom: -280px; height: 322px; right: 180px; z-index: 2; }
.nqutr5 { position: absolute; bottom: -330px; height: 380px; right: 230px; z-index: 2; }

.eksx {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.asa {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    overflow: visible;
    max-width: 777px;
    max-height: 411px;
    width: 100%;
    border: 2px solid #ffffff;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 16px;
}

.aser {
    width: 757px;
    max-height: 391px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: pointer;
    transition: 0.5s;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 3;
}

.aser:hover {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* قسم الصورة */
.image-container {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 391px;
    width: 757px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* النصوص */
.content-container {
    padding: 0 50px;
    text-align: right; /* العربية */
    z-index: 2;
    position: absolute;
    height: 391px;
    width: 380px;
    border-radius: 0 40px 40px 0;
    right: 8px;
    isolation: isolate;
}

.content-container2 {
    padding: 0 20px;
    text-align: right; /* العربية */
    z-index: 2;
    position: absolute;
    height: 391px;
    width: 380px;
    border-radius: 0 40px 40px 0;
    left: 0px;
    isolation: isolate;
}

/* الإنجليزية: عكس اتجاه النص فقط */
html[dir="ltr"] .content-container { text-align: left; }
html[dir="ltr"] .content-container2 { text-align: left; }

.content-container h1, .content-container2 h1 {
    color: #1a3b5c;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0px;
    margin-top: 60px;
}

.content-container h2, .content-container2 h2 {
    color: #1a3b5c;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0px;
    margin-bottom: 0px;
}

.content-container p, .content-container2 p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
    text-align: end;
}

html[dir="ltr"] .content-container p, 
html[dir="ltr"] .content-container2 p {
    text-align: start; /* محاذاة النص لليسار في الإنجليزية */
}

.taheded {
    width: 100%;
    display: flex;
    justify-content: end; /* العربية: الزر لليمين */
    align-items: center;
}
html[dir="ltr"] .taheded {
    justify-content: start; /* الإنجليزية: الزر لليسار */
}

/* الزر */
.sdsxz {
    height: 38px;
    width: 129px;
    background-color: #5B6C81;
    border-radius: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imwsasx {
    height: 16px;
    width: 16px;
    transform: rotate(135deg);
    margin-left: 11px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a3b5c;
    color: white;
    height: 38px;
    width: 96px;
    border-radius: 50px;
    border: 0px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Changa', sans-serif;
}
.btn:hover { background-color: #122a42; }

/* إخفاء المساحة الفارغة */
.spacer { display: none; }

/* =========================================
   التجاوب مع الشاشات الصغيرة (الجوال) 
========================================= */
@media (max-width: 850px) {
    /* تحويل الكروت لتصبح عمودية */
    .asa {
        flex-direction: column;
        padding: 10px;
        max-height: none;
        width: 95%;
        margin: 15px auto;
    }
    
    .aser {
        flex-direction: column;
        width: 100%;
        max-height: none;
    }
    
    .image-container {
        max-width: 100%;
        width: 100%;
        height: 250px;
    }
    
    /* تعديل حواف الصورة */
    .image-wrapper {
        height: 100%;
        width: 100%;
        border-radius: 40px 40px 0 0; /* علوية دائرية، سفلية مستقيمة */
    }
    
    /* جعل النصوص تظهر أسفل الصورة بدلاً من التداخل */
    .content-container, .content-container2 {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        text-align: center; /* توسيط في الجوال */
        background: #F4EDE5; /* إضافة خلفية لتمييز النص */
        border-radius: 0 0 40px 40px;
        right: auto;
        left: auto;
    }
    
    html[dir="ltr"] .content-container, 
    html[dir="ltr"] .content-container2 {
        text-align: center;
    }
    
    .content-container h1, .content-container2 h1 {
        margin-top: 0;
        font-size: 20px;
    }
    
    .content-container h2, .content-container2 h2 {
        font-size: 18px;
    }
    
    .content-container p, .content-container2 p {
        text-align: center;
        font-size: 14px;
        color: #1a3b5c; /* تغيير اللون ليكون واضحاً على الخلفية الفاتحة */
    }
    
    html[dir="ltr"] .content-container p, 
    html[dir="ltr"] .content-container2 p {
        text-align: center;
    }
    
    .taheded, html[dir="ltr"] .taheded {
        justify-content: center; /* توسيط الزر في الجوال */
    }
    
    /* تصغير أو إخفاء الأشكال الخلفية لمنع الفوضى */
    .nqutr, .nqutr2, .nqutr3, .nqutr4, .nqutr5 {
        opacity: 0.3;
        height: 150px;
    }
}
















.se5 {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.barsdgz {
    width: 100%;
    position: absolute;
    bottom: 0px;
    z-index: 1;
}