/* carousel.css */
#featured-machinery {
  text-align: center;
  margin: 40px 0;
}

.carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 80%;
  margin: 0 auto;
}

.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  height: auto;
}

.carousel-slide h3 {
  font-size: 24px;
  margin: 10px 0;
}

.carousel-slide .tagline {
  font-style: italic;
  color: #666;
}

.carousel-slide .price {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.carousel-slide .btn {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

/* New Navigation Controls placed below the carousel */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-controls button {
  background-color: #4682B4; /* steel blue */
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Swiper specific styles (if you're using Swiper) */
.swiper-container {
  position: relative; /* Add this */
  padding-bottom: 80px; /* Space for pagination */
  overflow: hidden;
}
.swiper-pagination {
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px;
  justify-content: center !important;
  width: auto !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #4682B4 !important;
  opacity: 0.4 !important;
  margin: 0 4px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  transform: scale(1.2) !important;
  background: #4682B4 !important;
}
