/* 保證整個畫面不會有水平滾動 */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 禁止橫向滾動 */
  width: 100%;
}

.custom-navbar {
  background-color: #b02e21; /* 預設透明 */
}
/* ---------------------------------
   大Binner形象圖
---------------------------------- */

.big-binner {
  width: 100%;
  background-color: #b02e21;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* 無需保留高度，讓圖片等比例顯示 */
  margin-top: 5vh;
}

/* 圖片維持等比例縮放 */
.big-binner-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1440px) {
  .big-binner {
    margin-top: 8vh;
  }
}

@media (max-width: 1300px) {
  .big-binner {
    margin-top: 8.5vh;
  }
}

@media (max-width: 1024px) {
  .big-binner {
    margin-top: 5.5vh;
  }
}

@media (max-width: 768px) {
  .big-binner {
    margin-top: 4vh;
  }
}

/* ---------------------------------
   影音專區
---------------------------------- */

.video-content {
  background-color: #f4f0ee;
  padding-top: 60px;
  padding-bottom: 100px;
  position: relative;
  z-index: 3;
  background-image: url("../img/background-index2.png");
  background-repeat: repeat;
  background-size: 50px 50px;
  font-weight: 700;
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 90%;
  margin: 0 auto 2rem;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

.video-header::before,
.video-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #333;
  opacity: 0.3;
}

.video-list {
  max-width: 80%;
  margin: 0 auto;
}

.video-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
  padding-bottom: 1rem;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1rem 0 1rem;
  color: #333;
}

.video-subtitle {
  font-size: 0.9rem;
  color: #555;
  padding: 0 1rem;
}

.lamp-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  z-index: 2;
  pointer-events: none; /* 👈 關鍵！讓圖片變成可穿透不阻擋點擊 */
}

#modalVideoTitle,
#modalVideoSubtitle {
  text-align: left;
}

@media (max-width: 768px) {
  .video-list {
    max-width: 90%;
    margin: 0 auto;
  }

  .video-title {
    font-size: 1.3rem;
  }

  .video-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .lamp-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    z-index: 1;
  }
}

@media (max-width: 400px) {
  .lamp-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    z-index: 1;
  }
}

/* ---------------------------------
   底部圖片
---------------------------------- */

.bottom-photo {
  position: relative;
  width: 100%;
  background: #f4f0ee url("../img/background-index2.png") repeat;
  background-size: 50px 50px;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  z-index: 1;
}

.bottom-photo-img {
  width: 100%;
  height: 250px; /* ✅ 高度你可以自定，這裡是示範值 */
  object-fit: cover; /* ✅ 關鍵：裁切並填滿容器 */
  object-position: center; /* ✅ 關鍵：以圖片中心為裁切基準 */
  display: block;
}

.bottom-photo {
  padding-bottom: 0; /* 移除底部空間 */
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .bottom-photo-img {
    height: 200px; /* ✅ 高度你可以自定，這裡是示範值 */
  }
}

@media (max-width: 480px) {
  .bottom-photo-img {
    height: 160px; /* ✅ 高度你可以自定，這裡是示範值 */
  }
}

@media (max-width: 400px) {
  .bottom-photo-img {
    height: 145px; /* ✅ 高度你可以自定，這裡是示範值 */
  }
}

/*  Google 翻譯切換按鈕  */
#translate-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#translate-toggle-btn img {
  width: 24px;
  height: 24px;
}

#google_translate_element {
  position: fixed;
  bottom: 80px; /* 調整這裡讓它浮在按鈕上面 */
  left: 20px;
  z-index: 99999;
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  font-size: 14px !important;
}
