:root {
    /* ===== نظام الألوان المحسّن والعصري ===== */
    
    /* الألوان الأساسية - أزرق ملكي حديث */
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    
    /* الألوان الثانوية - أخضر مائي نابض */
    --secondary-color: #14b8a6;
    --secondary-light: #5eead4;
    --secondary-dark: #0f766e;
    --secondary-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    
    /* ألوان التمييز - بنفسجي عصري */
    --accent-color: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    
    /* ألوان الخلفية - متدرجة وناعمة */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    
    /* ألوان النصوص - واضحة ومقروءة */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-light: #cbd5e1;
    
    /* الظلال - متعددة المستويات */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    
    /* ظلال ملونة للتأثيرات */
    --shadow-primary: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
    --shadow-secondary: 0 10px 25px -5px rgba(20, 184, 166, 0.3);
    --shadow-accent: 0 10px 25px -5px rgba(139, 92, 246, 0.3);
    
    /* الحدود */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* الانتقالات */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* نصف القطر */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
  }
  
  body {
    font-family: 'Bahij TheSansArabic', 'Noto Sans Arabic', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* ===== الهيدر ===== */
  .header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    transition: var(--transition);
  }

  .header:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  
  .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .logo-section:hover {
    transform: translateY(-2px);
  }

  .logo-section .logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.2));
  }

  .logo-section:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
  }

  .logo-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .logo-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
  }
  
  /* ===== أزرار الرأس (محدثة - عصرية) ===== */
  .header-buttons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
  }
  
  .header-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }

  .header-buttons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .header-buttons a:hover::before {
    width: 300px;
    height: 300px;
  }

  .header-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .header-buttons a:active {
    transform: translateY(-1px) scale(0.98);
  }

  .header-buttons a i {
    transition: transform 0.3s ease;
    z-index: 1;
  }

  .header-buttons a:hover i {
    transform: rotate(10deg) scale(1.1);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .btn-secondary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .btn-secondary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .btn-dark {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .btn-dark:hover {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  /* ===== زر القائمة ☰ (محدث - عصري) ===== */
  .menu-toggle {
    display: none;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
  }

  .menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
  }

  .menu-toggle:hover::before {
    width: 150px;
    height: 150px;
  }

  .menu-toggle:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }

  .menu-toggle i {
    position: relative;
    z-index: 1;
  }
  
  /* ===== شريط التنقل العادي (كمبيوتر) ===== */
  .main-navbar {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
  }
  
  .navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
  }
  
  .nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
  }

  .nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s ease;
    transform: translateX(50%);
  }

  .nav-menu li a:hover::before {
    width: 100%;
  }
  
  .nav-menu li a:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav-menu li a:active {
    transform: translateY(0);
  }

  .nav-menu li a i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
  }

  .nav-menu li a:hover i {
    transform: scale(1.1);
  }
  
  /* ===== القائمة الجانبية للموبايل (محدثة) ===== */
  .mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-navbar.active {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }

  .mobile-navbar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .mobile-navbar.active .mobile-navbar-content {
    transform: translateX(0);
  }

  .mobile-navbar-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 1.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
  }

  .mobile-navbar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerPulse 3s ease-in-out infinite;
  }

  @keyframes headerPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
  }

  .mobile-navbar-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .mobile-navbar-header h3 i {
    animation: menuIconBounce 2s ease-in-out infinite;
  }

  @keyframes menuIconBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
  }

  .mobile-close-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-close-btn:active {
    transform: rotate(90deg) scale(0.95);
  }

  .mobile-navbar-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
  }

  .mobile-nav-links li {
    margin-bottom: 0.5rem;
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: right 0.6s;
  }

  .mobile-nav-links a:hover::before {
    right: 100%;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .mobile-nav-links a i {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .mobile-nav-links a:hover i {
    transform: scale(1.2) rotate(5deg);
  }

  /* أزرار الدخول في القائمة الجانبية (محدثة - عصرية) */
  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 3px solid var(--border-color);
    position: relative;
  }

  .mobile-auth-buttons::before {
    content: '🔐 تسجيل الدخول';
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    background: white;
    padding: 0 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }

  .mobile-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .mobile-btn:hover::before {
    width: 400px;
    height: 400px;
  }

  .mobile-btn:active {
    transform: scale(0.96);
  }

  .mobile-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
  }

  .mobile-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  }

  .mobile-btn-secondary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    color: white;
  }

  .mobile-btn-secondary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  }

  .mobile-btn-dark {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    color: white;
  }

  .mobile-btn-dark:hover {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.4);
  }

  .mobile-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .mobile-btn:hover i {
    transform: rotate(10deg) scale(1.15);
  }

  .mobile-btn-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    color: white;
  }

  .mobile-btn-accent:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  }
  
  /* ===== استجابة الموبايل ===== */
  @media (max-width: 968px) {
    .main-navbar {
      display: none !important;
    }

    .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .mobile-navbar {
      display: block;
    }

    .header-buttons {
      display: none;
    }

    .header-container {
      height: 70px;
      padding: 0 1rem;
    }

    .logo-section .logo {
      width: 45px;
      height: 45px;
    }

    .logo-text h1 {
      font-size: 0.95rem !important;
    }

    .logo-text p {
      font-size: 0.68rem !important;
    }
  }

  @media (max-width: 480px) {
    .mobile-navbar-content {
      width: 100%;
      max-width: 100%;
    }

    .header-container {
      gap: 1rem;
    }
  }
  

/* ===== ????? ??????? ???????? ===== */

/* ???? ??? ?????? */
.page-hero {
  position: relative;
  height: 320px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.25;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(37, 99, 235, 0.7));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
  animation: fadeInUp 0.6s ease;
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.page-hero-title i {
  font-size: 2.5rem;
  color: var(--secondary-light);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.page-hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.92;
  font-weight: 400;
  line-height: 1.6;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a:hover {
  color: var(--secondary-light);
  transform: translateX(-2px);
}

.breadcrumb i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ????? ?????? */
.page-content {
  padding: 4rem 0;
  background: var(--bg-gradient);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ?????? ??????? */
.content-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
}

.content-card:hover .card-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.card-icon i {
  font-size: 2.2rem;
  color: white;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.section-content {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-secondary);
}

.lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ?????? */
.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.card-gradient-primary .card-icon {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.card-gradient-secondary {
  background: var(--secondary-gradient);
  color: white;
}

.card-gradient-secondary .card-icon {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

/* ???? ??????? */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.goal-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 2px solid transparent;
}

.goal-item:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.goal-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.goal-item:hover .goal-icon {
  transform: scale(1.1) rotate(5deg);
}

.goal-icon i {
  font-size: 2rem;
  color: white;
}

.goal-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.goal-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* قائمة الأهداف المفصلة */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.goal-item-detailed {
  display: flex;
  gap: 1.3rem;
  padding: 1.8rem;
  background: linear-gradient(to left, #f8fafc, white);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border-right: 3px solid var(--primary-color);
  border: 2px solid transparent;
  margin-bottom: 1rem;
}

.goal-item-detailed:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(-3px);
  border-color: rgba(59, 130, 246, 0.2);
  border-right-color: var(--secondary-color);
}

.goal-number {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.goal-item-detailed:hover .goal-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.goal-content {
  flex: 1;
}

.goal-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goal-content h4 i {
  color: var(--primary-color);
  font-size: 1.15rem;
  transition: all 0.3s ease;
}

.goal-item-detailed:hover .goal-content h4 i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.goal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* شبكة التعاون */
.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.collab-item {
  text-align: center;
  padding: 1.8rem;
  background: white;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.collab-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.15);
}

.collab-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.collab-item:hover .collab-icon {
  transform: scale(1.1) rotate(-5deg);
}

.collab-icon i {
  font-size: 2rem;
  color: white;
}

.collab-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.collab-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ??? ?????????? */
.stats-section {
  padding: 3.5rem 0;
  margin: 2.5rem 0;
  background: linear-gradient(to bottom, #f8fafc, white);
  border-radius: var(--radius-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: white;
  padding: 2.5rem 1.8rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.stat-icon i {
  font-size: 2.2rem;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

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

/* ???? ?????? */
.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.team-member:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 120px;
  height: 120px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.team-member:hover .member-avatar {
  transform: scale(1.1);
}

.member-avatar i {
  font-size: 3rem;
  color: white;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ??? ?????? ????? */
.cta-section {
  background: var(--primary-gradient);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

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

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.cta-title i {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cta-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn i {
  transition: all 0.3s ease;
}

.btn:hover i {
  transform: scale(1.15) translateX(-2px);
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-accent {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}

/* ?????? */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  animation: fadeInUp 0.8s ease;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-title i {
  margin-left: 0.5rem;
  color: var(--secondary-light);
}

.footer-description {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: white;
  transform: translateY(-3px) rotate(5deg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-right: 0.5rem;
}

.footer-links i {
  font-size: 0.7rem;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary-light);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
}

.copyright i {
  margin-left: 0.3rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary-light);
}

.separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ?? ?????? ?????? */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top i {
  font-size: 1.3rem;
}

/* ??????????? */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ??????? ???????? */
@media (max-width: 768px) {
  .page-hero {
    height: 280px;
  }

  .page-hero-title {
    font-size: 1.8rem;
    gap: 0.5rem;
  }

  .page-hero-title i {
    font-size: 1.6rem;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .content-card {
    padding: 1.8rem 1.3rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon i {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-grid,
  .goals-grid,
  .team-grid,
  .collaboration-grid {
    grid-template-columns: 1fr;
  }

  .goal-item-detailed {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .goal-number {
    margin: 0 auto 0.8rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .goal-content h4 {
    justify-content: center;
    font-size: 1rem;
  }

  .goal-content h4 i {
    font-size: 1rem;
  }

  .goal-content p {
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 2.5rem 1.5rem;
  }

  .cta-title {
    font-size: 1.6rem;
    gap: 0.5rem;
  }

  .cta-title i {
    font-size: 1.5rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }

  .scroll-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

/* تنسيق الرابط النشط في القائمة */
.nav-menu a.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active::before {
  width: 100%;
}

.nav-menu a.active i {
  transform: scale(1.1);
}

/* ????? ????? ?????? */
.mobile-btn-accent {
  background: var(--accent-gradient);
  color: white;
}

.mobile-btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-accent);
}

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