/* ملف CSS موحد لموقع العنقاء - إصلاح مشاكل الستايل */

/* إعادة تعيين أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Tokens - نظام موحد للألوان والخطوط */
:root {
    /* ألوان العلامة التجارية */
    --brand: #00A887;           /* الأخضر الأساسي */
    --brand-2: #99E6D8;         /* الأخضر الفاتح */
    --brand-dark: #008F73;      /* الأخضر الداكن */
    --brand-light: #00C4A0;     /* الأخضر الأفتح */
    
    /* ألوان النص */
    --text: #0F172A;            /* النص الأساسي */
    --text-muted: #64748B;      /* النص الثانوي */
    --text-light: #94A3B8;      /* النص الفاتح */
    
    /* ألوان الخلفية */
    --bg: #FFFFFF;              /* الخلفية الأساسية */
    --bg-alt: #F8FAFC;          /* الخلفية البديلة */
    --bg-dark: #1E293B;         /* الخلفية الداكنة */
    
    /* ألوان الحالات */
    --success: #10B981;         /* النجاح */
    --warning: #F59E0B;         /* التحذير */
    --error: #EF4444;           /* الخطأ */
    --info: #3B82F6;            /* المعلومات */
    
    /* المسافات والحدود */
    --radius: 16px;             /* نصف قطر الحدود */
    --radius-sm: 8px;           /* نصف قطر صغير */
    --radius-lg: 24px;          /* نصف قطر كبير */
    
    /* الظلال */
    --shadow: 0 10px 25px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    
    /* الخطوط */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* العناوين */
    --h1: clamp(28px, 4.2vw, 44px);
    --h2: clamp(22px, 3.2vw, 34px);
    --h3: clamp(18px, 2.6vw, 28px);
    --h4: clamp(16px, 2.2vw, 24px);
    --lead: clamp(16px, 2.2vw, 20px);
    
    /* الانتقالات */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* المسافات */
    --space-xs: 0.25rem;        /* 4px */
    --space-sm: 0.5rem;         /* 8px */
    --space-md: 1rem;           /* 16px */
    --space-lg: 1.5rem;         /* 24px */
    --space-xl: 2rem;           /* 32px */
    --space-2xl: 3rem;          /* 48px */
    --space-3xl: 4rem;          /* 64px */
    
    /* الألوان القديمة للتوافق */
    --primary-color: var(--brand);
    --primary-dark: var(--brand-dark);
    --primary-light: var(--brand-light);
    --secondary-color: var(--brand-light);
    --secondary-dark: var(--brand-dark);
    --accent-color: var(--brand);
    --success-color: var(--success);
    --warning-color: var(--warning);
    --danger-color: var(--error);
    --info-color: var(--info);
    --light-color: var(--bg-alt);
    --dark-color: var(--bg-dark);
    --text-color: var(--text);
    --text-muted: var(--text-muted);
    --border-color: #e9ecef;
    --shadow-hover: var(--shadow-lg);
    --border-radius: var(--radius-sm);
    --border-radius-lg: var(--radius);
}

/* الخطوط الموحدة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    overflow-x: hidden;
}

/* العناوين الموحدة */
h1 {
    font-size: var(--h1);
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--text);
    font-weight: 700;
}

h2 {
    font-size: var(--h2);
    line-height: 1.25;
    margin: 1.2em 0 0.4em;
    color: var(--text);
    font-weight: 600;
}

h3 {
    font-size: var(--h3);
    line-height: 1.3;
    margin: 1em 0 0.4em;
    color: var(--text);
    font-weight: 600;
}

h4 {
    font-size: var(--h4);
    line-height: 1.4;
    margin: 0.8em 0 0.3em;
    color: var(--text);
    font-weight: 500;
}

p, li {
    font-size: var(--lead);
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1em;
}

/* أزرار موحدة */
.btn-brand {
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* بطاقات موحدة */
.card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-xl);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* تحسينات الهيدر */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-header.scrolled {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-hover);
}

/* تحسينات التنقل */
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(4, 168, 135, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(4, 168, 135, 0.3);
}

/* تحسينات الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    min-height: 44px; /* تحسين لمس الموبايل */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* تحسينات البطاقات */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--light-color), #fff);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تحسينات النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 168, 135, 0.1);
}

.form-input.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-input.success {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* تحسينات التنبيهات */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* تحسينات الجداول */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: linear-gradient(135deg, var(--light-color), #fff);
    font-weight: 600;
    color: var(--text-color);
}

.table tbody tr:hover {
    background: rgba(4, 168, 135, 0.05);
}

/* تحسينات الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* تحسينات التبويبات */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(4, 168, 135, 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* تحسينات الشارات */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

/* تحسينات التحميل */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات التجاوب */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col,
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-button.active {
        border-bottom-color: transparent;
        border-right-color: var(--primary-color);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
}

/* تحسينات إضافية للوصولية */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .btn,
    .nav-link,
    .form-input {
        border: 2px solid currentColor;
    }
}

/* تحسينات الطباعة */
@media print {
    .main-header,
    .btn,
    .tabs {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ===== CTA Section - قسم الدعوة للعمل ===== */
.cta-section {
    background: linear-gradient(135deg, #00A887, #99E6D8);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-actions .btn-primary {
    background: white;
    color: #00A887;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-actions .btn-primary:hover {
    background: #f8f9fa;
    color: #008F73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-actions .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-actions .btn-outline:hover {
    background: white;
    color: #00A887;
    transform: translateY(-2px);
}

/* CTA Responsive */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-actions .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ===== Packages Section - قسم الباقات ===== */
.packages-hero {
    background: linear-gradient(135deg, #00A887, #99E6D8);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.packages-hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.packages-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.packages-hero .hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.packages-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges .badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.packages-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00A887, #99E6D8);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-card.basic::before {
    background: #28a745;
}

.package-card.standard::before {
    background: #ffc107;
}

.package-card.professional::before {
    background: #007bff;
}

.package-card.premium::before {
    background: #dc3545;
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
}

.package-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.package-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.package-price .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00A887;
}

.package-price .currency {
    font-size: 1.2rem;
    color: #666;
}

.package-duration {
    color: #666;
    font-size: 0.9rem;
}

.package-features {
    margin-bottom: 30px;
}

.package-features h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-right: 20px;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #00A887;
    font-weight: bold;
}

.package-cta {
    text-align: center;
}

.package-cta .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Comparison Table */
.comparison-section {
    margin-top: 60px;
}

.comparison-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.comparison-table th {
    background: #00A887;
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #333;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e9ecef;
}

.comparison-table td:first-child {
    font-weight: 600;
    text-align: right;
    background: #f8f9fa;
}

/* Packages Responsive */
@media (max-width: 768px) {
    .packages-hero .hero-title {
        font-size: 2rem;
    }
    
    .packages-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        gap: 10px;
    }
    
    .hero-badges .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-price .price {
        font-size: 2rem;
    }
    
    .comparison-title {
        font-size: 2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .packages-hero {
        padding: 60px 0;
    }
    
    .packages-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .packages-section {
        padding: 40px 0;
    }
    
    .package-card {
        padding: 15px;
    }
    
    .package-price .price {
        font-size: 1.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}

/* إصلاحات خاصة */
.main-content {
    padding-top: 0; /* إزالة المسافة الإضافية */
    min-height: 100vh;
}

/* إصلاح المسافة للهيرو */
.hero {
    margin-top: 0;
    padding-top: 100px; /* مساحة للهيدر الثابت */
}

.packages-hero {
    margin-top: 0;
    padding-top: 100px; /* مساحة للهيدر الثابت */
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* تحسينات الأيقونات */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* تحسينات النصوص */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

/* تحسينات المسافات */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* زر الرجوع للأعلى - واحد فقط */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(4, 168, 135, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 168, 135, 0.4);
}

.back-to-top:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ===== هيدر مبسط ومنظم ===== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 168, 135, 0.1);
    box-shadow: 0 2px 10px rgba(0, 168, 135, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 168, 135, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--brand);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-subtitle {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

/* القائمة الرئيسية */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brand);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 135, 0.3);
}

.nav-link i {
    font-size: 1.1em;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* أزرار CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* القائمة المتنقلة */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* تحسينات الاستجابة */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .btn-outline {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0.4rem 0;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .btn-outline {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
