/* Véglegesített slider.css */

.homesliderx-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}


@media (min-width: 1400px) {
  .homesliderx-container {
    max-width: 1320px; /* Igazodik az Elementor globális konténerhez */
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .homesliderx-container {
    max-width: 1140px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .homesliderx-container {
    max-width: 960px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .homesliderx-container {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .homesliderx-container {
    max-width: 100%;
  }
}

#homepage-slider {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.swiper-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 128, 0, 0.6);
  z-index: 1;
}

.slide-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide-title {
  font-size: 1.5rem;
  line-height:1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .slide-title {
    font-size: 1.5rem;
    line-height:1.5rem;
  }
}

.slide-description {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .slide-description {
    font-size: 1.5rem;
  }
}

.slide-button {
  background-color: #ffffff;
  color: #15803d;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1rem;
  width: fit-content;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.slide-button:hover {
  background-color: #f3f4f6;
}

.swiper-button-prev,
.swiper-button-next {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: white;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

.swiper-pagination {
  bottom: 1rem !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

@media (min-width: 1024px) {
  #homepage-slider {
    height: 400px;
  }
}

@media (max-width: 767px) {
  #homepage-slider {
    height: 250px;
  }

  .slide-title {
    font-size: 1.5rem !Important;
    line-height:1.5rem !Important;
  }

  .slide-description {
    font-size: 1rem !Important;
  }
}
.homesliderx-wrapper {
  width: 100%;
  background-color: #f5f5f5; /* vagy transparent, ha nem kell háttér */
}

.homesliderx-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0; /* nincs padding */
}

#homepage-slider {
  width: 100%;
  border-radius: 0; /* NE legyen lekerekítés, ha nem akarod, hogy befelé húzza */
  overflow: hidden;
}
