@charset "UTF-8";
/*  */

* {
    outline: 0;
    font-family: Helvetica, Arial, 'Microsoft JhengHei', sans-serif, '微軟正黑體', '新細明體';
    font-size: 1rem;
    /* color:#333; */
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

html,
body {
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    /* font-family: 'Noto Serif TC', serif; */
    /* color:#ac5d00; */
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.8rem;
}

a,
a:hover,
a:link,
a:active {
    text-decoration: none;
}

a,
a:hover {
    text-decoration: none;
    outline: none;
    color: #333;
    transition: 0.3s;
}

a:hover {
    color: #e51f1f;
}

mark {
    padding: 0 0.25em;
    background: #fff7c1;
    color: #cc8430;
}

label {
    font-weight: normal;
}

.btn,
select,
option {
    font-size: inherit;
}


/*
 * icon
 */

i.os{
    display:inline-block;
    margin-right:0.5em;
    width:1.15em;
    height:1em;
    font-style:normal;
}
i.os-cal-day{
    background:url(../images/icons/calendar-2.svg) no-repeat;
}
i.os-clock{
    background:url(../images/icons/clock.svg) no-repeat;
}
.svg-color{
    fill:#aaa;
}

/*
 * ----------------------------------------------------------------------------------------------
 * 版頭和選單
 * ----------------------------------------------------------------------------------------------
 */

.lay-header {
    position: relative;
    background: #e51f1f;
}

.xander-logo {
    position: relative;
    padding: 1em 0;
}

.xander-logo img {
    width: 250px;
}

@media screen and (max-width:992px) {
    .xander-logo {
        text-align: center;
    }

    .xander-logo img {
        width: 230px;
    }
}


/* metismenu */

.metismenu .arrow {
    float: right;
    line-height: 1.42857;
}

[dir=rtl] .metismenu .arrow {
    float: left;
}

.metismenu .plus-times {
    float: right;
}

[dir=rtl] .metismenu .plus-times {
    float: left;
}

.metismenu .fa.plus-times:before {
    content: "\f067";
}

.metismenu .mm-active>a>.fa.plus-times {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.metismenu .plus-minus {
    float: right;
}

[dir=rtl] .metismenu .plus-minus {
    float: left;
}

.metismenu .fa.plus-minus:before {
    content: "\f067";
}

.metismenu .mm-active>a>.fa.plus-minus:before {
    content: "\f068";
}

.metismenu .mm-collapse:not(.mm-show) {
    display: none;
}

.metismenu .mm-collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition-timing-function: ease;
    transition-duration: .35s;
    transition-property: height;
    visibility;
}

.metismenu .has-arrow {
    position: relative
}

.metismenu .has-arrow:after {
    position: absolute;
    content: "";
    width: .5em;
    height: .5em;
    border-width: 1px 0 0 1px;
    border-style: solid;
    border-color: initial;
    right: 1em;
    -webkit-transform: rotate(-45deg) translateY(-50%);
    transform: rotate(-45deg) translateY(-50%);
    -webkit-transform-origin: top;
    transform-origin: top;
    top: 50%;
    transition: all .3s ease-out;
}

[dir=rtl] .metismenu .has-arrow:after {
    right: auto;
    left: 1em;
    -webkit-transform: rotate(135deg) translateY(-50%);
    transform: rotate(135deg) translateY(-50%);
}

.metismenu .has-arrow[aria-expanded=true]:after,
.metismenu .mm-active>.has-arrow:after {
    -webkit-transform: rotate(-135deg) translateY(-50%);
    transform: rotate(-135deg) translateY(-50%);
}

[dir=rtl] .metismenu .has-arrow[aria-expanded=true]:after,
[dir=rtl] .metismenu .mm-active>.has-arrow:after {
    -webkit-transform: rotate(225deg) translateY(-50%);
    transform: rotate(225deg) translateY(-50%)
}


/* 自訂 */

.topbar-nav {
    width: 100%;
    padding-bottom: 1em;
}

.topbar-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.topbar-nav .metismenu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

.topbar-nav .metismenu>li {
    position: relative;
}

.topbar-nav .metismenu a {
    position: relative;
    display: block;
    padding: 0.5em 1em;
    color: #fff;
    outline-width: 0;
    transition: all .3s ease-out;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
}

.topbar-nav .metismenu a:hover,
.topbar-nav .metismenu a:active {
    color: #fff;
    text-decoration: none;
    background: #e51f1f;
}
.topbar-nav .metismenu a.focus,
.topbar-nav .metismenu a:hover {
    background:#fc4848;
}
.topbar-nav .metismenu a:hover.focus{
    border-radius:0;
}

.topbar-nav .metismenu>li>ul {
    background: #eee;
    color: #333;
    box-shadow: 0 10px 15px -8px rgba(0, 0, 0, 0.2);
}

.topbar-nav .metismenu>li>ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topbar-nav .metismenu>li>ul li:nth-last-child(1) {
    border-bottom: 0 solid;
}

.topbar-nav .metismenu>li>ul li a,
.topbar-nav .metismenu>li>ul li a:hover,
.topbar-nav .metismenu>li>ul li a:active {
    color: #333;
    font-size: 1rem;
    /* font-weight:normal; */
    text-align: left;
}

.topbar-nav .metismenu>li>ul li a:hover {
    padding-left: 1.5em;
    background: #f8f8f8;
    color: #e51f1f;
}

.my-nav-stat {
    padding: 1em;
    text-align: right;
    font-size: 1.5em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 992px) {
    .topbar-nav {
        display: inline-block;
        padding-bottom: 0;
        width: auto;
    }

    .topbar-nav .metismenu {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .topbar-nav .metismenu>li {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .topbar-nav .metismenu>li>ul {
        position: absolute;
        top: 100%;
        width: 200px;
        min-width: 100%;
        z-index: 99999999;
    }
    .topbar-nav.is-hoverable .metismenu > li > ul {
      height: auto !important;
    }
    .topbar-nav.is-hoverable .metismenu > li:hover > ul {
        display: block;
    }
    .topbar-nav.is-hoverable .metismenu > li:hover > a.has-arrow:after {
        -webkit-transform: rotate(-135deg);
                transform: rotate(-135deg);
    }

    .menu-open {
        display: none;
    }

    .menu-close {
        display: none;
    }
}

@media (max-width: 991px) {
    .overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: 1;
        top: 0;
        left: -100vw;
        background: rgba(229, 31, 31, 1);
        overflow-x: hidden;
        transition: 0.3s;
    }

    .menu-open {
        position: absolute;
        display: inline-block;
        right: 1em;
    }

    .lay-nav {
        border-top: 1px solid #ddd;
    }
}


/*
 * --------------------------------------------------------------------------------
 * 內文區塊
 * --------------------------------------------------------------------------------
 */

.lay-content {
    background: #f2f2f2;
}


/*
* --------------------------------------------------------------------------------
* 導覽列
* --------------------------------------------------------------------------------
*/

.lay-nav {
    padding: 1em 0;
}

.nav-box {
    padding: 1rem 0;
    font-size: 1rem;
}

ul.nav-links,
ul.nav-links li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1em;
}

ul.nav-links {
    display: inline-block;
}

ul.nav-links li {
    display: inline-block;
    color: #333;
}

ul.nav-links li::after {
    content: '»';
    display: inline-block;
    width: 1.4em;
    text-align: center;
}

ul.nav-links li:nth-last-child(1)::after {
    content: '';
    width: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #e51f1f;
    background: #fff;
}


/*
* --------------------------------------------------------------------------------
* 按鈕設定
* --------------------------------------------------------------------------------
*/

.btn-red {
    display: inline-block;
    margin: 0.1em;
    padding: 0.35em 0.5em;
    text-align: center;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-r{
    background:#fff;
    color:#e51f1f;
    border:1px solid #f87878;
    transition: 0.3s;
}

.btn-red:hover,
.btn-red:focus,
.focus {
    color: #e51f1;
    background: #fff;
    border: 1px solid #f87878;
}


/*
 * --------------------------------------------------------------------------------
 * 分頁設定
 * --------------------------------------------------------------------------------
 */

.page-zone {
    margin: 2em 0;
    text-align: center;
}

.page-zone a.prev,
.page-zone a.next,
.page-zone ul.page,
.page-zone ul.page li {
    display: inline-block;
}

.page-zone ul.page,
.page-zone ul.page li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-zone a {
    margin: 0 0.05em;
    padding: 0.5em 0.75em;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 5em;
    transition: 0.3s;
}

.page-zone a:hover {
    color: #e51f1f;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.page-zone a.focus {
    background: #e51f1f;
    border: 1px solid #e51f1f;
    color: #fff;
}

.page-zone a.prev,
.page-zone a.next {
    background: #fff;
}


/* 網格模式的排版 */

ul.grid,
ul.grid li {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.grid {
    display: flex;
    flex-wrap: wrap;
    /*折行*/
    justify-content: flex-start;
    /*子元素置左*/
}

ul.grid li {
    margin-bottom: 1.5em;
    padding: 0.5em 1em;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul.grid li>.grid-item {
    position: relative;
    overflow: hidden;
    display: block;
    margin-left: 0.25em;
    margin-right: 0.25em;
    padding-bottom: 5em;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    height: 100%;
    transition: 0.3s;
}

ul.grid li>.grid-item:hover {
    box-shadow: 0 9px 20px -7px rgba(0, 0, 0, 0.1);
    transform: translateY(-15px);
}

a.grid-item img.lesson-pic {
    width: 100%;
}

a.grid-item header {
    margin-top: 1.5em;
    margin-bottom: 1.5em;

    padding-left: 2rem;
    padding-right: 2rem;
    /* text-align: center; */
}
a.grid-item header .row{
    padding-bottom:0.5em;
    border-bottom:1px solid #eee;
    color:#aaa;
}

a.grid-item header h3 {
    font-family: Helvetica, Arial, 'Microsoft JhengHei', sans-serif, '微軟正黑體', '新細明體';
    font-weight: bold;
    color: #333;
}

a.grid-item p.location {
    text-align: center;
    font-size: 1.35em;
    font-weight: bold;
    color: #999;
}

a.grid-item p {
    padding-left: 2rem;
    padding-right: 2rem;
    color: #aaa;
}

.btn-position {
    position: absolute;
    bottom: 1.5em;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    text-align: center;
}

.btn-stat {
    display: inline-block;
    margin: 0.1em;
    padding: 0.35em 0.75em;
    min-width: 6em;
    border-radius: 0.25em;
    font-size: 1.35em;
    font-weight: bold;
    transition: 0.3s;
}

ul.grid li>a.grid-item:hover .btn-stat {
    border-radius: 0.75em;
}

.btn-stat.red {
    background: #e51f1f;
    color: #fff;
    border: 1px solid #e51f1f;
}
.btn-stat.fulls {
    background: #fff;
    color: #e05200;
    border: 1px solid #e05200;
}
.btn-stat.limiteds {
    background: #fff;
    color: #ff00b4;
    border: 1px solid #ff00b4;
}

.btn-stat.end {
    background: #fff;
    color: #e51f1f;
    border: 1px solid #e51f1f;
}

.btn-stat.blue {
    background: #fff;
    color: #24a8e6;
    border: 1px solid #24a8e6;
}

.btn-stat.green {
    background: #fff;
    color: #6fbc14;
    border: 1px solid #6fbc14;
}

@media (min-width: 993px) {

    /* 大尺寸 993 以上 */
    ul.grid li {
        width: 33.3333333%;
    }
}

@media (max-width: 992px) {
    ul.grid li {
        width: 50%;
    }
}

@media (max-width: 768px) {
    ul.grid li {
        width: 50%;
    }
}
@media (max-width: 600px) {

    .mobile-search {
        display: block;
    }
}
@media (min-width: 601px) {
    .mobile-search {
        display: inline;
    }
}

@media (max-width: 576px) {
    ul.grid li {
        width: 100%;
    }
}


/* 日曆模式 */

.online::before,
.full::before,
.draft::before,
.schedule::before,
.deadline::before,
.limited::before {
    content: '上線';
    display: inline-block;
    margin-right: 0.5em;
    padding: 1px 5px;
    font-size: 0.75em;
    color: #ff333d;
    border-radius: 10px;
    border: 1px solid #eb9e9e;
    line-height:120%;
}
table.table-cal td{
    position: relative;
}
td.online::before,
td.full::before,
td.draft::before,
td.schedule::before,
td.deadline::before,
td.limited::before {
    content:'上線';
    position: absolute;
    top: 0.75em;
    left: 0.5em;
}
td.online::before,
td.online a{
    color:#ff333d;
}
td.full::before {
    content: '額滿';
}
td.full::before,
td.full a{
    color: #e05200;
}
.online::before {
    content: '上線';
}
td.draft::before{
    content: '草稿';
}
td.draft::before,
td.draft a{
    color:#36b623;
}
td.schedule::before{
    content:'排程';
}
td.schedule::before,
td.schedule a{
    color:#008ad3;
}
td.deadline::before{
    content:'截止';
}
td.deadline::before,
td.deadline a{
    color:#666;
}
td.limited::before{
    content:'限定';
}
td.limited::before,
td.limited a{
    color:#ff00b4;
}
a.online {
    display: block;
    color: #ff333d;
}

.full::before {
    content: '額滿';
    color: #e05200;
    border-radius: 10px;
    border: 1px solid #f6b38d;
}

a.full {
    display: block;
    color: #e05200;
}

.draft::before {
    content: '草稿';
    color: #36b623;
    border-radius: 10px;
    border: 1px solid #9ede95;
}

a.draft {
    display: block;
    color: #36b623;
}

.schedule::before {
    content: '排程';
    color: #008ad3;
    border-radius: 10px;
    border: 1px solid #9ccce6;
}

a.schedule {
    display: block;
    color: #008ad3;
}

.deadline::before {
    content: '截止';
    color: #666;
    border-radius: 10px;
    border: 1px solid #ccc;
}

a.deadline {
    display: block;
    color: #666;
}
a.limited{
    display: block;
    color: #ff00b4;
}
.limited::before{
    content: '限定';
    color: #ff00b4;
    border-radius: 10px;
    border: 1px solid #ff8add;
}

.view-cal {
    background: #fff;
}

table.table-cal,
table.table-cal tr th,
table.table-cal tr td {
    border: 1px solid #eee;
}

table.table-cal {
    width: 100%;
}

table.table-cal tr th {
    padding: 0.5em 0;
    width: 14.28571%;
    /* border-bottom: 3px solid #ddd; */
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    background:#e51f1f;
    color:#fff;
}

table.table-cal tr td {
    padding: 0.5em 0.5em 2em;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height:150px;
}
table.table-cal tr td:hover{
    background:#f2f2f2;
    /* background:rgba(255, 255, 255, 0.9); */
}

.cal-field {
    padding-bottom: 0.5em;
    font-weight: bold;
    text-align: right;
}

td.non {
    color: #ddd;
    /* background: #f6f6f6; */
    font-weight: normal;
}

.month-bar {
    margin: 0 0 1.5em;
    text-align: center;
}

.month-bar a.prev-month,
.month-bar a.next-month,
.month-now {
    display: inline-block;
    font-size: 1.5em;
}

.month-bar a.prev-month,
.month-bar a.next-month {
    padding: 0.5em 1em;
    font-size: 1em;
    background: #fff;
    border-radius: 5em;
}

.month-bar a {
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
}

.month-now {
    margin: 0 1em;
    font-weight: bold;
}

@media (max-width:992px) {
    .mobile-non {
        display: none;
    }
}


/*
* --------------------------------------------------------------------------------
* .footer 版尾
* --------------------------------------------------------------------------------
*/

ul.footerTopLinks,
ul.footerTopLinks li,
ul.officeTel,
ul.officeTel li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.footerTopLinks li,
ul.officeTel li {
    display: inline-block;
}

ul.footerTopLinks {
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #888;
}

ul.officeTel {
    text-align: center;
}

ul.officeTel li {
    padding: 0 1em;
}

ul.footerTopLinks li a {
    display: inline-block;
    padding: 0 1em 0 0.75em;
    color: #888;
    border-right: 1px solid #ddd;
}

ul.footerTopLinks li a:hover {
    color: #e51f1f;
}

ul.footerTopLinks li:nth-last-child(1) a {
    border-right: 0px;
}

.footerBottom {
    padding: 1rem 0;
    font-size: 0.875rem;
    border-top: 1px solid #ddd;
}

.footerBottom,
.footerBottom a {
    color: #888;
}

.footerBottom a:hover {
    color: #e51f1f;
}

.xanderInfo .companyName {
    margin-bottom: 0;
    font-family: '微軟正黑體';
    font-weight: bold;
    font-size: 1.1rem;
    color: #111;
}

.hotline {
    font-size: 0.75em;
}

.xanderCopyright {
    font-size: 0.75rem;
    text-align: right;
}

@media screen and (max-width:1200px) {

    /* 版權 */
    .xanderInfo,
    .xanderCopyright {
        text-align: center;
    }

    .companyName {
        color: #333;
    }

    .xanderCopyright {
        color: rgba(0, 0, 0, 0.3);
    }

    .xanderOffice {
        margin: 1.2em 0;
    }
}


/*
* --------------------------------------------------------------------------------
* 自訂元件
* --------------------------------------------------------------------------------
*/

input[type="text"],
input[type="file"],
.lesson-name-box input[type="text"],
.lesson-name-box input[type="file"] {
    margin-right: 1%;
    padding: 0.5em;
    /* background: #eee; */
    font-weight: bold;
    /* border: none; */
    border-radius: 5px;
    outline: 0;
    width: 100%;
    transition: 0.3s;
}
.search-lesson-tool input[type="text"],
.search-lesson-tool input[type="file"] {
    background: #eee;
    border: none;
}

input::placeholder {
    color: #999;
    font-weight: normal;
}

input[type="text"]:hover,
input[type="file"]:hover {
    /* box-shadow:inset 0 2px 2px rgba(43, 33, 33, 0.1); */
    /* background:#fff; */
}

input[type="text"]:hover,
input[type="text"]:focus,
input[type="file"]:hover,
input[type="file"]:focus {
    color: #e51f1f;
    font-weight: bold;
}


/*
 * 自訂 Ｓwitch
 */

.switch {
    position: relative;
    display: inline-block;
    width: 2.5em;
    height: 1.45em;
    transform:scale(0.8,0.8);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.customSwitch {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ccc;
    border-radius: 0.725em;
    cursor: pointer;
}

.customSwitch::before {
    content: '';
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    width: 1.05em;
    height: 1.05em;
    background: #fff;
    border-radius: 50%;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

input:checked+.customSwitch {
    background: red;
}

input:checked+.customSwitch::before {
    -webkit-transform: translateX(1em);
    -moz-transform: translateX(1em);
    -ms-transform: translateX(1em);
    transform: translateX(1em);
}

.UIradio {
    position: relative;
    display: inline-block;
    width: 1.45em;
    height: 1.45em;
    transform:scale(0.8,0.8);
}

.UIradio input {
    opacity: 0;
    width: 0;
    height: 0;
}

.customRadio {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.customRadio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

input:checked+.customRadio {}

input:checked+.customRadio::before {
    top: 0;
    left: 0;
    width: 1.45em;
    height: 1.45em;
    background: red;
}

.position-center {
    margin: 1.5em 0;
    text-align: center;
}