/*以下為自訂設定*/
/*讀入思源黑體*/
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/*讀入oswald字體*/
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"), url("../fonts/fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
}


body {
    /* 先套用 Noto Sans TC 這個 思源黑體 */
    font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
}

.clr {
    display: table;
    clear: both;
}

a img {
    border: none;
    -o-transition: opacity .20s linear;
    -webkit-transition: opacity .20s linear;
    -moz-transition: opacity .20s linear;
    transition: opacity .20s linear;
}

a img:hover {
    opacity: 0.6;
    filter: alpha(opacity=80);
    -o-transition: opacity .20s linear;
    -webkit-transition: opacity .20s linear;
    -moz-transition: opacity .20s linear;
    transition: opacity .20s linear;
}

img {
    max-width: 100%;
}

a {
    color: #1F7144;
    text-decoration: none;
    transition: 0.5s;
}

a:hover {
    color: #646464;
    text-decoration: none;
    transition: 0.5s;
}

a:active {
    color: #1F7144;
    font-weight: bold;
}

img,
svg {
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
    height: auto;
}


.float_right,
figure.right.item-image {
    float: right;
    margin: 0 0 1em 1em;
    max-width: 50%;
}

.float_left {
    float: left;
    margin: 0 1em 1em 0;
    max-width: 50%;
}

@media (max-width: 499px) {

    .float_right,
    figure.right.item-image {
        float: none;
        margin: auto;
        margin-bottom: 1em;
        display: block;
        text-align: center;
        max-width: unset;
    }

    .float_left {
        float: none;
        margin: auto;
        margin-bottom: 1em;
        display: block;
        text-align: center;
        max-width: unset;
    }
}

@media (min-width: 768px) {
    .PC-flex {
        display: flex;
    }

    .flex_row-reverse {
        flex-direction: row-reverse;
    }

    .flex_align-center {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .PC-flex {
        display: block;
    }
}

/**************************/


/***************************內框架設定開始********/
/*************************#header */
#header {
    background: #FFFFFF;
    border-bottom: 1px solid #1F7144;
    position: relative;
}

#header.fixed-header {
    position: fixed;
    width: 100%;
    z-index: 9;
    top: -100px;
}

#main-menu .mod-menu.mod-list {
    flex-direction: row;
}

#main-menu .navbar {
    padding: 0px;
}

#main-menu ul.mod-menu>li.nav-item {
    height: 90px;
}

#main-menu ul.mod-menu>li.nav-item>a {
    font-weight: 400;
    font-size: 20px;
    line-height: 90px;
    text-align: center;
    letter-spacing: 0.05em;
    color: #1F7144;
    padding: 0px 10px;
    height: 90px;
    display: inline-block;
}

#main-menu ul.mod-menu>li.nav-item:hover>a {
    background-color: #1F714475;
    color: #fff;
}

#main-menu ul.mod-menu>li.nav-item.active>a {
    background-color: #1F7144;
    color: #fff;
}



#main-menu ul.mod-menu>li.nav-item>a.other_menu {
    display: none;
}

/*加上子選單*/
#main-menu ul.mod-menu>li.nav-item.parent>a:after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro";
    margin-left: 6px;
}

#main-menu ul.mod-menu>li.nav-item>ul.dropdown-menu {
    text-align: center;
    border: 1px solid #1F7144;
}

#main-menu ul.mod-menu>li.nav-item>ul.dropdown-menu li.nav-item {}

#main-menu ul.mod-menu>li.nav-item>ul.dropdown-menu li.nav-item>a {
    display: block;
    padding: 10px;
}

#main-menu ul.mod-menu>li.nav-item>ul.dropdown-menu li.nav-item>a:hover,
#main-menu ul.mod-menu>li.nav-item>ul.dropdown-menu li.nav-item.active>a {
    background-color: #1F7144;
    color: #fff;
}

#top-right {
    position: absolute;
    top: 34px;
    right: 0px;
    text-align: center;
}

#top-right .item {
    display: inline-block;
    position: relative;
    margin: 0px 5px;
}

#top-right i.fa-light,
#top-right i.fa-facebook {
    font-size: 26px;
    color: #1F7144;
    cursor: pointer;
}

#top-right .mod-languages {
    background-color: #fff;
    padding: 5px 0px;
    position: absolute;
    width: 56px;
    left: -15px;
    display: none;
    z-index: 9;
}

#top-right div.mod-languages li {
    padding: 0px;
}

.offcanvas-body .navbar-nav {
    display: block;
    width: 100%;
}

.offcanvas-body ul.mod-menu>li.nav-item {
    font-size: 20px;
}

.offcanvas-body ul.mod-menu>li.nav-item>a {
    padding: 5px 0px;
    display: inherit;
    margin-bottom: 5px;
}

.offcanvas-body ul.mod-menu>li.nav-item.active>a {
    border-bottom: 1px solid #1F7144;
}



/*加上子選單*/
.offcanvas-body ul.mod-menu>li.nav-item.parent>a:after {
    content: "+";
    float: right;
}

.offcanvas-body ul.mod-menu>li.nav-item>ul.dropdown-menu {
    position: relative;
    border: unset;
    padding-left: 20px;
}

.offcanvas-body ul.mod-menu>li.nav-item>ul.dropdown-menu>li {}

.offcanvas-body ul.mod-menu>li.nav-item>ul.dropdown-menu>li>a {
    display: block;
}

.offcanvas-body ul.mod-menu>li.nav-item>ul.dropdown-menu>li.active>a {
    border-bottom: 1px solid #1F7144;
}

.offcanvas-body ul.mod-menu>li.nav-item.active>ul.dropdown-menu {
    display: block !important;
}




@media (min-width: 1200px) {
    #logo img {
        width: 200px;
    }
}

@media (max-width: 1199px) {
    #main-menu ul.mod-menu>li.nav-item>a {
        font-size: 18px;
    }

    #logo img {
        width: 150px;
    }
}

@media (min-width: 768px) {
    #top-right_wrap {
        display: none;
    }
}

@media (max-width: 767px) {
    #main-menu_wrap {
        display: none;
    }

    #logo img {
        font-size: small;
        padding: 5px 0px;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    #header .container-lg {
        padding: 0px;
    }

    .offcanvas-body .collapse:not(.show) {
        display: block;
    }



    #top-right {
        top: 14px;
    }
}

@media (max-width: 575px) {


    #top-right {
        top: 14px;
    }

}


/*************************#copyright */
.copyright_wrap {
    padding: 30px 0px;
    color: #333;
    font-size: 1rem;
    border-top: 1px solid #1F7144;
    text-align: center;
}


/*************************#slideshow  */
#slideshow img {
    width: 100%;
}

/*************************首頁的設定 */
#content-w1 .component {
    margin-top: 6em;
    margin-bottom: 5em;
}

#content-w1 .component .page-header {
    margin-bottom: 2em;
}

/*首頁-最新消息*/
.moduletable.home_news {
    margin-top: 4em;
}

.moduletable.home_news h3 {
    border-bottom: 1px solid #1f7144;
    color: #1f7144;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
}

.moduletable.home_news .mod-articlesnews.newsflash {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 3em;
    grid-row-gap: 3em;
}

.moduletable.home_news .mod-articlesnews__item {}

.moduletable.home_news .mod-articlesnews__item::after {
    content: "";
    display: block;
    clear: both;
}

.moduletable.home_news .mod-articlesnews__item .newsflash-image {
    float: left;
    width: 40%;
    margin-bottom: 1em;
    margin-right: 1em;
}

.moduletable.home_news .mod-articlesnews__item p.readmore {
    text-align: right;
}
@media (max-width: 767px) {
    .moduletable.home_news .mod-articlesnews__item .newsflash-image {
        float: none;
        width: 100%;
        text-align: center;
    }
}

/*************************#footer */

/*內頁 - 講師*/
.teacher_list .teacher-img {
    text-align: center;
    margin-bottom: 2em;
}

.teacher_list .teacher-img img {
    width: 100%;
}

.teacher_list>.row {
    border: 1px solid #ccc;
    padding: 2em;
    border-radius: 10px;
    margin: 0px 0px 2em 0px;
}

.teacher_list>.row:nth-child(odd) {
    background-color: #ededed;
}

.teacher_list .teacher-txt h4 {
    margin-bottom: 1em;
}

/*內頁：技術文章-部落格列表*/

.com-content-category-blog__item {
    margin-bottom: 4em;
}

@media (min-width: 576px) {
    body.page_article .com-content-category-blog__item {
        display: flex;
        gap: 40px 40px;
    }

    body.page_article .com-content-category-blog__item>.item-image {
        width: 20%;
    }

    body.page_article .com-content-category-blog__item>.item-content {
        width: 90%;
    }

    body.page_courses .com-content-category-blog__item {}
}




/*詳細頁*/
#content-w1 .component .com-content-article .page-header {
    border-bottom: 1px solid #1f7144;
    color: #1f7144;
}

/*分頁*/
.com-content-category-blog__navigation {
    text-align: center;
    margin-top: 4em;
    border-top: 1px solid #d4d4d4;
    padding-top: 1em;
}

.com-content-category-blog__navigation p.com-content-category-blog__counter {
    float: none !important;
}

.com-content-category-blog__pagination {
    clear: both;
}

ul.pagination {
    justify-content: center;
}

ul.pagination .page-link {
    color: #1F7144;
}

ul.pagination .page-item.active .page-link {
    background-color: #1F7144;
    border-color: #1F7144;
}

.icon-angle-left:after {
    content: "\f104";
    font-family: "Font Awesome 6 Pro";
}

.icon-angle-right:after {
    content: "\f105";
    font-family: "Font Awesome 6 Pro";
}

.icon-angle-double-left:after {
    content: "\f100";
    font-family: "Font Awesome 6 Pro";
}

.icon-angle-double-right:after {
    content: "\f101";
    font-family: "Font Awesome 6 Pro";
}


/*彈出視窗*/
.fixed_buttoms {
    bottom: 150px;
    right: 0;
    position: fixed;
    z-index: 2;
}

.to_contact_modal {
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
}

.to_contact_modal>a {
    background-color: #1F7144;
    display: inline-block;
    color: #fff !important;
    padding: 16px 10px;
    border-radius: 10px 0px 0px 10px;
    border: 1px solid #fff;
    cursor: pointer;
}

#contact_modal .modal-content {
    /*background-color: #cdac82;*/
    background-color: #1F7144;
}

#contact_modal .modal-content .modal-header h5 {
    font-size: 1.5em;
}

#contact_modal .modal-content .modal-header .btn-close {
    background-color: #fff;
}

#contact_modal .modal-content .modal-header {
    border-bottom: none;
    padding-bottom: 0px;
}

#contact_modal .modal-content .modal-footer {
    border-top: none;
}

.modal-header {
    position: relative;
}

.modal-header h5.modal-title {
    color: #fff;
    width: 100%;
    text-align: center;
}

/*右下回到最上面的小按鈕*/
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1F7144;
    border-color: #1F7144;
    color: #fff;
    display: none;
}

#btn-back-to-top.show {
    display: block;
}



/*pc 和 mobile行動瀏覽的硬設定*/

.only_pc {}

.only_mobile {}

@media (min-width: 768px) {

    .pc_flex {
        display: flex;
    }

    .pc_space-between {
        justify-content: space-between;
        align-items: center;
    }

    .only_pc {}

    .only_mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .pc_flex {
        display: block;
    }

    .only_pc {
        display: none;
    }

    .only_mobile {}
}