
.roadmap-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.roadmap-section .sub-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}
.roadmap-section h2 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.06em;
    margin-bottom: 70px;
    color: #1e1e1e;
    word-break: keep-all;
}


/* 4. 로드맵 섹션 */
.roadmap-section {
    padding: 120px 0;
    background-color: #fcfcfc;
    text-align: center;
}

.roadmap-section .roadmap-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 이 부분이 카드 높이를 같게 맞춥니다. */
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    position: relative;
    gap: 25px; /* 카드 간 간격 */
}

.roadmap-section .roadmap-track-line {
    position: absolute;
    top: 155px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #d84141, #ff9800);
    opacity: 0.7;
    z-index: 0;
}

.roadmap-block {
    flex: 1; /* flex item으로 공간을 균등하게 분배합니다. */
    display: flex;
    flex-direction: column; /* 내부 step-card가 column 방향으로 유연하게 배치되도록 합니다. */
    position: relative;
    z-index: 1;

}

.roadmap-block:not(:last-child)::after {
    content: '→';
    font-size: 2rem;
    color: #d84141;
    position: absolute;
    top: 140px;
    right: -20px;
    z-index: 2;
}

.step-card {
    flex-grow: 1; /* 부모(roadmap-block)의 높이에 맞춰 카드가 늘어나도록 합니다. */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 40px 25px;
    text-align: center;
    width: 100%; /* roadmap-block 안에서 꽉 차도록 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 아이템 중앙 정렬 유지 */
    justify-content: flex-start; /* 내용 시작 부분에 정렬 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.step-card .step-label {
    display: inline-block;
    background-color: #d84141;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.step-card .step-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(30,30,30,1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}
.roadmap-block:nth-child(4).step-card .step-icon{background-size: 300%;}

/* 아이콘 이미지 경로 (주석 처리된 멍하니님의 원본 유지) */
/* .roadmap-block:nth-child(1) .step-icon { background-image: url('../img/icons/roadmap_step1_q.svg'); } */
/* .roadmap-block:nth-child(2) .step-icon { background-image: url('../img/icons/roadmap_step2_q.svg'); } */
/* .roadmap-block:nth-child(3) .step-icon { background-image: url('../img/icons/roadmap_step3_q.svg'); } */
/* .roadmap-block:nth-child(4) .step-icon { background-image: url('../img/icons/roadmap_step4_q.svg'); } */

.step-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.04em;
    margin-bottom: 15px;
    color: #1e1e1e;
    word-break: keep-all;
}

.step-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    flex-grow: 1; /* 단락 내용이 남는 공간을 채우도록 */
}

.roadmap-overall-note{margin-top: 15px;}

/* 반응형 디자인 */

/* 태블릿 (Max-width 991px) */
@media (max-width: 991px) {

    .roadmap-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }


    .roadmap-section h2 {
        font-size: 2.8rem;
        margin-bottom: 60px;
    }
    .roadmap-section .roadmap-steps-container {
        flex-wrap: wrap;
        justify-content: space-around;
        padding-bottom: 0;
        gap: 40px;
        align-items: stretch; /* 태블릿에서도 카드 높이 동일하게 유지 */
    }
    .roadmap-section .roadmap-track-line {
        display: none;
    }
    .roadmap-block {
        flex: none;
        width: 47%; /* 태블릿에서 두 개씩 표시 */
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .roadmap-block:not(:last-child)::after {
        display: none; /* 태블릿에서는 화살표 제거 */
    }
    .step-card {
        width: 100%;
        min-height: 350px; /* 태블릿에서 최소 높이 유지 */
        padding: 30px 20px;
        flex-grow: 1; /* 부모 높이에 맞춰 늘어나도록 */
    }
    .step-card .step-label {
        margin-bottom: 20px;
    }
    .step-card .step-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }
    .step-card h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }
    .step-card p {
        font-size: 1rem;
    }
}

/* 모바일 (Max-width 767px) */
@media (max-width: 767px) {
    .roadmap-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .roadmap-section h2 {
        font-size: 2.4rem;
        margin-bottom: 50px;
    }
    .roadmap-section .roadmap-steps-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 0;
        gap: 30px;
        align-items: stretch; /* 모바일에서도 카드 높이 동일하게 유지 */
    }
    .roadmap-section .roadmap-track-line {
        display: none;
    }
    .roadmap-block {
        flex: none;
        width: 100%; /* 모바일에서 한 개씩 표시 */
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .roadmap-block:not(:last-child)::after {
        display: none;
    }
    .step-card {
        width: 100%;
        min-height: auto; /* auto로 설정하여 내용에 따라 유연하되, flex-grow로 동일 높이 유지 */
        padding: 30px 20px;
        flex-grow: 1; /* 부모 높이에 맞춰 늘어나도록 */
    }
    .step-card .step-label {
        font-size: 0.9rem;
        padding: 7px 18px;
        margin-bottom: 18px;
    }
    .step-card .step-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .step-card h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }
    .step-card p {
        font-size: 1.0rem;
    }

}

/* 작은 모바일 (Max-width 480px) */
@media (max-width: 480px) {


    .dilemma-solution-section h2,
    .why-only-oneonone-section h2,
    .roadmap-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .dilemma-card {
        padding: 20px;
        min-height: 120px;
    }
    .dilemma-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    .dilemma-card p {
        font-size: 0.9rem;
    }
    .comparison-hint{
      text-align: justify;
    }

    .why-only-oneonone-section .why-detail-items {
        gap: 40px;
    }
    .detail-item .item-image {
        height: 200px;
    }
    .detail-item h3 {
        font-size: 1.6rem;
        font-weight: 700;
    }
    .detail-item p {
        font-size: 0.95rem;
        text-align: justify;
    }

    .step-card h3 {
        font-size: 1.3rem;
        font-weight: 600;
    }
    .step-card p {
        font-size: 0.9rem;
    }


    .dilemma-card-text-content {
        padding: 20px;
        min-height: 120px;
    }
}
