/* Mobile Hero Section Layout - تنسيق قسم الهيرو للهاتف */
/* تحسين شامل لتصميم قسم الهيرو على جميع أحجام الهواتف */

@media (max-width: 768px) {
  /* Hero section base adjustments */
  .hero,
  .hero.section {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Hero container */
  .hero .container {
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Hero layout grid - single column on mobile */
  .hero .hero-layout,
  .hero .container .hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Hero text content */
  .hero .hero-text,
  .hero .hero-copy,
  .hero .hero-layout .hero-text {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Hero title - main heading */
  .hero h1,
  .hero .hero-title,
  .hero-text h1,
  .hero-layout .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Hero subtitle/description */
  .hero h2,
  .hero .hero-subtitle,
  .hero p,
  .hero .hero-description,
  .hero-text p,
  .hero-layout .hero p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  
  /* Hero eyebrow - top text */
  .hero .hero-eyebrow,
  .hero-text .hero-eyebrow,
  .hero-layout .hero-eyebrow {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    display: inline-block !important;
    backdrop-filter: blur(10px) !important;
  }
  
  /* Hero keywords/rotator */
  .hero .hero-keywords,
  .hero .hero-rotator,
  .hero-text .hero-rotator,
  .hero-layout .hero-rotator {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0.5rem 0 1rem 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    text-align: center !important;
    min-height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Hero meta information */
  .hero .hero-meta,
  .hero-text .hero-meta,
  .hero-layout .hero-meta {
    font-size: 0.85rem !important;
    margin: 0.5rem 0 1rem 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
  }
  
  /* Hero badge */
  .hero .hero-badge,
  .hero-text .hero-badge,
  .hero-layout .hero-badge {
    display: inline-block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    margin: 0.5rem 0 1rem 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  /* Hero actions - buttons */
  .hero .hero-actions,
  .hero-text .hero-actions,
  .hero-layout .hero-actions {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 2rem 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Hero buttons */
  .hero .hero-actions .btn,
  .hero-text .hero-actions .btn,
  .hero-layout .hero-actions .btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
  }
  
  /* Primary button */
  .hero .hero-actions .btn.primary,
  .hero-text .hero-actions .btn.primary,
  .hero-layout .hero-actions .btn.primary {
    background: linear-gradient(135deg, #0ff, #42a8ff) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3) !important;
  }
  
  .hero .hero-actions .btn.primary:hover,
  .hero-text .hero-actions .btn.primary:hover,
  .hero-layout .hero-actions .btn.primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.4) !important;
  }
  
  /* Secondary button */
  .hero .hero-actions .btn.secondary,
  .hero-text .hero-actions .btn.secondary,
  .hero-layout .hero-actions .btn.secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1) !important;
  }
  
  .hero .hero-actions .btn.secondary:hover,
  .hero-text .hero-actions .btn.secondary:hover,
  .hero-layout .hero-actions .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2) !important;
  }
  
  /* Hero media/visual - hide on mobile or make it subtle */
  .hero .hero-media,
  .hero .hero-visual,
  .hero-layout .hero-media {
    order: 1 !important;
    width: 100% !important;
    max-width: 200px !important;
    height: 200px !important;
    margin: 0 auto 2rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
  }
  
  .hero .hero-visual img,
  .hero-layout .hero-visual img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Hero card - hide on mobile */
  .hero .hero-card {
    display: none !important;
  }
  
  /* Video background adjustments */
  .hero-video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
  }
  
  .hero-video-background video {
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* RTL support for Arabic */
  [dir="rtl"] .hero,
  [dir="rtl"] .hero.section {
    direction: rtl !important;
  }
  
  [dir="rtl"] .hero h1,
  [dir="rtl"] .hero .hero-title,
  [dir="rtl"] .hero-text h1 {
    text-align: center !important;
    direction: rtl !important;
  }
  
  [dir="rtl"] .hero p,
  [dir="rtl"] .hero .hero-description,
  [dir="rtl"] .hero-text p {
    text-align: center !important;
    direction: rtl !important;
  }
  
  [dir="rtl"] .hero .hero-actions {
    direction: rtl !important;
  }
  
  /* LTR support for English */
  [dir="ltr"] .hero,
  [dir="ltr"] .hero.section {
    direction: ltr !important;
  }
  
  [dir="ltr"] .hero h1,
  [dir="ltr"] .hero .hero-title,
  [dir="ltr"] .hero-text h1 {
    text-align: center !important;
    direction: ltr !important;
  }
  
  [dir="ltr"] .hero p,
  [dir="ltr"] .hero .hero-description,
  [dir="ltr"] .hero-text p {
    text-align: center !important;
    direction: ltr !important;
  }
  
  [dir="ltr"] .hero .hero-actions {
    direction: ltr !important;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hero,
  .hero.section {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  
  .hero h1,
  .hero .hero-title,
  .hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .hero p,
  .hero .hero-description,
  .hero-text p {
    font-size: 1rem !important;
  }
  
  .hero .hero-eyebrow {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .hero .hero-actions .btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 360px) {
  .hero h1,
  .hero .hero-title,
  .hero-text h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  
  .hero p,
  .hero .hero-description,
  .hero-text p {
    font-size: 0.95rem !important;
  }
  
  .hero .hero-actions {
    max-width: 250px !important;
  }
  
  .hero .hero-actions .btn {
    max-width: 230px !important;
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem !important;
  }
}

/* Desktop - ensure no mobile styles affect desktop */
@media (min-width: 769px) {
  .hero .hero-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(36px, 7vw, 72px) !important;
    align-items: center !important;
  }
  
  .hero .hero-text {
    order: 1 !important;
    text-align: left !important;
  }
  
  .hero .hero-media {
    order: 2 !important;
  }
}
