:root {
    --primary-blue: #6cbef9; /* 메인 파란색 배경 */
    --header-blue: #9dc3e6;  /* 최상단 타원 배경 */
    --text-dark: #333;
    --border-blue: #bdd7ee;
    --border-pink: #f8cbad;
    --bg-grey: #f2f2f2;
}
.diagram-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content{
    margin:50px 0;
}
/* 1. 최상단 타원 */
.header-oval {
    background-color: #419ade;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 2. '개선' 화살표 */
.arrow-improvement {
    width: 140px;
    height: 80px;
    background-color: #a2c5fb;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 20px;
    /* 위쪽 화살표 모양 만들기 */
    clip-path: polygon(50% 0%, 100% 40%, 100% 100%, 0% 100%, 0% 40%);
    padding-top: 20px; /* 텍스트 위치 보정 */
}

/* 3. 중간 3개 박스 (자격, 경력개발, 교육훈련) */
.mid-boxes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.box-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    background-color: white;
    border: 2px solid;
}

.box-item.blue-border { background: #6abfa0; color: #fff; }
.box-item.mix-border { background: #ffc132; color: #fff; } /* 가운데는 동일하게 파란계열 */
.box-item.pink-border { background: #fc7079; color: #fff; }

/* 4. 하단 회색 영역 컨테이너 */
.bottom-container {
    width: 100%;
    background-color: var(--bg-grey);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 연결 화살표 텍스트 (적용 / 산업계의 요구) */
.connector-label {
    width: 140px;
    height: 80px;
    background-color:#cbcbcb;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 20px;
    clip-path: polygon(50% 0%, 100% 40%, 100% 100%, 0% 100%, 0% 40%);
    padding-top: 20px;
}

/* 아래쪽 화살표 모양 (CSS Border) */
.arrow-down::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e7e7e7;
}

/* 위쪽 화살표 모양 */
.arrow-up::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e7e7e7;
}

/* 파란색 긴 블록 */
.blue-panel {
    width: 100%;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    padding: 15px;
    align-items: center;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 파란 블록 왼쪽 제목 */
.panel-title {
    flex: 0 0 120px;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 1.8rem;
    white-space: pre-line; /* 줄바꿈 허용 */
    margin-right: 15px;
}

/* 파란 블록 오른쪽 그리드 (6개 박스) */
.panel-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.small-box {
    background-color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.6rem;
    border-radius: 4px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.small-box.pink-tint {
    background-color: #fffafa;
    border: 1px solid #ffe6e6;
}

/* 반응형: 모바일에서 세로 배치 */
@media (max-width: 600px) {
    .header-oval{
        text-align: center;
        padding: 15px 16px;
        font-size:1.4rem;
    }
    .box-item{
        padding:10px 0;
        font-size:1.4rem;
    }
    .connector-label,
    .arrow-improvement{
        font-size:1.4rem;
    }
    .mid-boxes{
        gap:5px;
    }
    .blue-panel {
        flex-direction: column;
    }
    .panel-title {
        margin-right: 0;
        margin-bottom: 10px;
        flex: none;
    }
    .panel-grid {
        width: 100%;
    }
}
.ncs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    width: 100%;
}

.ncs-item {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

/* 왼쪽 숫자 영역 */
.ncs-number {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 900;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 오른쪽 콘텐츠 영역 */
.ncs-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ncs-header {
    background-color: #f7f8fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.ncs-body {
    padding: 25px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.ncs-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ncs-body li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 5px;
}

.ncs-body li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 1, 2번 스타일 (파란색) */
.style-blue {
    border-color: #476393;
}
.style-blue .ncs-number {
    background-color: #476393;
}
.style-blue .ncs-header {
    color: #16315e;
    border-bottom-color: #476393;
}
.style-blue2 {
    border-color: #669ec1;
}
.style-blue2 .ncs-number {
    background-color: #669ec1;
}
.style-blue2 .ncs-header {
    color: #476393 ;
    border-bottom-color: #669ec1;
}
/* 3, 4번 스타일 (청록색) */
.style-mint {
    border-color: #01bbba;
}
.style-mint .ncs-number {
    background-color: #01bbba;
}
.style-mint .ncs-header {
    color: #127270;
    border-bottom-color: #01bbba;
}

.style-mint2 {
    border-color: #02cc9a;
}
.style-mint2 .ncs-number {
    background-color: #02cc9a;
}
.style-mint2 .ncs-header {
    color: #106953;
    border-bottom-color: #02cc9a;
}
/* 반응형 처리 (모바일) */
@media (max-width: 768px) {
    .ncs-item { flex-direction: column; }
    .ncs-number { width: 100%; height: 60px; font-size: 32px; }
}
.ncs-structure-container {
    width: 100%;
    background-color: var(--bg-grey);
    padding:40px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 25px;
}

/* 1. 상단 NCS 박스 */
.ncs-top-box {
    background-color: #419ade;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    max-width:90%;
    text-align: center;
    width:450px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* 2. 중간 3개 박스 영역 */
.ncs-mid-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.ncs-card {
    flex: 1;
    border-radius: 4px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 높이를 맞추기 위해 */
    min-height: 180px; 
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.card-desc {
    line-height: 1.6;
    color: #fff;
    word-break: keep-all;
}

/* 카드별 색상 테마 (이미지와 동일하게) */
.card-blue {
    background-color: #6abfa0; /* 연한 파랑 */
    border: 1px solid #cce4ff;
}
.card-yellow {
    background-color: #ffc132; /* 연한 노랑 */
    border: 1px solid #f9eecd;
}
.card-pink {
    background-color: #fc7079; /* 연한 분홍 */
    border: 1px solid #ffebeb;
}

/* 3. 직무분석 화살표 라벨 */
.ncs-arrow-label {
    display: inline-block;
    background-color: #e7e7e7;
    padding: 8px 30px;
    font-weight: bold;
    color: #555;
    position: relative;
    margin-bottom: 20px;
    font-size: 15px;
}
/* 아래쪽 뾰족한 꼬리 만들기 */
.ncs-arrow-label::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #e7e7e7;
}

/* 4. 하단 산업현장 박스 */
.ncs-bottom-box {
    background-color: #2b70c9; /* 진한 파란색 */
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    max-width:90%;
    text-align: center;
    width:450px;
    amrgin-top:10px;
}
.ncs-function-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    /* 크기 및 여백 설정 */
    padding: 15px 40px;
    min-width: 300px;
    
    /* 색상 및 폰트 */
    background-color: #9ec5e8; /* 내부 연한 파란색 */
    color: #fff; /* 글자색 (진한 파랑) */
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none; /* 링크 밑줄 제거 */
    
    /* 모양: 둥근 캡슐형 */
    border-radius: 50px;
    
    /* 테두리 효과 (바깥쪽 연한 하늘색 띠) */
    border: 4px solid #cce5f7; 
    
    /* 약간의 그림자 (선택사항) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    
    /* 드래그 방지 */
    user-select: none;
}

/* 마우스 올렸을 때 효과 (선택사항) */
.ncs-function-btn:hover {
    background-color: #93bce3;
    cursor: default;
}
/* 모바일 반응형 */
@media (max-width: 768px) {
    .ncs-mid-grid {
        flex-direction: column;
        min-width:90%;
    }
}
.ncs-table {
    width: 100%;
    color: #333;
    margin: 40px auto 0;
}

.ncs-table th, .ncs-table td {
    border: 1px solid #dcdcdc; /* 회색 테두리 */
    padding: 15px 10px;
    text-align: center;
    vertical-align: middle;
}

/* 헤더 스타일 */
.ncs-table thead th {
    background-color: #f2f2f2; /* 연한 회색 배경 */
    font-weight: bold;

}

/* 첫 번째 열(산업현장) 너비 조정 */
.col-main {
    width: 20%;
    font-weight: 500;
}

/* 두 번째 열(근로자/기업) 너비 조정 */
.col-sub {
    width: 15%;
}

/* 내용 열 정렬 */
.col-content {
    text-align: center;
}

/* 모바일 반응형 (글자 크기 조정) */
@media (max-width: 600px) {
    .ncs-table { font-size: 13px; }
    .ncs-table th, .ncs-table td { padding: 10px 5px; }
}