/* =============================================
   C'est Bon Cake — Website Visual Style Guide
   Simple . Clean . Premium . Food First
   ============================================= */

:root {
    /* Colour Palette — 日本高級手作烘焙品牌 (client update 2026-07) */
    --bg: #FAF8F3;              /* Warm White — main page background */
    --bg-cream: #F4F0E8;        /* deeper warm — alternating sections / footer */
    --bg-warm: #EFE9DE;         /* warm section / hero gradient top */
    --surface: #FFFFFF;         /* cards, panels, inputs */

    --text-primary: #222222;    /* Deep Charcoal — headings */
    --text-secondary: #666666;  /* Soft Grey — body text */
    --text-muted: #999999;

    --divider: #E7E0D3;         /* warm divider */

    --accent: #B97850;          /* Caramel / Terracotta — highlight */
    --accent-hover: #A06743;
    --accent-light: rgba(185, 120, 80, 0.08);

    --cocoa: #5C3926;           /* Dark Cocoa Brown — primary CTA */
    --cocoa-hover: #6B4530;
    --cocoa-light: rgba(92, 57, 38, 0.06);

    /* Status */
    --status-ok: #4A8F5E;
    --status-full: #C44B4B;
    --status-new: #E4572E;

    /* Typography */
    --font-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --font-en: 'Inter', Helvetica, Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Android Chrome fix: body-only overflow-x is not enough — clamp at html too,
   otherwise an overflowing child widens the layout viewport and pushes the
   fixed nav (hamburger) off-screen to the right */
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Media/content can never exceed viewport width (protects against wide embeds/tables) */
img, svg, video, iframe, table { max-width: 100%; }

body {
    font-family: var(--font-zh);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg);
    overflow-x: hidden;
    font-size: 18px;
}

::selection { background-color: var(--accent-light); color: var(--text-primary); }

/* Default links use the brand palette, including visited links.
   Zero specificity lets component and inline styles take precedence. */
:where(a:any-link) {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}
:where(a:any-link:hover) { color: var(--cocoa); }
:where(a:any-link:focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-zh); line-height: 1.3; }

.h1-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.h2-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.h3-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}
.text-hero-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.text-hero-lg {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.text-section-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.text-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}
.text-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.text-body-lg {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.text-small {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
.text-caption {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.text-overline {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background-color: rgba(250, 248, 243, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--divider);
    z-index: 1030;
}
.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}
.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 64px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.3;
    text-align: center;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}
.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #1FA855 !important;
    padding: 8px 20px !important;
    border: 1.5px solid #25D366;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(37, 211, 102, 0.25);
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 0 0 6px;
    height: auto !important;
    align-self: center;
    flex: none;
}
.nav-whatsapp:hover { background-color: #25D366; color: #fff !important; box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4); transform: translateY(-1px); }
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 1100px) {
    .nav-links a { padding: 0 8px; font-size: 12px; }
    .nav-links a span { font-size: 10px; }
}
@media (max-width: 991.98px) {
    .nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background-color: rgba(250, 248, 243, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
        border-bottom: 1px solid var(--divider);
        align-items: stretch;
    }
    .nav-links.open {
        max-height: 600px;
        opacity: 1;
        padding: 16px 24px 24px;
    }
    .nav-links a {
        height: auto;
        padding: 10px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--divider);
        align-items: flex-start;
    }
    .nav-links a span { font-size: 13px; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-whatsapp { margin: 12px 0 0; justify-content: center; height: auto !important; }
    .nav-mobile-toggle { display: block; }
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    padding: 96px 24px 44px;
    text-align: center;
}
.hero-dark {
    background-color: var(--text-primary);
    padding: 140px 24px 80px;
    text-align: center;
    color: #fff;
}
.hero-dark .text-body,
.hero-dark .text-body-lg { color: rgba(255,255,255,0.7); }
.hero-dark .text-overline { color: var(--accent); }

.hero-content { max-width: 720px; margin: 0 auto; }
.hero-image-bg {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 140px 24px 80px;
}
.hero-image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(34,34,34,0.3) 0%, rgba(34,34,34,0.65) 100%);
}
.hero-image-bg .hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}
.hero-image-bg .text-body,
.hero-image-bg .text-body-lg { color: rgba(255,255,255,0.75); }

/* 首頁 Hero（2026-09-29 客戶規格：新課室相；Desktop 文字疊圖左側；
   Mobile 圖片上、文字下分開排版，深灰字、簡潔幼身、唔加底板） */
.home-hero { position: relative; }
.home-hero-img img { width: 100%; height: 62vh; min-height: 420px; object-fit: cover; object-position: center 40%; display: block; }
.home-hero-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    /* 左側漸變只係為咗白色字喺相上面可讀，唔係文字底板 */
    background: linear-gradient(to right, rgba(34,34,34,0.45) 0%, rgba(34,34,34,0.15) 45%, rgba(34,34,34,0) 70%);
}
.home-hero-text { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; color: #fff; }
.home-hero-text .text-hero-xl { color: #fff; font-weight: 400; }
.home-hero-sub { color: rgba(255,255,255,0.88); font-weight: 300; letter-spacing: 0.02em; }
@media (max-width: 767.98px) {
    .home-hero-img img { height: auto; aspect-ratio: 16/10; min-height: 0; }
    .home-hero-panel { position: static; background: none; }
    .home-hero-text { color: var(--text-primary); text-align: center; padding: 28px 24px 0; }
    .home-hero-text .text-hero-xl { color: var(--text-primary); }
    .home-hero-title {
        line-height: 1.18 !important;
        margin-bottom: 24px !important;
        text-align: center;
    }
    .home-hero-sub {
        font-size: 17px !important;
        line-height: 1.45 !important;
        color: #333333 !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
    .home-cat-section {
        padding-top: 30px !important;
    }
    .home-courses-header {
        margin-bottom: 36px !important;
    }
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-zh);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 48px;
    padding: 0 28px;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--cocoa);
    color: #fff;
}
.btn-primary:hover { background-color: var(--cocoa-hover); transform: translateY(-1px); }
.btn-dark-bg {
    background-color: #fff;
    color: var(--text-primary);
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-dark-bg:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-secondary {
    background-color: transparent;
    color: var(--cocoa);
    border: 1.5px solid var(--cocoa);
}
.btn-secondary:hover { background-color: var(--cocoa-light); }
.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background-color: rgba(255,255,255,0.1); }
.btn-text {
    background: none;
    color: var(--accent);
    padding: 0;
    height: auto;
    font-weight: 500;
}
.btn-text:hover { color: var(--accent-hover); }
.btn-text::after { content: ' \203A'; font-size: 1.2em; }
.btn-text-prev::after { content: none; }

/* Badge-style link — for prominent "view more" links */
.btn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 9px 22px;
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn-badge::after { content: '\203A'; font-size: 1.15em; line-height: 1; }
.btn-badge:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.btn-badge-prev::after { content: none; }
.btn-badge-sm { padding: 6px 16px; font-size: 13px; }

/* Badge-style link (Back / Return) — strictly without trailing › arrow */
.btn-badge-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 9px 22px;
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn-badge-back:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.btn-badge-back::after,
.btn-badge.btn-badge-back::after { content: none !important; display: none !important; }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 80px 24px; }
.section-cream { background-color: var(--bg-cream); }
.section-warm { background-color: var(--bg-warm); }
.section-white { background-color: var(--surface); }
.section-dark { background-color: var(--text-primary); color: #fff; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header-left { text-align: left; margin-bottom: 48px; }

@media (max-width: 767.98px) {
    .section { padding: 56px 20px; }
    .hero-section { padding: 78px 20px 32px; }
    body { font-size: 16px; }
}

/* =============================================
   COURSE CARDS
   ============================================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.course-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
}
.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.course-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .course-card-image img { transform: scale(1.03); }
.course-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 13px;             /* 統一高度約 26–28px */
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;           /* 2026-09-30 客戶規格：badge 文字唔換行，確保「已滿額」3 個字完整顯示 */
}
/* 2026-09 客戶指定配色 */
.badge-new { background-color: #F3D6B3; color: #A85C2A; }        /* 新課程 */
.badge-available { background-color: #DDE8D8; color: #557A55; }  /* 餘N個位 */
/* 後補按鈕（滿額課程 badge 旁邊，連去 waitlist 登記頁） */
.waitlist-btn {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--accent, #5a3a22);
    color: var(--accent, #5a3a22);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: all 0.2s ease;
}
.waitlist-btn:hover { background: var(--accent, #5a3a22); color: #fff; }
/* 2026-09-30 客戶規格（最新版示意圖）：已滿額＝淺啡底 #f3e1ce／深啡字 #6B4F3A */
.badge-full { background-color: #f3e1ce; color: #6B4F3A; }          /* 已滿額 */
.badge-limited { background-color: #f3e1ce; color: #6B4F3A; }        /* 已滿額（課程狀態用） */
.badge-extra { background-color: #DDE6EC; color: #4F6B7A; }          /* 已加班（2026-10-01 客戶規格） */
.badge-ended { background-color: var(--text-muted); opacity: 0.7; }
.badge-confirmed { background-color: var(--accent); }

.course-card-body { padding: 20px; }
.course-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}
.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}
.course-card-meta span {
    font-size: 14px;
    color: var(--text-muted);
}
.course-card-meta i { color: var(--accent); margin-right: 4px; font-size: 13px; }
/* 2026-10-07 客戶要求：價錢字體縮細至與課程名稱相若，唔再特別放大銀碼；保留 Semi-bold 維持辨識度 */
.course-card-price {
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* =============================================
   FEATURE ICONS
   ============================================= */
.feature-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.feature-icon-item {
    text-align: center;
    padding: 24px 16px;
}
.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon-circle i {
    font-size: 22px;
    color: var(--accent);
}
.feature-icon-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.feature-icon-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
@media (max-width: 767.98px) {
    .feature-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* =============================================
   HOME BAKE GALLERY
   ============================================= */
.homebake-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.homebake-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}
.homebake-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.homebake-item:hover img { transform: scale(1.04); }
.homebake-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(to top, rgba(34,34,34,0.8) 0%, transparent 100%);
    color: #fff;
}
.homebake-overlay p { font-size: 14px; font-weight: 500; }
.homebake-overlay small { font-size: 12px; color: rgba(255,255,255,0.7); }
@media (max-width: 767.98px) {
    .homebake-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   STORY CARDS
   ============================================= */
.story-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 40px 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.story-card::before {
    content: '\f10d'; /* fa-quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    line-height: 34px;
    text-align: center;
    pointer-events: none;
}
.story-card:hover { box-shadow: var(--shadow-md); }
.story-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 22px 0 20px;
}
.story-author {
    display: block;
    border-top: 1px solid var(--divider);
    padding-top: 14px;
}
.story-avatar { display: none; }
.story-author-name { font-weight: 600; font-size: 15px; color: var(--text-primary); letter-spacing: 0.02em; }
.story-author-course {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

/* --- Story grid cards (同學故事 list page, DB-driven) --- */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-grid-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.story-grid-card:hover { box-shadow: var(--shadow-md); }
.story-grid-card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.story-grid-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* 引號 icon — 比舊版細約 20–30%，疊喺圖片左上角 */
.story-grid-card-image::before {
    content: '\f10d'; /* fa-quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px;
    left: 16px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-size: 10px;
    line-height: 25px;
    text-align: center;
    pointer-events: none;
}
.story-grid-card-body {
    padding: 22px 24px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.story-grid-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.story-grid-card-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.story-grid-card-excerpt p { margin: 0 0 4px; }
.story-grid-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}
.story-grid-card-who {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-grid-card-more {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.story-grid-card-more:hover { color: var(--accent-hover); }

/* =============================================
   QUOTE
   ============================================= */
.quote-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 24px;
}
.quote-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-style: italic;
}
.quote-author {
    font-size: 15px;
    color: var(--text-muted);
}

/* =============================================
   TIP CARDS
   ============================================= */
.tip-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
    height: 100%;
}
.tip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.tip-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.tip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tip-card:hover .tip-card-image img { transform: scale(1.03); }
.tip-card-body { padding: 24px; }
.tip-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
}
.tip-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* =============================================
   FEATURE GRID
   ============================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 767.98px) {
    .feature-grid, .feature-grid-3 { grid-template-columns: 1fr; }
}

/* =============================================
   TIMELINE — Learning Journey
   ============================================= */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--divider);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--divider);
}
.timeline-content h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 720px; margin: 0 auto; }

/* News cards */
.news-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* Compact hero (less bottom spacing) */
.hero-compact { padding-bottom: 40px; }

/* News year tabs */
.news-year-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.news-year-tab {
    display: inline-block;
    padding: 8px 22px;
    border: 1.5px solid var(--divider);
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.news-year-tab:hover { border-color: var(--accent); color: var(--accent); }
.news-year-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-year-group { display: none; }
.news-year-group.active { display: flex; flex-direction: column; gap: 20px; }
.news-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-date {
    flex: 0 0 auto;
    width: 64px;
    text-align: center;
    background: var(--accent-light);
    border-radius: 10px;
    padding: 10px 6px;
}
.news-card-day { display: block; font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.news-card-my { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }
.news-card-body { flex: 1 1 auto; min-width: 0; }
.news-card-content > p:first-child { margin-top: 0; }
.news-card-rawdate { margin-top: 10px; color: var(--text-muted); }
.news-card-action { margin: 10px 0 0; }
@media (max-width: 767.98px) {
    .news-card { flex-direction: column; gap: 12px; padding: 18px; }
    .news-card-date { width: auto; display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 14px; }
    .news-card-day { font-size: 18px; }
    .news-card-my { margin-top: 0; }
}
.faq-item {
    border-bottom: 1px solid var(--divider);
    padding: 20px 0;
}
.faq-question {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question i { transition: transform 0.3s ease; color: var(--text-muted); font-size: 14px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 12px;
}
.faq-answer p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   BAKING TIP CONTENT BLOCKS
   Rendered from [TITLE]/[INFOBOX]/[TIPS] shortcodes
   (see web_baking_tips_update.php admin editor)
   ============================================= */
.tip-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}
.tip-infobox {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--divider);
}
.tip-infobox h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}
.tip-infobox ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
}
.tip-infobox ul strong { color: var(--accent); }
.tip-tipbox {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tip-tipbox p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.tip-tipbox i { color: var(--accent); margin-right: 8px; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* Gallery video slide (desktop: full-width row in the grid) */
.gallery-video-slide { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 20px auto 0; }
.gallery-video-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); }
.gallery-video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Gallery scroll indicator dots: hidden on desktop, shown on mobile slider */
.gallery-dots { display: none; }

@media (max-width: 767.98px) {
    /* Mobile: gallery becomes a finger-swipeable horizontal slider (images + videos) */
    .gallery-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .gallery-slider::-webkit-scrollbar { display: none; }
    .gallery-slider > img {
        flex: 0 0 82%;
        scroll-snap-align: center;
        aspect-ratio: 1;
    }
    .gallery-slider > .gallery-video-slide {
        flex: 0 0 88%;
        scroll-snap-align: center;
        max-width: none;
        margin: 0;
    }
    /* Scroll indicator dots (mobile only) */
    .gallery-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
    }
    .gallery-dot {
        flex: 0 0 auto; /* 唔准壓縮，保持圓形 */
        width: 20px;
        height: 20px;
        padding: 0;
        border: 4px solid transparent; /* 20px tap target, 12px visual dot */
        border-radius: 50%;
        background: rgba(34, 34, 34, 0.18);
        background-clip: padding-box;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.25s ease, transform 0.25s ease;
    }
    .gallery-dot.active {
        background: var(--accent);
        background-clip: padding-box;
        transform: scale(1.25);
    }
}

/* =============================================
   COURSE INFO BAR
   ============================================= */
.course-info-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 20px 24px;
}
.course-info-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.info-bar-item { text-align: center; }
.info-bar-label {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.info-bar-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}
.info-bar-value.price {
    font-family: var(--font-en);
    color: var(--accent);
}

/* =============================================
   COURSE CONTENT LIST
   ============================================= */
.content-block + .content-block { margin-top: 32px; }
.content-block h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: none;
    /* 1px 淺啡底線，長度約文字 70%（客戶要求：線條唔好太搶眼） */
    background-image: linear-gradient(#D9C6B4, #D9C6B4);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 70% 1px;
    display: inline-block;
    color: var(--text-primary);
}
/* 內容文字加深少少，提高手機閱讀清晰度（標題維持深色） */
.content-block p,
.course-content-grid p,
.section-warm .text-body {
    color: #4A4A4A;
}
.content-block ul {
    list-style: none;
    padding: 0;
}
.content-block li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider);
}
.content-block li:last-child { border-bottom: none; }
.content-block li::before {
    content: '\2713';
    color: var(--accent);
    margin-right: 10px;
    font-weight: 600;
}

/* =============================================
   COURSE FEATURES — Icon cards
   ============================================= */
.course-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.course-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
}
.course-feature-item i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.course-feature-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.course-feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}
@media (max-width: 767.98px) {
    .course-features-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SCHEDULE LIST
   ============================================= */
.schedule-list { max-width: 960px; margin: 0 auto; }
.schedule-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
}
.schedule-date {
    width: 130px;
    min-width: 130px;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}
.schedule-time {
    width: 110px;
    min-width: 110px;
    font-size: 14px;
    color: var(--text-primary); /* 2026-10-11 客戶要求：時間用返日期個隻色 */
}
.schedule-badge {
    display: inline-flex;
    align-items: center;
}
.schedule-name {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    min-width: 150px;
    text-decoration: none;
}
.schedule-name:hover { text-decoration: none; color: var(--accent); }
/* 2026-10-11 客戶要求：取消 Bold（400），字體比課程名稱細一級（14px），夠位一行出晒，唔夠位自動換行 */
.schedule-price {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 400;
    color: var(--accent);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 6px;
    width: auto;
}
.schedule-price .price-val {
    white-space: nowrap;
}
.schedule-price .price-sep {
    color: var(--text-muted);
    opacity: 0.6;
}
.schedule-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    width: auto;
    justify-content: flex-end;
}
.schedule-actions .btn {
    text-align: right;
}
@media (max-width: 767.98px) {
    /* 2026-10-11 客戶要求：
       第1行：日期、時間、status button 一行出晒
       第2行：課程名稱
       第3行：價錢（會員及非會員，夠位一行，唔夠位換行）
       第4行：淨係出「詳情」，align 左邊 */
    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .schedule-meta-line {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .schedule-date, .schedule-time {
        width: auto;
        min-width: 0;
    }
    .schedule-name {
        width: 100%;
    }
    .schedule-price {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    .schedule-actions {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
    .schedule-actions .btn {
        text-align: left;
    }
}

/* =============================================
   COURSE DATE TABLE（課程詳情頁：同名課程所有未來日期）
   ============================================= */
.course-date-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: var(--surface, #fff);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.cdt-row { display: table-row; }
.cdt-cell {
    display: table-cell;
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider, #eee);
    font-size: 14px;
    vertical-align: middle;
}
.cdt-head .cdt-cell {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary, #222);
    background: var(--bg-cream, #faf8f5);
}
.cdt-row:last-child .cdt-cell { border-bottom: none; }
.cdt-code { white-space: nowrap; font-weight: 600; }
.cdt-price { white-space: nowrap; color: var(--accent); font-weight: 600; }
.cdt-status { white-space: nowrap; }
.cdt-link { cursor: pointer; transition: background 0.2s ease; }
.cdt-link:hover .cdt-cell { background: rgba(90, 58, 34, 0.07); }

/* Mobile / 窄螢幕：一期一行（pulldown menu 式列表），唔用左右卡片 */
@media (max-width: 900px) {
    .course-date-table, .cdt-row, .cdt-cell { display: block; }
    .cdt-head { display: none !important; }
    .cdt-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--divider, #eee);
        font-size: 13px;
        background: transparent;
    }
    .cdt-row:last-child { border-bottom: none; }
    .cdt-cell {
        display: inline;
        padding: 0;
        border-bottom: none;
        white-space: nowrap;
    }
    .cdt-cell::before { content: none; }
    .cdt-date { font-weight: 600; }
    .cdt-time { color: var(--text-muted, #888); }
    .cdt-status { margin-left: auto; }
    .cdt-status .course-card-badge { font-size: 14px; padding: 5px 13px; }
}

/* 導師 subsection（示範內容下方） */
.content-subsection { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider, #eee); }
.content-subsection h5 { font-size: 15px; margin-bottom: 8px; }

/* Keypoint highlight badge（課程介紹之前；現為全站 dummy text，之後改後台管理） */
.course-keypoint {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-cream, #faf8f5);
    border: 1px solid var(--divider, #eee);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary, #222);
    letter-spacing: 0.02em;
}
.course-keypoint i { color: var(--accent, #5a3a22); }
@media (max-width: 767.98px) {
    .course-keypoint { font-size: 14px; padding: 10px 18px; }
}

/* =============================================
   GALLERY CAROUSEL（desktop slider：一版 3 張 + 左右箭嘴）
   ============================================= */
.gallery-carousel { position: relative; }
.gallery-carousel .gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.gallery-carousel .gallery-slider::-webkit-scrollbar { display: none; }
.gallery-carousel .gallery-slider > img {
    flex: 0 0 calc((100% - 36px) / 4);
    scroll-snap-align: start;
    aspect-ratio: 1;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
/* Course artwork gallery: landscape 4:2.5 images instead of square thumbnails. */
.gallery-carousel .gallery-slider.gallery-landscape > img {
    aspect-ratio: 4 / 2.5;
}
/* 直向 3:4 課程卡比例（同 .course-card-image 一致）：一版剛好 3 張全張相（2026-09 修正：原本 348px 會睇到兩張半） */
.gallery-carousel .gallery-slider.gallery-card-ratio > img {
    flex: 0 0 auto;
    width: calc((100% - 24px) / 3);
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: none;
    object-fit: cover;
}
/* 同學食評直向比例 1080 x 1350 (4:5)：一版剛好顯示 3 張直向卡片 */
.gallery-carousel .gallery-slider.gallery-review > img {
    flex: 0 0 auto;
    width: calc((100% - 24px) / 3);
    height: auto;
    aspect-ratio: 1080 / 1350;
    max-height: none;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.gallery-carousel .gallery-slider > .gallery-video-slide {
    flex: 0 0 calc((100% - 36px) / 4);
    scroll-snap-align: start;
    max-width: none;
    margin: 0;
    grid-column: auto;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--divider, #eee);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary, #222);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.gallery-nav:hover { background: var(--accent, #5a3a22); color: #fff; border-color: var(--accent, #5a3a22); }
.gallery-prev { left: -20px; }
.gallery-next { right: -20px; }
@media (max-width: 1200px) {
    .gallery-prev { left: 4px; }
    .gallery-next { right: 4px; }
}
@media (max-width: 767.98px) {
    .gallery-carousel .gallery-slider > img { flex: 0 0 82%; scroll-snap-align: center; }
    .gallery-carousel .gallery-slider > .gallery-video-slide { flex: 0 0 88%; scroll-snap-align: center; }
    /* 直向 3:4 mobile：同課程卡一樣全闊（頁面 padding 24px 兩邊），高度自動 */
    .gallery-carousel .gallery-slider.gallery-card-ratio > img { flex: 0 0 auto; width: calc(100vw - 48px); }
    /* 同學食評（circular）：mobile 1080 x 1350 (4:5)，佔 85% 闊度 */
    .gallery-carousel .gallery-slider.gallery-review > img {
        flex: 0 0 85%;
        width: 85%;
        height: auto;
        aspect-ratio: 1080 / 1350;
        max-height: none;
        object-fit: cover;
        scroll-snap-align: center;
    }
}

/* 循環課程開課日期（info bar 上方，逐行日程卡 + course code badge） */
.circular-period-list {
    max-width: 720px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.circular-period-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-cream, #faf8f5);
    border: 1px solid var(--divider, #eee);
    border-radius: var(--radius-md, 12px);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary, #222);
    text-align: left;
}
.circular-period-text { flex: 1; }
/* course code：2026-09 客戶要求唔做 button，直接寫喺時間後面用括號包住，例如 (PM101) */
.circular-code-inline {
    color: var(--text-secondary, #666);
    font-family: var(--font-en, Arial, sans-serif);
    font-size: 0.92em;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.circular-remain-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill, 999px);
    background: var(--status-ok, #4a8f5e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
/* 2026-10-01 客戶規格：已滿額 status button 用已滿額配色（同單堂 badge-full #f3e1ce/#6B4F3A） */
.circular-remain-badge.circular-full-badge {
    background: #f3e1ce;
    color: #6B4F3A;
}
/* 2026-10-07 客戶要求：餘額／已滿額 badge 固定同一個 column、align center（後補掣另起一 column） */
.circular-status-col {
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 112px;
}
@media (max-width: 767.98px) {
    .circular-period-row { flex-wrap: wrap; font-size: 14px; padding: 12px 14px; }
}

/* 循環課程列表：日期文字加深 */
.circular-card-period span { color: #4A4A4A; font-weight: 500; }
.circular-card-period .badge-full {
    color: #6B4F3A;
    background-color: #f3e1ce;
    font-size: 13px;
    font-weight: 600;
}

/* 2026-10-03 客戶要求：循環課程卡 CTA——同「閱讀更多 →」同款橙色文字箭嘴，
 上面加一條分隔線；唔係實心 button */
.circular-card-cta {
    display: block;
    border-top: 1px solid var(--divider);
    margin-top: 14px;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.circular-card-cta i { font-size: 11px; margin-left: 2px; }

/* Carousel 分頁圓點（全裝置顯示） */
.gallery-carousel-dots {
    display: flex;
    flex-wrap: wrap; /* 多圖時自動轉 2 行，避免圓點被壓扁 */
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px; /* 2026-09 加大相同圓點距離：避免撳相撳到圓點 */
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-dot {
    flex: 0 0 auto; /* 唔准壓縮，保持圓形 */
    width: 20px;
    height: 20px;
    padding: 0;
    border: 4px solid transparent; /* 20px tap target, 12px visual dot（原本 8px → 加大到 14px 客戶嫌大 → 而家取中間 12px） */
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.18);
    background-clip: padding-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}
.gallery-dot.active {
    background: var(--accent);
    background-clip: padding-box;
    transform: scale(1.25);
}

/* =============================================
   CIRCULAR COURSE LESSON LIST（循環課程每堂內容）
   ============================================= */
.circular-lesson-list { display: flex; flex-direction: column; }
.circular-lesson-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider, #eee);
}
.circular-lesson-row:last-child { border-bottom: none; }
.lesson-type-badge {
    flex-shrink: 0;
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 999px);
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}
.lesson-type-practical { background: rgba(74, 143, 94, 0.12); color: var(--status-ok, #4a8f5e); }
.lesson-type-demo { background: rgba(228, 87, 46, 0.12); color: var(--status-new, #e4572e); }
.lesson-type-remark { background: rgba(102, 102, 102, 0.12); color: var(--text-muted, #888); }

/* =============================================
   SELECTED COURSE BADGES（signup-offline 已選課程）
   ============================================= */
.selected-course-list { display: flex; flex-wrap: wrap; gap: 10px; }
.selected-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 16px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-cream, #faf8f5);
    border: 1px solid var(--divider, #eee);
    font-size: 14px;
    color: var(--text-primary, #222);
}
.selected-course-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent, #C4703F);
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.selected-course-remove:hover {
    background: #a85a2d;
    color: #ffffff !important;
    transform: scale(1.08);
}

/* =============================================
   SUPPORT CARD
   ============================================= */
.support-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
    max-width: 640px;
    margin: 0 auto;
}
.support-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.support-icon i { font-size: 28px; color: var(--accent); }

/* =============================================
   CATEGORY TAGS / PILLS
   ============================================= */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
    column-gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
/* stories.php & baking-tips.php：收緊 pills 區域空位 */
#story-cat-section .category-pills,
#tips-cat-section .category-pills { margin-bottom: 0; }
#story-cat-section.story-cat-tight,
#tips-cat-section.tips-cat-tight { padding-bottom: 0; }
.category-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--text-secondary);
    background-color: #fdfcfb;
    border: 1px solid var(--divider);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.category-pill:hover,
.category-pill.active {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
/* 冇課程嘅分類：照顯示但唔可以撳（2026-09-29 客戶要求） */
.category-pill.disabled,
.category-pill.disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #fdfcfb;
    color: var(--text-secondary);
    border-color: var(--divider);
}

/* ===== 2026-10-06 客戶要求：淨係「循環課程」button 用 Sage Green 邊框款（undo：删走呢個 block）===== */
/* 白／暖白底（跟原本）、Sage Green 邊框 1.5–2px、Sage Green 字；大細圓角全部跟 .category-pill */
.category-pill.pill-circular {
    background-color: #fdfcfb;
    color: #4A8F5E;
    border: 2px solid #4A8F5E;
}
.category-pill.pill-circular:hover {
    background-color: #4A8F5E;
    color: #fff;
    border-color: #4A8F5E;
}
/* ===== end 循環課程 button ===== */

/* 2026-10-07 客戶要求：手機版 courses 頂部 總覽／清單／列表／月曆 4 掣同一行（undo：删走呢個 block） */
@media (max-width: 767.98px) {
    .category-pills.pill-nav4 { flex-wrap: nowrap; gap: 6px; }
    .category-pills.pill-nav4 .category-pill { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
    .category-pills.pill-nav4 .category-pill i { margin-right: 3px !important; }
}
/* ===== end pill-nav4 ===== */

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar {
    max-width: 560px;
    margin: 0 auto 48px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1.5px solid var(--divider);
    border-radius: var(--radius-md);
    font-family: var(--font-zh);
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--surface);
    transition: border-color 0.2s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
}
.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-nav {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover { color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--bg-cream);
    padding: 64px 24px 32px;
    border-top: 1px solid var(--divider);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand { font-family: var(--font-en); font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--text-primary); }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.footer-heading {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--divider);
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background-color: var(--accent);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid var(--divider);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="fade"] { transform: none; }
[data-animate="fade"].in-view { transform: none; }

/* =============================================
   WHATSAPP FAB & BACK TO TOP
   ============================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    z-index: 1040;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.05); background-color: #22BF5B; }

.back-to-top {
    position: fixed;
    bottom: 68px; /* 16px gap above WhatsApp FAB, same right axis */
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--divider);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--bg-cream); }

/* 2026-10-03 客戶要求：課程詳情頁報名區之後、Footer 之前嘅「← 返回課程一覽」
 圓角 button 設計——配色同 .btn-badge 一模一樣（啡邊啡字白底 capsule） */
.back-to-list-bar {
    text-align: center;
    padding: 56px 24px 80px;
}
.back-to-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 9px 22px;
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.back-to-list-link i { font-size: 12px; }
.back-to-list-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   CONTACT GRID
   ============================================= */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-info-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
}
.contact-info-card i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
}
.contact-info-card .wa-icon {
    color: #25D366;
}
.contact-info-card h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
@media (max-width: 767.98px) {
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .contact-info-card { padding: 20px 12px; }
}
@media (max-width: 400px) {
    .contact-info-grid { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.max-w-sm { max-width: 480px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 720px; margin-left: auto; margin-right: auto; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none; }

/* Course Detail Hero */
.course-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 48px;
}
.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(34,34,34,0.15) 0%, rgba(34,34,34,0.7) 100%);
}
.course-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
}
.course-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.course-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.course-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ============================================================
   Member pages (會員特區)
   ============================================================ */
.member-card {
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.member-card-center {
    text-align: center;
}
.member-form .member-field {
    margin-bottom: 18px;
}
.member-form label,
.member-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.member-form label .en,
.member-label .en {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
}
.member-input,
.member-form input[type="text"],
.member-form input[type="password"],
.member-form textarea,
.member-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--divider, #ddd);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.member-form input:focus,
.member-form textarea:focus,
.member-form select:focus {
    outline: none;
    border-color: var(--accent);
}
.member-form textarea {
    min-height: 160px;
    resize: vertical;
}
.member-required-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.member-alert {
    background: #FDF0EC;
    border: 1px solid #E8C4B3;
    color: #A33B1F;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}
.member-ok {
    background: #EFF6F0;
    border: 1px solid #BFDCC6;
    color: var(--status-ok);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}
.member-table-wrap {
    overflow-x: auto;
}
.member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 24px;
}
.member-table th {
    background: var(--accent-light);
    color: var(--accent-hover);
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--accent);
}
.member-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
}
.member-table tr:nth-child(even) td {
    background: var(--bg-cream);
}

/* Member area menu — split panels with accent top bar */
.member-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .member-menu-grid { grid-template-columns: 1fr; }
}
.member-menu-item {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 28px 26px 24px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
    transition: background .25s ease;
}
.member-menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform .3s ease;
}
.member-menu-item:hover::before { transform: scaleX(1); }
.member-menu-item:hover { background: var(--accent-light); }
.member-menu-item .member-menu-icon { display: none; }
.member-menu-item .member-menu-label {
    font-weight: 700;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.member-menu-item .member-menu-label .en {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.member-menu-item .member-menu-arrow {
    margin-top: auto;
    align-self: flex-end;
    color: var(--accent);
    font-size: 18px;
    transition: transform .25s ease;
}
.member-menu-item:hover .member-menu-arrow {
    transform: translateX(6px);
}

/* Logout badge — used across member pages */
.member-logout-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border: 1.5px solid var(--status-full);
    border-radius: 6px;
    background: #fff;
    color: var(--status-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.member-logout-badge:hover {
    background: var(--status-full);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(196, 75, 75, 0.3);
}
.member-nav-pills .member-logout-badge {
    margin-left: auto;
}
.member-nav-pills {
    margin-bottom: 28px;
}
.member-terms-box {
    background: var(--bg-cream);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 20px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.member-terms-box ul {
    padding-left: 20px;
    margin: 8px 0;
}
.member-kv {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.member-kv td {
    padding: 10px 4px;
    border-bottom: 1px solid var(--divider);
}
.member-kv td:first-child {
    font-weight: 600;
    width: 140px;
    color: var(--text-secondary);
}
.member-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.member-btn-row.center {
    justify-content: center;
}
.member-link-row {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}
.member-link-row a {
    color: var(--accent);
    text-decoration: none;
}
.member-link-row a:hover {
    text-decoration: underline;
}
/* 記住我 checkbox（2026-09） */
.member-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}
.member-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}
.link {
    cursor: pointer;
}
.hideTable {
    display: none;
}
.showTable {
    display: table-row-group;
}
span.showTable {
    display: inline;
}
.member-form select,
.member-form input.memberforminput,
.memberforminput {
    padding: 12px 14px;
    border: 1px solid var(--divider, #ddd);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    max-width: 100%;
}
/* 密碼欄「顯示密碼」toggle（member.php；2026-09-29 客戶要求） */
.member-input-wrap,
.password-wrap { position: relative; display: inline-block; width: 100%; max-width: 320px; }
.password-wrap .memberforminput { width: 100%; box-sizing: border-box; padding-right: 42px; }
.member-input-wrap .memberforminput { width: 100%; box-sizing: border-box; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    color: var(--text-muted, #999);
    font-size: 16px;
    cursor: pointer;
}
.password-toggle:hover { color: var(--text-primary, #222); }

/* 聯絡我們頁：地址＋地圖並排（2026-09-29 客戶要求：地圖縮細，放喺上課地址隔離／下面） */
.contact-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}
.contact-map-wrap {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--divider, #e8e0d5);
}
@media (max-width: 767.98px) {
    .contact-address-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-map-wrap { height: 220px; }
}
.member-vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.member-vote-item {
    text-align: center;
}
.member-vote-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .member-card { padding: 20px; }
}

/* =============================================
   2026-09 客戶要求更新（WhatsApp 截圖批核）
   ============================================= */

/* 課程卡：已經唔係成張一個 link（link 淨包住相＋標題，方便 copy 文字） */
.course-card { cursor: default; }

/* 狀態圓點＋黑色字（course-detail.php 日期表「狀態」欄；取代舊啡色 badge）
   2026-09-29 客戶規格：餘N個位＝Sage Green、新課程＝淺啡米色、已滿額／已完結＝灰
   （status-warn 橙黃已停用，留 css 唔影響） */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary, #222);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.status-dot::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted, #999);
}
.status-dot.status-ok::before { background: #4A8F5E; }
.status-dot.status-new::before { background: #C89B6C; }
.status-dot.status-warn::before { background: #D9A441; }
.status-dot.status-full::before { background: #B0B0B0; }
.status-dot.status-extra::before { background: #4F6B7A; }
.status-dot.status-ended::before { background: var(--text-muted, #999); }
.status-dot:hover { text-decoration: underline; }

/* 循環課程入口提示卡（schedule.php；2026-09-29 客戶要求：簡潔資訊卡＋Sage Green 按鈕） */
.circular-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 24px 28px;
    background: #fdfcfb;
    border: 1px solid var(--divider, #e8e0d5);
    border-radius: var(--radius-md, 12px);
}
.circular-promo-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.circular-promo-desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.btn-sage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill, 999px);
    background: #4A8F5E;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.btn-sage:hover { background: #3d7a4f; color: #fff; }
@media (max-width: 767.98px) {
    .circular-promo-card { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* 循環課程總覽（全部循環課程）：分類組標題 */
.circular-group-header {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent, #C4703F);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #222);
}
.circular-group-header:first-of-type { margin-top: 8px; }

/* 每月時間表：月曆模式 */
.sched-calendar { max-width: 720px; margin: 0 auto 32px; }
.sched-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.sched-cal-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #666);
    padding: 6px 0;
}
.sched-cal-day {
    min-height: 72px;
    border: 1px solid var(--divider, #EAEAEA);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-cream, #FAFAFA);
    padding: 6px 8px;
    font-size: 14px;
    color: var(--text-secondary, #666);
}
.sched-cal-empty { border: none; background: transparent; }
.sched-cal-day .sched-cal-num { font-weight: 500; }
.sched-cal-day.has-courses {
    background: rgba(196, 112, 63, 0.08);
    border-color: var(--accent, #C4703F);
    color: var(--text-primary, #222);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.sched-cal-day.has-courses .sched-cal-num { font-weight: 700; }
.sched-cal-day.has-courses .sched-cal-count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent, #C4703F);
}
.sched-cal-day.has-courses:hover { background: rgba(196, 112, 63, 0.16); }
.sched-cal-day.today { outline: 2px solid var(--accent, #C4703F); outline-offset: -2px; }
.sched-cal-day.active {
    background: var(--accent, #C4703F);
    border-color: var(--accent, #C4703F);
    color: #fff;
}
.sched-cal-day.active .sched-cal-count { color: #fff; }
@media (max-width: 767.98px) {
    .sched-cal-day { min-height: 52px; font-size: 13px; padding: 4px 6px; }
    .sched-cal-day .sched-cal-count { font-size: 11px; }
}

/* =============================================
   STORY POPUP（2026-10-04 由 stories.php inline style 搬入共用；
   index.php 首頁同學故事 popup 都用呢套） */
.story-popup{position:fixed;inset:0;z-index:9999;display:none;}
.story-popup.open{display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;}
.story-popup-overlay{position:absolute;inset:0;background:rgba(40,28,20,0.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:storyPopupFade .25s ease;}
/* 2026-10-04 修正：頂部啡色漸變條改用背景圖層繪製——背景會跟 border-radius 裁剪，::before 方角唔會再伸出圓角外（.story-popup-body 透明，漸變條照樣見到） */
.story-popup-card{position:relative;width:min(560px,100%);max-height:calc(100dvh - 48px);margin:0;background:linear-gradient(90deg,#5C3926,#B97850) top/100% 4px no-repeat,#fff;border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,0.28);display:flex;flex-direction:column;animation:storyPopupIn .3s cubic-bezier(.22,1,.36,1);}
.story-popup-body{overflow-y:auto;border-radius:20px;padding:44px 32px 32px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.story-popup-body p{margin:0 0 16px;line-height:1.9;color:#555;font-size:16px;}
.story-popup-close{position:absolute;top:-16px;right:-16px;z-index:5;width:38px;height:38px;border-radius:50%;border:none;cursor:pointer;background:#fff;color:#5C3926;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,0.25);transition:transform .3s ease,background .3s ease,color .3s ease;}
.story-popup-close:hover{transform:rotate(90deg);background:#5C3926;color:#fff;}
@keyframes storyPopupFade{from{opacity:0;}to{opacity:1;}}
@keyframes storyPopupIn{from{opacity:0;transform:translateY(24px) scale(.97);}to{opacity:1;transform:none;}}
@media (max-width:576px){
.story-popup.open{padding:20px 14px;}
.story-popup-card{width:100%;max-height:calc(100dvh - 40px);border-radius:16px;}
.story-popup-body{border-radius:16px;padding:40px 20px 24px;}
.story-popup-close{top:-14px;right:-6px;}
}

/* =============================================
   SCHEDULE: HEADER, YEAR LABEL & MONTH PILLS SCROLL
   ============================================= */
.sched-header-tight {
    margin-bottom: 24px;
}
.schedule-year-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666);
    margin: 0 0 14px;
    text-align: center;
}
.month-pills-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 12px;
    margin-bottom: 0;
    scrollbar-width: none;
}
.month-pills-scroll::-webkit-scrollbar {
    display: none;
}
.month-pills-scroll .category-pill {
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .month-pills-scroll {
        justify-content: center;
    }
}

/* =============================================
   WHATSAPP SESSION SELECTION MODAL
   ============================================= */
.wa-session-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.wa-session-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.wa-session-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 28, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: waModalFade .25s ease;
}
.wa-session-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100dvh - 48px);
    margin: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: waModalIn .3s cubic-bezier(.22,1,.36,1);
}
.wa-session-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--divider, #eee);
    position: relative;
    background: #FAF7F5;
}
.wa-session-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #222);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wa-session-modal-title i {
    color: #25D366;
    font-size: 22px;
}
.wa-session-modal-desc {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 0;
    line-height: 1.5;
}
.wa-session-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #555;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.wa-session-modal-close:hover {
    background: var(--accent, #C4703F);
    color: #fff;
}
.wa-session-modal-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wa-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--divider, #EAEAEA);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    gap: 12px;
}
.wa-session-item:hover {
    border-color: #25D366;
    background: #F4FAF5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}
.wa-session-info {
    flex: 1;
    min-width: 0;
}
.wa-session-datetime {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #222);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wa-session-meta {
    font-size: 12px;
    color: var(--text-secondary, #666);
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-session-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #25D366;
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
}
.wa-session-item:hover .wa-session-action {
    background: #25D366;
    color: #fff;
}
.wa-session-item-general {
    border-style: dashed;
    background: #FAF8F6;
}
.wa-session-item-general:hover {
    border-color: var(--accent, #C4703F);
    background: #FFF9F5;
}
.wa-session-item-general .wa-session-action {
    color: var(--accent, #C4703F);
    background: rgba(196, 112, 63, 0.1);
}
.wa-session-item-general:hover .wa-session-action {
    background: var(--accent, #C4703F);
    color: #fff;
}
@keyframes waModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes waModalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 576px) {
    .wa-session-modal.open { padding: 12px; }
    .wa-session-modal-card { max-height: calc(100dvh - 24px); border-radius: 16px; }
    .wa-session-modal-header { padding: 18px 16px 12px; }
    .wa-session-modal-body { padding: 12px 14px 20px; }
    .wa-session-item { padding: 12px; }
}

/* =============================================
   COURSES & STORIES: SPACING & LAYOUT REFINEMENTS (2026-10-11)
   ============================================= */
/* 頂部留白輕微調整（藍色位置） */
.hero-tight-top {
    padding-top: 88px !important;
}
@media (max-width: 768px) {
    .hero-tight-top {
        padding-top: 74px !important;
    }
}

/* 課程頁 & 首頁：11個分類按鈕每行垂直距離（Row Gap）改為 12px，及搜尋欄上下間距調整 */
.course-cat-pills {
    row-gap: 12px;
    column-gap: 8px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .course-cat-pills {
        row-gap: 12px;
    }
    .course-cat-pills .category-pill {
        padding: 7px 14px;
        font-size: 13.5px;
    }
}

/* 循環課程：兩組按鈕之間改為 32px */
.circular-view-pills {
    margin-bottom: 32px !important;
}

/* 循環課程：搜尋欄至第一張課程卡（或分組標題）改為 40px */
.circular-header {
    margin-bottom: 40px !important;
}
.circular-header + .circular-group-header,
.circular-group-header:first-of-type {
    margin-top: 0 !important;
}

/* 搜尋按鈕收窄／手機版固定寬度防擠壓 */
.btn-search-tight {
    padding: 11px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
@media (max-width: 768px) {
    .btn-search-tight {
        width: 72px !important;
        flex: 0 0 72px !important;
        padding: 11px 6px !important;
        font-size: 13.5px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }
}

/* 課程頁：搜尋欄與「課程一覽」之間留白縮減（黃色位置） */
.course-section-header {
    margin-bottom: 28px;
}

/* 同學故事頁：頂部留白大幅縮減（藍色位置），及副標題留白縮減（紅色位置） */
.story-hero-tight {
    padding-top: 86px !important;
    padding-bottom: 20px !important;
}
@media (max-width: 768px) {
    .story-hero-tight {
        padding-top: 74px !important;
        padding-bottom: 16px !important;
    }
}

/* 同學故事頁：分類按鈕 3 行排版及留白縮減（黃色位置） */
.story-cat-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.story-pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
@media (max-width: 480px) {
    .story-pills-row .category-pill {
        padding: 7px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* =============================================
   TEACHING PHILOSOPHY PAGE (2026-10-11)
   ============================================= */
.philosophy-hero {
    padding-top: 104px; /* 64px header + 40px gap */
    padding-bottom: 24px;
    text-align: center;
}
.philosophy-hero .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.philosophy-hero .philosophy-overline {
    margin-bottom: 16px !important;
    letter-spacing: 0.08em;
}
.philosophy-hero .philosophy-title {
    margin-bottom: 24px !important;
}
.philosophy-subtitles {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.philosophy-sub-zh {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary, #555);
    margin: 0 0 10px !important; /* 8-12px */
}
.philosophy-sub-en {
    font-size: 15px;
    line-height: 1.45 !important; /* 1.4-1.5 */
    color: var(--text-muted, #777);
    margin: 0 !important;
    max-width: 580px;
}

/* Hero 英文副句結束後至正文開始：約 48-56px (Hero pb 24px + Section pt 28px = 52px) */
.philosophy-section {
    padding-top: 28px !important;
    padding-bottom: 64px;
}
.philosophy-content {
    text-align: left;
}
.philosophy-body-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary, #222);
    margin-top: 0;
    margin-bottom: 24px !important;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.philosophy-body-title span {
    display: inline-block;
}

@media (max-width: 768px) {
    .philosophy-hero {
        padding-top: 104px !important; /* 64px header + 40px gap */
        padding-bottom: 24px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .philosophy-hero .philosophy-overline {
        margin-bottom: 16px !important;
    }
    .philosophy-hero .philosophy-title {
        margin-bottom: 24px !important;
    }
    .philosophy-sub-zh {
        font-size: 16.5px;
        margin-bottom: 10px !important;
    }
    .philosophy-sub-en {
        font-size: 14.5px;
        line-height: 1.45 !important;
    }
    .philosophy-section {
        padding-top: 28px !important;
        padding-bottom: 48px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .philosophy-body-title {
        font-size: 28px !important; /* 28-30px */
        line-height: 1.3 !important;
        margin-bottom: 24px !important;
        text-align: left;
        text-wrap: balance;
    }
}



