/*版型與共用區塊*/

html {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body,
blockquote,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
pre {
    margin: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
}

audio,
canvas,
embed,
iframe,
object,
img,
svg,
video {
    display: block;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #000;
    transition: opacity 0.25s linear;
}

table {
    border-collapse: collapse;
}

a:hover {
    opacity: 0.5
}

img {
    max-width: 100%;
    height: auto;
}

/*元照書屋*/
.popout::before {content: '';width: 100%;height: 100%;background-color: rgb(0 0 0 / 50%);position: fixed;z-index: 9;top: 0;left: 0;animation: fadeIn 0.5s ease-in 0.5s both;pointer-events: none;}
.popout {width: 100%;height: 100%;display: none;}
.popup {position: fixed;right: 0;left: 0;top: 50%;bottom: auto;z-index: 999;margin: auto;animation: fadeInUp 0.5s ease 0.5s both;}
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 100%, 0);
    }
  
    to {
      opacity: 1;
      transform: none;
    }
}
.lightbox li {display: inline-block;margin: 0.25rem;}
.lightbox {position: fixed;left: 50%;transform: translate(-50%, -50%);background: rgba(255,255,255,.85);width: 1250px;z-index: 2;}
@media screen and (max-width: 1300px) {    
    .lightbox {width: 75%;}
}
.close {display: block;width:40px;height:40px;box-sizing: border-box;background: white;color: black;text-decoration: none;position: absolute;top: 0;right: 0;}
.close:before {content: "";display: block;height: 30px;width: 1px;background: black;position: absolute;left: 20px;top:5px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);}
.close:after {content: "";display: block;height: 30px;width: 1px;background: black;position: absolute;left: 20px;top:5px;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);}   
.gallery_wrap {display: flex;flex-wrap: wrap;}
.gallery_menu {order: 2;display: flex;flex-wrap: wrap;background: rgba(255,255,255,.95);width: 100%;padding: 0 8.5%;}
.gallery_content {order: 1;}
.gallery_menu a {margin: auto 1rem;padding: 0.5rem 0;}
.gallery_menu a img {width: 100px;height: auto;box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;}
.gallery_content img {width: 80%;margin: auto;}

/*menu主選單*/
.nav-wrapper {position: relative;scroll-behavior: smooth; }
#main-catalog {font-size: 1.25em; display: flex; justify-content: space-between; align-items: stretch; width: 100%;}

/*有下拉選單*/
.menu-drop {position: relative;}

.drop-down-menu {display: none;background: #E6BE8A;background: #00a4aeeb;background:#607d8beb;position: absolute;right: 0;left: 0;top: 100%;margin: 0;padding: 0;z-index: 2;/*width: 180px;*/width: 200px;}
.drop-down-menu > a{padding: 8px 20px;display: flex; width:100%; border-top: 1px solid #e8e8e8; color:#fff;text-decoration: none;align-items: center;}
.drop-down-menu span> i {
    font-size: 1.75rem;
    display: block;
}
.drop-down-menu a i {
    color:#fffb9b;
    font-size: 0.7em;
    padding-left: 1em;
}

.drop-down-menu font a{
    color:#fff;
}

.menu-drop:hover >.drop-down-menu { display: flex!important; flex-wrap: wrap;}

@media screen and (min-width:1250px) {
    .menu-drop > a:after {
        content: "";
        position: absolute;
        top: 50%;
        margin-top: -3px;
        right: 10px;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid #FFF;
        transform: rotate(0deg);
        transition: 0.15s ease-in-out;
    }
}
/*按鈕統一樣式 input、button、a 寬度100%*/
.btn {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    outline: 0;
    padding: 0 10px;
    text-align: center;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex: 1;
    font-size: 1.125em;
}

/*主要按鈕*/
.btn-primary {
    /* background-color: #fff; */
    /* color: #5f85c3; */
    line-height: 2em;
    margin: 0 10px 0 10px;
    /* border-radius: 0px; */
    /* border: 1px solid #5f85c3; */
    border-left: 5px #849ca73b dotted;
    padding: 0 6px;
}

/*

#blog_beta .btn-primary {

    color: #333;
    line-height: 2em;
    margin: 0 10px 0 10px;

    border-left: 0px #849ca73b dotted;
    padding: 0 6px;
    background: linear-gradient(to right,#ff9f98 10%, #ffc8d0 90%);

}
*/

/*次要按鈕*/
.btn-secondary {
    background-color: #5f85c3;
    color: #fff;
    line-height: 2em;
    margin: 0 10px 0 20px;
    border-radius: 6px;
}

/*次要文字按鈕*/
.btn-link-secondary {
    color: #106772;
    display: inline-flex;
    padding: 0 0 6px/*15px 0 0*/;
    font-weight: bold;
    float: right;
}


#lawdata .context-header .btn-secondary  {
    background-color: #fff;
    color: #257398;
    border: 1px solid #257398;
}




/*下方更多按鈕*/
.btn-more {
   padding: 0 0 1em;/*font-weight: bold;*/ margin-top: -0.5em;color: #1698b1;
}
.btn-more i {font-size: small;
    padding:12px 0 8px 8px
}
.large {
    font-size: 1.25em;
}

.larger {
    font-size: 1.5em;
}

.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
    cursor: pointer;
}


/*RWD區塊*/
header section {
    width: 100%;
}

.container {
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap
}

/*1~3格*/
.grid-1,
.grid-2,
.grid-3 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-radius: 8px;
}

.grid-1 {
    width: 100%;
    margin: 0 15px 0px;
    /*background-color: #fff;*/
}
/*
.grid-2 {
    width: calc(50% - 22.5px);
    padding-bottom: 15px;
    margin-bottom: 15px;
    background-color: #fff;
}
*/
.grid-2 {
    width: calc(50% - 22.5px);
    padding-bottom: 15px;
    padding-top: 10px;
    margin-bottom: 10px;
    margin-top: 15px;
    background-color: #fff;
}
.grid-3 {
    width: 33.33%;
    margin: 0;
    padding: 0 12px;
}

/*list 清單式內容*/
.list, .house-active {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 96%;
}

/*上方兩大輪播*/
.banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/*主要內容區*/
#BodyContentMain {
    margin: 0 auto;
}

/*不flex的塊狀區域*/
.column {
    display: block;
    float: left;
}

#BodyContentMain section {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
    margin: 0 0 15px;
}

/*主要內容區-共同樣式*/
#BodyContentMain .context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 11px 5px;
    margin: 12px 2px 2px;
    width: 96%;
	border-bottom: 0px solid #f4f4f4;
}

#BodyContentMain .context-header h1 {
    color: #406475;
	color: #257398;
    font-size: 2em;
}

#blog_beta .context-header h1 span {
    color: #D4AF37;
	border-top: 1px solid #D4AF37;
    border-bottom: 1px solid #D4AF37;
    font-size: 0.8em;
    margin: 0 1px;

}




#exam .context-header h1 span {
    color: #fff;
    font-size: 0.8em;
    background-color: #D4AF37;
    padding: 0 3px;
    border-right: 10px double #fff;
    margin-left: 5px;

}

#exam_2 .context-header  {
    display: inline-block;
    padding: 0;

}

#exam p {

    padding: 0 0.5em;

}

#exam p a {
    color: #257398;
    font-size: 1.15rem;
    
}


#teacher .context-header img  {
    width: 40px;
    margin: 0 5px;

}

    .thesis-box dl {
        margin-left: -1.5em;
    }


    .thesis-box dd {
        font-size: 1.2em;
    }

    .thesis-list {
        padding-top: 0px;
        margin-top: 0px;

    } 

    .exam-box dl {
        margin-left: -2em;
    }


    .exam-box dd {
        font-size: 1.2em;
    }

    .exam-list {
        padding-top: 0px;
        margin-top: 0px;

    } 
    
    .teacher-box dl {
        margin-left: -1.5em;
    }


    .teacher-box dd {
        font-size: 1.2em;
    }

    .teacher-list {
        padding-top: 0px;
        margin-top: 0px;

    }  

    

    .calendar-list{
        background-color: ;

    } 



    .calendar-list ul   {

        margin-left: -1.5em;

    }  

    .calendar-list span   {
        font-weight: bold;
        color: #eb9316;

    } 


    .calendar-list ul li  {        
        display: inline-block;
        border-bottom: 2px solid #666;
        padding: 0 8px;

    }  

    .calendar-list ul li:nth-child(3)  {   
            border-bottom: 2px solid #eb9316;   
    }  




#bookhouse .context-header h1 span {
    color: #fff;
    padding: 2px 7px;
    border-radius: 50%;
    background-color: #4caf50;
    margin: 0 1px;

}

#bookhouse .context-header h1 span:nth-child(2) {
    background-color: #00a4ae;

}












#BodyContentMain .context-header h1 small {
    color: #106772;
    font-size: 0.7em;
    /*padding: 0 15px;*/
    padding: 0 3px;
}

#BodyContentMain .context-header div a  {
    background-color: #5f85c3;
    color: #fff;
    font-size: 1.2em;/*0.85em*/
    text-align: center;
    border-radius: 6px/*8px*/;
    line-height: 1.75em;
    min-width: 6em;
    padding: 0 8px;
}
#BodyContentMain .context-header div a{
	display: inline-flex;
	font-weight:normal;
	justify-content: center;
	margin:0 0 0 10px;	
    background-color: #fff;
    border: 1px solid #5f85c3;
	background-color: #7192a0e0;
    /* color: #607D8B; */
    border: 0px solid #aabec8;
    font-size: 1.1rem;
}
#BodyContentMain .context-header a {
    /* background-color: #5f85c3; */
    color: #257398;
    font-size: 1em;
    text-align: center;
    border-radius: 6px;/*8px*/
    line-height: 1.75em;
    /* min-width: 6em; */
    padding: 0 8px;
}
#BodyContentMain .context-header div .btn-secondary {
    background-color: #5f85c3/*#106772*/;;
    color: #fff;
}

#BodyContentMain .context-box {
    display: flex;
    justify-content: space-evenly;
	margin: 0 3.5%;
}


#BodyContentMain .caption {
    padding: 20px;
    width: 100%;
}


.news_box2 {
    clear: both;
    overflow: hidden;
    width: 600px/*570px/*100%*/;
    margin-top: 10px;
    margin-right: 0;
    margin-bottom: 10px;
    margin-left: 0;
}



.blog-box .pic {
    width: 95%;
    height: auto;
    margin: 0 auto
}



#news ul h3  {
    color: #257398;
    font-weight: normal;
    font-size: 1.5em;
    margin-left: -1em;



}
    





#BodyContentMain h2 {
    font-size: 1.25em;
    margin: 0 0 1.25em;
    min-height: 2.5em;
    /*確保標題只有一行時，高度仍相同*/
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25
}

#BodyContentMain h3 {
    /*font-size: 1.125em;*/
    margin: 7.5px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #106772;
}

#BodyContentMain h4  {

}


#BodyContentMain .descript {
    color: #808080;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#BodyContentMain img {
    margin: 0 auto;
}

footer {
    font-size: 14px;
    background-color: #607D8B;
    color: #fff;
    line-height: 1.7;
    display: flex;
    justify-content: space-around;
}

footer>div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/*平板以下解析度*/
@media screen and (max-width:1249px) {
    body {
        font-size: 14px;
    }

    .container {
        width: 94%;
    }

    #BodyContentMain,
    .banner {
        padding: 0;
        width: 94%
    }

    .banner section {
        width: calc(50% - 10px);
    }

    .column {
        margin-left: 10px;
        width: calc(50% - 10px);
    }

    .column:first-child {
        margin-left: 0;
        margin-right: 10px;
        width: calc(50% - 10px);
    }


    .column33 {
        margin-left: 5px;
        width: calc(33% - 5px);
    }

    .column33:first-child {
        margin-left: 0;
        margin-right: 5px;
        width: calc(33% - 5px);
    }

    	#main-catalog {
	-webkit-overflow-scrolling: auto;
	 }

    .drop-down-menu{
        position: fixed;
        top: 1%;
        left: 1%;

    }



    #BodyContentMain .context-box {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 400%;
    }




    .swiper {
        -ms-overflow-style: auto;
        scrollbar-color: #106772 white;
        scrollbar-width: thin;
        overflow-x: auto;
    }

    /*手機版x軸 Scroll bar*/
    .swiper::-webkit-scrollbar-thumb {
        background-color: #106772;
        background: -moz-linear-gradient(-90deg, rgba(16, 103, 114, 0.75) 0%, rgba(16, 103, 114, 0) 100%);
        background: -webkit-linear-gradient(-90deg, rgba(16, 103, 114, 0.75) 0%, rgba(16, 103, 114, 0) 100%);
        background: linear-gradient(-90deg, rgba(16, 103, 114, 0.75) 0%, rgba(16, 103, 114, 0) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#106772", endColorstr="#106772", GradientType=1);
        border-radius: 4px;
    }

    .swiper::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .swiper::-webkit-scrollbar-corner {
        background-color: #106772;

    }

    .swiper::-webkit-scrollbar {
        height: 8px;
    }

    #BodyContentMain .caption {
        padding: 10px;
    }

    .btn-primary {
        margin: 0 5px 0 10px;

    }
    .btn-secondary {
        margin: 0 10px 0 5px;
    }
}

/*手機以下解析度*/
@media screen and (max-width:767px) {
    .lightbox {width: 95%;}
    .gallery_menu a img {width: 50px;}
    .gallery_menu a {margin: auto 0.25rem;}
    .close {width: 25px;height: 25px;}
    .close:before, .close:after {height: 20px;left: 12px;top: 3px;}
    body {
        font-size: 14px;
    }

    .container,
    .banner,
    .banner section,
    #BodyContentMain {
        width: 100%;
        max-width: 420px;
    }

    #BodyContentMain {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }

    .column {
        width: 100% !important;
        margin: 0;

    }

    .column33 {
        width: 100% !important;
        margin: 0;

    }

	#main-catalog {
	-webkit-overflow-scrolling: auto;
	 }

    .drop-down-menu{
        position: fixed;
        top: 1%;
        left: 1%;

    }

    .grid-1 {
        margin: 0;
    }

}

/*電腦1250以上解析度*/
@media screen and (min-width:1250px) {
    body {
        font-size: 16px;
    }

    .container {
        width: 1250px;
    }

    .grid-3 {
        margin: 0 0 15px;
        padding: 0 12px;
    }

    #BodyContentMain {
        justify-content: space-between;
        padding: 0;
    }

    .banner {
        padding: 0;
        width: 1250px;
    }

    .banner section,
    .column {
        width: calc(50% - 15px);
    }

    .column33 {
        width: calc(33% - 5px);
    }


    .column33 {
    margin-top: 0.5em;
    }



    .context-box {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .member-box {
        padding-bottom: 15px;
    }

    .blog-box {
        padding: 20px;
    }












    .list, .house-active {
        margin-top: -7px;
    }
}


.hide {
    display: none !important;
}

.show {
    display: flex !important;
}

/*IE 瀏覽器不支援*/
@media screen and (-webkit-min-device-pixel-ratio:0) {

    /*Webkit*/
    #noie {
        display: none;
    }
}

@-moz-document url-prefix() {

    /*Firefox*/
    #noie {
        display: none;
    }
}

@media \0screen\,screen\9 {

    /*IE 6 7 8*/
    .browser {
        text-align: center;
        background: #5f85c3;
        font-weight: bold;
        color: white;
    }

    .browser a {
        color: white;
        display: block;
    }
}

@media screen\0 {

    /*IE 8 9 10 11*/
    .browser {
        text-align: center;
        background-color: rgba(0, 0, 0, .9);
        font-weight: bold;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 300;
    }

    .renew {
        background-color: #f2f2f2;
        display: inline-block;
        top: 45%;
        position: relative;
        border-radius: 5px;
        overflow: hidden;
    }

    .renew span {
        padding: 1rem;
        display: block;
    }

    .browser a {
        color: #5f85c3;
        display: block;
        border-top: 1px solid #989898;
        padding: 1rem;
        background-color: #EDEDED;
    }
}