/* CSS الرئيسي لموقع الأكاديمية الرقمية التعليمية */

/* الأساسيات */
:root {
  --primary-color: #4e6bff;
  --primary-dark: #3a56d4;
  --secondary-color: #ff7d4e;
  --dark-color: #2d3748;
  --darker-color: #1a202c;
  --light-color: #f7fafc;
  --gray-color: #e2e8f0;
  --dark-gray: #718096;
  --success-color: #48bb78;
  --danger-color: #f56565;
  --warning-color: #ed8936;
  --info-color: #4299e1;
  
  --font-primary: 'Tajawal', sans-serif;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

[dir="rtl"] {
  direction: rtl;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

body.dark-theme {
  background-color: var(--darker-color);
  color: var(--gray-color);
}

.container {
  width: 100%;
  max-width: 2800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* الروابط والأزرار */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* أنماط متقدمة للأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  line-height: 1.5;
}

/* تأثير التحويم لجميع الأزرار */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* تأثير النقر لجميع الأزرار */
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* زر الأساسي (Primary) */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.btn-primary:hover {
  background-image: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  box-shadow: 0 5px 15px rgba(78, 107, 255, 0.4);
}

/* زر الإطار (Outline) */
.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(78, 107, 255, 0.3);
}

/* أحجام الأزرار */
.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

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

/* تأثير موجة عند النقر */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* أزرار خاصة */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon i {
  font-size: 1.2em;
}

/* زر محمل (Loading) */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .btn {
    padding: 0.65rem 1.75rem;
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: 0.85rem 2.25rem;
  }
}
/* الترويسة */
/* أنماط شريط التنقل العلوي */
.sticky-nav {
  position: sticky;
  top: 0;

  background-color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .sticky-nav {
  background-color: #1a202c;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* أنماط الشعار */
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark-color);
  transition: transform 0.3s ease;
}

.dark-theme .logo {
  color: white;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 40px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(-5deg);
}

/* أنماط قائمة التنقل */
.nav-menu {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.4s ease;
  background-color: rgba(78, 107, 255, 0.1);
}

.nav-menu > li {
  position: relative;
  margin: 0 0.3rem;
}

.nav-menu > li > a {
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.dark-theme .nav-menu > li > a {
  color: rgba(255, 255, 255, 0.9);
}

.nav-menu > li > a:hover {
  background-color: rgba(78, 107, 255, 0.1);
  color: var(--primary-color);
}

.nav-menu > li > a.active {
  color: var(--primary-color);
  background-color: rgba(78, 107, 255, 0.1);
}

.nav-menu > li > a i:first-child {
  margin-left: 8px;
  font-size: 1.1em;
}

/* أنماط القوائم المنسدلة */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .dropdown-menu {
  background-color: #2d3748;
  border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  color: var(--dark-color);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dark-theme .dropdown-menu a {
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu a:hover {
  background-color: rgba(78, 107, 255, 0.1);
  color: var(--primary-color);
  padding-right: 1.8rem;
}

.dropdown-menu i {
  margin-left: 10px;
  font-size: 1em;
  width: 20px;
  text-align: center;
}

/* أنماط أزرار التنقل */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.nav-actions .btn i {
  margin-left: 6px;
}

/* زر تبديل الوضع الليلي */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--dark-color);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme #theme-toggle {
  color: white;
}

#theme-toggle:hover {
  background-color: rgba(78, 107, 255, 0.1);
  color: var(--primary-color);
  transform: rotate(15deg);
}

/* قائمة الهاتف المتحركة */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.dark-theme #mobile-menu-toggle {
  color: white;
}

#mobile-menu-toggle .hidden {
  display: none;
}

#mobile-menu-toggle.active .uil-bars {
  display: none;
}

#mobile-menu-toggle.active .uil-times {
  display: block;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 1200px) {
  .nav-menu > li > a {
    padding: 0.8rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
  }
  
  .dark-theme .nav-menu {
    background-color: #1a202c;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu > li {
    margin: 0.3rem 0;
  }
  
  .nav-menu > li > a {
    padding: 0.8rem 1rem;
    border-radius: 6px;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(0, 0, 0, 0.03);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: none;
  }
  
  .dark-theme .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 0.6rem 1rem;
  }
  
  #mobile-menu-toggle {
    display: block;
  }
  
  .nav-actions {
    margin-right: auto;
    margin-left: 1rem;
  }
}

@media (max-width: 576px) {
  .logo span {
    display: none;
  }
  
  .nav-actions .btn span {
    display: none;
  }
  
  .nav-actions .btn i {
    margin-left: 0;
    font-size: 1.2rem;
  }
  
  .nav-container {
    padding: 0.8rem 0.5rem;
  }
}
/* التكيف مع الشاشات الصغيرة */





/* الأقسام العامة */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

.dark-theme .section-description {
  color: var(--gray-color);
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

.bg-light {
  background-color: var(--gray-color);
}

.dark-theme .bg-light {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-dark {
  background-color: var(--dark-color);
  color: white;
}

.dark-theme .bg-dark {
  background-color: #111;
}

/* بطاقات المميزات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.dark-theme .feature-card {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: rgba(78, 107, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* الدورات التعليمية */
.courses-tabs {
  margin-top: 2rem;
}

.tabs-header {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 2rem;
  flex-wrap: wrap;
}

.tabs-header li {
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  border-radius: 30px;
  margin: 0 0.5rem 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.tabs-header li.active {
  background-color: var(--primary-color);
  color: white;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.dark-theme .course-card {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
}

.course-details {
  padding: 1.5rem;
}

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.instructor {
  display: flex;
  align-items: center;
}

.instructor img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 0.5rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  color: var(--dark-gray);
  font-size: 0.875rem;
}

.dark-theme .course-meta {
  color: var(--gray-color);
}

.course-meta i {
  margin-left: 0.25rem;
}

.course-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.course-description {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.dark-theme .course-description {
  color: var(--gray-color);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

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

.course-price del {
  color: var(--dark-gray);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.dark-theme .course-price del {
  color: var(--gray-color);
}

.course-price strong {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.no-courses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--dark-gray);
}

.dark-theme .no-courses {
  color: var(--gray-color);
}

/* بطاقات الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.dark-theme .service-card {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: rgba(78, 107, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: right;
}

.service-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.service-features i {
  margin-right: 0.5rem;
  color: var(--success-color);
}

/* كيفية العمل */
.steps-container {
  position: relative;
  padding: 3rem 0;
}

.step-line {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  height: 100%;
  background-color: var(--gray-color);
  z-index: 1;
}

.dark-theme .step-line {
  background-color: rgba(255, 255, 255, 0.1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.step-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.dark-theme .step-card {
  background-color: rgba(255, 255, 255, 0.05);
}

.step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.step-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 1rem;
}

.cta-box {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--box-shadow);
}

.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* الإحصائيات */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* المدربين */
.instructors-slider {
  margin-top: 2rem;
  padding-bottom: 3rem;
}



.instructor-image {
  position: relative;
  height: 250px;
}

.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-links {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
}

.instructor-card:hover .social-links {
  opacity: 1;
}

.social-links a {
  width: 35px;
  height: 35px;
  margin: 0 0.25rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

.instructor-info {
  padding: 1.5rem;
  text-align: center;
}

.instructor-info h3 {
  margin-bottom: 0.25rem;
}

.instructor-info span {
  display: block;
  color: var(--dark-gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.dark-theme .instructor-info span {
  color: var(--gray-color);
}

.instructor-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.dark-theme .instructor-meta {
  color: var(--gray-color);
}

.instructor-meta i {
  margin-left: 0.25rem;
}

/* آراء العملاء */
.testimonials-slider {
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.dark-theme .testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
}

.testimonial-rating {
  color: var(--warning-color);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-size: 2rem;
  color: var(--gray-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-text:before {
  top: -15px;
  right: -5px;
}

.testimonial-text:after {
  bottom: -25px;
  left: -5px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 1rem;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.dark-theme .author-info span {
  color: var(--gray-color);
}

/* المدونة */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.dark-theme .blog-card {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.blog-image {
  position: relative;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.dark-theme .blog-meta {
  color: var(--gray-color);
}

.blog-meta i {
  margin-left: 0.25rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.dark-theme .blog-excerpt {
  color: var(--gray-color);
}

/* النشرة البريدية */
.newsletter-section {
  padding: 4rem 0;
}

.newsletter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.newsletter-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  opacity: 0.8;
}

.newsletter-form {
  flex: 1;
  max-width: 500px;
}

.form-group {
  display: flex;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
}

.dark-theme .form-group {
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--dark-color);
}

.dark-theme .newsletter-form input {
  color: white;
}

.newsletter-form input::placeholder {
  color: var(--dark-gray);
}

.dark-theme .newsletter-form input::placeholder {
  color: var(--gray-color);
}

.form-check {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.form-check input {
  margin-left: 0.5rem;
}

.form-check label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* الفوتر */
.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 0;
}

.dark-theme .main-footer {
  background-color: #111;
}

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

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about-text {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

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

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

.footer-links a {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-links i {
  margin-left: 0.5rem;
}

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

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info i {
  margin-left: 0.75rem;
  margin-top: 0.25rem;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* الأزرار العائمة */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--box-shadow-lg);
  transition: var(--transition);
}

.whatsapp {
  background-color: #25D366;
}

.messenger {
  background-color: #006AFF;
}

.scroll-top {
  background-color: var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-button:hover {
  transform: translateY(-5px);
}

/* القوائم المنسدلة */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dark-theme .dropdown-menu {
  background-color: var(--darker-color);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.5rem 1.5rem;
  display: block;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: rgba(78, 107, 255, 0.1);
  color: var(--primary-color);
}

/* القائمة المتنقلة */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 5rem 2rem;
    transition: var(--transition);
    z-index: 999;
  }
  
  .dark-theme .nav-menu {
    background-color: var(--darker-color);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
  }
  

  #mobile-menu-toggle {
    display: block; /* يظهر فقط على الشاشات الصغيرة */
  }
  
  #mobile-menu-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-color);
  }
  
  /* تأثير عند النقر */
  #mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  
  #mobile-menu-toggle.active i:before {
    content: '\f00d';
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text, .hero-image {
    width: 100%;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .step-line {
    display: none;
  }
  
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .courses-grid, .services-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-buttons {
    flex-direction: row;
    bottom: 1rem;
    left: 1rem;
  }
  
  .floating-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}