/* Global tweaks */
.navbar .nav-link { font-weight: 500; }
.card img { object-fit: cover; }

/* Footer fine-tune: align titles/icons, keep rows compact, single-line items */
#site-footer .mg-widget h6 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: .5px;
  padding: 0; /* remove extra top padding for alignment */
  display: flex;
  align-items: center;
  line-height: 1.4;
}
#site-footer .mg-widget ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
#site-footer .mg-widget ul li a {
  color: #fff;
  text-decoration: none;
}
#site-footer .mg-widget ul li a:hover { color: var(--pri-color); }
#site-footer .mg-widget-address li {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
#site-footer .mg-widget-address .icon-addr {
  display: inline-flex;
  width: 20px;
  justify-content: center;
}
#site-footer .mg-widget-address .icon-addr i { font-size: 14px; }
#site-footer .social a { font-size: 18px; }
#site-footer .mg-footer-bottom-area { padding-top: 12px; padding-bottom: 12px; }
#site-footer .mg-footer-bottom-area .divide-line { margin: 16px 0; }
#site-footer .custom-logo { height: 24px; width: auto; }

/* 讓帶圖標的聯絡欄位其 h6 與文字左邊界一致 */
#site-footer .mg-widget.with-icons h6 { padding-left: 20px; }
#site-footer .mg-widget.with-icons .mg-widget-address li { gap: 8px; }
#site-footer .mg-widget.with-icons .mg-widget-address .icon-addr { width: 20px; justify-content: center; }

/* Footer (SkyHome layout) – aesthetics & responsive alignment */
#site-footer.footer { background: #0e1a2b; color: #fff; padding: 32px 0 16px; }
#site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }

/* Brand area */
#site-footer .brand-logo-wrap { margin-bottom: 10px; }
#site-footer .brand-logo { height: 38px; width: auto; display: block; }
#site-footer .brand-desc { color: rgba(255,255,255,0.85); line-height: 1.6; font-size: 14px; }
#site-footer .brand-map { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#site-footer .brand-map img { width: 18px; height: 18px; }
#site-footer .brand-map .map-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: rgba(255,255,255,0.85); }

/* Column lists */
#site-footer .footer-col { min-width: 220px; }
#site-footer .col-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; letter-spacing: .3px; color: #e7f0ff; }
#site-footer .col-list { margin: 0; padding: 0; }
#site-footer .col-list li { margin: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#site-footer .col-list a { color: #fff; text-decoration: none; }
#site-footer .col-list a:hover { color: var(--pri-color, #45b1f4); }

/* Contact card */
#site-footer .contact-card { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px; }
#site-footer .contact-title, #site-footer .follow-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: #e7f0ff; }
#site-footer .contact-item { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
#site-footer .contact-icon { width: 20px; height: 20px; flex: 0 0 20px; }
#site-footer .contact-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
#site-footer .contact-text .sub { opacity: .85; font-size: 12px; }
#site-footer .follow-icons { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
#site-footer .follow-icon img { width: 22px; height: 22px; opacity: .95; transition: opacity .2s ease; }
#site-footer .follow-icon:hover img { opacity: 1; }

/* Bottom bar */
#site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 18px; padding-top: 12px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.85); }

/* Compact at small screens */
@media (max-width: 576px) {
  #site-footer.footer { padding: 24px 0 12px; }
  #site-footer .footer-grid { gap: 10px; }
  #site-footer .brand-logo { height: 34px; }
  #site-footer .col-title, #site-footer .contact-title, #site-footer .follow-title { font-size: 14px; margin-bottom: 8px; }
  #site-footer .col-list li, #site-footer .contact-item { margin: 4px 0; }
}

/* Hero Swiper */
.hero-swiper { width: 100%; position: relative; height: clamp(380px, 52vh, 640px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
@media (min-width: 992px) { .hero-swiper { height: clamp(480px, 60vh, 720px); } }
.hero-swiper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%); pointer-events: none; }
.hero-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.hero-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-swiper .swiper-pagination { bottom: 16px; }
.hero-swiper .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255,255,255,.85); opacity: .9; }
.hero-swiper .swiper-pagination-bullet-active { background: #45b1f4; opacity: 1; }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* Overlay caption in slides */
.hero-swiper .hero-overlay {
  position: absolute;
  right: 5%;
  left: auto;
  bottom: 8%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  max-width: min(720px, 80%);
  z-index: 2;
}
.col-md-8 img{ width: 100px; height:100px; }
/* Feature list: single-row, horizontal scroll, image top + label below */
.hero-features {
  
  display: flex;
  flex-wrap: nowrap; /* keep all items on one line */
  gap: 66px;
  align-items: stretch;
  justify-content: center; /* center row items */
  overflow-x: auto; /* allow horizontal scroll when overflow */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Firefox */
}
.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px; /* space between image and text */
  flex: 0 0 auto; /* prevent shrinking and wrapping */
}
.hero-feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.hero-feature-label {
  font-size: 0.95rem;
  color: #333;
}

/* Ensure hero-features fills the row even when using Bootstrap col-md-8 */
.hero-features.col-md-8 {
  width: 100% !important;
  max-width: 100%;
}

@media (max-width: 576px) {
  .hero-features { gap: 12px; }
  .hero-feature-item img { width: 84px; height: 84px; }
}
.hero-swiper .overlay-icon {  width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; }
.hero-swiper .overlay-title {color: cornsilk;  margin: 0 0 4px; font-weight: 700; line-height: 1.25; font-size: clamp(18px, 2.2vw, 28px); }
.hero-swiper .overlay-desc { margin: 0; line-height: 1.4; opacity: .92; font-size: clamp(13px, 1.4vw, 16px); }

@media (max-width: 576px) {
  .hero-swiper .hero-overlay { right: 4%; left: auto; bottom: 6%; max-width: unset; padding: 10px 12px; }
  .hero-swiper .overlay-icon { width: 36px; height: 36px; flex: 0 0 36px; }
}

/* Always show navbar toggler and its icon on all breakpoints */
.navbar .navbar-toggler { display: inline-flex !important; align-items: center; }
.navbar-toggler .navbar-toggler-icon { display: inline-block !important; }
.navbar-toggler:not(.collapsed) > .navbar-toggler-icon { display: inline-block !important; }
.navbar-expand .navbar-toggler,
.navbar-expand-sm .navbar-toggler,
.navbar-expand-md .navbar-toggler,
.navbar-expand-lg .navbar-toggler,
.navbar-expand-xl .navbar-toggler { display: inline-flex !important; }
