.hero-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .carousel-container {
    position: relative;
  }
  
  .carousel-slides-container {
    position: relative;
    height: 500px;
    overflow: hidden;
  }
  
  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
  }
  
  .carousel-slide.active {
    opacity: 1;
    z-index: 2;
  }
  
  .hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
    width: 90%;
    max-width: 800px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .cta-button:hover {
    background-color: #357ABD;
  }
  
  .carousel-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10; /* 確保導航控制項在幻燈片上層 */
  }
  
  .carousel-indicators {
    display: flex;
    gap: 8px;
  }
  
  .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;
  }
  
  .indicator.active {
    background-color: white;
  }
  
  .nav-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .nav-btn span {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  /* Responsive styles */
  @media screen and (max-width: 900px) {
    .carousel-slides-container {
      height: 400px;
    }
  }
  
  @media (max-width: 768px) {
    .carousel-slides-container {
      height: 300px;
    }
  
    .hero-text h1 {
      font-size: 1.8rem;
    }
  
    .hero-text p {
      font-size: 1rem;
    }
  
    .nav-btn {
      width: 30px;
      height: 30px;
    }
  }