/* 
 * Hero Section Slider Styles
 * Using Swiper.js for the implementation
 */

/* Slider container */
.hero-slider {
  width: 100%;
  height: 90vh; /* Approximately 90% of viewport height */
  position: relative;
  overflow: hidden;
}

/* Individual slides */
.swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide background image */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Dark overlay for better text readability */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 19, 52, 0.31); /* Using primary color with opacity */
  z-index: -1;
}

/* Slide content container */
.slide-content {
  width: 100%;
  max-width: 1140px;
  padding: 0 15px;
  text-align: center;
  color: white;
  z-index: 1;
}

/* Slide heading */
.slide-heading {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 4rem;
  margin-bottom: 20px;
  color: white;
  animation: fadeInDown 1s ease;
}

/* Slide subheading */
.slide-subheading {
  font-family: "Tajawal", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

/* Slide CTA buttons */
.slide-cta {
  animation: fadeIn 1s ease 0.6s;
  animation-fill-mode: both;
}

/* Navigation arrows - Fixed positioning for RTL layout */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Right arrow positioning */
.swiper-button-next {
  left: 20px;
  right: auto;
}

/* Left arrow positioning */
.swiper-button-prev {
  right: 20px;
  left: auto;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

/* Pagination bullets */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/* Animation keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 1199.98px) {
  .slide-heading {
    font-size: 3.5rem;
  }
  
  .slide-subheading {
    font-size: 1.6rem;
  }
}

@media (max-width: 991.98px) {
  .hero-slider {
    height: 80vh;
  }
  
  .slide-heading {
    font-size: 3rem;
  }
  
  .slide-subheading {
    font-size: 1.5rem;
  }
  
  /* Adjust arrow positions for smaller screens */
  .swiper-button-next {
    left: 10px;
  }
  
  .swiper-button-prev {
    right: 10px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider {
    height: 70vh;
  }
  
  .slide-heading {
    font-size: 2.5rem;
  }
  
  .slide-subheading {
    font-size: 1.2rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    height: 60vh;
  }
  
  .slide-heading {
    font-size: 2rem;
  }
  
  .slide-subheading {
    font-size: 1rem;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
