/* all.css */
/* 此為共用style樣式, 頁面: 全部 */
/* 包含: 主色調色票、header樣式、footer樣式、header-Offcanvas樣式(摺疊選單)、news-modal、anchorTop */

/* 色票 */
.Primary400{
    color: #65B5DD;
}
.Primary500{
    color: #3FA2D4;
}
.Primary600{
    color: #3282AA;
}
.Primary700{
    color: #276d91;
}
.Primary400b{
    background-color: #65B5DD;
}
.Primary500b{
    background-color: #3FA2D4;
}
.Primary600b{
    background-color: #3282AA;
}
.Secondary400{
    color: #6DE3B9;
}
.Secondary500{
    color: #48DCA7;
}
.Secondary600{
    color: #3AB086;
}
.Secondary400b{
    color: #6DE3B9;
}
.Secondary500b{
    color: #48DCA7;
}
.Secondary600b{
    color: #3AB086;
}

/* 字體 */
.fs-em-11{
    font-size: 1.1em;
}
.fs-em-12{
    font-size: 1.2em;
}
.fs-em-13{
    font-size: 1.3em;
}
.fs-em-14{
    font-size: 1.4em;
}
.fs-em-15{
    font-size: 1.5em;
}
.fs-em-16{
    font-size: 1.6em;
}
.fs-em-20{
    font-size: 2em;
}
/*寬度*/
.w-5{
    width: 5% !important;
}
.w-10{
    width: 10% !important;
}
.w-20{
    width: 20% !important;
}
.w-60{
    width: 60% !important;
}
.w-80{
    width: 80% !important;
}
.w-90{
    width: 90% !important;
}
@media (min-width: 992px){
    .w-lg-100 {
        width: 100% !important;
    }
    .w-lg-90 {
        width: 90% !important;
    }
    .w-lg-80 {
        width: 80% !important;
    }
    .w-lg-50{
        width: 50% !important;
    }
    .w-lg-25{
        width: 25% !important;
    }
    .w-lg-10 {
        width: 10% !important;
    }
    .w-lg-5{
        width: 5% !important;
    }
}
@media (min-width:768px) {
    .w-md-100 {
        width: 100% !important;
    }
    .w-md-90 {
        width: 90% !important;
    }
    .w-md-80 {
        width: 80% !important;
    }
    .w-md-50{
        width: 50% !important;
    }
    .w-md-25{
        width: 25% !important;
    }
    .w-md-10 {
        width: 10% !important;
    }
    .w-md-5{
        width: 5% !important;
    }
}


/* 共用樣式 */
.text-justify{
    text-align: justify;
}
.modal.fade{
    z-index: 10000;
}
.modal-dialog{
    z-index: 10001;
}
.modal-content{
    position: relative;
    overflow: visible !important;
}
.modal-body{
    padding: 30px;
    background-color: #FFF;
    border-radius: 10px;
}
.modal button.close-btn{
    border-radius: 10px;
    border: 1px solid #5E5E5E;
    background-color: transparent;
    color: #5E5E5E;
    line-height: 26px;
    padding: 5px 25px;
}
.modal button.close-btn:hover, .modal button.close-btn:active, .modal button.close-btn:focus{
    border: 1px solid #3FA2D4;
    background-color: #3FA2D4;
    color: #ffffff;
}
.modal .modal_announcement button.close-btn{
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0px;
    right: -40px;
    padding: 0px;
    background-color: rgba(255, 255, 255, 0.548);
    z-index: 10;
}
@media (max-width: 768px){
    .modal .modal_announcement button.close-btn{
        top: -40px;
        right: 0px;
    }
}

.modal button.btn-submit{
    border-radius: 50px;
    border: 1px solid #3FA2D4;
    background-color: #3FA2D4;
    color: #5E5E5E;
    line-height: 26px;
    padding: 5px 25px;
    color: #FFF;
}
.modal button.btn-submit:hover, .modal button.btn-submit:active, .modal button.btn-submit:focus{
    border: 1px solid #3282AA;
    background-color: #3282AA;
    color: #ffffff;
}
.modal button.btn-submit i{
    margin-left: 15px;
}

.modal button.btn-cancel{
    border-radius: 50px;
    border: 1px solid #E7E7E7;
    background-color: #E7E7E7;
    color: #5E5E5E;
    line-height: 26px;
    padding: 5px 25px;
}
.modal button.btn-cancel:hover, .modal button.btn-cancel:active, .modal button.btn-cancel:focus{
    border: 1px solid #cecece;
    background-color: #cecece;
}
.modal button.btn-cancel i{
    margin-left: 15px;
}

/* body */
body{
    background: #ffffff;
}

/* header */
header{
    position: fixed;
    top: 0;
    z-index: 9999 !important;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition-property: background-color, border-bottom;
    transition-duration: 0.4s, 0.3s;
    transition-timing-function: ease-out;
}
.header-container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    width: 80%;
    margin: auto;
}
.navMenu{
    padding: 20px 10px 20px 10px;
    font-weight: bolder;
}
.navMenu > ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}
.navMenu > ul > li{
    display: flex;
    align-items: center;
    padding-left: 0;
}
.navMenu > ul > li > a{
    text-decoration: none;
    color: #3C3C3C;
    margin: 10px 20px;
    font-size: 1.1em;
    white-space: nowrap;
}
.navMenu >ul>li>a:hover, .navMenu >ul>li>a:focus{
    color: #3FA2D4;
}
.navMenu ul.dropdown-menu{
    top: 28px !important;
}
.navMenu ul.dropdown-menu:before{
    content: " ";
    display: block;
    width: 70px;
    border-bottom: 7px solid #3FA2D4;
    position: absolute;
    top: -7px;
    left: calc( 50% - 35px);
}
.navMenu ul.dropdown-menu li a{
    text-decoration: none;
    color: #1F1F1F;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    margin: 0px;
    padding: 10px 20px;
}
.navMenu .dropdown-menu>li>a:focus, .navMenu .dropdown-menu>li>a:hover, .navMenu .dropdown-submenu:focus>a, .navMenu .dropdown-submenu:hover>a {
    background-color: rgba(205, 205, 205, 0.20);
}
.navMenu ul.dropdown-menu li a i{
    color: #3FA2D4;
    margin-right: 10px;
}
.search {
    display: flex;
    align-items: center;
}
.search input{
    border-radius: 20px;
    padding-right: 35px !important;
    width: 100%;
    max-width: 186px;
}
.search a{
    position: relative;
    left: -30px;
}
.search-sm{
    display: none;
    margin: auto 10px;
}
.search-sm a i{
    font-size: 24px;
    color: #5E5E5E !important;
}
ul.dropdown-search{
    padding: 5px 10px 15px 10px;
    background: transparent;
    border: 0px;
    box-shadow: none;
    width: 100%;
    transform: translate(0%, 80px) !important;
    border-bottom: 1px solid rgb(234, 234, 234);
    border-radius: 0;
    transition-property: background-color, border-bottom;
    transition-duration: 0.4s, 0.3s;
    transition-timing-function: ease-out;
}
ul.dropdown-search input{
    border-radius: 5px;
    width: 100%;
    height: 37px;
    &:focus{
        border-color: #3FA2D4;
        color: #3f3f3f;
    }
}
ul.dropdown-search input::placeholder {
    color: rgb(202, 202, 202);
}
ul.dropdown-search button{
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
    background-color: #f8f8f8;
    height: 37px;
}
ul.dropdown-search button:hover{
    background-color: #3FA2D4;
    color: #FFF;
}
/* header 搜尋框暫時隱藏 */
.header-container .search, .header-container .search{
    visibility: hidden;
}
/* 摺疊選單 */
.offcanvas.show{
    z-index: 10000;
}
.header-Offcanvas{
    margin: 15px;
    display: none;
}
.header-Offcanvas a,
.header-Offcanvas button {
    color: #3FA2D4;
}
.header-Offcanvas a i,
.header-Offcanvas button i {
    font-size: 36px;
}
.navbar-toggler-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    color: inherit;
    font: inherit;
    display: inline-block;
}
.offcanvasSubtitle{
    font-size: 1.2em;
    border-bottom: 0.5px solid #3b3b3b;
    margin: 30px 0 15px 0;
    padding: 0 0 5px 0;
}
.offcanvasDownMenu{
    display: inline-block;
    line-height: 1.5;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    color: #3b3b3b;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-size: 1.2em;
    font-weight: 700;
    padding: 6px 0px;
    margin: 10px 10px 0px 10px;
    width:  calc( 100% - 10px);
    text-align: left;
}
.offcanvasDownMenu:hover, .offcanvasDownMenu:focus{
    color: #3FA2D4;
}
.offcanvasDownMenu.active{
    border-bottom: 5px solid #3FA2D4;
}
.offcanvasDownMenuul{
    display: none;
    margin-left: 10px;
    list-style: none;
    padding-left: 0px;
    border: 1px solid #cecece;
}
.offcanvasDownMenuul li{
    padding: 15px;
}
.offcanvasDownMenuul li:hover{
    background-color: rgba(219, 219, 219, 0.2);
}
.offcanvasDownMenuul li a{
    text-decoration: none;
    color: #3b3b3b;
    font-weight: 500;
}
.offcanvasDownMenuul li a i{
    color: #3282AA;
    margin-right: 10px;
}

/* footer */
footer{
    background-color: #FFF;
}
.footer-container{
    width: 80%;
    margin: auto;
    display: flex;
    padding: 50px 0px;
}
.footer-border{
    height: 27px;
    background: linear-gradient(90deg, #22ACC8 0%, #208CC1 100%);
}
.footerInfoBlock img{
    margin-bottom: auto;
}
.footerInfo{
    width: 420px;
    padding: 10px 0px;
    margin-top: 60px;
    margin-bottom: 30px;
}
.footerMenu{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 1em;
}
.footerMenuList{
    padding: 10px;
}
.footerMenuList span{
    color: #3FA2D4;
    font-size: 1.3em;
    font-weight: 700;
    text-wrap: nowrap;
}
.footerMenuList ul{
    list-style-type: none;
    padding-left: 0;
    margin-top: 15px;
    font-family: 'Noto Sans TC';
    font-weight: 500;
}
.footerMenuList li{
    padding: 8px 0px;
}
.footerMenuList a{
    text-decoration: none;
    color: #1F1F1F;
    text-align: justify !important;
}
.footerMenuList a:hover{
    color: #3282AA;
}

/* anchorTop */
.anchorTop{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    color: #FFF;
    text-decoration: none;
    background-color: rgba(63, 162, 212, 0.1);;
    border-radius: 80px;
    position: fixed;
    bottom: 35px;
    right: 15px;
    z-index: 9998;
}
.anchorTopOuter{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background-color: rgba(63, 162, 212, 0.20);
    border-radius: 80px;
}
.anchorTopInnner{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #3FA2D4;
    border-radius: 80px;
}
.anchorTopText{
    text-align: center;
}
.anchorTopText div{
    position: relative;
    top: -5px;
}

/* modal-main */
.modal-backdrop {
    z-index: 9999;
}
/* news-modal */
.news-modal-title{
    font-weight: bold;
    font-size: 1.6em;
    color: #3282AA;
    text-align: left;
    max-width: 90%;
    width: fit-content;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}
.news-modal-subtitle{
    font-size: 1.1em;
    font-weight: 700;
    color: #3FA2D4;
    margin-top: 30px;
    margin-bottom: 15px;
}
.news-modal-content{
    text-align: justify;
    width: 90%;
    margin: auto;
    color: #4D4D4D;
    line-height: 1.6em
}
.news-modal-content a{
    color: #65B5DD;
}
.news-modal-content ol li{
    padding-left: 10px;
}
.news-modal-img, .news-modal-img-sm{
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0px;
}
.news-modal-img img{
    width: 100%;
}
.news-modal-img-sm img{
    max-height: 100%;
    max-width:100%;
    width: auto;
}
.news-modal-img-description{
    font-size: 12px;
    color: #555555;
    text-align: justify;
    width: fit-content;
    margin: auto;
    margin-top: -25px;
    margin-bottom: 30px;
}

/* 錯誤提示區塊 */
.alert.alert-danger{
    background-color: #FFEAEC;
    border: none;
    color: #BE1E2D;
    box-shadow: 0px 4px 5px 0px #e18d8d78;
}


@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){
    .logo {
        margin-right: auto;
        margin-left: 14px;
        margin-top: 18px;
    }
}
@media(max-width: 1600px){
    .header-container{
        width: 90%;
    }
}
@media(max-width: 1400px){
    .header-container{
        width: 100%;
    }
    .footer-container{
        display: block;
    }
    .footerInfoBlock{
        display: flex;
    }
    .footerInfo{
        padding: 30px 0px 30px 30px;
        margin: 0px;
    }
    .footerInfoBlock img{
        margin: 0px;
    }
    .footerMenu{
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 1em;
    }
}
@media(max-width: 1200px){
    .navMenu{
        display: none;
    }
    .header-Offcanvas{
        display: inherit;
    }
    .footerInfo {
        width: 400px;
    }
}
@media(max-width: 991px){
    .footer-container {
        width: 90%;
    }
    .footerInfo {
        width: 100%;
    }
    .footerMenu{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 1em;
    }
    .news-modal-title{
        max-width: 100%;
        font-size: 1.5em;
        text-align: justify;
        margin-top: 10px;
    }
    .news-modal-content{
        width: 100%;
    }
}
@media (max-width: 767px){
    .logo {
        margin: 18px 14px !important;
    }
    .search{
        display: none;
    }
    /* .search-sm{
        display: inherit;
    } */
    .footer-container {
        width: 90%;
    }
    .footerInfoBlock{
        display: block;
    }
    .footerInfo{
        padding: 0px;
        margin: 40px 0px;
    }
    .footerInfoBlock img{
        margin: 0px;
    }
    .footerMenu{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 1em;
    }
}
@media (max-width: 576px){
    .news-modal-title{
        font-size: 1.4em;
    }
}
@media (max-width: 500px){
    .footerMenu{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 1em;
    }
}
@media (max-width: 400px){
    .logo img{
        width: 100%;
        height: auto;
    }
}


body > .skiptranslate {
    display: none;
}
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
a[href="https://translate.google.com"] {
    display: none !important;
}
#google_translate_element{
    display: flex;
    align-items: center;
    min-width: 180px;
}
.goog-te-combo{
    max-width: 100px;
    margin-top: 20px !important;
}

@media (max-width: 767px){
    .goog-te-combo{
        margin-right: 15px !important;
    }
    #google_translate_element{
        min-width: 0px;
    }
}
