/* Carousel / Banner */
.x-carousel {
  position: relative;
  height: 459px;
  margin-top: 70px;
  background-color: var(--dark-grey);
  overflow: hidden;
}

.carousel-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-item {
  position: relative;
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .x-carousel {
    height: 250px;
    background-color: var(--dark-grey);
  }

  .carousel-item {
    height: 250px;
  }

  .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .x-carousel {
    height: 200px;
  }

  .carousel-item {
    height: 200px;
  }

  .carousel-img {
    object-position: center;
  }
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white-color);
  z-index: 2;
}

.banner-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-content p {
  font-size: 24px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
  left: 20px;
  border-radius: 5px 0 0 5px;
}

.carousel-arrow.next {
  right: 20px;
  border-radius: 0 5px 5px 0;
}

.carousel-buttons {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 5;
}

.carousel-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 4;
  max-width: 80%;
  display: none;
}

.carousel-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.carousel-subtitle {
  font-size: 20px;
  margin-bottom: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  opacity: 0.9;
}

.carousel-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 120px;
  text-align: center;
}

.carousel-btn-primary {
  background-color: #ff7a00;
  color: white;
  border-color: #ff7a00;
}

.carousel-btn-primary:hover {
  background-color: #e56e00;
  border-color: #e56e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: rgba(255, 255, 255, 0.9);
}

.carousel-btn-secondary:hover {
  background-color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background-color: var(--white-color);
}
