/* Project overrides (loaded after Tailwind/Swiper) */

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #fff;
}

/* Keep navigation arrows centered */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  color: #111827;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 1);
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
  font-size: 16px;
}

@media (max-width: 768px) {
  .banner-swiper .swiper-button-prev {
    left: 12px;
  }
  .banner-swiper .swiper-button-next {
    right: 12px;
  }
}

/* Align search section margins */
.home-section-search .mt-6,
.home-section-search.mt-6 {
  margin-top: 1.5rem;
}

/* Keep navbar above the banner */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}
/* 🌐 Unified page frame */
.container-global {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ✅ Poster-style banner frame */
.banner-wrapper {
  width: 100%;
  max-width: 75vw;
  aspect-ratio: 2.35 / 1;
  margin: 1.5rem auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
}

.banner-swiper {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* ✅ Auto adaptive banner images — Oct 2025 */
.banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: #f9fafb;
  transition: transform 0.6s ease;
}

.banner-image[data-orientation="landscape"] {
  object-fit: cover;
}

.banner-image[data-orientation="portrait"] {
  object-fit: contain;
}

.banner-image:hover {
  transform: scale(1.03);
}

/* ✅ Search section alignment */
.home-section-search {
  width: 100%;
  max-width: 75vw;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ✅ Footer */
footer.site-footer {
  width: 90%;
  max-width: 1600px;
  margin: 2rem auto 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 2rem 0;
  text-align: center;
  color: #666;
}

/* ✅ Responsive */
@media (max-width: 1200px) {
  .banner-wrapper {
    max-width: 90vw;
  }
  .home-section-search {
    max-width: 90vw;
  }
}

@media (max-width: 768px) {
  .banner-wrapper {
    max-width: 100vw;
    border-radius: 12px;
    box-shadow: none;
  }
  .home-section-search {
    max-width: 100vw;
  }
}

/* Remove unwanted gaps */
.swiper-slide {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

header select {
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  header nav div {
    flex-wrap: wrap;
    gap: 12px;
  }
  header img {
    height: 28px;
  }
}

nav img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* Header and banner spacing fine-tuning */
header {
  height: auto;
  padding-bottom: 0.25rem;
}
.banner-wrapper {
  margin-top: 0.25rem;
}

/* === Language dropdown === */
.group:hover ul {
  display: block;
}

.group ul a {
  transition: all 0.2s ease-in-out;
}

.group:hover svg {
  transform: rotate(180deg);
}

/* 🎨 Social Icon Hover Effects */
footer img {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

footer img:hover {
  transform: scale(1.1);
}

/* Facebook */
footer a[href*="facebook"] img:hover {
  box-shadow: 0 0 12px rgba(59, 89, 152, 0.8);
}

/* Instagram */
footer a[href*="instagram"] img:hover {
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.8);
}

/* LINE */
footer a[href*="line"] img:hover {
  box-shadow: 0 0 12px rgba(0, 185, 0, 0.8);
}

/* WeChat */
footer a[href*="wechat"] img:hover {
  box-shadow: 0 0 12px rgba(83, 194, 65, 0.8);
}

/* WhatsApp */
footer a[href*="whatsapp"] img:hover {
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.8);
}

/* 語言下拉動畫效果 */
.group:hover ul {
  display: block;
}
.group ul a {
  transition: all 0.2s ease-in-out;
}
.group:hover svg {
  transform: rotate(180deg);
}
