@charset "utf-8";
/* CSS Document */


	  /* ================= 2. 導覽列滾動特效 ================= */
    #mainNav {
      transition: all 0.3s ease-in-out;
      padding: 15px 0;
    }

    /* 滾動後的樣式 */
    #mainNav.scrolled {
      background-color: #ffffff !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      padding: 10px 0; /* 縮小導覽列高度 */
    }

    /* ================= 3. 桌機版選單 Hover 展開特效 ================= */
    @media (min-width: 992px) {
      .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
      }
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ================= 4. 手機側邊選單 (Offcanvas) 樣式 ================= */
    /* 讓側選單選項的底線、間距更好看 */
    .offcanvas-body .nav-link {
      font-size: 1.1rem;
      padding: 12px 15px;
      border-bottom: 1px solid #f0f0f0;
      color: #333 !important; /* 強制文字為深色 */
    }
    .offcanvas-body .nav-link:hover {
      background-color: #f8f9fa;
      color: #0d6efd !important;
    }
    
    /* 設定前方圖示的固定寬度，讓後面的文字對齊更整齊 */
    .nav-link i {
      display: inline-block;
      width: 30px; 
      text-align: center;
      margin-right: 5px;
      color: #6c757d; /* 圖示預設顏色 */
    }
    .nav-link:hover i {
      color: #0d6efd; /* 滑鼠移過去圖示變色 */
    }

    /* 消除最後一個項目的底線 */
    .offcanvas-body .nav-item:last-child .nav-link {
      border-bottom: none;
    }
 
	  
    /* 全局與醫療視覺風格設定 */
    body {
      font-family: 'Noto Sans TC', sans-serif;
      background-color: #f8fbfc;
      color: #333;
      scroll-behavior: smooth;
    }
    
    /* 區塊標題設計 */
    .section-title {
	  text-align: center;
      position: relative;
      font-weight: 800;
      color: #1a4d65;
      padding-bottom: 12px;
      margin-bottom: 40px;
      margin-top: 60px;
	  scroll-margin-top: 80px; /* 新增這行：預留頂部導覽列的空間 */
    }
    .section-title::after {
	  text-align: center;
      content: '';
      position: absolute;
      left: 45%;
      bottom: 0;
      width: 60px;
      height: 4px;
      background-color: #ff9800;
      border-radius: 2px;
    }

    /* 養成計畫流程圖卡片 */
    .timeline-card {
      border: none;
      border-radius: 12px;
      transition: all 0.3s ease;
      color: white;
    }
    .timeline-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
    }
    .timeline-step {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 1.1rem;
      font-weight: 500;
    }
    
    /* 數據圖表與表格設計 (數據分析視覺化) */
    .data-table-wrapper {
      background: white;
      border-radius: 12px;
      padding: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      margin-bottom: 20px;
    }
    .table-medical thead th {
      background-color: #278590;
      color: white;
      text-align: center;
      font-weight: 500;
      border: none;
    }
    .table-medical-alt thead th {
      background-color: #CDBBA5;
      color: white;
    }
    .table-medical tbody td, .table-medical-alt tbody td {
      vertical-align: middle;
      color: #4a5568;
    }
    
    /* 互動式手風琴 (Accordion) */
    .accordion-button {
      font-weight: 700;
      color: #1a4d65;
      background-color: #eef5f9;
    }
    .accordion-button:not(.collapsed) {
      background-color: #278590;
      color: white;
    }

    /* 課程與師資卡片 */
    .course-card {
      border: 2px solid transparent;
      border-radius: 16px;
      transition: all 0.3s;
      background: white;
    }
    .course-card:hover {
      border-color: #278590;
      box-shadow: 0 8px 20px rgba(39, 133, 144, 0.15);
    }
    .testimonial-card {
      background: white;
      border-left: 5px solid #278590;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      height: 100%;
    }

    /* 導覽分頁 (Tabs) 優化 */
    .nav-pills .nav-link {
      color: #4a5568;
      font-weight: 600;
      border-radius: 30px;
      margin: 0 5px 10px 0;
      border: 1px solid #e2e8f0;
      background: white;
    }
    .nav-pills .nav-link.active {
      background-color: #278590;
      color: white;
      border-color: #278590;
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, #1a4d65 0%, #278590 100%);
      color: white;
      padding: 60px 20px;
      text-align: center;
      margin-top: 80px;
    }
    .cta-btn {
      background-color: #ffc107;
      color: #333;
      font-weight: 700;
      padding: 12px 30px;
      border-radius: 30px;
      text-decoration: none;
      display: inline-block;
      margin-top: 20px;
      transition: transform 0.2s;
    }
    .cta-btn:hover {
      transform: scale(1.05);
      color: #000;
    }
    
    footer {
      background-color: #2d3748;
      color: #e2e8f0;
      padding: 40px 0 20px;
      font-size: 0.9rem;
    }
	  table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 40px;
        }
        th, td {
            border: 1px solid #cbd5e1;
            padding: 12px;
            text-align: center;
        }
        th {
            background-color: #f8fafc;
            color: #475569;
            font-weight: bold;
        }
        tr:nth-child(even) td {
            background-color: #fbfbfc;
        }
        tr:hover td {
            background-color: #f1f5f9;
        }
        .total-row td {
            background-color: #fff3e0 !important;
            font-weight: bold;
            color: #d35400;
        }
