/* ========================
   IMAGE LABEL (sleep.html)
   ======================== */
.img-label {
    position: absolute;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* ========================
   PSG TARGET SECTION (sleep.html)
   ======================== */
.psg-target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.target-img {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.target-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================
   RESPONSIVE - SLEEP
   ======================== */

@media (max-width: 900px) {
    .psg-target-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .target-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* 이미지 레이블 축소 */
    .img-label {
        font-size: 0.62rem;
        padding: 3px 7px;
        bottom: 6px;
        border-radius: 5px;
    }

    /* 예약~맞춤형치료 프로세스: 가로 한 줄 유지 */
    .process-section .process-container {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 4px;
        padding: 0 2%;
    }

    .process-section .process-node {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-section .node-circle {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .process-section .node-step {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        top: -2px;
        right: -2px;
    }

    .process-section .node-content h4 {
        font-size: 0.72rem;
        margin-bottom: 0;
        word-break: keep-all;
    }

    /* 설명 텍스트 숨김 - 너무 좁음 */
    .process-section .node-content p {
        display: none;
    }

    .process-section .process-arrow {
        padding-top: 26px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* PSG/CPAP 과정 STEP: 2열 */
    .sleep-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sleep-steps-grid .process-item {
        padding: 18px 12px;
    }

    .sleep-steps-grid .process-step {
        font-size: 0.72rem;
    }

    .sleep-steps-grid .process-item h4 {
        font-size: 0.95rem;
    }

    .sleep-steps-grid .process-item p {
        font-size: 0.82rem;
    }
}
