/*!
 * csp_web service 主要樣式表
 *
 * 目錄：
 * $VARIABLE.............樣式核心變數、主題顏色
 * $GLOBAL...............HTML通用設定
 * $LAYOUT...............頁面佈局、容器、網格系統(CONTAINER, GRID)
 * $UTILITY..............通用小工具(DIVIDER, BORDER, SIZE, COLOR...)
 * $TEXT.................文字小工具
 * $BASIC-COMPONENT......BUTTONS, CARD, COLLAPSE
 * $FORM-COMPONENT.......BASIC-FORM, INPUT, SELECT, CUSTOM-INPUT, CUSTOM-CHECKBOX, CUSTOM-RADIO, LIST-GROUP
 * $DATA.................TABLE, PAGINATION, BADGE
 * $NOTICE...............ALERT, MODAL, INFOBOX
 * $NAVIGATION...........NAVBAR, SIDEBAR, TABS, NAVS, BREADCRUMB, DROPDOWN
 * $CUSTOM-PAGES.........LOGIN-PAGE
 */

/*------------------------------------*\
    $VARIABLE
\*------------------------------------*/
:root {
    --primary: #7CE0D3;
    --primary-15: rgba(124, 224, 211, .15);
    --primary-dark: #68cbbe;
    --primary2: #1C1F2A;
    --secondary: #C0DF16;
    --secondary2: #FF9E1B;
    --light: #e0fbfc;
    --dark: #23105b;
    --dark-secondary: #1b1268;
    --gray-01: #f5f5f7;
    --gray-02: #F2F2F2;
    --gray-06: #E8E8E8;
    --gray-10: #DDDDDD;
    --gray-25: #B9B9B9;
    --gray-45: #878787;
    --gray-65: #565656;
    --gray-85: #242424;
    --balck: #141414;
    --white: #fcfcfc;
    --font-family: "Noto Sans TC", "Heiti TC", "微軟正黑體", "Microsoft JhengHei", "CS_font";
    --title-font-family: 'HunInn', "M PLUS Rounded 1c", sans-serif;
}


/*------------------------------------*\
    $GLOBAL
\*------------------------------------*/
@font-face {
    font-family: 'Noto Sans TC';
    src: url('../font/NotoSansTC-Bold.otf') format('otf'), url('../font/NotoSansTC-Medium.otf') format('otf'),
    url('../font/NotoSansTC-Regular.otf') format('otf');
}

@font-face {
    font-family: 'HunInn';
    src: url('../font/jf-openhuninn-1.1.ttf');
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: #ffffff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}


/*------------------------------------*\
    $LAYOUT
\*------------------------------------*/
/* === GRID === */
.row {
    margin-right: -7.5px;
    margin-left: -7.5px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-left: 7.5px;
    padding-right: 7.5px;
}


/* === $DISPLAY === */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
}


/* === $JUMBOTRON === */
.jumbotron {
    position: relative;
    min-height: 30vh;
    padding: 4rem 0;
    margin-bottom: 0;
    /*background: url("../img/bg.svg"), linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(124, 224, 211, 1) 100%);*/
    border-radius: 0;
    overflow: hidden;
}

.jumbotron.banner {
    background: url('../img/banner-mobile.png') right bottom;
    position: relative;
    background-size: cover;
    height: 62vh;
}

.jumbotron.banner.event {
    display: flex;
    max-height: 70vh;
    background: none;
    padding: 0;
    justify-content: center;
}

.jumbotron.banner.event img {
    margin: 0 auto;
    max-width: initial;
    width: auto;
    height: 100%;
}

.jumbotron.banner.event img.w-full {
    max-width: initial;
    width: max-content;
    height: 100%;
}

@media (min-width: 1440px) {
    .jumbotron.banner.event img {
        border-left: 0.5rem solid #000000;
        border-right: 0.5rem solid #000000;
    }
}

.jumbotron .container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding-top: 5rem;
}

.jumbotron h1, .jumbotron h4 {
    color: #ffffff;
}

.jumbotron h1 {
    font-size: 2rem;
}

.jumbotron h4 {
    margin: -3rem 0 2.5rem;
    font-size: 1.25rem;
}

.typed-cursor {
    position: relative;
    top: -0.25rem;
    padding-left: 0.25rem;
    color: var(--primary);
    animation: 1s blink step-end infinite;
}


@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: var(--primary);
    }
}


@media (min-width: 768px) {
    .jumbotron.banner {
        height: 50vh;
        background: url('../img/banner.png') center;
        background-size: cover;
    }

    .jumbotron.banner.event {
        max-height: 50vh;
    }

    .jumbotron.banner.event img {
        width: 100%;
        max-width: 1440px;
    }

    .jumbotron .container {
        justify-content: center;
        padding-top: 0;
    }

    .jumbotron h1 {
        font-size: 3rem;
    }

    .jumbotron h4 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .jumbotron.jumbotron-secondary {
        min-height: 30vh
    }

    .jumbotron h1 {
        font-size: 4rem;
    }
}


/* === $MAIN === */
main {
    position: relative;
}

.main-content {
    padding-top: calc(1rem * 1.5 + 0.75rem * 2 + 1rem * 2); /* nav height */
    min-height: calc(100vh - 107px); /* view height - footer height */
}

.container {
    position: relative;
}

h2.title, .title-2 {
    padding-bottom: .5rem;
    border-bottom: 5px solid var(--primary);
    font-family: var(--title-font-family);
    font-size: 2rem;
    line-height: 2;
}

h3.sub-title, .title-3 {
    font-family: var(--title-font-family);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

section {
    position: relative;
    padding: 2rem 0;
}

section:nth-of-type(2n) {
    background-color: var(--gray-01) !important;
}

@media (min-width: 576px) {
    h2.title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    h2.title {
        margin-bottom: 2.5rem;
    }

    section {
        position: relative;
        padding: 4rem 0;
    }
}


/* === $FOOTER === */
.footer {
    background-color: #1f0d52;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFFFFF;
    padding: 2rem 0;
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    -webkit-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer .footer-main {
    display: flex;
    justify-content: center;
    /*margin-bottom: 1rem;*/
}

.footer-info {
    display: flex;
    line-height: 1.5;
}

.footer .copyright {
    text-align: center;
    font-size: 0.75rem;
    padding-top: 0.5rem;
}

.scroll-top {
    position: fixed;
    display: none;
    right: 2rem;
    bottom: 2rem;
    transition: 0.4s ease;
    z-index: 999;
}

.scroll-top:hover, .scroll-top:focus {
    bottom: calc(2rem + 8px);
}

.scroll-top .scroll-top-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--white);
    background-color: var(--primary);
    font-size: 1.125rem;
    transition: 0.4s ease;
}

.scroll-top .scroll-top-btn:hover,
.scroll-top .scroll-top-btn:focus {
    color: var(--white);
    background-color: var(--primary);
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.scroll-top .scroll-top-btn > span {
    position: absolute;
    font-size: 0.75rem;
    color: transparent;
}

@media (max-width: 576px) {
    footer {
        padding-top: 0;
    }

    .footer {
        padding-top: 24px;
    }

    .footer .footer-main,
    .footer-info p {
        margin-bottom: 0.5rem;
    }

    .scroll-top {
        bottom: 4rem;
    }

    .scroll-top:hover, .scroll-top:focus {
        bottom: calc(4rem + 8px);
    }

    .scroll-top .scroll-top-btn:hover, .scroll-top .scroll-top-btn:focus {
        background-color: var(--primary-dark);
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    .footer .copyright {
        padding-top: 1rem;
    }
}


@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}


/*------------------------------------*\
    $UTILITY
\*------------------------------------*/
/* === $DIVIDER === */
.divider {
    position: relative;
    height: 1px;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: var(--gray-06);
    font-size: 0.875rem;
    font-variant: tabular-nums;
    line-height: 1.375;
    list-style: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-feature-settings: "tnum", "tnum";
    font-feature-settings: "tnum", "tnum";
    background: var(--gray-10);
}

.divider-vertical {
    position: relative;
    top: -.06em;
    display: inline-block;
    width: 1px;
    height: .9em;
    margin: 0 8px;
    vertical-align: middle;
}

.divider-horizontal {
    display: block;
    width: 100%;
    height: 1px;
    clear: both;
}

.divider-horizontal .divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0 1rem;
    background-color: #ffffff;
    color: var(--gray-45);
    white-space: nowrap;
    transform: translate(-50%, -50%);
}


/* === $BORDER === */
.border-primary {
    border-color: var(--primary) !important;
}

.border-danger {
    border-color: var(--danger) !important;
}

.border-none {
    border: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}


/* === $BACKGROUND === */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-primary-light {
    background-color: var(--primary-15) !important;
}

.bg-primary-light > a {
    color: var(--gray-85) !important;
}

.bg-gray-02 {
    background-color: var(--gray-02) !important;
    color: var(--gray-85) !important;
}


/* === DEV-ANNOTATION === */
.dev {
    position: relative;
    padding: 0.5rem 0;
    color: #03A696;
}

.dev:before {
    content: "開發說明";
    padding: 0.25rem;
    margin: 0.25rem;
    border-radius: 0.5rem;
    color: #ffffff;
    background-color: #03A696;
    font-size: 0.875rem;
}

.dev-block {
    position: relative;
    margin: 1rem 0;
    border: 2px solid var(--danger);
    border-style: dashed;
    padding: 1rem;
    border-radius: 1rem;
}

.dev-block:before {
    content: "開發中";
    color: var(--danger);
    font-size: 1.5rem;
}


/* === EMPTY-CONTENT-DISPLAY ===*/
.empty-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-45);
    font-size: 2rem;
    font-family: var(--title-font-family);
}

.empty-content:before {
    content: "";
    display: block;
    width: 12rem;
    height: 12rem;
    margin-right: 1rem;
    background-image: url("/img/csp-error.png");
    background-size: cover;
}

.noscript {
    display: block;
    padding: 2rem;
    margin: 80px 0 -80px 0;
    background-color: var(--danger-light);
}


/*------------------------------------*\
    $TEXT
\*------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font-family);
}

h6 {
    font-size: 1.125rem;
}

a {
    color: var(--primary);
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a.text {
    background-color: var(--primary);
}


a.text:hover {
    background-color: var(--primary-dark);
    color: var(--gray-85);
}

a.text-secondary:focus, a.text-secondary:hover {
    color: var(--secondary-dark) !important;
}

caption {
    color: var(--gray-45);
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-md {
    font-size: 1.25rem !important;
}

.text-underline {
    text-decoration: underline;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-muted {
    color: var(--gray-65) !important;
}

.text-back {
    display: block;
    margin-bottom: 1rem;
}

.text-distributed {
    text-align: justify;
    text-justify: distribute-all-lines;
    text-align-last: justify;
}

i.left {
    padding-right: 0.25rem;
}

i.right {
    padding-left: 0.25rem;
}

a[aria-expanded="false"] span > i {
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[aria-expanded="true"] span > i {
    padding-left: 0.25rem;
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.small, small {
    font-size: 90%;
}

ul {
    padding-left: 0;
}

ul > li {
    line-height: 1.5;
}

ul.list-style-none > li {
    list-style-type: none;
}

ul.list-style-disc, ul.list-style-ckj {
    padding-left: 0;
}

ul.list-style-disc > li {
    list-style: disc;
    margin-left: 1.5rem;
}

ul.list-style-ckj > li {
    list-style-type: cjk-ideographic;
    margin-left: 2rem;
}

.span-comma > span:not(:first-child):before {
    content: '、';
}

.a-comma > a:not(:first-child):before {
    content: '、';
    color: var(--gray-85);
}


/*------------------------------------*\
    $BASIC-COMPONENT
\*------------------------------------*/
/* === $BUTTON === */
.btn.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--gray-85);
    background-color: var(--primary);
    border-color: var(--gray-85);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
    background-color: var(--primary-dark);
    border-color: var(--gray-85);
    color: #FFFFFF;
}

.btn-primary.focus, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--gray-85);
    color: #FFFFFF;
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-15);
    box-shadow: 0 0 0 .2rem var(--primary-15);
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: #FFFFFF;
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary.disabled, .btn-secondary:disabled {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--gray-85);
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-danger.disabled, .btn-danger:disabled {
    background-color: var(--danger);
    border-color: var(--danger);
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);;
}

.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: var(--primary);
    border-color: var(--primary);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: #FFFFFF;
}

.btn-outline-primary.focus, .btn-outline-primary:focus {
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.btn-outline-primary.disabled:hover,
.btn-outline-primary:hover:disabled {
    color: var(--primary);
    background-color: transparent;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary.focus, .btn-secondary:focus {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-link {
    color: var(--primary);
}

.btn-link:hover {
    color: var(--primary-dark);
}


.btn + .btn {
    margin-left: 0.5rem;
}

.btn.disabled,
.btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}


/* === $CARD === */
.card {
    border-color: var(--gray-10);
}

.card-header {
    background-color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}


/* === $COLLAPSE === */
a[aria-expanded="true"] .rotate-icon {
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[data-toggle][aria-expanded="false"] .rotate-icon {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[data-toggle][aria-expanded="false"] i.right.rotate-icon {
    padding-left: 0;
    padding-right: 0.25rem;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


/*------------------------------------*\
    $FORM-COMPONENT
\*------------------------------------*/
/* === FORM === */
label, .label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-85);
}

label.required::after {
    content: ' *';
    color: var(--danger);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
}

textarea {
    resize: none;
}

textarea, input {
    padding: .375rem .75rem;
    border: 1px solid var(--gray-25);
    border-radius: 0.25rem;
}


.form-control, .custom-select {
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    color: var(--gray-85);
    border: 1px solid var(--gray-25);
}

.form-control:focus, .custom-select:focus {
    color: var(--gray-65);
    border-color: var(--primary);
    outline: 0;
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.input-group > .form-control:not(:last-child) {
    padding-right: 0.25rem;
}

.form-control::placeholder {
    color: var(--gray-25);
}

.form-check-inline {
    height: calc(1.5em + .75rem + 2px);
}

.form-inline-group {
    display: flex;
    align-items: center;
}

.form-inline-group .form-control {
    width: 45%;
}

.form-inline-group span {
    width: 10%;
    text-align: center;
}


/* === $CUSTOM-CHECKBOX === */
.custom-checkbox {
    padding-left: 2rem;
}

.form-group.custom-checkbox {
    padding-left: 0;
}

.custom-control {
    padding-left: 2rem;
}

.custom-multi-checkbox .custom-control {
    padding-left: 2rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: var(--white);
    border-color: var(--gray-85);
    background-color: var(--primary);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.custom-control-label::before {
    background-color: #ffffff;
}

.custom-control-label::before,
.custom-control-label::after {
    width: 1.25rem;
    height: 1.25rem;
}

.custom-control-label::before,
.custom-control-label::after {
    top: 0;
    left: -2rem;
}

.custom-radio .custom-control-input {
    margin-right: 1rem;
}

.custom-control-label, label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    font-weight: normal !important;
    color: var(--gray-85);
}

.custom-checkbox .form-check {
    /*width: 100%;*/
    padding-left: 2rem;
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: var(--primary);
    opacity: 0.65;
}

/* custom checkbox validation */
.custom-checkbox.invalid .custom-control-label,
.custom-checkbox.invalid label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    color: var(--danger);
}

.custom-checkbox.invalid .custom-control-label:before {
    border-color: var(--danger);
}

.custom-checkbox.valid .custom-control-label,
.custom-checkbox.valid label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    color: var(--success);
}

.custom-checkbox.valid .custom-control-label:before {
    border-color: var(--success);
    background-color: var(--success);
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    color: var(--white);
    background-color: var(--primary-15);
    border-color: var(--primary-15);
    -webkit-box-shadow: none;
    box-shadow: none;
}


/*------------------------------------*\
    $DATA
\*------------------------------------*/
/* === $TABLE === */
.table th {
    color: #FFFFFF;
    background-color: var(--primary);
}

.table thead th {
    vertical-align: middle;
    border-bottom: 2px solid var(--gray-06);
}

.table-striped tbody tr:nth-of-type(2n+1) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(2n) {
    background-color: var(--gray-02);
}

.table-bordered td, .table-bordered th {
    border-color: var(--gray-10);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-15);
}

.table .list-group-item {
    background-color: transparent;
}


/* === $PAGINATION === */
.pagination {
    width: 100%;
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.25rem;
    padding-top: 0.5rem;
    color: var(--gray-85);
    border-color: var(--gray-10);
    border-radius: 2.5rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.page-link:hover {
    color: var(--gray-85);
    background-color: var(--primary-15);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: #FFFFFF;
}

.page-item.disabled .page-link {
    color: var(--gray-45);
    border-radius: 2.5rem;
}

.page-item:first-child .page-link, .page-item:last-child .page-link {
    border-radius: 2.5rem;
}


/* === $BADGE === */
.badge {
    line-height: 1.25;
    font-weight: 400;
}

.badge-primary {
    background-color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary);
}

.badge-light {
    color: var(--gray-65);
    border: 1px solid var(--gray-25);
    background-color: var(--gray-10);
}

.badge-success {
    color: var(--gray-85);
    border: 1px solid var(--success-dark);
    background-color: var(--success);
}

.badge-danger {
    color: var(--danger);
    border: 1px solid var(--danger);
    background-color: var(--danger-light);
}

.badge-warning {
    color: var(--primary-dark);
    border: 1px solid var(--warning);
    background-color: var(--warning-light);
}

.badge-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: transparent;
}

.badge-outline-secondary {
    color: var(--secondary);
    border: 1px solid var(--secondary);
    background-color: transparent;
}


.badge-outline-light {
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    background-color: transparent;
}


.badge-outline-info {
    color: var(--info);
    border: 1px solid var(--info);
    background-color: transparent;
}


.badge-outline-warning {
    color: var(--warning);
    border: 1px solid var(--warning);
    background-color: transparent;
}


/* === $CAROUSEL === */
.carousel-indicators {
    position: relative;
    margin: 1rem auto;
}

.carousel-indicators li {
    background-color: var(--gray-25);
}

.carousel-control-next, .carousel-control-prev {
    opacity: 0;
    transition: 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 100;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    position: relative;
    width: 1rem;
    height: 1rem;
}

.carousel-item {
    border-radius: 0.5rem;
    overflow: hidden;
}


/*------------------------------------*\
    $NOTICE
\*------------------------------------*/
/* === $ALERT === */
.alert-primary {
    color: var(--gray-85);
    background-color: var(--primary-15);
    border-color: var(--primary);
}

.alert-secondary {
    color: var(--gray-85);
    background-color: var(--secondary-15);
    border-color: var(--secondary);
}

.alert a.btn {
    color: var(--primary);
    text-decoration: none;
}

.alert a.btn:hover {
    color: #FFFFFF;
}


/*------------------------------------*\
    $NAVIGATION
\*------------------------------------*/
/* === $NAVBAR === */
.navbar {
    padding: 1rem;
    border-bottom: 1px solid var(--primary);
    background-color: #ffffff;
    color: var(--gray-85);
    transition: ease;
    z-index: 1002;
}

.navbar-nav {
    flex-direction: row;
}

.navbar-collapse .navbar-nav {
    flex-direction: column;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item .nav-link {
    position: relative;
    padding: 0.75rem;
    color: var(--gray-85);
    text-align: center;
    transition: 0.3s ease;
}

.navbar-nav .nav-item .nav-link.active:after, .navbar-nav .nav-link:hover:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.navbar-brand {
    padding: 0;
    font-size: 1rem;
}

.navbar-brand img {
    height: 30px;
    margin-right: 0.5rem;
}

.navbar-toggler {
    padding: 0.75rem;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-close {
    display: none;
    transition: ease 0.3s;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-open {
    display: none;
    transition: ease 0.3s;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.125rem;
}

.navbar.expanded .navbar-toggler svg path {
    fill: #ffffff;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary);
    color: var(--gray-85);
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-15);
}

.navbar.scroll {
    padding: 0.5rem 0;
}

@media (min-width: 576px) {
    .navbar {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand small {
        font-size: 0.875rem;
    }
}

@media (min-width: 992px) {
    .navbar-collapse .navbar-nav {
        flex-direction: row;
    }

    .navbar.scroll {
        border-bottom: 2px solid #ffffff;
    }
}

@media (max-width: 991.99px) {
    .nav-item .dropdown-menu {
        background-color: #FFFFFF;
        text-align: center;
        transition: 0.3s ease;
    }

    .nav-item .dropdown-item {
        padding: 0.75rem 0;
    }
}


/* === TABS === */
.nav.nav-tabs {
    margin-bottom: 1.5rem;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--secondary);
    background-color: #fff;
    border-radius: 0;
    border-color: transparent;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    color: var(--secondary);
    border-color: #ffffff;
}

.nav-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--primary-15);
    transform: none;
    transition: 0.3s ease;
}

.nav-tabs .nav-link.active:hover:after, .nav-tabs .nav-link.active:after {
    background: var(--primary);
}

.nav-tabs .nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--primary-50);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(.215, .61, .355, 1);
    transform-origin: 100% 0;
}

.nav-tabs .nav-link:hover:after {
    transform: none;
    transform-origin: 0 0;
}

.container > .nav-tabs {
    font-size: 1.125rem;
}

@media (max-width: 991.99px) {
    .nav-tabs {
        flex-wrap: inherit;
        white-space: nowrap;
        overflow-x: scroll;
        /* Hide scrollbar for IE, Edge and Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 576px) {
    .nav-tabs.analysis .nav-link.active {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .card .nav-tabs .nav-link {
        padding: .5rem 0.75rem;
    }
}


/*------------------------------------*\
    $CUSTOM-PAGES
\*------------------------------------*/
/* === INDEX-PAGE === */
.product-block {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: calc(100% - 1rem);
    margin-bottom: 1rem;
    padding: 1rem;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border: 1px solid var(--gray-06);
    border-radius: 1rem;
    background-color: #FFFFFF;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.product-block .product-img {
    width: 25%;
    margin-right: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-block .product-img figure {
    display: flex;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    /*overflow: hidden;*/
}

.product-img figure img, .product-img figure span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 99%;
    height: 99%;
    background-color: var(--primary-dark);
    color: #FFFFFF;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.product-img figure span.no-img:before {
    content: attr(data-img);
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 3rem;
    transform: translate(-50%, -50%);
}

.product-block .product-info {
    position: relative;
    width: calc(75% - 1rem);
    color: var(--gray-85);
}

.product-info .product-info__title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: var(--title-font-family);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.5;
}

.product-info .product-info__tag {
    display: inline-flex;
    align-items: center;
    height: calc(0.875rem * 1.5 + 0.25rem * 2); /*tag font-size * line-height + padding-y */
    margin-left: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid;
    border-radius: 1rem;
    background-color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.product-info .product-info__tag.secondary {
    background-color: var(--secondary);
}

.product-info .product-info__note {
    color: var(--gray-65);
    line-height: 1.5;
}

.product-info .product-info__more {
    position: absolute;
    display: block;
    right: 0;
    bottom: 0;
}

.product-info .product-info__action {
    display: flex;
    margin-top: .5rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.product-info .product-info__action > a {
    position: relative;
    flex-basis: 45%;
}

.product-info__more span {
    position: relative;
    opacity: 0;
    z-index: 2;
    transition: 0.3s linear;
}

.product-info:hover .product-info__more:before {
    content: "";
    position: absolute;
    top: 0;
    right: -1rem;
    width: 0;
    height: 1.5rem;
    background-color: var(--dark);
    animation: letterBg .5s ease-in-out forwards;
}

.product-block:hover .product-info__more span {
    color: var(--primary);
    animation: letter .5s forwards;
}

@keyframes letterBg {
    0% {
        width: 0
    }
    70%, 100% {
        width: 5.5rem;
    }
}

@keyframes letter {
    0%, 50% {
        opacity: 0
    }
    70%, 100% {
        opacity: 100%
    }
}


/* === PRODUCT-PAGE === */
.sticky-side, .contact-sticky-form {
    position: sticky;
    display: inline-block !important;
    top: 120px !important;
    width: 100% !important;
    z-index: 1 !important;
}

.contact-sticky-form .card {
    box-shadow: 0 0 2rem rgba(0, 0, 0, .1);
}

.price .card {
    background-color: var(--primary);
}

.price-header {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.price-header > span {
    color: var(--gray-45);
    font-weight: normal;
}

.price-note {
    font-size: 0.875rem;
    color: var(--gray-45);
}


.service-content {
    margin-bottom: 1.5rem;
}

.service-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-content h2:not(:first-of-type) {
    margin-top: 2.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    font-size: 1.25rem;
}

.service-content ul {
    padding-left: 1.5rem;
}

.service-content a {
    padding: 0.25rem;
    background-color: var(--gray-85);
    border-radius: 0.25rem;
    font-weight: bold;
}

.float-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    padding: .75rem 1rem .75rem;
    border: none;
    border-radius: 25px 30px 5px 25px;
    background-color: var(--primary);
    transition: 0.3s ease-in-out;
    transition-delay: 0.35s;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(35, 16, 91, 0.16), 0 3px 6px rgba(35, 16, 91, 0.23);
    z-index: 100;
}

.float-btn:before {
    content: "";
    display: block;
    background: var(--dark);
    position: absolute;
    width: 200%;
    height: 500%;
    border-radius: 100%;
    transition: 0.36s cubic-bezier(0.4, 0, 1, 1);
    transform: translate(30%, 10%) translateZ(0);
}

.float-btn:hover span {
    /*color: var(--primary);*/
    color: #ffffff;
}

.float-btn:hover {
    color: transparent;
}

.float-btn:hover:before {
    transform: translate(-45%, -34%) translateZ(0);
}

.float-btn span {
    position: relative;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: bold;
    transition: 0.25s ease-in;
    transition-delay: 0.1s;
}

/*在申請冊用頁面不顯示此按鈕*/
.float-btn.active {
    display: none;
}

@media (min-width: 768px) {
    .float-btn {
        bottom: 3rem;
        right: 2rem;
    }
}






