/*
(주)파이브센스_FIVESENSES.Corp.
파이브프로_FIVEPro_웹솔루션.
본 라이브러리(소스코드 및 디자인 포함)는 (주)파이브센스의 자산이며, 저작권법 및 부정경쟁방지법에 의해 보호됩니다.
무단 사용, 외부 유출, 복제, 배포, 변형을 금지합니다.
위반 시 민·형사상 법적 책임 및 손해배상 청구 대상이 됩니다.
작성일: 2025-03-18 | 저작권자: (주)파이브센스(520-86-01244) | All Rights Reserved.
*/

.QI2 .main_box {
    width: 100%;
    height: auto;
}

/* 섹션 헤더 */
.QI2 .main_cont_title {
    margin-bottom: 52px;
}

/* 아이브로 라벨 */
.QI2 .main_cont_title .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #1f7a52;
    line-height: 1;
    width: auto;
    margin-bottom: 14px;
}

.QI2 .main_cont_title .subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f7a52;
    flex-shrink: 0;
}

/* 헤드라인 */
.QI2 .main_cont_title .title {
    font-size: 44px;
    font-weight: 700;
    color: var(--main-font-color);
    line-height: 1.3;
    margin-bottom: 15px;
}

/* 섹션 설명 */
.QI2 .main_cont_title .text {
    font-size: 16px;
    color: #5b616e;
    line-height: 1.3;
}

/* 단계 리스트 */
.QI2 .contents_box {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding-top: 0;
    counter-reset: qi2-step;
    width: 100%;
    --qi2-color: #1f7a52;
}

/* 단계별 테마 색상 */
.QI2 .contents_box .listItem:nth-child(1) { --qi2-color: #1f7a52; }
.QI2 .contents_box .listItem:nth-child(2) { --qi2-color: #1a6dff; }
.QI2 .contents_box .listItem:nth-child(3) { --qi2-color: #7c3aed; }
.QI2 .contents_box .listItem:nth-child(4) { --qi2-color: #d97706; }
.QI2 .contents_box .listItem:nth-child(5) { --qi2-color: #e11d48; }
.QI2 .contents_box .listItem:nth-child(6) { --qi2-color: #0d9488; }

/* 카드 아이템 */
.QI2 .contents_box .listItem {
    counter-increment: qi2-step;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dee1e6;
    border-radius: 18px;
    padding: 28px 24px;
    overflow: hidden;
    transition: all 200ms ease;
    z-index: 2;
}

.QI2 .contents_box .listItem:hover {
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

/* hover gradient overlay */
.QI2 .contents_box .listItem::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 200ms;
    pointer-events: none;
}
.QI2 .contents_box .listItem:hover::after { opacity: 1; }
.QI2 .contents_box .listItem:nth-child(1)::after { background: linear-gradient(135deg, rgba(31,122,82,.04), transparent); }
.QI2 .contents_box .listItem:nth-child(2)::after { background: linear-gradient(135deg, rgba(26,109,255,.04), transparent); }
.QI2 .contents_box .listItem:nth-child(3)::after { background: linear-gradient(135deg, rgba(124,58,237,.04), transparent); }
.QI2 .contents_box .listItem:nth-child(4)::after { background: linear-gradient(135deg, rgba(194,102,10,.04), transparent); }
.QI2 .contents_box .listItem:nth-child(5)::after { background: linear-gradient(135deg, rgba(190,24,93,.04), transparent); }
.QI2 .contents_box .listItem:nth-child(6)::after { background: linear-gradient(135deg, rgba(10,124,110,.04), transparent); }

/* 단계 번호 배지 — 카드 플로우 최상단 */
.QI2 .contents_box .listItem::before {
    content: counter(qi2-step, decimal-leading-zero);
    position: static;
    transform: none;
    width: 24px;
    height: 24px;
    background: color-mix(in srgb, var(--qi2-color) 14%, #ffffff);
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Pretendard Mono', 'Pretendard', monospace;
    letter-spacing: 0.06em;
    color: var(--qi2-color);
    text-align: center;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* 링크 */
.QI2 .contents_box .item_link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-decoration: none;
}

/* 아이콘 박스 */
.QI2 .contents_box .img_box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--qi2-color) 12%, #ffffff);
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    transition: none;
}

.QI2 .contents_box .img_box:hover {
    box-shadow: none;
    transform: none;
}

.QI2 .contents_box .img_box img {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: contain;
}

/* 단계 라벨 */
.QI2 .contents_box .listItem .steptitle {
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    color: #0a0b0d;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 반응형 */
@media (max-width: 991px) {

    .QI2 .main_cont_title {
        margin-bottom: 24px;
    }

    .QI2 .main_cont_title .subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .QI2 .main_cont_title .title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .QI2 .main_cont_title .text {
        font-size: 14px;
    }

    .QI2 .contents_box {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .QI2 .contents_box .listItem {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .QI2 .contents_box .listItem::before {
        width: 20px;
        height: 20px;
        border-radius: 5px;
        font-size: 10px;
        line-height: 20px;
        margin-bottom: 12px;
    }

    .QI2 .contents_box .img_box {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .QI2 .contents_box .img_box img {
        height: 32px;
    }

    .QI2 .contents_box .listItem .steptitle {
        font-size: 13px;
    }
}
