/*
Theme Name: 童趣天地
Theme URI: https://tongqu.hk
Description: 香港專業兒童興趣班WordPress主題 - 完整復現HKClass網站全部功能，包括首頁、課程介紹、導師團隊、聯絡我們等所有頁面
Version: 1.2.1
Author: TongQu HK
Author URI: https://tongqu.hk
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tongqu
Tags: education, children, courses, responsive, chinese, hong-kong
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #45a049;
    --primary-light: #e8f5e9;
    --secondary-color: #2196F3;
    --secondary-dark: #0b7dda;
    --accent-color: #FF9800;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
}

/* ===== WP Content Wrapper (editable area) ===== */
.wp-content-wrapper {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl);
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
}
.wp-content-wrapper h2 { margin-top: var(--spacing-lg); }
.wp-content-wrapper h2:first-child { margin-top: 0; }
.wp-content-wrapper p { line-height: 1.75; }
.wp-content-wrapper ul, .wp-content-wrapper ol {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
    padding: 0;
}
.wp-content-wrapper li { margin-bottom: var(--spacing-xs); line-height: 1.6; }
.wp-content-wrapper blockquote {
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--spacing-lg) 0;
    font-style: italic;
}
.wp-content-wrapper blockquote p { margin: 0; }

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Noto Sans HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
p { margin-bottom: var(--spacing-md); line-height: 1.7; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-normal); }
a:hover { color: var(--primary-dark); }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: var(--shadow-md); color: #fff; }
.btn-secondary { background: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-large { padding: 16px 32px; font-size: var(--font-size-lg); }

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top {
    background: #f5f5f5;
    padding: 8px 0;
    font-size: var(--font-size-sm);
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-contact { display: flex; gap: 20px; }
.header-contact a { color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.header-contact a:hover { color: var(--primary-color); }
.header-social { display: flex; gap: 8px; }
.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-light);
    transition: all var(--transition-normal);
}
.header-social a:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); }

/* Navigation：主導航與 CTA 按鈕同列，避免按鈕被 flex-wrap 擠到 logo 下方 */
.main-nav { padding: 8px 0; }
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}
.main-nav-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}
.main-nav .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.main-nav .custom-logo-link img {
    max-height: 44px;
    width: auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--primary-color); font-size: var(--font-size-2xl); font-weight: 700; text-decoration: none; flex-shrink: 0; }
.site-logo i { font-size: 1.75rem; }
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    /* 桌面必須 visible，否則 overflow-x:auto 會形成捲動容器，子選單易變成佔位直排 */
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}
/* 極窄桌面仍要橫向捲主列時，僅在較小寬度啟用（子選單用 absolute 脫離，不佔 flex 高度） */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-nav .nav-menu {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.15) transparent;
    }
    .main-nav .nav-menu::-webkit-scrollbar { height: 4px; }
    .main-nav .nav-menu::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
}
.nav-menu li { position: relative; list-style: none; flex-shrink: 0; }
.nav-menu a {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.3;
    border-radius: var(--radius-md);
    transition: color var(--transition-normal), background var(--transition-normal);
    white-space: nowrap;
}
/* 頂層導航：懸停/當前頁為綠字 */
.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--primary-color);
    background: transparent;
}
/*
 * 子選單：強制掛在 .main-nav 下，避免被外掛或 core 樣式蓋成 display:block 而佔滿導航列
 * 使用 li > ul 直接子代，與 WordPress Walker 輸出一致
 */
.main-nav .nav-menu > li.menu-item-has-children > ul.sub-menu,
.main-nav .nav-menu > li.menu-item-has-children > ul.children,
.main-nav .nav-menu > li.menu-item-has-children > ul.dropdown-menu,
.main-nav .nav-menu > li.menu-item-has-children > ul {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 232px;
    max-width: min(320px, 92vw);
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}
/* 多層：預設隱藏 + 向右飛出 */
.main-nav .nav-menu .sub-menu li.menu-item-has-children > ul,
.main-nav .nav-menu .children li.menu-item-has-children > ul,
.main-nav .nav-menu .dropdown-menu li.menu-item-has-children > ul {
    display: none;
    top: 0;
    left: calc(100% + 4px);
    margin-top: 0;
    margin-left: 0;
}
.main-nav .nav-menu .sub-menu li,
.main-nav .nav-menu .dropdown-menu li,
.main-nav .nav-menu .children li {
    list-style: none;
    position: relative;
}
.main-nav .nav-menu .sub-menu li > a,
.main-nav .nav-menu .dropdown-menu li > a,
.main-nav .nav-menu .children li > a {
    display: block;
    padding: 11px 20px;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-color);
    background: transparent;
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}
.main-nav .nav-menu .sub-menu li > a:hover,
.main-nav .nav-menu .sub-menu li > a:focus-visible,
.main-nav .nav-menu .dropdown-menu li > a:hover,
.main-nav .nav-menu .dropdown-menu li > a:focus-visible,
.main-nav .nav-menu .children li > a:hover,
.main-nav .nav-menu .children li > a:focus-visible {
    color: var(--primary-color);
    background: var(--primary-light);
}
.nav-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}
.main-nav .nav-actions .btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
    line-height: 1.35;
    white-space: nowrap;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.hamburger { display: block; width: 24px; height: 2px; background: var(--text-color); position: relative; transition: all var(--transition-normal); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: var(--text-color); transition: all var(--transition-normal); }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

@media (min-width: 992px) {
    .main-nav .nav-menu > li.menu-item-has-children:hover > ul,
    .main-nav .nav-menu > li.menu-item-has-children:focus-within > ul {
        display: block;
    }
    .main-nav .nav-menu .sub-menu li.menu-item-has-children:hover > ul,
    .main-nav .nav-menu .sub-menu li.menu-item-has-children:focus-within > ul,
    .main-nav .nav-menu .children li.menu-item-has-children:hover > ul,
    .main-nav .nav-menu .children li.menu-item-has-children:focus-within > ul,
    .main-nav .nav-menu .dropdown-menu li.menu-item-has-children:hover > ul,
    .main-nav .nav-menu .dropdown-menu li.menu-item-has-children:focus-within > ul {
        display: block;
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero .container { display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1; }
.hero h1 { font-size: 2.75rem; margin-bottom: var(--spacing-md); line-height: 1.3; }
.hero-subtitle { font-size: var(--font-size-xl); color: var(--text-light); margin-bottom: var(--spacing-lg); }
.hero-stats { display: flex; gap: 30px; margin: var(--spacing-xl) 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-size: var(--font-size-3xl); font-weight: 700; color: var(--primary-color); }
.stat-label { font-size: var(--font-size-sm); color: var(--text-light); }
.hero-actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ===== Section Styles ===== */
.section { padding: var(--spacing-3xl) 0; }
.section-header { text-align: center; margin-bottom: var(--spacing-2xl); }
.section-header h2 { margin-bottom: var(--spacing-xs); }
.section-subtitle { color: var(--text-light); font-size: var(--font-size-lg); }
.section-header .view-all { color: var(--primary-color); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.section-header .view-all:hover { color: var(--primary-dark); }
.section-title { font-size: var(--font-size-3xl); margin-bottom: var(--spacing-xl); }
.text-center { text-align: center; }
.alt-bg { background: var(--bg-light); }

/* ===== Featured Courses ===== */
.featured-courses { padding: var(--spacing-3xl) 0; background: #fff; }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}
/* 首頁熱門課程：4 張卡片固定同一行（桌面） */
.featured-courses .courses-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    align-items: stretch;
}
/* shortcode 已包一層 .courses-grid 時，內層不佔欄位，卡片直接參與外層 4 欄 */
.featured-courses .courses-grid > .courses-grid {
    display: contents;
}
.course-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    z-index: 1;
}
.course-card .course-image { height: 200px; overflow: hidden; }
.course-card .course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.course-card:hover .course-image img { transform: scale(1.05); }
.course-card .course-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.course-card h3 { margin-bottom: 8px; font-size: var(--font-size-xl); }
.course-card h3 a { color: var(--text-color); }
.course-card h3 a:hover { color: var(--primary-color); }
.course-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; font-size: var(--font-size-sm); color: var(--text-light); }
.course-meta span { display: flex; align-items: center; gap: 5px; }
/* 簡介行數一致，避免底部錯位（僅第一個直接子 p，避免誤傷其他區塊） */
.course-card .course-content > p:first-of-type {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-sm);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.course-features {
    margin: 0 0 var(--spacing-sm);
    flex: 1 1 auto;
    min-height: 0;
}
.course-features ul { list-style: none; margin: 0; padding: 0; }
.course-features li { padding: 6px 0; font-size: var(--font-size-sm); display: flex; align-items: center; gap: 8px; }
.course-features li:last-child { padding-bottom: 0; }
.course-features i { color: var(--primary-color); flex-shrink: 0; }
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding-top: var(--spacing-md);
    border-top: 1px solid #eee;
    margin-top: auto;
}
.course-footer .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: var(--font-size-sm);
}
/* 無 .course-footer 包一層時，底部按鈕仍貼底對齊 */
.course-card .course-content > a.btn:last-child {
    margin-top: auto;
    align-self: flex-start;
}
.course-price {
    font-size: clamp(0.95rem, 1.8vw, 1.35rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-price span { font-size: 1.1em; }
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #f3e5f5);
    color: var(--primary-color);
}
.image-placeholder i { font-size: 3rem; margin-bottom: 10px; }
.image-placeholder span { font-size: var(--font-size-sm); font-weight: 500; }

/* ===== Features Section ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature { text-align: center; padding: 30px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.75rem;
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-light); margin: 0; }

/* ===== Why Choose Us ===== */
.why-choose-us { padding: var(--spacing-3xl) 0; background: var(--bg-light); }
.why-choose-us h2 { text-align: center; margin-bottom: var(--spacing-2xl); }

/* ===== Testimonials ===== */
.testimonials { padding: var(--spacing-3xl) 0; background: #fff; }
.testimonials-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial { background: var(--bg-light); padding: 30px; border-radius: var(--radius-lg); }
.testimonial-content p { font-size: var(--font-size-lg); font-style: italic; margin-bottom: 20px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-info h4 { margin: 0; font-size: var(--font-size-base); }
.author-info p { margin: 0; font-size: var(--font-size-sm); color: var(--text-light); }
.rating { display: flex; gap: 3px; color: #FFD700; }
.slider-nav { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: #ddd; border: none; cursor: pointer; padding: 0; transition: background var(--transition-normal); }
.slider-dot.active { background: var(--primary-color); }

/* ===== CTA Section ===== */
.cta { padding: var(--spacing-3xl) 0; background: linear-gradient(135deg, var(--primary-color), #66BB6A); text-align: center; }
.cta h2 { color: #fff; margin-bottom: var(--spacing-md); }
.cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--spacing-xl); font-size: var(--font-size-lg); }
.cta-content { max-width: 600px; margin: 0 auto; }
.enrollment-cta {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--secondary-color), #42a5f5);
    text-align: center;
}
.enrollment-cta h2 { color: #fff; margin-bottom: var(--spacing-sm); }
.enrollment-cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--spacing-lg); }
.cta-buttons { display: flex; gap: var(--spacing-md); justify-content: center; flex-wrap: wrap; }

/* ===== Blog Preview ===== */
.blog-preview { padding: var(--spacing-3xl) 0; background: var(--bg-light); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-normal); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card .blog-image { height: 200px; overflow: hidden; }
.blog-card .blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-card .blog-content { padding: 24px; }
.blog-card h3 { font-size: var(--font-size-xl); margin-bottom: 10px; }
.blog-card h3 a { color: var(--text-color); }
.blog-card h3 a:hover { color: var(--primary-color); }
.blog-meta { font-size: var(--font-size-sm); color: var(--text-light); margin-bottom: 10px; display: flex; gap: 15px; flex-wrap: wrap; }
.blog-card .read-more { color: var(--primary-color); font-weight: 500; display: inline-block; }

/* ===== Page Header ===== */
.page-header {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-light), #f3e5f5);
    text-align: center;
}
.page-header h1 { margin-bottom: var(--spacing-xs); }
.page-subtitle { color: var(--text-light); font-size: var(--font-size-lg); }

/* ===== About Page ===== */
.our-story { padding: var(--spacing-3xl) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-2xl); align-items: center; margin-bottom: var(--spacing-2xl); }
.story-image img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.story-content h2 { margin-bottom: var(--spacing-md); }
.story-content p { line-height: 1.8; font-size: var(--font-size-lg); }
.benefits-section { padding: var(--spacing-3xl) 0; background: var(--bg-light); }
.benefits-section h2 { text-align: center; margin-bottom: var(--spacing-2xl); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.benefit-card { background: #fff; padding: 30px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm); }
.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}
.benefit-card h3 { font-size: var(--font-size-lg); margin-bottom: 5px; }
.benefit-card p { color: var(--text-light); margin: 0; }

/* ===== Team / Teachers ===== */
.team-section { padding: var(--spacing-3xl) 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.team-member { background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-normal); text-align: center; }
.team-member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-member .member-image { height: 300px; overflow: hidden; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; }
.team-member .member-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-member .member-info { padding: 28px 24px; }
.team-member h3 { margin-bottom: 6px; font-size: var(--font-size-xl); }
.team-member .member-title { color: var(--primary-color); font-weight: 600; margin-bottom: 10px; font-size: var(--font-size-sm); }
.team-member .member-desc { color: var(--text-light); font-size: var(--font-size-sm); margin: 0; line-height: 1.6; }

/* ===== Contact Page ===== */
.contact-section { padding: var(--spacing-3xl) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-content h3 { margin-bottom: 5px; font-size: var(--font-size-base); }
.contact-content p { margin: 0; color: var(--text-light); }
.contact-content a { color: var(--text-color); }
.contact-content a:hover { color: var(--primary-color); }
.contact-note { font-size: var(--font-size-sm); color: var(--text-light); }
.contact-social { display: flex; gap: 12px; margin-top: 20px; }
.social-link { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-full); color: #fff; font-weight: 500; transition: all var(--transition-normal); }
.social-link:hover { transform: translateY(-2px); color: #fff; }
.social-link.facebook { background: #1877F2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.whatsapp { background: #25D366; }

/* Contact Form */
.contact-form { background: var(--bg-light); padding: 40px; border-radius: var(--radius-lg); }
.form-description { color: var(--text-light); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-normal);
    background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-actions { margin-top: 24px; }

/* ===== Calculator Page ===== */
.calculator-section { padding: var(--spacing-3xl) 0; }
.calculator-box { background: var(--bg-light); padding: 40px; border-radius: var(--radius-lg); max-width: 800px; margin: 0 auto; }
.calculator-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.calculator-table th, .calculator-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.calculator-table th { background: var(--primary-light); font-weight: 600; }
.calculator-table tr:hover { background: #f5f5f5; }
.discount-info { background: #fff3e0; padding: 24px; border-radius: var(--radius-lg); margin: 24px 0; }
.discount-info h3 { margin-bottom: 15px; color: var(--accent-color); }
.discount-info ul { list-style: none; margin: 0; }
.discount-info li { padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.discount-info i { color: var(--accent-color); }

/* ===== Comparison Table ===== */
.comparison-section { padding: var(--spacing-3xl) 0; }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid #eee; }
.comparison-table th { background: var(--primary-color); color: #fff; font-weight: 600; }
.comparison-table tr:hover { background: var(--primary-light); }
.comparison-table td:first-child { text-align: left; font-weight: 500; }
.comparison-table a { color: var(--primary-color); font-weight: 500; }
.comparison-table a:hover { color: var(--primary-dark); }

/* ===== Free Trial Form ===== */
.trial-section { padding: var(--spacing-3xl) 0; }
.trial-form-box { max-width: 600px; margin: 0 auto; }
.trial-highlight { background: var(--primary-light); padding: 24px; border-radius: var(--radius-lg); margin-bottom: 30px; text-align: center; }
.trial-highlight i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.trial-highlight h3 { margin: 10px 0 5px; }
.trial-form { background: var(--bg-light); padding: 40px; border-radius: var(--radius-lg); }

/* ===== Schedule Page ===== */
.schedule-section { padding: var(--spacing-3xl) 0; }
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.schedule-table th, .schedule-table td { padding: 16px; text-align: center; border-bottom: 1px solid #eee; }
.schedule-table th { background: var(--primary-color); color: #fff; font-weight: 600; }
.schedule-table tr:nth-child(even) { background: var(--bg-light); }
.schedule-table tr:hover { background: var(--primary-light); }
.time-slot { font-weight: 600; color: var(--primary-color); }

/* ===== Enrollment Page ===== */
.enrollment-section { padding: var(--spacing-3xl) 0; }
.enrollment-form-box { max-width: 600px; margin: 0 auto; background: var(--bg-light); padding: 40px; border-radius: var(--radius-lg); }
.enrollment-form-box h3 { margin-bottom: var(--spacing-md); }
.enrollment-form-box .section-divider { margin: var(--spacing-lg) 0; border-top: 1px solid #ddd; padding-top: var(--spacing-lg); }

/* ===== Pricing Page ===== */
.pricing-section { padding: var(--spacing-3xl) 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.pricing-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: all var(--transition-normal); border: 2px solid transparent; position: relative; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--primary-color, #4CAF50); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-card.featured::before {
    content: '推薦';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color, #4CAF50); color: #fff;
    padding: 4px 16px; border-radius: 20px; font-size: var(--font-size-xs); font-weight: 700;
    white-space: nowrap;
}
.pricing-card h3 { font-size: var(--font-size-xl); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pricing-card h3 i { color: var(--course-color, var(--primary-color)); }
.pricing-card .pricing-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--course-color, var(--primary-color)); margin-bottom: 4px; line-height: 1.2; }
.pricing-card .pricing-amount span { font-size: var(--font-size-sm); font-weight: 400; color: var(--text-light); display: block; }
.pricing-card .pricing-desc { font-size: var(--font-size-sm); color: var(--text-light); margin-bottom: 16px; min-height: 20px; }
.pricing-card .pricing-features { list-style: none; margin: 0 0 24px; text-align: left; }
.pricing-card .pricing-features li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; font-size: var(--font-size-sm); }
.pricing-card .pricing-features li:last-child { border-bottom: none; }
.pricing-card .pricing-features li i { color: var(--primary-color); flex-shrink: 0; }
.pricing-card .btn { margin-top: auto; }
.pricing-features i { color: var(--primary-color); }
.promo-box { max-width: 600px; margin: 2rem auto; background: #e8f5e9; padding: 2rem; border-radius: var(--radius-lg); text-align: center; }
.promo-box h3 { color: #4CAF50; margin-bottom: 1rem; }
.promo-box ul { text-align: left; line-height: 2; }

/* ===== Course Detail Pages ===== */
.course-detail { padding: var(--spacing-3xl) 0; }
/* .course-hero 佈局由下方「COURSE DETAIL PAGE」區塊統一控制，勿用 grid 以免與 single-course 衝突 */
.course-hero-image img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.course-hero-content h2 { color: var(--accent-color); margin-bottom: var(--spacing-sm); }
.course-hero-content h3 { margin-bottom: var(--spacing-md); }
.course-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--primary-color);
}
.course-tag i { font-size: var(--font-size-sm); }
.course-price-highlight { display: flex; align-items: baseline; gap: 10px; }
.price-label { font-size: var(--font-size-base); color: var(--text-light); }
.price-value { font-size: var(--font-size-3xl); font-weight: 700; color: var(--primary-color); }
.price-value span { font-size: var(--font-size-base); font-weight: 400; color: var(--text-light); }
.course-actions { margin-top: var(--spacing-md); }
.course-modules { padding: var(--spacing-3xl) 0; }
.course-modules h2 { text-align: center; margin-bottom: var(--spacing-2xl); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.module-card { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: all var(--transition-normal); }
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.module-icon { margin-bottom: 15px; }
.module-card h3 { margin-bottom: 10px; font-size: var(--font-size-lg); }
.module-card p { color: var(--text-light); margin: 0; }

/* Level Cards */
.level-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-xl); margin-top: var(--spacing-xl); }
.level-card {
    background: var(--bg-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}
.module-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}
.level-card h3, .level-card h4 { margin-bottom: var(--spacing-md); color: var(--text-color); }
.level-features { list-style: none; padding: 0; margin: 0; }
.level-features li { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-sm) 0; color: var(--text-light); border-bottom: 1px solid var(--border-color, #eee); }
.level-features li:last-child { border-bottom: none; }
.level-features i { color: var(--primary-color); }

/* Gallery Section */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-lg); }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform var(--transition-normal); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md); font-weight: 500; }

/* Materials Section */
.materials-section { padding: var(--spacing-3xl) 0; background-color: var(--bg-light); }
.materials-section h2 { text-align: center; margin-bottom: var(--spacing-2xl); }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-xl); }
.material-card { background: var(--bg-color); border-radius: var(--radius-lg); padding: var(--spacing-xl); text-align: center; box-shadow: var(--shadow-md); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.material-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.material-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: var(--font-size-2xl);
}
.material-card h4 { margin-bottom: var(--spacing-sm); color: var(--text-color); }
.material-card p { color: var(--text-light); font-size: var(--font-size-sm); margin: 0; }

/* FAQ Section */
.faq-section { padding: var(--spacing-3xl) 0; }
.faq-section h2 { text-align: center; margin-bottom: var(--spacing-2xl); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.faq-item { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: var(--font-size-base); margin-bottom: 10px; color: var(--text-color); }
.faq-item h3 i { color: var(--primary-color); margin-right: 8px; }
.faq-item p { color: var(--text-light); margin: 0; line-height: 1.7; }

/* ===== Footer ===== */
.site-footer { background: #263238; color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: var(--font-size-lg); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
.footer-logo i { color: var(--primary-color); }
.footer-col p { color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; transition: all var(--transition-normal); }
.footer-social a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--primary-color); }
.footer-col .contact-info li { display: flex; align-items: flex-start; gap: 10px; }
.footer-col .contact-info i { color: var(--primary-color); margin-top: 4px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { padding: 12px 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: var(--font-size-sm); }
.footer-links a:hover { color: var(--primary-color); }
.copyright { color: rgba(255,255,255,0.5); font-size: var(--font-size-sm); margin: 0; }

/* ===== Legal Pages ===== */
.legal-content { padding: var(--spacing-3xl) 0; }
.legal-content .container { max-width: 800px; }
.legal-content h2 { margin-top: var(--spacing-xl); margin-bottom: var(--spacing-md); font-size: var(--font-size-xl); }
.legal-content p { color: var(--text-light); line-height: 1.8; margin-bottom: var(--spacing-md); }
.legal-content .last-updated { color: var(--text-light); margin-bottom: var(--spacing-xl); display: flex; align-items: center; gap: 8px; }

/* ===== Sitemap ===== */
.sitemap-section { padding: var(--spacing-3xl) 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.sitemap-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.sitemap-card h3 { color: #333; font-size: var(--font-size-lg); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary-color); display: flex; align-items: center; gap: 8px; }
.sitemap-card h3 i { color: var(--primary-color); }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { margin-bottom: 0.5rem; }
.sitemap-list a { color: #666; text-decoration: none; padding: 0.5rem; border-radius: var(--radius-sm); display: block; transition: all var(--transition-normal); }
.sitemap-list a:hover { background: var(--primary-light); color: var(--primary-color); }

/* ===== Notification System ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    z-index: 9999;
}
.notification.show { transform: translateX(0); }
.notification-success { border-left: 4px solid #4CAF50; }
.notification-error { border-left: 4px solid #f44336; }
.notification-warning { border-left: 4px solid #FF9800; }
.notification-info { border-left: 4px solid #2196F3; }
.notification i { font-size: 20px; }
.notification-success i { color: #4CAF50; }
.notification-error i { color: #f44336; }
.notification-warning i { color: #FF9800; }
.notification-info i { color: #2196F3; }
.notification span { flex: 1; font-size: var(--font-size-sm); line-height: 1.4; }
.notification-close { background: none; border: none; color: #999; cursor: pointer; padding: 4px; font-size: 16px; line-height: 1; }
.notification-close:hover { color: #666; }

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-content p { margin: 0; flex: 1; font-size: var(--font-size-sm); }
.cookie-buttons { display: flex; gap: 10px; }

/* ===== 404 Page ===== */
.error-404 {
    padding: var(--spacing-3xl) 0;
    text-align: center;
}
.error-404 i { font-size: 6rem; color: var(--primary-light); margin-bottom: var(--spacing-lg); }
.error-404 h1 { font-size: 4rem; margin-bottom: var(--spacing-md); }
.error-404 p { color: var(--text-light); margin-bottom: var(--spacing-xl); }

/* ===== Search Results ===== */
.search-results { padding: var(--spacing-3xl) 0; }
.search-result { background: #fff; padding: var(--spacing-lg); border-radius: var(--radius-lg); margin-bottom: var(--spacing-lg); box-shadow: var(--shadow-sm); }
.search-result h2 { margin-bottom: var(--spacing-sm); }
.search-result h2 a { color: var(--text-color); }
.search-result h2 a:hover { color: var(--primary-color); }
.search-result .meta { color: var(--text-light); font-size: var(--font-size-sm); margin-bottom: var(--spacing-sm); }

/* ===== Comments ===== */
.comments-area { padding: var(--spacing-2xl) 0; }
.comment-list { list-style: none; }
.comment { background: #fff; padding: var(--spacing-lg); border-radius: var(--radius-lg); margin-bottom: var(--spacing-lg); box-shadow: var(--shadow-sm); }
.comment-author { font-weight: 600; margin-bottom: 5px; }
.comment-metadata { font-size: var(--font-size-sm); color: var(--text-light); margin-bottom: var(--spacing-sm); }
.comment-content { line-height: 1.7; }

/* ===== WordPress Core ===== */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-gallery { margin-bottom: var(--spacing-lg); }

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .main-nav .container { position: relative; }
    /* 漢堡永遠靠右，固定在 nav 列右側 */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
        margin: 0;
    }
    /* 讓子層（導航+按鈕）直接填入 flex container，漢堡在外層不受影響 */
    .main-nav-end { display: contents; }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        justify-content: flex-start;
        flex: none;
        overflow-x: visible;
        width: 100%;
        z-index: 1001;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; flex-shrink: 1; }
    .nav-menu a { width: 100%; padding: 12px 16px; font-size: var(--font-size-base); white-space: normal; }
    .nav-menu .sub-menu,
    .nav-menu .children,
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    /* 手機：點擊展開；多層改為縮排 */
    .sub-menu,
    .dropdown-menu .sub-menu,
    .dropdown-menu,
    .dropdown-menu .dropdown-menu,
    .children,
    .dropdown-menu .children {
        position: static;
        left: auto;
        top: auto;
        margin: 0;
        padding: 0 0 0 20px;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        width: 100%;
    }
    .nav-menu .sub-menu.active,
    .nav-menu .dropdown-menu.active,
    .nav-menu .children.active,
    .nav-menu li.menu-item-has-children.active > .sub-menu,
    .nav-menu li.menu-item-has-children.active > .dropdown-menu,
    .nav-menu li.menu-item-has-children.active > .children,
    .nav-menu li.menu-item-has-children.active > ul,
    .sub-menu li.menu-item-has-children.active > .sub-menu,
    .dropdown-menu li.menu-item-has-children.active > .dropdown-menu,
    .children li.menu-item-has-children.active > .children {
        display: block;
    }
    /* 按鈕在 mobile drawer 底部 */
    .nav-actions { display: none; }
    .nav-actions.active { display: flex; flex-direction: column; width: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
    .nav-actions.active .btn { width: 100%; justify-content: center; }
    
    .hero .container { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .contact-grid, .about-grid, .story-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .featured-courses .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero { padding: var(--spacing-2xl) 0; }
    .hero h1 { font-size: 1.75rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .section { padding: var(--spacing-2xl) 0; }
    .courses-grid { grid-template-columns: 1fr; }
    .featured-courses .courses-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* ===== Print Styles ===== */
/* ================================================
   COURSE DETAIL PAGE — NEW PROFESSIONAL MODULES
   ================================================ */

/* ---- 1. Hero Section ---- */
.course-hero {
    display: block;
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.course-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
}
/* 居中容器：整塊內容水平居中（適用所有課程頁） */
.course-hero .course-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.course-hero .course-hero-badge {
    margin-left: auto;
    margin-right: auto;
}
.course-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.course-hero-inner .course-hero-text {
    flex: 1 1 300px;
    max-width: 560px;
    text-align: center;
}
.course-hero-inner .course-hero-eyebrow {
    justify-content: center;
}
.course-hero-inner .course-hero-btns {
    justify-content: center;
}
.course-hero-inner .course-hero-image {
    flex-shrink: 0;
}
.course-hero-text { flex: 1; max-width: 640px; }
.course-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}
.course-hero-eyebrow i { font-size: 1.1rem; }
.course-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.course-hero-text > p {
    color: rgba(255,255,255,0.92);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    line-height: 1.65;
}
.course-hero-btns {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 500;
    font-size: var(--font-size-base);
    background: transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.course-hero-image { position: relative; z-index: 1; }
.course-hero-image .image-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin: 0 auto;
}

/* ---- 2. Overview Bar ---- */
.course-overview-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 70px;
    z-index: 90;
}
.course-overview-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 18px 0;
}
.course-overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px clamp(16px, 3vw, 30px);
}
.course-overview-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}
.course-overview-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.course-overview-item strong {
    display: block;
    font-size: var(--font-size-base);
    color: var(--text-color);
    font-weight: 700;
}
.course-overview-divider {
    width: 1px;
    height: 36px;
    background: #eee;
    flex-shrink: 0;
}

/* ---- 3. Section Label ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.3px;
}
.section-header { margin-bottom: var(--spacing-2xl); }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: var(--spacing-sm); }
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 520px;
}
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---- 4. Course Introduction ---- */
.course-intro .container { max-width: 1100px; }
.course-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
}
.course-intro-image { position: relative; }
.course-intro-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    max-height: 460px;
}
.course-intro-badge {
    position: absolute;
    top: 20px;
    left: -12px;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.course-intro-content h2 { margin-bottom: var(--spacing-md); }
.course-schedule-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    overflow: hidden;
    margin: var(--spacing-lg) 0;
}
.course-schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: var(--font-size-base);
    border-bottom: 1px solid #e0e0e0;
}
.course-schedule-body { padding: 12px 20px; }
.course-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px dashed #eee;
    color: var(--text-color);
}
.course-schedule-item:last-child { border-bottom: none; }
.course-schedule-item i { color: var(--primary-color); font-size: 0.5rem; flex-shrink: 0; }
.course-intro-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* ---- 5. Features Grid ---- */
.course-features-section { padding: clamp(50px, 7vw, 90px) 0; }
.course-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
}
.course-feature-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.course-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.course-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #66BB6A);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
}
.course-feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}
.course-feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ---- 6. Learning Path (Alternating steps) ---- */
.course-learning { padding: clamp(50px, 7vw, 90px) 0; }
.learning-path {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.learning-path-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 0;
}
.learning-step {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}
.learning-step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(76,175,80,0.35);
    z-index: 2;
}
.learning-step-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 22px 28px;
    box-shadow: var(--shadow-lg);
    flex: 1;
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-normal);
}
.learning-step-card:hover { transform: translateX(4px); }
.learning-step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}
.learning-step-header h3 {
    font-size: var(--font-size-xl);
    margin: 0;
    color: var(--text-color);
}
.learning-step-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}
.learning-step-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.6;
}
.learning-step-arrow {
    text-align: center;
    padding-top: 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.learning-step.step-right .learning-step-card {
    margin-left: auto;
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}
.learning-step.step-right .learning-step-card:hover { transform: translateX(-4px); }
.learning-step.step-right .learning-step-duration {
    background: #e3f2fd;
    color: var(--secondary-color);
}
.learning-step.step-right .learning-step-number {
    background: linear-gradient(135deg, var(--secondary-color), #1565C0);
}

/* ---- 7. Pricing Cards ---- */
.course-pricing-section { padding: clamp(50px, 7vw, 90px) 0; background: var(--bg-light); }
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto var(--spacing-2xl);
    align-items: stretch;
}
.pricing-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-md);
    border: 2px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #FFB300);
    color: #fff;
    padding: 5px 20px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.pricing-card-popular {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(76,175,80,0.2);
}
.pricing-card-popular .pricing-popular-badge { display: block; }
.pricing-card-header { margin-bottom: var(--spacing-md); }
.pricing-plan-name {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4px;
}
.pricing-plan-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}
.pricing-currency { font-size: var(--font-size-xl); font-weight: 700; }
.pricing-amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1; }
.pricing-unit { font-size: var(--font-size-sm); color: var(--text-light); }
.pricing-save-tag {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}
.pricing-features {
    list-style: none;
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px dashed #f0f0f0;
    color: var(--text-color);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--primary-color); flex-shrink: 0; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-base);
    background: transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-normal);
}
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }

/* Notice Box */
.course-notice-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-md);
    background: #fff;
    border: 1px solid #e8f5e9;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}
.notice-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    padding-top: 2px;
}
.notice-content h4 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
}
.notice-content p { margin-bottom: var(--spacing-sm); color: var(--text-light); font-size: var(--font-size-sm); }
.notice-content p:last-child { margin-bottom: 0; }

/* ---- 8. FAQ Accordion ---- */
.course-faq { padding: clamp(50px, 7vw, 90px) 0; }
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    font-family: inherit;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: #f8f8f8; }
.faq-question span { flex: 1; }
.faq-icon {
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
    padding: 0 24px var(--spacing-lg);
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ---- 9. Teacher Profile (course single): 左圓角矩形完整顯示 + 右側介紹 ---- */
.course-teacher { padding: clamp(50px, 7vw, 90px) 0; }
.course-teacher .teacher-profile-cards {
    display: grid;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}
.course-teacher .teacher-profile-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    padding: clamp(1.25rem, 3.5vw, 2rem);
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(33, 150, 83, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}
.course-teacher .teacher-profile-media {
    flex-shrink: 0;
    width: 100%;
}
.course-teacher .teacher-profile-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(10px, 2vw, 14px);
    min-height: 220px;
    max-height: 320px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #eef7f0 0%, #e8f4fc 55%, #f5f9f6 100%);
    border: 1px solid rgba(76, 175, 80, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: hidden;
}
.course-teacher .teacher-profile-image-frame .teacher-profile-photo,
.course-teacher .teacher-profile-image-frame img.teacher-profile-photo,
.course-teacher .teacher-profile-image-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(300px, 52vw);
    object-fit: contain;
    object-position: center center;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.course-teacher .teacher-profile-info {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: center;
}
.course-teacher .teacher-profile-name {
    margin: 0 0 2px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.course-teacher .teacher-profile-info .teacher-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f5e9 100%);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    border: 1px solid rgba(76, 175, 80, 0.2);
}
.course-teacher .teacher-profile-meta {
    list-style: none;
    margin: var(--spacing-xs) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.course-teacher .teacher-profile-meta li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.55;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.course-teacher .teacher-profile-meta li i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
}
.course-teacher .teacher-bio {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.75;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #fafbfa;
    border-radius: var(--radius-lg);
    border: 1px solid #e8ebe9;
    border-left: 4px solid var(--primary-color);
}
.course-teacher .teacher-bio p {
    margin: 0 0 0.75em;
}
.course-teacher .teacher-bio p:last-child {
    margin-bottom: 0;
}
@media (min-width: 640px) {
    .course-teacher .teacher-profile-card {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }
    .course-teacher .teacher-profile-media {
        flex: 0 0 clamp(280px, 36%, 380px);
        width: clamp(280px, 36%, 380px);
        max-width: 100%;
    }
    .course-teacher .teacher-profile-image-frame {
        min-height: 320px;
        max-height: 460px;
        max-width: 100%;
    }
    .course-teacher .teacher-profile-image-frame .teacher-profile-photo,
    .course-teacher .teacher-profile-image-frame img.teacher-profile-photo,
    .course-teacher .teacher-profile-image-frame img {
        max-height: 420px;
    }
    .course-teacher .teacher-profile-info {
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        padding-left: clamp(1.25rem, 3vw, 2rem);
    }
}

/* ---- 10. Testimonials (2-col) ---- */
.course-testimonials { padding: clamp(50px, 7vw, 90px) 0; }
.testimonial-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}
.testimonial-stars i { color: var(--accent-color); font-size: 1rem; }
.testimonial-card blockquote {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.75;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: var(--font-size-sm); }
.testimonial-context { display: block; font-size: var(--font-size-xs); color: var(--text-light); margin-top: 2px; }

/* ---- 11. Related Courses (reuses .courses-grid from above) ---- */
.course-related { padding: clamp(50px, 7vw, 90px) 0; }
.course-related .courses-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

/* ---- 12. Sticky Mobile CTA Bar ---- */
.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px var(--spacing-lg);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cta-bar.visible {
    transform: translateY(0);
}
.sticky-cta-price {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--primary-color);
}
.sticky-cta-price span { font-size: var(--font-size-sm); color: var(--text-light); }

/* ================================================
   RESPONSIVE — COURSE DETAIL PAGE
   ================================================ */
@media (max-width: 1024px) {
    .course-intro-grid { grid-template-columns: 1fr; }
    .course-intro-image { max-height: 340px; overflow: hidden; border-radius: var(--radius-xl); }
    .course-intro-image img { max-height: 340px; }
    .course-hero-inner {
        flex-direction: column;
        max-width: 100%;
    }
    .course-hero-inner .course-hero-image { display: block; }
    .course-hero-inner .course-hero-image .image-placeholder {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto;
    }
    .course-hero-inner .course-hero-image .image-placeholder i { font-size: 3.5rem !important; }
    .learning-path { max-width: 100%; }
    .learning-path-line { left: 26px; }
    .learning-step { gap: 0; }
    .learning-step-number { flex-shrink: 0; }
    .learning-step-card { flex: 1; }
    .learning-step.step-right .learning-step-card { margin-left: 0; }
    .pricing-cards { grid-template-columns: 1fr 1fr; }
    .course-related .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .course-overview-items {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 14px var(--spacing-md);
        gap: 0;
    }
    .course-overview-items::-webkit-scrollbar { display: none; }
    .course-overview-item { flex-shrink: 0; }
    .course-overview-divider { display: none; }
    .course-overview-bar { top: 60px; }
    .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .course-related .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-cta-bar { display: flex; }
    .course-notice-box { flex-direction: column; }
}
@media (max-width: 480px) {
    .course-hero h1 { font-size: 1.75rem; }
    .course-hero-btns { flex-direction: column; }
    .course-hero-btns .btn { text-align: center; justify-content: center; }
    .course-intro-cta { flex-direction: column; }
    .course-intro-cta .btn { text-align: center; justify-content: center; }
    .course-related .courses-grid { grid-template-columns: 1fr; }
    .faq-question { padding: 16px 20px; font-size: var(--font-size-sm); }
}

/* ================================================
   COURSE COMPARISON PAGE — PROFESSIONAL
   ================================================ */

/* ---- 1. Hero ---- */
.compare-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg, #4CAF50 0%, #1565C0 60%, #6A1B9A 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.compare-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.compare-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
}
.compare-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.compare-hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}
.compare-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.compare-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px clamp(20px, 4vw, 40px);
}
.compare-stat strong { font-size: var(--font-size-2xl); font-weight: 800; color: #fff; }
.compare-stat span { font-size: var(--font-size-sm); color: rgba(255,255,255,0.8); margin-top: 2px; }
.compare-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.3); }

/* ---- 2. Finder (Quiz) ---- */
.compare-finder { padding: clamp(50px, 7vw, 90px) 0; }
.finder-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid #eee;
    overflow: hidden;
}
.finder-step {
    display: flex;
    gap: var(--spacing-lg);
    padding: clamp(24px, 4vw, 40px);
    border-bottom: 1px solid #f0f0f0;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity var(--transition-normal), background var(--transition-fast);
}
.finder-step.active {
    opacity: 1;
    pointer-events: all;
    background: #fff;
}
.finder-step:hover { background: #fafafa; }
.finder-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #43A047);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}
.finder-step-content { flex: 1; }
.finder-step-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}
.finder-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.finder-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}
.finder-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}
.finder-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.finder-option i { font-size: 1rem; }
.finder-result {
    padding: clamp(30px, 5vw, 50px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}
.finder-result-icon {
    font-size: 3rem;
    color: var(--primary-color);
}
.finder-result h3 { font-size: var(--font-size-xl); margin-bottom: var(--spacing-sm); }
.finder-result-actions { display: flex; gap: var(--spacing-md); flex-wrap: wrap; justify-content: center; }
.result-course-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 2px solid var(--primary-light);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}
.result-course-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    margin: 0 auto var(--spacing-md);
}
.result-course-card h4 { margin-bottom: var(--spacing-sm); font-size: var(--font-size-2xl); }
.result-course-card > p { font-size: var(--font-size-sm); color: var(--text-light); margin-bottom: var(--spacing-sm); }
.result-course-tags { display: flex; gap: var(--spacing-sm); justify-content: center; margin-bottom: var(--spacing-md); }
.result-course-tags span {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; padding: 4px 12px; border-radius: var(--radius-full);
    font-size: var(--font-size-sm); color: var(--text-color);
}
.result-skills { display: flex; gap: var(--spacing-xs); justify-content: center; flex-wrap: wrap; }

/* ---- 3. View Toggle ---- */
.compare-view-toggle-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 80;
}
.compare-view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}
.compare-view-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 4px;
}
.compare-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}
.compare-tab:hover { color: var(--text-color); }
.compare-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.compare-view-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}
.compare-view-sort select {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    background: #fff;
    cursor: pointer;
}

/* ---- 4. Card View ---- */
.compare-cards-section { padding: clamp(40px, 5vw, 70px) 0; }
.compare-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-xl);
    align-items: stretch;
}
.compare-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}
.compare-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.compare-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 1;
    letter-spacing: 0.3px;
}
.compare-card-header {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
}
.compare-card-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.compare-card-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}
.compare-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
}
.compare-card-rating span { color: var(--text-light); margin-left: 4px; }
.compare-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.compare-price-currency { font-size: var(--font-size-lg); font-weight: 700; color: var(--primary-color); }
.compare-price-amount { font-size: var(--font-size-3xl); font-weight: 900; color: var(--primary-color); line-height: 1; }
.compare-price-unit { font-size: var(--font-size-sm); color: var(--text-light); margin-left: 3px; }
.compare-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid #f0f0f0;
}
.compare-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: var(--text-color);
}
.compare-meta-item i { color: var(--primary-color); width: 18px; text-align: center; flex-shrink: 0; }
.compare-card-desc {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.65;
    border-bottom: 1px solid #f0f0f0;
}
.compare-card-skills {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-xs);
}
.compare-card-skills h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}
.compare-card-skills h4 i { color: var(--accent-color); }
.compare-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}
.compare-card-best {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid #f0f0f0;
}
.compare-card-best h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}
.compare-card-best h4 i { color: var(--secondary-color); }
.compare-card-best ul { list-style: none; margin: 0; padding: 0; }
.compare-card-best li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    padding: 4px 0;
}
.compare-card-best li i { color: var(--primary-color); font-size: 0.6rem; flex-shrink: 0; }
.compare-card-path, .compare-card-suitable {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px var(--spacing-lg);
    font-size: var(--font-size-xs);
    color: var(--text-light);
    border-top: 1px solid #f0f0f0;
}
.compare-card-path i, .compare-card-suitable i { color: var(--secondary-color); }
.compare-card-actions {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}
.compare-card-actions .btn { justify-content: center; }

/* ---- 5. Table View ---- */
.compare-table-section { padding: clamp(30px, 5vw, 60px) 0; background: var(--bg-light); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); background: #fff; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: var(--font-size-sm);
}
.compare-table thead th {
    padding: var(--spacing-lg);
    background: #fff;
    border-bottom: 3px solid #e0e0e0;
    vertical-align: top;
    position: relative;
}
.compare-table tbody tr:hover { background: #f8f9fa; }
.compare-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.compare-table tbody tr:last-child { border-bottom: none; }

.compare-row-label {
    padding: 14px 20px;
    font-weight: 600;
    color: var(--text-color);
    background: #fafafa;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
}
.compare-row-label i { color: var(--primary-color); width: 18px; text-align: center; flex-shrink: 0; }
.compare-table td { padding: 14px 16px; text-align: center; vertical-align: middle; }
.compare-table td:not(.compare-row-label) { color: var(--text-color); }

.compare-course-th {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 4px solid var(--course-color);
    padding-top: var(--spacing-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.compare-th-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}
.compare-th-name { font-size: var(--font-size-base); font-weight: 700; color: var(--text-color); }
.compare-th-badge {
    background: var(--course-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.compare-row-highlight td:not(.compare-row-label) {
    background: #fffde7;
    font-weight: 700;
}
.compare-cell-price { font-size: var(--font-size-lg); color: var(--primary-color); }
.compare-cell-price strong { font-size: var(--font-size-2xl); font-weight: 800; }
.compare-cell-price span { display: block; font-size: var(--font-size-xs); color: var(--text-light); font-weight: 400; }

.compare-trial-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.compare-rating-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.compare-stars { display: flex; gap: 2px; color: var(--accent-color); font-size: 0.85rem; }
.compare-rating-cell > span { font-size: var(--font-size-xs); color: var(--text-light); }

.compare-check { color: var(--primary-color); font-size: 1.1rem; }
.compare-minus { color: #ccc; font-size: 0.9rem; }

.compare-section-header td {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    font-weight: 800;
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
    padding: 12px 20px;
    border-bottom: 2px solid #c8e6c9 !important;
}
.compare-section-header i { margin-right: 8px; }
.compare-section-header td[colspan] { text-align: left !important; }

.compare-cta-row td:not(.compare-row-label) {
    background: var(--bg-light);
    padding: var(--spacing-lg) var(--spacing-sm);
}
.compare-cta-row .btn { justify-content: center; }

.compare-table-header-label { font-weight: 700; color: var(--text-color); font-size: var(--font-size-sm); }

/* ---- 6. Discount Banner ---- */
.compare-discount-section { padding: clamp(40px, 6vw, 70px) 0; }
.compare-discount-card {
    background: linear-gradient(135deg, #fff9c4, #fff3e0);
    border: 2px solid #ffe082;
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    flex-wrap: wrap;
}
.compare-discount-icon {
    font-size: 3.5rem;
    color: #ff9800;
    flex-shrink: 0;
}
.compare-discount-content { flex: 1; min-width: 260px; }
.compare-discount-content h3 { font-size: var(--font-size-2xl); margin-bottom: var(--spacing-sm); color: var(--text-color); }
.compare-discount-content > p { font-size: var(--font-size-base); color: var(--text-light); margin-bottom: var(--spacing-md); }
.compare-discount-highlight {
    color: #e65100;
    font-weight: 800;
    font-size: var(--font-size-xl);
}
.compare-discount-courses {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.compare-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ffe082;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-color);
}
.compare-discount-tag i { color: var(--accent-color); }
.compare-discount-actions { display: flex; flex-direction: column; gap: var(--spacing-sm); flex-shrink: 0; }

/* ---- 7. Mobile Sticky CTA ---- */
.compare-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px var(--spacing-lg);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    justify-content: center;
    gap: var(--spacing-md);
}
.compare-sticky-cta .btn { flex: 1; justify-content: center; }

/* ---- 8. btn-sm ---- */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* ================================================
   RESPONSIVE — COMPARISON PAGE
   ================================================ */
@media (max-width: 1024px) {
    .compare-hero-stats {
        gap: 0;
    }
    .compare-stat { padding: 10px clamp(14px, 3vw, 24px); }
}
@media (max-width: 768px) {
    .compare-hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    .compare-stat-divider { display: none; }
    .compare-view-controls { flex-direction: column; align-items: flex-start; gap: var(--spacing-sm); }
    .compare-view-sort { width: 100%; }
    .compare-view-sort select { flex: 1; }
    .compare-cards-grid { grid-template-columns: 1fr 1fr; }
    .compare-discount-card { flex-direction: column; text-align: center; }
    .compare-discount-courses { justify-content: center; }
    .compare-discount-actions { flex-direction: row; width: 100%; }
    .compare-sticky-cta { display: flex; }
    .finder-step { flex-direction: column; gap: var(--spacing-md); }
    .finder-step-number { width: 40px; height: 40px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .compare-cards-grid { grid-template-columns: 1fr; }
    .compare-tab { padding: 7px 14px; font-size: var(--font-size-xs); }
    .compare-discount-actions { flex-direction: column; }
    .compare-discount-actions .btn { justify-content: center; }
}

@media print {
    .compare-hero, .compare-finder, .compare-view-toggle-section,
    .compare-discount-section, .cta, .compare-sticky-cta,
    .finder-card { display: none !important; }
    .compare-table-section { padding: 0; }
    .table-scroll { overflow: visible; box-shadow: none; border-radius: 0; }
    .site-header, .site-footer, .cta, .enrollment-cta, .nav-actions { display: none; }
    .hero { padding: 20px 0; }
    body { font-size: 12pt; }
    a { text-decoration: underline; }
}

/* ================================================
   ABOUT PAGE — NEW ENHANCED SECTIONS
   ================================================ */

/* Hero Section */
.about-hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(76,175,80,0.05));
    border-radius: 50%;
}
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}
.about-hero-content {
    animation: fadeInLeft 0.8s ease-out;
}
.about-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}
.about-label i { font-size: var(--font-size-sm); }
.about-hero-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}
.about-lead {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}
.about-hero-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}
.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(76,175,80,0.2);
}
.about-stat {
    display: flex;
    flex-direction: column;
}
.about-stat .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.about-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: 4px;
}
.about-hero-image {
    animation: fadeInRight 0.8s ease-out;
}
.about-hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    max-height: 450px;
}

/* Mission Section */
.about-mission { padding: var(--spacing-3xl) 0; }
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}
.mission-card {
    background: #fff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(76,175,80,0.1);
}
.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}
.mission-icon i {
    font-size: 2rem;
    color: #fff;
}
.mission-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}
.mission-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Team Preview Section */
.about-team { padding: var(--spacing-3xl) 0; }
.team-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}
.team-preview-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}
.team-preview-card:hover {
    transform: translateY(-6px);
}
.team-preview-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}
.team-preview-card h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
    color: var(--text-color);
}
.team-preview-card p {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Benefits Section Enhancement */
.benefits-section { padding: var(--spacing-3xl) 0; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}
.benefit-card {
    background: #fff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(76,175,80,0.1);
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}
.benefit-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}
.benefit-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}
.benefit-card > p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}
.benefit-desc {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.6;
}

/* Classroom Gallery */
.about-classroom { padding: var(--spacing-3xl) 0; }
.classroom-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}
.classroom-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}
.classroom-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.classroom-item:hover img {
    transform: scale(1.08);
}
.classroom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.classroom-item:hover .classroom-overlay {
    opacity: 1;
}
.classroom-overlay span {
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-hero-grid { grid-template-columns: 1fr; gap: var(--spacing-xl); }
    .about-hero-image { order: -1; }
    .about-stats { justify-content: center; }
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .team-preview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mission-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .team-preview-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
    .classroom-gallery { grid-template-columns: 1fr; }
    .about-stats { flex-wrap: wrap; gap: var(--spacing-lg); }
    .about-stat { flex: 1; min-width: 100px; }
}

/* ================================================
   TEACHERS PAGE + BLOG CARDS UX
   ================================================ */
.teachers-page-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background: linear-gradient(160deg, #e8f5e9 0%, #fff 45%, #e3f2fd 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.teachers-page-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}
.teachers-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--spacing-sm);
}
.teachers-page-hero-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}
.teachers-page-lead {
    font-size: var(--font-size-lg);
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}
.teachers-page-desc {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    max-width: 36em;
}
.teachers-page-hero-collage {
    position: relative;
    height: min(320px, 50vw);
    max-width: 420px;
    margin-left: auto;
}
.teachers-page-hero-collage img {
    position: absolute;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
}
.teachers-page-hero-collage .tpc-1 { top: 0; left: 20%; z-index: 3; }
.teachers-page-hero-collage .tpc-2 { bottom: 10%; left: 0; z-index: 2; width: 130px; height: 130px; }
.teachers-page-hero-collage .tpc-3 { bottom: 0; right: 5%; z-index: 1; width: 125px; height: 125px; }
.section-tight-top { padding-top: var(--spacing-lg); }
.team-grid-enhanced { gap: var(--spacing-xl); }
.team-member-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.team-member-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.team-member-card .member-image.member-image-teachers {
    height: auto;
    min-height: 0;
    display: block;
    align-items: stretch;
    justify-content: stretch;
    background: var(--bg-light);
}
.member-image-teachers {
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}
.team-member-card .member-image.member-image-teachers img {
    width: 100%;
    height: auto;
    max-height: 280px;
    min-height: 200px;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    border: none;
}
.team-member-card .member-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.65;
    margin: 0 0 var(--spacing-xs);
    text-align: left;
}
.team-member-card .member-desc:last-of-type {
    margin-bottom: 0;
}
.blog-section .blog-card,
.blog-grid .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-body .blog-excerpt {
    flex: 1;
    margin-bottom: var(--spacing-md);
    line-height: 1.65;
    color: var(--text-light);
}
.blog-card-readmore {
    margin-top: auto;
    align-self: flex-start;
}
.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-single-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, #e3f2fd 100%);
}
.compare-page-intro + * { margin-top: 0; }

.comparison-table-wrap {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.comparison-table-with-thumb .comparison-td-thumb {
    width: 88px;
    vertical-align: middle;
    padding: 10px 12px;
}
.comparison-table-with-thumb .comparison-td-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    box-shadow: var(--shadow-sm);
}
.comparison-thumb-link { display: block; line-height: 0; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .teachers-page-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .teachers-page-desc { margin-left: auto; margin-right: auto; }
    .teachers-page-hero-visual { order: -1; }
    .teachers-page-hero-collage { margin: 0 auto; height: 280px; }
}
