﻿/* 最上方navBar */
.navbar{
    background-color: white;
}

#upperBar > div{
    width:auto;
}

#left_nav{
    text-align: left;
    padding-left: 5vw;
    padding-right: 0;
}

#right_nav{
    text-align: right !important;
    display:flex; 
    align-items: center;
    padding-right: 5vw;
}

#form-inline{
    justify-content: flex-end
}

/* 右上方搜尋和語系 */
#desktop-search{
    position: relative;
}

#mobile-search, #mobile-lang{
    display: none !important;
}

#mobile-search-div, #mobile-lang-div{
    width:100%;
    margin-top: 2px;
}

.show {
    display: block;
}

.hide {
    display: none;
}

.input_search {
    padding-right: 30px; /* 為了給圖示留出空間 */
}

.input_search:focus {
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.search-icon {
    color: grey;
    position: absolute;
    top: 50%;
    right: 20px; /* 調整圖示與右側的距離 */
    transform: translateY(-50%);
}

.search-icon-mobile{
    color: grey;
    position: absolute;
    top: 78%;
    right: 20px; /* 調整圖示與右側的距離 */
    transform: translateY(-50%);
}

#dropdown01, #dropdown02{
    background-image: none !important;
}

.dropdown-menu{
    padding-top: 0px;
    padding-bottom: 0px;
}

.dropdown-menu > li > a {
    color: #555555;
    font-weight: 700;
    padding: 6px 0px;
    font-size: 14px;
    line-height: 1.7143;
    border-radius: 3px;
    -webkit-transition: padding 350ms;
    -o-transition: padding 350ms;
    transition: padding 350ms;
}

.dropdown-item {
    margin-top: 0;
    border-top: 2px solid #f2f4f8;
    padding-left: 10px;
    transition: padding-left 0.2s ease;
}

.dropdown-item:hover{
    color:#0068b6;
    padding-left: 20px;
}

/* 左側SideBar */
#sidebar{
    padding-left: 0px !important;
    padding-right: 0px !important;
}

#sidebarCollapse > h2{
    margin: 0;
    line-height: 35px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    margin-left:15px;
}

#sidebarCollapse > .mainmenu-btn{
    margin: 0;
    margin-right: 10px;
    height: 35px;
    line-height: 35px;
    width: 35px;
    background: rgba(204,204,204,0.05);
    position: absolute;
    font-size: 26px;
    top: 15px;
    right: 0;
}

#sidebarCollapse > .fa-xmark{
    height: 26px;
}

#navMenu{
    background: rgba(255,255,255,0.05);
    margin-bottom: 24px;
    padding: 0px;
    border-radius: 3px;
    color: #818c98;
    font-size: 18px;
    list-style: none;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.list-unstyled{
    margin-left: 0px;
}

#navMenu > li{
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
    background: #f6faf6;
    line-height: 55px;
    padding: 0px;
    background: #f6faf6;
    color: #333333;
}

.menu-root> li{
    line-height: 42px;
    margin-top: 12px;
    margin-bottom: 12px;
}

#navMenu > li > a:hover{
    background: #eeeeee;
}

#navMenu > li > a > .caret{
    display: none;
}

.dropdown-toggle::after{
    display: none;
}

#navMenu > li:first-child > a{
    background-image: none !important;
    color:#26370a;
}

#navMenu .dropdown-toggle{
    text-decoration: none;
    display: block;
    background-color: transparent;
    color: #0068b6;
}

#navMenu > li .collapsed{
    color:#26370a;
}

.menu-root{
    padding-left:15px;
    padding-right:18px;
}

#navMenu > li > a.active {
    color: #0068b6;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
    background: #f6faf6;
    background-repeat: no-repeat !important;
    background-position: left center !important;
}

#navMenu > li > ul > li{
    text-decoration: none;
    display: block;
    color: rgba(255,255,255,0.6);
    /* color: #cdd4d3; */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.2);
    background: #e5e5e5;
    box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.1), 0px 1px 0px 0px rgba(0,0,0,0.1);
    padding-top: 5px;
    padding-bottom: 5px;
}

   

#navMenu ul ul ul.list-unstyled.collapse.show > li:hover {
    background-color: lightgrey;
}

#navMenu .level2 {
    background-color: #d9d9d9;
}

#navMenu a {
    display: block;
    width: 100%;
    padding-left: 15px;
    line-height: 55px;
    color: #000;
}

#navMenu i.fa-solid.fa-chevron-right.float-right{
    margin-top:20px;
    font-size:small;
}

#navMenu i.fa-solid.fa-angle-down.float-right {
    margin-top: 20px;
    font-size: small;
}

#navMenu a:hover {
    text-decoration: none;
    color: #0068b6;
}

hr{
    display: none !important;
}

/* 中間項目 */
#container_main {
    display: block;
    height: auto;
}

/* 網站地圖 */
#footer{
    /* position: relative !important;
    height:auto;*/
    background-color: #ccc;
    background-image: url("/imgs/footer_bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 50px;
}

.module-inner{
    padding-left: 0;
    border-radius: 0;
    margin: 0;
    padding: 0 24px 24px;
}

.module-title{
    border: 0;
    color: #4d4d4d;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0;
    text-transform: none;
    letter-spacing: 0.5px;
    border-bottom: 2px #4d4d4d solid;
}

.footer-link{
    line-height: 35px;
    font-size: 14px;
    border: 0;
    position: relative;
    display: block;
    border-bottom: 0px solid rgba(255,255,255,0.1);
    border-radius: 0;
    color: #5c5b5b;
    padding: 0;
}

.footer-link:hover{
    text-decoration: none;
}


/* 最下方Footer */
#footer_copyright{
    display: block;
    max-width: 100% !important;
    height: 10% !important;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: #000;
    color: #fff;
    font-size: 12px;
}


/* RWD */
@media (max-width: 768px){
    #blank_div{
        display: none;
    }

    #jux_accord-menu .menu_head {
        line-height: 42px;
        padding: 8px 12px 8px 8px;
    }

    #desktop-search, #desktop-lang{
        display: none;
    }

    #mobile-search, #mobile-lang {
        display: inline-block !important;
        align-items: center !important;
    }

    .navbar-expand-md{
        padding-left: 1px;
        padding-right: 1px;
    }
}
