﻿@charset "UTF-8";
body {
  /* 垂直滑動 */
  /* 直式 3:4 */
}
body .pic.ratio {
  position: relative;
  display: block;
  /* 兼容 Bootstrap 的 ratio 變數與原生 aspect-ratio */
}
body .pic.ratio::before {
  content: "";
  display: block;
  padding-top: var(--bs-aspect-ratio, 0); /* 若有 --bs-aspect-ratio 就用 */
}
body .pic.ratio > img, body .pic.ratio > picture, body .pic.ratio > video, body .pic.ratio > iframe {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .pic.ratio-3x4 {
  aspect-ratio: 4/4;
}
body .pic.ratio.ratio-3x4 {
  --bs-aspect-ratio: calc(4 / 4 * 100%);
}
body .content > .container {
  padding: 0;
}
@media (max-width: 1199px) {
  body:not(.home) .page-content .container {
    max-width: 1100px;
  }
}
body:not(.home) .page-content .container .content {
  padding: 0 1.5rem;
}
@media (min-width: 991px) {
  body:not(.home) .page-content .container .content {
    padding-left: 2.5rem;
    min-height: 300px;
  }
}
body:not(.home) .page-content .editor {
  margin-bottom: 2rem !important;
}
body:not(.home) .page-content .editor.footer_editor {
  margin-bottom: 0 !important;
}
@media (max-width: 1199px) {
  body:not(.home) .page-content .container .breadcrumb li:last-child a {
    display: inline-block;
    max-width: 30ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}
@media (max-width: 575px) {
  body:not(.home) .page-content .container .breadcrumb li:last-child a {
    max-width: 15ch;
  }
}
body .banner_pic picture .img-fluid {
  width: 100%;
}
body .h2 {
  position: relative;
  font-size: 36px;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  body .h2 {
    font-size: 2.5rem;
  }
}
@media (max-width: 768px) {
  body .h2 {
    margin-bottom: 1rem;
  }
}
body .h2 .txt-tw {
  --rib-cut: 25px; /* 右邊「切掉」的寬度 */
  position: relative;
  font-size: 32px;
  color: #fff;
  padding: 17px 40px 17px 70px;
  background: url(../images/templates/coursetemplates/default/h_icon01.svg) no-repeat 20px center #60629b;
  margin-right: 5px;
  clip-path: polygon(0 0, calc(100% - var(--rib-cut)) 0, 100% 100%, 0 100%);
}
@media (max-width: 1399px) {
  body .h2 .txt-tw {
    font-size: 28px;
  }
}
@media (max-width: 992px) {
  body .h2 .txt-tw {
    font-size: 25px;
    padding: 15px 40px 15px 60px;
    background-size: 33px !important;
  }
}
body .h2 .txt-en {
  font-size: 36px;
  color: #3a4271;
  font-weight: bold;
}
@media (max-width: 992px) {
  body .h2 .txt-en {
    font-size: 23px;
  }
}
body.news .h2 .txt-en {
  display: none !important;
}
body:not(.home) .h2 {
  display: flex;
  align-items: center;
}
body:not(.home) .h2 .txt-tw {
  font-size: 22px;
  padding: 13px 35px 13px 55px;
  background-size: 33px;
  margin-right: 0;
}
@media (max-width: 992px) {
  body:not(.home) .h2 .txt-tw {
    font-size: 20px;
    padding: 15px 40px 15px 57px;
    background-size: 30px !important;
  }
}
body:not(.home) .h2 .txt-tw:before {
  top: 0px;
  border-top: 54px solid transparent;
}
@media (max-width: 1668px) {
  body:not(.home) .h2 .txt-tw:before {
    border-top: 55px solid transparent;
  }
}
body:not(.home) .h2 .txt-en {
  display: none !important;
}

.page_wrapper {
  overflow: hidden;
}

.red {
  color: #df2012 !important;
}

.more_cs {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border-radius: 30px;
  display: table;
  padding: 14px 10px;
  background-color: #cdad7d;
  margin: 40px auto;
  width: 163px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease !important;
}
.more_cs::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  opacity: 0.5;
}
.more_cs:hover {
  background-color: #60629b;
  color: #fff;
}
.more_cs:hover::before {
  animation: shine 0.8s forwards;
}

.more_a a {
  position: relative;
  font-size: 24px;
  color: #fff;
  text-align: right;
  display: block;
  width: 60%;
  margin: 40px auto 0;
  transition: all 0.5s;
  font-weight: bold;
}
.more_a a:before {
  content: " ";
  display: block;
  position: absolute;
  background: url("../images/all/bo_arrow.svg") left;
  height: 16px;
  width: calc(100% - 145px);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.5s;
}
.more_a a:hover {
  color: #cdad7d;
}
.more_a a:hover:before {
  opacity: 0.5;
}

.text-center ul li {
  margin: 0 3px;
}

a.ma_bat {
  position: relative;
  color: #cdad7d;
  text-decoration: revert;
}
a.ma_bat:hover {
  color: #fff;
}

.modal-header {
  padding: 0 0 10px;
  margin-bottom: 10px;
}
.modal-header .btn-close {
  border-radius: 50%;
  position: absolute;
  background-color: #cdad7d;
  color: #fff;
  padding: 0;
  display: table;
  font-size: 20px;
  right: -16px;
  top: -14px;
  margin: 0;
  width: 40px;
  height: 40px;
  padding-top: 0;
  font-weight: bold;
  opacity: 1;
  background-image: url("../images/templates/contacttemplates/th001/close.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: unset;
}
.modal-header h4 {
  font-weight: bold;
  text-align: center;
  width: 100%;
  font-family: "Noto Sans TC", sans-serif;
}

.modal-body {
  overflow: auto;
  height: 300px;
}

.modal-content {
  padding: 30px;
}

/* 表單 */
.selfcheck_list_item {
  -webkit-transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: flex;
  color: #fff;
  font-size: 16px;
}
.selfcheck_list_item:hover {
  cursor: pointer;
}
.selfcheck_list_item input {
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  padding-right: 0px;
  background: none;
  border: none;
  outline: none;
  resize: none;
}
.selfcheck_list_item input + span {
  width: 18px;
  height: 18px;
  border-radius: 0;
  margin-right: 5px;
  display: block;
  background: #ffffff;
  border: 1px solid #cdad7d;
  position: relative;
  -webkit-transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-right: 10px;
}
.selfcheck_list_item input + span::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  background: url("../../../../images/templates/contacttemplates/th001/icon_check.svg") no-repeat;
  background-size: cover;
  aspect-ratio: 18/17;
  width: 64.2857%;
  -webkit-transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0;
}
.selfcheck_list_item input:checked + span {
  background: #cdad7d;
  border-color: #fff !important;
}
.selfcheck_list_item input:checked + span:after {
  opacity: 1;
}

/* 表單 end */
/* 日期 */
body .flatpickr-months .flatpickr-prev-month:hover svg,
body .flatpickr-months .flatpickr-next-month:hover svg {
  fill: #222344;
}
body .flatpickr-day.selected, body .flatpickr-day.startRange, body .flatpickr-day.endRange, body .flatpickr-day.selected.inRange, body .flatpickr-day.startRange.inRange, body .flatpickr-day.endRange.inRange, body .flatpickr-day.selected:focus, body .flatpickr-day.startRange:focus, body .flatpickr-day.endRange:focus, body .flatpickr-day.selected:hover, body .flatpickr-day.startRange:hover, body .flatpickr-day.endRange:hover, body .flatpickr-day.selected.prevMonthDay, body .flatpickr-day.startRange.prevMonthDay, body .flatpickr-day.endRange.prevMonthDay, body .flatpickr-day.selected.nextMonthDay, body .flatpickr-day.startRange.nextMonthDay, body .flatpickr-day.endRange.nextMonthDay {
  background: #222344;
  border-color: #222344;
}
body .flatpickr-day.inRange, body .flatpickr-day.prevMonthDay.inRange, body .flatpickr-day.nextMonthDay.inRange, body .flatpickr-day.today.inRange, body .flatpickr-day.prevMonthDay.today.inRange, body .flatpickr-day.nextMonthDay.today.inRange, body .flatpickr-day:hover, body .flatpickr-day.prevMonthDay:hover, body .flatpickr-day.nextMonthDay:hover, body .flatpickr-day:focus, body .flatpickr-day.prevMonthDay:focus, body .flatpickr-day.nextMonthDay:focus {
  background: #222344;
  border-color: #222344;
  color: #fff;
}
body .flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: bold;
}

/* 日期 end */
body .form-select:focus,
body .form-control:focus {
  background-color: #fff;
}

.form-select,
.form-control {
  border-radius: 0;
  border: 1px solid #c7c7c7;
  height: 40px;
}

.tab-content > .tab-pane:not(.active),
.pill-content > .pil -pane:not(.active) {
  display: block;
  height: 0;
  overflow-y: hidden;
}

.slick .slick-prev:before,
.slick .slick-next:before {
  display: none;
}
.slick .slick-prev,
.slick .slick-next {
  display: none;
  width: 60px;
  height: 60px;
  transition: all 0.5s;
  border-radius: 50%;
  transform: unset;
  z-index: 1;
  background-size: 25% !important;
}
.slick .slick-prev:focus, .slick .slick-prev:hover,
.slick .slick-next:focus,
.slick .slick-next:hover {
  background-size: auto;
}
.slick .slick-prev {
  left: -5%;
  background: url("../images/all/arrow_left.svg") no-repeat #222344 center;
}
.slick .slick-prev:focus, .slick .slick-prev:hover {
  background: url("../images/all/arrow_left.svg") no-repeat #cdad7d center;
}
.slick .slick-next {
  right: -5%;
  background: url("../images/all/arrow_right.svg") no-repeat #222344 center;
}
.slick .slick-next:focus, .slick .slick-next:hover {
  background: url("../images/all/arrow_right.svg") no-repeat #cdad7d center;
}

body:not(.home) .container nav.pt-4 {
  padding-top: 1rem !important;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 13px;
}
.breadcrumb li::before {
  transform: scale(0.8);
}
.breadcrumb li:first-child a {
  background: url(../Images/Templates/NewsTemplates/TH001/bread_01.svg) no-repeat left center;
  text-indent: -9999px;
  display: block;
  width: 17px;
  height: 15px;
  background-size: cover;
}

body .btn-primary {
  background-color: #e86e24;
  border: none;
}
body .btn-primary:hover {
  background-color: #cdad7d;
}

.page-box {
  margin-bottom: 2.5rem !important;
  padding: 0 2rem;
  justify-content: center !important;
}
.page-box ul {
  gap: 5px;
}
.page-box ul li {
  padding: 0 1px;
}
.page-box ul li.active a {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.page-box ul li.active a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  opacity: 0.5;
}
.page-box ul li.active a:hover {
  filter: brightness(110%);
  color: #fff !important;
}
.page-box ul li.active a:hover::before {
  animation: shine 0.8s forwards;
}
.page-box ul li a {
  border: none;
  border-radius: 50%;
  padding: 5px 13px;
  color: #000;
  transition: all 0.5s ease;
}
.page-box ul li a:hover {
  background-color: unset;
  color: #cdad7d !important;
}
.page-box ul li a:focus {
  box-shadow: unset;
}
.page-box ul li.active a {
  background-color: #cdad7d;
  color: #fff !important;
}
.page-box ul li:first-child a, .page-box ul li:nth-child(2) a, .page-box ul li:last-child a, .page-box ul li:nth-last-child(2) a {
  padding: 5px 10px;
}
.page-box ul li:first-child a:hover, .page-box ul li:nth-child(2) a:hover, .page-box ul li:last-child a:hover, .page-box ul li:nth-last-child(2) a:hover {
  background-color: unset;
  color: #cdad7d !important;
}
.page-box.page-box_show ul li a {
  position: relative;
  color: #fff !important;
  margin: 0 auto 0;
  display: table;
  font-size: 18px;
  background-color: #cdad7d;
  padding: 10px 25px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.page-box.page-box_show ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  opacity: 0.5;
}
.page-box.page-box_show ul li a:hover {
  filter: brightness(110%);
  background-color: #cdad7d !important;
  color: #fff !important;
}
.page-box.page-box_show ul li a:hover::before {
  animation: shine 0.8s forwards;
}

@media (max-width: 767px) {
  .h2 {
    margin-bottom: 20px;
  }
  .h2 .txt-en {
    font-size: 22px;
    margin-top: 10px;
    display: block;
    opacity: 0.6;
  }
  .h2 .txt-tw {
    font-size: 24px;
    padding: 17px 20px 17px 70px;
    width: 95%;
    display: block;
  }
  .h2 .txt-tw:before {
    top: 0;
    right: -11px;
    border-top: 63px solid transparent;
    border-left: 11px solid #606296;
  }
  .h2.h1_tit {
    margin-bottom: 1.5rem;
  }
  .h2:before {
    width: 30px;
    height: 45px;
    left: -33px;
    top: -23px;
    background-size: cover;
  }
  .slick .slick-prev,
  .slick .slick-next {
    width: 40px;
    height: 40px;
    background-size: 25%;
  }
  .more_a a {
    font-size: 20px;
    width: 90%;
    margin: 10px auto 0;
  }
  .more_cs {
    padding: 9px 10px;
    font-size: 16px;
    width: 123px;
  }
}
/* 捲軸設定 */
html {
  /* 保留捲軸佔位，避免換頁抖動位移 */
  scrollbar-gutter: stable;
  overflow-y: auto;
  scroll-behavior: smooth;
}
html,
html body {
  scrollbar-width: thin;
  scrollbar-color: #60629b #cfcfcf;
}
html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: #59aeb7;
  border-radius: 6px;
  border: 3px solid transparent;
}
html::-webkit-scrollbar-corner {
  background: transparent;
}

/* 預設桌機導覽列高度 88px */
#news-list {
  scroll-margin-top: 88px;
}
@media (max-width: 1320px) {
  #news-list {
    scroll-margin-top: 73px;
  }
}
@media (max-width: 1199px) {
  #news-list {
    scroll-margin-top: 69px;
  }
}

@keyframes shineX {
  0% {
    transform: translate3d(-150%, 0, 0) skewX(-25deg);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(390%, 0, 0) skewX(-25deg);
    opacity: 0.3;
  }
}
#courseList {
  transition: opacity 0.35s ease;
  opacity: 1;
  position: relative;
}

#courseList.is-loading {
  opacity: 0.6;
}

#courseList.is-fading-in {
  opacity: 0;
}

#courseList.is-ready {
  opacity: 1;
}

#courseList .course-loading {
  display: grid;
  place-items: center;
  padding: 48px 0;
  font-weight: 600;
}

/* ========== Smooth fade for Top Editor & List ========== */
#courseTopEditor,
#courseListRoot,
[data-course-list-root] {
  will-change: opacity, transform;
}

#courseTopEditor.fade-animating,
#courseListRoot.fade-animating,
[data-course-list-root].fade-animating {
  transition: all 0.18s;
}

#courseTopEditor.fade-leave,
#courseListRoot.fade-leave,
[data-course-list-root].fade-leave {
  opacity: 0;
  transform: translateY(0px);
}

#courseTopEditor.fade-enter,
#courseListRoot.fade-enter,
[data-course-list-root].fade-enter {
  opacity: 0;
  transform: translateY(0px);
}
