/*-------------------------*/
/* $Catalog 
---------------------------*/
/** 
 * Catalog
 * header
 * button
 * container
 * Typography
 * Utility
 * clearfix
**/

/* Document
   ========================================================================== */
   *{
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    max-height: fit-content;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;
    background: #fff;
    word-wrap: break-word;
    background-image: url('../img/bg_2560.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
}

a{
  text-decoration: none;
}

p{
  margin: 0;
  padding: 0;
}

ol.cjk {
  list-style-type: cjk-ideographic;
}

ol.none {
  list-style-type: none;
}

.text-red{
  color:#993333  !important;
  background-color: #eee;
}


/* header-bar */
.header-bar{
  position: relative;
  background-color: 	#993333 ;
}

.header-bar .topLink {
  position: relative;
  color: #fff;
  text-align: end;
  padding: 0.5rem;
}

.header-bar .topLink a {
  color: #fff;
  font-weight: bold;
}

.header-bar .topLink a:hover {
  color: gold;
}


/* logo bar */

 .ntulogo {
  height: 80px;
  width: 80px;
}


    .brand-title{
    font-size: 2rem;
    font-weight: 700;
    padding: 0;
     margin: 0;
    }

  .navbar-nav{
  width: 80%;
  height: 100%;
}


@media only screen and (max-width: 991.98px) {
    .brand-768, .ntulogo {
        justify-self: center;
        text-align: center;
      }
    
    .brand-title{
    font-size: 1.5rem;
    word-break: normal;
}
  .navbar-nav,
  .nav-link > .btn.btn-menuOrange{
  width: 100%;
  height: 100%;
}

}


svg.menu-icon {
    width: 80px;
    height: 80px;
    stroke: rgba(255, 255, 255, 0.55);
}


/* 漢堡選單 CSP安全寫法 */
/* 移除 Bootstrap 預設漢堡圖示 */

.custom-toggler{
  /* background-color: #993333; */
  padding-bottom: 0.5rem;
}

.custom-toggler .navbar-toggler-icon {
  background-image: none;
  width: 20px;
  height: 2px;
  background-color: slategray;
  position: relative;
  display: inline-block;
  transition: .3s;
}

.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: slategray;
  left: 0;
  transition: .3s;
}

.custom-toggler .navbar-toggler-icon::before { top: -6px; }
.custom-toggler .navbar-toggler-icon::after { top: 6px; }

/* 展開後變 X（利用 collapsed 狀態） */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-color: transparent;
}
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.navbar-light .navbar-toggler {
  border: 1px solid slategray !important;
  border-radius: 6px;
  padding: 0.4rem 0.6rem; /* ← 控制按鈕大小 */
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(83, 83, 83, 0.25) !important;
}



@media (max-width: 992px) {

    .navbar{

        --bs-navbar-brand-padding-y: 0rem !important;

        --bs-navbar-brand-margin-end: 0rem !important;    

    }

}





/* button */

.btn.btn-menuOrange{
  color:#fff;
  background-color: #993333 ;
}
.btn.btn-menuOrange.btn-hover,
.btn.btn-menuOrange:hover{
  color:#fff;
background-color: slategray;
}


.btn.btnMenuAct {
  color:#fff;
  background-color: slategray;
}




.accordion {
  --bs-accordion-color: var(--bs-body-color);
  --bs-accordion-bg: #ffffff96;
  --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
  --bs-accordion-border-color: var(--bs-border-color);
  --bs-accordion-border-width: var(--bs-border-width);
  --bs-accordion-border-radius: var(--bs-border-radius);
  --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-btn-color:#fff;
  --bs-accordion-btn-bg: #993333;
;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon-width: 1.25rem;
  --bs-accordion-btn-icon-transform: rotate(-180deg);
  --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  --bs-accordion-btn-focus-box-shadow: 0 ;
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 1rem;
  --bs-accordion-active-color: var(--bs-primary-text-emphasis);
  --bs-accordion-active-bg:#993333;
  margin-left:-0.75rem ;
  margin-right:-0.75rem ;
}

.accordion-button{
  border-radius: 4px;
}

.accordion-active{
  background-color: slategray !important;
}

/*  container */

.tagHidden {
  display: none;
}

 .main {
  position:relative;
  background-color: #ffffff96;
  border-radius: 5px;
  box-shadow: 0px 0px 1px #993333 
;
  padding: 30px;
  min-height: 600px;
  letter-spacing: 1px;
}


.aside > ul, .main > ul {
  padding: 0;
}

.aside ul, .aside li {
  list-style: none;
}

.aside ul > ul, .aside li > ul {
  padding-left: 35px;
}

.nav-item{
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.item_main {
  font-weight: 800;
  /* margin-bottom: 20px; */
  color:#fff;
  font-size: 1.2rem;
  /* letter-spacing: 1px; */
}

.item_sub {
  display: inline-block;
  padding-top: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1;
  line-height: 1.4;
}

.itemActive {
  color: #f1594a !important;
  text-decoration: underline;
}


.nav-pills .nav-link {
  display: inline-block;
  padding-top: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1;
  line-height: 1.4;
}

.nav-pills {
  --bs-nav-pills-border-radius: 0;
  --bs-nav-pills-link-active-color: #333;
  --bs-nav-pills-link-active-bg: #eee;
}

.nav.nav-pills a:hover{
  color:#333;
background-color: #eee;
}


.card-body{
  background-color:#ffffff96 ;
  border: 1px solid #eee;
}



.article p {
  margin-bottom: 20px;
}

.article a {
  color: #993333 
;
}

.article a:hover{
  color: #ffffff;
  background-color: #993333;
  padding: 4px;
  border-radius: 4px;
}

.article .img_link:hover{
  text-decoration: none !important;
  padding: 0;
  border-radius: 0;
}

.article li {
  margin-bottom: 5px;
}

.article h1 {
  color: #993333;
  font-size: 1.75rem;
  font-weight: bold;
  padding-left: 10px;
  border-left: 8px solid #993333;
  margin-bottom: 1rem;
}

.article h2 {
  color: #444;
  font-size: 1.5rem;
  font-weight: bold;
  padding-top: 1rem;
}

.article .iconLink {
  width: 28px;
  height: 28px;
  margin: 4px 0;
  margin-left: 6px;
  vertical-align: middle;
}

.article .tbScroll {
  overflow: auto;
}

.border-left-red{
  border-left: 6px solid #993333;
  padding: 12px 10px;
  margin: 16px;
}

.blockquote{
 border-left: 5px solid #f4f4f4;
 padding: 10px 20px;
}


.border-bottom-title{
  border-bottom: 2px solid #333 ;
  width: auto;
}


.myTable {
  overflow: auto;
  margin-top: 10px;
  margin-bottom: 15px;
  word-break: keep-all;
}



.table-container{
  background-color: #ffffff96;
}

.e-mail:before {
  content:attr(data-user)"\0040" attr(data-website) ;
  /* unicode-bidi:bidi-override; */
  /* direction: rtl; */
}

.contact{
  color: #444;
  font-size: 1.2rem;
  font-weight: bold;
  padding-left: 10px;
  border-left: 8px solid #444;
  margin-bottom: 1rem;
}

/* gotoTOP */

.goTop_out {
  position: relative;
}

.goTop_out a {
  color: #fff;
  text-decoration: none;
}

.goTop {
  position: fixed;
  right: 4%;
  bottom: 3%;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #FFF;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: orange;
  text-align: center;
  opacity: 1;
  border-radius: 100%;
  transition: all 0.3s;
}

.goTop:hover {
  color: #FFF;
  opacity: 1;
  box-shadow: 0 0 1px #333;
}

.goTop::before {
  content: "";
  display: table;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 12px 10px;
  border-color: transparent transparent #ffffff transparent;
  margin-left: 25%;
  margin-top: 15%;
  margin-bottom: -25%;
}


/* footer */

.footer{
  padding: 2rem;
}


.counter-border{
  display: block;
  height: fit-content;
  border: 0.1em solid #993333;
  border-radius: 10px;
  background-color: #ffffff96;
  padding: 10px;
  margin-left: auto;
} 

.counter-section i { display:block; margin:0}
.counter-section span.counter { font-size:2rem; font-weight: 600; color:#333; line-height:40px; display:block; font-family: "Oswald",sans-serif; letter-spacing: 2px}
.counter-title{ font-size:12px; letter-spacing:2px; text-transform: uppercase; word-wrap:normal ;}
.counter-icon {top:25px; position:relative}
.counter-style2 .counter-title {letter-spacing: 0.55px; float: left;}
.counter-style2 span.counter {letter-spacing: 0.55px; float: left; margin-right: 10px;}
.counter-style2 i {float: right; line-height: 26px; margin: 0 10px 0 0}
.counter-subheadline span {float: right;}  

.medium-icon {
    font-size: 40px !important;
    margin-bottom: 8px !important;
    margin-top: 12px !important;
} 
