body {
  background-position: left top;
  background-attachment: scroll;
}
body .block-item {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
body .widget-item {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
body .header {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
body .left {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
body .right {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
body .footer {
  background-position: left top;
  background-attachment: scroll;
  border-style: none;
}
@media (min-width:768px) {
    .top_nav .mega-menu .menu-links li .list_box ul li:nth-child(n+2){
        padding-right: 1.5rem;
        width: auto;
        position: relative;
    }
    .top_nav .mega-menu .menu-links li .list_box ul li:nth-child(n+2)::before {
        content: '';
        display: block;
        width: 1px;
        background-color: #ccc;
        position: absolute;
        top: 4px;
        bottom: 4px;
        right: 12px;
    }
    .top_nav .mega-menu .menu-links li .list_box ul li:nth-last-child(1)::before{
        display: none;
    }
    .top_nav .mega-menu .menu-links li .list_box ul li:nth-child(n+2) a:hover p{
        color: #c6ab6d !important;
    }
}

/****共用 start****/
* {
    font-family: 'PT Sans', '微軟正黑體', sans-serif;
}

.top-mt {
    margin-top: 125px;
}

.m002-title .header-title {
    position: relative;
    display: table;
    width: auto;
    margin: 70px auto 30px;
    font-size: 2.2rem;
    font-family: 'Noto Serif TC', 'Cormorant SC', serif !important;
    font-weight: 500;
}

.m002-title .header-title::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    left: 50%;
    bottom: -13px;
    background: #c9a96a;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.web-page-frame .M-002-tab ul {
    padding: 8px 0 0;
    margin-bottom: 1.5rem;
}

.M-002-tab li.nav-item {
    margin-bottom: 8px;
}

.M-002-tab li.nav-item +li {
    padding-left: 15px;
}

.M-002-tab .nav-pills .nav-link {
    padding: 3px 20px;
    background: #ffffff;
    border: 1px solid #142b4e;
    border-radius: 0;
    color: #142b4e;
    font-size: 1.2rem;
    font-weight: 600;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
}

.M-002-tab .nav-pills .nav-link.active,.M-002-tab .nav-pills .show>.nav-link {
    background-color: #142b4e;
    border: 1px solid #142b4e;
    color: #ffffff;
}

/****共用 end****/
/****主題頁theme1 start****/
/*大圖輪播*/
.M-002.theme1-banner .carousel-caption {
    top: 50%;
    right: inherit;
    bottom: inherit;
    left: 50%;
    transform: translate(-50%, -50%);
}

.M-002.theme1-banner .bs-carousel .carousel-item h5,.M-002.theme1-banner .bs-carousel .carousel-item p {
    text-shadow: 0px 0px 4px #000;
    font-weight: 400;
    letter-spacing: 0.05rem;
}

.M-002.theme1-banner .bs-carousel .carousel-item h5 {
    font-size: 2.2rem;
    line-height: 3.2rem;
}

.M-002.theme1-banner .bs-carousel .carousel-item .slider-btn {
    display: table;
    margin: 0 auto;
    padding: 5px 15px;
    border: 1px solid rgb(255 255 255 / 0.5);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.M-002.theme1-banner .bs-carousel .carousel-item .slider-btn:hover {
    background: #fff;
    color: #545454;
}

.M-002.theme1-banner .carousel-control-next,.M-002.theme1-banner .carousel-control-prev {
    opacity: 0.5;
    width: 10%;
    top: 40%;
    bottom: 40%;
}

.M-002.theme1-banner .carousel-control-next:hover,.M-002.theme1-banner .carousel-control-prev:hover {
    opacity: 0.8;
}

.M-002.theme1-banner .carousel-control-next-icon,.M-002.theme1-banner .carousel-control-prev-icon {
    width: 68px;
    height: 120px;
    background: no-repeat 50%/100% 100%;
}

.M-002.theme1-banner .carousel-control-prev-icon,.M-002.theme1-banner .carousel-control-next-icon {
    background-image: url('https://materials.fillo.com.tw/materials/design/images/31232e89-ea8a-442e-ba0b-e2f0bc891af9.svg');
}

.M-002.theme1-banner .carousel-control-next-icon {
    transform: rotate(180deg);
}

/*style1*/
.M-002.theme1-style1{
    margin: 1rem 0;
}

.web-page-frame .M-002.theme1-style1 .widget-item.lg-img >.module-container {
    background: #142b4e;
    border-radius: 0;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.M-002.theme1-style1 .lg-img .hover-wall .htpro_tit {
    display: none;
}

.M-002.theme1-style1 .lg-img .hover-wall .mb-4 {
    margin-bottom: 0rem!important;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info {
    background: #142b4e;
    border-radius: 0;
    box-shadow: none;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info:hover {
    box-shadow: none;
    /* border-radius: 16px; */
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info h4 {
    display: table;
    margin: 0 auto;
    padding: 0 10px;
    margin-bottom: 0.6rem;
    color: #bbb;
    font-style: initial;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info h3 {
    color: #ffffff !important;
    font-size: 1.6em;
    margin-bottom: 0.8rem;
    padding-top: 1rem;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info:hover h3 {
    color: #c9a96a !important;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info p.animate-text {
    max-width: 600px;
    margin: 0 auto 30px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.03rem;
}

.M-002.theme1-style1 .lg-img .hover-wall .icon_info:hover figure .overlay i {
    display: none;
}

.M-002.theme1-style1 .md-img .row.wall-row>div+div {
    margin-top: 30px;
}

.M-002.theme1-style1 .md-img .thicon_info{
    border-radius: 16px;
}

.M-002.theme1-style1 .md-img .thicon_info figure {
    max-height: 300px
}

.M-002.theme1-style1 .md-img .wall-wrapper .theme_info {
    width: 40%;
    right: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.88) !important;
}

.M-002.theme1-style1 .md-img .wall-wrapper .wall-row>div:last-child .theme_info {
    left: 0;
}

.M-002.theme1-style1 .md-img .wall-wrapper .wall-row>div:last-child .thicon_info span {
    left: 5px
}

.M-002.theme1-style1 .md-img .wall-wrapper .thicon_info h3 {
    top: 50px;
    right: 18px;
    text-shadow: none;
    bottom: initial;
    background: rgb(255 255 255 / 0.8);
    padding: 5px;
    font-size: 1.5em;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.M-002.theme1-style1 .md-img .wall-wrapper .wall-row>div:last-child .thicon_info h3 {
    left: 15px;
    right: inherit;
}

.M-002.theme1-style1 .md-img .wall-wrapper .theme_info p.theme-text {
    opacity: 1;
    color: #545454 !important;
    font-size: 0.95rem;
    letter-spacing: 0.05px;
    padding-top: 6em;
    line-height: 26px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.M-002.theme1-style1 .md-img .wall-wrapper .thicon_info span {
    right: 5px;
    top: 20px;
    font-size: 1.1rem;
    text-shadow: none;
}

/*style2*/
.theme1-style2-block .widget-item .header-title {
    margin: 10px 10px 30px;
    padding: 8px 10px;
    background: #eee;
    color: #838996;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5rem;
    border-radius: 50px;
}

.theme1-style2-block .widget-item .expand-graphics .item_box figure {
    border-radius: 16px;
    background-color: #142b4e;
    position: relative;
}

.theme1-style2-block .widget-item .expand-graphics .item_box:hover figure::before{
    content: 'More';
    display: block;
    font-size: 20px;
    color: rgba(255, 255, 255, 1);
    font-family: serif !important;
    padding: 1px 15px;
    line-height: 1.5;
    border: 1px solid #fff;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.theme1-style2-block .widget-item .expand-graphics .item_box {
    height: 100%;
    margin-bottom: 2rem;
}

.theme1-style2-block .widget-item .expand-graphics .item_box:hover figure img {
    opacity: .5;
}

.theme1-style2-block .expand-graphics .item_box a {
    position: relative;
    padding-bottom: 60px;
    height: 100%;
    background: none;
    border: 0px solid #ffffff;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    margin-bottom: 0rem;
}

.theme1-style2-block .expand-graphics .item_box:hover a {
    background: none;
    border: 0px solid #e1e1e2;
}

.theme1-style2-block .expand-graphics .item_box .item_more_txt h3 {
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin-bottom: 0.5em;
    text-align: justify;
}

.theme1-style2-block .expand-graphics .item_box:hover .item_more_txt h3{
    font-weight: bold;
}

.theme1-style2-block .expand-graphics .item_box .item_more_txt, 
.theme1-style2-block .expand-graphics .item_box h4 {
    padding: 0px 10px;
}

.theme1-style2-block .expand-graphics .item_box span.item_btn, 
.theme1-style2-block .expand-graphics .item_box span.item_btn_hover, 
.theme1-style2-block .expand-graphics .item_box:hover span.item_btn_hover {
    display: none;
}

.theme1-style2-block .expand-graphics .item_box h4 {
    position: absolute;
    bottom: 2rem;
    right: 0;
    padding-right: 33px;
    left: 0;
    text-align: right;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.theme1-style2-block .widget-item .expand-graphics .item_box h4::before {
    content: "起";
    position: absolute;
    right: 15px;
    bottom: 2px;
    font-size: 0.9rem;
}

.theme1-style2-block .expand-graphics .item_box .item_more_txt span.item_tag {
    padding: 2px 5px;
}

.theme1-style2-block .expand-graphics .item_morebox{
    margin-top: 0rem;
}

.theme1-style2-block .expand-graphics .item_morebox a {
    padding: 6px 35px;
    font-size: 1.3rem;
    border-radius: 0;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
    background: #a3abbb !important;
}

.theme1-style2-block .expand-graphics .item_morebox a:hover {
    background: #838996 !important;
}

.theme1-style2-block .expand-graphics .item_morebox a i {
    margin-right: 5px;
    font-size: 1em;
    opacity: 0.8;
}

/****主題頁theme1 end****/

@media (min-width:768px) {
    .theme1-style2-block .widget-item .expand-graphics .item_box figure {
        aspect-ratio: 4 / 3;
    }

    .theme1-style2-block .widget-item .expand-graphics .item_box figure img{
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

@media (min-width:992px) {
    .M-002.theme1-style1 .lg-img .hover-wall .icon_info figure{
        aspect-ratio: 3 / 1.8;
        display: block;
    }
    .M-002.theme1-style1 .lg-img .hover-wall .icon_info figure img{
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}
@media screen and (max-width: 1499px) {
    /*主題頁1-style1*/ .M-002.theme1-style1 .md-img .wall-wrapper .thicon_info h3 {
        top:20px;
    }
    .M-002.theme1-style1 .md-img .wall-wrapper .theme_info p.theme-text {
        padding-top: 65px;
        line-height: 24px;
        letter-spacing: 0;
    }
}

@media screen and (max-width: 1199px) {
    /*主題頁1-style1*/ .M-002.theme1-style1 {
        -ms-flex: 0 0 91.666667%;
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
}

@media (max-width: 991px) {
    /*主題頁1-style1*/ .M-002.theme1-style1 .lg-img .hover-wall .icon_info h3 {
        font-size: 1.3rem;
        padding: 0 20px;
    }

    .M-002.theme1-style1 .md-img .offer-guide-mdimg {
        padding-top: 30px;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .thicon_info {
        height: 100%;
        background: #e9ecf2;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .thicon_info span {
        display: none;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .thicon_info h3 {
        position: relative;
        top: initial;
        right: initial;
        bottom: inherit;
        padding: 15px 15px 0;
        letter-spacing: 0;
        background: transparent;
        font-size: 1.3rem;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .wall-row>div:last-child .thicon_info h3 {
        left: inherit;
    }

    .M-002.theme1-style1 .md-img .px-0 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .theme_info {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        overflow: hidden;
        background: transparent !important;
    }

    .M-002.theme1-style1 .md-img .wall-wrapper .theme_info p.theme-text {
        padding-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /*主題頁1-style1*/ .M-002.theme1-style1 .lg-img .hover-wall .icon_info:hover {
        bottom:0
    }

    .M-002.theme1-style1 .lg-img .hover-wall .col-md-6 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .M-002.theme1-style1 .lg-img .hover-wall .icon_info figure {
        width: 50%;
        margin: 0;
    }

    .M-002.theme1-style1 .lg-img .hover-wall .icon_info h3 {
        position: absolute;
        width: 50%;
        font-size: 1.3rem;
        right: 0;
        top: 15px;
    }

    .M-002.theme1-style1 .lg-img .hover-wall .icon_info h4 {
        position: absolute;
        font-size: 0.95rem;
        top: 70px;
        right: 0;
        width: 50%;
    }

    .M-002.theme1-style1 .lg-img .hover-wall .icon_info p.animate-text {
        position: absolute;
        width: 50%;
        top: 110px;
        right: 0;
        -webkit-line-clamp: inherit;
    }

    .M-002.theme1-style1 .md-img .row.wall-row>div+div {
        margin-top: 0px;
    }
}

@media screen and (max-width: 767px) {
    /* 共用*/ 
    .m002-title .header-title {
        font-size: 1.8rem;
    }

    .top-mt{
        margin-top: 90px;
    }

    /*主題頁1-輪播圖*/
    .M-002.theme1-banner .carousel-caption {
        display: block !important;
        right: 10%;
        left: 10%;
        transform: translate(0%, -50%);
    }

    .M-002.theme1-banner .carousel-control-next, 
    .M-002.theme1-banner .carousel-control-prev {
        display: none;
    }

    .M-002.theme1-banner .bs-carousel .carousel-item h5 {
        font-size: 1.8rem;
        line-height: 2.6rem;
    }

    .M-002.theme1-banner .bs-carousel .carousel-item p {
        font-size: 1rem;
    }

    .theme1-style2-block .widget-item .expand-graphics .item_box{
        margin-bottom: 0;
    }

    .theme1-style2-block .expand-graphics .item_box h4{
        bottom: 0rem;
    }
}