/* ===========================================================================
   턱관절장애 (/tmj) 전용 스타일
   공통(헤더/퀵메뉴/푸터/.mark/.mark--label/토큰)은 main.css 에 있다.
   =========================================================================== */

/* 시안: 섹션 2200px, 헤드 top 153 / 마지막 행 아래 여백 243 */
.tmj {
    position: relative;
    overflow: hidden;
    padding: 153px 0 243px;
    background-color: #eaeaea;
}

.tmj__head {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tmj__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-brown-mid);
}

.tmj__lead {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: -0.9px;
    color: var(--c-body);
}

/* 소제목 / 본문 (카드와 3행이 공유) ------------------------------------------- */
.tmj-sub {
    font-size: 33px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.7px;
    color: var(--c-brown-mid);
}

/* 시안은 nowrap 이라 줄바꿈이 <br> 위치에서만 일어난다.
   컨테이너 폭에 맡기면 2행 첫 줄처럼 designed 줄바꿈이 깨진다.
   1170 고정이 풀리는 1230 이하에서 다시 푼다. */
.tmj-body {
    margin-top: 30px;
    white-space: nowrap;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -1px;
    color: #535353;
}

.tmj-body b {
    font-weight: 500;
    letter-spacing: -0.6px;
    color: #000;
}

/* 카드 안에서만 강조색이 짙은 갈색 */
.tmj-card .tmj-body b {
    color: #553b26;
}

/* 가로 전체 카드 -------------------------------------------------------------- */
.tmj-card {
    position: relative;
    margin-top: 40px;
}

.tmj-card__bg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1170 / 360;
    object-fit: cover;
}

.tmj-card__copy {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

/* 사진 + 설명 3행 ------------------------------------------------------------- */
.tmj-rows {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* 570 + 70 = 640 (시안의 우측 텍스트 시작점) */
.tmj-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 70px;
}

.tmj-row > img {
    flex: 0 0 570px;
    width: 570px;
    height: auto;
    aspect-ratio: 570 / 360;
    object-fit: cover;
}

/* 시안: 사진 윗변 기준 소제목이 19px 아래에서 시작한다 */
.tmj-row__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-top: 24px;
}

/* 장식용 B 심볼 — 3행 사진 위 47px, 컨테이너 오른쪽으로 256px 넘어간다 */
.tmj__symbol {
    position: absolute;
    right: -256px;
    top: -47px;
    width: 478px;
    height: auto;
    pointer-events: none;
}

/* 반응형 — 모바일 시안이 없어 PC 시안을 축소 해석한 값이다 --------------------- */
@media (max-width: 1230px) {
    .tmj {
        padding: 90px 0 100px;
    }

    .tmj__title {
        font-size: 40px;
    }

    .tmj-card__copy {
        left: 40px;
        right: 40px;
    }

    .tmj-sub {
        font-size: 26px;
    }

    .tmj-body {
        margin-top: 20px;
        white-space: normal;
        font-size: 19px;
    }

    .tmj-row {
        gap: 40px;
    }

    .tmj-row > img {
        flex: 0 1 460px;
        width: 460px;
    }

    .tmj__symbol {
        right: -120px;
        width: 360px;
    }
}

@media (max-width: 900px) {
    /* 카드 위 글자가 사진을 다 덮으므로 사진을 배경으로 내리고 글을 흐름에 둔다 */
    .tmj-card {
        border-radius: 25px;
        overflow: hidden;
        background-color: #fff;
    }

    .tmj-card__copy {
        position: static;
        transform: none;
        padding: 30px 24px;
    }

    .tmj-row {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .tmj-row > img {
        flex: none;
        width: 100%;
    }

    .tmj-row__copy {
        padding-top: 0;
    }

    .tmj__symbol {
        display: none;
    }
}

@media (max-width: 768px) {
    .tmj {
        padding: 60px 0 70px;
    }

    .tmj__head {
        gap: 14px;
    }

    .tmj__title {
        font-size: 28px;
    }

    .tmj__lead {
        font-size: 16px;
        letter-spacing: -0.5px;
    }

    .tmj-card {
        margin-top: 30px;
    }

    .tmj-sub {
        font-size: 20px;
        letter-spacing: -0.5px;
    }

    .tmj-body {
        margin-top: 12px;
        font-size: 15px;
        letter-spacing: -0.5px;
    }

    .tmj-body b {
        letter-spacing: -0.5px;
    }

    .tmj-rows {
        margin-top: 35px;
        gap: 35px;
    }
}
