/* Hero Section Mobile Overflow Fix */

/* Mobile hero section fixes */
@media (max-width: 768px) {
  .hero-section {
    overflow: hidden !important;
    min-height: auto !important;
  }
  
  .hero-section .container {
    padding: 0 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .hero-section .row {
    margin: 0 !important;
    width: 100% !important;
  }
  
  .hero-section [class*="col-"] {
    padding: 0 5px !important;
  }
  
  /* Hero title container fixes */
  .hero-title-container {
    height: auto !important;
    min-height: 120px !important;
    padding: 0 10px !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
  }
  
  /* Hero title fixes */
  .modern-title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
  }
  
  /* Hero subtitle fixes */
  .hero-section .lead {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 5px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  /* Hero tagline fixes */
  .hero-tagline p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    padding: 0 5px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Hide tagline and stats on mobile to save space */
  .hero-tagline,
  .hero-stats-mini {
    display: none !important;
  }
  
  /* Hero buttons fixes */
  .hero-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Video container fixes */
  .video-container {
    margin: 0 5px !important;
    max-width: calc(100% - 10px) !important;
    height: auto !important;
    padding-bottom: 56.25% !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero-section {
    padding: 70px 0 30px 0 !important;
  }
  
  .hero-section .container {
    padding: 0 8px !important;
  }
  
  .modern-title {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-section .lead {
    font-size: 0.85rem !important;
    padding: 0 3px !important;
  }
  
  .hero-tagline p {
    font-size: 0.75rem !important;
    padding: 0 3px !important;
  }
  
  .hero-stats-mini .d-flex {
    font-size: 0.8rem !important;
  }
  
  .hero-buttons .btn {
    max-width: 260px !important;
    font-size: 0.8rem !important;
    padding: 10px 16px !important;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-section {
    padding: 60px 0 25px 0 !important;
    min-height: auto !important;
  }
  
  .hero-section .container {
    padding: 0 5px !important;
  }
  
  .hero-title-container {
    height: auto !important;
    min-height: 100px !important;
    padding: 0 5px !important;
    margin-bottom: 15px !important;
  }
  
  .modern-title {
    font-size: 1.2rem !important;
    line-height: 1.1 !important;
    margin: 0 0 8px 0 !important;
  }
  
  .hero-section .lead {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    padding: 0 2px !important;
  }
  
  .hero-tagline p {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    padding: 0 2px !important;
  }
  
  .hero-stats-mini {
    padding: 8px !important;
    margin-bottom: 15px !important;
  }
  
  .hero-stats-mini .d-flex {
    font-size: 0.75rem !important;
    gap: 10px !important;
  }
  
  .hero-buttons {
    gap: 10px !important;
    margin-bottom: 15px !important;
  }
  
  .hero-buttons .btn {
    max-width: 240px !important;
    font-size: 0.75rem !important;
    padding: 8px 14px !important;
  }
  
  .video-container {
    margin: 0 2px !important;
    max-width: calc(100% - 4px) !important;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden !important;
}

/* Ensure all text wraps properly */
* {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}