/* ==========================================================
   Business Detail Page
   ========================================================== */

/* ==========================================================
   1. OVERVIEW
   공통 overview 스타일은 base.css 4.1로 이동.
   plm_service 페이지는 기본 1:1 비율을 그대로 사용하므로 재정의 없음.
   ========================================================== */


/* ==========================================================
   2. CORE SERVICES
   ========================================================== */

/* [Stage2] .section-header 공통 → base.css 로 이동 */

.business-services{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.business-service-card{
    display:flex;
    flex-direction:column;

    padding:24px;
    transition:transform .3s ease, box-shadow .3s ease;

    text-align:left;
}

.business-service-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 45px rgba(0,0,0,.12);

}

.service-header{
    justify-content:flex-start;
}

.service-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0;

    border-radius:10px;
    background:#2563eb;
    color:#fff;
}

.service-header h3{
    display:block;
    flex:1;
    margin:0;

    font-size:1.4rem;
    font-weight:700;
    line-height:1.3;

    text-align:left;
}

.business-service-card p{
    margin:0;
    color:var(--text-muted);
    line-height:1.8;
}

.gm-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* ==========================================================
   3. PROJECT PORTFOLIO
   ========================================================== */

.business-projects{
    margin-top: 40px;
    padding:80px 0;
    background:#f8fafc;
    border-radius:20px;
}

.project-timeline{

    max-width:900px;

    margin:60px auto 0;

    position:relative;

}

/* 타임라인 세로선 */

.project-timeline::before{

    content:"";

    position:absolute;

    left:8px;

    top:0;
    bottom:0;

    width:2px;

    background:#d9d9d9;

}

/* 프로젝트 한 건 */

.business-project-item{

    display:flex;

    align-items:flex-start;

    gap:25px;

    position:relative;

    margin-bottom:35px;

}

/* 타임라인 원 */

.project-dot{

    width:18px;
    height:18px;

    border-radius:50%;

    background:var(--brand);

    flex-shrink:0;

    position:relative;

    z-index:2;

}

/* 내용 카드 */

.project-content{

    flex:1;

    background:#fff;

    padding:22px 28px;

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.project-date{

    color:var(--brand);

    font-size:14px;
    font-weight:700;

    margin-bottom:8px;

    letter-spacing:.5px;

}

.project-content h3{

    font-size:22px;

    margin-bottom:10px;

}

.project-content p{

    margin:0;

    color:var(--text-muted);

    line-height:1.8;

}

/* 처음 3개만 표시 */

.project-collapse .business-project-item:nth-child(n+4){

    display:none;

}

.project-collapse.open .business-project-item{

    display:flex;

}


/* ==========================================================
   5. MOBILE
   ========================================================== */

@media (max-width:768px){

    /* ------------------------------
       Overview (plm_service 페이지 전용 여백/폰트
       공통 규칙은 base.css 4.3 참고)
       ------------------------------ */

    .plm_service-page .overview{

        padding:60px 0;

    }

    .plm_service-page .overview-text{
        font-size:14px;
        line-height:1.8;
    }

    /* ------------------------------
       Section
       ------------------------------ */

/* [Stage3] 제거(미사용): .business-page 스코프(래퍼명 불일치) */

    /* [Stage2] .section-header 모바일 → base.css 로 이동 */

    /* ------------------------------
       Services
       ------------------------------ */
    .service-header h3{
        font-size:16px;
        line-height:1.4;
    }

    .business-service-card p{
        font-size:14px;
        line-height:1.7;
    }
    .business-services,
    .gm-services {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        width: 100%;
    }

    .business-service-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* 처음 2개만 표시 */

    .service-collapse .business-service-card:nth-child(n+3){

        display:none;

    }

    .service-collapse.open .business-service-card{

        display:flex;

    }

    .toggle-button.service-toggle{
        display:flex;
    }

    /* ------------------------------
       Projects
       ------------------------------ */

    .business-project-item{

        gap:18px;

        margin-bottom:25px;

    }

    .project-content{

        padding:18px;

    }

    .project-content h3{
        font-size:16px;
    }

    .project-content p{
        font-size:14px;
        line-height:1.7;
    }    

}

/* ==========================================================
   6. service notice(Siemens PLM 공인 교육)
   ========================================================== */
.education-notice {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 30px;
    padding: 18px 24px;

    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;

    color: #dc2626;
    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}


.education-footer {
    width: 100%;
}

.education-notice i {
    flex-shrink: 0;
}

.education-footer-image {
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
}

.education-footer-image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    .education-notice {
        white-space: normal;
        align-items: flex-start;
        line-height: 1.6;
    }

}
