/* استيراد الخطوط الاحترافية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* أنماط التصميم الاحترافية - نظام الألوان الأزرق المحسن */
:root {
    /* المتغيرات الأساسية */
    --margin-large: 150px;
    --margin-medium: 50px;
    --margin-small: 20px;
    
    /* نظام الألوان الأزرق الاحترافي المتدرج */
    --primary-blue: #1e40af;         /* أزرق أساسي عميق */
    --primary-blue-light: #3b82f6;   /* أزرق متوسط */
    --primary-blue-lighter: #60a5fa; /* أزرق فاتح */
    --primary-blue-dark: #1e3a8a;    /* أزرق داكن */
    --primary-blue-darker: #1e293b;  /* أزرق داكن جداً */
    
    /* ألوان أساسية متدرجة */
    --navy-blue: #0f172a;            /* أزرق بحري */
    --slate-blue: #334155;           /* أزرق رمادي */
    --sky-blue: #0ea5e9;             /* أزرق سماوي */
    --ice-blue: #e0f2fe;             /* أزرق جليدي فاتح */
    --royal-blue: #2563eb;           /* أزرق ملكي */
    
    /* متغيرات الألوان الرئيسية */
    --primary-color: var(--primary-blue);
    --primary-dark: var(--primary-blue-dark);
    --primary-light: var(--primary-blue-light);
    --secondary-color: var(--sky-blue);
    --accent-color: var(--royal-blue);
    
    /* التدرجات الاحترافية */
    --primary-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--royal-blue) 50%, var(--sky-blue) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    --accent-gradient: linear-gradient(135deg, var(--sky-blue) 0%, var(--primary-blue-light) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    
    /* ألوان النصوص */
    --text-primary: var(--navy-blue);
    --text-secondary: var(--slate-blue);
    --text-light: #64748b;
    --text-white: #ffffff;
    --text-blue: var(--primary-blue);
    --text-blue-light: var(--primary-blue-light);
    
    /* ألوان الخلفيات */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-grey: #f1f5f9;
    --bg-blue-light: var(--ice-blue);
    --bg-blue-dark: var(--navy-blue);
    --bg-glass: rgba(30, 64, 175, 0.05);
    
    /* الظلال الاحترافية الزرقاء */
    --shadow-soft: 0 4px 20px rgba(30, 64, 175, 0.08);
    --shadow-medium: 0 8px 30px rgba(30, 64, 175, 0.12);
    --shadow-strong: 0 15px 40px rgba(30, 64, 175, 0.15);
    --shadow-hover: 0 20px 60px rgba(30, 64, 175, 0.2);
    --shadow-blue: 0 10px 30px rgba(37, 99, 235, 0.3);
    --shadow-blue-light: 0 5px 15px rgba(96, 165, 250, 0.2);
    
    /* ظلال ملونة للتأثيرات الخاصة */
    --glow-blue: 0 0 20px rgba(30, 64, 175, 0.3);
    --glow-sky: 0 0 25px rgba(14, 165, 233, 0.4);
    --glow-royal: 0 0 30px rgba(37, 99, 235, 0.3);
    
    /* ألوان الحدود */
    --border-light: rgba(30, 64, 175, 0.1);
    --border-medium: rgba(30, 64, 175, 0.2);
    --border-strong: rgba(30, 64, 175, 0.3);
    --border-glass: rgba(255, 255, 255, 0.2);
    
    /* نصف القطر للعناصر */
    --border-radius-small: 12px;
    --border-radius-medium: 20px;
    --border-radius-large: 30px;
    --border-radius-xl: 40px;
    
    /* الانتقالات */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* متغيرات Glass Morphism المتقدمة */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
    --glass-backdrop: blur(16px);
    
    /* متغيرات التدرجات المتقدمة */
    --radial-blue: radial-gradient(circle, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    --conic-blue: conic-gradient(from 180deg, var(--primary-blue), var(--sky-blue), var(--royal-blue), var(--primary-blue));
    
    /* متغيرات الإضاءة والتوهج */
    --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --outer-glow: 0 0 20px rgba(30, 64, 175, 0.15);
    
    /* متغيرات الخطوط الاحترافية */
    --font-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Almarai', 'Arial', sans-serif;
    --font-heading: 'Tajawal', 'Trebuchet MS', sans-serif;
    --font-elegant: 'Cairo', 'Times New Roman', serif;
    --font-modern: 'Almarai', 'Helvetica Neue', Arial, sans-serif;
    
    /* أحجام الخطوط */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    
    /* أوزان الخطوط */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 50%, var(--ice-blue) 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.3px;
}

/* أنماط العناوين الاحترافية */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.875rem;
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* أنماط النصوص العامة */
p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* أنماط الروابط الاحترافية */
a {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* أنماط الأزرار الاحترافية */
button, .btn {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    letter-spacing: 0.4px;
    text-transform: none;
}

/* أنماط النماذج */
input, textarea, select {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.2px;
}

/* أنماط القوائم */
ul, ol {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
}

li {
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
}


nav {
    background-color: #3797EE;
    padding: 15px 0;
    margin: 10px 20px 15px 20px !important;
    border-radius: 30px;
    position: sticky !important;
    top: 5px !important;
    z-index: 1000;
}

/* إزالة المساحة من أول section بعد nav */
body > section:first-of-type,
body > .hero,
body > nav + section,
body > nav + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



/* أنماط الخطوط الاحترافية للأقسام المختلفة */

/* أنماط شريط التنقل */
nav .logo-text {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-xl);
    letter-spacing: 0.5px;
}

nav ul li a {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    letter-spacing: 0.3px;
}

/* أنماط القسم الرئيسي */
.hero-title, .main-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.hero-subtitle, .main-subtitle {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/* أنماط بطاقات المحتوى */
.course-card .title,
.section-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.course-card .description,
.section-description {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    letter-spacing: 0.2px;
    line-height: 1.7;
}

/* أنماط الأزرار الاحترافية */
.btn, button, .cta-button {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    letter-spacing: 0.4px;
    text-transform: none;
}

.btn-primary {
    font-weight: var(--font-weight-extrabold);
}

/* أنماط النصوص التفاعلية */
.quote-text, .testimonial-text {
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    font-style: italic;
    letter-spacing: 0.2px;
    line-height: 1.8;
}

.quote-name, .testimonial-name {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    letter-spacing: 0.3px;
}

/* أنماط العناوين الفرعية */
.section-heading {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-3xl);
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 2rem;
}

/* أنماط النصوص الوصفية */
.feature-description {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    letter-spacing: 0.2px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* أنماط الإحصائيات */
.stat-number {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-2xl);
    letter-spacing: 0.4px;
}

.stat-label {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: 0.2px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
    margin-left: 150px;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    width: 100%;
    padding: 0 20px;
}

nav ul li {
    margin: 12px 5px;
    display: inline-block;
}

nav ul li:not(:last-child) {
    margin-left: 0;
}

nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--border-radius-small);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

nav ul li a:hover::before {
    left: 100%;
}

/* إضافات للهاتف المحمول فقط - تحديث الألوان */
.login-button {
    background: linear-gradient(135deg, var(--bg-white), rgba(255, 255, 255, 0.9));
    color: var(--primary-color);
    border: 2px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: var(--border-radius-medium);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-blue-light);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bg-glass), transparent);
    transition: var(--transition-medium);
}

.login-button:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-medium);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--sky-blue);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--sky-blue);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #3797EE;
    border-radius: 30px 30px 30px 30px;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 25px;
    margin: 2px 15px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(10px);
    box-shadow: 
        0 8px 25px rgba(30, 64, 175, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:active {
    transform: translateX(10px) scale(0.98);
}

.mobile-login-button {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    margin: 10px 15px 5px 15px;
}

.mobile-login-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px) scale(1.02);
}

/* Demo Content */
.content {
    padding: 60px 40px;
    text-align: center;
}

.content h1 {
    color: #3797EE;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.content p {
    color: #666;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.hero-background {
    width: calc(100% - 100px);
    max-width: 2550px;
    height: 75vh;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-strong);
    transition: var(--transition-slow);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    animation: fadeIn 1.2s ease-out;
}

.hero-background:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-background {
    width: calc(100% - 300px);
    height: auto;
    margin: 0px 140px;
    animation: slideUp 1s ease-out 0.5s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.login-button {
    background-color: #ffffff;
    color: rgb(53, 53, 53);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-right: 500px;
    /* يدفع الزر إلى اليسار */
    margin-right: 50px;
}

.login-button:hover {
    background-color: #f4f4f4;
    color: #333;
}

.container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* تحسين التخطيط الأساسي */
.about {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
    animation: aboutFadeIn 1s ease-out;
}

.about-section {
    background: linear-gradient(145deg, var(--bg-white), var(--bg-light));
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-gradient);
    pointer-events: none;
    z-index: 0;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

/* إصلاح التبويبات - تحديث الألوان */
.about-tabs {
    display: flex;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-bottom: 1px solid var(--border-medium);
    position: relative;
    overflow: hidden;
    min-height: 70px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.about-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bg-glass), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.about-tab:hover::before {
    left: 100%;
}

.about-tab i {
    font-size: 18px;
    transition: var(--transition-fast);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.about-tab span {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.about-tab:hover {
    color: var(--primary-color);
    background: var(--bg-glass);
    box-shadow: var(--shadow-blue-light);
    transform: translateY(-2px);
}

.about-tab:hover i {
    transform: scale(1.2);
    color: var(--primary-blue-light);
    filter: drop-shadow(var(--glow-blue));
}

.about-tab.active {
    color: var(--text-white);
    background: var(--primary-gradient);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.about-tab.active i {
    transform: scale(1.2);
    color: var(--text-white);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* إصلاح المؤشر - تحديث الألوان */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    width: 25%;
    border-radius: 3px 3px 0 0;
    box-shadow: var(--glow-royal);
}

/* إصلاح منطقة المحتوى - تحديث الألوان */
.about-content-area {
    position: relative;
    min-height: 450px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    overflow: hidden;
}

.about-content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-gradient);
    pointer-events: none;
    z-index: 0;
}

.about-content-area > * {
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: contentSlideIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إصلاح تخطيط المحتوى */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    max-width: 100%;
}

.content-text {
    text-align: right;
    direction: rtl;
}

.content-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.1));
}

.content-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
    text-align: justify;
}

/* إصلاح شبكة الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    direction: ltr;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(145deg, var(--bg-glass), rgba(30, 64, 175, 0.02));
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-light);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue-light);
    border-color: var(--border-medium);
    background: linear-gradient(145deg, var(--bg-white), var(--bg-glass));
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.2;
}

/* العنصر البصري */
.content-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border-glass);
}

.visual-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: iconShine 4s linear infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes iconShine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.visual-icon i {
    font-size: 60px;
    color: var(--text-white);
    z-index: 2;
    position: relative;
}

/* قسم زر الفيسبوك - تحديث الألوان */
.about-facebook-section {
    padding: 30px 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-top: 1px solid var(--border-medium);
    position: relative;
}

.about-facebook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-gradient);
    pointer-events: none;
}

.about-facebook-section > * {
    position: relative;
    z-index: 1;
}

.facebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.facebook-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.facebook-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 50%, #2196f3 100%);
}

.facebook-btn:hover::before {
    animation: btnShine 0.8s ease-out;
}

.facebook-btn:hover i {
    transform: rotate(360deg);
}

@keyframes btnShine {
    0% {
        left: -100%;
    }
    100% {
        left: 120%;
    }
}

/* تحسينات الاستجابة للأجهزة المختلفة - محسنة */

/* تحسينات أساسية للهواتف المحمولة */
@media screen and (max-width: 768px) {
    /* إعدادات عامة للهاتف */
    html {
        scroll-behavior: smooth;
    }
    
    body {
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* تحسين النافذة والتنقل */
    nav {
        margin: 10px 10px 15px 10px;
        padding: 15px 0;
        position: sticky;
        top: 5px;
        background-color: #3797EE;
        border-radius: 30px;
    }
    
    nav ul {
        padding: 0 12px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo {
        height: 32px;
        margin-left: 0;
        transition: transform 0.3s ease;
    }
    
    .logo:hover {
        transform: scale(1.05);
    }
    
    .nav-content {
        padding: 0 12px;
    }
    
    /* إخفاء روابط التنقل العادية وإظهار قائمة الهاتف */
    nav ul li:not(:last-child) {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .mobile-menu-toggle:hover::before {
        left: 100%;
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* تحسين قائمة الهاتف */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #3797EE;
        border-radius: 30px 30px 30px 30px;
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .mobile-nav-link {
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 16px 25px;
        margin: 3px 15px;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid transparent;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .mobile-nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--sky-blue), var(--primary-blue-light));
        transition: width 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: translateX(8px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 
            0 8px 25px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .mobile-nav-link:hover::before {
        left: 100%;
    }
    
    .mobile-nav-link:hover::after {
        width: 100%;
    }
    
    .mobile-nav-link:active {
        transform: translateX(8px) scale(0.98);
    }
    
    /* تحسين المحتوى الرئيسي */
    .content {
        padding: 30px 15px;
    }
    
    .hero {
        margin-top: 0 !important;
        margin-bottom: 20px;
        padding-top: 0 !important;
    }
    
    .hero-background {
        height: 250px;
        object-fit: cover;
    }
    
    .logo-background {
        width: 120px;
        height: auto;
    }
    
    /* تحسين بطاقات الدورات للهاتف بناءً على التصميم المرئي */
    .courses-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 15px;
        padding: 0;
    }
    
    /* إخفاء العنصر الثالث على الهاتف */
    #hidden {
        display: none;
    }
    
    .course-card {
        margin: 0;
        transform: translateY(0);
        animation: slideInUp 0.6s ease-out;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 250, 252, 0.95) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(30, 64, 175, 0.08);
        box-shadow: 
            0 8px 25px rgba(30, 64, 175, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04),
            0 1px 0 rgba(255, 255, 255, 0.6) inset;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .course-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-gradient);
        transform: scaleX(0);
        transition: transform 0.4s ease;
        transform-origin: left;
    }
    
    .course-card::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
        transform: scale(0);
        transition: transform 0.6s ease;
        z-index: 0;
        pointer-events: none;
    }
    
    .course-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 
            0 15px 35px rgba(30, 64, 175, 0.15),
            0 8px 20px rgba(30, 64, 175, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
        border-color: rgba(30, 64, 175, 0.15);
    }
    
    .course-card:hover::before {
        transform: scaleX(1);
    }
    
    .course-card:hover::after {
        transform: scale(1);
    }
    
    .course-card:active {
        transform: translateY(-5px) scale(1.01);
        transition: transform 0.1s ease;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(25px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .course-image {
        height: 160px;
        object-fit: cover;
        transition: all 0.4s ease;
        filter: brightness(1) saturate(1.05);
        position: relative;
        z-index: 1;
    }
    
    .course-card:hover .course-image {
        transform: scale(1.03);
        filter: brightness(1.05) saturate(1.1);
    }
    
    .course-content {
        padding: 16px;
        background: transparent;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1;
    }
    
    .course-title {
        font-size: 1.05em;
        margin-bottom: 8px;
        background: linear-gradient(135deg, var(--navy-blue), var(--primary-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        line-height: 1.3;
        transition: all 0.3s ease;
        min-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .course-card:hover .course-title {
        background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transform: translateY(-1px);
    }
    
    .course-description {
        font-size: 12.5px;
        margin-bottom: 12px;
        line-height: 1.5;
        color: var(--text-secondary);
        opacity: 0.9;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 3.75em;
    }
    
    .course-button {
        padding: 11px 18px;
        font-size: 12.5px;
        width: 100%;
        justify-content: center;
        background: var(--primary-gradient);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 
            0 3px 12px rgba(30, 64, 175, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: auto;
    }
    
    .course-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
        transition: left 0.6s ease;
    }
    
    .course-button::after {
        content: '→';
        font-size: 14px;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }
    
    .course-button:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(30, 64, 175, 0.25),
            0 3px 12px rgba(30, 64, 175, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    }
    
    .course-button:hover::before {
        left: 100%;
    }
    
    .course-button:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
    
    .course-button:active {
        transform: translateY(-1px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .course-button > * {
        position: relative;
        z-index: 1;
    }
    
    /* تحسين قسم الإنجازات والإحصائيات للهاتف */
    .Achieve {
        margin: 20px 10px;
        padding: 20px 15px;
        text-align: center;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 250, 252, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(30, 64, 175, 0.08);
        box-shadow: 
            0 10px 30px rgba(30, 64, 175, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        position: relative;
        overflow: hidden;
    }
    
    .Achieve::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-gradient);
        z-index: 1;
    }
    
    .Achieve .title {
        font-size: 18px !important;
        margin-bottom: 20px;
        background: linear-gradient(135deg, var(--navy-blue), var(--primary-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        position: relative;
        z-index: 2;
    }
    
    .Achieve-images {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }
    
    .groupcard {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 
            0 8px 25px rgba(30, 64, 175, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        filter: brightness(1.02) saturate(1.05);
    }
    
    .groupcard:hover {
        transform: scale(1.02);
        box-shadow: 
            0 12px 35px rgba(30, 64, 175, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.08);
        filter: brightness(1.05) saturate(1.1);
    }
    
    /* تحسين قسم from نحن - الإحصائيات */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .stat-item {
        background: linear-gradient(135deg, 
            rgba(30, 64, 175, 0.05) 0%, 
            rgba(14, 165, 233, 0.03) 100%);
        border: 1px solid rgba(30, 64, 175, 0.08);
        border-radius: 12px;
        padding: 12px 8px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
    }
    
    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.08), transparent);
        transition: left 0.6s ease;
    }
    
    .stat-item:hover {
        background: linear-gradient(135deg, 
            rgba(30, 64, 175, 0.08) 0%, 
            rgba(14, 165, 233, 0.06) 100%);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 
            0 8px 20px rgba(30, 64, 175, 0.12),
            0 2px 8px rgba(30, 64, 175, 0.06);
        border-color: rgba(30, 64, 175, 0.15);
    }
    
    .stat-item:hover::before {
        left: 100%;
    }
    
    .stat-number {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-blue);
        margin-bottom: 4px;
        background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
    }
    
    .stat-item:hover .stat-number {
        transform: scale(1.1);
        background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-label {
        font-size: 10px;
        color: var(--text-secondary);
        opacity: 0.8;
        line-height: 1.2;
        font-weight: 500;
    }
    
    /* تحسين أيقونات المحتوى البصري */
    .visual-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 10px 25px rgba(30, 64, 175, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        animation: pulse 3s infinite;
        position: relative;
        overflow: hidden;
    }
    
    .visual-icon::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: conic-gradient(from 0deg, transparent, var(--sky-blue-light), transparent);
        border-radius: 50%;
        animation: rotate 4s linear infinite;
        z-index: -1;
        opacity: 0.3;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 
                0 10px 25px rgba(30, 64, 175, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 
                0 15px 35px rgba(30, 64, 175, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
    }
    
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
    
    .visual-icon i {
        font-size: 24px;
        color: white;
        z-index: 1;
        position: relative;
    }
    .about {
        margin: 25px 10px;
        padding: 0;
    }
    
    .about-section {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.9) 100%);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(30, 64, 175, 0.1);
        box-shadow: 
            0 15px 35px rgba(30, 64, 175, 0.1),
            0 5px 15px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        overflow: hidden;
        position: relative;
    }
    
    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-gradient);
        z-index: 1;
    }
    
    .about-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 15px 10px 0 10px;
        gap: 5px;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
        position: relative;
    }
    
    .about-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .about-tabs::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(30, 64, 175, 0.2), 
            transparent);
    }
    
    .about-tab {
        min-width: 80px;
        padding: 12px 8px;
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(30, 64, 175, 0.1);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .about-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .about-tab:hover::before {
        left: 100%;
    }
    
    .about-tab.active {
        background: var(--primary-gradient);
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 
            0 8px 25px rgba(30, 64, 175, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .about-tab:hover {
        transform: translateY(-2px);
        background: rgba(30, 64, 175, 0.05);
        border-color: rgba(30, 64, 175, 0.2);
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
    }
    
    .about-tab:active {
        transform: translateY(-1px) scale(0.98);
    }
    
    .about-tab i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .about-tab:hover i {
        transform: scale(1.1);
    }
    
    .about-tab span {
        font-size: 10px;
        line-height: 1.2;
        font-weight: 500;
    }
    
    .about-content-area {
        padding: 20px 15px;
        min-height: 260px;
        position: relative;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .content-text {
        text-align: center;
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .content-text h2 {
        font-size: 18px;
        margin-bottom: 12px;
        background: linear-gradient(135deg, var(--navy-blue), var(--primary-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }
    
    .content-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
        color: var(--text-secondary);
        opacity: 0.9;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .stat-item {
        background: rgba(30, 64, 175, 0.05);
        border: 1px solid rgba(30, 64, 175, 0.1);
        border-radius: 10px;
        padding: 12px 8px;
        text-align: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .stat-item:hover {
        background: rgba(30, 64, 175, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
    }
    
    .stat-number {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-blue);
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 10px;
        color: var(--text-secondary);
        opacity: 0.8;
    }
    
    .content-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }
    
    .visual-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 10px 25px rgba(30, 64, 175, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 
                0 10px 25px rgba(30, 64, 175, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 
                0 15px 35px rgba(30, 64, 175, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
    }
    
    .visual-icon i {
        font-size: 24px;
        color: var(--bg-white);
    }
    
    .content-image {
        text-align: center;
    }
    
    .content-image img {
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius-medium);
    }
    
    /* تحسين العناوين والنصوص */
    h1 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 20px !important;
        line-height: 1.4;
    }
    
    p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    /* تحسينات الأزرار للمس */
    .login-button,
    .profile-button,
    .course-button {
        min-height: 44px;
        min-width: 44px;
        padding: 14px 20px;
        font-size: 14px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .profile-button {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    /* تحسين تأثيرات اللمس */
    .course-card,
    .about-tab,
    .mobile-nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* تحسين أزرار التبويبات */
    .about-tab {
        min-height: 44px;
        padding: 10px 8px;
    }
    
    /* تحسين زر الهامبرجر للمس */
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
        touch-action: manipulation;
    }
    
    /* تحسينات إضافية للأداء والمظهر */
    .login-button,
    .profile-button {
        background: var(--primary-gradient);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 4px 15px rgba(30, 64, 175, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .login-button::before,
    .profile-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .login-button:hover,
    .profile-button:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 8px 25px rgba(30, 64, 175, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .login-button:hover::before,
    .profile-button:hover::before {
        left: 100%;
    }
    
    /* تحسين العناوين */
    .title {
        font-size: 24px !important;
        text-align: right;
        margin-bottom: 25px;
        margin-right: 20px;
        background: linear-gradient(135deg, var(--navy-blue), var(--primary-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
        font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
        letter-spacing: 0.3px;
    }
    
    /* تحسين التمرير */
    html {
        scroll-behavior: smooth;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* تحسين النصوص */
    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 16px !important; }
    p { font-size: 13px !important; line-height: 1.6; }
}

/* للشاشات المتوسطة والتابلت */
@media screen and (max-width: 1199px) {
    .about {
        margin: 60px 30px;
    }
    
    .about-content-area {
        padding: 30px 25px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .content-text {
        text-align: center;
    }
    
    .visual-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .visual-icon i {
        font-size: 40px;
    }
    
    .content-text h2 {
        font-size: 28px;
    }
    
    .content-text p {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .about-facebook-section {
        padding: 25px;
    }
}

/* للهواتف الذكية */
@media screen and (max-width: 767px) {
    .about {
        margin: 40px 15px;
    }
    
    .about-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 5px;
    }
    
    .about-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .about-tab {
        min-width: 100px;
        padding: 15px 10px;
        font-size: 13px;
        flex-direction: column;
        gap: 5px;
        flex-shrink: 0;
    }
    
    .about-tab i {
        font-size: 16px;
    }
    
    .about-tab span {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .about-content-area {
        padding: 25px 20px;
        min-height: 320px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .content-text {
        text-align: center;
    }
    
    .content-text h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .content-text p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .visual-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .visual-icon i {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .about-facebook-section {
        padding: 20px 15px;
    }
    
    .facebook-btn {
        padding: 14px 25px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    /* تحديث مؤشر التبويبات للهواتف */
    .tab-indicator {
        height: 2px;
    }
}

/* للهواتف الصغيرة جداً */
@media screen and (max-width: 479px) {
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    nav {
        margin: 5px 8px 12px 8px;
        padding: 8px 0;
        border-radius: 15px;
    }
    
    .nav-content {
        padding: 0 8px;
    }
    
    .logo {
        height: 26px;
    }
    
    .mobile-menu {
        top: 55px;
        left: 8px;
        right: 8px;
        padding: 18px 0;
        border-radius: 12px;
    }
    
    .mobile-nav-link {
        padding: 12px 18px;
        font-size: 13px;
        margin: 2px 10px;
        border-radius: 8px;
    }
    
    .hero-background {
        height: 180px;
    }
    
    .logo-background {
        width: 90px;
    }
    
    .about {
        margin: 18px 8px;
    }
    
    .about-section {
        border-radius: 12px;
    }
    
    .about-tabs {
        padding: 10px 6px 0 6px;
        gap: 3px;
    }
    
    .about-tab {
        min-width: 65px;
        padding: 8px 5px;
        font-size: 9px;
        border-radius: 6px;
    }
    
    .about-tab i {
        font-size: 10px;
    }
    
    .about-tab span {
        font-size: 8px;
        line-height: 1.1;
    }
    
    .about-content-area {
        padding: 12px 10px;
        min-height: 200px;
    }
    
    .content-text h2 {
        font-size: 14px !important;
        margin-bottom: 8px;
    }
    
    .content-text p {
        font-size: 11px !important;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
    }
    
    .stat-item {
        padding: 8px 5px;
        border-radius: 6px;
    }
    
    .stat-number {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .visual-icon {
        width: 45px;
        height: 45px;
    }
    
    .visual-icon i {
        font-size: 18px;
    }
    
    .courses-container {
        margin: 10px 8px;
        gap: 12px;
    }
    
    /* إخفاء العنصر الثالث على الأجهزة الصغيرة */
    #hidden {
        display: none;
    }
    
    .course-card {
        border-radius: 12px;
    }
    
    .course-content {
        padding: 12px 10px;
    }
    
    .course-title {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .course-description {
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .course-button {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .course-image {
        height: 140px;
    }
    
    .mobile-menu-toggle {
        min-height: 36px;
        min-width: 36px;
        padding: 8px;
        border-radius: 6px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .card {
        margin: 12px 8px;
        padding: 12px 10px;
        border-radius: 12px;
    }
    
    .more-courses {
        margin: 15px 8px;
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .more-courses h2 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .more-courses-button {
        padding: 10px 16px;
        font-size: 11px;
        border-radius: 8px;
    }
    
    .title {
        font-size: 20px !important;
        margin-bottom: 20px;
        margin-right: 15px;
        text-align: right;
        font-weight: 800;
        font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    }
    
    .login-button,
    .profile-button {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 36px;
        border-radius: 6px;
    }
    
    /* تحسين الأداء للشاشات الصغيرة جداً */
    .course-card::after,
    .about-tab::before,
    .mobile-nav-link::before,
    .course-button::before {
        display: none;
    }
    
    /* تقليل التأثيرات المعقدة للأداء */
    .course-card:hover {
        transform: translateY(-5px);
    }
    
    .about-tab:hover {
        transform: translateY(-1px);
    }
    
    .mobile-nav-link:hover {
        transform: translateX(4px);
    }
    
    /* تبسيط الظلال */
    .course-card,
    .about-section,
    .mobile-menu {
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
    }
    
    .course-card:hover {
        box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
    }
    
    .hamburger-line {
        width: 24px;
        height: 2px;
    }
    
    .mobile-nav-link {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .visual-icon {
        width: 60px;
        height: 60px;
    }
    
    .visual-icon i {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .facebook-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* عناوين المحتوى المحسنة */
.about-content h1 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: titleSlideIn 1s ease-out 0.8s both;
}

.about-content h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: underlineExpand 1s ease-out 1.2s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.about-content h2 {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 35px;
    animation: textFadeIn 1s ease-out 1s both;
    position: relative;
    padding-right: 20px;
}

.about-content h2::before {
    content: '"';
    position: absolute;
    right: -5px;
    top: -15px;
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    animation: quoteFloat 3s ease-in-out infinite;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quoteFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* زر الفيسبوك المحسن في قسم من نحن */
.about-facebook-button {
    position: relative;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-medium);
    color: var(--text-white);
    border: none;
    padding: 18px 35px;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-medium);
    animation: buttonSlideIn 1s ease-out 1.3s both;
    backdrop-filter: blur(10px);
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-facebook-button i {
    font-size: 20px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.about-facebook-button:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 50%, #2196f3 100%);
    box-shadow: var(--shadow-hover);
}

.about-facebook-button:hover i {
    transform: rotate(360deg) scale(1.1);
}

.about-facebook-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.about-facebook-button:hover::before {
    animation: shineEffect 0.8s ease-out;
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    100% {
        left: 120%;
    }
}

/* كاردات المحتوى التفاعلية الجديدة */
.about-content-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 249, 250, 0.7));
    border-radius: var(--border-radius-medium);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(55, 151, 238, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 0;
    animation: cardFadeInUp 0.6s ease-out forwards;
}

.about-content-card:nth-child(2) { animation-delay: 0.2s; }
.about-content-card:nth-child(3) { animation-delay: 0.4s; }
.about-content-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: var(--transition-medium);
}

.about-content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(55, 151, 238, 0.2);
}

.about-content-card:hover::before {
    height: 100%;
}

/* أيقونات المحتوى */
.about-content-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.about-content-card:hover .about-content-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-medium);
}

/* إحصائيات ديناميكية */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    animation: statsSlideIn 1s ease-out 1.5s both;
}

@keyframes statsSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, 
        rgba(55, 151, 238, 0.05), 
        rgba(55, 151, 238, 0.02));
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(55, 151, 238, 0.1);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.about-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.about-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.about-stat-item:hover::before {
    transform: scaleX(1);
}

.about-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.about-stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* تحسينات الاستجابة لقسم من نحن */

/* للشاشات المتوسطة والتابلت */
@media screen and (max-width: 1199px) {
    .about {
        margin: 80px 40px;
    }
    
    .about-container {
        grid-template-columns: 300px 1fr;
        gap: 30px;
        padding: 40px;
    }
    
    .about-sidebar {
        padding: 25px;
    }
    
    .about-content {
        padding: 35px;
    }
    
    .about-nav-button {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .about-content h1 {
        font-size: 36px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* للهواتف الذكية */
@media screen and (max-width: 767px) {
    .about {
        margin: 50px 20px;
        background: linear-gradient(135deg, 
            rgba(55, 151, 238, 0.02) 0%, 
            rgba(255, 255, 255, 0.9) 50%, 
            rgba(55, 151, 238, 0.02) 100%);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
        min-height: auto;
    }
    
    .about-sidebar {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding: 20px;
        gap: 10px;
        background: linear-gradient(145deg, 
            rgba(255, 255, 255, 0.95), 
            rgba(248, 249, 250, 0.9));
    }
    
    .about-nav-button {
        min-width: 120px;
        padding: 12px 18px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }
    
    .about-nav-button:hover,
    .about-nav-button.active {
        transform: translateY(-2px);
    }
    
    .about-content {
        order: 1;
        padding: 25px;
    }
    
    .about-content h1 {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about-content h2 {
        font-size: 16px;
        text-align: center;
        padding-right: 0;
    }
    
    .about-content h2::before {
        display: none;
    }
    
    .about-facebook-button {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .about-stat-item {
        padding: 15px;
    }
    
    .about-stat-number {
        font-size: 24px;
    }
    
    .about-content-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .about-content-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* للهواتف الصغيرة جداً */
@media screen and (max-width: 479px) {
    .about {
        margin: 30px 15px;
    }
    
    .about-container {
        padding: 20px;
        gap: 20px;
    }
    
    .about-sidebar {
        padding: 15px;
        gap: 8px;
    }
    
    .about-nav-button {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .about-content h1 {
        font-size: 24px;
    }
    
    .about-content h2 {
        font-size: 15px;
    }
    
    .about-facebook-button {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .about-stat-number {
        font-size: 20px;
    }
    
    .about-stat-label {
        font-size: 12px;
    }
}




.courses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    margin: 30px 150px;
}




.course-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
    transform-origin: left;
}

.course-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--sky-blue-light), transparent);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
    z-index: -1;
    opacity: 0;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        var(--outer-glow),
        0 25px 50px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--sky-blue-light);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover::after {
    opacity: 0.1;
    transform: rotate(360deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: var(--transition-medium);
    filter: brightness(1) saturate(1.1);
}

.course-card:hover .course-image {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.course-content {
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.course-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy-blue);
    line-height: 1.3;
    transition: var(--transition-fast);
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-card:hover .course-title {
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.course-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.course-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-medium);
}

.course-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(30, 64, 175, 0.25),
        0 5px 15px rgba(30, 64, 175, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.course-button:hover::before {
    left: 100%;
}

.course-button:hover::after {
    opacity: 1;
}

.course-button > * {
    position: relative;
    z-index: 1;
}

.more-courses {
    display: flex;
    background-color: #7EC2FF;
    border-radius: 30px;
    padding: 10px 70px;
    padding-top: 12px;
    margin: 30px 150px;
    font-size: 25px;
    margin-bottom: 100px;
}

.more-courses-button {
    position: relative;
    /* مهم جداً للّمعه */
    background-color: #1A89ED;
    color: #fcfcfc;
    font-size: 23px;
    font-weight: 600;
    border: none;
    padding: 13px 50px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 600px;
    overflow: hidden;
    /* يخلي اللمعة داخل الزر */
    transition: background-color 0.3s;
}

.more-courses-button:hover {
    background-color: #0d6efd;
}

/* اللمعة */
.more-courses-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75px;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(-25deg);
    transition: none;
}

.more-courses-button:hover::before {
    animation: shine 0.8s forwards;
}

@keyframes shine {
    0% {
        left: -75px;
    }

    100% {
        left: 120%;
    }
}

.groupcard {
    margin-right: 150px;
    width: calc(100% - 300px);
    margin-bottom: 50px;
}

/* القسم */
.quotes-section {
    width: calc(100% - 300px);
    margin: 50px auto;
    padding: 0 20px;

}

/* الشبكة */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

/* الكرت */
.quote-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius-large);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(55, 151, 238, 0.08);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
    transform-origin: right;
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(55, 151, 238, 0.15);
}

.quote-card:hover::before {
    transform: scaleX(1);
}

/* الشخص */
.quote-person {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
}

.quote-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.quote-card:hover .quote-avatar {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.quote-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quote-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.quote-role {
    margin: 4px 0 0 0;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* النص */
.quote-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding-right: 20px;
}

.quote-text::before {
    content: '"';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 60px;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quotes-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.quotes-container::before,
.quotes-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
}

.quotes-container::before {
    left: 0;
    background: linear-gradient(to right, #f7f7f7ff 0%, transparent 100%);
}

.quotes-container::after {
    right: 0;
    background: linear-gradient(to left, #EEF8FE 0%, transparent 100%);
}

.quotes-container {
    width: calc(100% - 300px);
    /* نفس عرض العناصر الأخرى في الصفحة */
    margin: 0 150px;
    /* نفس الهوامش المستخدمة في العناصر الأخرى */
    overflow: hidden;
    /* لإخفاء البطاقات خارج المنطقة المحددة */
    position: relative;
}

.quotes-row {
    position: relative;
    width: 110%;
    overflow: hidden;
    margin: 20px 0;
}

.track-right {
    display: inline-flex;
    white-space: nowrap;
    width: max-content;
}

/* الكرت */
.quote-card-new {
    display: inline-block;
    min-width: 320px;
    width: 450px;
    /* تحديد عرض ثابت وأكبر */
    margin: 0 20px;
    /* زيادة المسافة بين البطاقات */
    padding: 35px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0px 10px 0px rgb(11, 98, 212);
    border: #0d6efd 2px solid;
    transition: box-shadow 0.2s ease;
    /* أضفنا box-shadow للـ transition */
    vertical-align: top;
    margin-bottom: 100px;
    z-index: 5;
}

/* تعديل نص الاقتباس */
.quote-text-new {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin: 15px 0;
    /* إضافة هامش */
    white-space: normal;
    width: 100%;
    /* تأكيد استخدام العرض الكامل */
}

.quote-card-new:hover {
    box-shadow: 0px 17px 0px rgb(11, 98, 212);
}

/* الشخص */
.quote-person-new {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.quote-avatar-new {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
    /* لأنك RTL */
}

.quote-info-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quote-name-new {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.quote-role-new {
    margin: 2px 0 0 0;
    font-size: 15px;
    color: #666;
}

.quotes-title-su {
    font-size: 45px;
    margin-bottom: 20px;
    margin-right: 170px;
    color: #161616;
    font-weight: 700;
}

/* قسم الأسئلة الشائعة */
.faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface-glass) 100%);
}

.faq-section .title {
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 800;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: var(--surface-white);
    border-radius: var(--border-radius-large);
    margin-bottom: 16px;
    border: 2px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-blue-light);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--primary);
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-blue);
    transform: translateY(-3px) scale(1.02);
}

.faq-question {
    padding: 24px 30px;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 20px 30px 24px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 16px;
}

.faq-item.active .faq-question::after {
    content: '−';
    color: var(--text-white);
    transform: rotate(180deg);
}

.social-box {
    width: calc(100% - 300px);
    margin: 100px auto;
    text-align: center;
    background: var(--primary-gradient);
    padding: 80px 40px;
    margin-top: 150px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.social-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.social-box h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.social-box p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 15px 25px;
    margin-top: 40px;
    border-radius: var(--border-radius-medium);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
}

.social-links a i {
    font-size: 20px;
    transition: var(--transition-fast);
}

.facebook {
    background: rgba(255, 255, 255, 0.95);
    color: #1877f2;
    min-width: 140px;
}

.facebook:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--bg-white);
    box-shadow: var(--shadow-medium);
}

.facebook:hover::before {
    left: 0;
}

.youtube {
    background: rgba(255, 255, 255, 0.95);
    color: #ff0000;
    min-width: 140px;
}

.youtube:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--bg-white);
    box-shadow: var(--shadow-medium);
}

.youtube:hover::before {
    left: 0;
}

.instagram {
    background: rgba(255, 255, 255, 0.95);
    color: #e4405f;
    min-width: 140px;
}

.instagram:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--bg-white);
    box-shadow: var(--shadow-medium);
}

.instagram:hover::before {
    left: 0;
}


footer {
    background: linear-gradient(135deg, #031c3b 0%, #0a2240 50%, #1a365d 100%);
    color: #e2e8f0;
    padding: 60px 40px 30px;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.footer-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-logo h2 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 24px;
}

.footer-logo p {
    line-height: 1.7;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #007bff;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(55, 151, 238, 0.2), rgba(55, 151, 238, 0.1));
    color: var(--primary-light);
    font-size: 18px;
    transition: var(--transition-medium);
    border: 2px solid rgba(55, 151, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-social .social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-medium);
    z-index: -1;
}

.footer-social .social-icons a:hover {
    color: var(--text-white);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.footer-social .social-icons a:hover::before {
    transform: scale(1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 14px;
    color: #888;
}

.title {
    font-size: 42px;
    margin-bottom: 35px;
    margin-top: 60px;
    margin-right: 100px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.1));
    position: relative;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: var(--glow-royal);
}

.title-quot {
    font-size: 35px;
    margin-bottom: 30px;
    margin-top: 50px;
    margin-right: 0px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.1));
    text-align: center;
    position: relative;
}

.title-quot::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: var(--glow-royal);
}


/* التنسيقات للشاشات الكبيرة (فوق 1200px) */
@media screen and (max-width: 1366px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .about {

        margin-top: 0px;
        margin-right: 0px;
        margin-left: 30px;

    }

    .content {
        margin-right: 50px;
        padding: 50px 20px;
    }

    .button-about {
        padding: 18px 150px;
        font-size: 30px;
        margin-left: 30px;
        margin-top: 20px;
    }

    .faq-container {
        width: calc(100% - 300px);
        margin: auto;
        margin-bottom: 90px;
        margin-top: 20px;
    }

    .more-courses {
        display: flex;
        background-color: #7EC2FF;
        border-radius: 30px;
        padding: 10px 40px;
        padding-top: 12px;
        margin: 30px 150px;
        font-size: 16px;
        margin-bottom: 50px;
    }

    .more-courses-button {
        margin-right: 389px;
        padding: 10px 30px;
        font-size: 18px;
    }

    .social-box {
        width: calc(100% - 100px);
        margin: auto;
        padding: 30px 25px;
    }
    .title {
        font-size: 35px;
        margin-bottom: 0x;
        margin-top: 50px;
        margin-right: 50px;
        color: #161616;
        font-weight: 700;
    }
}

/* التنسيقات للأيباد والتابلت (768px - 1199px) */
@media screen and (max-width: 1199px) {

    html,
    body {
        overflow-x: hidden;
    }

    nav {
        margin: 18px 20px;
    }

    .logo {
        margin-left: 20px;
    }

    .login-button {
        margin-right: 20px;
    }

    .about {

        margin-top: 0px;
        margin-right: 0px;
        margin-left: 30px;

    }

    .button-about {
        padding: 15px 80px;
        font-size: 24px;
        margin-left: 30px;
        margin-top: 20px;
    }

    .content {
        margin-right: 50px;
        padding: 20px 20px;
    }

    .content h1 {
        font-size: 35px;
    }

    .content h2 {
        font-size: 24px;
    }

    .content,
    .tytlecard,
    .groupcard,
    .quotes-section,
    .quotes-container {
        width: 100%;
        margin-left: 50px;
        margin-right: 50px;
        box-sizing: border-box;
    }

    .courses-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin: 30px 50px;
    }

    .more-courses {
        display: flex;
        background-color: #7EC2FF;
        border-radius: 30px;
        padding: 10px 40px;
        padding-top: 12px;
        margin: 30px 50px;
        font-size: 16px;
        margin-bottom: 50px;
    }

    .more-courses-button {
        margin-right: 380px;
        padding: 10px 30px;
        font-size: 18px;
    }

    .button-facebook {
        margin-top: 20px;
        padding: 15px 40px;
        font-size: 20px;
    }

    .groupcard {
        margin-right: 50px;

        width: calc(100% - 100px);
        margin-bottom: 50px;
    }

    .title {
        font-size: 38px;
        margin-bottom: 25px;
        margin-top: 60px;
        margin-right: 80px;
        text-align: right;
        color: #161616;
        font-weight: 800;
        font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
        letter-spacing: 0.5px;
    }

    .quotes-grid {
        max-width: calc(100% - 80px);
        gap: 30px;

    }

    .quotes-section {
        margin: 50px 40px;
    }

    .quotes-container {
        width: calc(100% - 100px);
        /* نفس عرض العناصر الأخرى في الصفحة */
        margin: 0 50px;
    }

    .quotes-title {
        font-size: 40px;
        margin: 0px 20px 0px 0px;
    }

    .quotes-title-su {

        font-size: 40px;
        margin: 0px 50px 0px 0px;

    }

    .faq-container {
        width: calc(100% - 150px);
        margin: auto;
        margin-top: 20px;
    }

    .social-box {
        width: calc(100% - 150px);
        margin: 50px 75px 0 50px;
        padding: 50px 20px;
    }
}

/* التنسيقات للهواتف (أقل من 768px) */
@media screen and (max-width: 767px) {
    nav {
        margin: 10px 20px 20px 20px;
        padding: 10px 0;
        position: sticky;
        top: 10px;
        z-index: 1000;
    }

    .logo {
        margin-left: 0;
        height: 35px;
    }

    .nav-links {
        display: none;
    }

    .login-button {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
        color: var(--primary-color);
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 12px 24px;
        border-radius: var(--border-radius-medium);
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition-fast);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-soft);
    }

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
        background: var(--bg-white);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .mobile-menu-toggle {
        display: none;
    }

    nav ul {
        justify-content: space-between;
        padding: 0 15px;
        align-items: center;
    }

    .content {
        padding: 40px 20px;
    }

    .content h1 {
        font-size: 2em;
    }

    .content p {
        font-size: 1em;
    }


    .about {
        flex-direction: column;
        margin-top: 0px;
        margin-right: 0px;
        margin-left: 30px;

    }



    .button-about {
        padding: 90px 90px;
        font-size: 18px;
        margin-top: 10px;

        margin-right: 79px;


    }

    .content {
        margin-right: 20px;

    }

    .content h1 {
        font-size: 28px;
        text-align: center;
        max-width: calc(100% - 20px);
    }

    .content h2 {
        font-size: 18px;
        text-align: center;
    }

    .hero-background {
        width: calc(100% - 20px);
        height: 40vh;
        margin: 0 10px;
    }

    .logo-background {
        width: calc(100% - 40px);
        margin: 0 20px;
    }


    .title {
        font-size: 30px;
        margin-bottom: 20px;
        margin-top: 50px;
        margin-right: 30px;
        text-align: right;
        color: #161616;
        font-weight: 800;
        font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
        letter-spacing: 0.4px;
    }


    .courses-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 20px;
    }

    /* إخفاء العنصر الثالث على الهاتف */
    #hidden {
        display: none !important;
    }

    .course-title {
        font-size: 18px;
    }

    .course-description {
        font-size: 14px;
    }

    .more-courses {
        display: flex;
        background-color: #7EC2FF;
        border-radius: 30px;
        padding: 10px 20px;
        padding-top: 12px;
        margin: 20px 20px;
        font-size: 12px;
        margin-bottom: 50px;
    }

    .more-courses-button {
        margin-right: 0;
        padding: 10px 30px;
        font-size: 12px;
    }

    .groupcard {
        margin-right: 20px;
        width: calc(100% - 40px);
        margin-bottom: 50px;
    }

    .quotes-section {
        width: 115%;
        margin: 20px auto;
        padding: 0 10px;
    }

    .quotes-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* عمود واحد */

    }

    .quote-card {
        width: auto;
        /* يملأ العمود */
        padding: 30px;
        /* أصغر شوي */
        margin-bottom: 20px;
    }

    .button-facebook {
        display: none;
    }

    .quotes-container {
        width: calc(100% - 40px);
        /* نفس عرض العناصر الأخرى في الصفحة */
        margin: 0 40px;
        /* نفس الهوامش المستخدمة في العناصر الأخرى */
        overflow: hidden;
        /* لإخفاء البطاقات خارج المنطقة المحددة */
        position: relative;
    }

    .quote-card-new {
        display: inline-block;
        min-width: 220px;
        width: 300px;
        height: auto;
        margin: 0px 20px;
        margin-bottom: 60px;
        padding: 30px;

    }

    .faq-container {
        width: calc(100% - 40px);
        margin: auto;
        margin-bottom: 90px;
        margin-top: 20px;
    }

    .social-box {
        width: calc(100% - 40px);
        margin: 20px 20px 0 50px;
        padding: 30px 25px;
    }

    .social-box h2 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .social-box p {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 14px;
        color: #d8d8d8;
    }




}

/* تنسيقات إضافية للهواتف الصغيرة (أقل من 480px) */
@media screen and (max-width: 479px) {
    .button-about {
        padding: 10px 20px;
        font-size: 16px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 0 5px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 16px;
    }

}

/* =========================
   تحسينات التأثيرات البصرية المتقدمة
   ========================= */

/* أنماط المساحات الموحدة */
.section-container {
    max-width: 1200px;
    margin: var(--margin-large) auto;
    padding: 0 var(--margin-small);
}

.content-section {
    margin: var(--margin-medium) 0;
    padding: var(--margin-small);
}

/* تحسين أزرار المزيد */
.more-courses {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-large);
    padding: 40px;
    margin: 60px auto;
    max-width: 1200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.more-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-gradient);
    pointer-events: none;
    z-index: 0;
}

.more-courses > * {
    position: relative;
    z-index: 1;
}

.more-courses h2 {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.more-courses-button {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 18px 45px;
    border-radius: var(--border-radius-medium);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-blue);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.more-courses-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-medium);
}

.more-courses-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), var(--glow-blue);
    background: var(--secondary-gradient);
}

.more-courses-button:hover::before {
    left: 100%;
}

/* تحسين بطاقات الكورسات */
.course-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-large);
    padding: 25px;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-medium);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-button {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-blue-light);
    border: 1px solid var(--border-glass);
}

.course-button:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    text-decoration: none;
    color: var(--text-white);
}

/* تأثيرات Glass Morphism العامة */
.glass-effect {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* تأثيرات الأزرار المحسنة */
.btn-primary-enhanced {
    background: var(--primary-gradient);
    border: 1px solid var(--border-glass);
    box-shadow: 
        var(--shadow-blue),
        var(--inner-glow);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-enhanced:hover::before {
    left: 100%;
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-hover),
        var(--outer-glow),
        var(--inner-glow);
}

/* تأثيرات البطاقات المحسنة */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* تأثيرات الخلفيات المتحركة */
@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-bg {
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: backgroundShift 8s ease-in-out infinite;
}

/* تأثيرات الإضاءة المتقدمة */
.glow-blue {
    box-shadow: var(--glow-blue);
}

.glow-sky {
    box-shadow: var(--glow-sky);
}

/* تحسينات التحميل المتأخر للصور */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

img[data-src].loading {
    filter: blur(5px);
    opacity: 0.5;
}

img[data-src]:not(.loading) {
    filter: blur(0);
    opacity: 1;
}

/* تحسينات الأداء العامة */
.course-card,
.about-tab,
.profile-button {
    will-change: transform;
}

.course-card:hover {
    will-change: auto;
}

/* تحسينات اللمس للأجهزة المحمولة */
@media (hover: none) and (pointer: coarse) {
    .course-card:active {
        transform: translateY(-5px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .about-tab:active,
    .profile-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* تحسينات إضافية للأداء */
.course-image {
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}

/* مؤشر التحميل للصور */
.image-loading {
    position: relative;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--sky-blue-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glow-royal {
    box-shadow: var(--glow-royal);
}

/* تأثيرات النصوص المضيئة */
.text-glow {
    text-shadow: 
        0 0 10px rgba(30, 64, 175, 0.3),
        0 0 20px rgba(30, 64, 175, 0.2),
        0 0 30px rgba(30, 64, 175, 0.1);
}

/* تحسينات الانتقالات المتقدمة */
.smooth-transform {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.smooth-transform:hover {
    transform: translateY(-5px) scale(1.02);
}

/* تأثيرات القوائم المحسنة */
.enhanced-list {
    list-style: none;
    padding: 0;
}

.enhanced-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
    position: relative;
    padding-left: 20px;
}

.enhanced-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: var(--glow-blue);
}

.enhanced-list li:hover {
    color: var(--primary-color);
    transform: translateX(10px);
    background: var(--bg-glass);
}

/* تحسينات شاملة لقسم الشهادات والآراء للهاتف */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 25px 12px;
        background: linear-gradient(135deg, 
            rgba(248, 250, 252, 0.95) 0%, 
            rgba(255, 255, 255, 0.98) 100%);
        border-radius: 18px;
        margin: 15px 8px;
        border: 1px solid rgba(30, 64, 175, 0.08);
        backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
    }
    
    .testimonials-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, 
            rgba(30, 64, 175, 0.02) 0%, 
            transparent 50%);
        animation: float 6s ease-in-out infinite;
        z-index: 0;
    }
    
    .testimonials-carousel {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 12px;
        padding: 8px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .testimonials-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-card {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.9) 100%);
        border: 1px solid rgba(30, 64, 175, 0.1);
        border-radius: 14px;
        padding: 16px 12px;
        min-width: 240px;
        flex-shrink: 0;
        scroll-snap-align: center;
        box-shadow: 
            0 6px 20px rgba(30, 64, 175, 0.08),
            0 2px 6px rgba(0, 0, 0, 0.04);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backdrop-filter: blur(12px);
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-gradient);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .testimonial-card:hover::before {
        transform: scaleX(1);
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin: 0 auto 10px;
        overflow: hidden;
        border: 2px solid transparent;
        background: var(--primary-gradient);
        padding: 2px;
    }
    
    .testimonial-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        background: white;
    }
    
    .testimonial-text {
        font-size: 12px;
        line-height: 1.5;
        color: var(--text-primary);
        margin-bottom: 10px;
        font-style: italic;
        opacity: 0.9;
    }
    
    .testimonial-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 3px;
    }
    
    .testimonial-position {
        font-size: 10px;
        color: var(--text-secondary);
        opacity: 0.8;
    }
}

/* تحسينات شاملة لقسم FAQ للهاتف */
@media (max-width: 768px) {
    .faq-section {
        margin: 15px 8px;
        padding: 20px 12px;
    }
    
    .faq-item {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.9) 100%);
        border: 1px solid rgba(30, 64, 175, 0.08);
        border-radius: 12px;
        margin-bottom: 10px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        position: relative;
    }
    
    .faq-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-gradient);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .faq-item.active::before {
        transform: scaleY(1);
    }
    
    .faq-question {
        padding: 14px 16px 14px 14px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 13px;
        line-height: 1.4;
        background: transparent;
        border: none;
        width: 100%;
        text-align: right;
        transition: all 0.3s ease;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--primary-gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 11px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .faq-item.active .faq-icon {
        transform: rotate(180deg) scale(1.1);
        background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
        box-shadow: 0 3px 10px rgba(30, 64, 175, 0.3);
    }
    
    .faq-answer {
        padding: 0 14px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        background: linear-gradient(135deg, 
            rgba(248, 250, 252, 0.6) 0%, 
            rgba(255, 255, 255, 0.4) 100%);
    }
    
    .faq-item.active .faq-answer {
        max-height: 150px;
        padding: 14px;
        border-top: 1px solid rgba(30, 64, 175, 0.08);
    }
    
    .faq-answer p {
        font-size: 12px;
        line-height: 1.5;
        color: var(--text-secondary);
        margin: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: all 0.3s ease 0.1s;
    }
    
    .faq-item.active .faq-answer p {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات شريط التنقل المتقدمة للهاتف */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.9) 100%);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(30, 64, 175, 0.1);
        padding: 8px 15px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 20px rgba(30, 64, 175, 0.1);
    }
    
    .navbar.scrolled {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 250, 252, 0.95) 100%);
        backdrop-filter: blur(25px);
        box-shadow: 0 4px 30px rgba(30, 64, 175, 0.15);
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-blue);
        text-decoration: none;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: var(--primary-blue);
        margin: 2px 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-radius: 2px;
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
        background: white;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
        background: white;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(135deg, 
            rgba(30, 64, 175, 0.95) 0%, 
            rgba(15, 23, 42, 0.98) 100%);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="200" cy="200" r="200" fill="url(%23grad)" opacity="0.3"><animateTransform attributeName="transform" type="translate" values="0,0;800,600;0,0" dur="20s" repeatCount="indefinite"/></circle><circle cx="800" cy="800" r="150" fill="url(%23grad)" opacity="0.2"><animateTransform attributeName="transform" type="translate" values="0,0;-600,-400;0,0" dur="15s" repeatCount="indefinite"/></circle></svg>') no-repeat center center;
        background-size: cover;
        z-index: -1;
    }
    
    .mobile-nav-link {
        color: white;
        text-decoration: none;
        font-size: 20px;
        font-weight: 600;
        margin: 15px 0;
        padding: 12px 25px;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        text-align: center;
        min-width: 180px;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.2), 
            transparent);
        transition: left 0.6s ease;
    }
    
    .mobile-nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(255, 255, 255, 0.1) 100%);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.2),
            0 5px 10px rgba(30, 64, 175, 0.3);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-nav-link:hover::before {
        left: 100%;
    }
    
    .mobile-nav-link:active {
        transform: translateY(-1px) scale(1.02);
    }
    
    /* تحسينات إضافية للعناصر التفاعلية */
    .btn-premium, .profile-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-premium:active, .profile-button:active {
        transform: scale(0.95);
    }
}

/* تحسين التمرير والتنقل السلس */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 70px;
    }
    
    body {
        padding-top: 65px;
        overflow-x: hidden;
    }
    
    /* تحسين الـ Touch Targets */
    button, .btn, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* تحسين الـ Scroll Indicators */
    .scroll-indicator {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 3px;
        background: rgba(30, 64, 175, 0.1);
        z-index: 998;
    }
    
    .scroll-progress {
        height: 100%;
        background: var(--primary-gradient);
        width: 0%;
        transition: width 0.1s ease;
    }

    /* تحسينات FAQ للهاتف المحمول */
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-section .title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-item {
        margin-bottom: 12px;
        border-radius: var(--border-radius-medium);
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-question::after {
        font-size: 1.2rem;
        margin-left: 12px;
    }
    
    .faq-answer {
        padding: 0 20px;
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 18px;
    }
    
    .faq-item.active {
        transform: translateY(-1px) scale(1.01);
    }
}