﻿/*首頁選單大標效果處理 - s*/
#master_menu {
    list-style: none;
    margin: 0 5% 0 0;
    padding: 0;
    width: 100%;
    height: 60px;
    position: relative;
    background-color: var(--gradient);
    z-index: 7;
    font-family: bold-font;
    font-weight: 500;
}

    #master_menu li {
        float: left;
        width: 15%;
        height: 100%;
        margin: 0;
        padding: 0;
        text-align: center !important;
        justify-content: center !important;
    }

@media (max-width: 768px) {
    #master_menu li {
        width: 25% !important;
    }
}

#master_menu li.slider {
    width: 25%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #e74c3c;
    z-index: 8;
    transition: left .4s, background-color .4s;
    opacity: 0.25;
}

@media (max-width: 768px) {
    #master_menu li.slider {
        width: 36% !important;
        left: 34%;
    }
}

#master_menu li.logo {
    width: 35% !important;
}

@media (max-width: 768px) {
    #master_menu li.logo {
        width: 100% !important;
    }
}

    #master_menu li.logo img {
        height: auto;
        max-width: 100%;
    }

#master_menu a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    font-size: 1rem;
    z-index: 9;
    text-align: center !important;
    justify-content: center !important;
    justify-items: center;
}

#master_menu li.logo a {
    justify-content: left !important;
}

@media (max-width: 768px) {
    #master_menu li.logo a {
        width: 100% !important;
        justify-content: center !important;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    #master_menu > li > a {
        width: 100% !important;
        position: relative;
        top: 50%;
        left: 55%;
        /*transform: translate(-40%, -50%);*/
        -webkit-transform: translate(-42%,-50%);
        -moz-transform: translate(-42%,-50%);
        transform: translate(-42%,-50%);
    }
}

    #master_menu a.active {
    background-color: #e74c3c;
    pointer-events: none;
}

    #master_menu li:nth-child(1):hover ~ .slider,
    #master_menu li:nth-child(1):focus ~ .slider,
    #master_menu li:nth-child(1):active ~ .slider {
        left: 0;
        width: 25%;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(1):hover ~ .slider,
    #master_menu li:nth-child(1):focus ~ .slider,
    #master_menu li:nth-child(1):active ~ .slider {
        left: 34%;
        width: 36% !important;
    }
}

    #master_menu li:nth-child(2):hover ~ .slider,
    #master_menu li:nth-child(2):focus ~ .slider,
    #master_menu li:nth-child(2):active ~ .slider {
        left: 35%;
        background-color: var(--red);
        width: 15%;
        opacity: 1;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(2):hover ~ .slider,
    #master_menu li:nth-child(2):focus ~ .slider,
    #master_menu li:nth-child(2):active ~ .slider {
        width: 25% !important;
        left: 5%;
        top: 70px;
        height: 70%;
    }
}

    #master_menu li:nth-child(3):hover ~ .slider,
    #master_menu li:nth-child(3):focus ~ .slider,
    #master_menu li:nth-child(3):active ~ .slider {
        left: 50%;
        background-color: var(--yellow);
        width: 15%;
        opacity: 1;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(3):hover ~ .slider,
    #master_menu li:nth-child(3):focus ~ .slider,
    #master_menu li:nth-child(3):active ~ .slider {
        width: 25% !important;
        left: 30%;
        top: 70px;
        height: 70%;
    }
}
    #master_menu li:nth-child(4):hover ~ .slider,
    #master_menu li:nth-child(4):focus ~ .slider,
    #master_menu li:nth-child(4):active ~ .slider {
        left: 65%;
        background-color: var(--aqua);
        width: 15%;
        opacity: 1;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(4):hover ~ .slider,
    #master_menu li:nth-child(4):focus ~ .slider,
    #master_menu li:nth-child(4):active ~ .slider {
        width: 25% !important;
        left: 55%;
        top: 70px;
        height: 70%;
    }
}

#master_menu li:nth-child(5):hover ~ .slider,
    #master_menu li:nth-child(5):focus ~ .slider,
    #master_menu li:nth-child(5):active ~ .slider {
        left: 80%;
        background-color: var(--lightPurple);
        width: 15%;
        opacity: 1;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(5):hover ~ .slider,
    #master_menu li:nth-child(5):focus ~ .slider,
    #master_menu li:nth-child(5):active ~ .slider {
        width: 25% !important;
        left: 80%;
        top: 70px;
        height: 70%;
    }
}

    #master_menu li:nth-child(6):hover ~ .slider,
    #master_menu li:nth-child(6):focus ~ .slider,
    #master_menu li:nth-child(6):active ~ .slider {
        left: 95%;
        background-color: var(--tealBLue);
        width: 15%;
        opacity: 1;
    }

@media (max-width: 768px) {
    #master_menu li:nth-child(6):hover ~ .slider,
    #master_menu li:nth-child(6):focus ~ .slider,
    #master_menu li:nth-child(6):active ~ .slider {
        width: 25% !important;
        left: 90%;
        top: 70px;
        height: 70%;
    }
}
/*首頁選單大標效果處理 - e*/

/*首頁選單附標效果處理 - s*/
    #master_menu .dropdown-menu {
        width: 100%;
        font-size: 0.75rem;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        position: absolute;
        top: 70px;
        z-index: 10;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        overflow: hidden;
        visibility: hidden;
        -webkit-transition: visibility 0.5s linear;
        transition: visibility 0.5s linear;
        text-align: center;
    }

@media (max-width: 768px) {
    #master_menu .dropdown-menu {
        top: 55px;
    }}

    #master_menu .dropdown-menu li {
        height: 100% !important;
        width: 100% !important;
        padding: 3px 0;
        margin-bottom: 3px;
        border-radius: 0.1rem;
        -webkit-transform: translateY(-150px);
        transform: translateY(-150px);
        -webkit-transition: background-color 0.2s linear, -webkit-transform 0.5s cubic-bezier(0.74, -0.23, 0.4, 0.88);
        transition: background-color 0.2s linear, -webkit-transform 0.5s cubic-bezier(0.74, -0.23, 0.4, 0.88);
        transition: transform 0.5s cubic-bezier(0.74, -0.23, 0.4, 0.88), background-color 0.2s linear;
        transition: transform 0.5s cubic-bezier(0.74, -0.23, 0.4, 0.88), background-color 0.2s linear, -webkit-transform 0.5s cubic-bezier(0.74, -0.23, 0.4, 0.88);
    }

@media (max-width: 768px) {
    #master_menu .dropdown-menu li {
        height: 23px !important;
    }
}

        #master_menu .dropdown-menu li a {
            display: block;
            color: #181818;
            width: 100%;
            height: 100%;
        }

            #master_menu .dropdown-menu li a:hover {
                color: #fff;
                transform: scale(1.1);
                box-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
                animation: magnet 0.4s ease-in-out alternate infinite;
                width: 100%;
            }

#master_menu > li:hover .dropdown-menu {
    visibility: visible;
    width: 100%;
}

        #master_menu > li:hover .dropdown-menu li {
            -webkit-transform: translateY(0);
            transform: translateY(0);
            width: 100%;
        }

#master_menu > li .dropdown-menu li:hover {
    font-size: 0.9rem;
    width: 100%;
}

#master_menu > li:nth-child(2):hover .dropdown-menu li:hover {
    background: rgba(255, 51, 51, 1);
    width: 100%;
}

    #master_menu > li:nth-child(2):hover .dropdown-menu li {
        background: rgba(255, 51, 51, 0.7);
        width: 100%;
    }

#master_menu > li:nth-child(3):hover .dropdown-menu li:hover {
    background: rgba(255,204,51, 1);
    width: 100%;
}

#master_menu > li:nth-child(3):hover .dropdown-menu li {
    background: rgba(255,204,51, 0.7);
    width: 100%;
}

#master_menu > li:nth-child(4):hover .dropdown-menu li:hover {
    background: rgba(86,166,224, 1);
    width: 100%;
}

#master_menu > li:nth-child(4):hover .dropdown-menu li {
    background: rgba(86,166,224, 0.7);
    width: 100%;
}

#master_menu > li:nth-child(5):hover .dropdown-menu li:hover {
    background: rgba(153,102,204, 0.7);
    width: 100%;
}

#master_menu > li:nth-child(5):hover .dropdown-menu li {
    background: rgba(153,102,204, 1);
    width: 100%;
}

#master_menu > li:nth-child(6):hover .dropdown-menu li:hover {
    background: rgba(51,101,138, 0.7);
    width: 100%;
}

#master_menu > li:nth-child(6):hover .dropdown-menu li {
    background: rgba(51,101,138, 1);
    width: 100%;
}

@keyframes magnet {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.1) rotate(-3deg);
    }
}

:root {
    /*Colors*/
    --red: #ff3333;
    --yellow: #ffcc33;
    --aqua: #56A6E0;
    --lightPurple: #9966cc;
    --tealBLue: #33658a;
}

/*首頁選單附標效果處理 - e*/

/*首頁輪播 - s*/

.divJustCenter {
    justify-content: center;
    display: flex;
    align-items: center
}

.carousel {
    position: relative;
}

.swiper-slide a {
    display: inline-block;
    min-height: 100%;
}

@media (max-width: 1200px) {
    .swiper-slide a {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .swiper-slide a {
        max-height: 50%;
    }
}

.swiper-slide img {
    width: 100%;
}

    .swiper-slide img.for-mobile {
        display: block;
    }

    .swiper-slide img.for-pc {
        display: none;
    }

@media (min-width: 768px) {
    .swiper-slide img.for-pc {
        display: block;
    }

    .swiper-slide img.for-mobile {
        display: none;
    }
}

/*首頁輪播 - s*/

/*強制把 banner 區域框左右滿版*/
.banner-area {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

:after,
:before,
* {
    box-sizing: border-box;
}

.container {
    width: 7550px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

h2 {
    line-height: 1.1;
}

.banner-slider {
    object-fit: contain;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 0;
}

.banner-slider .swiper-slide {
    overflow: hidden;
    color: #fff;
}

.banner-slider .swiper-container {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
}

.banner-slider .slide-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

@media (max-width: 767px) {
    .banner-slider .slide-inner {
        max-height: 50% !important;
        top: 0 !important;
    }
}

    .banner-slider .slide-inner img {
        position: absolute;
        left: 0;
        top: 0;
        padding: 0 !important;
        margin: 0 !important;
    }

.banner-slider .swiper-button-prev, .banner-slider .swiper-button-next {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    height: 50px;
    width: 50px;
    justify-content: center;
    position: absolute;
    top: 50%;
    font-size: 0.25rem;
    font-weight: 800;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
    z-index: 10;
}

.banner-slider:hover .swiper-button-prev,
.banner-slider:hover .swiper-button-next {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .banner-slider .swiper-button-prev,
    .banner-slider .swiper-button-next {
        display: none;
    }
}

.banner-slider .swiper-button-prev {
    transform: translateX(0);
}

.banner-slider .swiper-button-next {
    transform: translateX(0);
}

.banner-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    text-align: left;
    line-height: 12px;
    font-size: 12px;
    color: #000;
    opacity: 0.3;
    background: #fff;
    transition: all .2s ease;
    left: 150px;
}

.banner-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

.banner-slider .swiper-container-horizontal > .swiper-pagination-bullets,
.banner-slider .swiper-pagination-custom,
.banner-slider .swiper-pagination-fraction {
    bottom: 30px;
}

@media screen and (min-width: 992px) {
    .banner-slider .swiper-container-horizontal > .swiper-pagination-bullets,
    .banner-slider .swiper-pagination-custom,
    .banner-slider .swiper-pagination-fraction {
             display: none; 
    }
}

.swiper-pagination {
    text-align: left;
}

.banner-slider .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: 50px;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 767px) {
    .banner-slider .swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 30px;
    }
}
/*--------------------------------------------------------------
	#banner-style
--------------------------------------------------------------*/
.banner-style {
    height: 545px;
    transition: all .4s ease;
}

@media (min-width: 1441px) and (max-width: 1919px) {
    .banner-style {
        height: 450px;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .banner-style {
        height: 405px;
    }
}

@media (max-width: 1280px) {
    .banner-style {
        height: 365px;
    }
}

@media (max-width: 1024px) {
    .banner-style {
        height: 310px;
    }
}

@media (max-width: 1023px) {
    .banner-style {
        height: 285px;
    }
}

@media (max-width: 767px) {
    .banner-style {
        height: 200px;
    }
}

@media (max-width: 400px) {
    .banner-style {
        height: 180px;
    }
}

@media screen and (min-width: 992px) {
    .banner-style .container {
        padding-top: 95px;
    }
}

.banner-style .slide-text,
.banner-style .slide-btns {
    max-width: 100%;
}

.banner-style .slide-text p {
    opacity: 0.8;
    font-family: Rajdhani;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: normal;
    color: #ffffff;
    margin: 0 0 40px;
    transition: all .4s ease;
}

@media (max-width: 767px) {
    .banner-style .slide-text p {
        font-size: 16px;
        font-size: 1rem;
        font-weight: normal;
        margin: 0 0 30px;
    }
}

.banner-style .slide-btns > a:first-child {
    margin-right: 10px;
}

/*--------------------------------------------------------------
	#button-style
--------------------------------------------------------------*/
.theme-btn, .theme-btn-s2 {
    background-color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #2b3b95;
    padding: 9px 32px;
    border: 0;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    line-height: initial;
    transition: all .4s ease;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.theme-btn-s2 {
    background-color: rgba(255, 255, 255, 0.9);
    color: #131e4a;
}

    .theme-btn:hover, .theme-btn-s2:hover, .theme-btn:focus, .theme-btn-s2:focus, .theme-btn:active, .theme-btn-s2:active {
        background-color: #2b3b95;
        color: #fff;
    }

.theme-btn-s3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
    text-transform: uppercase;
}

i.fa-chevron-circle-right {
    height: 22px;
    width: 22px;
}

a:hover {
    text-decoration: none;
}

@media (max-width: 991px) {
    .theme-btn, .theme-btn-s2, .theme-btn-s3 {
        font-size: 13px;
        padding: 15px 25px;
    }
}

@media (max-width: 767px) {
    .theme-btn, .theme-btn-s2 {
        padding: 13px 20px;
        font-size: 13px;
    }
}

.carousel_container {
    max-height: 100%;
    /*overflow: hidden;*/
}

.carousel_box {
    position: relative;
    width: 100%;
    animation: slide 50s linear infinite;
    /*overflow: hidden;*/
    display: flex;
}

@keyframes slide {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -1692px, 0);
    }
}

.singlemoviebox {
    display: block;
    padding-right: 10px;
    overflow: hidden;
    justify-content: center;
    position: relative;
}

    .singlemoviebox:hover {
        transform: translateY(-.9rem);
    }

.singlemoviebox-overlay {
    position: absolute;
    left: 0;
    bottom: -150%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .4s;
}

.singlemoviebox:hover .singlemoviebox-overlay {
    bottom: 0 !important;
}

.singlemoviebox-button {
    display: inline-block;
    /*background-color: var(--color-red-company);*/
    /*color: #0a0a0a;*/
    background-color: #e1e1e1;
    color: #000;
    padding: 6.5rem 5rem !important;
    margin-right: 15px !important;
    border-radius: .25rem;
    transition: .4s;
    opacity: 0.15;
}

    .singlemoviebox-button:hover {
        transform: translateY(-.25rem);
        color: #000;
        opacity: 0.15;
    }

.news-item:active, .news-item:hover, .news-item:focus, 
.news-item span:active, .news-item span:hover, .news-item span:focus {
    outline: 0 !important;
    outline-offset: 0;
}

.news-item::before,
.news-item::after, 
.news-item span::before,
.news-item span::after {
    position: absolute;
    content: "";
}

.news-item {
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    justify-content: center;
    font-size: clamp(1.0625rem, 1.0625rem + 0vw, 1.0625rem); /*size-17*/
}

.news-item span{
    justify-content: center;
}

    .news-item:before,
    .news-item:after {
        width: 0;
        height: 1px;
        background-color: rgb(178, 45, 45);
        z-index: 2;
        bottom: 0;
        transition: width 0.2s 0.35s ease-out;
    }

    .news-item:before {
        right: 50%;
    }

    .news-item:after {
        left: 50%;
    }

    .news-item:hover:before,
    .news-item:hover:after {
        width: 50%;
        transition: width 0.2s ease-in;
    }

    .news-item span:before,
    .news-item span:after {
        width: 0%;
        height: 0%;
        background: transparent;
        opacity: 0;
        z-index: 2;
        transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s 0.35s;
    }

    .news-item span:before {
        bottom: 0;
        left: 0;
        border-left: 1px solid rgb(178, 45, 45);
        border-top: 1px solid rgb(178, 45, 45);
    }

    .news-item span:after {
        bottom: 0;
        right: 0;
        border-right: 1px solid rgb(178, 45, 45);
        border-top: 1px solid rgb(178, 45, 45);
    }

    .news-item span:hover:before,
    .news-item span:hover:after {
        width: 50%;
        height: 96%;
        opacity: 1;
        transition: height 0.2s 0.2s ease-in, width 0.2s 0.4s linear, opacity 0s 0.2s;
    }
