/* Estilos para o Swiper Carousel */
.car-swiper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* padding: 40px 0; */
  z-index: 50;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 80%;
  max-width: 900px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  opacity: 0.5;
  filter: blur(2px);
  transform: scale(0.9);
  z-index: 50;
  padding-bottom: 50px;
}

.swiper-slide-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  z-index: 2;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
}

.swiper-slide-active img:hover {
  transform: scale(1.05);
}

/* Estilos para os botões de navegação */
.slider-controls {
  position: absolute;
  bottom: 0;
  display: flex;
  /* justify-content: space-between; */
  /* align-items: center; */
  padding: 5px 20px;
  z-index: 10;
  pointer-events: none;
}

.slider-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

.slider-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.slider-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Container para o texto de fundo */
.car-background-text-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  /* justify-content: center; */
  align-items: flex-start;
  z-index: 1;
  pointer-events: none;
  text-align: center;
}

.car-background-text-container img {
  /* position: absolute; */
  max-width: 60%;
  max-height: 80%;
  opacity: 0.7;
  z-index: 1;
  transition: all 0.5s ease;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .swiper-slide {
    width: 90%;
  }

  .car-title {
    font-size: 1.8rem;
    top: 15%;
  }

  .slider-controls {
    padding: 0 20px;
    bottom: 20px;
  }

  .slider-button img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .swiper-slide {
    width: 95%;
  }

  .car-title {
    font-size: 1.5rem;
    top: 10%;
  }

  .slider-controls {
    padding: 0 10px;
    bottom: 10px;
  }

  .slider-button img {
    width: 25px;
    height: 25px;
  }
}
