/* ==========================================================================
   Training Gate - Unified Portal Style
   Based on New Logo Identity: Teal & Mustard Gold
   ========================================================================== */

:root { 
    /* ألوان هوية بوابة التدريب المأخوذة من الشعار الجديد */
    --primary-color: #2D827A;    /* التركواز الداكن */
    --accent-color: #D19E36;     /* الذهبي/الخردلي */
    --primary-dark: #1E5C56;     /* تركواز داكن جداً لتأثيرات المرور */
    --accent-hover: #EAB846;     /* ذهبي أفتح/مشرق لتأثيرات المرور */
    
    --text-grey: #4A5568;        /* رمادي أنيق للنصوص */
    --bg-light: #F8FAFC;         /* خلفية فاتحة جداً مريحة للعين */
    --footer-bg: #1A202C;        /* لون داكن محايد للفوتر يبرز الألوان */

    /* التدرجات اللونية المعتمدة على الشعار الجديد */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    --gradient-mixed: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* ==================== Global Typography & General ==================== */
body, h1, h2, h3, h4, h5, h6, p, a, span { 
    font-family: 'Cairo', sans-serif !important; 
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

.text-white, .text-white h2, .inner-header-luxury h2, .payment-header h2 {
    color: #ffffff !important;
}

/* ==================== Preloader ==================== */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-light); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
}
.elegant-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(209, 158, 54, 0.15); /* شفافية الذهبي */
    border-top-color: var(--primary-color);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==================== 1. Top Bar (الشريط العلوي) ==================== */
.header-top {
    background-color: var(--primary-color) !important; /* لون تركواز داكن */
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important; /* إجبار ظهوره في جميع الشاشات */
}

/* تنسيق القوائم داخل الشريط العلوي */
.top-contact-list, .top-social-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.top-contact-list li, .top-social-list li {
    display: inline-block;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
}
[dir="rtl"] .top-contact-list li { margin-left: 15px; }
[dir="rtl"] .top-social-list li { margin-right: 15px; }

/* أيقونات الشريط العلوي */
.top-contact-list li i { color: var(--accent-color); margin-left: 5px; font-size: 14px; }
.top-social-list li a { color: #ffffff !important; transition: 0.3s; }
.top-social-list li a:hover { color: var(--accent-color) !important; }

/* ==================== 2. Main Navigation (شريط القائمة الأساسي) ==================== */
.header-nav-wrapper {
    background: #ffffff !important;
    border-bottom: 2px solid #f1f5f9 !important; /* خط خفيف أسفل الهيدر */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 5px 0;
}

/* الشعار */
.menuzord-brand img {
    max-height: 70px; /* حجم الشعار المناسب */
    object-fit: contain;
    transition: transform 0.3s ease;
}
.menuzord-brand:hover img { transform: scale(1.02); }

/* عناصر القائمة */
#menuzord .menuzord-menu > li > a {
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 16px;
    padding: 26px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

/* تأثير التمرير (Hover) الأنيق للقائمة */
#menuzord .menuzord-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color); /* الخط الخردلي */
    transition: width 0.3s ease;
}
#menuzord .menuzord-menu > li.active > a, 
#menuzord .menuzord-menu > li:hover > a {
    color: var(--primary-color) !important;
    background: transparent !important;
}
#menuzord .menuzord-menu > li.active > a::after, 
#menuzord .menuzord-menu > li:hover > a::after {
    width: 100%;
}

/* تعديلات الجوال للهيدر */
@media (max-width: 768px) {
    .header-top { text-align: center; }
    .top-contact-list li, .top-social-list li { margin: 5px 10px !important; }
    .menuzord-brand { margin: 10px !important; }
    .btn-register-modern { display: block; text-align: center; margin: 15px !important; }
}
/* ==================== إصلاحات الشريط العلوي القابل للطي ==================== */

/* إجبار إظهار المحتوى في شاشات الكمبيوتر والتابلت، وإخفاء زر التوسيع */
@media (min-width: 768px) {
    .top-info-wrapper.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible;
    }
    .top-bar-mobile-toggle {
        display: none !important;
    }
}

/* تنسيقات شاشات الجوال */
@media (max-width: 767px) {
    .top-bar-mobile-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.15);
        padding: 10px 15px;
        border-radius: 6px;
    }
    
    /* دوران السهم عند الفتح */
    .top-bar-mobile-toggle[aria-expanded="true"] .toggle-arrow {
        transform: rotate(180deg);
    }

    /* ترتيب العناصر بشكل عمودي داخل القائمة المنسدلة */
    .top-info-wrapper.collapse.in, 
    .top-info-wrapper.collapsing {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 6px;
        margin-top: 5px;
        padding-bottom: 10px;
    }
    
    .top-contact-list li {
        display: block !important;
        margin: 12px 0 !important;
        text-align: center;
        border-bottom: 1px dashed rgba(255,255,255,0.05);
        padding-bottom: 8px;
    }
    .top-contact-list li:last-child {
        border-bottom: none;
    }
    
    .top-social-list {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        margin-top: 5px !important;
    }
    .top-social-list li.lang-switcher {
        display: block !important;
        border: none !important;
        margin: 15px 0 0 0 !important;
        padding: 0 !important;
    }
}

/* دوران السهم الأنيق عند تفعيل جافاسكريبت النقر */
.top-bar-mobile-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

/* تنسيق إضافي لزر الواتساب العائم لضمان ظهوره بشكل احترافي فوق كل العناصر */
.whatsapp-fixed-btn {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    z-index: 999999 !important; /* رفعه لأعلى طبقة ممكنة */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-fixed-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}
/* ==================== Header & Navigation ==================== */

.styled-icons.icon-xs li a i { color: var(--primary-color) !important; transition: 0.3s; font-size: 14px;}
.styled-icons.icon-xs li a:hover i { color: var(--accent-color) !important; transform: scale(1.2); }

.header-middle { padding: 15px 0; background: #ffffff; }
.contact-info-box { display: flex; align-items: center; gap: 12px; }
.contact-info-box i { font-size: 32px; color: var(--accent-color); }
.contact-info-box h5 { margin: 0; color: var(--primary-color); font-weight: 700; font-size: 15px; }
.contact-info-box span { font-size: 12px; color: var(--text-grey); display: block; }

.header-nav-wrapper { 
    background: #ffffff !important; 
    border-top: 1px solid #f0f0f0;
    border-bottom: 3px solid var(--accent-color) !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    z-index: 1000;
}
.header-nav .pull-left { float: left !important; }

#menuzord.no-bg .menuzord-menu > li > a { color: var(--primary-color) !important; font-weight: 700; padding: 25px 15px !important; transition: 0.3s; font-size: 15px; }
#menuzord.no-bg .menuzord-menu > li.active > a, 
#menuzord.no-bg .menuzord-menu > li:hover > a { background: transparent !important; color: var(--accent-color) !important; }

.menuzord-menu ul.dropdown { border-top: 3px solid var(--accent-color) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.08); background: #ffffff !important; border-radius: 0 0 8px 8px; }
.menuzord-menu ul.dropdown li a { color: var(--text-grey) !important; text-align: right; padding: 12px 20px !important; transition: 0.3s; border-bottom: 1px solid #f9f9f9; font-weight: 600; }
.menuzord-menu ul.dropdown li a:hover { background: #fafafa !important; color: var(--primary-color) !important; padding-right: 25px !important; }

/* ==================== Global Buttons ==================== */
.btn-register-modern { 
    background: var(--accent-color); 
    color: #ffffff !important; 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(209, 158, 54, 0.25); 
    transition: 0.3s; 
    display: inline-block;
}
.btn-register-modern:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(45, 130, 122, 0.3); 
    background: var(--primary-color); 
    color: #ffffff !important;
}

.btn-hero {
    background: var(--gradient-accent);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(209, 158, 54, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 130, 122, 0.4);
    background: var(--gradient-primary);
    color: #fff !important;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.btn-hero-outline:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.btn-premium-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 130, 122, 0.3);
}
.btn-premium-action:hover {
    background: var(--gradient-accent);
    color: #ffffff;
    transform: translateX(-5px);
}

/* ==================== Section Titles ==================== */
.section-title-luxury { text-align: center; margin-bottom: 60px; }
.section-title-luxury h2 { font-size: 36px; font-weight: 800; color: var(--primary-color); margin-bottom: 15px; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title-luxury h2 span { color: var(--accent-color); position: relative; }
.title-decoration { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; }
.title-decoration span { width: 60px; height: 3px; background: var(--gradient-mixed); border-radius: 2px; }
.title-decoration i { color: var(--accent-color); font-size: 24px; }
.section-subtitle { color: var(--text-grey); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* ==========================================================================
   كروت الدورات الاحترافية (SaaS Clean Card)
   ========================================================================== */
#courses {
    background: #f8fafc; /* لون خلفية مريح يشبه الصورة */
    padding: 100px 0;
}

.section-title-modern-row h2 {
    position: relative;
    padding-right: 16px; /* مسافة تتنفس فيها الكلمة بعيداً عن الخط */
    border-right: 4px solid var(--accent-color); /* الخط العمودي الذهبي الخردلي */
    line-height: 1.2;
}

/* عكس اتجاه الخط الجانبي في النسخة الإنجليزية */
[dir="ltr"] .section-title-modern-row h2 {
    padding-right: 0;
    padding-left: 16px;
    border-right: none;
    border-left: 4px solid var(--accent-color);
}

/* 2. كبسولة تصفح كل البرامج المبتكرة */
.btn-view-all-minimal {
    font-weight: 700;
    color: var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    background: rgba(45, 130, 122, 0.05); /* خلفية تركوازية ناعمة جداً بنسبة شفافية عالية */
    padding: 10px 22px;
    border-radius: 50px; /* جعلها دائرية بالكامل كالكبسولة */
    border: 1px solid rgba(45, 130, 122, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

/* أيقونة التصنيف البادئة */
.btn-view-all-minimal .icon-leading {
    font-size: 13px;
    color: var(--accent-color); /* تلوين الأيقونة بالذهبي */
    transition: all 0.3s ease;
}

/* حركة الكبسولة والسهم عند التمرير (Hover Effect) */
.btn-view-all-minimal:hover {
    background: var(--primary-color);
    color: #ffffff !important; /* تحول النص بالكامل للأبيض الفاخر */
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(45, 130, 122, 0.15);
}

.btn-view-all-minimal:hover .icon-leading {
    color: #ffffff; /* تحول أيقونة التصنيف للأبيض */
}

/* سهم النهاية التفاعلي */
.btn-view-all-minimal .arrow-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* دفع السهم باتجاه القراءة عند التمرير لإعطاء حيوية للتصفح */
.btn-view-all-minimal:hover .arrow-icon {
    transform: translateX(-5px); /* اندفاع لليسار في العربي */
}
[dir="ltr"] .btn-view-all-minimal:hover .arrow-icon {
    transform: translateX(5px);  /* اندفاع لليمين في الإنجليزي */
}
.modern-course-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(45, 130, 122, 0.08);
    border-color: rgba(45, 130, 122, 0.2);
}

/* 1. قسم الصورة العلوية */
.card-header-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-header-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-course-card:hover .card-header-wrap img {
    transform: scale(1.05);
}

/* وسم (Tag) نوع الدورة الأنيق المطابق للصورة */
.course-type-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}
[dir="ltr"] .course-type-tag { right: auto; left: 15px; }

/* الدائرة الملونة داخل الوسم */
.course-type-tag i {
    font-size: 11px;
    color: var(--accent-color); /* يمكن جعله أخضر للأونلاين إذا رغبت */
}

/* 2. قسم المحتوى الداخلي */
.card-body-luxury {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط المحتوى كما في الصورة */
    text-align: center;
}

/* بيانات الأيام والساعات */
.course-meta-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.course-meta-top span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* العنوان الرئيسي */
.course-title-modern {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.course-title-modern a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.modern-course-card:hover .course-title-modern a {
    color: var(--accent-color);
}

/* 3. الفوتر (الزر الدائري والسعر/التسجيل) */
.course-footer-modern {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    /* جعل العناصر تتوزع على الأطراف بشكل متوازن تماماً كالصورة المرجعية */
    justify-content: space-between; 
    align-items: center;
    background: #ffffff;
}

/* صندوق عرض السعر الأنيق */
.course-price-box {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color); /* لون التركواز الداكن من الشعار ليعطي رصانة */
    letter-spacing: 0.5px;
}

/* حاوية دمج الأزرار */
.course-action-wrap {
    display: flex;
    align-items: center;
    gap: 12px; /* مسافة فاصلة ثابتة بين الكلمة والدائرة */
}

/* نص رابط التسجيل */
.register-link-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-color); /* لون ذهبي/خردلي جذاب ومحفز للنقر */
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.register-link-text:hover {
    color: var(--primary-dark);
}

/* السهم الدائري المطور والمثبت بجانب النص */
.btn-arrow-circle {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

/* تأثير متطور: عند تمرير الماوس فوق الكرت بالكامل، يضيء السهم تلقائياً وينزلق باتجاه القراءة */
.modern-course-card:hover .btn-arrow-circle {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateX(-4px);
}
[dir="ltr"] .modern-course-card:hover .btn-arrow-circle {
    transform: translateX(4px);
}

/* زر أو نص "سجل الآن" في الجهة المقابلة */
.course-register-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0;
}

/* ==================== Inner & Custom Pages ==================== */
.inner-header-luxury { background: var(--gradient-primary); padding: 100px 0 60px; color: #fff; text-align: center; position: relative; }
.inner-header-luxury::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--accent-color); }
.breadcrumb-custom li a:hover, .breadcrumb-custom .active { color: var(--accent-color) !important; }

/* ==================== Footer ==================== */
.modern-dark-footer { background: var(--footer-bg) !important; color: #cbd5e1; border-top: 4px solid var(--primary-color); }
.footer-widget-title { color: #ffffff; font-size: 18px; font-weight: 700; margin-bottom: 30px; position: relative; padding-bottom: 12px; }
.footer-widget-title:after { content: ""; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: var(--gradient-mixed); border-radius: 2px; }
.contact-info-list a:hover, .footer-link-list li a:hover { color: var(--accent-color); }
.footer-link-list li a:before { content: "\f104"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 8px; color: var(--accent-color); font-size: 12px; }

/* ==================== Course Details Fixes ==================== */
.course-header-white { background: var(--gradient-primary); padding: 60px 0; color: #fff; margin-bottom: 40px; position: relative; }
.course-header-white::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--accent-color); }

.sidebar-register-card { background: #ffffff; border-radius: 20px; padding: 30px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06); border: none; border-top: 5px solid var(--primary-color); }
.sidebar-register-card h3 { color: var(--primary-color); font-weight: 800; }
.form-control-sidebar:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(209, 158, 54, 0.15); }

.section-detail-box.trainer-box { border-right: 6px solid var(--primary-color); }
.section-detail-box.info-box { border-right: 6px solid var(--accent-color); }
.section-detail-box.content-box { border-right: 6px solid var(--primary-dark); }
.detail-section-title { color: var(--primary-color) !important; font-weight: 800; }
.detail-section-title i { color: var(--accent-color); }
.luxury-info-list li i { background: rgba(209, 158, 54, 0.1); color: var(--accent-color); }


/* ==========================================================================
   تحديثات الهيدر العصرية (المحاذاة + الجوال)
   ========================================================================== */

/* 1. توضيح زر الشريط العلوي في الجوال وإبرازه */
.top-bar-mobile-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.top-bar-mobile-toggle span {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.top-bar-mobile-toggle .toggle-arrow {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
    width: 28px; height: 28px;
    line-height: 28px; text-align: center;
    border-radius: 50%;
}

/* 2. المحاذاة المثالية في شاشات الكمبيوتر (Flexbox Layout) */
@media (min-width: 992px) {
    #menuzord {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 0;
    }
    
    /* الشعار */
    .menuzord-brand {
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* القائمة في المنتصف تماماً */
    .menuzord-menu {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    /* توحيد ارتفاع عناصر القائمة لتتساوى مع الشعار */
    #menuzord .menuzord-menu > li > a {
        padding: 15px 18px !important;
        display: flex;
        align-items: center;
    }
    
    /* حاوية زر التسجيل للكمبيوتر */
    .header-action-btn {
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* 3. زر التسجيل الإبداعي في نسخة الجوال */
.btn-register-mobile {
    position: absolute;
    left: 70px; /* يبتعد عن زر القائمة ليظهر بجانبه */
    top: 22px;
    background: var(--gradient-accent);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(209, 158, 54, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.btn-register-mobile:active { transform: scale(0.95); }
.btn-register-mobile i { font-size: 11px; }

/* ==========================================================================
   إصلاح وتنسيق هيدر الجوال (تثبيت العناصر لمنع التداخل)
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. إعطاء الهيدر مساحة ثابتة */
    #menuzord {
        position: relative !important;
        min-height: 75px !important; 
        display: block !important;
    }
    
    /* 2. تثبيت الشعار في المنتصف تماماً (بمسافة ثابتة من الأعلى) */
    .menuzord-brand {
        position: absolute !important;
        left: 50% !important;
        top: 12px !important; /* مسافة ثابتة بدلاً من 50% */
        transform: translateX(-50%) !important; /* التوسيط الأفقي فقط */
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
        z-index: 30; /* إبقاء الشعار في المقدمة */
    }
    .menuzord-brand img {
        max-height: 50px !important;
    }

    /* 3. تثبيت زر التسجيل في أقصى اليسار (بمسافة ثابتة) */
    .btn-register-mobile {
        position: absolute !important;
        left: 15px !important;
        top: 22px !important; /* مسافة ثابتة بدلاً من 50% */
        transform: none !important; /* إلغاء الـ translateY لمنع النزول */
        margin: 0 !important;
        z-index: 30;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .btn-register-mobile:active {
        transform: scale(0.95) !important;
    }

    /* 4. تثبيت زر القائمة (الهمبرجر) في أقصى اليمين (بمسافة ثابتة) */
    .menuzord .showhide {
        position: absolute !important;
        right: 15px !important;
        top: 18px !important; /* مسافة ثابتة بدلاً من 50% */
        transform: none !important; /* إلغاء الـ translateY */
        margin: 0 !important;
        z-index: 30;
    }
    
    /* 5. إزاحة القائمة المنسدلة للأسفل لكي لا تتداخل مع الشعار والأزرار */
    #menuzord .menuzord-menu {
        margin-top: 75px !important; /* دفع الروابط لتكون أسفل الهيدر */
        background: #ffffff !important;
        position: relative;
        z-index: 20;
    }
}


/* ==========================================================================
   إصلاح وضعية وسم (Tag) نوع الدورة
   ========================================================================== */
.card-header-wrap {
    position: relative !important;
}

.course-type-tag {
    position: absolute !important;
    top: 15px !important;          /* رفعه للأعلى */
    bottom: auto !important;       /* إلغاء النزول للأسفل */
    left: auto !important;
    right: 15px !important;        /* محاذاة لليمين للغة العربية */
    background: var(--accent-color) !important; /* اللون الذهبي/الخردلي */
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
    backdrop-filter: none !important; /* إزالة التغبيش القديم لزيادة الوضوح */
}

/* عكس الاتجاه للنسخة الإنجليزية */
[dir="ltr"] .course-type-tag {
    right: auto !important;
    left: 15px !important;
}


/* ==========================================================================
   قسم "عن المنصة" - البطاقة الموحدة الفاخرة (Unified Split Card)
   ========================================================================== */
.about-creative-section {
    padding: 100px 0;
    background: #f4f7f6; /* خلفية رمادية مخضرة فاتحة جداً تبرز البطاقة البيضاء */
    position: relative;
}

/* البطاقة الموحدة (Flexbox) */
.about-unified-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: stretch; /* يجبر كلا الجانبين على أخذ نفس الارتفاع */
    overflow: hidden; /* لقص زوايا الصورة مع زوايا البطاقة */
    position: relative;
    z-index: 2;
}

/* الجانب النصي (50%) */
.unified-text-side {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* الجانب الصوري (50%) */
.unified-image-side {
    flex: 1;
    position: relative;
    min-height: 100%;
}

.unified-image-side img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* يضمن ملء الصورة للمساحة باحترافية */
}

/* البطاقة العائمة - تتوسط الخط الفاصل بين النص والصورة */
.floating-badge-elegant {
    position: absolute;
    bottom: 40px;
    right: -40px; /* تخرج من الصورة لتدخل في منطقة النص */
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid var(--accent-color);
    z-index: 5;
    transition: transform 0.3s ease;
}
.floating-badge-elegant:hover { transform: translateY(-5px); }

[dir="ltr"] .floating-badge-elegant {
    right: auto;
    left: -40px;
    border-right: none;
    border-left: 4px solid var(--accent-color);
}

.floating-badge-elegant i { font-size: 34px; color: var(--primary-color); }
.floating-badge-elegant .badge-text { font-weight: 800; color: var(--primary-dark); font-size: 16px; line-height: 1.4; display: block; }
.floating-badge-elegant .badge-sub { font-weight: 600; color: var(--text-grey); font-size: 13px; display: block; }

/* شاشات الجوال والتابلت */
@media (max-width: 991px) {
    .about-unified-card {
        flex-direction: column; /* تحويل العرض إلى عمودي */
    }
    .unified-image-side {
        min-height: 350px; /* إعطاء ارتفاع ثابت للصورة في الجوال */
        order: -1; /* رفع الصورة للأعلى في الجوال */
    }
    .unified-text-side {
        padding: 40px 30px;
    }
    .floating-badge-elegant {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: -25px !important;
        width: 85%;
        justify-content: center;
    }
    .floating-badge-elegant:hover { transform: translateX(-50%) translateY(-5px) !important; }
}

/* ==========================================================================
   التحفة الفنية: قسم المميزات (Artistic Features Section)
   ========================================================================== */
.features-masterpiece-section {
    padding: 120px 0;
    background: #fafcff; /* خلفية ناعمة جداً تبرز البطاقات البيضاء */
    position: relative;
    overflow: hidden;
}

/* دوائر إضاءة خافتة في الخلفية لعمق فني */
.features-masterpiece-section::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(209, 158, 54, 0.05) 0%, transparent 70%);
    top: -150px; right: -150px; z-index: 0;
}
.features-masterpiece-section::after {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(45, 130, 122, 0.06) 0%, transparent 70%);
    bottom: -100px; left: -100px; z-index: 0;
}

/* البطاقة الفنية */
.artistic-feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

/* تأثير التدرج (التموج) في شاشات الكمبيوتر والتابلت */

@media (min-width: 768px) and (max-width: 991px) {
    .custom-staggered-grid > div:nth-child(even) { transform: translateY(20px); }
}

/* حركة البطاقة عند التمرير */
.artistic-feature-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(45, 130, 122, 0.12);
    border-color: rgba(209, 158, 54, 0.2);
}

/* العلامة المائية للرقم العملاق */
.watermark-number {
    position: absolute;
    top: -15px;
    font-size: 130px;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    z-index: -1;
    transition: all 0.5s ease;
    line-height: 1;
    font-family: Arial, sans-serif; /* لضمان وضوح الأرقام */
}
[dir="rtl"] .watermark-number { left: -10px; }
[dir="ltr"] .watermark-number { right: -10px; }

.artistic-feature-card:hover .watermark-number {
    color: rgba(209, 158, 54, 0.05); /* تضيء بالذهبي */
    transform: scale(1.1) translateY(10px);
}

/* حاوية الأيقونة متغيرة الشكل (Shape-Shifting) */
.artistic-icon-box {
    width: 75px; height: 75px;
    background: linear-gradient(135deg, rgba(45, 130, 122, 0.1) 0%, rgba(45, 130, 122, 0.02) 100%);
    border-radius: 25px 8px 25px 8px; /* شكل هندسي مبتكر */
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: all 0.5s ease;
}
.artistic-feature-card:hover .artistic-icon-box {
    background: var(--gradient-accent); /* تتحول للذهبي */
    color: #ffffff;
    border-radius: 8px 25px 8px 25px; /* انقلاب الشكل! */
    transform: rotate(10deg);
}

/* النصوص */
.artistic-feature-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: 0.3s;
}
.artistic-feature-card:hover .artistic-feature-title {
    color: var(--accent-color);
}
.artistic-feature-desc {
    color: var(--text-grey);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* خط النمو الفني أسفل البطاقة */
.artistic-feature-card::before {
    content: ''; position: absolute; bottom: 0;
    width: 0; height: 5px;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
}
[dir="rtl"] .artistic-feature-card::before { right: 0; }
[dir="ltr"] .artistic-feature-card::before { left: 0; }

.artistic-feature-card:hover::before { width: 100%; }


/* ==========================================================================
   التحفة الفنية: قسم الخدمات (Premium Split-Screen Services)
   ========================================================================== */
.services-masterpiece-section {
    padding: 100px 0;
    background: #ffffff; /* خلفية بيضاء نقية لفصلها عن القسم السابق */
    position: relative;
}

/* تنسيق الجانب الثابت (العناوين) */
.services-intro-sticky {
    position: sticky;
    top: 120px; /* يبقى ثابتاً عند النزول لأسفل */
    padding-bottom: 30px;
}

/* ------------------------------------------------ */
/* إعادة هندسة القوائم المنسدلة (Premium Accordion) */
/* ------------------------------------------------ */
.modern-accordion .panel {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
}

/* بطاقة الخدمة (الحالة المغلقة) */
.modern-accordion .panel-heading {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease;
}

.modern-accordion .panel-heading:hover {
    box-shadow: 0 15px 40px rgba(45, 130, 122, 0.08) !important;
    border-color: rgba(45, 130, 122, 0.2) !important;
    transform: translateY(-2px);
}

/* الرابط (شريط الخدمة) */
.modern-accordion .panel-title a {
    display: flex !important;
    align-items: center;
    padding: 20px !important;
    text-decoration: none !important;
}

/* مربع الأيقونة */
.premium-acc-icon {
    width: 55px;
    height: 55px;
    background: rgba(45, 130, 122, 0.06);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

/* عنوان الخدمة */
.premium-acc-text {
    flex-grow: 1;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

/* أيقونة السهم المؤشر */
.premium-acc-toggle i {
    width: 35px;
    height: 35px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------ */
/* التفاعلات عند فتح قائمة الخدمة (Active State)    */
/* ------------------------------------------------ */

/* 1. إخفاء الحدود السفلية الافتراضية المزعجة */
.modern-accordion .panel-collapse {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: -10px; /* دمج جسم النص مع البطاقة العلوية */
    box-shadow: 0 15px 30px rgba(0,0,0,0.02);
}

/* 2. تحويل الأيقونة للون الذهبي عند الفتح */
.modern-accordion .panel-title a:not(.collapsed) .premium-acc-icon {
    background: var(--gradient-accent);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(209, 158, 54, 0.3);
}

/* 3. تلوين العنوان بالتركواز عند الفتح */
.modern-accordion .panel-title a:not(.collapsed) .premium-acc-text {
    color: var(--primary-color);
}

/* 4. دوران السهم وتلوينه عند الفتح */
.modern-accordion .panel-title a:not(.collapsed) .premium-acc-toggle i {
    transform: rotate(180deg);
    background: rgba(45, 130, 122, 0.1);
    color: var(--primary-color);
}

/* 5. تنسيق نص الوصف */
.modern-accordion .panel-body {
    border-top: none !important;
    padding: 10px 20px 30px 95px !important; /* مسافة ليتماشى مع النص ولا يدخل تحت الأيقونة */
    color: var(--text-grey);
    font-size: 15px;
    line-height: 1.9;
}
[dir="rtl"] .modern-accordion .panel-body {
    padding: 10px 95px 30px 20px !important;
}

@media (max-width: 991px) {
    .services-intro-sticky { position: relative; top: 0; margin-bottom: 30px; text-align: center; }
    .modern-accordion .panel-body { padding: 10px 25px 25px 25px !important; }
}