/* NEIS 바이트 계산기 - CoreContact Brand */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background: #f0f2f5;
    color: #1e293b;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* 상단 네비게이션 */
.top-nav {
    background: #0A192F;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #64FFDA;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.6)) drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #CCD6F6;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover { background: rgba(100, 255, 218, 0.05); color: #64FFDA; }
.nav-link.active { background: rgba(100, 255, 218, 0.1); color: #64FFDA; }

/* 프로모 배너 공통 */
.promo-banner {
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    color: #fff;
}

.promo-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* 상단 배너 */
.top-banner .promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.promo-badge {
    display: inline-block;
    background: rgba(100, 255, 218, 0.15);
    color: #64FFDA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.promo-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #CCD6F6;
}

.promo-text p {
    font-size: 0.95rem;
    color: #CCD6F6;
    opacity: 0.8;
}

.btn-promo {
    display: inline-block;
    background: linear-gradient(135deg, #64FFDA 0%, #5FC3E4 100%);
    color: #0A192F;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 255, 218, 0.3);
}

/* 하단 배너 카드 */
.bottom-banner .promo-inner {
    display: flex;
    justify-content: center;
    padding: 32px 24px;
}

.promo-card {
    position: relative;
    background: linear-gradient(160deg, rgba(100, 255, 218, 0.08) 0%, rgba(95, 195, 228, 0.04) 100%);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 14px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #64FFDA, #5FC3E4);
    border-radius: 0 4px 4px 0;
    top: 50%;
    transform: translateY(-50%);
}

.promo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.08);
}

.promo-card-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.promo-card-body {
    flex: 1;
    min-width: 0;
}

.promo-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #E6F1FF;
    letter-spacing: -0.02em;
}

.promo-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #8892B0;
    margin: 0;
}

.btn-outline {
    display: inline-block;
    border: 1px solid #64FFDA;
    color: #64FFDA;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.12);
    transform: translateY(-1px);
}

/* 메인 레이아웃 */
.main-layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

/* 모달 팝업 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #0A192F;
    color: #64FFDA;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #CCD6F6;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.modal-close:hover { color: #fff; background: rgba(255,255,255,0.2); }

.modal-body {
    overflow-y: auto;
    padding: 16px;
}

/* 바이트 기준표 카드 레이아웃 */
.ref-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ref-card.accent {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.ref-card-title {
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0A192F;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.ref-card.accent .ref-card-title {
    background: #eff6ff;
    color: #1e40af;
    border-bottom-color: #bfdbfe;
}

.ref-card-items {
    padding: 4px 0;
}

.ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.8rem;
    color: #475569;
}

.ref-item + .ref-item {
    border-top: 1px solid #f1f5f9;
}

.ref-bytes {
    font-weight: 600;
    color: #0A192F;
    font-size: 0.78rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ref-bytes.highlight {
    background: #dbeafe;
    color: #1e40af;
}

/* 계산기 헤더 */
.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-byte-ref {
    background: #0A192F;
    color: #64FFDA;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-byte-ref:hover { background: #112240; }

.ref-note {
    padding: 12px 4px 4px;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.5;
}

.calc-notice-update {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #92400e;
    font-size: 0.75rem;
    margin-top: 10px;
    line-height: 1.5;
}

.ref-note-change {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #92400e;
    font-size: 0.72rem;
    margin-top: 8px;
}

/* 계산기 본문 */
.calculator-wrap {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.calculator-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 40px 36px;
}

.calc-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0A192F;
}

.calc-underbar {
    width: 32px;
    height: 4px;
    background: #64FFDA;
    margin: 16px 0 28px;
    border-radius: 2px;
}

.calc-textarea {
    width: 100%;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
    padding: 20px;
    line-height: 1.8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 300px;
}

.calc-textarea:focus { border-color: #64FFDA; box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15); }

/* 바이트 테이블 */
.byte-table-wrap { margin-top: 20px; overflow-x: auto; }

.byte-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}

.byte-table th {
    background: #0A192F;
    color: #64FFDA;
    padding: 10px 8px;
    font-weight: 500;
}

.byte-table th:first-child { border-radius: 8px 0 0 0; }
.byte-table th:last-child { border-radius: 0 8px 0 0; }

.byte-table td {
    background: #f0f4f8;
    padding: 10px 8px;
    color: #334155;
}

/* 카테고리 버튼 */
.category-selector {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cat-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-btn:hover { border-color: #0A192F; color: #0A192F; }

.cat-btn.active {
    background: #0A192F;
    color: #64FFDA;
    border-color: #0A192F;
}

/* 결과 */
.calc-result {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
}

.result-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.result-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-right: 4px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A192F;
    transition: color 0.3s;
}

.result-unit {
    font-size: 0.85rem;
    color: #64748b;
}

.result-row.primary .result-value { color: #0A192F; font-size: 1.8rem; }
.result-value.warn { color: #f59e0b; }
.result-value.over { color: #ef4444; }

/* 프로그레스 바 */
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64FFDA, #5FC3E4);
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.progress-fill.warn { background: #f59e0b; }
.progress-fill.over { background: #ef4444; }

.progress-text {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

.calc-info {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

/* 푸터 */
.site-footer {
    background: #0A192F;
    color: #CCD6F6;
    padding: 32px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-biz {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #CCD6F6;
    opacity: 0.6;
}

.footer-copy {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #CCD6F6;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 960px) {
    .main-layout { padding: 0 16px; margin: 24px auto; }
}

@media (max-width: 768px) {
    .top-banner .promo-inner { padding: 12px 16px; gap: 10px; }
    .top-banner .promo-badge { font-size: 0.7rem; padding: 2px 8px; margin-bottom: 0; margin-right: 8px; }
    .top-banner .promo-text h2 { font-size: 0.85rem; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-banner .promo-text p { display: none; }
    .top-banner .btn-promo { padding: 6px 14px; font-size: 0.75rem; border-radius: 6px; flex-shrink: 0; }
    .top-banner .promo-text { display: flex; align-items: center; flex: 1; min-width: 0; }
    .top-banner .promo-cta { flex-shrink: 0; }
    .bottom-banner .promo-inner { padding: 32px 16px; }
    .calculator-container { padding: 24px 16px; }
    .calc-textarea { min-height: 250px; padding: 16px; font-size: 0.95rem; }
    .calc-result { flex-direction: column; align-items: flex-end; gap: 8px; }
    .nav-links { gap: 2px; }
    .nav-link { padding: 8px 10px; font-size: 0.8rem; }
    .byte-table { font-size: 0.8rem; }
    .byte-table th, .byte-table td { padding: 8px 4px; }
}

@media (max-width: 480px) {
    .top-nav-inner { flex-direction: column; height: auto; padding: 10px 12px; gap: 6px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .nav-link { padding: 6px 8px; font-size: 0.75rem; }
    .main-layout { padding: 0 12px; margin: 16px auto; }
    .calculator-container { padding: 20px 14px; border-radius: 12px; }
    .calc-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .calc-title { font-size: 1.2rem; }
    .calc-textarea { min-height: 200px; padding: 14px; font-size: 0.9rem; line-height: 1.7; }
    .category-selector { gap: 6px; }
    .cat-btn { min-width: 0; flex: 1 1 28%; font-size: 0.75rem; padding: 8px 4px; }
    .result-row.primary .result-value { font-size: 1.4rem; }
    .result-value { font-size: 1.2rem; }
    .promo-text h2 { font-size: 1.1rem; }
    .promo-inner { padding: 24px 16px; }
    .promo-card { flex-direction: column; text-align: center; padding: 24px 20px; gap: 12px; }
    .promo-card::before { left: 50%; top: -1px; transform: translateX(-50%); width: 40px; height: 3px; border-radius: 0 0 4px 4px; }
    .promo-card h3 { font-size: 1.05rem; }
    .calc-info { font-size: 0.72rem; }
    .progress-text { font-size: 0.78rem; min-width: 60px; }
    .footer-biz { font-size: 0.72rem; }
    .ref-item { padding: 6px 10px; font-size: 0.75rem; }
    .ref-card-title { padding: 8px 10px; font-size: 0.78rem; }
    .ref-bytes { font-size: 0.72rem; padding: 2px 6px; }
}

/* ===== 페이지 탭 (세특/자소서) ===== */
.page-tabs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.page-tabs {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.page-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.page-tab:hover { color: #0A192F; background: #f8fafc; }
.page-tab.active { background: #0A192F; color: #64FFDA; }

/* ===== 메인 탭 콘텐츠 ===== */
.main-tab-content { display: none; }
.main-tab-content.active { display: block; }

/* ===== 자소서 프로모 배너 ===== */
.jaso-promo {
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
}

.jaso-promo-badge {
    display: inline-block;
    background: rgba(100, 255, 218, 0.15);
    color: #64FFDA;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.jaso-promo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #CCD6F6;
    margin-bottom: 8px;
}

.jaso-promo p {
    font-size: 0.9rem;
    color: #CCD6F6;
    opacity: 0.8;
    margin-bottom: 16px;
}

/* ===== 학교 탭 ===== */
.school-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.school-tab {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.school-tab:hover { border-color: #0A192F; color: #0A192F; }
.school-tab.active { background: #0A192F; color: #64FFDA; border-color: #0A192F; }

/* ===== 전형 선택 ===== */
.type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.type-btn {
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.type-btn:hover { border-color: #0A192F; color: #0A192F; }
.type-btn.active { background: #0A192F; color: #64FFDA; border-color: #0A192F; }

/* ===== 학교 섹션 ===== */
.school-section { display: none; }
.school-section.active { display: block; }

.section-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
}

.section-extra {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
}

/* ===== 자소서 문항 ===== */
.jaso-question {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.jaso-question:last-child { border-bottom: none; }

.q-header {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.q-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #0A192F;
    color: #64FFDA;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.q-header strong {
    font-size: 1.05rem;
    color: #0A192F;
    display: block;
    margin-bottom: 6px;
}

.q-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.q-note {
    font-size: 0.8rem;
    color: #f59e0b;
    margin-top: 6px;
    font-weight: 500;
}

.q-choices {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.8;
}

.q-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin: 16px 0 8px;
}

/* ===== 자소서 textarea ===== */
.jaso-textarea {
    width: 100%;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
    padding: 16px;
    line-height: 1.8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jaso-textarea:focus { border-color: #64FFDA; box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15); }

/* ===== 자소서 카운터 ===== */
.jaso-counter {
    font-size: 0.82rem;
    color: #64748b;
    text-align: right;
    margin-top: 6px;
    transition: color 0.2s;
}

.jaso-counter.warn { color: #f59e0b; }
.jaso-counter.over { color: #ef4444; font-weight: 600; }

/* ===== 자소서 프로그레스 ===== */
.jaso-progress {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 4px;
}

.jaso-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64FFDA, #5FC3E4);
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.jaso-progress-fill.warn { background: #f59e0b; }
.jaso-progress-fill.over { background: #ef4444; }

/* ===== 자소서 반응형 ===== */
@media (max-width: 768px) {
    .page-tabs-wrap { padding: 16px 16px 0; }
    .page-tab { font-size: 0.85rem; padding: 10px 12px; }
    .school-tabs { flex-wrap: wrap; }
    .school-tab { flex: 1 1 45%; font-size: 0.85rem; padding: 10px; }
    .jaso-promo { padding: 24px 20px; }
    .jaso-promo h2 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .page-tab { font-size: 0.78rem; padding: 8px 6px; }
    .school-tab { font-size: 0.78rem; padding: 8px; }
    .type-btn { font-size: 0.78rem; padding: 6px 12px; }
    .q-header { gap: 10px; }
    .q-num { width: 28px; height: 28px; min-width: 28px; font-size: 0.8rem; }
    .jaso-textarea { padding: 12px; font-size: 0.88rem; }
    .jaso-promo h2 { font-size: 1rem; }
    .jaso-promo { padding: 20px 16px; }
}

/* ===== 진로 계열 데이터베이스 (학교별 학과) ===== */
.career-db-layout { max-width: 1200px; margin: 40px auto; padding: 0 24px; }
.career-db-header { text-align: center; margin-bottom: 24px; }
.career-db-title { font-size: 1.5rem; font-weight: 700; color: #0A192F; margin-bottom: 8px; }
.career-db-subtitle { font-size: 0.95rem; color: #64748b; }

.career-layout { display: grid; grid-template-columns: 200px 280px minmax(0,1fr); gap: 12px; min-height: 550px; }
.cd-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cd-panel-header { padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: 0.9rem; color: #0A192F; background: #fafbfc; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cd-panel-header i { color: #64FFDA; }
.cd-panel-body { overflow-y: auto; flex: 1; padding: 6px; max-height: 550px; }

.cd-loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #64748b; gap: 8px; }
.cd-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: #64748b; text-align: center; padding: 2rem; }
.cd-placeholder i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 12px; }

.cd-cat-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.cd-cat-item:hover { background: #f1f5f9; }
.cd-cat-item.active { background: rgba(100,255,218,0.08); border-color: #64FFDA; }
.cd-cat-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,rgba(100,255,218,0.15),rgba(10,25,47,0.06)); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #64FFDA; flex-shrink: 0; }
.cd-cat-label { font-weight: 600; font-size: 0.85rem; color: #0A192F; }
.cd-cat-count { font-size: 0.72rem; color: #64748b; }

.cd-major-search { padding: 8px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.cd-major-search input { width: 100%; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.82rem; outline: none; box-sizing: border-box; font-family: 'Pretendard', 'Noto Sans KR', sans-serif; }
.cd-major-search input:focus { border-color: #64FFDA; box-shadow: 0 0 0 2px rgba(100,255,218,0.1); }

.cd-major-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; }
.cd-major-item:hover { background: #f1f5f9; }
.cd-major-item.active { background: rgba(100,255,218,0.08); border-color: #64FFDA; }
.cd-major-item-name { font-size: 0.85rem; font-weight: 500; color: #0A192F; }
.cd-major-item-arrow { color: #cbd5e1; font-size: 0.7rem; }
.cd-major-item.active .cd-major-item-arrow { color: #64FFDA; }

.cd-detail-section { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.cd-detail-section:last-child { border-bottom: none; }
.cd-detail-section-title { font-size: 0.78rem; font-weight: 700; color: #64FFDA; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.cd-detail-section-title i { font-size: 0.72rem; }
.cd-detail-major-name { font-size: 1.2rem; font-weight: 700; color: #0A192F; margin-bottom: 4px; }
.cd-detail-major-category { font-size: 0.82rem; color: #64748b; }
.cd-detail-text { font-size: 0.85rem; line-height: 1.7; color: #334155; word-break: break-word; }
.cd-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cd-detail-tag { padding: 4px 8px; background: #f1f5f9; border-radius: 6px; font-size: 0.78rem; color: #334155; }
.cd-detail-stat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(100,255,218,0.08); border: 1px solid rgba(100,255,218,0.2); border-radius: 50px; font-size: 0.82rem; color: #0A192F; margin-right: 6px; margin-bottom: 6px; }
.cd-detail-stat i { color: #64FFDA; font-size: 0.82rem; }
.cd-uni-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; table-layout: fixed; }
.cd-uni-table th { background: #fafbfc; padding: 7px 10px; text-align: left; font-weight: 600; color: #64748b; border-bottom: 2px solid #e2e8f0; font-size: 0.78rem; }
.cd-uni-table td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-uni-table tr:hover td { background: #fafbfc; }
.cd-uni-area-badge { display: inline-block; padding: 2px 6px; background: #eef2ff; color: #4f46e5; border-radius: 4px; font-size: 0.72rem; font-weight: 500; }
.cd-enter-field-item { margin-bottom: 6px; }
.cd-enter-field-item strong { color: #0A192F; font-size: 0.85rem; }
.cd-enter-field-item p { margin: 2px 0 0; font-size: 0.8rem; color: #64748b; }

@media (max-width: 1024px) { .career-layout { grid-template-columns: 1fr; } .cd-panel-body { max-height: 350px; } }
@media (max-width: 768px) { .career-db-layout { padding: 0 16px; margin: 24px auto; } .career-db-title { font-size: 1.2rem; } }

/* ===== 교과목 로드맵 (선택과목 바로보기) ===== */
.curriculum-layout { max-width: 1200px; margin: 40px auto; padding: 0 24px; }
.curriculum-header { text-align: center; margin-bottom: 20px; }
.curriculum-title { font-size: 1.5rem; font-weight: 700; color: #0A192F; margin-bottom: 8px; }
.curriculum-subtitle { font-size: 0.95rem; color: #64748b; }

.curriculum-categories { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; justify-content: center; }
.curr-cat-btn { padding: 7px 14px; border: 2px solid #e2e8f0; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 0.85rem; transition: all 0.2s; color: #0A192F; font-family: 'Pretendard', 'Noto Sans KR', sans-serif; }
.curr-cat-btn:hover { border-color: #0A192F; background: #f8fafc; }
.curr-cat-btn.active { background: #0A192F; color: #fff; border-color: #0A192F; }

.explorer-container { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 0; min-height: 550px; }
.explorer-column { border-right: 1px solid #e2e8f0; overflow-y: auto; max-height: 550px; min-width: 0; overflow-x: hidden; }
.explorer-column:last-child { border-right: none; }
.explorer-col-header { background: #f8fafc; padding: 12px 16px; font-weight: 600; color: #0A192F; border-bottom: 2px solid #e2e8f0; position: sticky; top: 0; z-index: 10; font-size: 0.9rem; }

.curr-subject-list, .curr-chapter-list { padding: 0; margin: 0; list-style: none; }
.curr-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; color: #64748b; text-align: center; padding: 2rem; }
.curr-empty-state i { font-size: 2.5rem; margin-bottom: 8px; opacity: 0.5; }

.curr-subject-group-header { padding: 6px 12px; background: #f1f5f9; font-weight: 600; font-size: 0.82rem; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.curr-subject-item { padding: 10px 16px; cursor: pointer; transition: all 0.2s; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px; }
.curr-subject-item:hover { background: #f8fafc; }
.curr-subject-item.active { background: #eff6ff; border-left: 3px solid #0A192F; }
.curr-subject-type-badge { padding: 3px 7px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.curr-type-common { background: #dbeafe; color: #1e40af; }
.curr-type-general { background: #dcfce7; color: #15803d; }
.curr-type-career { background: #fef3c7; color: #a16207; }
.curr-type-fusion { background: #fce7f3; color: #be185d; }
.curr-type-vocational { background: #e0e7ff; color: #4338ca; }
.curr-subject-name { flex: 1; font-weight: 500; color: #0A192F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }

.curr-chapter-item { padding: 10px 16px; cursor: pointer; transition: all 0.2s; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px; }
.curr-chapter-item:hover { background: #f8fafc; }
.curr-chapter-item.active { background: #eff6ff; border-left: 3px solid #0A192F; }
.curr-chapter-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #0A192F; color: #64FFDA; border-radius: 50%; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.curr-chapter-name { font-weight: 500; color: #0A192F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 0.88rem; }

.curr-details-panel { padding: 16px; overflow-wrap: break-word; }
.curr-detail-section { margin-bottom: 12px; }
.curr-detail-section:last-child { margin-bottom: 0; }
.curr-section-title { font-size: 1.1rem; font-weight: 700; color: #0A192F; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
.curr-objective-item, .curr-activity-item { background: #f8fafc; padding: 12px; border-radius: 8px; margin-bottom: 8px; }
.curr-objective-code { font-size: 0.82rem; font-weight: 600; color: #0A192F; margin-bottom: 4px; }
.curr-objective-desc { font-weight: 500; color: #334155; margin-bottom: 4px; font-size: 0.88rem; }
.curr-objective-expl { font-size: 0.82rem; color: #64748b; line-height: 1.6; }
.curr-activity-content { font-size: 0.85rem; color: #64748b; line-height: 1.6; }
.curr-loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #64748b; gap: 8px; }

@media (max-width: 1024px) { .explorer-container { grid-template-columns: 1fr; } .explorer-column { border-right: none; border-bottom: 1px solid #e2e8f0; max-height: 350px; } .explorer-column:last-child { border-bottom: none; max-height: none; } }
@media (max-width: 768px) { .curriculum-layout { padding: 0 16px; margin: 24px auto; } .curriculum-title { font-size: 1.2rem; } .curriculum-categories { gap: 4px; } .curr-cat-btn { padding: 5px 10px; font-size: 0.78rem; } }
