@charset "UTF-8";
/* nstyle_base.css — 新版頁面「共用底層」（從 nstyle.css 抽出、原檔不動）
   內容：字型 @import、:root 字級變數、*{font-family}、body、section 等基本底層
   ＋ .section__*（區塊標題）＋ .reveal（滾動動畫）＋ .btn--*（按鈕）。
   非 index 專屬。index 專屬元件（hero/banner/course/product/info）仍留在 nstyle.css。
   用法：非 index 的新版頁改載本檔即可；index 仍載完整 nstyle.css。 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");
:root {
  --font-display: 56px;
  --font-title-xl: 48px;
  --font-title-lg: 40px;
  --font-title-md: 32px;
  --font-title-sm: 24px;
  --font-body-lg: 20px;
  --font-body-md: 16px;
  --font-body-sm: 14px;
  --font-caption: 12px;
}

@media (max-width: 768px) {
  :root {
    --font-display: 40px;
    --font-title-xl: 32px;
    --font-title-lg: 28px;
    --font-title-md: 24px;
    --font-title-sm: 20px;
    --font-body-lg: 18px;
    --font-body-md: 16px;
    --font-body-sm: 14px;
    --font-caption: 12px;
  }
}
* {
  font-family: "Noto Sans TC", sans-serif;
}

body {
  background: linear-gradient(to bottom, white 20%, #e4eafb 100%);
}
body a {
  text-decoration: none;
}

section {
  padding: 80px 0;
}
@media (max-width: 991.98px) {
  section {
    padding: 32px 0;
  }
}

.section__head {
  text-align: center;
  margin-bottom: 36px;
}

.section__title {
  font-size: var(--font-title-lg);
  line-height: 1.25;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  color: #172659;
  font-weight: 900;
  letter-spacing: 0.1rem;
}

.section__title-deco {
  font-size: var(--font-title-sm);
  line-height: 1.25;
  font-weight: 700;
  font-weight: 900;
  background: linear-gradient(to bottom, #1d55f3, #053ee4);
  background: -webkit-linear-gradient(to bottom, #1d55f3, #053ee4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section__subtitle {
  font-size: var(--font-body-lg);
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
  color: #707b98;
  font-weight: 400;
}

.btn--primary-gradient {
  color: white;
  border-color: #053ee4;
  background: linear-gradient(180deg, #1b78f1 0%, #004cc3 100%);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2) inset;
}

.btn--accent-gradient {
  color: white;
  background: linear-gradient(112deg, #7649f3 14.85%, #2f3cde 100%);
  border-color: #2f3cde;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2) inset;
}

.btn--primary-fill {
  border-color: #d3deff !important;
  background: linear-gradient(180deg, #fff 0%, #ddebff 75%, #fff 100%);
  box-shadow: 0 4px 4px 0 rgba(73, 113, 243, 0.2);
  color: #1d4ec9 !important;
}

.btn--accent-fill {
  border-color: #d7d2ff !important;
  background: linear-gradient(180deg, #fff 0%, #ece5ff 80%, #fff 100%);
  box-shadow: 0 4px 4px 0 rgba(118, 73, 243, 0.2);
  color: #4829c8 !important;
}

.btn--primary-gradient,
.btn--accent-gradient,
.btn--primary-fill,
.btn--accent-fill {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn--primary-gradient:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 10px rgba(5, 62, 228, 0.4), inset 0 4px 4px rgba(0, 0, 0, 0.2);
}
.btn--primary-gradient:active, .btn--primary-gradient:focus-visible {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow: 0 2px 6px rgba(5, 62, 228, 0.3), inset 0 5px 8px rgba(0, 0, 0, 0.35);
  outline: none;
}

.btn--accent-gradient:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 10px rgba(47, 60, 222, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.btn--accent-gradient:active, .btn--accent-gradient:focus-visible {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow: 0 2px 6px rgba(47, 60, 222, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.35);
  outline: none;
}

.btn--primary-fill:hover {
  box-shadow: 0 4px 10px rgba(73, 113, 243, 0.28);
}
.btn--primary-fill:active, .btn--primary-fill:focus-visible {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(73, 113, 243, 0.35);
  outline: none;
}

.btn--accent-fill:hover {
  box-shadow: 0 4px 10px rgba(118, 73, 243, 0.28);
}
.btn--accent-fill:active, .btn--accent-fill:focus-visible {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(118, 73, 243, 0.35);
  outline: none;
}

.btn--lg {
  font-size: var(--font-body-lg);
  line-height: 1.6;
  font-weight: 600;
  text-wrap: nowrap;
  border-radius: 50px;
  border: 2px solid transparent;
  padding: 0px 32px;
  height: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.1rem;
}

.btn--md {
  font-size: var(--font-body-md);
  line-height: 1.6;
  font-weight: 400;
  text-wrap: nowrap;
  border-radius: 50px;
  border: 1.5px solid transparent;
  padding: 12px 24px;
  height: 42px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.1rem;
}/*# sourceMappingURL=style.css.map */

/* ============================================================
   此區為 .nstyle_theme 專屬設定（新版內頁「設計系統」共用層）
   來源：custom-rounded-theme.css（原 about/product_intro/junior_cap/senior_ast/senior_gsat 五頁共用），
         撈出設計系統層（HTML 標籤 + 共用工具 + 共用元件），並把類別名 .rounded_theme → .nstyle_theme。
   作用域：僅對含 .nstyle_theme 的內頁 DOM 生效；舊版頁（BS3 body、無 .nstyle_theme）完全不受影響。
   為何收進 base：這些是「任何 .nstyle_theme 內頁」都會共用的底層，非某一頁專屬，故與其它共用底層放一起。
   不含：頁面「專屬」規則（.nstyle_theme.page_about …）不在此，留在各頁自己的 CSS（例：css/skin/nstyle_about.css）。

   分類索引（下方每區塊開頭都有對應說明）：
     基礎  ── 1. 底層/wrapper   2. HTML 標籤   3. 文字/色彩工具   4. 間距 token（其餘版面/flex 已改用 BS5）
     效果  ── 5. 效果/裝飾
     元件  ── 6. pill/小按鈕  7. 表格  8. 分頁籤 tab  9. 標題  10. 回頂鈕/圓形圖示
             11. 目錄 contents  12. 主要按鈕  13. 諮詢/對話框
   ============================================================ */
/* ───────────────────────────────────────────────
   1. 底層 / wrapper
   .nstyle_theme 容器本身：內頁全域字級、字距，
   以及與固定 header 的上方安全間距（含手機 RWD）。
   ─────────────────────────────────────────────── */
.nstyle_theme {
  /* margin-top: calc(67px); */
}
@media (max-width: 320px) {
  .nstyle_theme {
    letter-spacing: 0em;
  }
}
@media (max-width: 767.98px) {
  /* .nstyle_theme {
    margin-top: calc(3px);
  } */
}

/* ───────────────────────────────────────────────
   2. HTML 標籤覆蓋
   對 .nstyle_theme 內的原生標籤統一排版：圖片自適應、
   清除子元素外距、h1~h3 標題、p / a / ul。
   ─────────────────────────────────────────────── */
.nstyle_theme img {
  max-width: 100%;
  height: auto;
}
/* ▸ 清除所有子元素上下外距（排版從 0 起算） */
.nstyle_theme * {
  margin-top: 0;
  margin-bottom: 0;
}
/* ▸ 主標題 h1：直向置中、藍色、下方大留白 */
.nstyle_theme h1 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-bottom: 6.5rem;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  line-height: 175%;
  color: #2877D3;
}
/* ▸ 次標題 h2 / h3 */
.nstyle_theme h2, .nstyle_theme h3 {
  font-weight: bold;
  line-height: 150%;
}
.nstyle_theme h2, .nstyle_theme .h2 {
  font-size: 2rem;
  line-height: 150%;
  color: #2877D3;
}
.nstyle_theme h3, .nstyle_theme .h3 {
  font-size: 1.5rem;
  line-height: 150%;
}
/* ▸ 段落 p / 連結 a / 清單 ul 基本樣式 */
.nstyle_theme p {
  margin-bottom: 0.5rem;
}
.nstyle_theme a {
  font-weight: bold;
  color: #3C3D3E;
  text-decoration: underline;
}
.nstyle_theme a:hover {
  color: #2877D3;
}
.nstyle_theme ul {
  padding: 0;
  list-style: none;
}
/* ▸ Material Icons 尺寸工具（md-18 / md-28 / md-48） */
.nstyle_theme [class^=material-icons].md-18 {
  font-size: 18px;
}
.nstyle_theme [class^=material-icons].md-28 {
  font-size: 28px;
}
.nstyle_theme [class^=material-icons].md-48 {
  font-size: 48px;
}
/* ▸ 桌機 / 手機 顯示切換（web_inline / mobile_inline） */
.nstyle_theme .web_inline {
  display: inline;
}
@media (max-width: 576px) {
  .nstyle_theme .web_inline {
    display: block;
  }
}
.nstyle_theme .mobile_inline {
  display: block;
}
@media (max-width: 576px) {
  .nstyle_theme .mobile_inline {
    display: inline;
  }
}

/* ───────────────────────────────────────────────
   3. 文字 / 色彩 工具
   可掛在任意元素的文字外觀 class：字體、粗細、對齊、
   大小、換行，以及主題色的文字 / 底色 / 外框。
   ─────────────────────────────────────────────── */
.nstyle_theme .font_family_accent {
  font-family: "Alegreya SC", serif !important;
  font-style: italic;
  font-weight: 500;
  line-height: 100%;
}
.nstyle_theme .fw_bold {
  font-weight: bold;
}
.nstyle_theme .text_left {
  text-align: left;
}
.nstyle_theme table td.text_left {
  padding-left: 1.5rem;
}
.nstyle_theme .text_large {
  font-size: 125%;
}
.nstyle_theme .text_small {
  font-size: 85%;
}
.nstyle_theme .text_nowrap {
  white-space: nowrap;
}
/* ▸ 五色系主題色：文字 text_ / 底色 bg_ / 外框 outline_ / 邊線 border_（green / orange / red / blue / purple） */
.nstyle_theme .text_t_green {
  color: rgba(70, 186, 199, 0.8);
}
.nstyle_theme .text_t_green_full {
  color: #46bac7;
}
.nstyle_theme .bg_t_green {
  color: #fff;
  background-color: rgba(70, 186, 199, 0.8);
}
.nstyle_theme .outline_t_green {
  color: #46bac7;
  border: 1px solid #46bac7;
}
.nstyle_theme .border_t_green {
  border-style: solid;
  border-color: #46BAC7;
  border-width: 0px;
}
.nstyle_theme .text_t_orange {
  color: rgba(249, 164, 74, 0.8);
}
.nstyle_theme .text_t_orange_full {
  color: #f9a44a;
}
.nstyle_theme .bg_t_orange {
  color: #fff;
  background-color: rgba(249, 164, 74, 0.8);
}
.nstyle_theme .outline_t_orange {
  color: #f9a44a;
  border: 1px solid #f9a44a;
}
.nstyle_theme .border_t_orange {
  border-style: solid;
  border-color: #F9A44A;
  border-width: 0px;
}
.nstyle_theme .text_t_red {
  color: rgba(243, 126, 95, 0.8);
}
.nstyle_theme .text_t_red_full {
  color: #f37e5f;
}
.nstyle_theme .bg_t_red {
  color: #fff;
  background-color: rgba(243, 126, 95, 0.8);
}
.nstyle_theme .outline_t_red {
  color: #f37e5f;
  border: 1px solid #f37e5f;
}
.nstyle_theme .border_t_red {
  border-style: solid;
  border-color: #F37E5F;
  border-width: 0px;
}
.nstyle_theme .text_t_blue {
  color: rgba(72, 165, 217, 0.8);
}
.nstyle_theme .text_t_blue_full {
  color: #48a5d9;
}
.nstyle_theme .bg_t_blue {
  color: #fff;
  background-color: rgba(72, 165, 217, 0.8);
}
.nstyle_theme .outline_t_blue {
  color: #48a5d9;
  border: 1px solid #48a5d9;
}
.nstyle_theme .border_t_blue {
  border-style: solid;
  border-color: #48A5D9;
  border-width: 0px;
}
.nstyle_theme .text_t_purple {
  color: rgba(141, 133, 172, 0.8);
}
.nstyle_theme .text_t_purple_full {
  color: #8d85ac;
}
.nstyle_theme .bg_t_purple {
  color: #fff;
  background-color: rgba(141, 133, 172, 0.8);
}
.nstyle_theme .outline_t_purple {
  color: #8d85ac;
  border: 1px solid #8d85ac;
}
.nstyle_theme .border_t_purple {
  border-style: solid;
  border-color: #8D85AC;
  border-width: 0px;
}
/* ▸ 灰階與品牌色：底色 bg_ / 文字 text_（light / dark / primary / accent / grey） */
.nstyle_theme .bg_light {
  background-color: #F7F9FB;
}
.nstyle_theme .bg_dark {
  background-color: #F0F2F4;
}
.nstyle_theme .bg_l_primary {
  color: #fff;
  background-color: #53abf2;
}
.nstyle_theme .bg_primary {
  color: #fff;
  background-color: #2877d3;
}
.nstyle_theme .bg_accent {
  color: #3C3D3E;
  background-color: #ffdc78;
}
.nstyle_theme .bg_t_light {
  background-color: #f1f3f5;
}
.nstyle_theme .bg_t_grey200 {
  color: #fff;
  background-color: #787878;
}
.nstyle_theme .text_grey100 {
  color: #646566;
}
.nstyle_theme .text_grey200 {
  color: #787878;
}
.nstyle_theme .text_primary {
  color: #2877D3;
}
.nstyle_theme .text_l_primary {
  color: #53ABF2;
}
.nstyle_theme .text_accent {
  color: #FFDC78;
}
.nstyle_theme .text_t_light {
  color: #f1f3f5;
}
/* ───────────────────────────────────────────────
   4. 間距 token（element_spacing）
   ─────────────────────────────────────────────── */


/* 左右文章內容設定 */
.nstyle_theme .element_spacing > :not(:last-child) {
  margin-bottom: 2.5rem;
}
@media (max-width: 576px) {
  .nstyle_theme .element_spacing > :not(:last-child) {
    margin-bottom: 2rem;
  }
}


/* ───────────────────────────────────────────────
   5. 效果 / 裝飾
   毛玻璃、隱藏文字、漸層文字、標題徽章，
   以及 section 垂直內距與 container 最大寬度。
   ─────────────────────────────────────────────── */
.nstyle_theme .backdrop_blur {
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: blur(0.25rem);
          backdrop-filter: blur(0.25rem);
  z-index: -1;
}
.nstyle_theme .text_hide {
  text-indent: 101%;
  overflow: hidden;
  white-space: nowrap;
}
/* ▸ 漸層文字（text_gradient / _light） */
.nstyle_theme .text_gradient {
  display: inline-block;
  background: -webkit-gradient(linear, right top, left top, color-stop(3.24%, #53ABF2), color-stop(94.6%, #2F6EB7));
  background: -o-linear-gradient(right, #53ABF2 3.24%, #2F6EB7 94.6%);
  background: linear-gradient(to left, #53ABF2 3.24%, #2F6EB7 94.6%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nstyle_theme .text_gradient_light {
  display: inline-block;
  background: -webkit-gradient(linear, right top, left top, color-stop(3.24%, #3DA0F0), color-stop(94.6%, #4FD5FF));
  background: -o-linear-gradient(right, #3DA0F0 3.24%, #4FD5FF 94.6%);
  background: linear-gradient(to left, #3DA0F0 3.24%, #4FD5FF 94.6%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ▸ 標題徽章 header_title（圓角外框＋立體陰影） */
.nstyle_theme .header_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  color: #1354B6;
  border-radius: 3rem;
  border: 2px solid #2877D3;
  background-color: #FFDC78;
  -webkit-box-shadow: 5px 5px 0 #2877D3;
          box-shadow: 5px 5px 0 #2877D3;
}
.nstyle_theme .header_title_text {
  padding: 0 1.5rem;
}
/* ▸ section 垂直內距（首個 section 上距較小） */
.nstyle_theme section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  z-index: -1;
}
.nstyle_theme section:nth-child(1) {
  padding-top: 3.5rem;
}
/* ▸ container 最大寬度與各斷點內距 */
.nstyle_theme .container {
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .nstyle_theme .illus_layout {
    display: block;
    width: 40%;
    margin: 1rem auto 0;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .illus_layout {
    width: 50%;
  }
}
@media (max-width: 1200px) {
  .nstyle_theme .container {
    max-width: 1140px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 992px) {
  .nstyle_theme h1 {
    font-size: 1.875rem;
  }
  .nstyle_theme .container {
    max-width: 960px;
  }
}
@media (max-width: 768px) {
  .nstyle_theme h1 {
    padding-bottom: 3rem;
  }
  .nstyle_theme section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .nstyle_theme .container {
    max-width: 720px;
  }
}
@media (max-width: 576px) {
  .nstyle_theme h1 {
    padding-bottom: 3rem;
    font-size: 1.75rem;
    line-height: 150%;
  }
  .nstyle_theme h1 .header_title {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    line-height: 120%;
  }
  .nstyle_theme h2, .nstyle_theme .h2 {
    font-size: 1.75rem;
  }
  .nstyle_theme h3, .nstyle_theme .h3 {
    font-size: 1.25rem;
  }
}
@media (max-width: 320px) {
  .nstyle_theme .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .nstyle_theme h2, .nstyle_theme .h2 {
    font-size: 1.675rem;
  }
  .nstyle_theme h3, .nstyle_theme .h3 {
    font-size: 1.125rem;
  }
}

/* ───────────────────────────────────────────────
   6. 元件：pill 標籤 / 小型按鈕
   pill 膠囊標籤、fill_primary / outline_primary 小按鈕。
   ─────────────────────────────────────────────── */
.nstyle_theme .pill {
  padding: 0.37rem 1rem 0.25rem;
  font-size: 1rem;
  text-align: center;
  border-radius: 3rem;
  white-space: nowrap;
}
@media (max-width: 320px) {
  .nstyle_theme .pill {
    padding: 0.25rem 0.75rem;
  }
}
.nstyle_theme .pill_lg {
  font-size: 1.25rem;
  font-weight: bold;
}
/* ▸ 小型實心 / 外框按鈕 */
.nstyle_theme .fill_primary, .nstyle_theme .outline_primary {
  padding: 0.5rem 0.875rem;
  font-weight: bold;
  line-height: 100%;
  border-radius: 0.5rem;
  white-space: nowrap;
}
.nstyle_theme .fill_primary {
  color: #fff;
  background-color: #53ABF2;
}
.nstyle_theme .outline_primary {
  color: #53ABF2;
  border: 1px solid #53ABF2;
}

/* ───────────────────────────────────────────────
   7. 元件：表格系統
   表格外框 table_wrap、基本 table、響應式橫向捲動，
   以及課表 / 時刻表 o_time_list 特化。
   ─────────────────────────────────────────────── */
.nstyle_theme .table_wrap {
  width: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #DEE0E2;
  background-color: #fff;
}
@media (max-width: 576px) {
  .nstyle_theme .table_wrap {
    padding: 1rem;
    font-size: 0.875rem;
  }
  .nstyle_theme .table_wrap .pill {
    font-size: 0.875rem;
    padding: 0.17rem 1rem 0.15rem;
  }
}
@media (max-width: 992px) {
  .nstyle_theme .table_responsive {
    white-space: nowrap;
    overflow-x: scroll;
    padding-bottom: 0.5rem;
  }
}
@media (max-width: 1200px) {
  .nstyle_theme .table_responsive_lg {
    overflow-x: scroll;
  }
}
/* ▸ 基本 table：欄位內距、斑馬紋、標題 */
.nstyle_theme table {
  width: 100%;
}
.nstyle_theme table th, .nstyle_theme table td {
  padding: 0.5rem;
  text-align: center;
}
.nstyle_theme table th {
  font-weight: bold;
}
.nstyle_theme table thead th {
  text-align: center;
  padding: 0.25rem;
}
.nstyle_theme table tbody tr:nth-child(even) th, .nstyle_theme table tbody tr:nth-child(even) td {
  background-color: rgba(241, 243, 245, 0.4);
}
.nstyle_theme .table_border_bottom tbody tr {
  border-bottom: 1px solid rgba(222, 224, 226, 0.5);
}
.nstyle_theme .table_title {
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  font-size: 1.25rem;
  border-radius: 3rem;
}
.nstyle_theme .table_header_desc {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: normal;
}
@media (max-width: 576px) {
  .nstyle_theme .table_header_desc {
    padding: 0.5rem;
  }
}
.nstyle_theme .table_desc {
  padding: 2rem 2rem 0;
  color: #646566;
}
@media (max-width: 576px) {
  .nstyle_theme .table_desc {
    padding: 2rem 1rem 0;
  }
}
.nstyle_theme .list_style {
  list-style: inherit;
  padding-left: 1.5rem;
}
.nstyle_theme .table_align_left tbody td {
  padding: 0.5rem 1.25rem !important;
  text-align: left;
}
@media (max-width: 576px) {
  .nstyle_theme .table_align_left tbody td {
    padding: 0.5rem 0.5rem !important;
  }
}
.nstyle_theme .table_lg tbody th, .nstyle_theme .table_lg tbody td {
  padding: 0.75rem 0.5rem;
}
.nstyle_theme .table_bg_none tbody tr:nth-child(even) th, .nstyle_theme .table_bg_none tbody tr:nth-child(even) td {
  background-color: unset;
}
.nstyle_theme .t_border_bottom {
  border-bottom: 1px solid rgba(222, 224, 226, 0.7);
}
/* ▸ 課表 / 時刻表 o_time_list */
.nstyle_theme .o_time_list tr:nth-child(even) td {
  background-color: unset;
}
.nstyle_theme .o_time_list thead tr:last-child p {
  padding: 0.5rem;
  border-radius: 1rem;
}
.nstyle_theme .o_time_list tbody td > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.nstyle_theme .o_time_list_day {
  font-size: 2rem;
  line-height: 150%;
}
.nstyle_theme .o_time_list_time {
  margin-right: 0.5rem;
  line-height: 125%;
}
.nstyle_theme .o_time_list_subject {
  text-align: left;
}
@media (max-width: 576px) {
  .nstyle_theme .o_time_list tbody th, .nstyle_theme .o_time_list tbody td {
    padding: 0.25rem;
    letter-spacing: 0.02em;
  }
  .nstyle_theme .o_time_list_subject {
    text-align: center;
  }
  .nstyle_theme .o_time_list_subject :last-child {
    display: none;
  }
}
/* ▸ 小資訊列 info（圖示＋灰字） */
.nstyle_theme .info {
  margin-top: 1rem;
  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;
  font-size: 0.875rem;
  color: #787878;
}
.nstyle_theme .info [class^=material-icons] {
  font-size: 1rem;
}

/* ───────────────────────────────────────────────
   8. 元件：分頁籤 tab
   btn_tab 頁籤按鈕與 tab_content 內容切換。
   ─────────────────────────────────────────────── */
.nstyle_theme .btn_tab_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  margin-left: 1.75rem;
}
.nstyle_theme .btn_tab {
  display: inline-block;
  margin-top: 0.25rem;
  margin-right: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  line-height: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid #DEE0E2;
  border-bottom-width: 0;
  background-color: #fff;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.nstyle_theme .btn_tab:hover {
  color: #3C3D3E;
  background-color: #DEE0E2;
}
.nstyle_theme .btn_tab.active {
  margin-top: 0rem;
  padding: 0.75rem 1.5rem 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #2877D3;
}
.nstyle_theme .tab .table_wrap {
  position: relative;
}
.nstyle_theme .tab .table_wrap .tab_content {
  padding: 3rem 3.5rem;
}
@media (max-width: 992px) {
  .nstyle_theme .tab .table_wrap .tab_content {
    padding: 1.5rem;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .tab .table_wrap .tab_content {
    padding: 2rem 1rem;
  }
}
.nstyle_theme .tab_content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  opacity: 0;
}
.nstyle_theme .tab_content h3 {
  margin-bottom: 1.5rem;
}
.nstyle_theme .tab_content h3 span {
  display: block;
  font-size: 1rem;
  text-align: center;
}
.nstyle_theme .tab_content h3 span:nth-child(1) {
  color: #2877D3;
}
.nstyle_theme .tab_content table th, .nstyle_theme .tab_content table td {
  padding: 0.25rem;
}
.nstyle_theme .tab_content table p {
  margin-bottom: 0;
}
.nstyle_theme .tab_content table tbody tr th {
  font-weight: bold;
  color: #53ABF2;
}
.nstyle_theme .tab_wrap.opacity {
  opacity: 1;
}
@media (max-width: 576px) {
  .nstyle_theme #table111_1 table, .nstyle_theme #table110_1 table, .nstyle_theme #table109_1 table {
    width: 400px;
  }
}
@media (max-width: 992px) {
  .nstyle_theme #table111_2 table, .nstyle_theme #table110_2 table, .nstyle_theme #table109_2 table {
    width: 750px;
    letter-spacing: 0.01em;
  }
}

/* ───────────────────────────────────────────────
   9. 元件：section 標題 / 小標題
   section_title（大圖示標題）、title（左側色條小標）。
   ─────────────────────────────────────────────── */
.nstyle_theme h1.section_title {
  padding-bottom: 0 ;
}

.nstyle_theme .section_title [class^=material-icons] {
  margin-bottom: 1rem;
  font-size: 4rem;
  color: #53ABF2;
}

.nstyle_theme .section_title :nth-child(3) {
  color: #3C3D3E;
}
.nstyle_theme .section_title_adorn {
  margin-top: 1.5rem;
  width: 9rem;
  height: 0.75rem;
  border-radius: 3rem;
  background: -o-linear-gradient(353.95deg, #4FD5FF 0.01%, #3DA0F0 75.24%);
  background: linear-gradient(96.05deg, #4FD5FF 0.01%, #3DA0F0 75.24%);
}
.nstyle_theme .section_title.center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
/* ▸ 左側色條小標 title / title_adorn / title_accent */
.nstyle_theme .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2877D3;
}
.nstyle_theme .title_adorn {
  margin-right: 1rem;
  width: 0.25rem;
  height: inherit;
  border-radius: 3rem;
  background-color: #FFDC78;
}
.nstyle_theme .title_text > div:nth-child(2) {
  padding-top: 0.5rem;
  color: #3C3D3E;
  line-height: 125%;
}
.nstyle_theme .title_accent {
  margin-right: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0 3rem 3rem 0;
  background-color: #FFDC78;
}

/* ───────────────────────────────────────────────
   10. 回頂鈕 top / 圓形圖示 circle_icon
   ─────────────────────────────────────────────── */
.nstyle_theme .top {
  position: fixed;
  right: 35px;
  bottom: 130px;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-color: rgba(83, 171, 242, 0.7);
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  z-index: 1000;
}
.nstyle_theme .top:hover {
  color: #fff;
  background-color: #53abf2;
}
@media (max-width: 768px) {
  .nstyle_theme .top {
    right: 30px;
    bottom: 120px;
  }
}
@media (max-width: 767.98px) {
  .nstyle_theme .top {
    right: 12px;
    bottom: 40px;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .top {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
}
/* ▸ 圓形圖示底 circle_icon（primary / orange） */
.nstyle_theme .circle_icon {
  padding: 0.5rem;
  line-height: 100%;
  border-radius: 50%;
}
.nstyle_theme .circle_icon_d_primary {
  color: #1354B6;
  background-color: #F5F7F9;
}
.nstyle_theme .circle_icon_l_primary {
  color: #53ABF2;
  background-color: #fff;
}
.nstyle_theme .circle_icon_orange {
  color: rgba(249, 164, 74, 0.8);
  background-color: #fff;
}

/* ───────────────────────────────────────────────
   11. 元件：目錄 contents
   contents 容器、contents_list 兩欄清單、contents_item 單筆連結。
   ─────────────────────────────────────────────── */
.nstyle_theme .contents {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
@media (max-width: 768px) {
  .nstyle_theme .contents {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.nstyle_theme .contents_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.nstyle_theme .contents_title .title {
  white-space: nowrap;
  color: #1354B6;
}
@media (max-width: 768px) {
  .nstyle_theme .contents_title {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .nstyle_theme .contents_title img {
    margin-left: 2rem;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .contents_title {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
  }
  .nstyle_theme .contents_title .title {
    padding-bottom: 1rem;
  }
  .nstyle_theme .contents_title img {
    margin-left: 0rem;
  }
}
/* ▸ 兩欄目錄清單 contents_list / contents_item */
.nstyle_theme .contents_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding-top: 1rem;
  padding-left: 0;
}
.nstyle_theme .contents_list li {
  width: calc(50% - 0.5rem);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #DEE0E2;
}
@media (max-width: 768px) {
  .nstyle_theme .contents_list {
    width: 100% !important;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .contents_list li {
    width: 100%;
  }
}
.nstyle_theme .contents_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 1rem 0.5rem 1rem 0.5rem;
  text-decoration: none;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.nstyle_theme .contents_item:hover {
  border-radius: 0.5rem;
  background-color: #F5F7F9;
}
.nstyle_theme .contents_item_text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #3C3D3E;
  font-weight: normal;
  line-height: 150%;
  white-space: nowrap;
}
.nstyle_theme .contents_item_text :nth-child(1) {
  color: #1354B6;
}
.nstyle_theme .contents_item_text_line {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  width: 1px;
  background-color: #3C3D3E;
}
@media (max-width: 1200px) {
  .nstyle_theme .contents_item_text {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .contents_item {
    padding: 0.5rem 0rem 0.5rem 0.75rem;
  }
  .nstyle_theme .contents_item_text {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    white-space: unset;
  }
}

/* ───────────────────────────────────────────────
   12. 元件：主要按鈕（膠囊）
   btn_accent（黃）、btn_l_primary（藍）、btn_t_orange（橘），
   含 hover 與內嵌圓形圖示。
   ─────────────────────────────────────────────── */
.nstyle_theme .btn_accent, .nstyle_theme .btn_l_primary, .nstyle_theme .btn_t_orange {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  line-height: 150%;
  text-decoration: none;
  border-radius: 3rem;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
.nstyle_theme .btn_accent :nth-child(2), .nstyle_theme .btn_l_primary :nth-child(2), .nstyle_theme .btn_t_orange :nth-child(2) {
  padding-left: 1rem;
  padding-right: 1rem;
}
.nstyle_theme .btn_accent {
  padding: 0.75rem 1rem 0.75rem 2rem;
  font-size: 1.5rem;
  background-color: #FFDC78;
}
.nstyle_theme .btn_accent .m_icon {
  font-size: 2.5rem;
}
.nstyle_theme .btn_accent:hover {
  color: #fff;
  background-color: #2877D3;
}
@media (max-width: 576px) {
  .nstyle_theme .btn_accent {
    padding: 0.75rem 1rem 0.75rem 1.25rem;
  }
}
.nstyle_theme .btn_l_primary, .nstyle_theme .btn_t_orange {
  padding: 0.675rem 1rem 0.675rem 1.5rem;
  color: #fff;
}
.nstyle_theme .btn_l_primary > :last-child, .nstyle_theme .btn_t_orange > :last-child {
  color: #fff;
}
.nstyle_theme .btn_l_primary:hover, .nstyle_theme .btn_t_orange:hover {
  color: #fff;
}
@media (max-width: 576px) {
  .nstyle_theme .btn_l_primary, .nstyle_theme .btn_t_orange {
    padding: 0.5rem 0.75rem 0.5rem 1rem;
  }
}
.nstyle_theme .btn_l_primary {
  background-color: #53ABF2;
}
.nstyle_theme .btn_l_primary:hover {
  background-color: #2877D3;
}
.nstyle_theme .btn_l_primary:hover .circle_icon {
  color: #2877D3;
}
.nstyle_theme .btn_t_orange {
  background-color: rgba(249, 164, 74, 0.8);
}
.nstyle_theme .btn_t_orange:hover {
  background-color: #F9A44A;
}
.nstyle_theme .btn_t_orange:hover .circle_icon {
  color: #f9a44a;
}

/* ───────────────────────────────────────────────
   13. 元件：諮詢區 o_consult / 對話框 o_dialog
   ─────────────────────────────────────────────── */
.nstyle_theme .o_consult {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 2.5rem;
}
@media (max-width: 1200px) {
  .nstyle_theme .o_consult {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .nstyle_theme .o_consult > :not(:last-child) {
    margin-bottom: 2.5rem;
  }
}
@media (max-width: 1200px) and (max-width: 576px) {
  .nstyle_theme .o_consult > :not(:last-child) {
    margin-bottom: 2rem;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .o_consult {
    padding: 1.75rem 1.5rem;
  }
}
@media (min-width: 1200px) {
  .nstyle_theme .o_consult_title, .nstyle_theme .o_consult_inner_btns {
    white-space: nowrap;
  }
  .nstyle_theme .o_consult_text {
    -ms-flex-negative: 3;
        flex-shrink: 3;
    width: 41.6666666667%;
  }
}
.nstyle_theme .o_consult_inner_btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
.nstyle_theme .o_consult_inner_btns a:nth-child(1) {
  margin-bottom: 1rem;
}
/* ▸ 對話框 o_dialog（左圖右框、RWD 轉直向） */
.nstyle_theme .o_dialog_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
@media (max-width: 992px) {
  .nstyle_theme .o_dialog_wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .nstyle_theme .o_dialog_wrap .o_dialog_img {
    margin-top: 1rem;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
    width: 25%;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .o_dialog_wrap .o_dialog_img {
    width: 35%;
  }
}
.nstyle_theme .o_dialog_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-left: 4.5rem;
  padding: 3rem;
  border: 2px solid #1354B6;
  border-radius: 1rem;
  background-color: #fff;
  -webkit-box-shadow: 0.5rem 0.5rem 0 #1354B6;
          box-shadow: 0.5rem 0.5rem 0 #1354B6;
}
.nstyle_theme .o_dialog_box [class^=material-icons] {
  padding-right: 2rem;
  font-size: 3.5rem;
  color: #53ABF2;
}
@media (max-width: 992px) {
  .nstyle_theme .o_dialog_box {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-left: 2rem;
    padding: 2rem;
  }
  .nstyle_theme .o_dialog_box [class^=material-icons] {
    padding-right: 0rem;
    padding-bottom: 2rem;
  }
}
@media (max-width: 576px) {
  .nstyle_theme .o_dialog_box {
    margin-left: 1rem;
    padding: 1.5rem 0.75rem 1.5rem 1rem;
  }
  .nstyle_theme .o_dialog_box [class^=material-icons] {
    padding-bottom: 1rem;
  }
}

/* ───────────────────────────────────────────────
   元件：資訊卡 info_card
   通用卡片（卡身＋圓形圖示徽章表頭：icon／title／desc），內頁共用，
   對應首頁 nstyle.css 的 .info-card。
   用法：<div class="info_card"><div class="info_card_head">
           <div class="info_card_icon"><span class="material-icons-round">…</span></div>
           <div class="info_card_title">標題</div>
           <span class="info_card_desc">副標</span>
         </div> …內容… </div>
   ─────────────────────────────────────────────── */
.nstyle_theme .info_card {
  background: linear-gradient(to top, #ffffff 65%, #ebf1ff 100%);
  border: 1px solid #d3deff;
  border-radius: 20px;
  padding: 26px 30px;
}
@media (max-width: 767.98px) {
  .nstyle_theme .info_card {
    padding: 22px 20px;
  }
}
.nstyle_theme .info_card_head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nstyle_theme .info_card_icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5aa6ef 0%, #2f74d6 100%);
  box-shadow: 0 0 0 5px #d3deff;
}
.nstyle_theme .info_card_icon [class^=material-icons] {
  font-size: 24px;
}
.nstyle_theme .info_card_title {
  color: #172659;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.nstyle_theme .info_card_desc {
  color: #707b98;
  font-size: 14px;
}

/* ───────────────────────────────────────────────
   元件：內頁 Banner npage_banner（取代各頁自刻的 .exdl_page_banner／.nteacher_banner…）
   全寬固定高背景圖；背景圖由各頁 CSS 以 background-image 指定（例：.npage_banner--teacher）。
   純圖：<div class="npage_banner npage_banner--xxx"></div>
   疊字：<div class="npage_banner npage_banner--overlay npage_banner--xxx">
           <div class="npage_banner__inner">
             <h1 class="npage_banner__title">標題</h1><p class="npage_banner__sub">副標</p>
           </div></div>
   ─────────────────────────────────────────────── */
.nstyle_theme .npage_banner {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}
/* 疊字時的深色遮罩，讓白字清楚 */
.nstyle_theme .npage_banner--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 53, 0.55);
}
.nstyle_theme .npage_banner__inner {
  position: relative;
  text-align: center;
  padding: 0 16px;
}
.nstyle_theme .npage_banner__title {
  margin: 0;
  padding-bottom: 0; /* 覆蓋 .nstyle_theme h1{padding-bottom:6.5rem}，避免副標被推遠、垂直置中跑掉 */
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 5px;
  text-indent: 5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.nstyle_theme .npage_banner__sub {
  margin: 12px 0 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
  text-indent: 2px;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
@media (max-width: 767.98px) {
  .nstyle_theme .npage_banner { height: 150px; }
  .nstyle_theme .npage_banner__title { font-size: 24px; letter-spacing: 2px; }
  .nstyle_theme .npage_banner__sub { font-size: 14px; }
}

/* ───────────────────────────────────────────────
   元件：內頁清單分頁 npager（公版，取代舊 BS3 .page_number_container）
   由後端分頁函式輸出；is-active＝目前頁、is-disabled＝首/末頁不可點、__nav＝上一頁/下一頁箭頭。
   <nav class="npager" aria-label="頁碼">
     <span class="npager__item npager__nav is-disabled"><span class="material-icons-round">chevron_left</span></span>
     <span class="npager__item is-active" aria-current="page">1</span>
     <a class="npager__item" href="?pages=2">2</a>
     <a class="npager__item npager__nav" href="?pages=2"><span class="material-icons-round">chevron_right</span></a>
   </nav>
   ─────────────────────────────────────────────── */
.nstyle_theme .npager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1120px;
  margin: 40px auto 0;
}
.nstyle_theme .npager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d3deff;
  background: #fff;
  color: #2f74d6;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nstyle_theme .npager__item:hover {
  border-color: #2f74d6;
  transform: translateY(-2px);
}
.nstyle_theme .npager__item.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #5aa6ef, #2f74d6);
  box-shadow: 0 8px 18px rgba(47, 116, 214, 0.28);
}
.nstyle_theme .npager__nav .material-icons-round { font-size: 20px; }
.nstyle_theme .npager__item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
/* 省略號（頁碼過多時，由 js/npager.js 產生的 windowing 占位） */
.nstyle_theme .npager__ellipsis {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 24px;
  height: 42px;
  padding-bottom: 6px;
  color: #9aa4b5;
  font-weight: 700;
}

/* ───────────────────────────────────────────────
   元件：自訂下拉 nselect（公版）
   美化「展開後的清單」，同時保留隱藏的原生 <select>（name/onchange）不失效。
   需搭配對應 JS：點 .nselect__opt → 設 .nselect__native 的 value 並 dispatchEvent('change')，
   原生 select 的 onchange（如正式站 trans5/6/7）即照常觸發。
   結構：
   <div class="nselect" data-name="cate">           ← 可再加各頁自訂外框 class（如 .nnews_field）
     <button class="nselect__btn" aria-haspopup="listbox" aria-expanded="false">
       <span class="nselect__value">目前值</span>
       <span class="material-icons-round nselect__caret">expand_more</span>
     </button>
     <ul class="nselect__menu" role="listbox">
       <li class="nselect__opt is-active" role="option" data-value="4">國中課程更新</li> …
     </ul>
     <select class="nselect__native" name="cate" tabindex="-1" aria-hidden="true"> … </select>
   </div>
   ─────────────────────────────────────────────── */
.nstyle_theme .nselect { position: relative; }
.nstyle_theme .nselect.is-open { z-index: 6; }
.nstyle_theme .nselect__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  padding: 1px 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #26324a;
  text-align: left;
  cursor: pointer;
  outline: none;
}
.nstyle_theme .nselect__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nstyle_theme .nselect__caret {
  flex: 0 0 auto;
  color: #2f74d6;
  font-size: 22px;
  transition: transform 0.2s;
}
.nstyle_theme .nselect.is-open .nselect__caret { transform: rotate(180deg); }
.nstyle_theme .nselect__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(31, 95, 191, 0.18);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.nstyle_theme .nselect.is-open .nselect__menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.nstyle_theme .nselect__opt {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #3c3d3e;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.nstyle_theme .nselect__opt:hover { background: #f2f7ff; color: #2f74d6; }
.nstyle_theme .nselect__opt.is-active {
  background: linear-gradient(135deg, #5aa6ef, #2f74d6);
  color: #fff;
}
/* 隱藏原生 select（資料源＋事件源，仍可被程式設值/觸發 change） */
.nstyle_theme .nselect__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ───────────────────────────────────────────────
   元件：篩選分頁 ntabs（公版）
   膠囊式切換鈕，點擊顯示/隱藏對應內容（搭配 js/ntabs.js）。
   結構：
   <div class="ntabs" role="tablist" data-target=".cmp_level" data-attr="data-level">
     <button class="ntabs__btn is-active" data-filter="all">全部</button>
     <button class="ntabs__btn" data-filter="junior">國中</button> …
   </div>
   ‧ data-target 要篩選的內容項 CSS 選擇器
   ‧ data-attr   內容項用來比對的屬性名（預設 data-tab）；值＝按鈕 data-filter，"all" 全顯示
   ─────────────────────────────────────────────── */
.nstyle_theme .ntabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  width: -webkit-fit-content;
  width: fit-content;
  margin: 6px auto 24px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6ecfa;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(73, 113, 243, 0.10);
}
.nstyle_theme .ntabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5a6579;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none; /* 亦可套用於 <a> 版分類切換 */
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nstyle_theme .ntabs__btn .material-icons-round { font-size: 20px; }
.nstyle_theme .ntabs__btn:hover { color: #2f74d6; }
.nstyle_theme .ntabs__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5aa6ef, #2f74d6);
  box-shadow: 0 6px 14px rgba(47, 116, 214, 0.28);
}
@media (max-width: 767.98px) {
  .nstyle_theme .ntabs__btn { padding: 8px 15px; font-size: 14px; }
}

/* ============================================================
   前言 head（.nlead）— 公版
   banner 下方頁面前言：圓章 icon ＋ 主標 ＋ 副標 ＋ 右側漸層線標籤
   用於 patron / list_sectional_examination / teacher…（各頁只需自訂外層容器的 margin）
   結構：
     <div class="nlead">
       <span class="nlead__ic"><span class="material-icons-round">…</span></span>
       <h2 class="nlead__title">主標</h2>
       <span class="nlead__sub">副標</span>
       <span class="nlead__tag">右側標籤</span>
     </div>
   ============================================================ */
.nstyle_theme .nlead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.nstyle_theme .nlead__ic {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5aa6ef 0%, #2f74d6 100%);
  box-shadow: 0 0 0 5px #d3deff;
}
.nstyle_theme .nlead__ic .material-icons-round { font-size: 26px; }
.nstyle_theme .nlead__title {
  margin: 0;
  padding-bottom: 0;
  color: #1f3a86;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
}
.nstyle_theme .nlead__sub {
  color: #5a6579;
  font-size: 15px;
  font-weight: 500;
}
.nstyle_theme .nlead__tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f74d6;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nstyle_theme .nlead__tag::before {
  content: "";
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #9fc0f2);
}
@media (max-width: 767.98px) {
  .nstyle_theme .nlead { flex-wrap: wrap; }
  .nstyle_theme .nlead__title { font-size: 22px; }
  .nstyle_theme .nlead__sub { font-size: 14px; }
  .nstyle_theme .nlead__tag { margin-left: 0; width: 100%; }
}
