/* Emergency Hero Slider Fix */

/* Override any conflicting styles */
.modern-hero {
  position: relative !important;
  width: 100% !important;
  background: #000 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.modern-hero__slider {
  position: relative !important;
  width: 100% !important;
  height: 700px !important;
}

.hero-carousel {
  width: 100% !important;
  height: 700px !important;
}

.hero-slide {
  position: relative !important;
  width: 100% !important;
  height: 700px !important;
  display: block !important;
}

.hero-slide__image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 700px !important;
  z-index: 0 !important;
}

.hero-slide__image img {
  width: 100% !important;
  height: 700px !important;
  object-fit: cover !important;
  display: block !important;
}

.hero-slide__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1 !important;
}

.hero-slide__content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: 90% !important;
  max-width: 900px !important;
  text-align: center !important;
}

.hero-slide__content-inner {
  color: #fff !important;
}

.hero-slide__subtitle {
  display: block !important;
  color: #ffd700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.hero-slide__title {
  color: #fff !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.hero-slide__caption {
  color: #f0f0f0 !important;
  font-size: 1.15rem !important;
  margin-bottom: 2rem !important;
  line-height: 1.6 !important;
}

.hero-slide__cta {
  display: inline-block !important;
  padding: 1rem 2rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.hero-slide__cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5) !important;
}

/* Owl Carousel specific fixes */
.modern-hero .owl-carousel .owl-stage-outer {
  height: 700px !important;
  overflow: hidden !important;
}

.modern-hero .owl-carousel .owl-stage {
  height: 700px !important;
}

.modern-hero .owl-carousel .owl-item {
  height: 700px !important;
}

.modern-hero .owl-dots {
  position: absolute !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  display: flex !important;
  gap: 0.5rem !important;
}

.modern-hero .owl-dots .owl-dot {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modern-hero .owl-dots .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  display: block !important;
  border-radius: 50% !important;
  margin: 0 !important;
  transition: all 0.3s ease !important;
}

.modern-hero .owl-dots .owl-dot.active span,
.modern-hero .owl-dots .owl-dot:hover span {
  background: #fff !important;
  width: 30px !important;
  border-radius: 10px !important;
}

.modern-hero .owl-dots button {
  opacity: 1 !important;
}

.modern-hero .owl-dots button.active::after {
  display: none !important;
}

/* Navigation buttons */
.hero-navigation {
  position: absolute !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 10 !important;
  display: flex !important;
  gap: 1rem !important;
}

.hero-nav-btn {
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

/* Industry cards */
.hero-industries {
  background: #f5f5f5 !important;
  padding: 3rem 5% !important;
}

.hero-industries__grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.hero-industry-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem !important;
  background: #fff !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

.hero-industry-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  border-color: #667eea !important;
}

/* Active industry card */
.hero-industry-card.active-industry {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #667eea !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
  transform: translateY(-8px) scale(1.05) !important;
}

.hero-industry-card.active-industry .hero-industry-card__name {
  color: #fff !important;
  font-weight: 700 !important;
}

.hero-industry-card.active-industry .hero-industry-card__icon {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

.hero-industry-card__icon {
  width: 50px !important;
  height: 50px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.hero-industry-card__icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-industry-card__name {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
}

/* Responsive */
@media (max-width: 992px) {
  .modern-hero__slider,
  .hero-carousel,
  .hero-slide,
  .hero-slide__image,
  .hero-slide__image img,
  .modern-hero .owl-carousel .owl-stage-outer,
  .modern-hero .owl-carousel .owl-stage,
  .modern-hero .owl-carousel .owl-item {
    height: 600px !important;
  }
  
  .hero-slide__title {
    font-size: 2.5rem !important;
  }
  
  .hero-industries__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .modern-hero__slider,
  .hero-carousel,
  .hero-slide,
  .hero-slide__image,
  .hero-slide__image img,
  .modern-hero .owl-carousel .owl-stage-outer,
  .modern-hero .owl-carousel .owl-stage,
  .modern-hero .owl-carousel .owl-item {
    height: 500px !important;
  }
  
  .hero-slide__title {
    font-size: 2rem !important;
  }
  
  .hero-slide__caption {
    font-size: 1rem !important;
  }
  
  .hero-industries__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Dark Mode Support */
.dark-mode .hero-industries {
  background: #1a1f27 !important;
}

.dark-mode .hero-industry-card {
  background: #2a2f37 !important;
  border-color: #3a3f47 !important;
}

.dark-mode .hero-industry-card:hover {
  border-color: #667eea !important;
}

.dark-mode .hero-industry-card__name {
  color: #e0e0e0 !important;
}

.dark-mode .hero-industry-card.active-industry .hero-industry-card__name {
  color: #fff !important;
}
