/* ===== about.css — 記憶之河 about 頁面專屬樣式 ===== */

/* 關掉 scroll-snap，about 頁面自然捲動 */
.about-page html,
html:has(.about-page) {
    scroll-snap-type: none;
    
}

/* navbar 在 about 頁面預設顯示 */
.about-page .main-nav {
    opacity: 1;
    pointer-events: auto;
    background: rgba(11, 29, 46, 0.85);
    backdrop-filter: blur(8px);
}

/* ===== intro-statement — 引言 ===== */
.intro-statement {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
    box-sizing: border-box;
    text-align: center;
}

.intro-statement p {
    font-size: 1.6rem;
    font-weight: 200;
    line-height: 2.4;
    letter-spacing: 0.2em;
    opacity: 0.75;
    color: var(--foggy-white);
}

/* ===== teacher-journey — 核心理念與個人宣言 ===== */
.teacher-journey {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 15% 80px;
    box-sizing: border-box;
    max-width: 900px;
}

.teacher-journey__label {
    font-size: 1.5rem;
    letter-spacing: 0.6em;
    color: var(--faint-gold);
    opacity: 0.7;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.teacher-journey__title {
    font-size: 2.2rem;
    font-weight: 200;
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--foggy-white);
    margin-bottom: 3rem;
}

.teacher-journey__body {
    font-size: 1rem;
    line-height: 2.4;
    opacity: 0.7;
    letter-spacing: 0.05em;
    max-width: 560px;
}

@media (max-width: 768px) {

    .teacher-journey__label {
        font-size: 1.2rem;
    }

    .teacher-journey {
        padding: 80px 8% 60px;
        min-height: unset;
    }

    .teacher-journey__title {
        font-size: 1.5rem;
    }
}

/* ===== 共用 ===== */
.about-section-title {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.8;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* ===== 1. Hero — 理念 ===== */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 120px 10% 80px;
    box-sizing: border-box;
}

.about-hero__photo-placeholder {
    width: 320px;
    height: 420px;
    flex-shrink: 0;
    background-color: #1a2e42;
    border: 1px solid var(--faint-gold);
}

.about-hero__text {
    max-width: 520px;
}

.about-hero__tagline {
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    color: var(--faint-gold);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-hero__title {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.8;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    color: var(--foggy-white);
}

.about-hero__body {
    font-size: 1rem;
    line-height: 2.2;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

/* ===== 2. 個案故事 ===== */
.about-testimonials {
    padding: 100px 10%;
    box-sizing: border-box;
}

.about-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-testimonial-card {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--faint-gold);
    box-sizing: border-box;
}

.about-testimonial-card p {
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.about-testimonial-card cite {
    font-size: 0.8rem;
    opacity: 0.45;
    letter-spacing: 0.2em;
    display: block;
}

/* ===== 3. 專業背景 ===== */
.about-credentials {
    padding: 100px 10%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-credentials__content {
    flex: 1;
}

.about-credentials__list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-credential-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.about-credential-icon {
    color: var(--faint-gold);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.about-credential-item h3 {
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: var(--faint-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.about-credential-item p {
    font-size: 0.95rem;
    line-height: 1.9;
    opacity: 0.75;
}

.about-credentials__photo-placeholder {
    width: 280px;
    height: 360px;
    flex-shrink: 0;
    background-color: #1a2e42;
    border: 1px solid var(--faint-gold);
}

/* ===== 4. 方法論 ===== */
.about-methodology {
    padding: 100px 10%;
    box-sizing: border-box;
    max-width: 760px;
}

.about-methodology__content p {
    font-size: 1rem;
    line-height: 2.4;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.about-methodology__cta {
    margin-top: 3rem;
}

/* ===== 5. 結尾 CTA ===== */
.about-cta {
    padding: 100px 10% 120px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

.about-cta__text {
    font-size: 1.3rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

/* ===== client-stories — 個案故事輪播 ===== */
.client-stories {
    padding: 100px 10% 80px;
    box-sizing: border-box;
    text-align: center;
}

.client-stories__carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.client-stories__track {
    position: relative;
    min-height: 220px;
}

.client-story {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.client-story.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.client-story__quote {
    font-size: 1.35rem;
    font-weight: 200;
    line-height: 2.2;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.client-story__cite {
    font-size: 1.2rem;
    opacity: 0.4;
    letter-spacing: 0.25em;
    display: block;
}

.client-stories__prev,
.client-stories__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--faint-gold);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-stories__prev:hover,
.client-stories__next:hover {
    opacity: 1;
}

.client-stories__prev { left: -60px; }
.client-stories__next { right: -60px; }

.client-stories__counter {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    opacity: 0.35;
    color: var(--foggy-white);
}

@media (max-width: 768px) {
    .client-stories {
        padding: 70px 8%;
    }

    .client-stories__prev { left: 0; display: none;}
    .client-stories__next { right: 0; display: none; }

    .client-story__quote {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .client-story__cite {
        font-size: 1rem;
    }
}

/* ===== hypnosis-philosophy — 我的工作方式 ===== */
.hypnosis-philosophy {
    padding: 100px 10% 80px;
    box-sizing: border-box;
    
}

.hypnosis-philosophy__content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.hypnosis-philosophy__left {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.hypnosis-philosophy__line {
    width: 1px;
    background: var(--faint-gold);
    opacity: 0.5;
    flex-shrink: 0;
    align-self: stretch;
}

.hypnosis-philosophy__text {
    flex: 1;
    min-width: 0;
}

.hypnosis-philosophy__text p {
    font-size: 1rem;
    line-height: 2.4;
    opacity: 0.75;
    letter-spacing: 0.05em;
    margin-bottom: 1.8rem;
}

.hypnosis-philosophy__text p:last-of-type {
    margin-bottom: 2.5rem;
}

.hypnosis-philosophy__right {
    flex-shrink: 0;
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hypnosis-philosophy__photo-placeholder {
    width: 100%;
    height: 360px;
    background-color: #1a2e42;
    border: 1px solid var(--faint-gold);
}

.hypnosis-philosophy__tags {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.5;
    text-align: center;
}

@media (max-width: 768px) {
    .hypnosis-philosophy {
        padding: 70px 8%;
    }

    .hypnosis-philosophy__content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .hypnosis-philosophy__right {
        width: 100%;
        order: -1; /* 圖片移到文字上方 */
    }

    .hypnosis-philosophy__left {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .hypnosis-philosophy__line {
        width: 40px;
        height: 1px;
        align-self: auto;
        margin-bottom: 2rem;
    }

    .hypnosis-philosophy__photo-placeholder {
        height: 220px;
        width: 80%;
    }
}

/* ===== professional-background — 專業與資質 ===== */
.professional-background {
    padding: 100px 20% 80px;
    box-sizing: border-box;
    width: 100%;
}

.professional-background__content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

/* 左側證照 */
.professional-background__certs {
    flex-shrink: 0;
    width: 300px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1rem;
    
}

.cert-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cert-item:hover {
    opacity: 0.75;
}

.cert-item__photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #1a2e42;
    border: 1px solid rgba(197, 160, 89, 0.4);
    margin-bottom: 0.5rem;
}

.cert-item__label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    opacity: 0.45;
    line-height: 1.6;
    text-align: center;
}

/* 右側文字 */
.professional-background__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.prof-category__label {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.7;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.prof-category__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.prof-category__list li {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.prof-category__tags {
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.prof-category--current .prof-category__list li {
    font-size: 1.05rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* Lightbox */
.cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cert-lightbox.active {
    display: flex;
}

.cert-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.cert-lightbox__img {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    z-index: 1;
}

.cert-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--foggy-white);
    font-size: 1.5rem;
    opacity: 0.6;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.cert-lightbox__close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .professional-background {
        padding: 70px 8%;
    }

    .professional-background__content {
        flex-direction: column;
        gap: 3rem;
    }

    .professional-background__certs {
        width: 100%;
    }
}

/* ===== about-cta — 結尾 ===== */
.about-cta {
    padding: 100px 10% 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
    height: 80dvh;
}

.about-cta__text {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    opacity: 0.75;
    line-height: 2;
}

@media (max-width: 768px) {
    .about-cta {
        padding: 70px 8% 80px;
    }

    .about-cta__text {
        font-size: 1.2rem;
    }
}

/* ===== course-history — 課程足跡 ===== */
.course-history {
    padding: 80px 15% 80px;
    box-sizing: border-box;
    max-width: 900px;
}

.course-history__timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

/* 左側垂直細線 */
.course-history__timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: rgba(197, 160, 89, 0.3);
}

.course-history__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    position: relative;
}

/* 節點 */
.course-history__dot {
    position: absolute;
    left: -2.35rem;
    width: 7px;
    height: 7px;
    background: transparent;
    border: 1px solid var(--faint-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.7;
}

.course-history__meta {
    flex-shrink: 0;
    width: 110px;
}

.course-history__date {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--faint-gold);
    opacity: 0.6;
}

.course-history__name {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
    line-height: 1.8;
}

/* 隱藏的額外紀錄 */
.course-history__item--hidden {
    display: none;
}

.course-history__item--hidden.visible {
    display: flex;
}

/* 查看更多按鈕 */
.course-history__more {
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--faint-gold);
    opacity: 0.6;
    cursor: pointer;
    border-bottom: 1px solid var(--faint-gold);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
    display: block;
}

.course-history__more:hover {
    opacity: 1;
}

.course-history__more.hidden {
    display: none;
}

@media (max-width: 768px) {
    .course-history {
        padding: 60px 8%;
        max-width: 100%;
    }

    .course-history__meta {
        width: 90px;
    }

    .course-history__date {
        font-size: 0.75rem;
    }

    .course-history__name {
        font-size: 0.9rem;
    }
}

.course-history__item--hidden {
    display: none;
}