/* CSS Document */
@charset "utf-8";
/*===================================================
  • Nav
    ├ topnav
    ├ dropdown menu
    └ second nav
  • Search Overlay
  • Sidebar Nav
  • Footer
  • Gotop
  ---------------------------------------------------
  last update 2020-01 (Sidebar Nav Accordion Style)
===================================================*/
.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 .navbar-nav .nav-item {padding: 0px; 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; }

@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; }
}

@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
---------------------------------------------------*/
/*js Sidebarmenu*/
.overlay,.sideMenu{position:fixed;bottom:0;}
.overlay{top:0;left:-100%;right:100%;margin:auto;background-color:rgba(0,0,0,.5);z-index:998;transition:all ease .2s;}
.overlay.open{left:0;right:0;}
/*.sidebarNavigation{margin-bottom:0;z-index:999;justify-content:flex-start}
.sidebarNavigation .leftNavbarToggler{margin-right:10px;order:-1}*/
.sideMenu{left:-100%;top:0;transition:all ease .5s;overflow:hidden;width:100%;z-index:999;max-width:80%;margin-bottom:0;padding:1rem;}
.sideMenu.open{left:0;display:block;overflow-y:auto;}
.sideMenu ul{margin:0;padding:0 15px;}
.navbar-toggler:focus,.navbar-toggler:active,.navbar-toggler-icon:focus{outline:none;box-shadow:none;}
.navbar-toggler{border:0 solid transparent;padding:0;}
.sidebar {background: #fae7d8;}
.sidebar .navbar-nav .nav-link a {font-weight: 700; color: #000; }
#dismiss { width: 35px; height: 35px; position: absolute; top: 0; right: 0; font-size: 24px; color: #727272; }
/*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; }

@media screen and (max-width: 767px) {
#sidebar { width: 100%; left: -100%;/*font-size: 15px;*/ }

}
/*---------------------------------------------------
Footer & 全域主選單-信誼logo箭頭開合區域
---------------------------------------------------*/
/*全域主選單-信誼logo箭頭開合區域*/
#allHsinyi { width: 100%; padding: 10px 0 0px; background: rgba(85, 71, 60, 0.95); position: absolute; z-index: 999; }
#allHsinyi .col { padding-left: 30px; position: relative; margin-bottom: 15px; }
#allHsinyi h5:before { content: ""; width: 2px; height: 26px; background: #f7ca00; left: 8px; position: absolute; }
#allHsinyi h5, #allHsinyi h5 a { font-size: 20px; color: #f7ca00; margin-bottom: 10px;}
#allHsinyi ul { margin-top: -10px; margin-bottom: 10px;line-height: 20px; }
#allHsinyi li { font-size: 14px; }
#allHsinyi li a { color: #fff; }

/*Footer*/
footer { background: #c2ab99; color: #fff; padding-bottom: 70px; }
footer hr { border-top: 1px solid #fff; }
footer .ft-about-hsinyi { padding: 30px 0 0 0; color: #fff; }
footer .ft-about-hsinyi a  { color: #fff; }
footer .ft-about-hsinyi h5 { font-size: 20px; margin-bottom: 3px; }
footer .ft-about-hsinyi h5:before { content: "|"; margin-right: 10px; }
footer .ft-about-hsinyi ul { margin: 0 0 15px 15px; }
footer .ft-about-hsinyi ul li { font-size: 14px; line-height: 25px; }
footer .ft-info { padding: 0 0 30px 0; font-size: 14px; }
footer .ft-info a { color: #fff; }
footer .ft-info ul.list-inline li:before { content: "|"; margin-right: .5rem; }
footer .ft-info ul.list-inline li:first-child:before { content: none; }
footer .ft-info-icon li { margin-bottom: 10px; }
footer .ft-icon { display: inline-block; width: 24px; height: 24px; position: relative; margin-right: 10px; border-radius: 50%; background: #fff; flex: 0 0 24px; color: #c2ab99; text-align: center; }
footer .ft-icon svg { color: #c2ab99; width: 14px; height: 14px; position: absolute; top: 5px; left: 5px; }
footer .ft-icon svg.fa-facebook-f { left: 8px; }
footer .fb-link li { margin-bottom: 0; line-height: 30px; }

@media screen and (max-width: 991px) {
footer .ft-about-hsinyi .col-sm-6 { margin-bottom: 25px; }
}
/*---------------------------------------------------
  Gotop
---------------------------------------------------*/
#gotop { position: relative; }
#gotop:after { content: ""; display:;
width: 100%; height: 1px; background: #fff; position: absolute; top: 12px; z-index: 1; }
#gotop span { cursor: pointer; display: block; width: 60px; height: 25px; background: url(https://parents.hsin-yi.org.tw/Content/img_V2/gotop.png) no-repeat center center; margin: 0px auto 15px; position: relative; z-index: 2; }
