/* 
  hero-responsive-fix.css
  تحسينات استجابة عنصر الهيرو للشاشات المختلفة
  تاريخ التحديث: 28 أغسطس 2025
*/

/* تحسينات عامة للهيرو والمحتوى الداخلي */
.hero-slider {
  overflow: visible !important;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-slides {
  width: 100%;
  position: relative;
  height: auto;
  min-height: 600px;
  overflow: visible;
}

.hero-slide {
  height: auto;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

.hero-slide.active {
  z-index: 5;
  position: relative;
}

/* تحسين محتوى الهيرو للشاشات المختلفة */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: 3rem;
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
}

/* ضمان أن الخلفية تغطي كامل المساحة */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* تحسين النصوص داخل الهيرو */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

/* تحسين أزرار الهيرو */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons .btn {
  margin-bottom: 0.5rem;
  white-space: normal;
}

/* تحسين الصورة في الهيرو */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.hero-card {
  max-width: 100%;
  width: 100%;
  height: auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* تحسينات للأجهزة اللوحية */
@media (max-width: 992px) {
  .hero-slides {
    min-height: 550px;
  }
  
  .hero-slide {
    min-height: 550px;
  }
  
  .hero-content {
    padding: 2rem;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  
  .hero-card {
    padding: 1.5rem;
  }
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
  .hero-slides {
    min-height: auto;
    height: auto;
  }
  
  .hero-slide {
    min-height: auto;
    height: auto;
    padding: 3rem 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
    margin: 0 auto;
  }
  
  .hero-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
  
  /* تحسين أزرار التنقل للهواتف */
  .hero-navigation {
    padding: 0 0.5rem;
  }
  
  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  /* تحسين مؤشرات الهيرو */
  .hero-indicators {
    bottom: 0.5rem;
  }
}

/* تحسينات إضافية للهواتف الصغيرة */
@media (max-width: 480px) {
  .hero-slide {
    padding: 2rem 0.5rem;
  }
  
  .hero-content {
    padding: 1rem 0.5rem;
  }
  
  .hero-card {
    max-width: 220px;
    padding: 1rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 0.8rem;
  }
  
  .hero-description {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .hero-indicators {
    bottom: 0.3rem;
    padding: 0.3rem 0.6rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* ضمان عرض الهيرو بشكل صحيح في جميع الأحجام */
.hero-slider, 
.hero-slides,
.hero-slide,
.hero-content {
  max-width: 100%;
  box-sizing: border-box;
}

/* تأكيد عرض الأشكال الخلفية بشكل صحيح */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ضمان عدم تأثر المحتوى عند تكبير الشاشة */
@media (min-width: 1200px) {
  .hero-slider {
    max-width: 1200px;
  }
  
  .hero-content {
    padding: 3rem 4rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-card {
    max-width: 400px;
  }
}
