/* Hero Slider Styles */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .slider {
    height: auto;
    min-height: 500px;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column-reverse;
    padding: 1rem;
    text-align: center;
  }

  /* Mobile-specific slide styling */
  .mobile-slide {
    position: relative;
    height: auto;
    opacity: 1;
  }

  .mobile-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-slide .slide-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .mobile-slide .slide-image img {
    max-height: 250px;
    width: auto;
    margin: 0 auto;
  }

  .mobile-slide .slide-text {
    width: 100%;
    padding: 0 1.5rem;
    text-align: center;
  }

  .mobile-slide .slide-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
  }

  .mobile-slide .slide-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
  }

  .mobile-slide .slide-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .mobile-slide .slide-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .mobile-slide .primary-button,
  .mobile-slide .secondary-button {
    width: 100%;
    margin: 0;
    border-radius: 9999px;
    padding: 0.875rem 1rem;
  }
}

.slide-text {
  flex: 1;
  padding: 2rem;
  max-width: 600px;
}

@media (max-width: 768px) {
  .slide-text {
    padding: 1rem;
  }
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 2rem;
  }
}

.slide-description {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slide-actions {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .slide-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .slide-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slide-image img {
  max-height: 500px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .slide-image img {
    max-height: 300px;
  }
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.slider-prev,
.slider-next {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--primary);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--primary);
}

/* Animation for slides */
.slide.active .slide-title {
  animation: fadeInDown 0.8s ease-out;
}

.slide.active .slide-description {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.slide.active .slide-actions {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.slide.active .slide-image img {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
  .hero-slider-section {
    margin-top: 3.5rem;
  }

  .slider {
    height: auto;
    min-height: 400px;
  }

  .slide-content {
    padding: 0.5rem;
  }

  .slide-text {
    padding: 0.5rem;
  }

  .slide-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .slide-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .slide-image img {
    max-height: 200px;
  }

  .slider-nav {
    bottom: 10px;
  }

  .slider-prev,
  .slider-next {
    width: 30px;
    height: 30px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  /* Mobile slider navigation styling */
  .slider-nav {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  /* Hide prev/next buttons on mobile */
  .slider-prev,
  .slider-next {
    display: none;
  }
}

@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 fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile-specific animation override */
@media (max-width: 768px) {
  .slide.active .slide-title,
  .slide.active .slide-description,
  .slide.active .slide-actions {
    animation: none;
  }
}
