/* 1. تفعيل التمرير السلس لكل الموقع */
html {
  scroll-behavior: smooth;
}

/* 2. تعريف الألوان (يمكنك تغييرها بسهولة من هنا) */
:root {
  --scrollbar-width: 10px;           /* عرض الشريط */
  --scrollbar-bg: #f4f4f4;           /* لون الخلفية */
  --scrollbar-thumb: #f05a28;        /* لون الشريط الرئيسي */
  --scrollbar-thumb-hover: #f05a28;  /* لون الشريط عند المرور */
  --scrollbar-radius: 5px;           /* حواف دائرية */
}

/* 3. تنسيق شريط التمرير (متصفحات Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

/* لون المسار (الخلفية) */
::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

/* شكل الشريط نفسه */
::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: var(--scrollbar-radius);
  border: 2px solid var(--scrollbar-bg); /* إطار بسيط لإعطاء مساحة */
  transition: all 0.3s ease;
}

/* تأثير عند مرور الماوس على الشريط */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
body {
  direction: rtl;
  font-family: Tajawal, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  
}
/* ==========================================================================
   1. المتغيرات المركزية للهوية البصرية (CSS Root Variables)
   ========================================================================== */
:root {
    /* الألوان الأساسية للموقع */
    --uicolor: #0d6d8b;
    --uicolor2: #107695;
    --uicolor3: #e6f2ff;
    --success-color: #2078c4;
    --whatsapp-color: #148930;
    
    /* ألوان النصوص والخلفيات العامة */
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0d1728;
    --text-muted: #535772;
    --text-secondary: #5c5e66;
    --border-color: #e5eaef;
    --border-hover: #e5eaef80;
    
    /* الخطوط والأبعاد الثابتة */
    --font-main: "Baloo Bhaijaan 2", system-ui, -apple-system, sans-serif;
    --container-max-width: 1450px;
    --container-padding-desktop: 40px;
    --container-padding-mobile: 16px;
    
    /* الحواف والظلال والتأثيرات الحركة */
    --radius-large: 16px;
    --radius-mini: 8px;
    --shadow-default: var(--border-color) 0px 0px 0px 1px, 0px 4px 6px -3px #09234012;
    --shadow-hover: 0 20px 40px 1px rgba(13, 109, 139, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.22, 1);
}

/* ==========================================================================
   2. تصفير وإعادة ضبط المتصفحات (CSS Reset & Base Rules)
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* يضمن حساب الحواف والـ Padding داخل العرض الإجمالي */
}

html {
    scroll-behavior: smooth; /* تمرير انسيابي ذكي عند الضغط على الروابط الداخلية */
    -webkit-text-size-adjust: 100%; /* يمنع المتصفحات على الهواتف من تغيير حجم الخط تلقائيًا */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
  font-family: Tajawal, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* يمنع ظهور شريط التمرير الأفقي اللعين في الهواتف */
    word-break: break-word;
}

/* ==========================================================================
   3. الحاويات والكونتينرات الذكية المستجيبة (Responsive Containers)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-padding-desktop);
    padding-left: var(--container-padding-desktop);
}

/* ==========================================================================
   4. تنسيحات الصور والميديا (PageSpeed Optimized Media)
   ========================================================================== */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    display: block; /* يمنع الفراغات الغريبة بأسفل الصور المتسببة بها عناصر الـ Inline */
}

iframe {
    border: none; /* تصفير حواف الفيديوهات والخرائط المدمجة */
}

/* ==========================================================================
   5. تنسيقات الروابط والأزرار العامة (Global Typography & Links)
   ========================================================================== */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    display: inline-block; /* لضمان قبول أبعاد الهامش والحركة */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0; /* التصفير لترك التحكم للهوامش المخصصة في السكاشن */
}

ul, ol {
    list-style: none; /* تصفير النقاط الافتراضية للقوائم والاعتماد على الأشكال المخصصة */
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    border: none;
    background: transparent;
    outline: none;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   6. ميديا كويري الشاشات لتعديل الكونتينر تلقائيًا (Responsive Utilities)
   ========================================================================== */
@media only screen and (max-width: 1200px) {
    :root {
        --container-padding-desktop: 30px; /* تضييق الحواف قليلاً للشاشات المتوسطة */
    }
}

@media only screen and (max-width: 768px) {
    :root {
        /* تطبيق حواف آمنة ومريحة للعين على شاشات الهواتف والتابلت */
        --container-padding-desktop: var(--container-padding-mobile); 
    }
    
    body {
        font-size: 15px; /* تصغير الخط العام للموقع درجة واحدة على الهاتف لتناسق المظهر */
    }
}

/**
 * -----------------------------------------------------------------------------
 * تنسيقات سكشن الـ Page Header الاحترافي والمبسط (العربي RTL)
 * -----------------------------------------------------------------------------
 */

/* 1. الحاوية الرئيسية للسكشن والانحناءة السفلية */
.custom-page-header {
    position: relative;
    padding: 50px 0 75px 0;
    text-align: center;
    /* خلفية متدرجة انسيابية وفخمة تدمج هوية الموقع */
    background: linear-gradient(135deg, rgba(28, 39, 76, 0.05) 0%, rgba(37, 211, 102, 0.02) 100%);
    /* صنع الانحناءة الدائرية الاحترافية أسفل السكشن */
    border-bottom-left-radius: 50% 25px;
    border-bottom-right-radius: 50% 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    font-family: inherit;
    direction: rtl; /* دعم التوجيه العربي بالكامل */
    margin-top: 70px;
}

/* 2. ضبط عرض الحاوية الداخلية (Container) */
.custom-page-header .header-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 3. تنسيق شريط مسار الانتقالات (Breadcrumbs) - متوسط بالكامل على جميع الشاشات */
.custom-breadcrumbs {
    margin-bottom: 20px;
    max-width: 100%;
    display: flex;
    justify-content: center; /* توسط السكشن بالكامل في منتصف الشاشة دائماً */
    width: 100%;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    justify-content: center; /* توسط العناصر الداخلية للينكات في المنتصف افتراضياً */
    flex-wrap: nowrap; /* منع النزول لسطر جديد على الشاشات الصغيرة */
    list-style: none;
    padding: 8px 20px;
    margin: 0 auto; /* يضمن توسيط القائمة بالكامل */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow-x: auto; /* تفعيل خاصية الـ Swipe والتمرير الأفقي على الهاتف */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* إخفاء شريط التمرير للمتصفحات الحديثة */
    -ms-overflow-style: none;
}

.breadcrumbs-list::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير لمتصفحات الكروم والسافاري */
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
    color: #444;
}

.breadcrumb-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease;
    opacity: 0.75;
}

/* تأثير الـ Hover بالخط السفلي الناعم عند الوقوف على الرابط */
.breadcrumb-link:hover {
    opacity: 1;
    color: #1c274c;
    border-bottom: 1.5px solid rgba(28, 39, 76, 0.4);
}

/* تمييز الرابط الأخير للمقالة الحالية ليصبح واضحاً */
.breadcrumb-link.active {
    font-weight: 600;
    opacity: 1;
    color: #000;
}

.breadcrumb-link svg {
    margin-left: 6px; /* مسافة يسار الأيقونة لتناسب القراءة العربية */
    vertical-align: middle;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    opacity: 0.35;
    color: #444;
    flex-shrink: 0;
}

/* 4. تنسيق الـ H1 الصغير والمبسط */
.header-text-block {
    width: 100%;
}

.header-main-title {
    font-size: 24px; /* حجم خط متناسق ومبسط لتفادي الضخامة وبمظهر مودرن */
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1c274c;
}

/* 5. حاوية أزرار التواصل المتوهجة */
.header-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 25px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-action {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.btn-action:hover {
    transform: translateY(-3px); /* حركة رفع الزر لأعلى خفيفة عند الوقوف عليه */
}

/* 🟢 زر الواتساب الاحترافي (بخلفية هادئة وموجات توهج نابضة) */
.btn-whatsapp {
    background: #32b05a; /* درجة لون الأخضر الهادئ المريح جداً للعين */
    color: #ffffff;
    padding: 8px 18px 8px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px #138b3934; /* توهج افتراضي ناعم */
}

.btn-whatsapp .btn-icon-holder {
    display: flex;
    align-items: center;
    margin-left: 10px; /* مسافة على اليسار لأن الأيقونة أصبحت في اليمين أولاً */
    position: relative;
    z-index: 2;
}

/* بناء جدران الأنيميشن لإطلاق موجات التوهج الدائرية المستمرة خلف الأيقونة */
.btn-whatsapp .btn-icon-holder::before,
.btn-whatsapp .btn-icon-holder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: rippleGlow 2s infinite cubic-bezier(0.25, 0, 0, 1);
}

/* تأخير انطلاق الموجة الثانية لإنتاج تأثير متتالي فخم */
.btn-whatsapp .btn-icon-holder::after {
    animation-delay: 0.8s;
}

.btn-whatsapp .btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    position: relative;
    z-index: 2;
}

.btn-whatsapp .btn-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.btn-whatsapp .btn-subtext {
    font-size: 13px;
    font-weight: 700;
   font-family: Tajawal, sans-serif;
    line-height: 1.2;
    margin-top: 2px;
}

.btn-whatsapp:hover {
    background: #1aa892;
    box-shadow: 0 8px 25px rgba(30, 190, 165, 0.5); /* زيادة التوهج الأخضر عند الـ Hover */
}

/* 🔵 زر اتصل بنا - (تم عكس الأيقونة لتصبح في الجهة اليسرى النهاية) */
.btn-phone {
    background: #1c274c;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(28, 39, 76, 0.3); /* توهج أزرق ناعم */
}

.btn-phone svg {
    margin-right: 8px; /* مسافة على اليمين لأن الأيقونة باليسار عقب النص */
}

.btn-phone:hover {
    background: #151e3a;
    box-shadow: 0 8px 25px rgba(28, 39, 76, 0.55); /* زيادة التوهج الداكن عند الـ Hover */
}

/* 🔄 أنيميشن انتشار موجات التوهج الدائرية لزر الواتساب */
@keyframes rippleGlow {
    0% {
        width: 18px;
        height: 18px;
        opacity: 0.6;
    }
    100% {
        width: 55px;
        height: 55px;
        opacity: 0;
    }
}

/* 📱 6. التجاوب الكامل مع شاشات الهواتف والموبايل (Responsive) */
@media (max-width: 768px) {
    .custom-page-header {
        padding: 35px 0 55px 0;
        /* تقليل انحناءة السكشن على شاشات الموبايل لتظل متناسقة هندسياً */
        border-bottom-left-radius: 50% 15px;
        border-bottom-right-radius: 50% 15px;
    }
    .header-main-title {
        font-size: 20px; /* حجم عنوان مناسب ومثالي للموبايل */
    }
    .custom-breadcrumbs {
        width: 100%;
        justify-content: center; /* تعديل: إجبار الانتقالات على البقاء في السنتر على الهاتف أيضاً */
    }
    .breadcrumbs-list {
        padding: 6px 14px;
        /* في حال كان النص طويلاً جداً على الشاشات الصغيرة، يبدأ التمرير من اليمين بشكل طبيعي دون تدمير التوسط */
        justify-content: flex-start; 
    }
    .header-action-buttons {
        gap: 12px;
    }
    .btn-phone {
        padding: 11px 20px;
        font-size: 13px;
    }
    .btn-whatsapp {
        padding: 6px 14px 6px 20px;
    }
}
/**
 * -----------------------------------------------------------------------------
 *هيدر الموقع
 * -----------------------------------------------------------------------------
 */


:root {
    /* === لوحة ألوان هوية دار المهارة الاحترافية والفاخرة === */
    --color-primary: #f05a28;        /* البرتقالي المشرق والحيوي من اللوجو */
    --color-primary-hover: #d9481b;  /* درجة أعمق غنية للـ Hover */
    
    --color-dark: #1b365d;           /* الكحلي الملكي الفخم للعنوان والنصوص الأساسية */
    --color-dark-light: #334e68;     /* كحلي متوسط مريح جداً للعين */
    --color-dark-muted: #627d98;     /* رمادي كحلي ناعم للتفاصيل الدقيقة */
    
    --color-bg-light: #f8fafc;
    --color-white: #ffffff;
    
    /* أبعاد الارتفاع الثابتة للهيدر */
    --header-height: 85px;
    --header-height-mobile: 75px;
    
    /* ظلال ناعمة مطورة تمنح التصميم عمقاً فخماً بديلة لظلال النيون الفاقعة */
    --shadow-navbar: 0 10px 30px -10px rgba(27, 54, 93, 0.06);
    --shadow-dropdown: 0 20px 40px -8px rgba(27, 54, 93, 0.12);
    --shadow-cta: 0 8px 20px -6px rgba(240, 90, 40, 0.35);
    --shadow-cta-hover: 0 12px 25px -4px rgba(240, 90, 40, 0.45);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* === الحل الجذري لمشكلة تداخل السكاشن دخولها أسفل الهيدر === */


/* === جسم الهيدر الزجاجي العصري === */
.navbar-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height-mobile);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(27, 54, 93, 0.05);
    box-shadow: var(--shadow-navbar);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* شكل الهيدر التفاعلي عند التمرير لأسفل الصفحة */
.navbar-header.scrolled {
    height: calc(var(--header-height-mobile) - 8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 35px -12px rgba(27, 54, 93, 0.1);
}

@media (min-width: 992px) {
    .navbar-header { 
        height: var(--header-height); 
    }
    .navbar-header.scrolled { 
        height: calc(var(--header-height) - 13px); 
    }
}

.nav-container {
    width: 100%; 
    max-width: 1370px; 
    margin: 0 auto; 
    padding: 0 24px;
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

/* شاشات الاستجابة المتوافقة تماماً مع أبعاد الموقع */
@media (min-width: 576px) { .nav-container { max-width: 540px; } }
@media (min-width: 768px) { .nav-container { max-width: 720px; } }
@media (min-width: 992px) { .nav-container { max-width: 960px; } }
@media (min-width: 1200px) { .nav-container { max-width: 1140px; } }
@media (min-width: 1400px) { .nav-container { max-width: 1370px; } }

/* الشعار (Logo) */
.nav-logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    text-decoration: none; 
}
.logo-img { 
    height: 42px; 
    width: auto; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
}
.nav-logo:hover .logo-img { 
    transform: scale(1.03); 
}
.logo-text { 
    display: flex; 
    flex-direction: column; 
}
.logo-title { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: var(--color-dark); 
    line-height: 1.2; 
}
.logo-subtitle { 
    font-size: 0.68rem; 
    font-weight: 600; 
    color: var(--color-primary); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

/* القائمة الرئيسية للشاشات الكبيرة (Desktop Navigation) */
.nav-links-desktop { 
    display: none; 
    align-items: center; 
    gap: 2.2rem; 
}
@media (min-width: 992px) { 
    .nav-links-desktop { 
        display: flex; 
    } 
}

/* === التأثير الاحترافي الصايع: الخط الملوّلو المتموج والمتحرك (Wavy Active Line) === */
.nav-link {
    position: relative;
    color: var(--color-dark-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 4px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 6px;
    /* رسم خط متموج احترافي عبر خلفية SVG متكررة */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0,4 C5,0 5,8 10,4 C15,0 15,8 20,4' fill='none' stroke='%23f05a28' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px 6px;
    background-repeat: repeat-x;
    opacity: 0;
    transform: scaleX(0.8);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

/* عند تمرير الماوس أو عندما يكون الرابط نشطاً: يتحول النص للبرتقالي ويتحرك الخط الملوّلو بسلاسة */
.nav-link:hover, 
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after, 
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
    animation: moveWave 1s linear infinite; /* حركة انسيابية مذهلة ومريحة للعين */
}

/* أنيميشن حركة الموجة */
@keyframes moveWave {
    0% { background-position-x: 0; }
    100% { background-position-x: 12px; }
}

/* القوائم المنسدلة للكمبيوتر ودوران الأسهم */
.dropdown { 
    position: relative; 
}
.dropdown-content {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(15px) scale(0.95);
    background: rgba(255, 255, 255, 0.98); 
    min-width: 250px; 
    border-radius: 14px;
    box-shadow: var(--shadow-dropdown); 
    border: 1px solid rgba(27, 54, 93, 0.05);
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    padding: 8px 0; 
    z-index: 50;
}
.dropdown:hover .dropdown-content { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(8px) scale(1); 
}

.nested-dropdown { position: relative; }
.nested-dropdown-content {
    position: absolute; top: 0; right: 100%;
    background: white; min-width: 240px; border-radius: 12px;
    box-shadow: var(--shadow-dropdown); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; padding: 8px 0;
}
.nested-dropdown:hover .nested-dropdown-content { opacity: 1; visibility: visible; }

.third-level { position: relative; }
.third-level-content {
    position: absolute; top: 0; right: 100%;
    background: white; min-width: 220px; border-radius: 12px;
    box-shadow: var(--shadow-dropdown); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; padding: 8px 0; z-index: 60;
}
.third-level:hover .third-level-content { opacity: 1; visibility: visible; }

/* عناصر القوائم الداخلية */
.dropdown-item, .nested-item, .third-item { 
    display: block; 
    padding: 11px 20px; 
    color: var(--color-dark-light); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.9rem; 
    transition: all 0.25s ease; 
}
.dropdown-item:hover, .nested-item:hover, .third-item:hover { 
    background: rgba(240, 90, 40, 0.04); 
    color: var(--color-primary); 
    padding-right: 24px; /* انزلاق جانبي ناعم يعطي فخامة للتصفح */
}

/* زر طلب الخدمة الرئيسي (CTA) */
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}
.btn-nav-cta {
    display: none; 
    padding: 11px 24px; 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: var(--shadow-cta); 
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 992px) { 
    .btn-nav-cta { 
        display: inline-flex; 
    } 
}
.btn-nav-cta:hover { 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: var(--shadow-cta-hover); 
    filter: brightness(1.05); 
}

/* زر همبرغر للموبايل */
.mobile-menu-btn {
    width: 44px; 
    height: 44px; 
    border: none; 
    border-radius: 12px; 
    background: rgba(27, 54, 93, 0.04);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    position: relative;
}
@media (min-width: 992px) { 
    .mobile-menu-btn { 
        display: none; 
    } 
}
.mobile-menu-btn .bar { 
    position: absolute; 
    width: 20px; 
    height: 2px; 
    background: var(--color-dark); 
    border-radius: 20px; 
    transition: .25s ease; 
}
.mobile-menu-btn .bar:nth-child(1) { transform: translateY(-6px); }
.mobile-menu-btn .bar:nth-child(2) { transform: translateY(0); }
.mobile-menu-btn .bar:nth-child(3) { transform: translateY(6px); }

.mobile-menu-btn.active .bar:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active .bar:nth-child(3) { transform: rotate(-45deg); }

/* ==================== القائمة الجانبية للموبايل (MOBILE DRAWER) ==================== */
.mobile-drawer {
    position: fixed; 
    top: 0; 
    bottom: 0; 
    right: 0; 
    width: 88%; 
    max-width: 340px;
    background: var(--color-white); 
    z-index: 1100; 
    box-shadow: -15px 0 40px rgba(27, 54, 93, 0.1);
    padding: 2.2rem 1.25rem; 
    overflow-y: auto; 
    transform: translateX(100%); 
    visibility: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.mobile-drawer.active { 
    transform: translateX(0); 
    visibility: visible; 
}

.drawer-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2.2rem; 
}
.drawer-close {
    width: 42px; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.6rem;
    background: var(--color-bg-light); 
    color: var(--color-dark-muted); 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.drawer-close:hover { 
    background: #fee2e2; 
    color: #ef4444; 
    transform: rotate(90deg); 
}

/* روابط الموبايل الأصلية المتجاوبة */
.drawer-nav a {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 16px 14px; 
    font-size: 1.05rem; 
    font-weight: 600;
    color: var(--color-dark-light); 
    text-decoration: none; 
    border-bottom: 1px solid rgba(27, 54, 93, 0.04); 
    transition: all 0.3s ease;
}
.drawer-nav a:hover, 
.drawer-nav a.active {
    color: var(--color-primary); 
    background: rgba(240, 90, 40, 0.03); 
    padding-right: 22px;
}

.mobile-dropdown-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 16px 14px; 
    font-size: 1.05rem; 
    font-weight: 600;
    color: var(--color-dark-light); 
    cursor: pointer;
    border-bottom: 1px solid rgba(27, 54, 93, 0.04); 
    transition: all 0.3s ease;
}
.mobile-dropdown-header.active {
    background: rgba(240, 90, 40, 0.02);
    border-right: 3px solid var(--color-primary);
    color: var(--color-primary);
}

.mobile-dropdown-content {
    display: grid; 
    grid-template-rows: 0fr; 
    max-height: 0; 
    transition: grid-template-rows .35s ease, max-height .35s ease; 
    overflow: hidden;
    margin: 4px 0 8px 0;
}
.mobile-dropdown-content.open { 
    grid-template-rows: 1fr; 
    max-height: 1000px; 
}

.mobile-dropdown-content.nested, 
.mobile-dropdown-content.third { 
    margin: 0 0 0 24px; 
    background: var(--color-bg-light); 
    border-radius: 10px; 
}
.mobile-dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 20px; 
    color: var(--color-dark-light); 
    text-decoration: none; 
    font-size: 0.98rem; 
    font-weight: 500; 
    transition: all 0.3s ease; 
}
.mobile-dropdown-item:hover { 
    color: var(--color-primary); 
    background: rgba(240, 90, 40, 0.04); 
}

.mobile-dropdown-header i:last-child { 
    transition: .3s ease; 
}
.mobile-dropdown-header.active i:last-child { 
    transform: rotate(180deg); 
}
/* Footer */
.drawer-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 2rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--color-dark-muted);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.working-hours {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-dark-muted);
    line-height: 1.7;
}

.working-hours h4 {
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.drawer-cta-wrapper { 
    margin: 2rem 0 1.5rem 0; 
}

.drawer-backdrop{
    position:fixed; 
    inset:0;
    background:rgba(15,23,42,.45);
    backdrop-filter:blur(4px);
    z-index:999;
    opacity:0; 
    pointer-events:none;
    transition:opacity .25s ease;
}

.drawer-backdrop.active{
    opacity:1; 
    pointer-events:auto;
}

/* Responsive */
@media (min-width: 1024px) {
    .navbar-header { height: var(--header-height); }
    .nav-links-desktop { display: flex; }
    .btn-nav-cta { display: inline-block; }
    .mobile-menu-btn { display: none; }
}



   /* ==========================================================================
   FOOTER STYLES - RTL Friendly + Improved Padding
   ========================================================================== */
.footer-section {
    background-color: #0C1F2E;
    color: #A3B8CC;
    padding: 5rem 0 2.5rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Brand */
.footer-brand-logo .logo-img {
    height: 60px;
    /* filter: brightness(0) invert(1); */
}

.footer-brand-logo .logo-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-brand-logo .logo-subtitle {
    color: #4A8BC2;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-bio {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #8CA6C0;
    max-width: 290px;
}

/* Title Underline - RTL Fixed */
.footer-col-title {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: start;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;     /* مهم جداً للـ RTL */
    width: 36px;
    height: 2px;
    background-color: #4A8BC2;
}

/* Links */
.footer-links-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item a {
    font-size: 0.88rem;
    color: #8CA6C0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link-item a:hover {
    color: #7EB4E0;
    transform: translateX(5px);
}

/* Hover effect support RTL */
[dir="rtl"] .footer-link-item a:hover {
    transform: translateX(-5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-contact-icon {
    color: #4A8BC2;
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact-value {
    font-size: 0.88rem;
    color: #A3B8CC;
}

/* Social */
.footer-social-wrapper {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8CA6C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    background-color: #1F4E6B;
    color: white;
    transform: translateY(-4px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
    font-size: 0.78rem;
    color: #6E8CA8;
	padding:25px
}

.footer-developer-credit a {
    color: #7EB4E0;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.2rem;
        padding: 0 30px;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr;
        gap: 3.8rem;
        padding: 0 25px;
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        padding: 0;
    }
}
.footer-links-list{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links-list li{
    margin-bottom:12px;
}

.footer-links-list li a{
    color:#8CA6C0;
    font-size:.88rem;
    display:inline-flex;
    align-items:center;
    transition:.3s;
}

.footer-links-list li a:hover{
    color:#7EB4E0;
}

.footer-container{
    width:100%;
    max-width:1370px;
    margin-right:auto;
    margin-left:auto;
    padding-right:15px;
    padding-left:15px;
}

/* Responsive */
@media (min-width:576px){
    .footer-container{
        max-width:540px;
    }
}

@media (min-width:768px){
    .footer-container{
        max-width:720px;
    }
}

@media (min-width:992px){
    .footer-container{
        max-width:960px;
    }
}

@media (min-width:1200px){
    .footer-container{
        max-width:1140px;
    }
}

@media (min-width:1400px){
    .footer-container{
        max-width:1370px;
    }
}

/* ==========================================================================
   نظام الأسعار المحمي الفاخر - شركة دار المهارة (تحديث السيو ونقاط القائمة)
   ========================================================================== */
.hatem-premium-pricing-section {
    margin: 45px auto;
    padding: 35px 20px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px -15px rgba(27, 54, 93, 0.06);
    border: 1px solid rgba(27, 54, 93, 0.04);
    clear: both;
    direction: rtl !important;
}

/* تنسيق العنوان الفاخر والأيقونة المرافقة له */
.pricing-section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1b365d;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pricing-title-icon {
    color: #f05a28; /* لون برتقالي الهوية */
    flex-shrink: 0;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* شبكة متجاوبة ومستقرة للأداء العالي تمنع التداخل */
.pricing-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    width: 100%;
}

.pricing-premium-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    outline: none;
}

.pricing-premium-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-sizing: border-box !important;
}

.pricing-premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 90, 40, 0.25);
    box-shadow: 0 25px 50px -15px rgba(27, 54, 93, 0.15);
}

.pricing-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f05a28;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.2);
    z-index: 5;
}

.pricing-card-top {
    display: block;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-card-img-wrap {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(27, 54, 93, 0.06);
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(27, 54, 93, 0.04);
}

.pricing-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.pricing-card-info {
    width: 100% !important;
    display: block !important;
}

.pricing-card-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1b365d !important;
    margin: 10px 0 12px 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.pricing-card-meta-price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 8px 0 !important;
    width: 100% !important;
}

.pricing-card-old-price {
    font-size: 0.9rem !important;
    color: #627d98 !important;
    text-decoration: line-through !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.pricing-card-new-price {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #f05a28 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* تخصيص المميزات والـ Bullets الدائرية الفخمة والمحميّة من تداخل القوالب */
.pricing-card-features {
    width: 100% !important;
    margin: 15px 0 25px 0 !important;
    border-top: 1px dashed rgba(27, 54, 93, 0.1) !important;
    padding-top: 15px !important;
}

.pricing-card-features ul {
    list-style: none !important; /* إلغاء أي قائمة تابعة للقالب الأصلي */
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.pricing-card-features li {
    font-size: 0.92rem !important;
    color: #334e68 !important;
    padding: 8px 0 !important;
    position: relative !important;
    padding-right: 20px !important; /* مساحة مريحة للنقطة الدائرية الجديدة */
    text-align: right !important;
    line-height: 1.5 !important;
    display: block !important;
    border-bottom: none !important;
}

/* تعديل صايع وهادئ: نقطة دائرية برتقالية صغيرة متناسقة مريحة للعين بدلاً من التشوه السابق */
.pricing-card-features li::before {
    content: "" !important;
    position: absolute !important;
    right: 4px !important;
    top: 15px !important; /* موازنة رأسية مثالية في المنتصف */
    width: 6px !important;
    height: 6px !important;
    background-color: #f05a28 !important;
    border-radius: 50% !important;
}

.pricing-card-action-btn {
    width: 100% !important;
    margin-top: auto !important;
}

.pricing-card-action-btn span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 13px !important;
    background: rgba(27, 54, 93, 0.04) !important;
    color: #1b365d !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.pricing-premium-card:hover .pricing-card-action-btn span {
    background: linear-gradient(135deg, #f05a28 0%, #d9481b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(240, 90, 40, 0.3) !important;
}


/* الاتصال والزاتس  */
.call-with-phone,
.whatsapp-chat {
  position: fixed;
  bottom: 59px;
  left: 10px;
  text-decoration: none;
  animation: 5s infinite animate-waggle;
  z-index: 9999;
}
.call-with-phone {
  right: 10px;
  left: auto;
}
.call-phone-icon,
.whatsapp-chat-icon {
  background: #e14e29;
  display: inline-block;
  padding: 6px;
  margin: 0;
  border-radius: 25%;
  box-shadow: 8px 8px 30px 0 rgb(64 82 185 / 30%);
}
@keyframes animate-waggle {
  0% {
    transform: none;
  }
  10% {
    transform: rotateZ(-20deg) scale(1.2);
  }
  13% {
    transform: rotateZ(25deg) scale(1.2);
  }
  15% {
    transform: rotateZ(-15deg) scale(1.2);
  }
  17% {
    transform: rotateZ(15deg) scale(1.2);
  }
  20% {
    transform: rotateZ(-12deg) scale(1.2);
  }
  22% {
    transform: rotateZ(0) scale(1.2);
  }
  100%,
  24% {
    transform: rotateZ(0) scale(1);
  }
}
/* سكشن الخدمات - دار المهارة - تنسيق نهائي */
.darm-service-section { padding: 80px 0; background: #f8fafc; font-family: Tajawal, sans-serif; direction: rtl; }
.darm-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* العنوان */
.darm-top_sec { text-align: center; margin-bottom: 60px; }
.darm-sup-title { font-size: 2.5rem; font-weight: 900; color: #1e293b; display: flex; align-items: center; justify-content: center; gap: 15px; }
.darm-sup-title svg { width: 40px; color: #f05a28; }
.darm-sup-title span { color: #f05a28; }

/* الشبكة (4 في الصف) */
.darm-boxs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* البطاقات */
.darm-card { 
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 15px; 
    text-decoration: none; color: #1e293b; transition: all 0.4s ease; position: relative; 
}
.darm-card:hover { transform: translateY(-8px); border-color: #f05a28; box-shadow: 0 20px 40px rgba(240, 90, 40, 0.15); }

/* الصورة */
.darm-img-wrap { width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative; }
.darm-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

/* تحسين زر "المزيد" */
.darm-hover-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0);
    display: flex; align-items: center; justify-content: center; transition: 0.4s; opacity: 0;
}
.darm-card:hover .darm-hover-overlay { background: rgba(255,255,255,0.1); opacity: 1; }

.darm-view-more {
    background: rgba(240, 90, 40, 0.95); /* لون برتقالي واضح */
    padding: 8px 20px; border-radius: 50px; display: flex; align-items: center; gap: 6px;
    color: #fff; font-weight: bold; transform: translateY(10px); transition: 0.4s;
    font-size: 0.9rem; white-space: nowrap; /* لمنع كسر الكلمة */
}
.darm-card:hover .darm-view-more { transform: translateY(0); }
.darm-view-more svg { width: 18px; }

/* النصوص */
.darm-content { padding: 20px 10px; text-align: center; }
.darm-content h2 { font-size: 1.2rem; margin-bottom: 10px; transition: 0.3s; }
.darm-card:hover h2 { color: #f05a28; }

/* الزر */
.darm-all-btn { text-align: center; margin-top: 50px; }
.darm-btn-main { padding: 15px 40px; background: #f05a28; color: #fff; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.4s; }
.darm-btn-main:hover { background: #d44516; box-shadow: 0 10px 20px rgba(240,90,40,0.3); }

/* تحسين الهاتف: إظهار كلمة المزيد بشكل ثابت لسهولة التفاعل */
@media (max-width: 991px) { .darm-boxs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .darm-boxs { grid-template-columns: 1fr; }
    /* إظهار الستارة/الزر دائماً في الهاتف بدون الحاجة لـ Hover */
    .darm-hover-overlay { opacity: 1; background: transparent; }
    .darm-view-more { transform: translateY(0); }
}


.GotoTop {
  z-index: 999;
    background: #dd4e29;
    --elwh: 48px;
    width: var(--elwh);
    height: var(--elwh);
    left: 16px;
    bottom: 12px;
    color: #fff;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 180ms ease;
    border: 2px solid #df4d2a;
    transform: scale(0);
    display: flex;
    border-radius: 50%;
    position: fixed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.GotoTop:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.GotoTop.visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* للتوافق مع الكود القديم */
.GotoTop.visible,
.hoverable--box,
.hoverable--box .--single--work-post-box:hover .--single--word-thumnail img {
    transform: scale(1);
}
