/**
 * Hero Slider Widget Styles
 */

.hero-slider * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  width: 100%;
}

/* Elementor editor mode adjustments */
.elementor-editor-active .hero-slider {
  height: auto;
  min-height: 600px;
}

/* Background Slider */
.hero-slider .as-slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .as-slider-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1s ease-in-out;
}

.hero-slider .as-slider-background img.currentForward,
.hero-slider .as-slider-background img.currentBackward {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slider .as-slider-background img.prev {
  opacity: 1;
  transform: scale(1.1);
}

.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2) !important;
  z-index: 1;
}

.hero-slider .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 90%;
  width: 100%;
  padding: 5%;
  gap: 5%;
}

/* LEFT SECTION */
.hero-slider .hero-left {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.hero-slider .as-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  height: auto;
  max-height: 500px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  margin-left: -60px;
  padding: 30px 0;
}

.hero-slider .as-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  top: 0;
  z-index: 0;
}

.hero-slider.loaded .as-bar {
  opacity: 1;
}

.hero-slider .dot {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-slider .dot:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
}

.hero-slider .dot.active {
  background: rgba(255, 76, 60, 0.9) !important;
  border-color: rgba(231, 76, 60, 1) !important;
  transform: scale(1.1);
}

.hero-slider .dot-number {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease-in-out;
}

.hero-slider .dot.active .dot-number {
  color: #fff;
  font-weight: 700;
}

.hero-slider .text-container {
  margin-left: 80px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slider.loaded .text-container {
  opacity: 1;
}

.hero-slider .changing-widget {
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease-in-out;
  min-height: 100px;
}

.hero-slider .title-item,
.hero-slider .desc-item {
  position: relative;
  width: 100%;
  display: none;
}

.hero-slider .title-item.active,
.hero-slider .desc-item.active {
  display: block;
}

.hero-slider .title-item h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.hero-slider .desc-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-slider .button-widget {
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease-in-out;
  min-height: 50px;
}

.hero-slider .button-widget .btn {
  display: inline-block;
  background: #eee;
  color: #000;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.hero-slider .button-widget .btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* RIGHT SECTION */
.hero-slider .hero-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-in-out;
  overflow: hidden;
}

.hero-slider.loaded .hero-right {
  opacity: 1;
  transform: translateX(0);
}

.hero-slider .food-slider {
  width: 100%;
  max-width: 1400px;
  height: auto;
}

.hero-slider .food-slider .swiper-wrapper {
  display: flex;
  align-items: center;
  height: 410px;
  padding: 0 20px;
}

.hero-slider .swiper-slide {
  width: 280px;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  cursor: pointer;
}

.hero-slider .swiper-slide.swiper-slide-active {
  width: 360px;
  height: 270px;
}

.hero-slider .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-slider .swiper-slide img:hover {
  transform: scale(1.05);
}

.hero-slider .swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    20deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slider .swiper-slide span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-weight: 700;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

/* Navigation Buttons */
.hero-slider .nav-buttons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 10;
}

.hero-slider.loaded .nav-buttons {
  opacity: 1;
}

.hero-slider .nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-slider .nav-btn:hover {
  background: rgba(192, 57, 43, 1);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-slider .nav-btn i {
  pointer-events: none;
  display: inline-block !important;
  line-height: 1;
  font-size: 18px;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
}

/* Ensure icons are visible */
.hero-slider .nav-btn i.fas,
.hero-slider .nav-btn i.fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-slider .hero-content {
    flex-direction: column;
  }

  .hero-slider .hero-left,
  .hero-slider .hero-right {
    width: 100%;
  }

  .hero-slider .swiper-slide {
    width: 200px;
    height: 150px;
  }

  .hero-slider .swiper-slide.swiper-slide-active {
    width: 260px;
    height: 195px;
  }

  .hero-slider .title-item h1 {
    font-size: 28px;
  }

  .hero-slider .desc-item p {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 60px;
  }

  .hero-slider .hero-content {
    flex-direction: column;
    padding: 20px;
    gap: 40px;
    justify-content: flex-start;
  }

  .hero-slider .hero-left,
  .hero-slider .hero-right {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-slider .as-bar {
    display: none;
  }

  .hero-slider .text-container {
    margin-left: 0;
    width: 100%;
  }

  .hero-slider .title-item h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .hero-slider .desc-item p {
    font-size: 14px;
    margin: 0 auto 25px;
    max-width: 100%;
  }

  .hero-slider .button-widget {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .hero-slider .button-widget .btn {
    margin-right: 0;
    padding: 10px 25px;
    font-size: 14px;
  }

  .hero-slider .food-slider .swiper-wrapper {
    height: 220px;
  }

  .hero-slider .swiper-slide {
    width: 140px;
    height: 105px;
  }

  .hero-slider .swiper-slide.swiper-slide-active {
    width: 180px;
    height: 135px;
  }

  .hero-slider .nav-buttons {
    bottom: 20px;
    gap: 15px;
  }

  .hero-slider .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}
