﻿.headerSearch { display: none; }
/*---------------------------------------------------
  Nav
---------------------------------------------------*/
/*search下拉視窗*/
#searchbar { width: 100%; padding: 20px 0; background: rgba(85, 71, 60, 0.95); position: absolute; left: 0; z-index: 10; }
#searchbar h5, .searchbar .nav-link { font-size: 20px; color: #fff; }
/*主選單*/
.topnav-1 { background: #fff; transition: all 0.35s ease; }
.topnav-1 nav { background: none !important; }
.topnav-1 li.nav-item { margin-left: 10px; margin-right: 10px; color: #000; cursor: pointer }
.topnav-1 .navbar-nav>li:last-child { margin-right: -15px; }
.topnav-1 li a { font-size: 20px; font-weight: 700; color: #000; text-decoration: none; }
.topnav-1 li.nav-item>a { display: block; padding: 5px 15px; margin-left: -6px; }
.topnav-1 li.nav-item:hover>a, .topnav-1 li.nav-item.current>a { color: #70431d; }
.topnav-1 .my-member { display: none; }
.topnav-1 .my-member a { color: #000; }
.topnav-1.stickyNav { position: fixed; width: 100%; z-index: 996; transition: all 0.35s ease; top: 0 }
.stickyNav .navbar-brand img { height: 40px; width: auto; transition: all 0.35s ease; }
.topnav-1 .collapse.navbar-collapse { -webkit-justify-content: flex-end; justify-content: flex-end; }
.navbar { padding: .5rem 0; }
/*次選單*/
.dropdown-menu ul { padding-left: 0; list-style: none }
.dropdown-menu ul li { margin-left: 5px; margin-right: 5px; border-bottom: 1px solid #ddd; }
.dropdown-menu ul li:last-child { border-bottom: none; }
.dropdown-menu ul li a { padding: 10px 5px; }
.dropdown-menu ul li a:hover, .dropdown-menu ul li a:focus { background-color: transparent; color: #000 }
.dropdown-menu { border: 2px solid #f4c400; border-radius: 10px; top: 36px; padding-top: 0; padding-bottom: 0; }
/*全域主選單*/
.topnav-2 { background: #c2ab99; color: #fff; font-size: 18px; }
.navbar-2nd { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-flex-direction: row; flex-direction: row; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; padding: 0; }
.navbar-2nd img { margin-left: 0px; height: 30px; width: auto; }
.navbar-2nd a { color: #f2f2f2; }
.navbar-2nd .btn { color: #f2f2f2; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; }
.navbar-2nd .Hsinyi-brand a { color: #000; }
/*修改*/
.navbar-brand { margin-right: 0rem; }
.navbar-brand img { height: 35px; width: auto; margin-left: 0px; }
.hello-word { display: none; }
.my-member svg { margin-right: 5px; }
/*全域主選單-信誼logo箭頭開合區域*/
#allHsinyi { width: 100%; padding: 20px 0; background: rgba(85, 71, 60, 0.95); position: absolute; left: 0; z-index: 999; }
#allHsinyi .col { padding-left: 30px; position: relative; margin-bottom: 15px }
#allHsinyi .col:before { content: ""; width: 2px; height: 100%; background: #f7ca00; position: absolute; top: 0; left: 20px; }
#allHsinyi h5, #allHsinyi h5 a { font-size: 20px; color: #f7ca00; }
#allHsinyi ul { margin-top: -10px; margin-bottom: .5rem; }
#allHsinyi li { font-size: 14px; }
#allHsinyi li a { color: #fff; }

@media (min-width:992px) {
.topnav-1 .dropdown-toggle::after { display: none; }
}

@media screen and (max-width: 1199px) {
.topnav-1 li.nav-item { margin-left: 5px; margin-right: 5px; list-style: none }
.topnav-1 li.nav-item>a { padding: 5px 10px; }
}

@media (max-width: 991px) {
/*主選單*/
.navbar { /*修改*/ padding: 0rem 1rem; }
.topnav-1 .container { padding: 0; width: 100%; max-width: none }
/*全域主選單*/
.navbar-2nd { padding-left: 0; padding-right: 0; }
.topnav-2 .container { padding: 0; width: 100%; padding-left: 15px; padding-right: 15px; max-width: none; }
#allHsinyi { top: 50px; }
}

@media (max-width: 767px) {
.topnav-1 .my-member { display: block; }
/*.topnav-2 .my-member {
        display: none;
    }修改*/
.navbar { padding-top: 0rem; }
.navbar-nav.dsmenu { display: none; }
}
/*---------------------------------------------------
  Search Overlay
---------------------------------------------------*/
#search-overlay { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1001; overflow: hidden; background: #000; background: rgba(0, 0, 0, .8); }
.searchStyle { background: #fff; border-radius: 10px; position: relative; top: 0; right: 0; bottom: 0; left: 0; margin: 30px; padding: 30px; height: calc(100vh - 60px) }
.searchClose { color: #c2ab99; position: absolute; top: 20px; right: 20px; }
.searchClose:hover { color: #333; }
.searchForm { width: 100%; position: relative; top: 50%; transform: translateY(-50%); display: -webkit-box; display: -ms-flexbox; display: flex; }
.searchForm select { flex: 0 1 150px; border: 0; font-size: 30px; height: auto !important; background: #c2ab99; color: #fff }
.searchForm select:focus { box-shadow: none !important; border: 0 !important }
.searchForm input { border: 0; border-bottom: 5px solid #c2ab99; width: 100%; text-align: center; font-size: 30px; flex: 1 1 auto; }
#btSearch { cursor: pointer; font-size: 20px; font-weight: bold; color: #fff; background: #c2ab99; border: 0; border-radius: 10px; padding: 5px 15px; position: absolute; top: 0; right: 0; }
#btSearch:hover { background: #333; color: #fff; }

@media (max-width:575px) {
.searchStyle { border-radius: 20px; top: 30px; margin: 15px; padding: 15px; height: calc(100vh - 60px) }
.searchForm { display: block; }
.searchForm>* { display: block; position: static }
.searchForm select, .searchForm select:focus { text-align: center; }
#btSearch { position: static; margin: 15px auto }
}
/*---------------------------------------------------
  Sidebar Nav - Accordion Style
---------------------------------------------------*/
/*Collapse Btn*/
#sidebarCollapse { padding-top: 0px; padding-left: 0px; padding-bottom: 0px; padding-right: 0px; }
#sidebarCollapse:focus { outline: none!important; border: transparent; }
#sidebarCollapse span { display: block; background-color: #f2f2f2; height: 3px; width: 27px; border-radius: 3px; margin-top: 6px; margin-bottom: 6px; }
#sidebarCollapse span:nth-child(2) { width: 27px; margin: auto; }
/*Sidebar*/
#sidebar { width: 270px; position: fixed; top: 0; left: -270px; height: 100vh; z-index: 999; background: #fae7d8; transition: all 0.3s; overflow-y: scroll; /*padding: 20px;*/ font-size: 16px; letter-spacing: 1px; }
#sidebar.active { left: 0; box-shadow: 0px 0px 10px 5px rgba(0,0,0,.2); -webkit-box-shadow: 0px 0px 10px 5px rgba(0,0,0,.2); -moz-box-shadow: 0px 0px 10px 5px rgba(0,0,0,.2); -o-box-shadow: 0px 0px 10px 5px rgba(0,0,0,.2); }
.overlay { display: none; position: fixed; width: 100vw; height: 100vh; background: rgba(255, 255, 255, 0); z-index: 998; opacity: 0; transition: all 0.5s ease-in-out; }
.overlay.active { display: block; opacity: 1; }
#dismiss { width: 35px; height: 35px; position: absolute; top: 0; right: 0; font-size: 24px; color: #727272; }
.sidebar-header { /*text-align: center;
    padding: 40px 0;*/ padding: 5px 15px; }
/*.sidebar-header p {
    margin-top: 15px;
}*/
#SbNav, #SbNav li ul { list-style: none; padding-left: 0; }
#SbNav>li { border-top: 1px solid #fff; }
#SbNav>li:hover { background: #ff9393; }
#SbNav li div { position: relative; }
#SbNav h3, #SbNav h3 a { font-size: 18px; color: #383838; }
#SbNav h3 { display: inline-block; margin-bottom: 0; width: calc(100% - 40px); padding: 10px 0 10px 15px; }
#SbNav a { display: block; width: 100%; }
#SbNav i { display: block; width: 40px; height: 40px; font-style: normal; position: absolute; top: 0; right: 0; }
#SbNav i:before { font-family: 'Font Awesome 5 Free'; font-weight: 900; content: "\f107"; position: absolute; top: 10px; right: 15px; cursor: pointer }
#SbNav div:not(.collapsed) i:before { font-family: 'Font Awesome 5 Free'; font-weight: 900; content: "\f106"; color: #fff; }
#SbNav div:not(.collapsed) { background: #ff9393; }
#SbNav div:hover h3, #SbNav div:not(.collapsed) h3, #SbNav div:hover h3 a, #SbNav div:not(.collapsed) h3 a, #SbNav div:hover i { color: #fff; }
#SbNav li ul { margin-bottom: -2px; }
#SbNav li ul li { background: #fff; border-bottom: 1px solid #f0e9e3; }
#SbNav li ul li a { padding: 10px 15px 10px 36px; }
#SbNav li ul li:first-child { border-top: 1px solid #f0e9e3; }
#SbNav li ul li, #SbNav li ul li a { font-size: 16px; color: #383838; font-weight: bold; }
#SbNav li ul li:hover a { color: #fff; background: #ff9393; }
#SbNav li ul li a[href="javascript:;"]:hover { cursor: unset; }

/*
#sidebar .card {
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 20px;
}
#sidebar .card:last-child {
    margin-bottom: 0;
}
#sidebar .card .d-flex div {
    width: 50%;
}
#sidebar .card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
#sidebar .card h3:after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ec6b32;
    margin-left: 4px;
}
#sidebar .card h3 a {
    color: #2d2d2d;
}
#sidebar .card h3 a:hover {
    color: #ec6b32;
}
#sidebar .card h4 {
    font-size: 18px;
    color: #cb9a34;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 30px;
}
#sidebar .card h4 span.line {
    display: inline-block;
    border-bottom: 1px solid #cb9a34;
    margin: 0 0 4px 4px;
    -webkit-flex-grow: 1;
    flex-grow: 1;
}
#sidebar .card ul {
    list-style: none;
    padding-left: 0;
}
#sidebar .card li:before {
    content: "-";
    margin-right: 2px;
}
#sidebar .card li a {
    text-decoration: none;
    color: #000;
}
#sidebar .card li a:hover {
    color: #70431d;
}
*/
@media screen and (max-width: 767px) {
#sidebar { width: 100%; left: -100%;/*font-size: 15px;*/ }
/*#sidebar .card h3 {
        font-size: 18px;
    }
    .sidebar-header p {
        font-size: 16px;
    }*/
}
