﻿body{
  background-color: #FFFDFC;
}

/* 課程介紹頁 */
.background-container{
    max-height: 420px;
    width: 100%;
    overflow: hidden;
    z-index: -10000;
  }

  .background-image{
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
  }

  @media (max-width: 1024px) {
    .background-container{
      max-height: 320px;
    }
  }

  @media (max-width: 768px) {
    .background-container{
      max-height: 280px;
    }
  }

  .blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.3);
  }

  .checkout-sticky{
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .max-width-page{
    max-width: 1080px;
  }

  .card > a {
    text-decoration: none;
    color: black;
  }

  .card-text.text-description{
    color: #ABABAB;
    font-weight: 400;
  }

  .description{
    font-weight: 500;
  }

  .description h2,
  .to-student-message h2.title {
      color: #007AFF;
      font-weight: 700;
      font-size: 24px;
      position: relative;
      padding-left: 10px;
  }

  .description h2::before,
  .to-student-message h2.title::before{
    position: absolute;
    content: "";
    top: 2px;
    left: 0px;
    width: 5px;
    height: 24px;
    background-color: #FF7B31;
  }

  .description img {
    width: 100%;
  }
  .description code {
      font-size: 1rem;
  }
  .description table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      font-size: 16px;
      border: none;
      background: transparent;
  }

  .description table thead {
      border-bottom: 2px solid #FF7B31;
  }

  .description table th {
      padding: 15px 20px;
      text-align: left;
      font-weight: 500;
      color: #333;
      letter-spacing: 0.5px;
  }

  .description table tbody tr {
      border-bottom: 1px solid #eaeaea;
  }

  .description table tbody tr:last-child {
      border-bottom: none;
  }

  .description table td {
      padding: 15px 20px;
      color: #444;
  }

  .description table tbody tr:nth-child(odd) {
      background-color: #fbfbfb;
  }

  .description table tbody tr:hover {
      background-color: #f5f5f5;
  }
  .description blockquote {
      background-color: #f0f8ff;
      border-left: 4px solid #007AFF;
      margin: 15px 0;
      padding: 12px 15px;
      border-radius: 4px;
      font-weight: 500;
      color: #333;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      position: relative;
  }

  .description blockquote::before {
      content: "";
      position: absolute;
      top: 8px;
      left: -12px;
      font-size: 24px;
      color: #FF7B31;
      background-color: #f0f8ff;
      line-height: 0.6;
      font-weight: bold;
  }

  .description blockquote p {
      margin-bottom: 0;
  }

@media (max-width: 768px) {
    .description table {
        font-size: 14px;
    }

    .description table th,
    .description table td {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .description .table-container {
        overflow-x: auto;
        max-width: 100%;
    }
}
  .course-purchase-banner{
    z-index: 1000;
    bottom: 0px;
    width: 100vw;
    position: fixed;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #F0F8FF;
  }

  .color-box{
    position: relative;
    padding-left: 8px;
  }

  .color-box::before{
    position: absolute;
    content: "";
    top: 3px;
    left: 0px;
    width: 3px;
    height: 80%;
    background-color: #FF7B31;
  }

  .hidden {
    display: none !important;
  }

  .background-none{
    background: none;
  }

  .form-space > div {
    --tw-space-x-reverse: 0;
    margin-right: 16px;
  }

/* 必填欄位的紅色*字符號 */
.required-field::after {
    content: ' *';
    color: red;
}

/* 講義下載按鈕 */
.download-btn{
  /* Rectangle 56 */
  display: flex;
  /* 淡藍 */
  color: #fff;
  background: #349DFF;
  border-radius: 6px;
  cursor: pointer;
}

.download-btn-text{
  text-align: center;
  padding: 8px;
  flex-grow: 1;
  margin-bottom: 0px;
  font-size: 14px;
}

.download-btn-divider{
  border-right: 1px solid #3457FF;
}


.download-btn-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

/* 課程頁：應用程式清單 */
.webapp-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #EEF4FF;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  --webapp-item-emoji: "🧩";
}

.webapp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF7B31 0%, #FFD1B8 35%, #349DFF 100%);
}

.webapp-card .card-body {
  padding: 14px;
}

.webapp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #EEF4FF;
  background: linear-gradient(90deg, rgba(255, 123, 49, 0.10) 0%, rgba(52, 157, 255, 0.10) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.webapp-card-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.webapp-card-head__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF5EF;
  border: 1px solid #FFE2D1;
  color: #FF7B31;
  flex: 0 0 auto;
}

.webapp-card-head__text {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #2E2E2E;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webapp-card-head__badge {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #349DFF;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(207, 229, 255, 0.95);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}

.webapp-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.webapp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #EEF4FF;
  background: #FFFFFF;
  color: #2E2E2E;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.webapp-link::before {
  content: var(--webapp-item-emoji);
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.webapp-link:hover {
  border-color: #CFE5FF;
  color: #2E2E2E;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(52, 157, 255, 0.14);
}

.webapp-link:focus-visible {
  outline: 3px solid rgba(52, 157, 255, 0.35);
  outline-offset: 2px;
}

.webapp-item__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webapp-item__btn {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.875rem;
  color: #FFFFFF;
  background: #349DFF;
  border-radius: 999px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
}

.webapp-list--modal .webapp-link {
  box-shadow: none;
  background: #F7FAFF;
}

.webapp-list--modal .webapp-link:hover {
  box-shadow: none;
  transform: none;
}

@media (max-width: 390px) {
  .webapp-item__btn {
    padding: 8px 10px;
  }

  .webapp-item__btn-text {
    display: none;
  }
}

/* 後臺登入眼睛樣式 */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 40px; /* 確保眼睛符號不會覆蓋文字 */
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa; /* 設置眼睛符號顏色 */
}

.password-container .toggle-password:hover {
    color: #000; /* 設置眼睛符號懸停顏色 */
}

.password-container .validation-message {
    position: absolute;
    bottom: -20px; /* 可以根據需要調整 */
    left: 0;
    width: 100%;
}

.sidebar{
  background-color: #FFFFFF;
  position: fixed;
  z-index: 10009;
  top: 0;
  right: 0;
  width: 600px;
  height: 100vh;
  /* height: calc(100% - 71px);  */
  transition: 0.5s all;
}

.sidebar_button{
  position: relative;
  left: -48px;
  top: 52px;
  padding: 16px 12px;
  height: fit-content;
  text-orientation: upright;
  writing-mode: vertical-lr;
  border: 0px;
  background-color: #349DFF;
  border-radius: 12px 0px 0px 12px;
  color: #FFFFFF;
  letter-spacing: 3px;
}

/* 收合側邊欄 */
.sidebar_hidden{
  width: 0px;
  transition: 0.5s all;
}

/* 預設播放頁寬度 */
.player-container video {
    border: 1px solid gray;
}
.player-container{
  padding-top: 22px;
  transition: 0.5s all;

  @media (max-width: 1920px) {
    max-width: calc(100% - 200px);
  }

  @media (max-width: 1768px) {
    max-width: calc(100% - 250px);
  }

  @media (max-width: 1680px) {
    max-width: calc(100% - 300px);
  }

  @media (max-width: 1600px) {
    max-width: calc(100% - 350px);
  }

  @media (max-width: 1440px) {
    max-width: calc(100% - 400px);
  }

  /* 寬度991以下 */
  @media (max-width: 991px) {
    max-width: 100%;
  }
}

/* 展開播放頁寬度 */
.player-container_full{
  transition: 0.5s all;
  max-width: 100%;
  padding-top: 0px;
}

.cus-accordion {
  width: 100%;
  overflow: hidden;
}

.cus-accordion-checkbox {
  display: none;
}

.cus-accordion-label {
  display: block;
  padding: 15px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  padding-left: 36px;
}

.cus-accordion-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #349DFF;
}

.cus-accordion-label::after {
  content: url('/img/customizer/arrow-bottom.svg'); /* Initial arrow icon pointing down */
  position: absolute;
  right: 15px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.cus-accordion-checkbox:checked + .cus-accordion-label::after {
  content: url('/img/customizer/arrow-top.svg');
}

.cus-accordion-content {
  /* display: none; */
  height: 0px;
  transition: 0.5s all;
}

.cus-accordion-checkbox:checked + .cus-accordion-label + .cus-accordion-content {
  /* display: block; */
  height: fit-content;
  transition: 0.5s all;
}

/* Optional: Add a transition for smooth opening and closing */
.cus-accordion-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.cus-accordion-content a {
    color: #000;
}

.topic-block {
    background: #fff5ef;
    border-radius: 10px;
}

.topic-accordion-item {
    border-bottom: 1px solid var(--text-gray);
    outline: none;
    position: relative;
}

.topic-accordion-item:last-child {
    border-bottom: none;
}

.topic-btn-accordion {
    width: 100%;
    height: 64px;
    color: black;
    font-weight: 700;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    border: none;
}

.topic-btn-accordion::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    padding: 0 10px;
    content: "\F111";
    color: #007AFF;
}

.topic-btn-accordion.has-accordion::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\F078";
    color: #007AFF;
    position: absolute;
    right: 15px;
}

.topic-btn-accordion.has-accordion:not(.collapsed)::after {
    content: "\F077";
}

.accordion-body:not(.purchase)::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    padding: 0 10px;
    content: "\F111";
    color: #ff7b31;
}

.accordion-body.purchase .learn a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .8rem;
    padding: 0 10px;
    content: "\f04b";
    color: #000;
}

.accordion-body.purchase a {
    color: #000;
}

.accordion-body .percent {
  font-size: .8rem;
}
.accordion-body .duration {
  font-size: .9rem;
}

/* 修改工具提示的外觀 */
.tooltip{
  opacity: 0; /* 不透明度 */
}

.tooltip-inner {
  background-color: white !important;
  opacity: 1; /* 不透明度 */
  padding: 12px 8px; /* 增加內部的 padding */
  border-radius: 6px; /* 圓角效果 */
  box-shadow: 0px 8px 18px 8px #4B465C1A;
}

.tooltip-inner > * {
  background-color: white;
  opacity: 1; /* 不透明度 */
}

.tooltip .tooltip-arrow::before {
  border-top-color: white;
}

.profile-pic-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
ol.inner {
    counter-reset: customCounter;
}

ol.inner li {
    list-style-type: none;
    counter-increment: customCounter;
}

ol.inner li:before {
    content: "(" counter(customCounter) ")";
    margin-right: 5px;
}

.referral-section {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    background-color: #f9f9f9;
}

.topic-video-duration
{
    padding-right: 35px;
}

.to-student-message-block {
    background-color: #fcfaf0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
/* 給學員的話 區塊內圖片自適應 */
.to-student-message-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

.info-container {
    position: relative;
    display: inline-block;
}

.info-icon {
    /* Font Awesome 圖示的樣式 */
    font-size: 0.8em; /* 調整圖示大小，相對於父元素的 16px，約 12.8px */
    /* Font Awesome 圖示本身會響應 font-size */
    color: #007bff; /* 圖示顏色 */
    cursor: help;
    vertical-align: super; /* 定位在文字右上角 */
    margin-left: 3px; /* 與前面文字的間距 */
    /* user-select: none; Font Awesome 圖示通常不需要這個 */
    /* 如果希望圖示完全不可選取，可以加上 */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    /* 確保點擊區域足夠，如果圖示太小 */
    /* padding: 2px; */ /* 增加點擊區域，但可能會影響視覺 */
}

.info-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: left;
    font-size: 0.875rem; /* 14px */
    border-radius: 4px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1;
    bottom: calc(100% + 8px); /* 在圖示上方，並增加一點間距 */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .info-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

.info-container:hover .info-tooltip,
.info-icon:focus + .info-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Focus 樣式給 Font Awesome 圖示 */
.info-icon[tabindex="0"] {
    outline: none; /* 移除預設 outline */
}

    .info-icon[tabindex="0"]:focus {
        /* Font Awesome 圖示沒有邊框，所以用 box-shadow 來表示 focus */
        /* 可以調整顏色或使用 filter 來改變圖示顏色 */
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
        border-radius: 3px; /* 讓陰影更圓滑一點，配合圖示 */
    }


.course-info-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.course-title-container {
    padding-bottom: 10px;
}

.course-divider {
    height: 20px;
}

    .course-divider .vr {
        height: 100%;
        opacity: 0.6;
    }

.nav-button {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

    .nav-button:hover {
        background-color: #e07b00;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        color: white;
    }

    .nav-button .icon {
        width: 18px;
        height: 18px;
        fill: currentColor;
        flex-shrink: 0;
    }

.prev-button .icon {
    margin-right: 8px;
}

.next-button .icon {
    margin-left: 8px;
}

.prev-button, .next-button {
    height: 38px;
}

.course-container .card-text.text-description {
    color: #ABABAB;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em; /* 大約三行文字的高度 */
    text-overflow: ellipsis;
}

.course-container .card {
    display: flex;
    flex-direction: column;
}

    .course-container .card > a {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.course-container .card-body {
    flex: 1 1 auto;
}

.countdown-banner {
    background-color: #fff0f0;
    border-left: 4px solid #ff5252;
    border-radius: 4px;
    padding: 6px 12px;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.1);
}

.countdown-text {
    font-size: 0.95rem;
    color: #e83e3e;
}

.countdown-time {
    font-weight: 700;
    color: #ff1a1a;
}

/* 課程期限提醒標籤（放在左上角） */
.course-expire-tag {
    position: absolute;
    padding: 8px;
    background-color: #349DFF;
    color: #FFFFFF;
    opacity: 0.9;
    font-weight: 700;
    z-index: 2;
}

/* 課程狀態標籤（放在右上角） */
.course-status-tag {
    position: absolute;
    right: 0px;
    padding: 8px;
    font-weight: 700;
    z-index: 2;
}

/* 已過期課程標籤樣式 */
.expired-tag {
    background-color: rgba(255, 205, 210, 0.95); /* 淡紅底色 */
    color: #c62828; /* 深紅色文字 */
}

/* 即將到期課程標籤樣式 */
.expiring-tag {
    background-color: rgba(255, 245, 157, 0.95); /* 黃底色 */
    color: #f57f17; /* 深黃文字 */
}

/* 直播課程標籤樣式 */
.live-broadcast-tag {
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 8px 12px;
    background-color: rgba(220, 0, 78, 0.85); /* 粉紅色底色 */
    color: #FFFFFF; /* 白色文字 */
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    border-radius: 0 0 0 8px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.15);
}

.live-broadcast-tag::before {
    content: "●";
    color: #FFFFFF;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
    font-size: 16px;
    line-height: 1;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

div.description li p {
    margin-top: 1rem;
}

/* 敏感資料模糊效果 */
.sensitive-blur {
    filter: blur(5px);
    transition: filter 0.3s ease, outline 0.2s ease;
    cursor: pointer;
    user-select: none;
    padding: 0 2px;
    border-radius: 3px;
}

.sensitive-blur:hover {
    filter: blur(0);
    user-select: auto;
    background-color: rgba(40, 167, 69, 0.1);
}
