#container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}


#section-counter {
  position: relative;
  z-index: 0;
}

#section-counter:after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  content: '';
  z-index: -1;
  opacity: 0;
  background: #242423;
}


.justify-content-center {
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}


.align-items-start {
  -webkit-box-align: start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
}

.align-items-center {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}


.d-flex {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}



.d-md-flex {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

/*---------------------
  Other Logos
-----------------------*/

.logos {
  background: #000000;
  padding-top: 0;
  padding-bottom: 25px;
}

.logos_item {
  display: block;
  margin-bottom: 25px;
  text-align: center;
}

.logos_item img {
  max-width: 100%;
  height: auto;
}


/*---------------------
  card內的文字 
-----------------------*/


.card {
  background-color: #021421;
  border-color: #1a3a50;
  color: #fff;
}

.card .card-title {
  color: #fff;
}

.card .card-text {
  color: #e5e5e5;
}

.section-top-bar {
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(-45deg,
      #bafe29,
      #bafe29 8px,
      #000000 8px,
      #000000 12px);
}


/*---------------------
  table內的文字 
-----------------------*/

.table_fontTXT {
  font-size: 1em;
  line-height: 1.5em;
  color: #fff;

}

.table_fontTXT_hightlight {
  font-size: 1em;
  line-height: 1.5em;
  color: #bafe29;

}


/*---------------------
  文字樣式
-----------------------*/


/* 文字內縮 */

.list-indent {
    padding-left: 2rem;
}


.content_fontTitle {
  font-size: 1.5em;
  line-height: 1.5em;
  color: #bafe29;
  padding: 0.3em;
}


.content_fontTitle1 {
  font-size: 1.2em;
  line-height: 1em;
  color: #bafe29;
  padding: 0em;
  display: inline-block;
  position: relative;
  width: fit-content;
}


.content_fontTitle1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #bafe29;
  transition: width 0.4s ease;
}

.content_fontTitle2 {
  font-size: 2em;
  line-height: 1.5em;
  color: #ffffff;
  padding: 0em;
}


.content_fontTXT {
  font-size: 1em;
  line-height: 1.5em;
  color: #fff;
  font-weight: 800;
  padding: 0.3em;
}


.content_fontTXT_s_hightlight {
  font-size: 0.8em;
  line-height: 1.5em;
  color: #bafe29;
  padding: 0.3em;
  animation: blinking 1.5s linear infinite;

}


.content_listTXT {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 600;
  color: #e5e5e5;
  padding: 0.3em;
  list-style-position: inside;

}


.content_fontTXT_box {
  font-size: 0.8em;
  line-height: 0.5em;
  background-color: #bafe29;
  color: #01282B;
  padding: 0em;
  font-weight: 800;

}


.content_fontTXT_box2 {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 800;
  color: #ffffff;
  padding: 0em;

}


.content_fontTXT_box3 {
  font-size: 2em;
  line-height: 5em;
  font-weight: 800;
  background-color: #bafe29;
  color: #01282B;
  padding: 0em;

}


.content_fontTXT_hightlight1 {
  font-size: 1em;
  line-height: 2em;
  color: #bafe29;
  padding: 0.3em;

}

.content_fontTXT_hightlight2 {
  font-size: 2.5em;
  font-weight: 300;                 
  line-height: 1.2; 
  color: #bafe29;
  padding: 0em;

}



.text_box1 {
  background-color: #01282B;
  color: #bafe29;
  padding: 0em;

}

.text_box2 {
  background-color: #58dee8;
  color: #1f211a;
  padding: 0em;

}


.text-shadow {
  text-shadow: black 0.1em 0.1em 0.2em;
}


.more-link {
  font-size: 1em;
  line-height: 2em;
  font-weight: 800;
  color: #bafe29;
  padding: 0em;
  text-decoration: none;
}

.more-link:hover {
  background-color: #bafe29;
  color: #01282B;
}



/* 字光暈*/

.text_highlight1 {
  color: white;
  animation: neon 1.5s ease-in-out infinite alternate;

}

@keyframes neon {

  0%,
  100% {
    text-shadow: 0 0 10px #fff, 0 0 50px #fff, 0 0 20px #fff;
  }

  50% {
    text-shadow: 0 0 20px #fff, 0 0 80px #fff, 0 0 50px #fff;
    color: lightblue;
  }
}



/* 字閃礫*/

.text_highlight2 {
  color: white;
  animation: blinking 1.5s ease-in-out infinite alternate;

}


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



/* 無動態-綠底 */

.notice-still {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #95d82b;
  color: #000000;
  font-weight: 800;
  margin-left: 10px;
}


/* 0. 微微抖-綠底 */

.notice-ani0 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #95d82b;
  color: #000000;
  font-weight: 800;
  animation: shakeCrazy 2s infinite;
  margin-left: 10px;
}



@keyframes shakeCrazy {

  0%,
  85%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  88% {
    transform: translateX(-4px) rotate(-2deg);
  }

  90% {
    transform: translateX(4px) rotate(2deg);
  }

  92% {
    transform: translateX(-5px) rotate(-2deg);
  }

  94% {
    transform: translateX(5px) rotate(2deg);
  }

  96% {
    transform: translateX(-3px) rotate(-1deg);
  }

  98% {
    transform: translateX(3px) rotate(1deg);
  }
}




/* 1. 微微上下彈跳-綠底 */

.notice-ani1 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #bafe29;
  color: #000000;
  font-weight: 800;
  animation: floatNudge 2s ease-in-out infinite;
   margin-left: 10px;
}


.notice-ani2 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: #000000;
  background: #bafe29;
  color: #000000;
  font-weight: 800;
  animation: floatNudge 2s ease-in-out infinite;
   margin-left: 10px;
}



@keyframes floatNudge {

  0%,
  82%,
  100% {
    transform: translateY(0);
  }

  86% {
    transform: translateY(-4px);
  }

  90% {
    transform: translateY(1px);
  }

  94% {
    transform: translateY(-2px);
  }

  97% {
    transform: translateY(0);
  }
}



/* 2. 微縮放呼吸-綠底 */

.notice-ani3 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: #000000;
  background: #95d82b;
  color: #000000;
  font-weight: 800;
  animation: pulseTiny 1.8s ease-in-out infinite;
  margin-left: 10px;
}





@keyframes pulseTiny {

  0%,
  84%,
  100% {
    transform: scale(1);
  }

  88% {
    transform: scale(1.08);
  }

  92% {
    transform: scale(0.97);
  }

  96% {
    transform: scale(1.03);
  }
}


/* 3. 左右微晃＋輕微上浮-綠底 */

.notice-ani4 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #95d82b;
  color: #000000;
  font-weight: 800;
  animation: swayLift 2.2s ease-in-out infinite;
  margin-left: 10px;
}


@keyframes swayLift {

  0%,
  85%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  88% {
    transform: translateX(-2px) translateY(-2px) rotate(-1deg);
  }

  91% {
    transform: translateX(2px) translateY(-3px) rotate(1deg);
  }

  94% {
    transform: translateX(-1px) translateY(-1px) rotate(-0.5deg);
  }

  97% {
    transform: translateX(1px) translateY(0) rotate(0.5deg);
  }
}



/* 5. 掃光文字由右至左快衝版 */

.notice-ani5 {
  display: inline-block;
  padding: 4px;
  color: #bafe29;
  font-weight: 800;
  margin-left: 5px;
  position: relative;
  overflow: hidden;

  /* GPU 加速優化 */
  will-change: transform;
}

/* 文字本體包裹層 - 用 span 包住內容文字，控制其快衝動態 */
.notice-ani5 > span,
.notice-ani5 {
  /* 文字快衝動畫 */
  animation: speedDashLeft 2.5s ease-in-out infinite;
}

/* 掃光層 - 由右至左 */
.notice-ani5::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;  /* 從右側畫面外起始 */
  width: 80%;
  height: 100%;
  background: linear-gradient(
    -90deg,  /* 漸層方向反轉，光帶頭部朝左 */
    transparent 0%,
    rgba(186, 254, 41, 0.5) 50%,
    transparent 100%
  );
  /* 輕微斜切，增加速度向量 */
  transform: skewX(-20deg);
  animation: speedSweepLeft 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* 文字快衝：從右衝入 → 衝過中心 → 從左駛離 → 殘影拖尾 */
@keyframes speedDashLeft {
  0% {
    /* 起點：從右側畫面外緩緩進入 */
    transform: translateX(120%);
    text-shadow: none;
    opacity: 0;
  }
  10% {
    /* 進場途中：略有右側殘影 */
    transform: translateX(5%);
    opacity: 1;
    text-shadow:
      8px 0 0 rgba(186, 254, 41, 0.28),
      18px 0 0 rgba(186, 254, 41, 0.1);
  }
  20% {
    /* 到位停留：殘影消散，文字清晰 */
    transform: translateX(0);
    opacity: 1;
    text-shadow: none;
  }
  75% {
    /* 停留結束：依然清晰，尚未動 */
    transform: translateX(0);
    opacity: 1;
    text-shadow: none;
  }
  90% {
    /* 加速駛離：殘影最濃 */
    transform: translateX(-10%);
    opacity: 1;
    text-shadow:
      14px 0 0 rgba(186, 254, 41, 0.55),
      28px 0 0 rgba(186, 254, 41, 0.3),
      45px 0 0 rgba(186, 254, 41, 0.12),
      65px 0 0 rgba(186, 254, 41, 0.04);
  }
  100% {
    /* 終點：完全駛離左側畫面外 */
    transform: translateX(-200%);
    opacity: 0;
    text-shadow: none;
  }
}

/* 掃光：文字出場時才由右至左掃過 */
@keyframes speedSweepLeft {
  0%, 74% {
    /* 停在右側外，等待出場 */
    right: -100%;
    opacity: 0;
  }
  75% {
    /* 出場開始，掃光從右側進入 */
    right: -100%;
    opacity: 1;
  }
  93% {
    right: 120%;
    opacity: 1;
  }
  100% {
    /* 掃光離場，淡出 */
    right: 120%;
    opacity: 0;
  }
}

/* 手機版：clip-path 模擬從右滑入、向左離場，不需要 translateX 出界，不受父層 overflow:hidden 影響 */
@media (max-width: 767px) {
  .notice-ani5 {
    will-change: clip-path;
    overflow: hidden;
    animation: speedDashMobile 2.5s ease-in-out infinite !important;
  }
  /* 掃光加強：手機螢幕亮度低，提高不透明度 */
  .notice-ani5::before {
    display: block;
    background: linear-gradient(
      -90deg,
      transparent 0%,
      rgba(186, 254, 41, 0.85) 50%,
      transparent 100%
    );
    width: 100%;
  }
}

@keyframes speedDashMobile {
  0% {
    /* 從右側畫面外進入：clip 遮住全部，細微右移 */
    clip-path: inset(0 0% 0 100%);
    transform: translateX(8px);
    text-shadow: none;
    opacity: 0;
  }
  10% {
    /* 到位：完整顯示，入場殘影 */
    clip-path: inset(0 0% 0 0%);
    transform: translateX(0);
    text-shadow:
      8px 0 0 rgba(186, 254, 41, 0.28),
      18px 0 0 rgba(186, 254, 41, 0.1);
    opacity: 1;
  }
  20% {
    clip-path: inset(0 0% 0 0%);
    transform: translateX(0);
    text-shadow: none;
    opacity: 1;
  }
  75% {
    clip-path: inset(0 0% 0 0%);
    transform: translateX(0);
    text-shadow: none;
    opacity: 1;
  }
  90% {
    /* 加速離場：細微左移，出場殘影 */
    clip-path: inset(0 0% 0 0%);
    transform: translateX(-6px);
    text-shadow:
      14px 0 0 rgba(186, 254, 41, 0.55),
      28px 0 0 rgba(186, 254, 41, 0.3),
      45px 0 0 rgba(186, 254, 41, 0.12),
      65px 0 0 rgba(186, 254, 41, 0.04);
    opacity: 1;
  }
  100% {
    /* 向左離場：clip 從左側收攏 */
    clip-path: inset(0 0% 0 100%);
    transform: translateX(-8px);
    text-shadow: none;
    opacity: 0;
  }
}

/* 無障礙：尊重 reduced-motion 偏好 */
@media (prefers-reduced-motion: reduce) {
  .notice-ani5,
  .notice-ani5::before {
    animation: none;
  }
}

/*---------------------
  分隔線
-----------------------*/

.hr_style1 {

  border-top: 2px dashed #8c8b8b;
}

.hr_style2 {
  border-top: 1px dashed #8c8b8b;
}

.hr_style3 {
  border-top: 1px dashed #bafe29;
}

.hr_style4 {
  border: none;
  height: 4px;
  background: repeating-linear-gradient(-45deg,
      #7aaa1a,
      #7aaa1a 8px,
      #333333 8px,
      #333333 12px);
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.footer_copyright_text {
  font-size: 0.8em;
  color: #fff;
}


.footer_copyright_text a {
  color: #978a78;
}


.btn-subbut1 {
  color: #fff;
  background-color: #24AAAA;
  border-color: #24AAAA;
  font-weight: 800;
}

.btn-glass {
  position: relative;
  color: #ecfccb;
  background: rgba(163, 230, 53, 0.12);
  border: 1.5px solid rgba(163, 230, 53, 0.45);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: 0 4px 24px rgba(163, 230, 53, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 8px rgba(163, 230, 53, 0.50);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
  padding: 0.45rem 1.4rem;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(163, 230, 53, 0.06) 60%, transparent 100%);
  pointer-events: none;
}

.btn-glass:hover,
.btn-glass:focus {
  color: #ffffff;
  background: rgba(163, 230, 53, 0.28);
  border-color: rgba(163, 230, 53, 1);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.25), 0 6px 32px rgba(163, 230, 53, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.btn-subbut2 {
  color: #000000;
  background-color: #95d82b;
  font-weight: 800;
}


/*---------------------
    News Content
-----------------------*/
.news {
  background: #000000;
}

.news_item {
  border: 1px solid #222222;
  padding: 40px 48px 35px 30px;
  position: relative;
  z-index: 1;
  margin-bottom: 45px;
}

.news_item:hover {
  border: 1px solid transparent !important;
  background: url(../img/news_content_img/news_content_bg.jpg) no-repeat;
  background-size: cover;
}

.news_item:hover ul li {
  color: #ffffff;
}

.news_item:hover p {
  color: #ffffff;
}

.news_item h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 31px;
  margin-bottom: 18px;
}

.newsitem ul {
  margin-bottom: 20px;
}

.news_item ul li {
  color: #777777;
  list-style: none;
  font-size: 14px;
  font-weight: 300;
  margin-right: 25px;
  position: relative;
  display: inline-block;
}

.news_item ul li:after {
  position: absolute;
  right: -16px;
  top: 0px;
  content: "/";
}

.news_item ul li:last-child {
  margin-right: 0;
}

.news_item ul li:last-child:after {
  display: none;
}

.news_item p {
  font-weight: 300;
  line-height: 29px;
  margin-bottom: 22px;
}

.news_item a {
  font-size: 16px;
  color: #ffffff;
}

.news_item a span {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.5;
  position: relative;
  top: 4px;
  margin-left: 5px;
}


.news_item img {
  width: 90%;
  margin-right: -10px;
  margin-bottom: 20px;
  vertical-align: middle;
}



table tr[data-href] {
  cursor: pointer;
}

.table td,
.table th {
  padding: 0.5rem;
}

.marker-line {
  border-bottom: 1px solid #16aafa;
  padding: 1px 1px;
  font-weight: bold;
}


/* Banner 區塊 */
.banner-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.banner-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem 2.5rem;
  border-radius: 0.75rem;
}

.banner-caption h1 {
  color: #fff;
  font-weight: 700;
  font-size: 3rem;
}

.banner-caption p {
  color: #fff;
  font-size: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .banner-caption {
    width: 90%;
    padding: 1.25rem 1.5rem;
  }

  .banner-caption h1 {
    font-size: 2rem;
  }

  .banner-caption p {
    font-size: 1rem;
  }
}


/* 外層容器 */
.intro_item {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
  cursor: pointer;
}

/* icon 定位容器 */
.intro_item_icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 菱形外框：正方形 → rotate(45deg) = 菱形 */
.intro_item_icon:after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

/* hover：旋轉成菱形 */
.intro_item:hover .intro_item_icon:after {
  transform: rotate(45deg);
  border-color: rgba(163, 230, 53, 1);
}

/* icon svg 保持正面不跟著轉 */
.intro_item_icon svg {
  position: relative;
  z-index: 1;
}

/* label */
.intro_item_label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.intro_item:hover .intro_item_label {
  color: rgba(255, 255, 255, 0.9);
}

/* 綠色 accent 版（對應原網站風格）*/
.intro_item_icon.accent:after {
  border-color: rgba(128, 184, 39, 0.5);
}

.intro_item:hover .intro_item_icon.accent:after {
  border-color: rgba(163, 230, 53, 1);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.25);
}


.bg-green {
  background-color: rgba(186, 254, 41, 0.5);
}

.text-green {
  color: rgba(186, 254, 41);
}


.text-green2 {
  color: rgb(208, 240, 170);
}

/* 打字機特效 - 從參賽者，變成能上場的人 */
.topic-ani1 span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 3px solid rgba(186, 254, 41);
}

.topic-ani1 span:nth-child(1) {
  animation:
    topic-ani1-width1 5s step-end infinite,
    topic-ani1-cur1 5s step-end infinite;
}

.topic-ani1 span:nth-child(2) {
  border-right-color: transparent;
  animation:
    topic-ani1-width2 5s step-end infinite,
    topic-ani1-cur2 5s step-end infinite;
}

/* 5s cycle: 0-0.5s type line1, 1.4-2s type line2, 2-4s hold, 4-5s pause */

@keyframes topic-ani1-width1 {
  0%   { width: 0 }
  2%   { width: 1em }
  4%   { width: 2em }
  6%   { width: 3em }
  8%   { width: 4em }
  10%  { width: 5em }
  80%  { width: 0 }
  100% { width: 0 }
}

@keyframes topic-ani1-cur1 {
  0%   { border-right-color: rgba(186, 254, 41) }
  26%  { border-right-color: transparent }
  100% { border-right-color: transparent }
}

@keyframes topic-ani1-width2 {
  0%    { width: 0 }
  28%   { width: 0 }
  29.7% { width: 1em }
  31.4% { width: 2em }
  33.1% { width: 3em }
  34.9% { width: 4em }
  36.6% { width: 5em }
  38.3% { width: 6em }
  40%   { width: 7em }
  80%   { width: 0 }
  100%  { width: 0 }
}

@keyframes topic-ani1-cur2 {
  0%   { border-right-color: transparent }
  28%  { border-right-color: transparent }
  35%  { border-right-color: rgba(186, 254, 41) }
  42%  { border-right-color: transparent }
  49%  { border-right-color: rgba(186, 254, 41) }
  56%  { border-right-color: transparent }
  63%  { border-right-color: rgba(186, 254, 41) }
  70%  { border-right-color: transparent }
  77%  { border-right-color: rgba(186, 254, 41) }
  80%  { border-right-color: transparent }
  100% { border-right-color: transparent }
}


/*---------------------
    學習地圖
-----------------------*/


.hipac-roadmap-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 80px;
  overflow: visible;
}

.hipac-roadmap {
  width: 100%;
  height: auto;
}


/*---------------------
    card 有底圖
-----------------------*/


.capability-card:hover .content_fontTitle1::after {
  width: 100%;
}


.capability-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100px;
  isolation: isolate;
}

/* 深色遮罩 */
.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 15, 20, 0.35) 0%,
      rgba(10, 15, 20, 0.82) 60%,
      rgba(5, 8, 12, 0.95) 100%);
  z-index: -1;
}

/* 文字壓在最上層 */
.capability-card>* {
  position: relative;
  z-index: 2;
}

/* 各卡片背景 */
.card-hpc {
  background-image:
    url("../img/hpc.jpg");
}

.card-system {
  background-image:
    url("../img/system.jpg");
}

.card-problem {
  background-image:
    url("../img/problem.jpg");
}

.card-competition {
  background-image:
    url("../img/competition.jpg");
}

.card-team {
  background-image:
    url("../img/team.jpg");
}

.card-future {
  background-image:
    url("../img/future.jpg");
}


/* 火種特效 */
.content_fontTXT_s_fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  margin-left: 0.35em;
  position: relative;
}

.content_fontTXT_s_fire_icon {
  position: relative;
  width: 12px;
  height: 16px;
  background: radial-gradient(circle at 50% 70%,
      #ffe96a 0%,
      #ffc300 35%,
      #ff7a00 65%,
      #ff3d00 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  transform: rotate(-8deg);
  animation: content_fontTXT_s_fire_flicker 1s ease-in-out infinite;
  box-shadow:
    0 0 6px rgba(255, 180, 0, 0.8),
    0 0 12px rgba(255, 120, 0, 0.55);
}

.content_fontTXT_s_fire_icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 5px;
  height: 8px;
  background: #fff7c2;
  border-radius: 50% 50% 45% 45%;
  opacity: 0.9;
}

.content_fontTXT_s_fire_icon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 5px;
  width: 3px;
  height: 3px;
  background: #ffe96a;
  border-radius: 50%;
  box-shadow:
    -4px 2px 0 rgba(255, 210, 80, 0.7),
    3px 4px 0 rgba(255, 140, 0, 0.5);
  animation: content_fontTXT_s_fire_ember 1.2s ease-out infinite;
}

@keyframes content_fontTXT_s_fire_flicker {

  0%,
  100% {
    transform: rotate(-8deg) scale(1);
    opacity: 0.95;
  }

  25% {
    transform: rotate(4deg) scale(1.05, 0.95);
  }

  50% {
    transform: rotate(-4deg) scale(0.95, 1.08);
  }

  75% {
    transform: rotate(2deg) scale(1.03);
  }
}

@keyframes content_fontTXT_s_fire_ember {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translateY(-10px) scale(0.3);
    opacity: 0;
  }
}


/*---------------------
  內頁的錨點編排  
-----------------------*/

.nav-btn-group {
    margin: 1rem 0;
}

.nav-btn {
    min-width: 140px;
    margin: 0.4rem 0.2rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
}

/* 手機版：兩顆一排、較容易點擊 */
@media (max-width: 767.98px) {
    .nav-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        white-space: normal;
    }
}

/* 超小螢幕：一顆一排 */
@media (max-width: 400px) {
    .nav-btn {
        flex: 1 1 100%;
    }
}


/* ---------------------------
   卡片本體
--------------------------- */

.hc-card {
  background-color: #021421;    /* 沿用 .card 底色 */
  border: 1px solid #1a3a50;    /* 沿用 .card 邊框 */
  border-radius: 12px;
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}


.hc-card:hover {
  border-color: rgba(186, 254, 41, 0.45);
  background-color: #031c2e;
  transform: translateY(-4px);
}


/* ---------------------------
   頂部光邊（hover 才顯示）
--------------------------- */

.hc-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #bafe29 40%,
    #58dee8 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hc-card:hover .hc-card-topline {
  opacity: 1;
}


/* ---------------------------
   Icon 外框
   擴充既有 .intro_item_icon 的菱形動效
--------------------------- */

/* 覆蓋預設尺寸，卡片版用稍小的 48×48 */
.hc-icon-wrap {
  width: 48px;
  height: 48px;
}

/* hover 時菱形框色繼承 .intro_item_icon.accent:hover 已定義，
   此處補上卡片 hover 觸發（而非 .intro_item hover） */
.hc-card:hover .hc-icon-wrap::after {
  transform: rotate(45deg);
  border-color: rgba(163, 230, 53, 1);
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.25);
}


/* ---------------------------
   卡片標題
   擴充既有 .content_fontTitle1
--------------------------- */

.hc-card-title {
  font-size: 1.2rem;  /* 略小於預設 1.5em，卡片內更緊湊 */
  color: #95d82b;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0;
  /* color 與底線動效繼承 .content_fontTitle1 */
}

/* 觸發底線（原本需要 .intro_item:hover，這裡改由 .hc-card:hover 觸發） */
.hc-card:hover .content_fontTitle1::after {
  width: 100%;
}


/* ---------------------------
   分隔線
--------------------------- */

.hc-divider {
  border: none;
  border-top: 1px solid #73c52a;
  margin: 12px 0;
  opacity: 1;
}


/* ---------------------------
   條列文字
   擴充既有 .content_listTXT
--------------------------- */s

.hc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-list li {
  /* 繼承 .content_listTXT 的 color、font-size、font-weight */
  font-size: 0.8rem;           /* 稍小以符合卡片密度 */
  color: rgba(229, 229, 229, 1);
  font-weight: 400;
  padding: 0 0 0 14px;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

/* 圓點 bullet（取代原生 list-style） */
.hc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bafe29;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.hc-card:hover .hc-list li::before {
  opacity: 1;
}


/* ---------------------------
   Tag 標籤（次要 accent #58dee8）
--------------------------- */

.hc-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #58dee8;
  border: 1px solid rgba(88, 222, 232, 0.35);
  border-radius: 4px;
  padding: 2px 9px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hc-card:hover .hc-tag {
  border-color: rgba(88, 222, 232, 0.7);
  color: #8aeaf0;
}

/* ---------------------------
   Card 4 — 強調底色版
--------------------------- */

.hc-card-accent {
  background: linear-gradient(145deg, #01282b 0%, #013a20 60%, #012810 100%);
  border: 1px solid rgba(186, 254, 41, 0.35);
  border-radius: 12px;
  padding: 24px 20px 22px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-card-accent2 {
  background: linear-gradient(145deg, rgba(1, 40, 43, 0.15) 0%, rgba(1, 58, 32, 0.15) 60%, rgba(1, 40, 16, 0.15) 100%);
  border: 1px solid rgba(186, 254, 41, 0.35);
  border-radius: 12px;
  padding: 24px 20px 22px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-card-accent:hover {
  border-color: rgba(186, 254, 41, 0.75);
  transform: translateY(-4px);
}

/* 右上角光斑 */
.hc-card-accent::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(186, 254, 41, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* 左側 accent 色條 */
.hc-card-accent::after {
  content: '';
  position: absolute;
  top: 16px; bottom: 16px; left: 0;
  width: 3px;
  background: linear-gradient(180deg, #bafe29 0%, rgba(186, 254, 41, 0.2) 100%);
  border-radius: 0 2px 2px 0;
}

.hc-card4-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bafe29;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* 標題：主文 #bafe29 粗體，副文白色輕量 */
.hc-card4-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #bafe29;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.hc-card4-title em {
  font-style: normal;
  color: #ffffff;
  font-weight: 400;
  font-size: 0.8em;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.hc-card4-divider {
  border: none;
  border-top: 1px solid rgba(186, 254, 41, 0.2);
  margin: 14px 0;
}

.hc-card4-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-card4-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 1);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

/* 橫線 bullet，區別於其他卡片的圓點 */
.hc-card4-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 1px;
  background: #bafe29;
  opacity: 0.7;
}