/* 2026-11-07 新版主選單（全站共用，由 views/common/nav2026.php 載入）：769px 以上使用新版；手機沿用漢堡選單。 */
.nv26-nav { display: none; }
.nv26-nav [hidden] { display: none !important; }
/* 購物車按鈕在平板以下回到原本頁首時，不顯示新選單用的圖示。 */
.indexHeader .nv26-cart-svg { display: none; }
.nv26-modal-close { display: none; }
@media (min-width: 769px) {
  /* 原本頁首在桌機隱藏，只保留裡面的登入視窗（#mLogin）讓新選單的「登入」可以開啟。 */
  header.indexHeader { position: static; height: 0; min-height: 0; padding: 0; overflow: visible; background: transparent; box-shadow: none; }
  header.indexHeader::after { display: none; }
  header.indexHeader > .header { display: none; }
  /* 登入／註冊視窗（原本頁首裡的 #mLogin）：桌機改成與新選單一致的設計——米色底、深藍字、直角、磚紅色按鈕。 */
  #mLogin { top: 0; height: 100vh; }
  #mLogin .modal-dialog { width: 460px; max-width: calc(100% - 48px); margin: 110px auto 40px; }
  #mLogin .modal-content { position: relative; overflow: visible; border: 0; border-radius: 0; background: #f3e8d7; box-shadow: 0 18px 44px rgba(20, 61, 79, .28); color: #143d4f; font-family: "NOUVA Sans", "Helvetica Neue", Helvetica, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
  #mLogin .loginMenu { max-height: calc(100vh - 150px); overflow-y: auto; }
  #mLogin .nv26-modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #143d4f; line-height: 1; cursor: pointer; }
  #mLogin .nv26-modal-close:hover { color: #aa4c25; }
  #mLogin .headerDropdownMenuTitle { position: relative; height: auto; padding: 36px 44px 0; border-radius: 0; background: none; color: #143d4f; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-align: left; }
  #mLogin .headerDropdownMenuTitle::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 12px; background: #d58e2b; }
  #mLogin .headerDropdownMenuContent { padding: 18px 44px 40px; }
  #mLogin .headerDropdownMenuContent > p { margin: 0 0 18px; color: #143d4f; font-size: 15px; letter-spacing: .04em; text-align: left; }
  #mLogin .headerDropdownMenuContent > p a, #mLogin .headerDropdownMenuContent > p span { margin-left: 6px; padding-bottom: 1px; border-bottom: 2px solid #143d4f; color: #143d4f; font-weight: 700; cursor: pointer; }
  #mLogin .headerDropdownMenuContent > p a:hover, #mLogin .headerDropdownMenuContent > p span:hover { border-bottom-color: #aa4c25; color: #aa4c25; }
  #mLogin .headerDropdownMenuContent > p.margin { margin: 16px 0; font-size: 13px; line-height: 1.7; letter-spacing: .02em; }
  #mLogin .headerDropdownMenuContent > p.margin a { margin: 0; border-bottom-width: 1px; font-weight: 400; }
  #mLogin .nv26-login-note { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid #aa4c25; background: rgba(170, 76, 37, .1); color: #143d4f; font-size: 15px; font-weight: 500; line-height: 1.6; }
  #mLogin .loginItem:not(:last-child) { margin-bottom: 12px; }
  #mLogin input:not([type=checkbox]), #mLogin select { width: 100%; height: 52px; padding: 0 16px; border: 2px solid rgba(20, 61, 79, .25); border-radius: 0; background: #fff; color: #143d4f; font-family: inherit; font-size: 16px; }
  #mLogin input:not([type=checkbox])::placeholder { color: rgba(20, 61, 79, .45); }
  #mLogin input:not([type=checkbox]):focus, #mLogin select:focus { border-color: #143d4f; outline: none; }
  #mLogin .loginHandler { margin: 16px 0 22px; color: #143d4f; font-size: 14px; letter-spacing: .04em; }
  #mLogin .loginHandler a { border-bottom: 1px solid #143d4f; color: #143d4f; }
  #mLogin .form-check-input { border-color: #143d4f; border-radius: 0; }
  #mLogin .form-check-input:checked { border-color: #aa4c25; background-color: #aa4c25; }
  #mLogin .loginBtnWrap { margin-bottom: 0; }
  #mLogin button.loginBtn { width: 100%; height: 52px; border: 0; border-radius: 0; background: #aa4c25; color: #f3e8d7; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 52px; letter-spacing: .1em; }
  #mLogin button.loginBtn:hover { background: #8f3d1c; }
  #mLogin button.loginBtn:focus-visible { outline: 3px solid #143d4f; outline-offset: 2px; }
  body:has(#mLogin.show) .modal-backdrop.show { background: #143d4f; opacity: .55; }

  /* 新選單在版面上佔的高度；選單固定在頂端時版面不會跳動。首頁的選單疊在主視覺上，不佔高度（見 home-demo.css）。 */
  .nv26-nav-slot { height: 64px; }
  .nv26-nav { display: block; position: relative; z-index: 1000; color: #143d4f; font-family: "NOUVA Sans", "Helvetica Neue", Helvetica, "PingFang TC", "Noto Sans TC", Arial, sans-serif; }
  .nv26-nav a { color: #143d4f; text-decoration: none; }
  .nv26-nav a:hover { text-decoration: underline; }
  .nv26-nav button { font: inherit; color: inherit; }
  .nv26-nav a:focus-visible, .nv26-nav button:focus-visible { outline: 3px solid #143d4f; outline-offset: 2px; }
  .nv26-nav__wave { position: absolute; z-index: 3; top: 0; left: 0; display: block; width: 100%; height: 120px; }
  /* 波浪下層的磚紅色只在首頁（接主視覺）顯示；其他頁面只留黃色波浪。 */
  .nv26-nav__wave-under { display: none; }
  .nv26-nav__bar { position: relative; z-index: 4; display: flex; align-items: center; gap: 12px 16px; max-width: 1280px; margin: 0 auto; padding: 16px 40px 0; box-sizing: border-box; }
  .nv26-nav__logo { display: block; flex-shrink: 0; }
  .nv26-nav__logo img { display: block; width: 132px; height: auto; }
  .nv26-nav__main { display: flex; flex-grow: 1; gap: 4px; }
  .nv26-nav__toggle { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: #143d4f; font-size: 19px; font-weight: 700; white-space: nowrap; cursor: pointer; }
  .nv26-nav__toggle:hover, .nv26-nav__toggle[aria-expanded="true"] { border-bottom-color: #143d4f; }
  .nv26-nav__chevron { transition: transform .2s; }
  .nv26-nav__toggle[aria-expanded="true"] .nv26-nav__chevron { transform: rotate(180deg); }
  .nv26-nav__tools { display: flex; align-items: center; gap: 8px; }
  .nv26-nav__free { display: flex; align-items: center; height: 48px; padding: 0 22px; background: #aa4c25; color: #f3e8d7 !important; font-size: 18px; font-weight: 700; white-space: nowrap; }
  .nv26-nav__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
  .nv26-nav__badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #aa4c25; color: #f3e8d7; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
  .nv26-nav__user { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 10px; border: 0; background: none; color: #143d4f; font-size: 19px; font-weight: 700; white-space: nowrap; cursor: pointer; }
  .nv26-nav__drop { position: relative; }
  .nv26-nav__lang-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; background: #f3e8d7; color: #143d4f; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
  .nv26-nav__drop-panel { position: absolute; z-index: 4; top: 52px; right: 0; min-width: 180px; padding: 14px 18px; box-sizing: border-box; background: #f3e8d7; }
  .nv26-nav__drop-panel p { margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .nv26-nav__drop-panel p:first-child { margin-top: 0; }
  .nv26-nav__drop-panel a, .nv26-nav__drop-panel button { white-space: nowrap; display: block; width: 100%; padding: 6px 0; border: 0; background: none; color: #143d4f; font-size: 16px; text-align: left; cursor: pointer; }
  .nv26-nav__drop-panel a:hover, .nv26-nav__drop-panel button:hover { text-decoration: underline; }
  .nv26-nav__drop-panel [aria-current="true"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

  /* 購物車：滑鼠移過去展開原本的購物清單（元素由 js/nav2026.js 從原本頁首搬進來）。 */
  .nv26-nav__cart { position: relative; }
  .nv26-nav__cart.has-cart-menu > .nv26-nav__icon { display: none; }
  .nv26-nav #cart { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: #143d4f; font-size: 0; cursor: pointer; }
  .nv26-nav #cart > i { display: none; }
  .nv26-nav #cart .nv26-cart-svg { display: block; width: 26px; height: 26px; }
  .nv26-nav #cart .cartCount { position: absolute; top: 2px; right: 0; left: auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; transform: none; border-radius: 9px; background: #aa4c25 !important; color: #f3e8d7; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
  /* 購物清單的樣式配合新選單：米色底、深藍字、直角，結帳按鈕用磚紅色（與「免費學法語」相同）。平板以下仍是原本的樣式。 */
  .nv26-nav .cartMenu { width: 400px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f3e8d7; box-shadow: 0 14px 32px rgba(20, 61, 79, .2); color: #143d4f; font-family: "NOUVA Sans", "Helvetica Neue", Helvetica, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; text-align: left; }
  .nv26-nav .cartMenu::before { content: ""; position: absolute; top: -10px; right: 14px; width: 0; height: 0; border-style: solid; border-width: 0 10px 10px; border-color: transparent transparent #f3e8d7; }
  .nv26-nav .cartMenu .headerDropdownMenuTitle { height: auto; padding: 22px 28px 0; border-radius: 0; background: none; color: #143d4f; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-align: left; }
  .nv26-nav .cartMenu .headerDropdownMenuContent { max-height: 460px; padding: 12px 28px 26px; overflow-y: auto; }
  .nv26-nav .cartMenu .cartItem { align-items: center; margin: 0; padding: 14px 0; border-bottom: 0; border-top: 2px solid #143d4f; }
  .nv26-nav .cartMenu .cartItemArea .cartItem:not(:last-child) { margin-bottom: 0; border-bottom: 0; }
  .nv26-nav .cartMenu .cartItem + .cartItem { border-top-width: 1px; border-top-color: rgba(20, 61, 79, .3); }
  .nv26-nav .cartMenu .cartItemContent { padding-right: 12px; }
  .nv26-nav .cartMenu h3 { margin: 0 0 4px; color: #143d4f; font-size: 17px; font-weight: 700; line-height: 1.4; }
  .nv26-nav .cartMenu p { margin: 0; color: #143d4f; font-size: 14px; line-height: 1.6; }
  .nv26-nav .cartMenu .cartItemBtn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #aa4c25; border-radius: 0; background: none; color: #aa4c25; font-size: 13px; line-height: 1; }
  .nv26-nav .cartMenu .cartItemBtn:hover { background: #aa4c25; color: #f3e8d7; }
  .nv26-nav .cartMenu .total { padding: 14px 0 0; border-top: 2px solid #143d4f; border-bottom: 0; background: none; color: #143d4f; font-size: 15px; }
  .nv26-nav .cartMenu .total span { color: #aa4c25; font-size: 24px; font-weight: 700; }
  .nv26-nav .cartMenu .checkoutBtn { display: flex; gap: 10px; width: auto; height: auto; margin: 18px 0 0; border-radius: 0; background: none; line-height: normal; }
  .nv26-nav .cartMenu .checkoutBtn .divider { display: none; }
  .nv26-nav .cartMenu .checkoutBtn button { flex: 1; height: 46px; padding: 0 12px; border: 2px solid #143d4f; border-radius: 0; background: none; color: #143d4f; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .nv26-nav .cartMenu .checkoutBtn .chkBtn { border-color: #aa4c25; background: #aa4c25; color: #f3e8d7; }
  .nv26-nav .cartMenu .checkoutBtn button:hover { text-decoration: underline; }
  .nv26-nav .cartMenu button:focus-visible { outline: 3px solid #143d4f; outline-offset: 2px; }

  /* 往上捲時固定在畫面頂端的選單：平的、不含波浪。 */
  body .nv26-nav.is-sticky { position: fixed; top: 0; right: 0; left: 0; background: #d58e2b; box-shadow: 0 2px 14px rgba(20, 61, 79, .18); transform: translateY(-110%); transition: transform .25s ease; }
  body .nv26-nav.is-sticky.is-shown { transform: none; }
  body .nv26-nav.is-instant { transition: none; }
  .nv26-nav.is-sticky .nv26-nav__wave { display: none; }
  .nv26-nav.is-sticky .nv26-nav__bar { padding-top: 8px; padding-bottom: 8px; }
  .nv26-nav.is-sticky .nv26-nav__panel { top: 64px; }

  .nv26-nav__overlay { position: fixed; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(20, 61, 79, .55); cursor: default; }
  .nv26-nav__panel { position: absolute; z-index: 2; top: 60px; right: 0; left: 0; height: 430px; }
  .nv26-nav__panel-bg { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 430px; }
  .nv26-nav__menu { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; max-width: 1280px; margin: 0 auto; padding: 92px 40px 0; box-sizing: border-box; }
  .nv26-nav__intro { flex: 0 0 280px; }
  .nv26-nav__tag { margin: 0; color: #aa4c25; font: 400 68px/1 "NOUVA Gulax", "Helvetica Neue", sans-serif; }
  .nv26-nav__label { margin: 14px 0 0; font-size: 20px; font-weight: 500; }
  .nv26-nav__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding-bottom: 2px; border-bottom: 2px solid #143d4f; font-size: 16px; font-weight: 500; }
  .nv26-nav__items { display: grid; flex: 1 1 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .nv26-nav__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 14px 0; box-sizing: border-box; border-top: 2px solid #143d4f; }
  .nv26-nav__item > span { display: flex; flex-direction: column; gap: 4px; }
  .nv26-nav__item-title { font-size: 22px; font-weight: 500; }
  .nv26-nav__item-sub { font-size: 14px; }
  .nv26-nav__promo { position: relative; display: flex; flex: 0 0 290px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; height: 210px; padding: 0 40px; box-sizing: border-box; color: #f3e8d7 !important; }
  .nv26-nav__promo > svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .nv26-nav__promo > span { position: relative; }
  .nv26-nav__promo-kicker { font-size: 15px; font-weight: 500; }
  .nv26-nav__promo-title { padding-bottom: 3px; border-bottom: 5px solid #d58e2b; font-size: 26px; font-weight: 700; }
  .nv26-nav__promo-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 500; }
  .nv26-nav__promo:focus-visible { outline-color: #f3e8d7; }

}
@media (min-width: 769px) and (max-width: 1439px) {
  /* 窄桌機：語言與幣別只顯示地球圖示（完整文字在按鈕的 aria-label 與展開的選單裡）。 */
  .nv26-nav__bar { gap: 12px 16px; padding: 16px 24px 0; }
  .nv26-nav__logo img { width: 110px; }
  .nv26-nav__main { gap: 0; }
  .nv26-nav__tools { gap: 4px; }
  .nv26-nav__lang-label { display: none; }
  .nv26-nav__lang-btn { gap: 4px; padding: 0 10px; }
  .nv26-nav__toggle { padding: 0 8px; font-size: 17px; }
  .nv26-nav__free { padding: 0 14px; font-size: 16px; }
  .nv26-nav__user { font-size: 17px; }
  .nv26-nav__intro { flex-basis: 220px; }
  .nv26-nav__tag { font-size: 54px; }
  .nv26-nav__promo { flex-basis: 250px; padding: 0 30px; }
}

/* ---------- 2026-11-08（簡報 slide 10、12） ---------- */
/* slide 10-1：新主選單變矮，沒有色塊的頁面內容往上移（原本 main 留 190px 給舊頁首）。
   首頁、/about 已各自調整，色塊頁由 course-banner2026.css 處理，這裡都排除。 */
@media (min-width: 769px) {
  .nv26-nav-slot ~ main:not(.home-replica):not(.cv):not(:has(> .nv26-banner)) { padding-top: 56px !important; }
}

/* slide 10-2：頁面小標題（例：課程詳細頁的「課程介紹」、條款頁標題）改成磚紅粗體＋金黃底線。
   只套用在區塊第一層的 .pageTitle，會員中心深藍標題區不受影響。 */
main > section.containerWrap > .pageTitle {
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 0 32px;
  padding: 0 2px 10px;
  color: #aa4c25;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
}

main > section.containerWrap > .pageTitle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 4px;
  border-radius: 2px;
  background: #d58e2b;
}

@media (max-width: 768px) {
  main > section.containerWrap > .pageTitle { margin-bottom: 24px; font-size: 22px; }
}

/* slide 12：捲動中出現的平版選單展開子選單時，遮罩不再蓋住選單本身（選單底色另外墊在遮罩上方）。 */
@media (min-width: 769px) {
  .nv26-nav.is-sticky::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background: #d58e2b;
    pointer-events: none;
  }
}

/* ---------- 2026-11-08（簡報 slide 9–11） ---------- */
@media (min-width: 769px) {
  /* slide 9：/about 的照片直接接在主選單波浪下方，不再留一條空白 */
  .nv-about-page .nv26-nav-slot ~ main.cv { padding-top: 20px; }

  /* slide 11：購物車小視窗英文按鈕（Continue Shopping／Proceed to checkout）寬度不夠 */
  .nv26-nav .cartMenu { width: 440px; }
  .nv26-nav .cartMenu .checkoutBtn { min-width: 0; max-width: none; padding: 0; }
  .nv26-nav .cartMenu .checkoutBtn button { flex: 1 1 auto; min-width: 0; padding: 0 16px; white-space: nowrap; }
}

/* slide 10：主選單、footer 跳到 /french-for-kids 分類區塊時，標題不要被固定的主選單蓋住 */
h2.courseLevel[id] { scroll-margin-top: 110px; }
@media (min-width: 769px) { h2.courseLevel[id] { scroll-margin-top: 96px; } }

/* 2026-11-09: readable top-level controls and a continuous tablet layout. */
@media (min-width:769px) {
  .nv26-nav__bar { max-width:1440px; column-gap:16px; padding-left:40px; padding-right:40px; }
  .nv26-nav__logo img { width:160px; }
  .nv26-nav__main { min-width:0; }
  .nv26-nav .nv26-nav__toggle { color:#fff; font-size:20px; font-weight:700; line-height:1.3; padding-left:10px; padding-right:10px; }
  .nv26-nav .nv26-nav__toggle:hover,.nv26-nav .nv26-nav__toggle[aria-expanded="true"] { border-bottom-color:#fff; }
  .nv26-nav .nv26-nav__free { color:#fff!important; font-size:20px; padding-left:18px; padding-right:18px; }
  .nv26-nav .nv26-nav__user { color:#fff; font-size:20px; font-weight:700; line-height:1.3; }
  .nv26-nav .nv26-nav__user > svg { width:26px; height:26px; }
  .nv26-nav .nv26-nav__cart > .nv26-nav__icon,.nv26-nav #cart { width:auto; min-width:48px; gap:6px; padding:0 8px; color:#fff; font-size:20px; font-weight:700; line-height:1.3; white-space:nowrap; }
  .nv26-nav .nv26-nav__cart > .nv26-nav__icon > svg,.nv26-nav #cart .nv26-cart-svg { width:30px; height:30px; flex-shrink:0; }
  .nv26-nav .nv26-nav__cart.has-cart-menu > .nv26-nav__icon { display:none; }
  .nv26-nav__toggle-label--short { display:none; }
}
@media (min-width:769px) and (max-width:1359px) {
  .nv26-nav__bar { flex-wrap:nowrap; gap:12px; padding:16px 16px 0; }
  .nv26-nav__logo img { width:128px; }
  .nv26-nav__main { gap:0; }
  .nv26-nav__tools { flex-shrink:0; gap:4px; }
  .nv26-nav .nv26-nav__toggle { font-size:18px; gap:4px; padding-left:6px; padding-right:6px; }
  .nv26-nav .nv26-nav__free { font-size:16px; padding-left:10px; padding-right:10px; }
  .nv26-nav .nv26-nav__user { font-size:18px; padding-left:6px; padding-right:6px; }
  .nv26-nav__menu { padding:48px 24px 0; gap:20px; }
  .nv26-nav__intro { flex-basis:180px; }
  .nv26-nav__items { flex-basis:360px; }
  .nv26-nav__promo { display:none; }
  .nv26-nav__panel,.nv26-nav__panel-bg { height:480px; }
}
@media (min-width:769px) and (max-width:1359px) {
  .nv26-nav__toggle-label--full { display:none; }
  .nv26-nav__toggle-label--short { display:inline; }
  .nv26-nav .nv26-cart-label { display:none; }
  .nv26-nav #cart { width:40px; min-width:40px; padding:0; font-size:0; }
}
@media (min-width:769px) and (max-width:900px) {
  .nv26-nav__bar { gap:8px; }
  .nv26-nav__logo img { width:96px; }
  .nv26-nav .nv26-nav__toggle { font-size:16px; padding-left:4px; padding-right:4px; }
  .nv26-nav .nv26-nav__free { font-size:14px; }
  .nv26-nav .nv26-nav__user { font-size:16px; }
}
@media (min-width:1024px) and (max-width:1359px) {
  .nv26-nav__logo img { width:144px; }
  .nv26-nav .nv26-nav__toggle,.nv26-nav .nv26-nav__free,.nv26-nav .nv26-nav__user { font-size:20px; }
}
