/* ========================================
   자격증과정 상세페이지
   - 인프런 스타일 2단 레이아웃
======================================== */

.crd-page *, .crd-page *::before, .crd-page *::after {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ───── 히어로 (다크) ───── */
.crd-hero {
    background: #101113;
    color: #fff;
    padding: 64px 0 56px;
}
.crd-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
.crd-hero-badges {
    display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.crd-hero-badge {
    padding: 5px 14px; font-size: 13px; font-weight: 700; border-radius: 4px;
}
.crd-hero-badge--cert { background: #f59e0b; color: #fff; }
.crd-hero-badge--new { background: #553AE7; color: #fff; }
.crd-hero-title {
    font-size: 36px; font-weight: 900; letter-spacing: -1.5px;
    line-height: 1.3; margin: 0 0 16px;
}
.crd-hero-desc {
    font-size: 18px; color: rgba(255,255,255,.6); line-height: 1.7;
    margin: 0 0 24px; max-width: 640px;
}
.crd-hero-meta {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-size: 15px; color: rgba(255,255,255,.45);
}
.crd-hero-meta span { display: flex; align-items: center; gap: 6px; }
.crd-hero-meta i { font-size: 14px; }

/* ───── 2단 레이아웃 ───── */
.crd-layout {
    display: flex; gap: 40px; align-items: flex-start;
    max-width: 960px; margin: 0 auto; padding: 48px 24px 80px;
}
.crd-main { flex: 1; min-width: 0; }
.crd-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 100px; }

/* ───── 사이드바 카드 ───── */
.crd-side-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 28px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.crd-side-price { margin-bottom: 20px; }
.crd-side-discount {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    background: #ef4444; color: #fff; font-size: 14px; font-weight: 800;
    margin-right: 8px;
}
.crd-side-final {
    font-size: 32px; font-weight: 900; color: #111; letter-spacing: -0.5px;
}
.crd-side-original {
    font-size: 16px; color: #aeaeb2; text-decoration: line-through; margin-left: 8px;
}
.crd-side-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px; border-radius: 8px;
    background: #553AE7; color: #fff; font-size: 18px; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none;
    transition: background .2s; margin-bottom: 16px;
}
.crd-side-btn:hover { background: #4028C4; }
.crd-side-info {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.crd-side-info li {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; color: #6b7280;
}
.crd-side-info li strong { color: #111; font-weight: 600; }
.crd-side-info li i { width: 20px; color: #aeaeb2; }

/* ───── 탭 네비게이션 ───── */
.crd-tabs {
    display: flex; gap: 0; border-bottom: 2px solid #e5e7eb;
    margin-bottom: 40px; position: sticky; top: 64px;
    background: #fff; z-index: 10; padding-top: 8px;
}
.crd-tab {
    padding: 14px 24px; font-size: 16px; font-weight: 600;
    color: #9ca3af; border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all .15s;
}
.crd-tab:hover { color: #111; }
.crd-tab.active {
    color: #111; border-bottom-color: #111; font-weight: 700;
}

/* ───── 탭 콘텐츠 ───── */
.crd-tab-content { display: none; }
.crd-tab-content.active { display: block; }

/* ───── 과정소개 ───── */
.crd-intro h3 {
    font-size: 26px; font-weight: 800; color: #111; margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.crd-intro p {
    font-size: 18px; color: #4b5563; line-height: 1.8; margin: 0 0 32px;
}
.crd-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 48px;
}
.crd-feature {
    padding: 24px; background: #f9fafb; border-radius: 12px;
}
.crd-feature-icon {
    font-size: 28px; color: #553AE7; margin-bottom: 12px;
}
.crd-feature h4 {
    font-size: 18px; font-weight: 700; color: #111; margin: 0 0 8px;
}
.crd-feature p {
    font-size: 15px; color: #6b7280; line-height: 1.6; margin: 0;
}

/* ───── 커리큘럼 아코디언 ───── */
.crd-curriculum-header {
    font-size: 26px; font-weight: 800; color: #111; margin: 0 0 8px;
}
.crd-curriculum-sub {
    font-size: 16px; color: #9ca3af; margin: 0 0 24px;
}
.crd-module {
    border-bottom: 1px solid #e5e7eb;
}
.crd-module-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; cursor: pointer; gap: 12px;
}
.crd-module-header:hover { opacity: .8; }
.crd-module-left { display: flex; align-items: center; gap: 14px; }
.crd-module-num {
    font-size: 14px; font-weight: 800; color: #553AE7;
    min-width: 24px;
}
.crd-module-title {
    font-size: 18px; font-weight: 700; color: #111;
}
.crd-module-count {
    font-size: 14px; color: #9ca3af; white-space: nowrap;
}
.crd-module-toggle {
    font-size: 14px; color: #9ca3af; transition: transform .2s;
}
.crd-module.open .crd-module-toggle { transform: rotate(180deg); }
.crd-module-body {
    display: none; padding: 0 0 20px 38px;
}
.crd-module.open .crd-module-body { display: block; }
.crd-lesson {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 16px; color: #4b5563;
}
.crd-lesson i { font-size: 14px; color: #d1d5db; }
.crd-lesson-tag {
    font-size: 12px; font-weight: 600; color: #553AE7;
    background: rgba(85,58,231,.08); padding: 2px 8px; border-radius: 3px;
    margin-left: auto;
}

/* ───── 자격증 정보 ───── */
.crd-cert-info {
    background: #f9fafb; border-radius: 12px; padding: 32px;
    margin-bottom: 32px;
}
.crd-cert-info h3 {
    font-size: 22px; font-weight: 800; color: #111; margin: 0 0 16px;
}
.crd-cert-table {
    width: 100%; border-collapse: collapse;
}
.crd-cert-table td {
    padding: 14px 16px; font-size: 16px; border-bottom: 1px solid #e5e7eb;
}
.crd-cert-table td:first-child {
    width: 140px; font-weight: 600; color: #6b7280;
}
.crd-cert-table td:last-child { color: #111; }

/* ───── 반응형 ───── */
@media (max-width: 768px) {
    .crd-hero-title { font-size: 26px; }
    .crd-hero-desc { font-size: 16px; }
    .crd-layout { flex-direction: column; padding: 32px 16px 60px; }
    .crd-sidebar { width: 100%; position: static; }
    .crd-side-card { margin-bottom: 32px; }
    .crd-tabs { overflow-x: auto; }
    .crd-tab { white-space: nowrap; padding: 12px 16px; font-size: 14px; }
    .crd-features { grid-template-columns: 1fr; }
    .crd-intro h3, .crd-curriculum-header { font-size: 22px; }
    .crd-module-title { font-size: 16px; }
    .crd-lesson { font-size: 14px; }
}
