/* ==========================================================
   style.css — 한국아동교육지도자평가원 통합 스타일시트
   순서: 변수/리셋 → 공통 → 레이아웃 → 컴포넌트 → 페이지 → 관리자 → 반응형
========================================================== */

/* ==========================================================
   1. CSS 변수 & 리셋
========================================================== */
:root {
    --primary: #1a3c6e;
    --primary-dark: #122b52;
    --primary-light: #2554a0;
    --accent: #e8a020;
    --accent-dark: #c8841a;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-gray-dark: #f1f5f9;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --error: #dc2626;
    --error-bg: #fee2e2;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
ul, ol { list-style: none; }

/* ==========================================================
   2. 타이포그래피
========================================================== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* ==========================================================
   3. 공통 버튼
========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary, .btn--primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover, .btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline, .btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover, .btn--outline:hover {
    background: var(--primary);
    color: white;
}

.btn--secondary {
    background: var(--bg-gray-dark);
    color: var(--text);
    border-color: var(--border);
}
.btn--secondary:hover { background: var(--border); }

.btn--danger {
    background: var(--error);
    color: white;
    border-color: var(--error);
}
.btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.btn-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
}
.btn-white:hover {
    background: rgba(255,255,255,.9);
    color: var(--primary-dark);
}

.btn-block { width: 100%; }

.btn-sm, .btn--sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg, .btn--lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ==========================================================
   4. 폼 요소
========================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: white;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input[readonly] {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.field-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 2px;
}

.required { color: var(--error); }

/* ==========================================================
   5. 알림 메시지
========================================================== */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #fde68a;
}

/* ==========================================================
   6. 배지 & 상태
========================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-gray-dark);
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-badge--active  { background: var(--success-bg); color: var(--success); }
.status-badge--inactive { background: var(--error-bg);   color: var(--error);   }

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.role-badge--admin { background: #ede9fe; color: #7c3aed; }
.role-badge--user  { background: #dbeafe; color: #1d4ed8; }

.cert-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.cert-status--pending  { background: var(--warning-bg); color: var(--warning); }
.cert-status--approved { background: var(--success-bg); color: var(--success); }
.cert-status--rejected { background: var(--error-bg);   color: var(--error);   }

/* ==========================================================
   7. 페이지네이션
========================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
}
.page-btn:hover        { border-color: var(--primary); color: var(--primary); }
.page-btn.active       { background: var(--primary); color: white; border-color: var(--primary); }

/* ==========================================================
   8. 유틸리티
========================================================== */
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   9. 컨테이너
========================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   10. 헤더 & 네비게이션
========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo { display: flex; align-items: center; }

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter var(--transition);
    mix-blend-mode: multiply;
}
.logo:hover .logo-img { filter: sepia(1) saturate(3) hue-rotate(5deg); }

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: black;
    white-space: nowrap;
}
.logo:hover .logo-text { color: var(--accent); }

.header-logo {
    font-size: 18px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-logo:hover { color: var(--accent); }

.nav, .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.header-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.header-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.nav-user {
    position: relative;
}
.nav-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #111);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
}
.nav-user-name:hover {
    background: rgba(0,0,0,.06);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 130px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 200;
    overflow: hidden;
}
.nav-user.open .nav-user-dropdown {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary, #111);
    transition: background var(--transition);
    white-space: nowrap;
}
.dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-actions .btn { padding: 7px 16px; font-size: 13px; }

.header-actions .btn-outline {
    border-color: rgba(255,255,255,.5);
    color: white;
}
.header-actions .btn-outline:hover {
    background: rgba(255,255,255,.15);
    color: white;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    color: white;
    font-size: 22px;
}
.mobile-menu-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================
   11. 메인 콘텐츠 영역
========================================================== */
.main-content { min-height: calc(100vh - 64px - 200px); }

/* ==========================================================
   12. 섹션 공통
========================================================== */
.section { padding: 80px 24px; }
.section--gray { background: var(--bg-gray); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

/* ==========================================================
   13. 히어로
========================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, #3b72c4 100%);
    color: white;
    padding: 88px 0;
    text-align: center;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner,
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.95);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.2);
}

.hero h1,
.hero-content h1 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.25;
}
.hero h1 span,
.hero-content h1 strong { color: var(--accent); font-weight: 900; }

.hero p,
.hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ==========================================================
   14. 프로세스 단계
========================================================== */
.process-section {
    padding: 72px 0;
    background: var(--bg-gray);
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.step-num {
    width: 52px; height: 52px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent);
}

.step-icon { font-size: 2rem; margin-bottom: 12px; }

.process-step h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.process-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    padding: 0 8px;
    font-weight: 700;
}

/* ==========================================================
   15. 과정 그리드 & 카드
========================================================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.course-card-img,
.course-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-gray-dark);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.course-card-img img,
.course-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.course-card:hover .course-card-img img,
.course-card:hover .course-card-image img { transform: scale(1.05); }

.course-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.course-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-card-category {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
    line-height: 1.4;
}

.course-card-reg-no {
    display: inline-block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.course-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.course-card-issuer,
.course-card-duration {
    font-size: 12px;
    color: var(--text-muted);
}

.course-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================
   16. 후기 그리드 & 카드
========================================================== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.review-stars  { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.review-title  { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.review-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.review-author { font-size: 13px; font-weight: 600; color: var(--primary); }

.review-card-header  { margin-bottom: 10px; }
.review-card-title   { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.review-card-content { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.review-card-footer  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.star { color: #d1d5db; }
.star.filled { color: var(--accent); }
.review-course { color: var(--text-muted); font-size: 12px; }

/* ==========================================================
   17. FAQ 아코디언
========================================================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-gray); }
.faq-item.open .faq-question { background: var(--bg-gray-dark); color: var(--primary); }

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: var(--primary);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p,
.faq-answer-inner {
    padding: 16px 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}

/* ==========================================================
   18. 과정 필터
========================================================== */
.course-filter,
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ==========================================================
   19. 마이페이지
========================================================== */
.mypage-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.mypage-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 40px;
}

.mypage-nav a {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.mypage-nav a:hover { color: var(--primary); }
.mypage-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.mypage-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.mypage-card h2 {
    margin-bottom: 28px;
    color: var(--primary);
    font-size: 1.25rem;
}

.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.certificate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: box-shadow var(--transition);
}
.certificate-item:hover { box-shadow: var(--shadow); }
.certificate-info h3 { font-size: 16px; margin-bottom: 4px; }
.certificate-info p  { font-size: 13px; color: var(--text-muted); }
.certificate-actions { display: flex; gap: 8px; }

/* ==========================================================
   20. 푸터
========================================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 24px 24px;
    margin-top: auto;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 24px;
}

.footer-brand h3,
.footer-info h3,
.footer-contact h3,
.footer-links h3 {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-brand p,
.footer-info p,
.footer-contact p {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-bottom: 4px;
    line-height: 1.7;
}

.footer-phone {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: white !important;
    margin-bottom: 8px !important;
}

.footer-link-group h4 {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
}
.footer-link-group a,
.footer-links a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-link-group a:hover,
.footer-links a:hover { color: var(--accent); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.9); }

/* ==========================================================
   21. 섹션별 래퍼 (index.jte)
========================================================== */
.courses-section { padding: 72px 0; }
.courses-section .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    padding: 12px 36px;
    font-size: 15px;
}
.courses-section .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.reviews-section { padding: 72px 0; background: var(--bg-gray); }
.faq-section     { padding: 72px 0; }

/* ==========================================================
   22. 인증 페이지 (로그인 / 회원가입)
========================================================== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
    background: var(--bg-gray);
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
}

.auth-card h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-form { margin-top: 28px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .btn-primary {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    margin-top: 8px;
    border-radius: var(--radius);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ==========================================================
   23. 과정 목록 페이지
========================================================== */
.page-header {
    background-color: var(--primary);
    color: #fff;
    padding: 40px 0;
}
.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
}
.page-header p {
    font-size: 15px;
    opacity: 0.85;
}

.course-list-section { margin-top: 20px; }

.courses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.courses-page-header { margin-bottom: 32px; }
.courses-page-header h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.courses-page-header p  { color: var(--text-muted); font-size: 15px; }

/* ==========================================================
   24. 과정 상세 페이지
========================================================== */
.course-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.course-detail-main { }

.course-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.course-breadcrumb a:hover { color: var(--primary); }

.course-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    aspect-ratio: 16/9;
    background: var(--bg-gray-dark);
}
.course-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.course-detail-title {
    font-size: 1.7rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}
.course-meta-item strong { color: var(--text); }

.course-detail-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 32px;
}

.course-sidebar-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.sidebar-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.sidebar-info-item .label { color: var(--text-muted); }
.sidebar-info-item .value { font-weight: 600; color: var(--text); }

.sidebar-card-actions { display: flex; flex-direction: column; gap: 10px; }
.sidebar-card-actions .btn { justify-content: center; padding: 13px; font-size: 15px; }

/* ==========================================================
   25. 에러 페이지
========================================================== */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
    background: var(--bg-gray);
}

.error-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 60px 48px;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    opacity: .15;
    letter-spacing: -4px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    margin-top: -40px;
}

.error-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 12px;
}

.error-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   26. 평가원 소개 (About)
========================================================== */
.about-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.about-subnav {
    flex-shrink: 0;
    width: 200px;
}

.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 32px;
}
.about-hero h1,
.about-hero h2,
.about-hero h3 {
    color: #fff;
}

.about-org-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.about-org-tagline {
    font-size: 1rem;
    opacity: 0.88;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 36px;
}

.about-section-title {
    margin-bottom: 16px;
}

.about-section-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.about-section-body p {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 12px;
}

.about-goal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-goal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    line-height: 1.75;
    color: var(--text);
}

.about-goal-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
}

/* 오시는길 */
.location-map {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    background: var(--bg-gray);
}

.location-map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px;
}

.location-map-fallback a {
    color: var(--primary);
    text-decoration: underline;
}

.kakao-infowindow {
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.location-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.location-info-icon svg {
    stroke: #fff;
}

.location-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.location-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.location-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 과정개설센터안내 */
.cc-header {
    margin-bottom: 28px;
}

.cc-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.cc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-gray);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    min-height: 76px;
}

.cc-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cc-btn:hover .cc-btn-sub {
    color: rgba(255,255,255,0.8);
}

.cc-btn-sub {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 원장 소개 */
.director-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.director-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.director-avatar-initials {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.director-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.director-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.director-message {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.director-message p {
    color: var(--text);
    line-height: 1.9;
}

.director-closing {
    font-weight: 600;
    color: var(--primary) !important;
    margin-top: 8px;
}

/* ==========================================================
   27. 관리자 레이아웃
========================================================== */
.admin-body { background: #f0f2f5; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-logo a,
.admin-logo-link {
    font-size: 17px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.admin-nav { padding: 12px 8px; flex: 1; }

.admin-nav-item {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    margin-bottom: 2px;
    transition: all var(--transition);
}
.admin-nav-item:hover {
    color: white;
    background: rgba(255,255,255,.1);
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 12px 8px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.admin-header {
    background: white;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.admin-header h1 {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
}

.admin-content {
    padding: 28px;
    flex: 1;
    overflow-y: auto;
}

.admin-section { }

/* 관리자 섹션 헤더 (공통 .section-header 와 별도 스코프) */
.admin-content .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: left;
}
.admin-content .section-header h2 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0;
}

/* 대시보드 통계 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon--blue  { background: #dbeafe; }
.stat-icon--green { background: #dcfce7; }
.stat-icon--gold  { background: #fef3c7; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.quick-links h2 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.quick-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.quick-icon { font-size: 24px; }

/* 관리자 테이블 */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    padding: 12px 16px;
    background: var(--bg-gray-dark);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td     { background: var(--bg-gray); }

.action-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 상세 카드 */
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 24px;
}
.detail-grid {
    display: flex;
    flex-direction: column;
}
.detail-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
    width: 160px;
    min-width: 160px;
    padding: 14px 20px;
    background: var(--bg-gray);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    border-right: 1px solid var(--border);
}
.detail-value {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text);
}

/* 관리자 폼 */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.admin-form .form-group--full { grid-column: 1 / -1; }
.admin-form .form-group        { margin-bottom: 0; }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ==========================================================
   27. 반응형 미디어 쿼리
========================================================== */
@media (max-width: 1024px) {
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .quick-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .process-steps { flex-direction: column; align-items: center; }
    .process-arrow { display: none; }
    .footer-top    { grid-template-columns: 1fr; gap: 24px; }
    .footer-links  { grid-template-columns: repeat(2, 1fr); }
    .course-detail { grid-template-columns: 1fr; }
    .course-sidebar-card { position: static; }
}

@media (max-width: 768px) {
    .nav, .header-nav { display: none; }
    .nav.open,
    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        padding: 12px;
        z-index: 99;
        gap: 2px;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        align-items: flex-start;
    }
    .mobile-menu-btn { display: flex; }
    .nav-auth { flex-direction: row; width: 100%; padding: 8px 0 4px; margin-left: 0; }

    .hero h1,
    .hero-content h1 { font-size: 1.8rem; }
    .section { padding: 48px 20px; }
    .mypage-card { padding: 24px; }
    .certificate-item { flex-direction: column; align-items: flex-start; gap: 12px; }

    .footer-grid   { grid-template-columns: 1fr; gap: 20px; }

    .admin-sidebar { width: 60px; }
    .admin-logo a span,
    .admin-nav-item span { display: none; }
    .admin-nav-item { padding: 12px; text-align: center; }
    .admin-content  { padding: 16px; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: 1fr; }
    .quick-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .course-grid   { grid-template-columns: 1fr; }
    .review-grid   { grid-template-columns: 1fr; }
    .footer-links  { grid-template-columns: 1fr; }
    .auth-card     { padding: 28px 20px; }
    .cc-grid       { grid-template-columns: 1fr; }
}

/* ==========================================================
   28. 헤더 드롭다운 내비게이션
========================================================== */
.nav-item {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-arrow {
    transition: transform var(--transition);
    flex-shrink: 0;
    opacity: .7;
}
.nav-item.open .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
    white-space: nowrap;
}
.nav-item.open .nav-dropdown {
    display: block;
}
.nav-dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #333;
    transition: background var(--transition), color var(--transition);
}
.nav-dropdown-link:hover {
    background: #f3f4f6;
    color: var(--primary);
}

/* 모바일 드롭다운 */
@media (max-width: 768px) {
    .nav-item { width: 100%; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        background: #f7f8fa;
        padding: 4px 0;
        margin-left: 8px;
    }
    .nav-dropdown-link { color: #444; font-size: 13px; padding: 8px 16px; }
    .nav-dropdown-link:hover { background: #eef0f3; color: var(--primary); }
}

/* ==========================================================
   29. 시험 페이지 공통 레이아웃
========================================================== */
.exam-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}
.exam-content {
    min-width: 0;
}

/* 좌측 서브내비 */
.exam-subnav {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.exam-subnav-group {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.exam-subnav-group:last-child { border-bottom: none; }
.exam-subnav-title {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.exam-subnav-link {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    color: #444;
    transition: all var(--transition);
}
.exam-subnav-link:hover { background: #f7f8fa; color: var(--primary); }
.exam-subnav-link.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* 섹션 서브타이틀 */
.section-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* 안내 박스 */
.info-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.info-box--blue   { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a5f; }
.info-box--yellow { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }

/* 테이블 */
.table-wrap { overflow-x: auto; }
.exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.exam-table th {
    background: var(--primary);
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.exam-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.exam-table tr:last-child td { border-bottom: none; }
.exam-table tr:hover td { background: #fafafa; }

/* 배지 */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge--open     { background: #dcfce7; color: #166534; }
.badge--closed   { background: #f3f4f6; color: #6b7280; }
.badge--upcoming { background: #e0f2fe; color: #0369a1; }

/* 가이드 리스트 */
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f3f4f6;
}
.guide-list li:last-child { border-bottom: none; }
.guide-icon { font-weight: 700; color: var(--primary); flex-shrink: 0; }
.text-danger { color: #dc2626 !important; }

/* 종목 소개 카드 */
.exam-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.exam-intro-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow var(--transition);
}
.exam-intro-card:hover { box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.1)); }
.exam-intro-icon { font-size: 32px; margin-bottom: 12px; }
.exam-intro-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.exam-intro-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.exam-intro-desc { font-size: 13px; color: #666; margin: 0 0 14px; line-height: 1.5; }
.exam-intro-list { list-style: none; padding: 0; margin: 0 0 16px; }
.exam-intro-list li { font-size: 12px; color: #888; padding: 3px 0; }
.exam-intro-list li::before { content: "· "; color: var(--primary); }

/* 우대사항 */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 4px;
}
.benefit-card {
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.benefit-card--gold {
    background: #fffbeb;
    border-color: #f59e0b;
}
.benefit-grade {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}
.benefit-card--gold .benefit-grade { color: #b45309; }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before { content: "✓  "; color: var(--primary); }

/* 응시규정 섹션 */
.rules-section { margin-bottom: 32px; }

/* 폼 */
.form-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.form-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.required { color: #dc2626; }
.exam-form .form-group { margin-bottom: 20px; }
.text-center { text-align: center; }

/* 반응형 */
@media (max-width: 900px) {
    .about-layout { flex-direction: column; }
    .about-subnav { width: 100%; }
    .location-info-grid { grid-template-columns: 1fr; }
    .cc-grid { grid-template-columns: repeat(2, 1fr); }
    .exam-layout { grid-template-columns: 1fr; }
    .exam-subnav { position: static; display: flex; overflow-x: auto; gap: 0; }
    .exam-subnav-group { display: flex; flex-direction: row; align-items: center; border-bottom: none; border-right: 1px solid var(--border); padding: 0; white-space: nowrap; }
    .exam-subnav-group:last-child { border-right: none; }
    .exam-subnav-title { padding: 8px 12px; font-size: 10px; }
    .exam-subnav-link { padding: 10px 12px; font-size: 13px; }
    .exam-intro-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; }
}

/* 과정 상세 - 교육 일정 */
.course-schedule-section { margin-top: 40px; }
.course-schedule-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.course-schedule-table-wrapper { overflow-x: auto; }
.course-schedule-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.course-schedule-table th { background: #f8f9fa; padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; }
.course-schedule-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #444; }
.course-schedule-table tbody tr:hover { background: #fafafa; }
