/**
 * banner-slider.css
 * 輪播功能相關樣式
 */

/* 輪播區域基本設定 */
.banner-area {
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 0px; /* 加入下方間距控制 */
}
.fast-links-area {
    padding-top: 5px;   /* 調整為最小間格 */
    margin-top: 0px;    /* 確保沒有額外的上邊距 */
}

/* 覆蓋快速連結元素的預設間距 */
.fast-links-area .fast-links {
    margin-top: 10px !important;   /* 大幅縮小快速連結項目間距 */
}
.banner {
  position: relative;
}

/* 輪播單頁設定 */
.banner__single {
  position: relative;
  min-height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* 輪播圖片設定 */
.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 輪播內容區塊 */
.banner__single__content {
  position: relative;
  z-index: 2;
  padding: 30px 0;
  max-width: 600px;
}

.banner__single__content h2 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* Slick輪播基本設定 */
.banner-slider-active {
  position: relative;
}

/* 輪播導航點設定 */
.banner-slider-active .slick-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 3;
}

.banner-slider-active .slick-dots li {
  margin: 0;
}

.banner-slider-active .slick-dots button {
  font-size: 0;
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-slider-active .slick-dots li.slick-active button {
  background: #fff;
  transform: scale(1.2);
}

/* 輪播動畫效果 */
.banner-slider-active .banner__single__content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.banner-slider-active .slick-current .banner__single__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* RWD設定 */
@media (max-width: 1200px) {
  .banner__single {
    min-height: 450px;
  }
  
  .banner__single__content h2 {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .banner__single {
    min-height: 400px;
  }

  .banner__single__content h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .banner__single {
    min-height: 350px;
  }

  .banner__single__content {
    text-align: center;
    margin: 0 auto;
    padding: 20px;
  }

  .banner__single__content h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .banner-area .banner__single {
    min-height: 0 !important;
  }

  .banner-area .banner__single > a {
    display: block;
    width: 100%;
  }

  .banner-area .banner-img.d-md-none,
  .banner-slider-active .banner-img.d-md-none {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 576px) {
  .banner__single {
    min-height: 300px;
  }

  .banner__single__content h2 {
    font-size: 24px;
  }

  .banner-slider-active .slick-dots {
    bottom: 20px;
  }
}
