.custom-carousel-wrapper {
  display: flex;
  align-items: stretch;
  width: 100vw;
  max-width: none;
  margin: 0;
  position: relative;
  min-height: 350px;
  left: 50%;
  right: 50%;
  margin-left: -40vw;
  margin-right: -50vw;
  box-sizing: border-box;
}
.custom-carousel-track {
  display: flex;
  flex: 1;
  overflow-x: auto;
  gap: 16px;
  scroll-behavior: smooth;
  width: 100vw;
  max-width: none;
}
.custom-carousel-item {
  min-width: 33.33vw;
  flex: 0 0 33.33vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.custom-carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.custom-carousel-arrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 16px;
  gap: 16px;
}
.custom-carousel-arrows .arrow-btn {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
}
.custom-carousel-arrows .arrow-btn:hover {
  background: #eee;
  color: #000;
}
@media (max-width: 900px) {
  .custom-carousel-item {
    min-width: 50vw;
    flex-basis: 50vw;
  }
}
@media (max-width: 600px) {
  .custom-carousel-item {
    min-width: 100vw;
    flex-basis: 100vw;
  }
  .custom-carousel-arrows {
    margin-left: 4px;
  }
}

/* slick carousel arrow for custom-carousel */
.custom-carousel-slick .slick-arrow {
  z-index: 10;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}
.custom-carousel-slick .slick-prev {
  left: -40px;
}
.custom-carousel-slick .slick-next {
  right: -40px;
}
@media (max-width: 900px) {
  .custom-carousel-slick .slick-prev {
    left: -24px;
  }
  .custom-carousel-slick .slick-next {
    right: -24px;
  }
}
@media (max-width: 600px) {
  .custom-carousel-slick .slick-prev,
  .custom-carousel-slick .slick-next {
    left: 0;
    right: 0;
  }
}
.custom-carousel-slick .custom-arrow {
  background: none;
  border: none;
  color: #000;
  font-size: 28px;
  width: auto;
  height: auto;
  box-shadow: none;
  border-radius: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.custom-carousel-slick .slick-prev.custom-arrow {
  left: -32px;
}
.custom-carousel-slick .slick-next.custom-arrow {
  right: -32px;
}
.custom-carousel-slick .slick-arrow::before,
.custom-carousel-slick .slick-arrow::after {
  content: none !important;
  display: none !important;
}

/* [custom_carousel] 專用樣式 */

.custom-swiper-outer {
  position: relative;
  width: 100%;
}

.custom-swiper-outer .testimonials-swiper-container {
  width: 100%;
}

.custom-swiper-outer .swiper-slide {
  text-align: center;
}

.custom-swiper-outer .swiper-slide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Arrow button 樣式 */
.custom-swiper-outer .swiper-button-prev,
.custom-swiper-outer .swiper-button-next {
  color: #333; /* 桌機版深色 */
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  transition: all 0.3s ease;
}

.custom-swiper-outer .swiper-button-prev:hover,
.custom-swiper-outer .swiper-button-next:hover {
  background: rgba(255, 255, 255, 1);
  color: #000;
}

.custom-swiper-outer .swiper-button-prev::after,
.custom-swiper-outer .swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}

/* 手機版 arrow button 樣式 */
@media (max-width: 768px) {
  .custom-swiper-outer .swiper-button-prev,
  .custom-swiper-outer .swiper-button-next {
    color: #fff; /* 手機版白色 */
    background: rgba(0, 0, 0, 0.6);
  }
  
  .custom-swiper-outer .swiper-button-prev:hover,
  .custom-swiper-outer .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
  }
}

/* 確保 arrow button 容器正確定位 */
.swiper-arrows-vertical {
  position: relative;
}

.custom-swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

/* RS Interior Carousel Arrow 樣式 - 移除陰影，添加#535353外框線 */
.rs-interior_carousel .elementor-swiper-button-prev,
.rs-interior_carousel .elementor-swiper-button-next {
  color: #333 !important; /* 桌機版深色 */
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  margin-top: -20px !important;
  transition: all 0.3s ease !important;
  border: 2px solid #535353 !important; /* #535353外框線 */
  box-shadow: none !important; /* 移除陰影 */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rs-interior_carousel .elementor-swiper-button-prev:hover,
.rs-interior_carousel .elementor-swiper-button-next:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: #000 !important;
  box-shadow: none !important; /* 移除hover時的陰影 */
  border: 2px solid #535353 !important; /* 保持#535353外框線 */
}

.rs-interior_carousel .elementor-swiper-button-prev svg,
.rs-interior_carousel .elementor-swiper-button-next svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 調整按鈕位置 - 讓它們位於內容外側，對齊圖片上方 */
.rs-interior_carousel .elementor-swiper-button-prev {
  right: -60px !important; /* 更靠近一點 */
  left: auto !important;
  top: 50px !important; /* 對齊圖片上方 */
  bottom: auto !important;
}

.rs-interior_carousel .elementor-swiper-button-next {
  right: -60px !important; /* 更靠近一點 */
  left: auto !important;
  top: 100px !important; /* 上方按鈕，對齊圖片上方 */
  bottom: auto !important;
}

/* 平板版 - 跟桌機一樣的排法，但使用白色圓框無底色 - 加強優先級 */
@media (max-width: 1024px) and (min-width: 769px) {
  .rs-interior_carousel .elementor-swiper-button-prev,
  .rs-interior_carousel .elementor-swiper-button-next,
  .rs-interior_carousel .elementor-swiper-button-prev::before,
  .rs-interior_carousel .elementor-swiper-button-next::before,
  .rs-interior_carousel .elementor-swiper-button-prev::after,
  .rs-interior_carousel .elementor-swiper-button-next::after {
    color: #333 !important; /* 深色圖標 */
    background: transparent !important; /* 無底色 */
    background-color: transparent !important; /* 無底色 */
    border: 2px solid #ffffff !important; /* 白色圓框 */
    box-shadow: none !important; /* 移除陰影 */
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev:hover,
  .rs-interior_carousel .elementor-swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.1) !important; /* hover時輕微白色背景 */
    color: #000 !important;
    border: 2px solid #ffffff !important; /* 保持白色圓框 */
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev svg,
  .rs-interior_carousel .elementor-swiper-button-next svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* 跟桌機一樣的排法 - 右側垂直排列 - 加強優先級 */
  .rs-interior_carousel .elementor-swiper-button-prev {
    right: -60px !important; /* 跟桌機一樣的位置 */
    left: auto !important;
    top: 50px !important; /* 對齊圖片上方 */
    bottom: auto !important;
    transform: none !important; /* 移除transform */
    position: absolute !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-next {
    right: -60px !important; /* 跟桌機一樣的位置 */
    left: auto !important;
    top: 100px !important; /* 上方按鈕，對齊圖片上方 */
    bottom: auto !important;
    transform: none !important; /* 移除transform */
    position: absolute !important;
  }
}

/* 額外加強 - 確保rs-interior_carousel在pad尺寸時正確顯示 */
@media (max-width: 1024px) and (min-width: 769px) {
  .rs-interior_carousel .elementor-swiper-button-prev,
  .rs-interior_carousel .elementor-swiper-button-next {
    /* 強制覆蓋所有可能的樣式 */
    all: unset !important;
    color: #333 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev {
    right: -60px !important;
    top: 50px !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-next {
    right: -60px !important;
    top: 100px !important;
  }
}

/* 手機版 arrow button 樣式 - 改為左右兩側，添加#535353外框線 */
@media (max-width: 768px) {
  .rs-interior_carousel .elementor-swiper-button-prev,
  .rs-interior_carousel .elementor-swiper-button-next {
    color: #fff !important; /* 手機版白色 */
    background: rgba(0, 0, 0, 0.6) !important;
    width: 35px !important;
    height: 35px !important;
    border: 2px solid #535353 !important; /* 添加#535353外框線 */
    box-shadow: none !important; /* 移除陰影 */
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev:hover,
  .rs-interior_carousel .elementor-swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev svg,
  .rs-interior_carousel .elementor-swiper-button-next svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-prev {
    left: 5px !important;
    right: auto !important;
    bottom: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  
  .rs-interior_carousel .elementor-swiper-button-next {
    right: 5px !important;
    left: auto !important;
    bottom: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}
