*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  /* overflow: hidden; */
  overflow-x: hidden;
  position: relative;
  left: 0px;
  top: 0px;
  font-family: sans-serif, serif, "Noto Sans CJK TC", "Microsoft JhengHei", PingFang, STHeiti;
  letter-spacing: .05rem;

}

#container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
  flex: 0 0 auto;
  box-shadow: #aaaaaa 1px 0px 3px;
}

.main {
  flex: 1 0 auto;
}

footer {
  flex: 0 0 auto;
  width: 100%;
  background-color: #81B44B;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: small;
}

footer p {
  margin-bottom: 0%;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.5;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

h3 {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.5;
}

h4 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.5;
}

h5 {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.5;
}

h6 {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
}

ul,
ol {
  margin-bottom: 1rem;
  color: #6A6A6A;
}

ul li,
ol li {
  margin-bottom: .5rem;
  line-height: 1.5;
}

.nav-tabs li,
.dropdown-menu li {
  margin-bottom: 0;
}

/* 初始設定 end */
.material-icons,
.material-icons-outlined {
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
  vertical-align: middle;
  transform: translateY(-.1em);
}

.content {
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 10rem;
  width: 90%;
  max-width: 1920px;
}

.bg-gradient-blue {
  background: linear-gradient(to bottom, rgb(255, 255, 255, 0) 0%, #DEF3FF 100%);
}

.title-area {
  margin: 0 auto;
  width: 90%;
  max-width: 1920px;
}

.content-area {
  margin: 0 auto;
  margin-top: 2rem;
  width: 90%;
  max-width: 1920px;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-align: justify;
  color: #6A6A6A;

}

a {
  text-decoration: none;
  color: #81B44B;
}

label {
  margin-bottom: .5rem;
  color: #6A6A6A;
}
.fs-18{
  font-size: 18px;
}

.fs-14 {
  font-size: 14px;
}

.fs-12 {
  font-size: 12px;
}

.c-blue {
  color: #0D58C9;
}

/* button start */
.btn-normal {
  padding: .75rem 1.75rem;
  border-radius: .25rem;
}

.btn-sm {
  padding: .5rem 1rem;
  border-radius: .25rem;
  font-size: small;
}

.btn-lg {
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-size: 1.25rem;
}

.btn-w100 {
  width: 100%;
  padding: .5rem 1.5rem;
  border-radius: .25rem;
}

.btn-cancel {
  background-color: #f52a2a;
  color: #424242;
  border: 1px solid lightgray;
}

.btn-cancel:hover {
  background-color: lightgray;
  color: #fff;
  border: 1px solid lightgray;
}

.btn-blue {
  background-color: #0D58C9;
  color: #fff;
  border: 1px solid #0D58C9;
}

.btn-blue:hover,
.btn-blue-outlined:hover {
  background-color: #0764ee;
  color: #fff;
  border: 1px solid #0764ee;
}

.btn-blue:active,
.btn-blue-outlined:active {
  background-color: #0f479a;
  color: #fff;
  border: 1px solid #0f479a;
}

.btn-blue-outlined {
  background-color: #fff;
  color: #0D58C9;
  border: 1px solid lightgray
}

.btn-lightblue {
  background-color: #0085CD;
  color: #fff;
  border: 1px solid #0085CD;
}

.btn-lightblue:hover {
  background-color: #009aec;
  color: #fff;
  border: 1px solid #009aec;
}

.btn-lightblue:active {
  background-color: #006297;
  color: #fff;
  border: 1px solid #006297;
}

/* btn-end */
/* normal-page start */
.page-title {
  font-size: 2rem;
  font-weight: bold;
  color: #0D58C9;
  margin: 1.5rem 0;
  line-height: 1.25;
}

.writer-info {
  line-height: 1.5;
}

.content-area img {
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: .25rem;
}

.article img {
  width: 100%;
  padding: 1.25rem 0;
  max-width: 1200px;
  display: block;
  margin: auto;
  border-radius: .25rem;
}

.article-list-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.bb-dashed-box {
  border-bottom: 1px dashed lightgray;
  padding: 1.5rem 0 1rem 0;
}

.border-box {
  border: 1px solid lightgray;
  border-radius: .5rem;
}

.article-list-title {
  color: #6A6A6A;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-list-date {
  color: #6A6A6A;
  font-size: 14px;
  margin-bottom: 0;
}

.teacher-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0D58C9;
  padding-top: 1rem;
}

.teacher-major {
  padding: .25rem;
}

.major-box {
  color: #fff;
  background-color: #FD9A05;
  border-radius: .5rem;
  padding: .75rem;
  margin: .5rem;
}

.member-photo {
  position: relative;
  /* 固定寬度 */
  padding: 0 1rem;
}

.member-photo:after {
  content: "";
  display: block;
  padding-bottom: 100%;
  /*padding取決於寬度，這裡設定padding-bottom: 100%就可以得到正方形*/
}

.member-photo img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  /*將圖片大小固定為父類div的大小*/
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 相當於 background-size: cover; of a background-image */
  object-position: center;

}

.team-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #6A6A6A;
  margin-bottom: 3rem;
  text-align: center;

}

.rd-member-name {
  color: #0D58C9;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  margin: .5rem 0;
}

.rd-member-dep,
.rd-member-pos,
.rd-member-mail {
  color: #6A6A6A;
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
  margin-bottom: .25rem;
}

/* normal-page end */
/* datatable start */
table.dataTable td {
  background-color: rgba(0, 0, 0, 0);
  border-bottom: 1px solid #D9D9D9;
}

table.dataTable tbody tr {
  background-color: #ecf5ff00;
}

table.dataTable tbody tr:hover {
  background-color: #ECF5FF;
}

table.dataTable tbody td {
  padding: .75rem .5rem;
  line-height: 1.5rem;
}

table.date tbody td:first-child {
  width: 120px;
  color: #FD9A05;
}

.date-lable {
  display: none;
}

.dataTable a {
  color: #3B3B3B;
  text-decoration: none;
}

.dataTable a:hover {
  color: #004385;
  font-weight: 500;
  ;
}

table.dataTable thead th {
  padding: .7rem .5rem;
  border-bottom: 1px solid #D9D9D9;
  color: #FD9A05; 
  font-weight: normal;
}

table.dataTable tbody td {
  padding: 1rem .5rem;
  border-bottom: 1px dashed #D9D9D9;
  color: #3B3B3B;
}

table.dataTable.no-footer {
  border-bottom: none;
}

.dataTables_wrapper .dataTables_paginate {
  float: none;
  text-align: center;
  margin-top: 5rem;
}

table.download tbody td:last-child {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .index-banner {
    padding: 0;
  }

  .index-banner-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .date-lable {
    color: #FD9A05;
    display: block;
    font-size: .75rem;
  }

  table.mb-first-none td:first-child {
    display: none;
  }

  table.mb-last-none td:last-child {
    display: none;
  }

  table.dataTable thead {
    display: none;
  }

  .content-box {
    padding-left: 0rem;
  }

  ul.category {
    display: none;
  }

  table.mb-table {
    border: 0;
  }

  table.mb-table thead {
    display: none;
  }

  table.mb-table tr {
    margin-bottom: 1rem;
    display: block;
    border-radius: .5rem;
    padding: .5rem;
    text-align: start;
  }

  table.mb-table thead tr {
    padding: 0;
    margin-bottom: 0;
  }

  table.mb-table tbody tr {
    background-color: #fff;
    border: 1px solid lightgray;
  }

  table.mb-table td {
    display: block;
    font-size: 16px;
    border-bottom: 1px dotted #c9c0c0;
  }

  table.download tbody td:last-child {
    border-bottom: 0;
  }

  .col-reverse {
    flex-direction: column-reverse;
  }

  .content-area img {
    width: 100%;
  }
}

/* datatable end */
/* home start */
.home-topic {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0D58C9;
}

.more {
  display: flex;
  justify-content: end;
}

.more a {
  display: flex;
  justify-content: end;
  color: #FD9A05;
}

.ellipsis-4 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.ellipsis-2 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.center-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-bb {
  display: inline;
  border-bottom: 1px lightgray solid;
  padding: 1rem 2rem;
  margin: 1rem 0 0 0;
  font-size: 2rem;
  font-weight: bold;
}

.home-img {
  display: flex;
  align-items: center;
}

.home-img img {
  border-radius: .25rem;
}

/* home end */
/* 閱讀更多 start */
.more-title {
  color: #0D58C9;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin: 1rem 0;

}

.more-img {
  padding-bottom: 75%;
  width: 100%;
  position: relative;
  background-color: #fff;
  border-radius: 10px;
}

.more-img img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.more-text {
  color: #6A6A6A;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;

}

/* 閱讀更多 end */
/* modal start */
.modal-header {
  padding: 1rem;
}

.modal-header-blue {
  color: #fff;
  background-color: #0D58C9;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: .5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* modal end */
/* login start */
.login-title {
  font-size: 1.5rem;
  font-weight: bold;
  color:#2D4A22;
}

.login-box {
  border: 1px solid #eaeaea;
  border-radius: .25rem;
  width: 400px;
  margin: 2rem 1rem;
  background-color: #fff;
}

.login-tab {
  border: none;
}

.login-box .nav-tabs .nav-link.active {
  border-color: transparent;
  color: #0D58C9;
  background-color: #fff;
}

.login-box .nav-tabs .nav-link {
  background-color: lightgray;
  color: #6A6A6A;
}

/* login end */
/* disscuss start */
.user-photo img {
  background-color: #c0c0c0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 100%;
  margin: .5rem;
}

.user-photo-sm img {
  background-color: #c0c0c0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 100%;
  margin-right: 1.5rem;
}

.user-photo-xs img {
  background-color: #c0c0c0;
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
  margin-right: 1.5rem;
}

.discuss-title,
.discuss-text {
  overflow: hidden;
  /* white-space: nowrap; */
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.discuss-title {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 2;
}

.discuss-title {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.6rem;
  margin-bottom: .5rem;
  color: #6A6A6A;
}

.discuss-text {
  line-height: 1.6rem;
  color: #6A6A6A;
}

.discuss-account {
  color: #6A6A6A;
  font-size: 12px;
}

a:hover .discuss-title {
  color: #0D58C9;
}

.edit-btn {
  font-size: 1rem;
  color: #9d9d9d;
  margin-left: .5rem;
}

.edit-btn:hover,
#likeBtn {
  color: #0D58C9;
}

/* disscuss end */
/* service-box start */
.service-box {
  border-radius: 1rem;
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.service-box:hover {
  box-shadow: 3px 3px 3px darkgray;
  text-shadow: 2px 2px 1px #5c5c5c;
}

.blue-box {
  background-color: #0D58C9;
}

.orange-box {
  background-color: #F9C74F;
}

.red-box {
  background-color: #F74872;
}

.green-box {
  background-color: #2EC4B6;
}

/* service-box end */
/* learnsorce start */
.content-list {
  padding: 1rem;
  color: #6A6A6A;
  display: block;
  font-size: 14px;
}

.content-list:hover {
  background-color: #ECF5FF;
}

.open-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: .25rem;
  border: 1px solid lightgray;
  color: #6A6A6A;
  text-align: center;
  margin-bottom: 1rem;
}

.open-btn:hover {
  color: #0D58C9;
  background-color: #ECF5FF;
}

/* learnsorce end */
/* comment start */
.comment-box {
  padding: 0rem;
}

.comment-name {
  color: #0D58C9;
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.5;
}

.comment-text {
  line-height: 1.5;
}

.comment-area-first {
  border-bottom: 1px dashed lightgray;
  margin-bottom: 1rem;
}

.comment-second {
  padding: 1rem 0 1rem 3rem;
}

/* .comment-box-second {
  margin-left: 5rem;
} */

.comment-box-third {
  margin-left: 8rem;
  display: flex;
  align-items: center;
}

.reply-tag {
  color: #0d6efd;
  font-weight: bold;
}

/* comment end */
/* nav-tab start */
.nav-tabs .nav-link {
  padding: 1rem;
  color: #6A6A6A;
}

.nav-tabs .nav-link.active {
  color: #0D58C9;
}

.dropdown-menu .nav-link.active {
  background-color: #ECF5FF;
  border-radius: 0;
  border: 0;
}

.page-link {
  color: #0D58C9;
  background-color: #fff;
}

.page-item.active .page-link {
  color: #fff;
  background-color: #0D58C9;
  border-color: #0D58C9;
}

/* nav-tab end */

a:hover .article-list-title {
  color: #0D58C9;
}

/* cloud-service start */
.mw-18r {
  max-width: 18rem;
}

a.cloud-service-box {
  color: #6A6A6A;
}

.cloud-service-box {
  display: table-cell;
  border: 1px solid lightgray;
  border-radius: .5rem;
  padding: 2.25rem 1.25rem;
  background-color: #fff;
  text-align: center;
}

.cloud-service-box:hover {
  box-shadow: 3px 3px 3px #aaaaaa;
}

.cloud-service-box[data-active="active"] {
  border: 3px solid #4AA5FA;
  box-shadow: 3px 3px 3px #aaaaaa;
}

.cloud-service-box ul {
  list-style-type: disc;
  line-height: 120%;
}

.cloud-service-box ul li {
  margin-bottom: 1rem;
}
/* cloud-service end */


/* chenglin css */
/*文字編輯器start*/
figure {
  max-width: 100%;
  min-width: 40%;
}
/* figure img {
  max-width: 100%;
  min-width: 40%;

} */
:root {
  --ck-image-style-spacing: 0.5em;
}

.image-style-side {
  float: right;
  margin-left: var(--ck-image-style-spacing);
}

.image-style-align-left {
  float: left;
  margin-right: var(--ck-image-style-spacing);
}

.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

.image-style-align-right {
  float: right;
  margin-left: var(--ck-image-style-spacing);
}

strong {
  /*粗體字*/
  font-weight: bolder;
}

/*文字編輯器end*/

/* joinez 影片start */
.video-area {
  margin: 0 auto;
  max-width: 800px;
}

.video-area video {
  width: 100%;
}

/* joinez 影片 end*/

/* share button start */
.btn-share{
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: .5rem .75rem;
  border-radius: .25rem;
  font-weight: normal;
  margin: 1rem .25rem;
  color: #fff
}
.btn-share img{
  width: 1.25rem;
  margin-right: .5rem;
  padding: 0;
}
.btn-fb{
  background-color:#1877F2; 
}
.btn-fb:hover{
  background-color:#308aff; 
}
.btn-fb:active{
  background-color:#135fc4;
}
.btn-line{
  background-color: #00B900;
}
.btn-line:hover{
  background-color: #00d300;
}
.btn-line:active{
  background-color: rgb(0, 180, 0);
}
/* share button end */

/* login with icon button start */
.bnt-login-icon{
  border: 1px solid lightgray;
  background-color: #fff;
}
.bnt-login-icon:hover{
  box-shadow: 3px 3px 3px lightgray;
  color: #0D58C9;
}
.bnt-login-icon:active{
  box-shadow: 3px 3px 3px #0f479a7f;
  color: #0f479a;
}
.btn-icon{
  width: 1.25rem; 
  margin-right:.75rem; 
  padding-top:.15rem;
}
/* login with icon button end */


