@charset "utf-8";

/****************** 基本 ******************/
* {
    font-family: "微軟正黑體", "Microsoft JhengHei", Arial, Geneva, sans-serif;
}

body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #777777;
    color: #323232;
    background-color: #fff;
    height: 100%;
    position: relative;
    /* padding-top: 60px; */
}

/* @media screen and (max-width: 1400px) {
    body {
        padding-top: 60px;
    }
} */

hr {
    border-top: 1px solid #afafaf;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000;
    font-weight: 400;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: #009999;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

a:hover,
a:active,
a:focus,
a:visited {
    color: #006464;
    outline: none;
    text-decoration: none;
}

img,
object,
embed,
video {
    max-width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #000;
    opacity: .2;
}

/*
--- 按鈕 btn ---*/
.btn:hover,
.btn:active,
.btn:focus {
    background: #393e46 !important;
    color: #fff;
    outline: none !important;
}

.btn {
    border-radius: 0px;
}

.btn.btn-primary {
    background: #009999;
    color: #fff;
    border: none !important;
    border: 2px solid transparent !important;
    display: inline-block;
    margin-top: 5px;
}

#myBtn {
    display: inline-block;
    position: fixed;
    width: 117px;
    height: 117px;
    bottom: 50px;
    right: 35px;
    z-index: 99;
    border: none;
    outline: none;
    background-image: url(../images/apply.png?d=20230630);
    background-size: contain;
    cursor: pointer;
    padding: 10px;
}

#myBtn:hover {
    background-image: url("../images/apply_a.png?d=20230630");
}

@media screen and (max-width: 768px) {
    #myBtn {
        width: 84px;
        height: 84px;
        bottom: 50px;
        right: 10px;
        z-index: 99;
        border: none;
        outline: none;
        background-image: url(../images/apply_s.png?d=20230630);
    }

    #myBtn:hover {
        background-image: url("../images/apply_a_s.png?d=20230630");
    }
}


@media screen and (max-width: 576px) {
    .btn.btn-lg {
        padding-top: 10px;
        padding-right: 5px;
        padding-left: 5px;
        padding-bottom: 10px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .btn.btn-lg {
        padding-top: 10px;
        padding-right: 8px;
        padding-left: 8px;
        padding-bottom: 10px;
        font-size: 16px;
    }
}

/*
--- 切換裝置顯示項目 ---*/
#line {
    display: block;
}

#line_m {
    display: none;
}

@media screen and (max-width: 576px) {
    #line {
        display: none;
    }

    #line_m {
        display: block;
    }
}

/****************** 導覽列 navbar ******************/
.navbar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
}

.navbar-header {}

/*
--- 聯邦LOGO navbar-brand ---*/
.navbar-brand {
    padding-right: 0;
}

.navbar .navbar-brand {
    margin-right: 50px;
    margin-left: 20px;
    width: 250px;
    height: 70px;
    background: url(../../../../include/images/UBLogo.png) no-repeat 0 50%;
    background-size: contain;
}

.navbar-header .navbar-brand img {
    width: 90%;
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 153, 153, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-light .navbar-toggle .icon-bar {
    background-color: #009999;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, .9);
}

.navbar-light .navbar-toggle:hover,
.navbar-light .navbar-toggle:focus {
    background-color: #f8f8f8;
}

.navbar-nav>li>a {
    margin-left: 15px;
    margin-top: 10px;
    display: block;
}

.navbar-light .navbar-nav>li>a:hover,
.navbar-light .navbar-nav>li>a:focus {
    color: #009999;
    background-color: transparent;
}

.navbar-light .navbar-nav>.active>a,
.navbar-light .navbar-nav>.active>a:hover,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav>.active>a:focus {
    color: #009999;
}

.navbar-toggle {
    margin-top: 13px;
    margin-bottom: 15px;
    border: 0px;
    border-radius: 0px;
}

/* :hover */
.navbar-nav>li>a:after {
    content: '';
    display: block;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    background: #009999;
    z-index: -1;
    transition: all .5s;
}

.navbar-nav>li:hover>a:after {
    transform: scaleX(1);
}

/*
--- 導覽列下拉dropdown-menu ---*/
.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #009999;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #eaeaea;
}

@media screen and (max-width: 1200px) {
    .navbar .navbar-brand {
        width: 200px;
        height: 60px;
    }
}

/****************** 輪播 carousel  ******************/
.carousel-indicators li {
    width: 10px;
    height: 10px;
    opacity: .8;
    border-radius: 50px;
    border: 1px solid #dedede;
    background-color: #bbbbbb;
}

.carousel-indicators .active {
    background-color: #009999;
}

/*
--- 主視覺 ---*/
.kv {
    position: relative;
    width: 100%;
    --w: 1920;
    --h: 1000;
    margin-top: 60px;
}

.kv:before {
    content: '';
    width: 100%;
    padding-top: calc(var(--h) * 100% / var(--w));
    display: block;
    background-image: url(../images/top.jpg);
    background-size: cover;
}

@media (max-width:576px) {
    .kv {
        --w: 768;
        --h: 768;
    }

    .kv:before {
        background-image: url(../images/top_m.jpg);
    }

    .kv_box {
        position: absolute;
        top: 54%;
        left: 12.8%;
        width: 75%;
        height: 50%;
    }
}

/****************** 版面 Container ******************/
.gridContainer {
    width: 100%;
    clear: none;
    float: none;
    margin-left: auto;
    margin-right: auto;
    background-size: cover;
}

@media only screen and (max-width: 768px) {
    .gridContainer {
        width: 100%;
        margin: auto;
        clear: none;
        float: none;
        margin-left: auto;
        background-size: cover;
    }
}

/*
--- 活動主版 mainArea ---*/
.mainArea {
    /* padding-top: 50px; */
    padding-bottom: 30px;
}

.mainArea2 {
    padding-bottom: 30px;
    background-color: #efeeef;
}

.bg_white {
    background-image: url(../images/threecard-line.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.mainArea h2 {
    /* 活動主標 */
    font-size: 40px;
    margin: 0 auto 10px;
    text-align: center;
    font-weight: 600;
    color: #017d8a;
    letter-spacing: 3px;
}

.mainArea h2 small {
    color: #333333;
}

.mainArea h3.date {
    /* 活動起訖日+對象 */
    line-height: 1.8;
    font-size: 1.3rem;
}

.mainArea h4 {
    /* 活動敘述文 */
    color: #2E2E2E;
    font-size: 16pt;
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 3px;
    /* text-align: justify; */
}

.mainArea h5 {
    /* 內文區塊下方備註 */
    color: #2A2A2A;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}

.mainArea p {
    color: #313131;
    font-size: 15.5px;
    font-weight: bold;
    text-align: center;
    /* margin-right: 12px; */
    padding-top: 24px;
}

.mainArea img {
    margin: 0px auto;
}

.benefit img {
    animation: pulseZoom 3s ease-in-out infinite;

    /* opacity: 0;
    animation: fadeInUp 1s ease-out forwards; */
}

@keyframes pulseZoom {

    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1);
    }
}

/* @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
} */

@media screen and (max-width: 576px) {
    .mainArea {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .mainArea h3.date {
        /* 活動起訖日+對象 */
        font-size: 1rem;
    }

    .mainArea h4 {
        /* 活動敘述文 */
        font-size: 14pt;
        line-height: 1.5;
    }
}

/*
--- 活動內文區塊 mainText ---*/
.mainText1 {
    font-size: 24px;
    color: #545559;
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 50px;
    /* border: 1px dashed #767272; */
    padding: 30px 20px;
    text-align: center;
}

.mainText1 .title,
.mainText2 .title {
    text-align: center;
    font-weight: bold;
    color: #007986;
    padding-left: 10px;
    padding-right: 10px;
}

.red {
    color: #d60000;
}

.reward {
    color: #d60000;
    margin-right: 3px;
    margin-left: 3px;
    padding: 5px;
}

.flex-container {
    flex-direction: row;
}

.flexBox {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

@media screen and (max-width: 991px) {
    .flexBox {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {

    .mainText1 .title,
    .mainText2 .title {
        font-size: 1.5rem;
    }

}

/* 聯邦精選推薦 */
.mainText2 {
    font-size: 1.5rem;
    color: #313131;
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    background: #fff;
    border: #dcdcdc 1px solid;
    border-radius: 24px;
    padding: 80px 8px 8px;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 93%;
}

.mainText2 h2 {
    text-align: center;
    font-size: 30px;
    letter-spacing: 1px;
    color: #222;
    margin: 0 auto 20px;
    font-weight: 600;
}

.mainText2 h3 {
    padding-top: 20px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: -10px;
}

.mainText2 img {
    width: 70%;
}

.mainText2 .ribbon {
    position: absolute;
    top: 20px;
    left: -3.5%;
    z-index: 2;
    width: 50%;
    height: auto;
}

.mainText2 .ribbon img {
    width: 100%;
    height: auto;
}

.mainText2s {
    font-size: 18px;
    letter-spacing: 0px;
}

.mainText-list {
    font-size: 17px;
    line-height: 2rem;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 4px;
    list-style: none;
    padding-left: 1rem;
}


.green {
    color: #40a880;
    font-size: 1.2rem;
    padding-left: 4px;
}

.gold {
    color: #CA8314;
    font-size: 1.2rem;
    padding-left: 4px;
}

.purple {
    color: #A065AA;
    font-size: 1.2rem;
    padding-left: 4px;
}

.blue {
    color: #37c2d8;
    font-size: 1.2rem;
    padding-left: 4px;
}

.card-btns {
    margin-top: auto;
    margin-bottom: 20px;
}

.card-btns .btn {
    flex: 1;
    margin: 0;
}

@media screen and (max-width: 992px) {
    .mainText2 .ribbon {
        top: 26px;
        left: -2.5%;
        width: 35%;
    }
}

@media screen and (max-width: 768px) {
    .mainText2 .ribbon {
        width: 80%;
        margin-top: 20px;
    }
}

@media screen and (max-width: 576px) {
    .mainText2 .ribbon {
        top: 2px;
        left: -3.5%;
        width: 50%;
    }
}


/*
--- 備註文字 ---*/
.memoTable {
    font-size: 15px;
}

.memoTable td {
    vertical-align: top;
}

/*
--- 活動表格 ---*/
.mainArea .table thead th {
    height: 30px;
    border-bottom: 1px;
}

.mainArea .table-bordered th,
.mainArea .table-bordered td {
    padding: 3px;
    border: 1px solid #a1bbbd;
    vertical-align: middle;
}

.mainArea .table-bordered {
    text-align: center;
    line-height: 2;
    vertical-align: middle;
    border-width: 1px;
    border-color: #ddd;
    padding: 10px;
}

@media screen and (max-width: 576px) {
    .mainArea .table thead th {
        font-size: 17px;
    }

    .mainArea .table-bordered td {
        font-size: 17px;
    }

    .mainArea .table-bordered {
        line-height: 1.5;
    }
}

/*
--- 注意事項 ---*/
.noticeDesc h4 {
    font-size: 1.3rem;
}

.noticeDesc .table-bordered {}

ul.list-style {
    margin-bottom: .3rem;
    padding: 0 0 0 20px;
}

/*
--- 注意事項表格 exTable ---*/
#exTable table th,
#exTable table td {
    text-align: center;
    font-size: 12px;
    border: 1px solid #ccc;
    vertical-align: inherit;
}

#exTable table th {
    color: #fff;
    background-color: #323232;
}

/*
--- 分頁 tabs submenu ---*/
.tabs {
    margin-top: 50px;
    margin-bottom: 20px;
    padding-right: 0px;
    padding-left: 0px;
    border-bottom: 1px solid #00859a;
}

.submenu ul {
    list-style-type: none;
}

.submenu li {
    float: left;
    height: 30px;
    width: 33.333%;

    font-size: 13pt;
    font-weight: 500;
    line-height: 20px;
    color: #1c100b;
    text-align: center;
    padding: 0 24px;
    list-style-type: none;
}

.submenu li a {
    color: #a9a9a9;
    padding-bottom: 5px;
}

.submenu li a.active {
    color: #FFFFFF;
    font-size: 15pt;
    background: #00859a;
    padding: 10px 10% 8px;
    border-radius: 10px 10px 0 0;
}

@media screen and (max-width: 576px) {
    .submenu {
        padding: 0 0 0 0;
    }

    .submenu li {
        font-size: 12pt;
        padding: 0px;
    }

    .submenu li a {
        padding-bottom: 8px;
    }

    .submenu li a.active {
        font-size: 12pt;
        padding: 10px 10% 10px;
    }
}

@media screen and (max-width: 320px) {
    .submenu li {
        font-size: 10pt;
    }

    .submenu li a.active {
        font-size: 10pt;
        padding-bottom: 13px;
    }
}

/*
--- 版權宣告footer ---*/
#footer {
    background-color: #eeeeee;
}

.copyright {}

.copyright a {
    color: #7f7f7f;
    outline: none;
    text-decoration: none;
}

.copyright h4,
.copyright h5 {
    margin-top: 15px;
}

.copyright h4 {
    font-size: 26px;
    text-align: right;
}

.copyright h5 {
    font-size: 12px;
    text-align: left;
    color: #777;
    margin-left: 70px;
}

.copyright p {
    font-size: 16px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.copyright .list-inline {
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .copyright h4 {
        font-size: 20px;
        text-align: center;
    }

    .copyright h5 {
        font-size: 12px;
        margin-left: auto;
    }

    .copyright p {
        font-size: 12px;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    #footer {
        padding: 10px 0;
        color: #7f7f7f;
        background-color: #eeeeee;
    }

    #footer .copyright {
        margin-bottom: 0px;
        padding-bottom: 0;
    }

    .copyright h5 {
        text-align: center;
    }

    .copyright a {
        color: #7f7f7f;
        outline: none;
        text-decoration: none;
    }
}

/* animate */
.js .to-animate,
.js .to-animate-2,
.js .single-animate .js .animate-single {
    opacity: 0;
}

.js .animate-box {
    opacity: 0;
}

/* boxItem:hover 20200428 */
.boxItem {
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;

    max-width: 330px;
    border: 2px solid #e0e0e0;
}

.boxItem:hover {
    cursor: pointer;
    /* 滑鼠手指 */
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
    border: 2px solid #009999;
    box-shadow: 0px 4px 5px rgba(120, 120, 120, 0.3);
}

@media screen and (max-width: 991px) {
    .boxItem {
        max-width: none;
    }
}


/*
  --- Swiper -------------------------------*/
.swiper-wrapper {
    list-style: none;
    padding: 10px;
}

.swiper-slide {
    min-height: 300px;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #FFFFFF;
    text-align: center;
    /*display: flex;
      flex-direction: column;*/
}

.swiper-slide .btn {
    bottom: 0;
}

.swiper-button-next,
.swiper-button-prev {
    display: none;
}

@media screen and (max-width: 991px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: block;
    }
}

footer {
    width: 100%;
    background-color: #f4f4f4;
}

.benefit_bg {
    background-color: #f7f7f7;
}

.benefit {
    display: flex;
}

.mainArea .benefit_img {
    width: 120px !important;
    height: 120px !important;
    padding: 5px;
    flex-shrink: 0;
}

@media screen and (max-width:992px) {
    .benefit {
        flex-direction: column;
        align-items: center;
    }
}

.benefit-project {
    padding: 12px 0 36px 0;
    width: 80%;
    height: auto;
    margin-bottom: 4px;
    transition: .8s;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* border: 2px solid #e84b4b;
    border-radius: 200px;
    box-shadow: 6px 8px 0px #ff6e6e; */
}

.benefit-project h4 {
    font-size: 40px;
    letter-spacing: 1px;
}

.benefit-project .stress-color {
    color: #e84b4b;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.benefit-project .big {
    font-size: 3.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.benefit-project h5 {
    font-size: 1.2rem;
}

.benefit-project h4,
.benefit-project h5 {
    text-align: center;
    font-weight: bold;
}

.benefit-project .consumption_mark {
    background-image: linear-gradient(to top, #f9f5969c 50%, rgba(0, 0, 0, 0) 50.1%);
}

@media screen and (max-width:1439px) {
    .benefit-project h4 {
        font-size: 2rem;
    }

    .benefit-project .big {
        font-size: 3.2rem;
    }
}

@media screen and (max-width:992px) {
    .benefit-project {
        width: 110%;
    }
}

@media screen and (max-width:576px) {
    .benefit-project {
        padding: 0px 8px;
    }

    .benefit-project .big {
        font-size: 2rem;
    }

    .benefit-project h4 {
        font-size: 22px;
    }

    .benefit-project h4,
    .benefit-project h5 {
        text-align: center;
    }

    .benefit-project h5 {
        margin-top: -12px;
        font-size: 14px;
    }
}

@media screen and (min-width: 1200px) {
    .cardIntro {
        border: 1px solid #c0c0c0;
        padding: 40px 0;
        margin: 10px auto 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20px;
    }
}

/* 
modal */
.modal .btn-close {
    background: url(../images/close.png) no-repeat;
    width: 3em;
    height: 3em;
    float: right;
}

.modal-content {
    background-color: #fff;
    border: 5px solid rgba(26, 193, 220, 0.84);
    border-radius: 30px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
}

.modal .modal-title {
    color: #009999;
    font-weight: 600;
    font-size: 2rem;
}

/* btn_線上開戶 */

.btn_apply-card {
    position: absolute;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem .5rem;
    text-align: center;
    line-height: 1.2;
    border-top-left-radius: 20px;
    border: 2px solid #50B0D5;
    color: #ffffff;
    background-color: #50B0D5;
    position: fixed;
    right: 0;
    /* bottom: 20rem; */
    bottom: 26.5rem;
    width: 2.6rem;
    cursor: pointer;
    -webkit-transform: translateY(120px);
    transform: translateY(140px);
    -webkit-transition: .3s;
    transition: .3s;
    /* opacity: .8; */
    z-index: 10;
}

.btn_apply-card:hover {
    border: 2px solid #3294bb;
    background-color: #3294bb;
    color: #ffffff;
    opacity: 1;
}

.btn_apply-card a {
    color: #ffffff;
    display: block;
    /* padding: 1rem .5rem; */
    text-decoration: none;
}


/* btn_線上辦卡 */

.btn_cardgo {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    border-bottom-left-radius: 20px;
    color: #ffffff;
    border: 2px solid #e9527b;
    background-color: #e9527b;
    position: fixed;
    right: 0;
    bottom: 10.8rem;
    width: 2.6rem;
    opacity: 1;
    z-index: 10;
}

.btn_cardgo:hover {
    border: 2px solid #da3c66;
    background-color: #da3c66;
    /* opacity: .8; */
}

.btn_cardgo a {
    display: block;
    padding: 1rem .5rem;
    text-decoration: none;
}

/* 影片區塊 */
.main-title {
    margin: 0 -8px;
    font-size: 150%;
    font-weight: 900;
    color: #c70007;
    background: linear-gradient(to top, #017688, #00858c, #b1fbff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.sub-title {
    font-size: 20px;
    letter-spacing: 2px;
    color: #49b6bc;
    margin-top: 0px;
    padding: 6px 24px;
    border-radius: 100px;
    border: 2px solid #49b6bc;
}

.main-JK {
    margin-top: 3em;
    background-color: #efeeef;
}

.main-JK .box {
    /* display: flex; */
    /* flex-direction: row; */
    padding: 1em 8px;
}

[id^="video-section"] {
    scroll-margin-top: 100px;
}

/* 固定影片大小 */
.video-fixed {
    width: 100%;
    max-width: 510px;
    aspect-ratio: 510 / 340;
    overflow: hidden;
}

.video-fixed iframe {
    width: 100%;
    height: 100%;
}