/* =========================================================
   國立中央大學 智慧生醫國際學士班 - 全站共用樣式表
   適用頁面: index.html, index-en.html, about.html, curriculum.html
   更新重點: Banner 全面滿版 (100vw)[cite: 7]
   ========================================================= */

/* 1. 全域重設與基礎字級排版 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* =========================================================
   2. 頂部全域導覽列 (Site Header)
   ========================================================= */
.site-header {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.header-inner {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 品牌標誌與院系抬頭 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.ncu-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.9);
}

.ncu-logo.small {
  width: 60px;
  height: 60px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f2d59;
  display: block;
  line-height: 1.2;
}

.brand-text span {
  font-size: 9.5px;
  color: #64748b;
  letter-spacing: 0.5px;
}

.divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
  margin: 0 4px;
}

.program-name {
  display: flex;
  flex-direction: column;
  line-height: 0.8;
}

.program-name b {
  font-size: 16px;
  color: #0284c7;
  font-weight: 700;
}

.program-name span {
  font-size: 14px;
  font-weight: 800;
  color: #0284c7;
}

/* 桌機版導覽連結 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.main-nav a:not(.apply-pill-btn):not(.lang-item):hover,
.main-nav a.active {
  color: #0284c7;
}

/* 正下方下拉選單 (Dropdown Menu)[cite: 7] */
.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 72px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.caret {
  font-size: 22px;
  color: #0284c7;
  transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 165px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 8px 6px;
  z-index: 120;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: #0284c7;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* 右上角膠囊語系切換器[cite: 7] */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 2px;
}

.lang-pill .lang-item {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 9999px;
}

.lang-pill .lang-item.active {
  background-color: #ffffff;
  color: #0066cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lang-pill .lang-divider {
  color: #cbd5e1;
  font-size: 11px;
}

.lang-pill.mini {
  padding: 2px;
  gap: 1px;
}

.lang-pill.mini .lang-item {
  font-size: 12px;
  padding: 3px 8px;
}

/* 右上角漸層藍色立即報名按鈕[cite: 7] */
.apply-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(90deg, #1d6fee 0%, #0099ff 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(29, 111, 238, 0.25);
  white-space: nowrap;
}

.apply-pill-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.apply-pill-btn:hover {
  box-shadow: 0 5px 14px rgba(29, 111, 238, 0.35);
  transform: translateY(-1px);
}

/* 手機版工具區與漢堡選單開關[cite: 7] */
.mobile-header-tools {
  display: none;
  align-items: center;
  gap: 12px;
}

.menu-toggle-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #0f3d7a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(9.75px) rotate(45deg);
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-9.75px) rotate(-45deg);
}

/* 手機版抽屜式導覽面版[cite: 7] */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.mobile-drawer-inner {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-accordion {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.drawer-accordion-title {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

.drawer-accordion-title::-webkit-details-marker {
  display: none;
}

.drawer-accordion-arrow {
  color: #0284c7;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.drawer-accordion[open] .drawer-accordion-arrow {
  transform: rotate(180deg);
}

.drawer-submenu {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px 16px;
  gap: 4px;
}

.drawer-submenu a {
  padding: 8px 12px;
  font-size: 15px;
  color: #475569;
  border-radius: 6px;
}

.drawer-submenu a:hover {
  color: #0284c7;
  background-color: #f8fafc;
}

.drawer-link {
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}

.drawer-link:hover {
  color: #0284c7;
}

.drawer-actions {
  margin-top: 14px;
}

.apply-pill-btn.full-width {
  width: 100%;
  padding: 11px 0;
  font-size: 15.5px;
}

/* =========================================================
   3. 首頁專用：主視覺 Banner 輪播模組（滿版寬度 100vw 設定）[cite: 7]
   ========================================================= */
.banner-carousel-section {
  width: 100%;
  background: linear-gradient(135deg, #091e3a 0%, #0c335e 50%, #0369a1 100%);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.banner-carousel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 15% 120%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* ★ 移除 max-width 限制，改為滿版 100%[cite: 7] */
.carousel-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.carousel-slides {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 600px;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

/* 圖片橫向填滿整個螢幕[cite: 7] */
.banner-img {
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 左右切換箭頭 (貼合滿版邊界)[cite: 7] */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.carousel-container:hover .carousel-arrow,
.carousel-container:focus-within .carousel-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.8);
}

.carousel-arrow.prev { left: 28px; }
.carousel-arrow.next { right: 28px; }

@media (hover: none) {
  .carousel-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* 輪播指示圓點[cite: 7] */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dots .dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 10px;
}

/* 滿版懸浮行動呼籲按鈕[cite: 7] */
.banner-overlay-actions {
  position: absolute;
  left: 48px;
  bottom: 30px;
  display: none;
  gap: 14px;
  z-index: 10;
}

.banner-carousel-section.show-overlay-actions .banner-overlay-actions {
  display: flex;
}

.banner-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.banner-primary-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.banner-primary-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.banner-outline-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.banner-outline-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   4. 內頁專用微型 Banner (Compact Banner)
   ========================================================= */
.compact-banner {
  position: relative;
  width: 100%;
  height: 96px;
  background: linear-gradient(135deg, #091e3a 0%, #0c335e 50%, #0369a1 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.compact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 15% 120%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  pointer-events: none;
}

.compact-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.compact-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.compact-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.compact-banner .breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.home-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  vertical-align: -2px;
}

.compact-banner .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.compact-banner .breadcrumb .current {
  color: #ffffff;
  font-weight: 700;
}

/* =========================================================
   5. 內頁主版心 (對齊上方 Banner 邊界)
   ========================================================= */
.page-layout {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 70px;
}

.page-layout.has-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.sub-sidebar {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  padding: 8px 12px 12px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.sidebar-link:hover {
  background-color: #f8fafc;
  color: #0284c7;
}

.sidebar-link.active {
  background-color: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
}

.main-article {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
  padding: 42px 48px;
}

.article-intro {
  font-size: 17.5px;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 32px;
}

.article-intro strong {
  color: #0284c7;
}

.news-detail-container {
  width: 100%;
  max-width: 964px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.news-detail-card {
  padding: 40px 48px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.detail-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.detail-meta .tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.detail-title {
  margin: 16px 0 0;
  color: #142e57;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-content {
  padding: 28px 0 12px;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.detail-content p {
  margin: 0 0 18px;
}

.detail-content h3 {
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #0284c7;
  color: #142e57;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-content img {
  max-width: 100%;
  height: auto;
}

.detail-navigation {
  display: flex;
  justify-content: flex-start;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.back-to-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.back-to-list-btn:hover {
  border-color: #0284c7;
  color: #0369a1;
}

.back-to-list-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.clean-sidebar {
  position: sticky;
  top: 92px;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 12px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-list a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.sidebar-nav-list a:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.sidebar-nav-list li.active a {
  background-color: #ffffff;
  color: #0284c7;
  border-left-color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.article-section {
  margin-bottom: 34px;
}

.article-section h2 {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.article-section p {
  font-size: 15.5px;
  color: #475569;
  margin-bottom: 14px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.clean-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #e2e8f0;
}

.clean-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.clean-box p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: #334155;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0284c7;
}

.clean-list strong {
  color: #0f172a;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 14px;
}

.minimal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.minimal-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.minimal-table th:first-child {
  width: 32%;
}

.minimal-table th:nth-child(2) {
  width: 68%;
}

.minimal-table td {
  padding: 14px 16px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.minimal-table tbody tr:nth-child(1) td:first-child {
  color: #0284c7;
  font-weight: 700;
}

.minimal-table tbody tr:nth-child(2) td:first-child {
  color: #7c3aed;
  font-weight: 700;
}

.minimal-table tbody tr:nth-child(3) td:first-child {
  color: #0f766e;
  font-weight: 700;
}

.minimal-table tr:last-child td {
  border-bottom: none;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 38px 0 14px;
  position: relative;
  padding-left: 14px;
  border-left: 4.5px solid #0284c7;
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-desc {
  font-size: 15.5px;
  color: #475569;
  margin-bottom: 20px;
}

/* =========================================================
   6. 首頁與內頁共用 Section 規範 (max-width: 1240px)[cite: 7]
   ========================================================= */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.heading-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-title h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
  color: #0f172a;
}

.sub-en {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 1px;
}

.heading-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-blue { color: #0284c7; }
.icon-cyan { color: #06b6d4; }

.more-link {
  font-size: 15px;
  font-weight: 700;
  color: #0284c7;
}

.more-link:hover {
  text-decoration: underline;
}

/* =========================================================
   7. 最新消息列表 (News Section)[cite: 7]
   ========================================================= */
.news-list {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  gap: 18px;
}

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

.news-item:hover {
  background-color: #f8fafc;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.news-item time {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
  min-width: 95px;
}

.tag {
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }

.news-title {
  flex: 1;
  font-size: 16.5px;
  font-weight: 600;
  color: #1e293b;
}

.news-title:hover {
  color: #0284c7;
}

.news-arrow {
  font-size: 20px;
  color: #94a3b8;
}

.news-page-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.news-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 18px;
  border-bottom: 1px solid #e2e8f0;
}

.news-category-tabs .tab-btn {
  flex: 0 0 auto;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  padding: 8px 16px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.news-category-tabs .tab-btn:hover {
  border-color: #0284c7;
  color: #0369a1;
}

.news-category-tabs .tab-btn.active {
  border-color: #0369a1;
  background: #0369a1;
  color: #ffffff;
}

.news-table-wrap {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr) 32px;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e9eef3;
  transition: background-color 0.18s ease;
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row:hover {
  background: #f8fafc;
}

.news-row.is-pinned {
  background: #f8fbff;
}

.row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.row-meta time {
  white-space: nowrap;
}

.pin-badge {
  border-radius: 4px;
  padding: 3px 7px;
  background: #0369a1;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.row-meta .tag {
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
}

.tag-gray {
  background: #f1f5f9;
  color: #475569;
}

.row-content {
  min-width: 0;
}

.row-title {
  margin: 0;
  color: #1e293b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.row-title a:hover {
  color: #0369a1;
}

.row-excerpt {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.row-action-link {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #64748b;
}

.row-action-link:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.row-action-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.news-empty-state {
  margin: 0;
  padding: 32px 24px;
  color: #64748b;
  text-align: center;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.news-pagination-list {
  display: flex;
  gap: 6px;
  list-style: none;
}

.news-pagination .page-link {
  min-width: 36px;
  height: 36px;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}

.news-pagination .page-item.active .page-link {
  border-color: #0369a1;
  background: #0369a1;
  color: #ffffff;
}

.news-pagination .page-item.disabled .page-link {
  color: #a8b3c0;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .news-page-container {
    padding: 22px 16px 44px;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 10px 12px;
    padding: 16px;
  }

  .row-meta {
    grid-column: 1 / -1;
  }

  .row-title {
    font-size: 15px;
  }

  .news-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   8. 學院與學程亮點 (Highlights)[cite: 7]
   ========================================================= */
.highlights-section {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 48px 0;
}

.highlights-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.intro-col h2 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #0f172a;
  font-weight: 800;
}

.accent-line {
  width: 44px;
  height: 3.5px;
  background: #0284c7;
  border-radius: 2px;
  margin-bottom: 16px;
}

.intro-col p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 18px;
}

.text-link {
  font-size: 15px;
  font-weight: 700;
  color: #0284c7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: #f8fafc;
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.round-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.round-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.bg-purple { background: #8b5cf6; }
.bg-green { background: #10b981; }
.bg-blue { background: #0284c7; }

.feature-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: #0f172a;
  font-weight: 800;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* =========================================================
   9. 四階段學習路徑 (Learning Pathway)[cite: 7]
   ========================================================= */

/* ===== 課程規劃區塊 ===== */

.learning-pathway {
  width: 100%;
  padding: 30px 24px;
  background: #f7f9fc;
  box-sizing: border-box;
}

/* 內層容器：讓標題與卡片整體置中 */
.pathway-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== 標題 ===== */

.pathway-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 auto 36px;
  text-align: center;
}

.pathway-heading h2 {
  margin: 0;
  color: #202b3c;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
}

.pathway-heading p,
.pathway-heading .sub-en {
  display: block;
  margin: 4px 0 0;
  color: #718096;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.heading-line {
  width: 120px;
  height: 3px;
  flex-shrink: 0;
  background: #cbd5e1;
}

/* ===== 卡片排列：桌機維持四欄水平排列 ===== */

.pathway-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

/* ===== 單張卡片 ===== */

.pathway-card {
  --step-color: #078bc2;

  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  min-width: 0;
  min-height: 150px;
  padding: 14px 12px 14px 16px;

  background: #fff;
  border: 1px solid #e1e8f0;
  border-top: 6px solid var(--step-color);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgb(30 55 90 / 4%);
  box-sizing: border-box;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pathway-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgb(30 55 90 / 9%);
}

/* 四階段顏色 */

.step-blue {
  --step-color: #078bc2;
}

.step-cyan {
  --step-color: #12a9df;
}

.step-purple {
  --step-color: #8b5cf6;
}

.step-green {
  --step-color: #10b981;
}

/* ===== 文字區 ===== */

.pathway-text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
}

.step-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* 英文標題：允許自然換行，不強制拆字 */
.pathway-text h3 {
  margin: 0 0 6px;
  color: #202b3c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* 課程說明 */
.pathway-text p {
  margin: 0;
  color: #84909f;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ===== 右側圓形圖片 ===== */

.pathway-image {
  display: block;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  max-width: none;

  border-radius: 50%;
  object-fit: cover;
  object-position: center;

  background: #eef3f8;
}

/* 個別圖片裁切位置，可依實際圖片調整 */

.step-blue .pathway-image {
  object-position: center;
}

.step-cyan .pathway-image {
  object-position: center;
}

.step-purple .pathway-image {
  object-position: center 35%;
}

.step-green .pathway-image {
  object-position: center 35%;
}

/* ===== 卡片之間的箭頭 ===== */

.pathway-arrow {
  position: absolute;
  z-index: 2;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);

  color: #2587bd;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

/* 最後一張卡片不需要箭頭 */
.pathway-card:last-child .pathway-arrow {
  display: none;
}

/* ===== 平板 ===== */

@media (max-width: 1100px) {
  .learning-pathway {
    padding: 28px 22px;
  }

  .pathway-inner {
    max-width: 760px;
  }

  .pathway-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pathway-arrow {
    display: none;
  }

  .pathway-card {
    min-height: 145px;
    padding: 14px 14px 14px 16px;
  }

  .step-label {
    font-size: 14px;
  }

  .pathway-text h3 {
    font-size: 18px;
  }

  .pathway-text p {
    font-size: 14px;
  }

  .pathway-image {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
  }
}

/* ===== 手機 ===== */

@media (max-width: 600px) {
  .learning-pathway {
    padding: 28px 16px;
  }

  .pathway-inner {
    max-width: 100%;
  }

  .pathway-heading {
    gap: 12px;
    margin-bottom: 28px;
  }

  .pathway-heading h2 {
    font-size: 25px;
    letter-spacing: 1px;
  }

  .pathway-heading p,
  .pathway-heading .sub-en {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .heading-line {
    width: 36px;
  }

  .pathway-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pathway-card {
    min-height: 125px;
    padding: 14px 16px;
  }

  .step-label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .pathway-text h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .pathway-text p {
    font-size: 13px;
    line-height: 1.5;
  }

  .pathway-image {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
  }
}


/* =========================================================
   10. 三大專業領域 (Specialty)[cite: 7]
   ========================================================= */
.special-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.panel-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.panel-header h3 {
  font-size: 20px;
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.dot-icon { font-size: 22px; }
.dot-icon.purple { color: #8b5cf6; }
.dot-icon.star { color: #f59e0b; }

.domain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.domain-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.domain-item .badge {
  background: #8b5cf6;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.domain-text h4 {
  font-size: 16.5px;
  margin: 0 0 4px;
  color: #0f172a;
  font-weight: 700;
}

.domain-text p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.domain-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.domain-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 26px;
  background: #fafcff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.domain-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.domain-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.domain-tag {
  background: #0284c7;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.domain-tag.purple { background: #7c3aed; }
.domain-tag.teal { background: #0f766e; }

.domain-block h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.domain-block p {
  font-size: 14.5px;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.65;
}

.domain-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* =========================================================
   11. 四大優勢網格 (Advantages Grid)[cite: 7]
   ========================================================= */
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.adv-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
}

.bg-blue-light { background: #e0f2fe; }
.bg-green-light { background: #dcfce7; }
.bg-purple-light { background: #f3e8ff; }
.bg-cyan-light { background: #cffafe; }

.adv-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.adv-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.text-blue { color: #0284c7; }
.text-green { color: #10b981; }
.text-purple { color: #8b5cf6; }
.text-cyan { color: #06b6d4; }

.adv-item strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 2px;
}

.adv-item p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

/* =========================================================
   12. 行動呼籲 Banner (CTA Section)[cite: 7]
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, #091e3a 0%, #0c335e 50%, #0369a1 100%);
  color: #ffffff;
  padding: 50px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 800;
  color: #fff;
}

.cta-banner p {
  font-size: 17px;
  margin: 0 0 24px;
  opacity: 0.9;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn-white {
  background: #ffffff;
  color: #0284c7;
  padding: 11px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.cta-btn-white:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
}

.cta-btn-trans {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 11px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.cta-btn-trans:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   13. 聯絡我們與頁尾 (Site Footer: 1240px 版心)[cite: 7]
   ========================================================= */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.8fr;
  gap: 36px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-info strong {
  color: #ffffff;
  font-size: 17px;
  display: block;
  line-height: 1.2;
}

.footer-brand-info small {
  font-size: 10px;
  color: #64748b;
  display: block;
}

.inst-name {
  color: #cbd5e1;
  font-size: 14px;
  margin: 8px 0 12px;
}

.copyright {
  font-size: 12px;
  color: #64748b;
}

.footer-col h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-contact p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #38bdf8;
}

/* =========================================================
   14. 響應式佈局適配 (Responsive Breakpoints)[cite: 7]
   ========================================================= */
@media (max-width: 1024px) {
  .highlights-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .special-wrap {
    grid-template-columns: 1fr;
  }
  .path-grid,
  .pathway-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .path-next-icon,
  .flow-step::after {
    display: none;
  }
  .page-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
  .sub-sidebar {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .carousel-arrow.prev { left: 16px; }
  .carousel-arrow.next { right: 16px; }
  .banner-overlay-actions { left: 24px; }
  .carousel-dots { right: 24px; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-header-tools {
    display: flex;
  }
  .program-name, .divider {
    display: none;
  }
  .mobile-drawer.open,
  .mobile-drawer.active {
    display: block;
  }

  /* 手機版 Banner 滿版設定[cite: 7] */
  .carousel-slides {
    min-height: 0;
    max-height: none;
  }
  .carousel-slide {
    height: auto;
  }
  .banner-img {
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }
  .banner-overlay-actions {
    position: static;
    padding: 16px 20px;
    background: #091e3a;
    justify-content: center;
  }
  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .carousel-dots {
    bottom: 6px;
    right: 10px;
  }

  .compact-banner {
    height: 84px;
  }
  .banner-title {
    font-size: 22px;
  }
  .page-layout {
    padding: 20px 16px 50px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clean-sidebar {
    position: static;
  }
  .sidebar-nav-list {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-nav-list a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
  }
  .sidebar-nav-list li.active a {
    border-left: none;
    border-bottom-color: #0284c7;
  }
  .cards-row {
    grid-template-columns: 1fr;
  }
  .main-article {
    padding: 24px 18px;
  }
  .news-detail-container {
    padding: 24px 16px 44px;
  }
  .news-detail-card {
    padding: 24px 18px;
  }
  .detail-title {
    font-size: 23px;
  }
  .detail-content {
    font-size: 15px;
  }

  .features-grid,
  .path-grid,
  .pathway-flow {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .news-meta {
    width: 100%;
  }
  .news-title {
    width: calc(100% - 30px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}