/* general */

/*:root {
    --test-color: black;
    --rhap-border: #dee2e6;
    --rhap-intro-color: #cad3dc;
    --rhap-main-color: #391e85;
    --rhap-main-text: white;
    --rhap-main-hover-color: #2e0775;
    --rhap-main-disabled-color: #3a2f97;
    --rhap-main-disabled-border-color: rgb(58, 6, 117);
}*/

:root {
    --test-color: black;
    --rhap-border: #dee2e6;
    --rhap-intro-color: #e7eaec;
    --rhap-main-color: #17a4a4;
    --rhap-btn-color: #54a8c7;
    --rhap-main-text: white;
    --rhap-main-hover-color: #17a4a4;
    --rhap-main-disabled-color: #5F6175;
    --rhap-main-disabled-border-color: #5F6175;
    --header-height: 65px;
}


body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', 'Apple LiGothic Medium', 'Heiti TC', sans-serif;
    background-color: var(--bs-body-bg);
    min-height: 100vh;
    /*text-wrap: balance;*/
    /*word-break: break-all;*/
}

body p {
    color: #333;
}

a {
    color: var(--rhap-main-color);
}

html.fix, .fix body {
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    margin: 0;
}

main {
    min-height: 70vh;
}

.emph {
    color: #1c3651;
    font-weight: bold;
}

.primary-text, .primary-text a{
    color: var(--rhap-main-color);
    transition: color 0.3 ease;
    text-decoration: none;
}

.primary-text a:hover {
    color: var(--rhap-btn-color);
    font-weight: bold;
    /*text-shadow: 1px 1px 1px rgba(81, 131, 223, 0.5);*/
}

.table, .table * {
    width: auto;
}

footer p a {
    text-decoration: none;
    /*color: var(--test-color);*/
}

@media (max-width: 768px) { /* Small devices */
    footer .col {
        width: 100%;
        min-width: fit-content;
    }
}

/* navbar start */


.navbar .nav-link.active {
    /*color: #5d005d;*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.navbar .nav-link {
    /*color: black;*/
    transition: color 0.3 ease;
}

.navbar .nav-link:hover {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar .nav-link.nav-new {
    color: var(--rhap-main-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    align-items: center;
}

.navbar .nav-link.nav-new:hover {
    color: var(--rhap-main-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.navbar .nav-new-before {
    float: right;
    color: #cf2f00;
    background-color: #ffff00;
    border-radius: 20%;
    margin-top: -10px;
    margin-left: -3rem;
    left: -0.5rem;
    position: relative;
    width: fit-content;
    line-height: 0.7rem;
    font-size: 0.7rem;
}

.navbar .dropdown-menu {
    --bs-dropdown-link-active-bg: #54a8c7;
}

@media only screen and (min-width: 992px) {
    .navbar .navbar-nav .nav-item .nav-link {
        padding: 0 0.5em;
    }
    .navbar .navbar-nav .nav-item:not(:last-child) .nav-link {
        border-right: 1.8px solid #000000;
    }
}
/*
@media (max-width: 991.98px) {

    .header-placeholder {
        height: var(--header-height);
    }

}
*/

/*
@media (max-width: 864px) {

    .header-placeholder {
        height: 150px;
    }

}


@media (max-width: 767.98px) {

    .header-placeholder {
        height: var(--header-height);
    }

}
*/
/*.navbar .nav-link.active {
    font-weight: bold;
    background-color: #ffff00;
}*/
/* navbar end */


.center-inside {
    align-content: center;
}

.intro-area {
    background-color: var(--rhap-intro-color);
    border-radius: 1rem;
}

.intro-area > p:last-of-type {
    margin-bottom: 0.2rem;
}

img, video {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

video {
    background-color: black;
    object-fit: contain;
}

/* custom button */
.btn-custom {
    /*background-color: var(--rhap-main-color);*/
    background-color: var(--rhap-btn-color);
    color: white;
    border: 2px solid var(--rhap-btn-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom:disabled {
    background-color: var(--rhap-main-disabled-color);
    color: gray;
    border: 2px solid var(--rhap-main-disabled-border-color);
}

a.btn_01.disabled, a.btn_01.disabled:hover {
    cursor: default;
    background-color: #2E89CA;
}

/* Hover effect */
.btn-custom:not(:disabled):hover {
    background-color: var(--rhap-main-hover-color);
    color: white;
    transform: scale(1.05);
}

/* custom buttom end */

/* hero */

.hero-image {
    width: 60%;
}

.hero-text {
    width: 40%;
}

@media (max-width: 768px) { /* Small devices */
    .hero-image, .hero-text {
        width: 100%;
    }

    .hero-service {
        width: 100%;
        padding-bottom: 5rem;
    }

    .show-case-card {
        width: fit-content;
        margin: 2rem auto;
    }
}

/* hero end */

/* banner */
.banner {
    background-color: var(--rhap-main-color);
    color: var(--rhap-main-text);
    width: 100%;
    border-radius: 2rem;
    margin: 0 auto;
    position: relative;
    z-index: 30;
    font-size: 1.5rem;
}

.banner > * {
    margin: 0 auto;
    width: fit-content;
}

.banner.banner-half {
    width: 70%;
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
    min-width: fit-content;
}
/* banner end */

/* card */
.rhap-home .card {
    border: 2px solid transparent;
    margin-top: -1rem;
    padding-top: 0.7rem;
    text-decoration: none;
    background-color: var(--rhap-intro-color);
    display: flex;
    flex-direction: row;
    align-items: center;
}


.rhap-home:hover .card {
    border: 2px solid var(--rhap-main-color);
}

a.rhap-home {
    text-decoration: none;
}
a.rhap-home:hover > * {
    transform: scale(1.02);
}
/* card end */

/* markdown */
.markdown.modal-body h3, .markdown.modal-body strong{
    color: var(--rhap-main-color);
}

.markdown.modal-body p, .markdown.modal-body li{
    font-size: 1.2rem;
}

/* compliance markdown */
.compliance.markdown > h2 {
    font-weight: bold;
}

.compliance.markdown * {
    color: #333;
}

.compliance.markdown > ol {
    counter-reset: i;
    list-style: cjk-ideographic;
    list-style-position: inside;
    padding: 0;
}

.compliance.markdown:not(.tos) > ol > li > ol {
    list-style-position: outside;
}

.compliance.markdown.tos > ol > li::first-line,  .compliance.markdown.tos > ol > li::marker, .compliance.markdown.license > ol > li::first-line,  .compliance.markdown.license > ol > li::marker, .compliance.markdown.privacy > ol > li::first-line,  .compliance.markdown.privacy > ol > li::marker{
    font-weight: bold;
    font-size: 1.3rem;
}

.compliance.markdown > ol > li {
    padding-top: 1rem;
    counter-increment: i;
}

.compliance.markdown.tos > ol > li {
    text-indent: -1.5rem;
    padding-left: 1.5rem;
}

.compliance.markdown > ol > li::marker {
    content: counter(i, cjk-ideographic) "、 ";
}

.compliance.markdown > ol > li > ol {
    counter-reset: item;
}

.compliance.markdown > ol > li > ol > li {
    counter-increment: item;
}

.compliance.markdown > ol > li > ol > li::marker {
    content: counter(item) ". ";
    font-family: monospace;
}

.compliance.markdown > ol > li > ol > li > ol {
    counter-reset: subitem;
}

.compliance.markdown > ol > li > ol > li > ol > li {
    counter-increment: subitem;
}

.compliance.markdown > ol > li > ol > li > ol > li::marker {
    content: "(" counter(subitem, lower-alpha) ") ";
    font-family: monospace;
}

.compliance.markdown p, .compliance.markdown li {
    margin: 0.5rem;
}

.compliance.markdown a {
    color: #2E89CA;
}

.compliance.markdown a:hover {
    color: #b89769;
}


/* compliance markdown end */

/* markdown end */

/* about us */
ul.level1 > li::marker {
    content: '🔹 ';
}

ul.level2 > li::marker {
    content: '🔸 ';
}

.team {
    width: 30vw;
    min-width: 310px;
}

/* about us end */

/* table */
.table-out {
    border-radius: 0.375rem;
    border: solid 2px var(--rhap-border);
    padding: 1.5rem;
    background-color: var(--bs-body-bg);
}


/* table end */

/* custom list numbering */
ol {
    counter-reset: item;
    font-variant-numeric: tabular-nums;
}

.top-list > li {
    counter-reset: subitem;
    counter-increment: item;
}

.dot-numbering {
    counter-reset: subitem;
    padding-left: 0.3rem;
    list-style: none;
}

.dot-numbering > li {
    counter-increment: subitem;
}

.dot-numbering > li::marker {
    content: counter(item) "." counter(subitem) " ";
}

.dot-numbering > li  ol {
    counter-reset: inneritem;
}

.dot-numbering > li  ol > li {
    counter-increment: inneritem;
}

.dot-numbering > li  ol > li::marker {
    content: counter(inneritem) ". ";
}
/* custom list numbering end */

/* bullet list */
ul.bullet > li.target::marker {
    content: '🎯 ';
}

ul.bullet > li.bulb::marker {
    content: '💡 ';
}

ul.bullet > li.speaker::marker {
    content: '📢 ';
}

ul.bullet > li.cash::marker {
    content: '💰 ';
}

ul.bullet > li.link::marker {
    content: '🔗 ';
}

ul.bullet > li.check::marker {
    content: '✅ ';
}

ul.bullet > li.no-bullet::marker {
    content: ' ';
}

ul.bullet > li.cross::marker {
    content: '❌ ';
}

ul.bullet > li > ul > li {
    list-style: disc;
}

ul.list_title > li > span.title {
    font-weight: bold;
}

/* iframe */
iframe#doc_frame {
    width: 100%;
    height: 75vh;
}

iframe .navbar {
    display: none;
}
/* iframe end */

/* about us */

.about-us h3 {
    text-decoration: underline;
    font-weight: bold;
}

/* about us end */

/* home */

/* show case home */
.home-show-img {
    aspect-ratio: 800 / 400;
    overflow: hidden;
    position: relative;
}

.home-show-img img {
    width: 82%;
    max-width: 82%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* show case home end */

/* home end */

/* show case */
.show-case-thumb {
    aspect-ratio: 800 / 400;
    overflow: hidden;
    position: relative;
}

.home-show-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.show-case-cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

img.show-case-logo {
    margin: inherit;
    /*max-height: 15vh;*/
    width: 270px;
    object-fit: contain;
}

.show-case {
    border: 0.75px solid;
    border-color: #e0e0e0;
    border-radius: 5px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.show-case:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .show-case-cont {
        grid-template-columns: 1fr;
    }
}
/* show case end */

/* input */
#contact .form-control::-webkit-input-placeholder, #contact .form-control::placeholder {
    opacity: 0.6;
}

.input-group-text.contact-label {
    width: 90px;
    display:flex;
    justify-content: center;
}