/*for indes.html*/
:root {
    /* 定義圖片中的主色調 */
    --primary-color: #009688;
    /* 接近圖片的藍綠色 */
    --secondary-bg: #fffbf0;
    /* 接近圖片的淺黃色背景 */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --text-muted: #666;
}

.body1 {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    /* 防止背景裝飾溢出 */
}

/* 導覽列設定 */
.navbar-brand img {
    height: 50px;
    /* 調整 Logo 高度 */
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 標題樣式 */
.section-title {
    color: #666;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

/* 關於我們區塊 */
.about-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 最新消息列表 */
.news-list .list-group-item {
    border: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.news-date {
    color: #e76f51;
    /* 橘紅色日期 */
    font-weight: bold;
    margin-right: 15px;
    min-width: 100px;
}

/* 師資介紹 (圓形頭像) */
.teacher-img {
    /* width: 120px;
    height: 120px; */
    width: 75%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.1);
}

.teacher-card h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
}
.teacher-card p {
    font-size: 16px;
}


/* 課程介紹區塊 (淺黃背景) */
.courses-section {
    background-color: var(--secondary-bg);
    border-radius: 30px;
    padding: 40px 20px;
    margin-top: 50px;
}

.courses-section h5 a {
    color: #333;
    text-decoration: none;
}

.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.course-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 頁尾 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    /* 模擬圖片下方的弧形效果，這裡用圓角代替 */
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
}

.footer-logo {
    max-width: 150px;
    border-radius: 50%;
    border: 3px solid white;
}

/* 裝飾性背景 (選用) */
.bg-decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.2;
}



/*for teacher.html*/
.body2 {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* 麵包屑導航 */
.breadcrumb-section {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 左側講師卡片 */
.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    /* 捲動時固定 */
}

.profile-img-container {
    position: relative;
    background-color: var(--secondary-bg);
    padding: 30px;
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link {
    width: 35px;
    height: 35px;
    background-color: #f1f1f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #555;
    margin: 0 5px;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 右側內容區塊 */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.content-card ul {
    color: #6c757d;
}

#notice {
    word-break: break-all;
}

.enroll-card img {
    max-width: 80%;
}

.section-heading {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #444;
}

/* 經歷時間軸樣式 */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    border-left: 2px solid #e9ecef;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-year {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* 技能標籤 */
.skill-badge {
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(0, 150, 136, 0.1);
    /* 主色調的淺色版 */
    color: var(--primary-color);
    margin-right: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

/* 課程小卡 */
.mini-course-card {
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.mini-course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}



/*for course.html*/
/* 通用區塊標題 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}
.section-header h3 {
    margin: 0;
    font-weight: bold;
    color: var(--primary-color);
    padding-right: 15px;
    border-right: 3px solid #ddd;
    margin-right: 15px;
}
.section-header span {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* 課程主圖區 */
.course-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 內容卡片 */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

/* 課程詳情列表 (Icon List) */
.detail-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: start;
}
.detail-list i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
    font-size: 1.1rem;
}

/* 課程大綱表格 (仿參考圖) */
.syllabus-table thead {
    background-color: var(--primary-color);
    color: white;
}
.syllabus-table th, .syllabus-table td {
    padding: 15px;
    vertical-align: middle;
}
.syllabus-table tr:nth-child(even) {
    background-color: #f8fdfc; /* 極淡的綠色條紋 */
}

/* 側邊欄報名卡 (Sticky) */
.enroll-card {
    background: white;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    padding: 25px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0,150,136,0.1);
}
.price-tag {
    color: #e76f51;
    font-size: 2rem;
    font-weight: bold;
}
.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

/* 報名表單區塊 */
.form-section {
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 40px;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 136, 0.25);
}
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-success:hover, .btn-outline-success:active {
    color: #FFF !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    color: #FFF !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}



/*for story.html*/
/* Hero Section (品牌形象大圖) */
.brand-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/story_banner.jpg'); /* 背景圖 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}
.brand-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 50, 40, 0.6); /* 深綠色遮罩 */
}
.brand-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}
.brand-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.brand-hero p {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif; /* 英文字體增加優雅感 */
    font-style: italic;
    opacity: 0.9;
}

/* 左右交錯圖文區塊 (Story Sections) */
.story-section {
    padding: 40px 0;
}
.story-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px; /* 圓角呼應碩遠風格 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.story-text-wrapper {
    padding: 20px 40px;
}
.story-title {
    color: var(--primary-color); /* 改用 Teal 色 */
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.story-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ffd700; /* 黃色裝飾線 */
    bottom: -10px;
    left: 0;
}
.en-subtitle {
    display: block;
    font-size: 2.5rem;
    color: rgba(0,0,0,0.05); /* 極淡的背景浮水印文字 */
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: -1;
}

/* 品牌核心 (Core Values) - 淺黃色背景 */
.core-values-section {
    background-color: var(--secondary-bg);
    padding: 80px 0;
    margin-top: 60px;
}
.value-card {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-card:hover {
    transform: translateY(-10px);
}
.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 創辦人語錄 (Founder Quote) */
.quote-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}
.quote-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}
.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}
.founder-name {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}


/*for blog.html*/
html {
    scroll-behavior: smooth;
    /* 讓錨點跳轉有平滑捲動效果 */
    scroll-padding-top: 100px;
    /* 避免捲動後標題被導覽列遮住 */
}

/* 文章內容卡片 */
.article-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

/* 文章標題區 */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-tag {
    background-color: var(--secondary-bg);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.article-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 內文樣式 */
.article-content h2 {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid #ffd700;
    padding-left: 15px;
}

.article-content h3 {
    color: #555;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-content img {
    border-radius: 10px;
    margin: 20px 0;
    max-width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 引用區塊 */
blockquote {
    background-color: var(--secondary-bg);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* 程式碼區塊 (仿 VS Code 風格) */
pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    margin: 20px 0;
    position: relative;
}

pre::before {
    content: "C#";
    /* 語言標籤 */
    position: absolute;
    top: 0;
    right: 0;
    background: #444;
    color: #fff;
    padding: 2px 10px;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 右側懸浮目錄 (Sticky TOC) */
.toc-card {
    position: sticky;
    top: 100px;
    /* 距離頂部的高度 */
    background: white;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.toc-header {
    background-color: var(--secondary-bg);
    padding: 15px 20px;
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    border-bottom: 1px solid #f9f9f9;
}

.toc-link {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.toc-link:hover,
.toc-link.active {
    background-color: #f0fdfc;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* 作者小卡 */
.author-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #eee;
    text-align: center;
}



/*for teachers.html*/
/* 講師卡片 */
.teacher-list-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    /* 讓同列卡片等高 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.teacher-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    background-color: var(--secondary-bg);
    padding: 30px;
    text-align: center;
}

.teacher-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #e0f2f1;
    color: var(--primary-color);
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.btn-outline-primary-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: white;
}



/*for course_detail.html*/
/* 搜尋與篩選區塊 */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* 標籤按鈕 (Pills) */
.nav-pills .nav-link {
    color: #666;
    background-color: #f1f1f1;
    margin-right: 10px;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* 課程列表卡片 */
.course-card-lg {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
}

.course-card-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 圖片容器與標籤 */
.card-img-top-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card-lg:hover .card-img-top-wrapper img {
    transform: scale(1.1);
}

.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
}

.bg-hot {
    background-color: #ff5722;
}

.bg-new {
    background-color: #2196f3;
}

.bg-full {
    background-color: #9e9e9e;
}

/* 卡片內容 */
.course-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.course-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-title a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.course-title a:hover {
    color: var(--primary-color);
}

.course-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-info i {
    color: var(--primary-color);
    margin-right: 4px;
}

.teacher-row {
    display: flex;
    align-items: center;
    margin-top: auto;
    /* 推到底部 */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.teacher-avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.price-section {
    margin-left: auto;
    text-align: right;
}

.price-original {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: #999;
}

.price-current {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e76f51;
}



/*for blog_list.html*/
/* 上方精選文章 (Card) */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #e0f2f1;
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
}

/* 下方文章列表 (Table) */
.table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.custom-table thead {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

.custom-table th {
    border-bottom: 2px solid var(--primary-color);
    padding: 15px;
    font-weight: bold;
}

.custom-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.custom-table tr:hover {
    background-color: #fcfcfc;
}

.list-date {
    color: #888;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.list-category .badge {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: normal;
}

.list-title a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: block;
    /* 讓點擊範圍大一點 */
}

.list-title a:hover {
    color: var(--primary-color);
}

/* 分頁樣式 */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 3px;
    border-radius: 5px;
    font-weight: bold;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: #e0f2f1;
}