/* 引入一般字重 */
@font-face {
  font-family: 'NotoSansTC'; /* 自定義名稱 */
  src: url('../fonts/NotoSansTC-ExtraLight.ttf') format('ttf');
  font-weight: 400; /* 正常字重 */
  font-style: normal;
  font-display: swap; /* 加載策略，可避免 FOUT */
}

/* 引入粗體字重 */
@font-face {
  font-family: 'NotoSansTC2';
  src: url('../fonts/NotoSansTC-Black.ttf') format('ttf');
  font-weight: 900; /* 粗體 */
  font-style: normal;
  font-display: swap;
}

/* 區塊 */
.vas {
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 60px 20px;
  background-image: url("../images/BG-3.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-color: #e2fffa;
}

/* 標題 */
.vas-header {
  text-align: center;
  margin-bottom: 0px;
  color: #000;
}

.section-fiveth {
  font-size: 30pt;
  font-weight: bold !important;
  font-family: 'NotoSansTC2';
  letter-spacing: 2px;
  margin: 0px;
  background-image: url("../images/title3.png");
  background-repeat: no-repeat;
  background-position: 300px 10px;
}
.section-ffivethsub{
  color: #007cba !important;
  font-size: 14pt;
  font-weight: bold !important;
  font-family: 'NotoSansTC2';
  letter-spacing: 2px;
  top: -1px;
  position: relative;
}

/* 卡片容器 */
.vas-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 卡片 */
.vas-card {
  background: #0b86c3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; /* ★一定要加 */
}

/* 圖片 */
.vas-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 文字 */
.vas-content {
  padding: 20px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;   /* ★關鍵 */
}

.vas-content h3 {
  font-size: 55px; 
  margin-bottom: 10px;
  color: #3eeddf;
  font-weight: bold;
  line-height: 50px;
}

.vas-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 5px;
  color: #fff;
  font-weight: bold;
}

/* 📱 手機 RWD */
@media (max-width: 810px) {
	.section-fiveth {
	  background-position: 0px 10px;
	}
	.vas-content {
	  padding: 5px;
	}

	.vas-content h3 {
	  font-size: 30px;
	  margin-bottom: 0px;
	  line-height: 30px;
	}
	.vas-content p {
	  font-size: 14px;
    }
}
  
@media (max-width: 768px) {
  .vas {
    padding: 20px 20px;
  }
  .vas-cards {
    grid-template-columns: 1fr;
  }

  .vas-header h2 {
    font-size: 25px;
  }

  .vas-content {
    padding: 10px;
  }
  .vas-content h3 {
    font-size: 32px;
	line-height: 20px;
	margin-bottom: 10px;
  }
  .vas-content p {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 0px;
	color: #fff;
	font-weight: bold;
  }
	
  .section-fiveth {
    background-image: url("../images/title_m3.png");
    background-repeat: no-repeat;
    background-position: 50px 10px;
  }
}

@media (max-width: 414px) {
  .section-fiveth {
    background-position: 40px 10px;
  }
  .vas-content h3 {
    font-size: 31px;
    line-height: 18px;
  }
  .vas-content p {
    font-size: 14px;
  }
}
@media (max-width: 390px) {
  .section-fiveth {
    background-position: 30px 10px;
  }
  .vas-content h3 {
    font-size: 29px;
    line-height: 18px;
  }
  .vas-content p {
    font-size: 12px;
  }
}
@media (max-width: 375px) {
  .section-fiveth {
    background-position: 20px 10px;
  }
  .vas-content h3 {
    font-size: 27px;  
  }
}
