.ct-service-box:hover p,
.ct-service-box:hover h3,
.ct-service-box:hover .fas {
	color: #fff;
	transition: color .3s;
}

.wp-block-group .colorBlock{
	height:500px,
	position:relative
}

.wp-image-559{
	object-fit: cover;
    width: 500px;
    height: 400px;
    position: absolute;
    right: -61px;
}

.comment-form__verbum.light{
	  border: none;
    border-radius: 15px;
    background: #ffffff;
	&:active{
		border:2px solid ##019bdc
	}
}

#custom-box {
    background-color: #1a73e8;     /* 背景色 */
    color: #fff;                   /* 文字顏色 */
    padding: 30px;                 /* 內距 */
    border-radius: 12px;           /* 圓角邊框 */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3); /* 陰影效果 */
    text-align: center;            /* 文字置中 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#custom-box:hover {
    background-color: #ff5722;    /* 滑鼠懸停時的背景色 */
    transform: scale(1.05);        /* 滑鼠懸停時微放大 */
}

#custom-box a {
    display: inline-block;
    background-color: #fff;
    color: #1a73e8;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

#custom-box a:hover {
    background-color: #ff9800;
    color: #fff;
}

.classFee{
	border-left:5px solid ##5c6bc0
}

.bannerBtn{
	transition: all 0.3s ease;
}

.bannerBtn:hover{
	transform: scale(0.95);
}

.e-n-tab-title:hover{
	cursor:pointer
}

#logo-text{
	opacity: 0
}

#logo-small-box:hover {
	transform: scale(0.8);
  transition: transform 0.3s ease;
}

#logo-small-box:hover #logo-text{
	opacity: 1
	transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flp-btn{
	transition: all 0.3s ease;
}

.flp-btn:hover{
	transform: scale(0.95);
}



#home-logo:hover{
	cursor:pointer;
}

#partner-logo{
	transition: all 0.4s;
border-radius: 15px;
}

#partner-logo:hover{
	cursor:pointer;
	box-shadow: rgba(167, 167, 167, 0.5) 4px 8px 14px -4px ;
}

/* 限定只作用在「日本合作企業」這一格 Grid */
#jp-partners a.e-con {
  
  text-decoration: none;
  color: inherit;
  
}

#projextBox {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.chaty-widget {
	bottom:85px !important;
}

/* ===== 可調參數 ===== */
:root{
  --news-max: 1458px;
  --news-gap: 28px;
  --card-radius: 16px;
  --card-min-h: 300px;

  --more-size: 44px;   /* MORE 初始圓形大小 */
  --more-open: 112px;  /* 展開寬度：原 148 的 3/4 ≈ 112 */
}

/* 版心（可選） */
.news-wrap{
  max-width: var(--news-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
}

/* Grid：3 -> 2 -> 1 欄 */
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--news-gap);
  align-items: stretch;
}
@media (max-width: 1200px){ .news-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){  .news-grid{ grid-template-columns: 1fr; } }

/* 卡片 */
.newsBox{
  display: flex;
  flex-direction: column;
  min-height: var(--card-min-h);
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s ease, transform .2s ease;
}
.newsBox:hover{ box-shadow: rgba(100,100,111,.2) 0 7px 29px 0; transform: translateY(-2px); }

/* 上半區容器（不撐滿，避免多餘留白） */
.newsBoxUp{
 background: #fff;
    padding: 16px 24px 12px;
    /* flex: 1 0; */
    transition: background-color .2s 
ease;
    height: 70%;
    display: flex
;
    flex-direction: column;
    justify-content: space-around;
}
.newsBox:hover .newsBoxUp{ background:#f8f9fb; }

/* 上排：左 meta + 右 action（預留展開寬度，避免 hover 擠壓） */
.news-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

/* 左：日期＋膠囊 */
.news-meta{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.news-date{
  font-size: 18px;
  letter-spacing: .08em;
  color: #7b8a97;
}
.news-tag{
	width
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #5db7ff;
  border-radius: 999px;
  color: #178fd6;
  font-size: 14px;
  font-weight: 400;         /* 你要的 400 */
	width: 50%;
	    text-align: center;
}

/* 右：MORE 容器固定寬度，避免版面跳動 */
.news-action{
  width: var(--more-open);
  display: flex;
  justify-content: flex-end;
}

/* MORE：大顆圓 → hover 膠囊（寬度不再影響左側） */
.news-more{
  width: var(--more-size);
  height: var(--more-size);
  border-radius: 50%;
  background: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  transition: width .3s ease, border-radius .3s ease, background-color .3s ease;
}
.news-more-span{
  opacity: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.newsBox:hover .news-more{
  width: var(--more-open);
  border-radius: calc(var(--more-size) / 2);
}
.newsBox:hover .news-more-span{ opacity: 1; }

/* 中排：標題（獨立一塊，不會被 MORE 影響） */
.news-title{
  font-size: 26px;
  line-height: 1.35;
  color: #0c2b45;
  font-weight: 600;         /* 你要的 600 */
  margin: 8px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 下排：分隔線＋摘要 */
.news-divider{
	
  height: 1px;
  background: #e9eef5;
 
}
.news-excerpt{
  color: #4c5b66;
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 20px 20px;
}

/* 空狀態 */
.news-empty{
  grid-column: 1 / -1;
  text-align: center;
  color: #7b8a97;
  padding: 48px 0;
}

/* RWD 微調 */
@media (max-width: 480px){
  .news-title{ font-size: 22px; }
  .news-excerpt{ font-size: 15px; }
  .news-action{ width: 130px; }          /* 小螢幕預留空間略縮 */
  .news-more{ width: 40px; height: 40px; }
  .newsBox:hover .news-more{ width: 130px; border-radius: 20px; }
  .news-more-span{ font-size: 15px; }
}


/* ===== 分類配色對應（覆蓋式）===== */

/* 預設：先用 primary 當作基準（沒匹配到 skin 時） */
.newsBox{
  --accent:  #009bdd;  /* MORE 胶囊底色 */
  --tag-ink: #009bdd;  /* 膠囊文字/邊框 */
  --tag-bg:  #e5f2f7;  /* 膠囊背景 */
}

/* 指定皮膚：primary / secondary */
.newsBox.skin-primary{
  --accent:  #009bdd;
  --tag-ink: #009bdd;
  --tag-bg:  #e5f2f7;
}
.newsBox.skin-secondary{
  --accent:  #02529b;
  --tag-ink: #02529b;
  --tag-bg:  #dae9f6;
}

/* 套用變數到元件 */
.newsBox .news-tag{
  background-color: var(--tag-bg);
  border-color: var(--tag-ink);
  color: var(--tag-ink);
}
.newsBox .news-more{
  background: var(--accent);
}

/* 分頁容器：橫排 */
.news-pagination{ margin-top:20px; text-align:center; }
.news-pagination .page-numbers{
  display:inline-flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  list-style:none !important;
  margin:12px 0 0 !important;
  padding:0 !important;
  align-items:center !important;
  justify-content:center !important;
}

/* —— 把主題加的子彈頭徹底移除 —— */
.news-pagination .page-numbers > li{
  display:inline-flex !important;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* 有些主題用 ::marker 畫點 */
.news-pagination .page-numbers > li::marker{ content:"" !important; }

/* 也有主題用 ::before 畫點（Elementor/部份主題常見） */
.news-pagination .page-numbers > li::before,
.news-pagination .page-numbers > li::after{
  content:none !important;
  display:none !important;
}

/* 按鈕外觀（你原本的可保留，這裡補上幾個保險） */
.news-pagination .page-numbers li a,
.news-pagination .page-numbers li span{
  display:inline-block !important;
  min-width:36px;
	min-height:36px;
  padding:12px 12px;
  border:none !important;
  border-radius:50px;
  background:transparent !important;
  color:#334155 !important;
  text-decoration:none !important;
  line-height:36px;
  transition:background-color .2s ease, color .2s ease;
}
.news-pagination .page-numbers li a:hover{ background:#eaf6ff !important; }
.news-pagination .page-numbers li .current{
  background:#0ea5e9 !important; color:#fff !important; border:none !important;
	font-weight:600
}
.news-pagination .page-numbers li .dots{
  background:transparent !important; color:#94a3b8 !important;
  min-width:auto !important; padding:0 6px !important;
}
.news-pagination .page-numbers li a:focus-visible{
  outline:2px solid #94c6eb !important; outline-offset:2px;
}


/* 影片牆：3→2→1 欄 */
.video-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:35px;
}
@media (max-width:1200px){ .video-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){  .video-grid{ grid-template-columns: 1fr; } }

/* 卡片 */
.video-card{
  border-radius:16px;
  padding:30px;
	background:#fff;
	color:#e6f4ff;
	transition: box-shadow .3s ease, transform .2s ease;
	 --video-title-color: #000;     /* 標題 */
  --video-secondary-color:#236ead; /* 內文 */
}

.video-card:hover{
	box-shadow: rgba(100,100,111,.2) 0 7px 29px 0;
	transform: translateY(-2px); 
}
.video-card--center .video-title,
.video-card--center .video-content{ text-align:center; }

/* 影片比例框（16:9 預設） */
.video-embed{
  position:relative; width:100%;
  padding-top: var(--ratio-pad, 56.25%);
  border-radius:12px; overflow:hidden;
  background:#001a2b; margin-bottom:16px;
}
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-embed__empty{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#94a3b8; }

/* 標題與內文（藍色分行） */
.video-title{
  font-size:26px; line-height:1.35; font-weight:600;
  color: var(--video-title-color);
	margin:6px 0 10px;
}
.video-content p{
  margin:8px 0;
  color: var(--video-secondary-color);
  font-weight:500;
}
.video-content p + p{ margin-top:6px; }
.video-content strong{ 
font-weight: 500;}



/* 內文「前兩段」跟標題同色（如果要前3段，就把 -n+2 改成 -n+3） */
.video-content p:nth-of-type(-n+2){
  color: var(--video-title-color);
  
}


/* 分頁（水平排列、移除子彈） */
.news-pagination{ margin-top:20px; text-align:center; }
.news-pagination .page-numbers,
.news-pagination ul.page-numbers,
.news-pagination ol.page-numbers{
  display:inline-flex !important; flex-wrap:wrap !important; gap:8px !important;
  list-style:none !important; margin:12px 0 0 !important; padding:0 !important;
  align-items:center !important; justify-content:center !important;
}
.news-pagination .page-numbers>li{ display:inline-flex !important; list-style:none !important; }
.news-pagination .page-numbers>li::marker,
.news-pagination .page-numbers>li::before,
.news-pagination .page-numbers>li::after{ content:none !important; display:none !important; }
.news-pagination .page-numbers li a,
.news-pagination .page-numbers li span{
  min-width:36px; padding:8px 12px; border:none !important; border-radius:10px;
  background:transparent !important; color:#334155 !important; text-decoration:none !important;
  transition:background-color .2s ease, color .2s ease;
}
.news-pagination .page-numbers li a:hover{ background:#eaf6ff !important; }
.news-pagination .page-numbers li .current{ background:#0ea5e9 !important; color:#fff !important; }



/* 你的卡片基礎樣式 */
.video-card{
  border-radius:16px;
  padding:30px;
  background:#fff;
  color:#e6f4ff;
  transition: box-shadow .3s ease, transform .2s ease;
  --video-title-color:#000;        /* 標題 */
  --video-secondary-color:#236ead; /* 內文 */
}
.video-card:hover{
  box-shadow: rgba(100,100,111,.2) 0 7px 29px 0;
  transform: translateY(-2px);
}

/* Grid：一排三個 */
.quote-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:35px;
}
@media (max-width:1024px){ .quote-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){  .quote-grid{ grid-template-columns: 1fr; } }

/* 卡片強化：固定高度、作者貼底、內容滾動 */
.quote-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* 引號浮水印 */
.quote-card::before{
  content:"❝";
  position:absolute;
  left:50%;
  top:40px;
  transform:translateX(-50%);
  font-size:250px;
  line-height:1;
  color:var(--video-secondary-color);
  opacity:.04;
  pointer-events:none;
}

/* 內文（全文顯示，必要時捲動） */
.quote-text{
  color:#4D5D6D;
  font-style:normal;
  font-weight:400;
  z-index:1;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
	font-size:18px;
}
.quote-card.align-center .quote-text{ text-align:center; }
.quote-card.align-left   .quote-text{ text-align:left; }

/* 作者＝標題（固定下方置中，粗體約500） */
.quote-author{
  margin:0;
  margin-top:auto;
  text-align:center;
  font-weight:500;
  color:var(--video-title-color);
  letter-spacing:.02em;
  z-index:1;
}

/* 等高補強 */
.quote-grid > *{ height:100%; }
