.custom-navbar .nav-link {
  color: #ffffff;
}

.custom-navbar .nav-link:hover {
  color: #00bcfc; /* 選擇一個品牌金色作 hover 效果 */
}

.btn-contact {
  display: inline-block;          /* 讓它不再佔滿整行 */
  padding: 6px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  width: auto;                    /* 取消手機時 100% 寬度的預設 */
  text-align: center;

}

.btn-contact:hover {
  background-color: #04bcff81;  /* 滑過時稍深的藍色 */
  color: #fff !important;
}

.navbar-nav .nav-item .btn-contact {
  width: auto !important;
}

.hero {
  background: #f8f9fa;
  padding: 5rem 0;
}

.btn-hero{
  display: inline-block;          /* 讓它不再佔滿整行 */
  background-color: #1b191996;
  color: white !important;
  padding: 6px 16px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: auto;                    /* 取消手機時 100% 寬度的預設 */
  text-align: center;
}

.btn-hero:hover {
  background-color: #008ec29e;  /* 滑過時稍深的藍色 */
  color: #fff !important;
}

.btn-activity{
  display: inline-block;          /* 讓它不再佔滿整行 */
  background-color: #ffffff;
  color: rgb(0, 0, 0) !important;
  padding: 3px 13px;
  border-radius: 3px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: auto;                    /* 取消手機時 100% 寬度的預設 */
  text-align: center;
  border: 1px solid #333333;
}

.btn-activity:hover {
  background-color: #008ec2b2;  /* 滑過時稍深的藍色 */
  color: #fff !important;
}

.section-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.card img {
  height: 180px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
}
.card-text {
  font-size: 1rem;
  line-height: 1.6;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
}

.list-group-item {
  font-size: 1rem;
  background-color: #f8f9fa;
  border: none;
}

.hero-image {
  background: url('/assets/img/bg/header_bg.jpg') no-repeat center center;
  background-size: cover;
  height: 100vh; /* 也可以改成 60vh 看你想要的高度 */
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* 半透明遮罩，讓文字更清楚 */
  z-index: 1;
}

.hero-image .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-image {
     height: 100vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 10% center !important;
  }
}
/* Timeline 主容器 */
.timeline-zigzag {
  position: relative;
  padding: 0 1rem;
}

/* 發光中線 */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(var(--bs-primary), transparent, var(--bs-primary));
  background-size: 100% 200%;
  animation: scanline 2s linear infinite;
  z-index: 0;
}

/* 掃描動畫 */
@keyframes scanline {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* Timeline Card Box */
.timeline-box {
  position: relative;
  max-width: 100%;
  background: var(--bs-white);
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  z-index: 1;
}

/* Timeline 圓點圖示動畫 */
.timeline-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  margin-bottom: 1rem;
  animation: pulse 1.6s infinite;
}

/* 發光動畫 */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* 暗夜模式 */
[data-bs-theme="dark"] .timeline-box {
  background-color: #1e1e1e;
  color: white;
}

/* 響應式：手機畫面時讓中線靠左、內容靠右 */
@media (max-width: 767.98px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }

  .timeline-box {
    margin-left: 2.5rem;
  }

  .row.align-items-center,
  .row.justify-content-end.align-items-center {
    justify-content: start !important;
  }
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.parallax-section {
  background-image: url('/assets/img/bg/header_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section {
     height: 100vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 20% center !important;
  }
}

.parallax-section-2 {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  padding: 40px 0; /* 改用 padding 控制高度與留白 */
}

.parallax-section-2::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-2 .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section-2 {
      height: auto;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 20% center !important;
  }
}

.parallax-section-management {
  background-image: url('/assets/img/bg/management_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .parallax-section-management {
     height: 50vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 20% center !important;
  }
}

.parallax-section-management::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-management .container {
  position: relative;
  z-index: 2;
}

.parallax-section-architectural {
  background-image: url('/assets/img/bg/architectural_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section-architectural::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}
.parallax-section-architectural .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section-architectural {
     height: 50vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 20% center !important;
      backdrop-filter: blur(2px); 
  }
}

.parallax-section-solar {
  background-image: url('/assets/img/bg/solar_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section-solar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-solar .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section-solar {
      height: 50vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: 20% center !important;
  }
}

.square-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.parallax-section-water {
  background-image: url('/assets/img/bg/water_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section-water::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-water .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section-water {
     height: 50vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: center center !important;
      backdrop-filter: blur(2px); 
  }
}
.parallax-section-reflective {
  background-image: url('/assets/img/bg/reflective_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section-reflective::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-reflective .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-section-reflective {
      height: 50vh;
      width: 100%;
      background-attachment: scroll !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-position: center center !important;
  }
}
.contact-section {
  background: #E6EDF3;
}

.parallax-section-contact {
  background-image: url('/assets/img/bg/contact_bg.jpg'); /* 你的背景圖 */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 50vh;
  position: relative;
  z-index: 1;
}

.parallax-section-contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩可調整深淺 */
  z-index: 0;
}

.parallax-section-contact .container {
  position: relative;
  z-index: 2;
}

form input, form textarea {
  background-color: #ffffffaa;
  border: 1px solid #ced4da;
}
form .btn-primary {
  background-color: #00BFFF;
  border-color: #00BFFF;
}
form .btn-primary:hover {
  background-color: #009acd;
  border-color: #009acd;
}

.border-primary {
  border-color: #25728e !important;
}

@keyframes glow {
  from {
    box-shadow: 0 0 2px #00B6F1, 0 0 4px #00B6F1, 0 0 6px #00B6F1;
  }
  to {
    box-shadow: 0 0 5px #00B6F1, 0 0 10px #00B6F1, 0 0 15px #00B6F1;
  }
}

.btn-enjp {
  margin-left: 10px;
  margin-top: 3px;
}

.news-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.5rem;
}

.newscard-body {
  padding: 5rem;
}

.newscard img {
  aspect-ratio: 1 / 1;
  height: 350px;
  object-fit: cover;
}

.newscard-title {
  font-weight: 600;
  font-size: 1.25rem;
}
.newscard-text {
  font-size: normal;
  line-height: 2;
}

.contact-footer-btn {
  font-weight: bold;
  letter-spacing: 2px;
}

.contact-footer-btn:hover {
  background-color:  #04bcff81;
  color: #fff !important;
}