/* 桌機版 (大於等於 992px) */
.carousel-inner {
    max-height: 800px;
  }
  .carousel-inner img {
    height: 800px;
    object-fit: cover;
  }

  /* 平板版 (介於 768px ~ 991.98px) */
  @media (max-width: 991.98px) {
    .carousel-inner {
      max-height: 600px;
    }
    .carousel-inner img {
      height: 600px;
      object-fit: cover;
    }
  }



  /* 行動裝置版 (小於 768px) */
  @media (max-width: 767.98px) {
    .carousel-inner {
      max-height: 600px;
    }
    .carousel-inner img {
      height: 600px;
      object-fit: cover;
      margin-top: 0px;
    }
  }

  .content_highlight {
    font-size: 0.7em;
    line-height: 1.5em;
    font-weight: 800;
    color: rgb(194, 15, 134);
    padding: 0.3em;
    animation: blinking 1.5s linear infinite;
  }

  @keyframes blinking {
    50% {
      opacity: 0;
    }
  }

  .text-rap-blue {
    color: #2E89CA;
  }


.full-marquee-bg {
  background: linear-gradient(90deg, #2b7a6d, #216b86, #273b8e);
  padding: 0.65rem 0;
  width: 100%;
}


.marquee-text {
  display: inline-block;
  white-space: nowrap;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  padding-left: 100%;
  animation: slide-left 30s linear infinite;
}

ul.nav > li {
  position: relative; /* 讓子選單定位相對於此 li */
}

/* 子選單（展開區塊） */
ul.nav li ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999; /* 一定要高於跑馬燈 */
  background-color: #fff; /* 自訂底色 */
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* hover 顯示子選單 */
ul.nav li:hover ul.submenu {
  display: block;
}

@keyframes slide-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.dropdown {
  position: absolute;
  z-index: 9999; /* 確保高過跑馬燈 */
}

/* 應用成果各類別 */

.company-logo {
  max-width: 300px;
  height: auto;
  object-fit: contain;

}

.category-tag {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  margin: 0.5rem;
  border-radius: 5rem;
  letter-spacing: 0.05rem;
  text-align: center;
  white-space: nowrap;
}

/* 各分類顏色可自由調整 */
.category-gov {
  background-color: #0fb681; /* 政府領域 */
}

.category-edu {
  background-color: #f4b400; /* 教育領域 */
}

.category-bio {
  background-color: #40baad; /* 生物領域 */
}

.category-tech {
  background-color: #2d73b4; /* 科技領域 */
}

.category-others {
  background-color: #6f42c1; /* 領域不限 */
}