@charset "utf-8";
  /* ================= 1. 網頁背景 (測試滾動用) ================= */
 :root {
            --primary-color: #1a365d;
            --secondary-color: #2b6cb0;
            --accent-color: #ed8936;
            --bg-color: #f7fafc;
            --text-color: #2d3748;
			--accent-color2:#d4af37;
        }
 body {
			 padding-top: 0;
             height: auto;
             /* 漸層背景方便看清透明導覽列的效果 */
            background: linear-gradient(135deg, #f8f9fa 0%, #e9f0f4 100%);
            font-family: 'Noto Sans TC', sans-serif;
            margin: 0;
            padding: 0;
             /* background-color: var(--bg-color); */
            color: var(--text-color);
            line-height: 1.6;
        }
/* 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;
    }

   /* 頁尾 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;
    } 

  .h2-section-title {
	  font-size: 2.5em;
	  text-align: center;
      position: relative;
      font-weight: 800;
      color: #1a4d65;
      padding-bottom: 12px;
      margin-bottom: 40px;
      margin-top: 60px;
    }
   .h2-section-title::after {
	  text-align: center;
      content: '';
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 60px;
      height: 4px;
      background-color: #ff9800;
      border-radius: 2px;
    }


 /* 師資介紹 */
        .teachers-section { 
            padding: 80px 20px; 
            text-align: center; 
            background: white;
        }
        
        .section-title {
            font-size: 2.5em;
            color: var(--primary-color);
            margin-bottom: 50px;
            position: relative;
            display: inline-block;
		    scroll-margin-top: 80px; /* 新增這行：預留頂部導覽列的空間 */

        }
        
        .section-title::after {
            content: '';
            width: 60%;
            height: 4px;
            background: var(--accent-color);
            position: absolute;
            bottom: -10px;
            left: 20%;
            border-radius: 2px;
        }

        .teachers-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
            gap: 40px; 
            max-width: 1200px; 
            margin: 0 auto; 
        }

        .teacher-card { 
            background: var(--bg-color); 
            border-radius: 15px; 
            overflow: hidden; 
            box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
            transition: all 0.4s ease; 
            position: relative; 
            border: 1px solid #e2e8f0;
        }

        .teacher-card:hover { 
            box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
            transform: translateY(-5px); 
        }

        .img-container {
            width: 100%;
            height: 300px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-bottom: 3px solid #e2e8f0;
        }

        .teacher-img { 
            height: 100%; 
            object-fit: contain;
            transition: transform 0.5s ease;
        }
        
        .teacher-card:hover .teacher-img {
            transform: scale(1.05);
        }

        .teacher-info { 
            padding: 25px; 
            text-align: left; 
        }

        .subject-badge { 
            background: var(--primary-color); 
            color: white; 
            padding: 6px 12px; 
            border-radius: 20px; 
            font-size: 0.85em; 
            font-weight: bold; 
            display: inline-block;
            margin-bottom: 10px;
        }

        .teacher-name { 
            font-size: 1.5em; 
            font-weight: bold; 
            margin: 5px 0 15px 0; 
            color: var(--text-color);
        }
        
        .teacher-tagline {
            font-size: 0.65em;
            color: #718096;
            margin-left: 10px;
            font-weight: normal;
            border-left: 2px solid var(--accent-color);
            padding-left: 8px;
        }

        .teacher-desc { 
            font-size: 0.95em; 
            color: #4a5568; 
            line-height: 1.7; 
        }
        .btn-try {
            margin-top: 20px;
            display: block;
            width: 100%;
            padding: 12px;
            background-color: var(--accent-color2);
            color: white;
            text-align: center;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
			text-decoration: none; 
        }

        .btn-try:hover {
            background-color: #b8962e;
        }