/* Zeina 全站 Banner 輪播 */
.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e5e7eb;
  isolation: isolate;
}

.banner-slides,
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-slide {
  z-index: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease-in-out;
}

.banner-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.banner-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,.32) 0%, rgba(255,255,255,.08) 35%, rgba(255,255,255,0) 65%);
}

.banner-site-info {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 52px;
  left: 0;
  pointer-events: none;
}

.banner-site-info a {
  pointer-events: auto;
}

.banner-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(15, 23, 42, .42);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transform: translateY(-50%);
  transition: background-color .25s ease, transform .25s ease, opacity .25s ease;
  opacity: .9;
}

.banner-arrow:hover,
.banner-arrow:focus-visible {
  color: #fff;
  background: rgba(15, 23, 42, .72);
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}

.banner-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.banner-arrow-prev {
  left: 18px;
}

.banner-arrow-next {
  right: 18px;
}

.banner-dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 17px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(15,23,42,.35);
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: width .25s ease, background-color .25s ease, transform .25s ease;
}

.banner-dot:hover,
.banner-dot:focus-visible {
  background: rgba(255,255,255,.9);
  transform: scale(1.14);
}

.banner-dot.is-active {
  width: 28px;
  background: #fff;
}

@media (max-width: 767px) {
  .banner-site-info {
    bottom: 42px;
  }

  .banner-arrow {
    width: 36px;
    height: 36px;
  }

  .banner-arrow svg {
    width: 21px;
    height: 21px;
  }

  .banner-arrow-prev {
    left: 9px;
  }

  .banner-arrow-next {
    right: 9px;
  }

  .banner-dots {
    bottom: 12px;
    gap: 7px;
  }

  .banner-dot {
    width: 9px;
    height: 9px;
  }

  .banner-dot.is-active {
    width: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide,
  .banner-arrow,
  .banner-dot {
    transition: none;
  }
}

/* 桌機：依 3970 × 800 原圖比例顯示，避免裁切或視覺拉寬 */
@media (min-width: 768px) {
  .header-section {
    width: 100%;
    height: auto !important;
    aspect-ratio: 3970 / 800;
  }

  .banner-slider,
  .banner-slides,
  .banner-slide {
    width: 100%;
    height: 100%;
  }

  .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

/* 手機：維持適合操作的高度，必要時裁切左右內容 */
@media (max-width: 767px) {
  .header-section {
    height: 200px !important;
    aspect-ratio: auto;
  }

  .banner-slide img {
    object-fit: cover;
    object-position: center center;
  }
}