/* 
 * ملف CSS موحد لقسم المميزات
 * يجمع هذا الملف كل التعريفات المتعلقة بقسم المميزات من الملفات المختلفة
 * تم إزالة التكرار والتضارب في التعريفات
 */

/* ===== تعريفات أساسية لقسم المميزات ===== */
.features-section {
  /* خلفية القسم */
  background-image: url('images/section-bg3.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* تفعيل خاصية parallax */
  
  /* تنسيق القسم */
  position: relative;
  padding: 4rem 0;
  margin-top: 0;
  image-rendering: high-quality;
  z-index: 1;
  min-height: 600px;
}

/* تخصيص خلفية قسم المميزات للجوال - تثبيت الخلفية فقط */
@media (max-width: 768px) {
  .features-section {
    background-attachment: fixed !important; /* تأكيد خاصية fixed */
  }
}

/* طبقة التعتيم فوق الخلفية - تم إزالة التعتيم */
.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* إزالة التعتيم تماماً */
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}

/* تنسيق عنوان القسم */
.features-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2rem;
}

.features-section .section-title {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.features-subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* تنسيق بطاقة العنوان */
.features-header-card {
  background: rgba(54, 55, 54, 0.5);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(191, 133, 38, 0.4);
  position: relative;
  z-index: 2;
}

.features-header-card h3 {
  color: white;
  margin-bottom: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* تنسيق شبكة البطاقات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* تنسيق بطاقات المميزات */
.feature-card {
  background: rgba(54, 55, 54, 0.5);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(191, 133, 38, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* تنسيق أيقونة المميزة */
.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

/* تنسيق محتوى المميزة */
.feature-content h4 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.feature-content p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* تنسيق زر التسجيل */
.register-button-container {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

/* ===== تعديلات خاصة بالجوال ===== */
@media (max-width: 768px) {
  /* تعديل خلفية القسم للجوال */
  .features-section {
    background-image: url('images/section-bg2-mobile.jpg');
    background-attachment: fixed;
    min-height: 600px;
    padding: 2.5rem 0;
  }
  
  /* تعديل المسافات للجوال */
  .features-section .features-subtitle {
    margin-bottom: 1rem;
  }
  
  .features-section .section-title {
    margin-bottom: 0.75rem;
  }
  
  .features-header-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  .features-grid {
    margin-top: 1rem;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  /* تعزيز وضوح النصوص على الجوال */
  .feature-content h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  }
  
  .feature-content p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }
}

/* تعديلات إضافية للشاشات الصغيرة جدًا */
@media (max-width: 480px) {
  .features-section {
    padding: 2rem 0;
  }
  
  .features-section .section-title {
    margin-bottom: 0.5rem;
  }
  
  .features-subtitle {
    margin-bottom: 0.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
}
