html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

p {
  margin-bottom: 0.5rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

header {
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100%;
}

@font-face {
  font-family: 'NotoSerifCJKtc';
  src: url('../fonts/NotoSerifCJKtc-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NotoSerifCJKtc-Bold';
  src: url('../fonts/NotoSerifCJKtc-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'NotoSerifCJKtc', serif !important;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'NotoSerifCJKtc-Bold', serif !important;
  font-weight: 400;
}


/*body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif TC', 'SourceHanSerifMedium', serif;
    font-weight: 700; 
}*/

img {
  max-width: 100%;
  height: auto;
  width: auto; /* CKEditor寬度 */
}


/* Custimize */
.full-bg {
  background-size: contain;
  background-position: top center;
  background-image: url('../css_image/bg-orange-1920.svg');
  background-repeat: repeat;
}

._cover-area {
  padding: 0 !important;
  background-size: cover;
  background-position: top center;
  background-image: url('../css_image/cover-img.png');
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  aspect-ratio: 4780 / 1789;
  height: auto;
}

._content-area {
  background-size: 100% auto;
  background-position: center center;
  background-image: url('../css_image/center-bg-img.png');
  background-repeat: repeat-y;
  min-height: 100vh;
}

._child-content-bg {
  background-color: white;
  background-image: url('../css_image/child-content-bg.png');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 100vh;
}

._news-public {
  background-image: url('../css_image/news-public.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: auto;
  min-height: 10vh;
}

._download-pic {
  background-image: url('../css_image/download-pic.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 10vh;
}

._news-gradient-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #5B2A51, transparent);
  box-shadow: 0 2px 4px black;
}

._news-line {
  width: 6rem;
  height: 2px;
  border-top: 2px solid;
  margin-left: 1rem;
}


._news-title {
  color: #CE4E31;
  font-weight: bold;
}

  ._news-title h1 {
    color: #5b2951 !important;
  }


._article-area {
  letter-spacing: 0.5rem;
}

._article-date {
  font-family: NotoSerifCJKtc-Bold,serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem); /* 根據視窗大小調整字型 */
  width: calc(40% + 2vw); /* 隨視窗大小變化寬度 */
  height: 3rem;
  background-color: #605A45;
  color: white;
  line-height: 3rem;
  text-align: center;
  letter-spacing: 0.2rem;
}

._article-title {
  font-family: NotoSerifCJKtc-Bold,serif;
  border-bottom: 1px solid #605A45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 1rem;
  text-align: left;
  line-height: 3rem;
  letter-spacing: 0.2rem;
}

._count-total-text {
  word-spacing: 0.5rem;
  font-weight: bold;
  padding-left: 1rem;
}

.carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 100%;
}


.navbar {
  width: 100%;
  background-color: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 auto;
}

.nav-adjust {
  padding: 0 !important;
}

.nlink-adjust {
  padding: 0 !important;
}

/* Hide dropdown arrow */
.nav-item.dropdown .nav-link::after {
  display: none !important;
}

._headerbtn {
  letter-spacing: 0.25rem; /* 按鈕文字的字距 */
  color: #4E4B4A;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(254,254,254,1) 100%);
  opacity: 0.85;
  width: 176px;
  height: 50px;
  margin-left: 2px;
  margin-right: 0px;
  position: relative;
  font-size: 20px;
  word-spacing: 6px;
}

  ._headerbtn:hover {
    background-color: #fff;
    color: #b33c23 !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

    ._headerbtn:hover ._dropdown {
      display: block;
      color: #b33c23 !important;
    }

._dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 175px;
  color: #4F4C4B;
  background-color: #FFF;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

  ._dropdown p {
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    border-bottom: 1px solid #808080;
    z-index: 999;
  }

    ._dropdown p:hover {
      background-color: #f0f0f0;
      border: 1px solid #ccc;
      z-index: 999;
    }

    ._dropdown p:last-child {
      border-bottom: none;
    }

.dropdown-menu {
  border: none !important;
  border-radius: 0 !important;
  z-index: 999;
}

  .dropdown-menu .dropdown-item:hover {
    color: #b33c23;
  }

._headerbtn:hover ._dropdown {
  color: #b33c23;
  display: block;
  transform: scaleY(1);
  z-index: 999;
  font-size: 30px;
}

._article-area {
  background-color: #F7B32C;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 3rem;
  font-weight: bolder;
}

  ._article-area p {
    margin: 0;
    padding: 0;
  }

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }

  .dropdown-item {
    min-height: 40px;
    height: 40px;
    font-weight: bold !important;
    color: #4F4C4B !important;
  }

  .dropdown-menu {
    left: 2px;
    padding-top: 2px;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%,rgba(255, 255, 255, 0.8) 75%,rgba(255, 255, 255, 0.8) 90%,rgba(255, 255, 255, 0.0) 100%);
  }

  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    min-width: 175px;
    width: 176px !important;
    font-size: 18px;
    z-index: 999;
  }

  .nav-item.dropdown .nav-link {
    pointer-events: none;
  }

  .nav-item.dropdown:hover .nav-link {
    pointer-events: auto;
  }

  .navbar-nav .dropdown-menu.show {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: white;
    z-index: 9999;
  }

  ._headerbtn {
    padding-top: 6px;
    display: block;
    width: 100%;
  }

  .navbar-toggler {
    display: block;
    margin-right: 10px;
  }

  .nav-link {
    letter-spacing: 0.5rem; /* 調整字距 */
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .navbar-nav .nav-item .nav-link div {
    background-color: #fff !important;
    text-align: center !important;
    width: 100% !important;
    padding-right: 0;
  }

  .dropdown-menu {
    position: absolute;
    width: 100vw;
    top: 100% !important;
    left: 0;
    right: 0;
    opacity: 1;
    font-weight: bolder !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    z-index: 10000;
  }

  .dropdown-item {
    letter-spacing: 0.5rem; /* 調整下拉菜單字距 */
    font-weight: bold !important;
    color: #4F4C4B !important;
  }

  ._headerbtn {
    letter-spacing: 0.15rem; /* 按鈕文字的字距 */
    padding-top: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .navbar-nav .nav-item:last-child ._headerbtn {
    border-bottom: none;
  }

  ._footer-order-2 {
    order: 2;
    flex: 1 0 50%;
  }

  ._footer-order-3 {
    order: 3;
    flex: 1 0 50%;
  }

  ._address {
    order: 1;
  }
}

@media (max-width: 576px) {
  ._article-date {
    width: 45%;
  }

  ._article-title {
    width: 55%;
  }
}

.breadcrumb-item {
  font-size: 1.2rem;
}

.custom-card {
  margin-top: 40px;
  margin-bottom: 40px;
  height: auto;
}

._form-area {
  width: 50%;
  margin: 0 auto;
}

._footer-area {
  letter-spacing: 0.1rem;
  color: #FFF;
  background-color: #605A45;
  bottom: 0;
  /*    display: flex;
    justify-content: space-between;*/
  /*    width: 100%;
    max-width: 1140px;
    position: absolute;
    bottom: 0;
    background-color: #605A45;
    color: #FFF;
    margin: 0 auto;
    width: 100%;
    height: 120px;
    align-items: center;
    text-align: center;*/
}

._privacy, ._address {
  position: relative;
  text-align: center;
}


  ._privacy p:hover {
    color: #FDD000;
    border-color: #FDD000 !important;
  }

  ._privacy::after,
  ._address::after {
    display: none;
  }

/* Show the divider only on large screens */
@media (min-width: 992px) {
  ._privacy::after,
  ._address::after {
    content: "";
    width: 1px;
    background-color: #FFF;
    height: 60px;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block !important;
  }
}

.privacy_content h1 {
  font-family: 'NotoSerifCJKtc-Bold', serif !important;
  color: #AE4A17;
  font-size: 1.5rem;
}

.privacy_content h2 {
  color: #E46925;
  font-weight: 400;
  font-size: 1.2rem;
}

.privacy_content h3 {
  font-size: 1rem;
}

.privacy_content p {
  text-align: justify;
}

.privacy_content ul {
  margin-bottom: 0;
}

.privacy_content li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: justify;
}

.article_content {
  h2

{
  color: #AE4A17;
  font-weight: bolder;
  border-bottom: 5px solid #D19336;
  padding-bottom: 10px;
  display: inline-block;
}

h4 {
  color: #AE4A17;
  font-weight: bolder;
  border-top: 5px solid #D19336;
  padding-top: 10px;
  display: inline-block;
}

h5 {
  color: #CE4A24;
  font-weight: bolder;
}

}


.breadcrumb-item a:hover {
  color: #b33c23;
}

.breadcrumb-item * {
  color: #545251;
  font-weight: bolder;
  text-decoration: none !important;
}



.breadcrumb-item {
  font-weight: bolder;
  text-decoration: none;
}

  .breadcrumb-item.breadnow { /* the rightmost element in the breadcrumb, with a slightly darker orange color than the hovered state*/
    color: #CE4E31;
    font-weight: bolder;
  }


@media (max-width:576px) {
  ._home-logo {
    width: 50%;
    margin-top: 0;
    padding-top: 0;
    margin-left: 0;
  }
}

.newsPageBtn {
  color: #4F4C4B;
}

  .newsPageBtn:hover {
    color: #CE4E31;
    font-weight: bolder;
  }

/*.ck-content {
    max-width: 100%;
    overflow-x: auto;*/ /* 防止內容溢出 */
/*word-break: break-word;
    position: relative;*/ /* 確保內容不溢出父容器 */
/*}

    .ck-content img {
        max-width: 100%;*/ /* 限制圖片大小 */
/*height: auto;
    }

    .ck-content table {
        width: 100%;*/ /* 限制表格大小 */
/*table-layout: fixed;
        border-collapse: collapse;
        word-wrap: break-word;
    }

        .ck-content table td, .ck-content table th {
            border: 1px solid black;*/ /* 確保邊框正確顯示 */
/*padding: 5px;
            text-align: center;
        }

    .ck-content figure {
        margin: 0;
        padding: 0;
    }*/

.table-responsive {
  white-space: nowrap; /*在table大小自適應時不主動將文字做換行'*/
}

.ck-content > * {
  width: 100%;
}

figure.table {
  margin-left: auto;
  margin-right: auto;
}

  figure.table table {
    width: 100%;
  }

#cookieConsentdiv {
  z-index: 1000;
  position: fixed;
  width: 400px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px 20px 30px;
  font-family: 'Century Gothic', sans-serif;
  box-shadow: 0px 3px 10px 5px rgba(0, 0, 0, 0.4);
  text-align: center;
  border-radius: 30px 30px 0 0;
}

  #cookieConsentdiv button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: none;
    background-color: green;
    padding: 10px 50px;
    margin-top: -5px;
    color: white;
    transition: all ease 0.5s;
  }

    #cookieConsentdiv button:hover {
      background-color: darkgreen;
    }

  #cookieConsentdiv h3 {
    font-size: 22px;
  }

  #cookieConsentdiv p {
    font-size: 13px;
  }

  #cookieConsentdiv a {
    color: gray;
    text-decoration: underline;
  }
