.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 600px;
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 左右箭頭 */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}
.prev { left: 10px; }
.next { right: 10px; }

/* 小圓點 */
.dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background-color: #333;
}
