@charset "UTF-8";
@import url("color.8ddc91e289e3.css");
@import url("course_block.ece586ef2d2e.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;
}

/* 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;
}

/* account_bind.html */
.section-account_bind-bind {
    margin: 10px 0px;
    height: 70vh;
}

.section-account_bind-bind .title-box {
    margin-bottom: 10px;
}

.section-account_bind-bind .content-box {
    background-color: var(--openedu-gray-light);
    border-radius: 10px;
    box-shadow: 3px 2px 5px #d0d3d9;
    padding: 30px 20px;
}

.section-account_bind-bind .content-box .form-control[readonly] {
    background-color: var(--gray-light);
    cursor: default;
}

.section-account_bind-bind .submit-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
}

.section-account_bind-bind .submit-box button {
    width: 25%;
}

/* social_login.html */

.section-social_login-login_option {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-social_login-login_option_description .option-description-toggle {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0px;
}

.section-social_login-login_option_description .option-description-toggle button {
    background-color: #d0d3d9;
    padding: 5px 10px;
    border-radius: 5px;
    border: 0px;
    font-size: 12px;
}

.section-social_login-login_option_description .option-description-toggle button:hover {
    background-color: #9a9a9a;
}

.section-social_login-login_option_description .option-description-content {
    display: none;
}

.section-social_login-login_option .option-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.section-social_login-login_option .option-container .option {
    width: 150px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    border: 1px gray solid;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: box-shadow 0.3s;
}

.section-social_login-login_option .option-container .option .image {
    height: 70%;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-social_login-login_option .option-container .option .image img {
    max-width: 100%;
    max-height: 100%;
}

.section-social_login-login_option .option-container .option:hover {
    box-shadow: 2px 2px 3px gray;
    color: inherit;
}

.section-social_login-login_option .option-container .option p {
    margin-bottom: 5px;
}

.section-social_login-login_option .option-container .option .tag {
    background-color: var(--openedu-blue);
    color: white;
    border-radius: 50px;
    padding: 5px 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

@media(min-width: 992px) {
    .section-social_login-login_option .option-container .option {
        width: 200px;
        aspect-ratio: 1 / 1;
    }
}

/* activate_account.html */

.section-activate_account-progress_bar #back-to-login-list {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 4px;
}

.section-activate_account-progress_bar .applying_progress {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.section-activate_account-progress_bar .applying_progress .progress-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.section-activate_account-progress_bar .applying_progress .progress-item .name {
    color: var(--gray-light);
}

.section-activate_account-progress_bar .applying_progress .progress-item::before,
.section-activate_account-progress_bar .applying_progress .progress-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--gray-light);
    width: 100%;
    top: 20px;
    z-index: 2;
}

.section-activate_account-progress_bar .applying_progress .progress-item::before {
    left: -50%;
}

.section-activate_account-progress_bar .applying_progress .progress-item::after {
    left: 50%;
}

.section-activate_account-progress_bar .applying_progress .progress-item .symbol {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    margin-bottom: 6px;
}

.section-activate_account-progress_bar .applying_progress .progress-item.pre-completed .symbol,
.section-activate_account-progress_bar .applying_progress .progress-item.cur-completed .symbol {
    color: var(--gray-light);
}

.section-activate_account-progress_bar .applying_progress .progress-item.cur-completed .symbol {
    background-color: var(--openedu-blue);
}

.section-activate_account-progress_bar .applying_progress .progress-item.pre-completed .symbol {
    background-color: var(--openedu-blue-light);
}

.section-activate_account-progress_bar .applying_progress .progress-item.active .name {
    color: black !important;
}

.section-activate_account-progress_bar .applying_progress .progress-item.active::before,
.section-activate_account-progress_bar .applying_progress .progress-item.pre-completed::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--openedu-blue-light);
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 3;
}

.section-activate_account-progress_bar .applying_progress .progress-item:first-child::before,
.section-activate_account-progress_bar .applying_progress .progress-item:last-child::after {
    content: none;
}

.section-activate_account-content .step-container {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    grid-auto-columns: 100%;
    min-height: 60vh;
}

.section-activate_account-content .step-container .step {
    display: grid;
    grid-template-columns: 1fr 3fr;
}


.section-activate_account-content .step-container .step .number-part {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--openedu-blue);
    color: white;
}

.section-activate_account-content .step-container .step .number-part p {
    font-size: 20px;
    font-weight: bold;
    margin: 0px;
}

.section-activate_account-content .step-container .step .content-part {
    justify-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-activate_account-content .step-container .step .content-part p {
    margin: 0px;
}

.section-activate_account-content .step-container .step .content-part p.text-red {
    color: red;
}

.section-activate_account-content .step-container .other-info {
    align-self: self-start;
    justify-self: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.section-activate_account-content .step-container .copy-to-clipboard:hover {
    box-shadow: 0px 0px 0px 2px var(--openedu-blue);
    border-radius: 5px;
}

.section-activate_account-content .step-container .tippy-copy {
    cursor: pointer;
}

.tippy-box[data-theme~='openedu-blue'] {
    background-color: var(--openedu-blue-dark);
    color: white;
}

.tippy-box[data-theme~='openedu-blue'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: var(--openedu-blue-dark);
}
.tippy-box[data-theme~='openedu-blue'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: var(--openedu-blue-dark);
}
.tippy-box[data-theme~='openedu-blue'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: var(--openedu-blue-dark);
}
.tippy-box[data-theme~='openedu-blue'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: var(--openedu-blue-dark);
}

.section-activate_account-content {
  min-height: 65vh;
}

.section-activate_account-content .step-container .other-info .email-not-copy,
.section-activate_account-content .step-container .other-info .email-copied {
    padding: 3px 6px;
    border-radius: 5px;
}

.section-activate_account-content .step-container .other-info .email-not-copy {
    background-color: var(--openedu-blue);
    color: white;
}

.section-activate_account-content .step-container .other-info .email-copied {
    background-color: var(--gray-light);
    color: black;
}

.section-activate_account-content .step-container .other-info .copy-icon {
    padding-left: 10px;
}

.section-activate_account-content .step-container .next {
    align-self: center;
    justify-self: center;
    margin-bottom: 10px;
}

.section-activate_account-content .step-container .next a {
    color: white;
}

.section-activate_account-content .step-container .link {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-activate_account-content .step-container .link .link-btn {
    background-color: var(--openedu-blue);
    color: white;
    padding: 5px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.section-activate_account-content .step-container .link .openedu-register-not-check {
    opacity: 0.5;
    pointer-events: none;
}

.section-activate_account-content .step-container .link .link-btn .link-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 5px;
    width: auto;
    aspect-ratio: 1 / 1;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    margin: auto 3px;
}

.section-activate_account-content .step-container .link .link-img .nid-logo {
    height: 15px;
}

.section-activate_account-content .step-container .link .link-img .openedu-logo {
    height: 21px;
}

.section-activate_account-content .step-container .link .link-btn span {
    justify-self: center;
    align-self: center;
}

.section-activate_account-content .step-container .link .link-btn i {
    padding: 0px 5px;
}


@media (min-width: 576px) {
    .section-activate_account-content .step-container {
        grid-auto-columns: 70%;
    }
}

@media (min-width: 768px) {
    .section-activate_account-content .step-container {
        grid-auto-columns: 60%;
    }
}

@media (min-width: 992px) {
    .section-activate_account-content .step-container {
        grid-auto-columns: 50%;
    }
}

@media (min-width: 1200px) {
    .section-activate_account-content .step-container {
        grid-auto-columns: 40%;
    }
}
/* --- 浮動泡泡按鈕（右下） --- */
#chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #F94D1C;           /* 可改品牌色 */
  color: #fff;
  font-size: 24px;               /* 內文字/圖示大小 */
  line-height: 56px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  cursor: pointer;
  z-index: 2147483647;           /* 確保在最上層 */
}
#chat-fab:focus-visible { outline: 3px solid #93c5fd; }

/* --- 聊天視窗容器（預設隱藏）--- */
#chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;                  /* 與泡泡按鈕間距 */
  width: 380px;
  height: 560px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 160px);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
  z-index: 2147483646;
  display: none;                 /* 由 JS 控制顯示/隱藏 */
}

/* --- 上方自訂標題列（可選）--- */
#chat-header {
  height: 44px;
  background: #1f2937;          /* 深色標題列 */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 14px;
}
#chat-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* 內嵌 Copilot Studio 的 iframe 填滿容器 */
#chat-iframe {
  width: 100%;
  height: calc(100% - 44px);    /* 扣掉標題列高度 */
  border: 0;
}

/* --- 行動裝置調整 --- */
@media (max-width: 480px) {
  #chat-panel {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: 60vh;
    border-radius: 12px;
  }
  #chat-fab {
    right: 12px;
    bottom: 12px;
  }
}