html {
    scroll-behavior: smooth;
}
.scroll-target {
  scroll-margin-top: 100px; /* 根據你的 header 高度調整 */
}
.owl_AI{position: absolute; top: 8px; right: 2px;}

/* 當日video播放poster */ 
.videos {
  display: inline-block;
}
a.video {
  position: relative;
  display: block; /* 確保子元素定位正確 */
}
.videos .addplay {
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 2;
}
.videos img {
  width:100%;
  height:auto;
}
a.video {
  float: left;
  position: relative;
}
a.video span {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("../images/play-btn.png") no-repeat;
  background-position: 50% 50%;
  background-size: 300%;
}
a.video span:hover {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("../images/play-btn-hover.png") no-repeat;
  background-position: 50% 50%;
  background-size: 300%;  
}
@media screen and (max-width: 480px) {
  a.video span {
    background-size: 400%;
  }
}

/* 其他video播放 */ 
.video-wrapper {
  position: relative;
  display: inline-block;
}

.video-wrapper .degree {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 3px;
  border-radius: 4px;
}

.video-wrapper .text-date {
  position: absolute;
  top: 3px;
  right: 3px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 3px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.video-wrapper .addplay {
  position: absolute;
  bottom: -5px;
  right: 2px;
  padding: 1px 3px;
}

.video-wrapper .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;  
  pointer-events: none;
}

.video-wrapper:hover .play-icon {
  opacity: 1;
}



/* 其他video播放 */ 
.video-wrapper2 {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-wrapper2 .play-icon2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-wrapper2:hover .play-icon2 {
  opacity: 1;
}

.shadow1{ text-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
-webkit-text-stroke: 2px rgba(0, 0, 0, 0.5); text-stroke: 2px rgba(0, 0, 0, 0.5);}

.shdow2{box-shadow: 4px 4px 10px rgba(12, 12, 12, 0.2);}

.shadow3{ text-shadow: 0 4px 8px 0 rgba(136, 55, 255, 0.2), 0 6px 20px 0 rgba(136, 55, 255, 0.19); 
-webkit-text-stroke: 2px rgba(136, 55, 255, 0.5); text-stroke: 2px rgba(136, 55, 255, 0.5);}

.shadow4{ text-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3); 
-webkit-text-stroke: 2px rgba(0, 0, 0, 0.3); text-stroke: 2px rgba(0, 0, 0, 0.3);}

.outline1{border: 1px solid rgba(0,0,0,0.1);}
.outline2{border: 3px solid rgba(255,255,255,255);}


/* audio */ 

.audio_box {	
  clear: both;
  display: inline-block;
  width:100%;
}


#player_audio {
  height: fit-content;
}

#player_audio .controls {
  display: flex;
  justify-content: space-around;
}

.player {
  padding: 20px;
  border-radius: 20px;
}

.player img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}


.info {
 color: #fff;
}

.info p {
  opacity: 0.68;
  font-size: 13px;  display: inline-block;
  white-space: nowrap;  
  width: 80%;	
  overflow: hidden; text-overflow:ellipsis;  
  
}

.info-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player h1 {
  display: inline-block;
  white-space: nowrap;  
  width: 80%;	
  font-size: 23px;
  color: #fff;
  overflow: hidden; text-overflow:ellipsis;
}


.controls {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.track {
  padding-top: 20px;
 position: relative;

}

.track::before {
content: '';
height: 6px;
width: 100%;
display: block;
background: #D9D9D9;
opacity: 0.3;
border-radius: 10px;
position: absolute;
}

.track::after { 
  content: '';
height: 6px;
width: 85%;
display: block;
background: #D9D9D9;
border-radius: 10px;


}

.time {
  opacity: 0.7;
  font-size: 14px;
  color: #fff;

  display: flex;
  justify-content: space-between;
  padding-top: 9.6px;
}


/* pagination */ 
.pagination-gradient {
    margin: 1rem 0;
}

.pagination-gradient .page-link {
    border: none;
    padding: 0px 8px;
    margin: 0 3px;
    border-radius: 50%;
    color: #6c757d;
    transition: all 0.3s ease;
}

.pagination-gradient .page-item.active .page-link {
    background: linear-gradient(45deg, #6b5ce7, #a178df);
    color: white;
    box-shadow: 0 2px 10px rgba(107, 92, 231, 0.4);
}

.pagination-gradient .page-link:hover {
    background: linear-gradient(45deg, #a178df, #6b5ce7);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 92, 231, 0.4);
}

.pagination-gradient .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

select.form-select{padding: 0.4375rem 1.2rem 0.4375rem 0.5rem; color: #a4a4a4;}
select.form-select.w-auto { padding-right: 2rem;}

.t_over1{ display: inline-block; white-space: nowrap; width: 100%; overflow: hidden; text-overflow:ellipsis;}
.t_over2{  display: -webkit-box; width: 100%; -webkit-box-orient: vertical; -webkit-line-clamp: 5;  -webkit-box-orient: vertical;  overflow: hidden;  text-overflow: ellipsis;}
.t_over3{ display: inline-block; white-space: nowrap; width: 500px; overflow: hidden; text-overflow:ellipsis;}
.t_over4{ display: inline; white-space: nowrap; width: auto; overflow: hidden; text-overflow:ellipsis;}

.t_c1{ color: #rgba(0,0,0,0.5) !important;}
.t_c2{ color:#9c9fa6;}
.t_break1{ width: 100%; word-break: break-word; white-space: normal; margin-bottom: 0;}
.t_break2{ width: 400px; word-break: break-word; white-space: normal; margin-bottom: 0;}
.t_break3{ width: 80%; word-break: break-word; white-space: normal; margin-bottom: 0;}

.nav_tab1{font-size: 17px !important; padding: auto 5px !important; }

.ad-audio li {
  display: flex;
  align-items: center;
  gap: 10px; 
  padding: 3px 0;
  border-bottom: 1px dashed #ccc; 
}

.ad-audio i {
  flex-shrink: 0; /* 保持圖示大小不縮小 */
}


.sidetext { width: 100%; overflow: auto; max-height: 180px;
            scrollbar-arrow-color:#FFFFFF; scrollbar-face-colorR:#e5e5e5; scrollbar-darkshadow-color:#dadada; scrollbar-highlight-color:#dadada;
            scrollbar-3dlight-color:#e5e5e5; scrollbar-shadow-color:#cfcfcf; scrollbar-track-color:#cfcfcf;}
.sidetext::-webkit-scrollbar { width: 12px;}
.sidetext::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); border-radius: 10px; background-color: #F5F5F5;}
.sidetext::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.7); background-color: #8d8d8d;}


.sidetext2{ height: 500px; margin-bottom: 10px; overflow:auto;            scrollbar-arrow-color:#9f9f9f; scrollbar-face-colorR:#CCCCCC; scrollbar-darkshadow-color:#999999; scrollbar-highlight-color:#999999;
            scrollbar-3dlight-color:#d0d0d0; scrollbar-shadow-color:#d0d0d0; scrollbar-track-color:#fff;}
.sidetext2::-webkit-scrollbar { width: 12px;}
.sidetext2::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 10px; background-color: #fff;}
.sidetext2::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); background-color: #f1f1f1;}


.bg_white1{ background-color: rgba(255,255,255,0.3);}

.max-h1{max-height: 80px;}
.min-w1{min-width: 60%;}
.width30{ width: 30px; height: 30px; min-width: 30px; min-height: 30px;}
.width50{ width: 50px; height: 50px; min-width: 50px; min-height: 50px; padding: 0 !important;}
.width70{ width: 70px; height: 70px; min-width: 70px; min-height: 70px;}
.height40{ height: 40px;}

.btn-width1{ width: 60px !important;  color: rgba(0,0,0,0.5) !important; padding: 5px;}
.btn-outline-dark:hover{color: #fff !important;}

.font-size11{color: #9c9fa6; font-size: 11px;}

.mt--15{margin-top: -15px;}

#myTable thead th {
  background-color: #3e4b5b !important;
  color: #fff !important;
}

/* 2026-08-27（第十五輪）：讓 my_speaking.jsp 的「AI 口說對話練習記錄」表頭配色與上方 #myTable 一致 */
#askaiTable thead th {
  background-color: #3e4b5b !important;
  color: #fff !important;
}

.page-link.active, .active > .page-link { background-color:#3e4b5b; }



/* 改變 Tooltip 背景和文字 */
.tooltip-light .tooltip-inner {
  background-color: #dc3545; /* danger 紅 */
  color: #fff;
}

/* 改變箭頭顏色（根據位置加） */
.tooltip-light .bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #dc354 !important;
}

.tooltip-light .bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #dc3545 !important;
}

.tooltip-light .bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #dc3545 !important;
}

.tooltip-light .bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #dc3545 !important;
}

/* form */
/* 隱藏原本的 checkbox 樣式 */
/* 隱藏原生 checkbox */
.custom-checkbox {
  display: none;
}

/* 外框 */
.custom-checkbox-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 20px;
}

/* 顯示自定 checkbox 外觀 */
.custom-checkbox-label .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #6b5ce7;
  border-radius: 4px;
}

/* 當被勾選時顯示打勾 */
.custom-checkbox:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #6b5ce7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

legend {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.form-check .form-check-label{margin-left: 0px; font-size: 1.1rem; line-height: 1.8;}

/* radio 選中後的 label 樣式 */
.form-check-input:checked + .form-check-label {
  background-color: #dbeafe;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  color: #0d6efd;
}

/* label 基本樣式 */
.form-check-label {
  cursor: pointer;
  padding-left: 0.25rem;
}

/* hover 效果 */
.form-check:hover .form-check-label {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

/* radio 圓鈕樣式 */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #0d6efd;
  background-color: #fff;
  accent-color: #0d6efd;
  margin-top: 0.35em;
}

/* hover 強化提示 */
.form-check-input:hover {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.field input {
	color: #f27d00;
    font-size: 16px;
    line-height: 28px;
    padding: 4px 10px;
	margin: 5px auto;
    width: 15%;
    min-height: 30px;
    border: unset;
    border-radius: 4px;
    outline-color: rgb(255 132 0 / 0.5);
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
                rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
                rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
                rgba(60, 66, 87, 0.16) 0px 0px 0px 1px, 
                rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
                rgba(0, 0, 0, 0) 0px 0px 0px 0px, 
                rgba(0, 0, 0, 0) 0px 0px 0px 0px;
}

/* 月曆 */
.calendar {
      max-width: 400px;
      margin: auto;
      background: white;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      overflow: hidden;
    }
    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #6b5ce7;
      color: white;
      padding: 10px;
    }
    .calendar-header button {
      background: none;
      border: none;
      color: white;
      font-size: 1.2em;
      cursor: pointer;
    }
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      padding: 10px;
      gap: 5px;
    }
    .calendar-day,
    .calendar-date {
      text-align: center;
      padding: 8px 0;
    }
    .calendar-day {
      font-weight: bold;
      background: #f0f0f0;
    }
    .calendar-date {
      background: #ffffff;
      border-radius: 6px;
      font-size: 1em;
      min-height: 60px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      line-height: 1.2;
    }
	.calendar-date:hover{ background: #f6f6f6;}
    .calendar-date.today {
      background: linear-gradient(45deg, #6b5ce7, #a178df);
      color: #ffffff;
      font-weight: bold;
    }
    .calendar-date.read {
      background: #fe7c96;
	  background: linear-gradient(45deg, #fe7c96, #ff98ad);
      color: #ffffff;
      font-weight: bold;
    }
    .calendar-date .tag {
      font-size: 11px;
      font-weight: normal;
      margin-top: 2px;
    }
.calendar-date {
  position: relative; /* 為了放絕對定位標記 */
}

.read-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 50%;
  height: 5px;
  background-color: #fe7c96;
  border-radius: 3px;
}

#listcourse {
  border-collapse: collapse;
  width: 100%;
}

#listcourse td, #listcourse th {
  border-bottom: 1px solid #ddd;
  padding: 8px;
}


#listcourse tr:hover {background-color: #ddd;}

#listcourse th {
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: left;
  background-color: #fff;
  color: #333;
}

/* 主題頻道 */
.imageborder1{
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  border: 3px solid #CCC;
  transition:width 0.5s; -webkit-transition:width 0.5s; -moz-transition:width 0.5s; -o-transition:width 0.5s; -ms-transition:width 0.5s;  
}

.topic {
  position: relative;
  width: 100%; /* 跟著 col-md-3 的寬度跑 */
  aspect-ratio: 16 / 10; /* 保持圖片比例 */
  overflow: hidden;
  border-radius: 8px;
}

.item {
  width: 100%;
  height: 100%;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  border: 3px solid #ededed;
}

.topic:hover .item img {
  transform: scale(1.2);
}

.close-tag {
  font-size: 12px;
  line-height: 1;
}

.iframechat1{ height: 400px;}
.modal-800{ --bs-modal-width: 800px !important; --bs-modal-bg: #fff !important; z-index: 99999999999999999999;}



.nav-link{color: #333 !important; font-weight: normal;}
.nav-link:hover{color: #666 !important; border-left: 0px; border-top: 0px; border-right: 0px;}
.nav-link.active{ color: #ff8400 !important; border-bottom: 2px solid #ff8400 !important; font-weight: bold !important; 
border-left: 0px; border-top: 0px; border-right: 0px; background-color: #fff3cd !important;}
.tabscroll{height: 400px;}

@media (max-width: 820px) {
 .t_over3{ display: inline-block; white-space: nowrap; width: 190px; overflow: hidden; text-overflow:ellipsis;}	
}
@media (max-width: 670px) {
  #boxes {
    display:flex;
    flex-direction: column;

    max-width: 270px;
    margin: auto;


    height: auto;
    padding-block: 60px;
  }



}
@media (max-width: 480px) {
.content-wrapper {padding: 1rem;}	
.t_over2{  display: -webkit-box; width: 100%; -webkit-box-orient: vertical; -webkit-line-clamp: 2;  -webkit-box-orient: vertical;  overflow: hidden;  text-overflow: ellipsis;}
.player h1 { width: 50%; }
.player p { width: 50%; }
.calendar { width: 100%;}
.t_over3{ display: inline-block; white-space: nowrap; width: 100px; overflow: hidden; text-overflow:ellipsis;}	
.t_over4{ display: inline-block; white-space: nowrap; width: 90px; overflow: hidden; text-overflow:ellipsis;}
.nav_tab1{font-size: 13px !important; padding: auto 3px !important; } 
.t_break1{ width: 170px; word-break: break-word; white-space: normal; margin-bottom: 0;}
.t_break3{ width: 90%; word-break: break-word; white-space: normal; margin-bottom: 0;}
.t_break4{ word-break: break-word; white-space: normal; margin-bottom: 0;}
.iframechat1{ height: 230px;}
}
@media (max-width: 400px) {
.t_over4{ display: inline-block; white-space: nowrap; width: 50px; overflow: hidden; text-overflow:ellipsis;}	
.player h1 { width: 45%; }
.player p { width: 45%; }
}