@charset "UTF-8";
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Noto Sans TC", serif;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  background: linear-gradient(115deg, rgba(229, 237, 247, 0.3), rgba(197, 215, 236, 0.4), rgba(184, 207, 232, 0.5));
}

header {
  display: flex;
  gap: 10px;
  position: fixed;
  justify-content: space-between;
  background-color: white;
  align-items: center;
  width: 100%;
  padding: 10px 150px;
  z-index: 5;
  border-bottom: 1px solid #D9D9D9;
}
@media (max-width: 768px) {
  header {
    padding: 10px 15px;
    flex-direction: column;
  }
}
@media (max-width: 1140px) and (min-width: 768px) {
  header {
    padding: 10px 50px;
  }
}
header .header__title {
  font-size: 24px;
  color: #4B4B4B;
}
header .header__title a {
  color: #4B4B4B;
  display: flex;
}
header .header__title a img {
  margin-right: 10px;
}
header .header__container {
  display: flex;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  header .header__container {
    justify-content: space-between;
    width: 90%;
  }
}
header .header__container .header__container__right {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
header .header__container .header__localeEng {
  /*width: 60px; light update change to auto*/
  width: auto;
  height: 35px;
  padding: 8px 16px;
  border: white;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #4B4B4B;
}
header .header__container .header__localeZh {
  /*width: 60px; light update change to auto*/
  width: auto;
  height: 35px;
  padding: 8px 16px;
  border: white;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  display: none;
  text-decoration: none;
  color: #4B4B4B;
}

main {
  display: block;
  align-items: center;
  padding: 100px 150px 48px;
  min-height: calc(100vh - 80px);
}
@media (max-width: 768px) {
  main {
    padding: 180px 0;
  }
}
@media (max-width: 1140px) and (min-width: 768px) {
  main {
    padding: 100px 50px;
  }
}
main .top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  main .top {
    padding: 0 20px;
  }
}
main .top .top__title {
  font-size: 28px;
  font-weight: 500;
}
main .top .top__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
@media (max-width: 768px) {
  main .top .top__container {
    flex-direction: column;
    gap: 20px;
  }
}
main .top .top__container .top__dropdown {
  display: none;
  color: #4681FF;
  text-decoration: underline;
  padding: 0 24px;
  gap: 16px;
}
main .top .top__container .top__dropdown a {
  color: #4681FF;
}
main .top .top__container .js-dropdown-link {
  cursor: pointer;
  color: #002F94;
  display: flex;
  flex-direction: row;
  font-size: 16px;
}
main .top .top__container .js-exploredropdown-link {
  cursor: pointer;
  color: #002F94;
  display: flex;
  flex-direction: row;
  font-size: 16px;
}
main .top .top__container .js-criteria-table-link {
  cursor: pointer;
  color: #002F94;
  display: flex;
  flex-direction: row;
  font-size: 16px;
}
main .top .top__container .top__download-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  main .top .top__container .top__download-box {
    width: max-content;
    max-width: 90%;
  }
}
main .top .top__container .top__download-box .top__download-btn {
  display: flex;
  flex-direction: row;
  color: #0D40C3;
  border: 0.8px solid #0D40C3;
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  /*light update 231214 */
}
main .top .top__container .top__download-box .top__download-btn .top__download-btn-lang {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 19px;
  border-radius: 2px;
  background-color: #0D40C3;
  color: #FFFFFF;
}
main .top .top__container .top__download-box .top__download-btn .top__download-btn-text a {
  text-decoration: none;
  color: #002F94;
}
main .top .top__container .top__download-box .top__download-btn .top__download-btn-text a:hover {
  text-decoration: underline;
}
main .top .top__container .top__download-box .top__download-btn:hover {
  background-color: lightskyblue;
}
main .top .top__container .top__download-box .top__download-btn:hover .top__download-btn-lang {
  background-color: #FFFFFF;
  color: #0D40C3;
}
main .menu .menu__main-tab {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: #002F94;
  padding-left: 16px;
  padding-right: 16px;
}
main .menu .menu__main-tab .main-tab-btn-grade {
  width: 114px;
  height: 46px;
  color: white;
  background-color: #002F94;
  border: none;
  cursor: pointer;
}
main .menu .menu__main-tab .main-tab-btn-rank {
  width: 114px;
  height: 46px;
  color: #BFBFBF;
  background-color: #002F94;
  border: none;
  cursor: pointer;
}
main .menu .menu__first-tab-content {
  display: none;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #FFFFFF;
}
main .menu .menu__first-tab-content .menu__apply-testimony {
  padding-bottom: 16px;
  padding-top: 16px;
  background-color: #FFE199;
  padding-left: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 16px;
  color: #2D2D2D;
}
main .menu .menu__first-tab-content .second-tab {
  display: flex;
  flex-direction: row;
  height: 44px;
  background-color: white;
  padding-left: 16px;
  padding-right: 16px;
  flex-wrap: nowrap;
}
@media (max-width: 768px) {
  main .menu .menu__first-tab-content .second-tab {
    width: 100%;
    overflow-x: auto;
  }
}
main .menu .menu__first-tab-content .second-tab .second-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2D2D2D;
  background-color: white;
  border: none;
  height: 44px;
  padding-right: 24px;
  padding-left: 24px;
  text-decoration: none;
}
main .menu .menu__first-tab-content .second-tab .second-tab-container {
  display: flex;
  white-space: nowrap;
  width: 100%;
  overflow-x: hidden;
}
main .menu .menu__first-tab-content .second-tab .second-tab-nav-previous {
  display: none;
  font-size: 20px;
  height: 44px;
  align-items: center;
  cursor: pointer;
}
@media only screen and (max-width: 890px) {
  main .menu .menu__first-tab-content .second-tab .second-tab-nav-previous {
    display: flex;
  }
}
main .menu .menu__first-tab-content .second-tab .second-tab-nav-next {
  font-size: 20px;
  display: none;
  height: 44px;
  align-items: center;
  cursor: pointer;
}
@media only screen and (max-width: 890px) {
  main .menu .menu__first-tab-content .second-tab .second-tab-nav-next {
    display: flex;
  }
}
main .menu .menu__first-tab-content .menu__tab-wrapper-grade {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px;
  gap: 48px;
}
@media (max-width: 768px) {
  main .menu .menu__first-tab-content .menu__tab-wrapper-grade {
    padding: 48px 0;
  }
}
main .menu .menu__first-tab-content .menu__tab-wrapper-rank {
  display: flex;
  flex-direction: column;
  padding: 48px 100px;
  gap: 48px;
}
@media (max-width: 768px) {
  main .menu .menu__first-tab-content .menu__tab-wrapper-rank {
    padding: 48px 0;
  }
}
@media (max-width: 1140px) and (min-width: 768px) {
  main .menu .menu__first-tab-content .menu__tab-wrapper-rank {
    padding: 48px 50px;
  }
}
main .menu .tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}
main .menu .tab .tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}
main .menu .tab .tab button.active {
  color: white;
  pointer-events: none;
}
main .menu .tab .tab button.block {
  color: #6F6F6F;
}
main .table-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #0D40C3;
  color: #FFFFFF;
  text-align: center;
  padding-left: 30px;
  padding-right: 20px;
}
@media (max-width: 1140px) and (min-width: 768px) {
  main .table-header-row {
    padding-left: 15px;
    padding-right: 10px;
  }
}
main .table-rows {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background-color: #F6F6F6;
  border-top: solid 1px #909090;
  padding: 12px 20px 12px 30px;
}
@media (max-width: 768px) {
  main .table-rows {
    border: none;
    padding-right: 10px;
    padding-left: 15px;
  }
}
@media (max-width: 1140px) and (min-width: 768px) {
  main .table-rows {
    padding-left: 15px;
    padding-right: 10px;
  }
}

.es-page-query {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.es-page-query h1 {
  font-size: 28px;
}

h1 {
  text-align: center;
}

.entry-tab-menu {
  display: flex;
  text-align: left;
  align-items: flex-start;
  align-content: center;
  margin: 16px;
  width: auto;
  font-size: 20px;
  padding-left: 36px;
}
.entry-tab-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .entry-tab-menu ul {
    flex-direction: column;
  }
}
.entry-tab-menu ul li {
  cursor: pointer;
}
.entry-tab-menu ul li a {
  color: #646464;
  text-decoration: none;
}
.entry-tab-menu ul li a:hover {
  color: #000;
}
.entry-tab-menu ul li a.active {
  color: #002F94;
}

.es-container {
  background: #fff;
  display: flex;
  border-radius: 40px;
  min-height: 88px;
  width: 80%;
  position: relative;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 18px;
  align-items: normal;
  overflow: hidden;
  border: 1px solid #dedede;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .es-container {
    width: 100%;
  }
}

.es-semester {
  border-right: 1px solid #D9D9D9;
  padding: 0 16px;
  width: 180px;
}
@media (max-width: 768px) {
  .es-semester {
    width: 50%;
  }
}
.es-semester label {
  color: #3D3D3D;
}
.es-semester select {
  font-size: 20px;
  padding: 8px 0;
  display: block;
  border: none;
  box-shadow: none;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.es-semester select:focus {
  outline: none;
}

.es-dept {
  padding: 0 56px 0 16px;
  width: 100%;
}
.es-dept label {
  color: #3d3d3d;
}
.es-dept select {
  font-size: 20px;
  padding: 8px 0;
  display: block;
  border: none;
  box-shadow: none;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.es-dept select:focus {
  outline: none;
}

.ic-search {
  background: #1F50AD;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  text-align: center;
  align-items: center;
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -24px;
  cursor: pointer;
}
.ic-search img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.select-dept-hint {
  color: #002F94;
}

.select-info-notice {
  margin-block: 36px;
  background-color: rgba(229, 77, 22, 0.15);
  padding: 0 36px;
  border-radius: 38px;
  width: 70%;
}
@media (max-width: 768px) {
  .select-info-notice {
    padding: 0 16px;
  }
}
.select-info-notice h3 {
  color: #4b4b4b;
}
.select-info-notice p {
  color: rgb(229, 77, 22);
  font-size: 14px;
  display: flex;
  align-items: center;
}
.select-info-notice ul {
  margin: 0;
  padding: 0 0 8px 0;
}
.select-info-notice ul li {
  color: rgb(229, 77, 22);
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  display: flex;
  align-items: center;
}

.es-course-all-notice {
  padding: 6px;
}

.icon-alert {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

#search-form {
  width: 100%;
}

.totcrd-result-title {
  text-align: left;
}
.totcrd-result-title h1 {
  font-size: 24px;
  text-align: left;
  color: rgb(0, 47, 148);
}
.totcrd-result-title h3 {
  font-size: 16px;
  font-weight: normal;
}

.totcrd-table {
  background: #fff;
  border-radius: 20px;
  margin: 0;
  padding: 16px;
}

table {
  margin: 16px;
  border-collapse: collapse;
}
table th {
  white-space: normal;
  background: #EDF2FE;
  border: 1px solid #e4e4e7;
  padding-block: 8px;
  width: 14%;
  color: #3a5ccc;
}

.table-td-no-border td {
  border: none !important;
}
.table-td-no-border td table{
  margin: 0 !important;
}
.table-td-no-border td table table{
  margin: 0 !important;
}

.highlight-td {
  background: #FBFBFB;
  text-align: center;
  color: #3D3D3D;
  font-weight: bold;
}

.totcrd-tab-menu {
  display: block;
  align-items: center;
  align-content: center;
  margin-block: 30px 16px;
}

.btn-hover {
  position: relative;
  display: inline-flex;
  height: 48px; /* 12 * 4 px */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #424242;
  padding: 0 24px;
  font-weight: 500;
  color: #e5e7eb !important;
  transition: all 0.5s;
  cursor: pointer;
  text-decoration: none;
  margin-right: 16px;
}
.btn-hover.active {
  background: #002F94;
  pointer-events: none;
}
.btn-hover .btn-text {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn-hover .btn-icon {
  position: absolute;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 24px; /* 調整 icon 大小 */
  height: 24px;
}
.btn-hover:hover .btn-text {
  transform: translateX(-100%);
  opacity: 0;
}
.btn-hover:hover .btn-icon {
  transform: translateX(0);
  opacity: 1;
}

.hide-item {
  display: none !important;
}

.totcrd-top-table {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border: 1px solid #D9D9D9;
  border-collapse: collapse;
  margin: 0 auto;
}
.totcrd-top-table td {
  border: 1px solid #e4e4e7;
  padding-block: 8px;
  text-align: center;
}

.totcrd-bottom-table {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 1px solid #D9D9D9;
  border-collapse: collapse;
  margin: 0 auto;
}
.totcrd-bottom-table td {
  border: 1px solid #e4e4e7;
  padding-block: 8px;
}

.grpc-inside-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin: 0 auto;
}
.grpc-inside-table th {
  border: none;
}
.grpc-inside-table td {
  border: none;
  padding-block: 8px;
}

.w20 {
  width: 20vw;
}

.w30 {
  width: 30vw;
}

.w100 {
  width: 100%;
}

.mcou-semester {
  width: auto;
  display: flex;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .mcou-semester {
    width: auto;
  }
}
.mcou-semester label {
  color: #B4B4B4;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: fit-content;
  align-items: center;
  align-content: center;
  margin-right: 16px;
  background: #f9f9fa;
  padding-inline: 12px;
  border-radius: 8px;
}
.mcou-semester select {
  font-size: 16px;
  padding: 6px 0;
  display: block;
  border: none;
  box-shadow: none;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.mcou-semester select:focus {
  outline: none;
}

.margin-reset {
  margin: 0 !important;
}

.margin-b16-in0 {
  margin-block: 16px !important;
  margin-inline: 0 !important;
}

.pd8 {
  padding: 8px;
}

.pd-0 {
  padding-block: 0 !important;
}

footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 150px;
  gap: 16px;
  background-color: white;
  justify-content: center;
  border-top: 1px solid #D9D9D9;
}
@media (max-width: 768px) {
  footer {
    padding: 10px 15px;
  }
}
footer .footer__copyright-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
}
footer .footer__ntu {
  display: flex;
  gap: 16px;
  font-size: 16px;
  color: #6F6F6F;
}
footer .footer__ntu a {
  color: #6F6F6F;
  text-decoration: none;
}
footer .footer__copyright-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}
footer .footer__privacy {
  display: flex;
  flex-direction: row;
  gap: 24px;
  font-size: 14px;
  color: #6F6F6F;
}

#modal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: transparent;
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1);
  display: none;
  transition: transform 0.3s ease-in-out, border-radius 0.3s ease-in-out;
  overflow: hidden;
}
#modal:hover:before {
  transform: scale(1.5);
}
#modal:before {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: " ";
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-filter: blur(10px);
  filter: blur(10px);
  transition: transform 60s linear;
  transform: scale(1);
  transform-origin: left top;
}
#modal:focus, #modal:target {
  transform: scale(1);
  display: block;
}
#modal section {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 400px;
  padding: 25px;
  box-sizing: border-box;
  background-color: #fff;
  transform: translate(-50%, -50%);
}
#modal section .modal-close-btn {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  cursor: default;
}

.query-info-cont {
  display: none;
}
.query-info-cont h1 {
  font-size: 24px;
  text-align: left;
  color: rgb(0, 47, 148);
}
.query-info-cont ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.query-result-table {
  text-align: center;
}
.query-result-table th {
  width: 20%;
}
.query-result-table td {
  border: 1px solid #e4e4e7;
}

.query-result-table-s {
  text-align: center;
}
.query-result-table-s th {
  width: 33%;
}
.query-result-table-s td {
  border: 1px solid #e4e4e7;
}

.th-w10 {
  width: 10% !important;
}

.th-w15 {
  width: 15% !important;
}

.th-w45 {
  width: 45% !important;
}

.mb-24 {
  margin-bottom: 24px;
}

/*列印用設定*/
@media print {
  header {
    display: none;
  }
  footer {
    display: none;
  }
  body {
    margin: 0 !important;
    padding: 0 !important;
  }
  main {
    align-items: top;
    padding: 0 !important;
  }
  .totcrd-tab-menu {
    display: none !important;
  }
  section.query-result-cont {
    page-break-inside: avoid;
    break-inside: avoid;
    display: block;
  }
  .totcrd-result-title,
  .totcrd-top-table,
  .totcrd-bottom-table {
    page-break-inside: auto;
    break-inside: auto;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }
  .totcrd-top-table tr,
  .totcrd-top-table td,
  .totcrd-top-table th,
  .totcrd-bottom-table tr,
  .totcrd-bottom-table td,
  .totcrd-bottom-table th {
    page-break-inside: auto;
    break-inside: auto;
  }
  .totcrd-result-title {
    margin-bottom: 8px !important;
  }
  .totcrd-top-table {
    margin-bottom: 8px !important;
  }
  .totcrd-bottom-table {
    margin-top: 8px !important;
  }
  li {
    page-break-inside: avoid;
    break-inside: avoid;
    display:list-item !important;
    font-size: 0.9em;
    line-height: 1.5;
  }
  ol, ul {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
@page {
  margin-top: 1cm;
  margin-bottom: 1.5cm;
}
form{
  width:100%;
}