/* ==========================================================================
   /ielts-course/one-on-one.html 雅思口說一對一
   載入順序：site.css → article.css → 本檔
   命名空間：.oo-*
   ========================================================================== */

/* ---------- 01｜寬幅情境圖 ---------- */
.ielts-article .oo-wide-media {
    margin: 32px 0 0;
}

.ielts-article .oo-wide-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------- 01｜三項特色（ICON 與標題同列） ---------- */
.ielts-article .oo-features {
    margin-top: 36px;
    border-top: 2px solid #222;
}

.ielts-article .oo-feature {
    padding: 30px 0;
    border-bottom: 1px solid var(--ip-border);
}

.ielts-article .oo-feature:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ielts-article .oo-feature h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-size: clamp(19px, 1.7vw, 22px);
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.ielts-article .oo-feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--red);
    color: var(--red);
}

.ielts-article .oo-feature-icon svg {
    width: 22px;
    height: 22px;
}

.ielts-article .oo-feature-key {
    color: var(--red);
}

.ielts-article .oo-feature p:last-child {
    margin-bottom: 0;
}

/* ---------- 02｜上課流程時間軸 ---------- */
.ielts-article .oo-timeline {
    margin: 34px 0 6px;
    --oo-gap: 24px;
}

.ielts-article .oo-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 var(--oo-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ielts-article .oo-step {
    position: relative;
    min-width: 0;
    padding-top: 30px;
}

/* 節點 */
.ielts-article .oo-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 13px;
    height: 13px;
    box-sizing: border-box;
    border: 1px solid #222;
    border-radius: 50%;
    background: #fff;
}

/* 連接線 */
.ielts-article .oo-step::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    right: calc(var(--oo-gap) * -1);
    border-top: 1px solid #c9c4be;
}

.ielts-article .oo-step:last-child::after {
    right: 0;
}

.ielts-article .oo-step--live::before {
    border-color: var(--red);
    background: var(--red);
}

.ielts-article .oo-step--live::after {
    top: 5px;
    border-top: 3px solid var(--red);
}

.ielts-article .oo-step--teacher::before {
    border-style: dashed;
    border-color: #777;
}

.ielts-article .oo-step--teacher::after {
    border-top: 1px dashed #9a948e;
}

.ielts-article .oo-step h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.ielts-article .ip-content .oo-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.ielts-article .ip-content .oo-step .oo-step-time {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--red);
}

/* 老師備課步驟：時間改灰字（選擇器比上一條多一層，不需 !important） */
.ielts-article .ip-content .oo-step--teacher .oo-step-time {
    color: #555;
}

/* ---------- 03｜師資圖文 ---------- */
.ielts-article #teachers .ip-media-row {
    margin-bottom: 0;
}

/* ---------- 04｜學員需求（沿用 .ip-skill-grid，本頁微調） ---------- */
.ielts-article .oo-needs {
    margin-bottom: 30px;
}

.ielts-article .oo-needs .ip-skill-card h3 {
    margin-bottom: 16px;
    line-height: 1.6;
}

.ielts-article .ip-content .oo-support {
    padding-left: 14px;
    border-left: 2px solid var(--red);
}

.ielts-article .oo-support-label {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #8a8a8a;
}

/* ---------- RWD ---------- */
@media (max-width: 1100px) {

    /* 時間軸改為垂直流程 */
    .ielts-article .oo-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ielts-article .oo-step {
        padding: 0 0 28px 38px;
    }

    .ielts-article .oo-step:last-child {
        padding-bottom: 0;
    }

    .ielts-article .oo-step::before {
        top: 5px;
    }

    .ielts-article .oo-step::after,
    .ielts-article .oo-step:last-child::after {
        top: 11px;
        bottom: -5px;
        left: 6px;
        right: auto;
        border-top: 0;
        border-left: 1px solid #c9c4be;
    }

    .ielts-article .oo-step--live::after {
        top: 11px;
        left: 5px;
        border-top: 0;
        border-left: 3px solid var(--red);
    }

    .ielts-article .oo-step--teacher::after,
    .ielts-article .oo-step--teacher:last-child::after {
        bottom: 0;
        border-left: 1px dashed #9a948e;
    }
}

@media (max-width: 760px) {
    .ielts-article .oo-wide-media {
        margin-top: 24px;
    }

    .ielts-article .oo-features {
        margin-top: 28px;
    }

    .ielts-article .oo-feature {
        padding: 26px 0;
    }

    .ielts-article .oo-feature h3 {
        align-items: flex-start;
        gap: 12px;
    }

    .ielts-article .oo-feature-icon {
        width: 36px;
        height: 36px;
    }

    .ielts-article .oo-step h3 {
        font-size: 17px;
    }

    .ielts-article .oo-needs .ip-skill-card h3 {
        font-size: 17px;
    }
}
