@charset "UTF-8";
@import url("color.8be2e7899aff.css");
@import url("course_block.ba28e99fb0f1.css");

/* base.html */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "微軟正黑體";
}

img {
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

body {
    background-color: white;
}

.sr-only {
    position: absolute;
    width: 1px;
    padding: 1px;
    overflow: hidden;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.navbar-custom {
    background-color: #f5f5f5;
}

footer.main-footer {
    background: var(--openedu-gray-light);
    padding-top: 30px;
}

footer.main-footer .footer-box h3 {
    color: var(--openedu-blue);
    font-weight: 900;
    font-size: 24px;
}

footer.main-footer .footer-box ul {
    list-style-type: none;
    padding-left: 0;
}

footer.main-footer .footer-box ul a {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--dark-gray);
}

footer.main-footer .footer-box ul a:hover {
    color: var(--openedu-blue);
}

footer.main-footer .footer-box .social-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0px -5px;
}

footer.main-footer .footer-box .social-links .link-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--openedu-blue);
    transition: all 0.2s linear;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px 5px 5px;
}

footer.main-footer .footer-box .social-links .link-item i {
    color: var(--openedu-blue);
}

footer.main-footer .footer-box .social-links .link-item:hover {
    background-color: var(--openedu-blue);
    border: var(--openedu-blue);
}

footer.main-footer .footer-box .social-links .link-item:hover i {
    color: white;
}

footer.main-footer .footer-box .openedx-logo .logo img {
    width: 100px;
    height: auto;
}

footer.main-footer .copyright {
    padding: 20px 0px;
    display: flex;
    justify-content: center;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--dark-gray);
}

@media screen and (max-width: 768px) {
    footer.main-footer .footer-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

#noty_layout__topRight {
    top: 62px;
}

/* index.html */

.section-index-banner,
.section-index-category,
.section-index-course-group,
.section-index-special-area {
    padding: 40px 0px;
}

.section-index-course-group h2,
.section-index-special-area h2 {
    margin-bottom: 10px;
}

.section-index-course-group h2 i,
.section-index-special-area h2 i {
    color: lightgray;
    font-size: 15px;
}

.section-index-course-group .course-group,
.section-index-special-area .course-group {
    margin-bottom: 30px;
    width: 100%;
}

.section-index-banner {
    padding: 0px;
}

.section-index-banner .banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.section-index-banner .slick-prev {
    left: 2%;
    z-index: 1;
    text-shadow: 0px 0px 5px #9a9a9a;
}

.section-index-banner .slick-next {
    right: 2%;
    text-shadow: 0px 0px 5px #9a9a9a;
}

.section-index-banner .slick-prev,
.section-index-banner .slick-next {
    width: 45px !important;
    height: 45px !important;
    padding: 2px;
}

.section-index-banner .slick-prev:before,
.section-index-banner .slick-next:before {
    font-size: 40px;
}

.section-index-category {
    padding: 0;
}

.section-index-category ul.category-btns {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    line-height: 18px;
    padding-left: 0;
}

.section-index-category ul.category-btns li {
    width: 20%;
    padding: 5px;
    display: flex;
}

@media screen and (max-width: 768px) {
    .section-index-category ul.category-btns li {
        width: 50%;
    }
}

.section-index-category ul.category-btns li a {
    width: 100%;
    text-align: center;
    padding: 10px 30px;
    border: 2px solid var(--openedu-blue);
    color: var(--openedu-blue);
    border-radius: 30px;
    line-height: 18px;
    letter-spacing: -1px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-index-category ul.category-btns li a:hover {
    background-color: var(--openedu-blue);
    color: white;
}

.section-index-course-group .container,
.section-index-special-area .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-index-course-group:nth-of-type(odd),
.section-index-special-area:nth-of-type(odd) {
    background-color: var(--openedu-gray-light);
}

/* contact.html */

.section-contact-contact .title {
    margin-top: 30px;
    margin-bottom: 10px;
}

.section-contact-contact .info-content-group {
    margin: 1% 0;
}

.section-contact-contact .info-content-title {
    margin-top: 20px;
}

.section-contact-contact .info-content .title {
    font-weight: bold;
    margin-top: 20px;
}

.section-contact-contact .info-content .content {
    color: gray;
    margin-bottom: 40px;
}

.section-contact-contact .info-content-group .business-hours {
    margin-top: 30px;
}

/* privacy.html */

.section-privacy-privacy .title {
    margin-top: 30px;
    margin-bottom: 10px;
}

.section-privacy-privacy .info-content {
    margin: 1% 0;
}

.section-privacy-privacy .last-change {
    margin: 30px 0px;
}

/* terms_of_service.html */

.section-terms_of_service-term .title {
    margin-top: 30px;
    margin-bottom: 10px;
}

.section-terms_of_service-term .info-content {
    margin: 1% 0;
}

.section-terms_of_service-term .last-change {
    margin: 30px 0px;
}

/* Dify chatbot 20251211 */
#dify-chatbot-bubble-button {
	background-color: #bc1dbf !important;
}

#dify-chatbot-bubble-window {
	width: 24rem !important;
	height: 40rem !important;
    position: fixed !important;
    z-index: 999999 !important;
}

/* 在按鈕右側顯示「幫助」 */
#dify-chatbot-bubble-button::after {
    content: "幫助";
    position: absolute;
    right: 100%;          /* 放在按鈕左邊（想放右邊改成 left: 100%） */
    margin-right: 8px;    /* 與按鈕的間距；若放右側改用 margin-left */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 100, 242, 0.1);
    color: #bc1dbf;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    pointer-events: none; /* 避免遮到按鈕的點擊 */
}