/* 포트폴리오 상세페이지 */

.detail-page {
    background: #fff;
    min-height: 100vh;
}

/* 구버전 레이아웃 (v1 content 필드 HTML) */
.legacy-content {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 20px 150px;
}

.legacy-content img {
    max-width: 100%;
    height: auto;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
    color: #222;
    line-height: 1.5;
    margin-bottom: 20px;
}

.legacy-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* v1 newpobox 스타일 호환 */
.newpobox {
    position: relative;
    width: 100%;
}

.newpobox img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* v1 nm_ 클래스 호환 */
.nm_nxt_contents {
    margin-top: 80px;
    position: relative;
}

.nm_topMainV_Box {
    width: 100%;
    position: relative;
    max-width: 2400px;
    margin: 0 auto;
}

.nm_topMainV_Box img {
    width: 100%;
}

.nm_porBody_Box {
    width: 100%;
    position: relative;
    padding-top: 120px;
    max-width: 2400px;
    margin: 0 auto;
}

.nm_porTopWrap {
    position: relative;
}

.nmporBackBg {
    background-color: #f7f8fa;
    height: 62.4%;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 20;
}

.nm_porTopBox {
    position: relative;
    z-index: 30;
    max-width: 1160px;
    padding: 0 0 200px 0;
    margin: 0 auto;
}

.nm_porTopBox div {
    text-align: left;
}

.nm_porTopBox h1 {
    font-size: 32px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 60px;
}

.nm_porTopBox h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    margin-bottom: 60px;
}

.nm_porTopBox h3 {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: #222;
    margin-bottom: 30px;
}

.nm_porTopBox a {
    padding-bottom: 2px;
    font-size: 13px;
    line-height: 24px;
    color: #222;
    border-bottom: 1px solid #222;
}

.nm_porTopBox img {
    max-width: 100%;
    margin-top: 140px;
}

.nmportMainImg {
    text-align: center !important;
}

.nm_porh2Item {
    display: block;
}

.nm_porh2Item ul {
    margin: 0;
    width: 100%;
    display: flex;
    padding: 0;
    list-style: none;
}

.nm_porh2Item li {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.nm_porh2Item li span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
    color: #222;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.nm_porh2Item li p,
.nm_porh2Item li h2 {
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: #222;
    margin: 0 0 1rem 0;
    padding: 0;
}

.nm_midBox {
    width: 100%;
    position: relative;
    padding: 180px 0 0 0;
    text-align: center;
}

.nm_midBox h2 {
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    line-height: 48px;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.4px;
}

.nm_midBox h3 {
    padding: 0 20px;
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    color: #fff;
    margin-bottom: 50px;
    letter-spacing: -0.4px;
}

.nm_midBox img {
    width: 100%;
}

/* 배경색 클래스 */
.nmmCol_1 { background-color: #d7e0e9; }
.nmmCol_2 { background-color: #f7f7f7; }
.nmmCol_3 { background-color: #2A49E0; }
.nmmCol_4 { background-color: #F0F7FA; }
.nmmCol_5 { background-color: #FCFBF7; }
.nmmCol_6 { background-color: #E4F5F9; }
.nmmCol_7 { background-color: #BCD0DE; }
.nmmCol_8 { background-color: #124B74; }
.nmmCol_9 { background-color: #F7F8FA; }
.nmmCol_10 { background-color: #D7DFE9; }
.nmmCol_11 { background-color: #FEFCF8; }
.nmmCol_12 { background-color: #FFFFFF; }
.nmmCol_13 { background-color: #F7F7F7; }
.nmmCol_14 { background-color: #DDE3EA; padding-top: 250px; }
.nmmCol_15 { background-color: #3E454F; padding-top: 250px; }
.nmmCol_16 { background-color: #3E454F; padding: 0; }
.nmmCol_17 { background-color: #EE4B2C; }
.nmmCol_18 { background-color: #F8F5FB; }
.nmmCol_19 { background-color: #5B239F; }
.nmmCol_20 { background-color: #E4EFF5; }
.nmmCol_21 { background-color: #0D6296; }

.nmmCol_trackman1 { background-color: #231A0D; }
.nmmCol_trackman2 { background-color: #E5EDEF; }
.nmmCol_breeze1 { background-color: #111111; }
.nmmCol_breeze2 { background-color: #000000; }
.nmmCol_alzcare1 { background-color: #045593; }
.nmmCol_alzcare2 { background-color: #DCF4FF; }
.nmmCol_ada1 { background-color: #885C3C; }
.nmmCol_ada2 { background-color: #B49F84; }
.nmmCol_ada3 { background-color: #333333; }
.nmmCol_qcells1 { background-color: #E7F4FF; }
.nmmCol_kolon { background-color: #E82222; }
.nmmCol_hyrpa1 { background-color: #48D3AA; }
.nmmCol_hyrpa2 { background-color: #F1FAF7; }
.nmmCol_hyrpa3 { background-color: #ffffff; }
.nmmCol_mlc1 { background-color: #48D3AA; padding: 0 !important; }
.nmmCol_mlc2 { background-color: #F1FAF7; padding: 0 !important; }
.nmmCol_issoft1 { background-color: #48D3AA; padding: 0 !important; }
.nmmCol_issoft2 { background-color: #F1FAF7; padding: 0 !important; }
.nmmCol_sk1 { padding: 0 !important; }
.nmmCol_sk1 img { width: 101%; }

.nmmFontCol_1 h2,
.nmmFontCol_1 h3 { color: #222 !important; }
.nmmFontCol_2 { color: #fff !important; }

.none_nmPad { padding: 0 !important; }
.nmmidContImg img { width: auto !important; max-width: 100%; }
.nm_midBox_kolon { width: 100%; position: relative; padding: 0; text-align: center; }
.nm_midBox_kolon img { width: 100%; }
.nm_porTopBox_alzcare { padding-bottom: 100px; }

.pc_nmtV { display: block; }
.mo_nmtV { display: none; }

/* Bootstrap grid 호환 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-6,
.col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* 반응형 */
@media (max-width: 1300px) {
    .nm_nxt_contents {
        margin-top: 70px;
    }

    .nm_porTopBox {
        padding: 0 80px 0 50px;
    }

    .nm_porTopBox h1 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .nm_porTopBox h2 {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .nm_midBox h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {
    .nm_nxt_contents {
        margin-top: 60px;
    }

    .nm_porBody_Box {
        padding-top: 100px;
    }

    .nm_porTopBox h1 {
        margin-top: 40px;
        font-size: 30px;
        margin-bottom: 40px;
    }

    .nm_porTopBox img {
        margin: 80px 0 80px 0;
    }

    .nm_midBox h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .legacy-content {
        padding: 60px 15px 100px;
    }

    .newpobox {
        margin-top: 60px;
    }

    .nm_nxt_contents {
        margin-top: 0;
    }

    .pc_nmtV { display: none; }
    .mo_nmtV { display: block; }

    .nm_porTopBox {
        padding: 0 20px 60px 20px;
    }

    .nm_porBody_Box {
        padding-top: 50px;
    }

    .nm_porTopBox h1 {
        line-height: 24px;
        margin-top: 20px;
        font-size: 18px;
        margin-bottom: 24px;
    }

    .nm_porTopBox h2 {
        font-size: 24px;
        margin-bottom: 40px;
        letter-spacing: 0;
        line-height: 30px;
    }

    .nm_porTopBox h3 {
        font-size: 14px;
        line-height: 27px;
        margin-bottom: 30px;
    }

    .nm_porh2Item li span {
        font-size: 14px;
        line-height: 17px;
    }

    .nm_porh2Item li p,
    .nm_porh2Item li h2 {
        font-size: 13px;
        line-height: 18px;
        margin-bottom: 14px;
    }

    .nm_porTopBox img {
        margin: 80px 0 0 0;
    }

    .nm_midBox {
        padding-top: 60px;
    }

    .nm_midBox h2 {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 32px;
        padding: 0 20px;
    }

    .nm_midBox h3 {
        font-size: 14px;
        line-height: 27px;
        padding: 0 20px;
    }
}

/* 신버전 레이아웃 */
.detail-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 20px 150px;
}

/* 상단 영역 */
.detail-top {
    padding-top: 50px;
}

.detail-header {
    text-align: right;
}

.title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 30px;
}

.detail-title {
    font-size: 50px;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -1px;
}

.title-logo {
    position: relative;
    top: -10px;
}

.title-logo img {
    max-width: 100%;
    max-height: 80px;
}

/* 메인 이미지 */
.main-image {
    margin-top: 60px;
    text-align: center;
}

.main-image img {
    width: 100%;
    max-width: 100%;
}

/* 웹사이트 링크 */
.website-link {
    text-align: right;
    padding-top: 40px;
}

.website-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

.website-link a:hover {
    text-decoration: underline;
}

.website-link svg {
    width: 24px;
    height: 24px;
}

/* 섹션 공통 */
.detail-section {
    padding-top: 150px;
}

.section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-section.reverse .section-inner {
    direction: rtl;
}

.detail-section.reverse .section-inner > * {
    direction: ltr;
}

.detail-section.full-width .section-inner {
    grid-template-columns: 1fr;
}

/* 섹션 텍스트 */
.section-text {
    text-align: left;
}

.section-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 300;
    color: #222;
    margin-bottom: 10px;
}

.section-label {
    display: block;
    font-size: 40px;
    font-weight: 300;
    color: #222;
    margin-bottom: 10px;
}

.section-text h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.6;
    color: #222;
    margin: 0 0 15px;
    letter-spacing: -1.5px;
}

.section-text h3 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.6;
    color: #222;
    margin: 0 0 15px;
    letter-spacing: -1.5px;
}

.section-text p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    color: #888;
    margin: 0;
}

/* 섹션 이미지 */
.section-image img {
    max-width: 100%;
    width: 80%;
}

.section-image-full {
    text-align: center;
    padding-top: 40px;
}

.section-image-full img {
    max-width: 100%;
}

/* 목록으로 돌아가기 */
.back-to-list {
    margin-top: 100px;
    padding-top: 50px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-to-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    background: #f5f5f5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-list a:hover {
    background: #222;
    color: #fff;
}

/* 반응형 */
@media (max-width: 1200px) {
    .detail-content {
        padding: 80px 40px 120px;
    }

    .detail-title {
        font-size: 40px;
    }

    .section-text h2,
    .section-text h3 {
        font-size: 32px;
        line-height: 1.5;
    }

    .section-num,
    .section-label {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .detail-content {
        padding: 60px 30px 100px;
    }

    .detail-top {
        padding-top: 30px;
    }

    .detail-title {
        font-size: 28px;
        margin-right: 0;
    }

    .title-logo img {
        max-height: 50px;
    }

    .main-image {
        margin-top: 30px;
    }

    .detail-section {
        padding-top: 80px;
    }

    .section-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-section.reverse .section-inner {
        direction: ltr;
    }

    .section-image img {
        width: 100%;
    }

    .section-num,
    .section-label {
        font-size: 28px;
    }

    .section-text h2,
    .section-text h3 {
        font-size: 28px;
    }

    .section-text p {
        font-size: 16px;
        line-height: 1.8;
    }
}

@media (max-width: 600px) {
    .detail-content {
        padding: 40px 20px 80px;
    }

    .detail-header {
        text-align: left;
    }

    .title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .detail-title {
        font-size: 24px;
    }

    .title-logo {
        top: 0;
    }

    .title-logo img {
        max-height: 40px;
    }

    .website-link {
        padding-top: 20px;
    }

    .website-link a {
        font-size: 16px;
    }

    .website-link svg {
        width: 20px;
        height: 20px;
    }

    .detail-section {
        padding-top: 60px;
    }

    .section-num,
    .section-label {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-text h2,
    .section-text h3 {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .section-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .back-to-list {
        margin-top: 60px;
        padding-top: 30px;
    }

    .back-to-list a {
        padding: 12px 30px;
        font-size: 14px;
    }
}
