.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroZoom 20s ease-in-out infinite alternate; }

@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 34, 48, 0.55) 0%, rgba(21, 34, 48, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding-top: var(--header-height);
}

.hero-pill {
  display: inline-block;
  background: rgba(217, 164, 65, 0.95);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s both;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.7s 0.25s both;
}

.hero-highlight {
  display: inline-block;
  background: linear-gradient(120deg, var(--color-secondary), #F0C76A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.7s 0.4s both;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; animation: fadeUp 0.7s 0.55s both; }

/* بطاقات إحصائية عائمة */
/* بطاقات إحصائية عائمة - أسفل اليمين */
/* بطاقات إحصائية تحت الأزرار */
.hero-stats {
  margin-top: 2.5rem;
  display: inline-flex; /* لكي لا تأخذ العرض الكامل */
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeUp 0.8s 0.7s both;
}

.hero-stat { text-align: center; padding: 0 1rem; color: #fff; }
.hero-stat:not(:last-child) { border-inline-end: 1px solid rgba(255, 255, 255, 0.2); }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--color-secondary); }
.hero-stat span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-end: 2rem;
  z-index: 3;
  width: 34px; height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: scrollBounce 1.6s ease-in-out infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(14px); opacity: 0.4; } }

/* Tablet */
@media (max-width: 900px) {
  .hero-stats { display: none; }
}

/* =========================================
   Mobile Fix (إجبار التصميم على الظهور بشكل صحيح)
   ========================================= */
/* =========================================
   Mobile Fix (لضمان ظهور الصورة كاملة تحت الهيدر)
   ========================================= */
@media (max-width: 640px) {
  .hero {
    margin-top: var(--header-height) !important; /* يدفع القسم بالكامل لأسفل الهيدر */
    padding-top: 0 !important; /* إزالة أي حواف داخلية قديمة */
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-main) !important;
    overflow: visible !important;
  }
  
  /* الصورة */
  .hero-media {
    position: relative !important;
    width: 100% !important;
    height: 55svh !important; /* ارتفاع مناسب للصورة في الهاتف */
    min-height: 300px !important;
    inset: auto !important;
    order: -1 !important;
    margin: 0 !important;
    border-radius: 0 0 30px 30px !important; /* إضافة استدارة سفلية للصورة لتبدو أنيقة */
    overflow: hidden !important;
  }
  
  .hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    animation: none !important; /* إيقاف حركة التكبير في الهاتف */
  }
  
  .hero-overlay {
    display: none !important; /* إخفاء الطبقة المعتمة في الهاتف */
  }
  
  /* النصوص والأزرار */
  .hero-content {
    color: var(--text-main) !important;
    padding: 2rem 1.25rem !important;
    max-width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 3 !important;
    text-align: center !important;
    box-shadow: none !important;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
    color: var(--text-main) !important;
    text-shadow: none !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-highlight {
    background: none !important;
    -webkit-text-fill-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
  }
  
  .hero-desc {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-pill {
    background: var(--color-secondary) !important;
    color: var(--bg-dark) !important;
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }
  
  .hero-actions .btn {
    width: 100% !important;
    padding: 0.9rem !important;
    justify-content: center !important;
  }
  
  .hero-stats, .hero-scroll {
    display: none !important;
  }
}