@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

.lecture-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 강사 바 */
.instructor-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(120deg, #1e3c72, #2a5298);
    color: #fff;
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 28px;
}

.instructor-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .4);
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-info h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 900;
}

.instructor-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: .85;
    line-height: 1.5;
}

.step-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 3px 14px;
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

/* 제목 */
.edu-main-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e3c72;
    border-left: 6px solid #2a5298;
    padding-left: 16px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.edu-subtitle {
    color: #666;
    font-size: 0.93rem;
    margin: 0 0 22px 22px;
}

/* 학습목표 박스 */
.objective-box {
    background: #f0f4ff;
    border: 1px solid #c8d8f8;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.93rem;
    color: #334;
    line-height: 1.75;
}

.objective-box strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

/* 탭 */
.tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2.5px solid #2a5298;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 22px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: .15s;
}

.tab-btn.active {
    background: #2a5298;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: #e8f0ff;
    color: #2a5298;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 아코디언 */
.acc-item {
    border: 1px solid #dde4f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f5f8ff;
    cursor: pointer;
    font-weight: 700;
    color: #1e3c72;
    font-size: 0.97rem;
    user-select: none;
    transition: .15s;
}

.acc-header:hover {
    background: #ebf0ff;
}

.acc-arrow {
    font-size: 0.9rem;
    transition: transform .25s;
}

.acc-item.open .acc-arrow {
    transform: rotate(180deg);
}

.acc-body {
    display: none;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #e8edf8;
}

.acc-item.open .acc-body {
    display: block;
}

/* 강의 본문 */
.lecture-sub {
    font-size: 0.98rem;
    font-weight: 700;
    color: #2a5298;
    margin: 20px 0 10px;
}

.lecture-gap {
    height: 6px;
}

.lecture-body p {
    color: #333;
    line-height: 1.9;
    margin: 0 0 11px;
}

.lecture-list {
    padding-left: 24px;
    margin: 8px 0 16px;
}

.lecture-list li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 5px;
}

.takeaway {
    background: linear-gradient(135deg, #fff9e0, #fff3cc);
    border-left: 5px solid #f5a623;
    border-radius: 0 12px 12px 0;
    padding: 14px 20px;
    margin: 24px 0;
}

.takeaway strong {
    color: #c07700;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.takeaway p {
    margin: 0;
    color: #6b4c00;
    font-style: italic;
    font-weight: 500;
}

.alert-box {
    background: #fff0f0;
    border-left: 5px solid #e03030;
    border-radius: 0 12px 12px 0;
    padding: 13px 18px;
    margin: 18px 0;
    color: #8b0000;
    font-weight: 600;
    font-size: 0.92rem;
}

.table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.lecture-table {
    width: auto;
    /* 내용 폭에 맞게 늘어남 */
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    table-layout: auto;
}

.lecture-table td {
    border: 1px solid #dde4f0;
    padding: 10px 16px;
    color: #333;
    vertical-align: middle;
    line-height: 1.7;
    min-width: 110px;
    /* 셀 최소 폭 — 텍스트가 세로로 쪼개지지 않음 */
    word-break: keep-all;
    /* 한국어 단어 중간 줄바꿈 방지 */
    white-space: normal;
}

.lecture-table tr:first-child td {
    background: #1e3c72;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    /* 헤더는 줄바꿈 없이 */
}

.lecture-table tr:nth-child(even) td {
    background: #f5f8ff;
}

.code-line {
    display: block;
    background: #1e2d45;
    color: #7ec8e3;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 6px 0;
}

/* PPT 탭 */
.ppt-intro {
    background: #eaf2ff;
    border-radius: 10px;
    padding: 13px 18px;
    margin-bottom: 18px;
    font-size: 0.91rem;
    color: #334;
    line-height: 1.7;
}

.ppt-file-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #c8d8f8;
}

.ppt-slide {
    border: 1px solid #dde4f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fff;
    transition: .15s;
}

.ppt-slide:hover {
    border-color: #2a5298;
    background: #fafdff;
}

.slide-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2a5298;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.slide-title {
    font-size: 0.93rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 6px;
}

.slide-body {
    font-size: 0.86rem;
    color: #555;
    line-height: 1.75;
}

/* 네비 */
.edu-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid #e0e8f8;
    gap: 12px;
}

.edu-nav a {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.btn-prev {
    background: #f0f4ff;
    color: #2a5298;
    border: 1px solid #c8d8f8;
}

.btn-next {
    background: #2a5298;
    color: #fff;
}

.btn-prev:hover {
    background: #dce8ff;
}

.btn-next:hover {
    background: #1e3c72;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #888;
    text-decoration: none;
    font-size: 0.87rem;
}

.back-link:hover {
    color: #2a5298;
}

.ppt-slide-img {
    margin-bottom: 16px;
}

.slide-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    display: block;
}

.ppt-file-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #c8d8f8;
}

/* 유료 잠금 박스 */
.paywall-box {
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border: 2px dashed #2a5298;
    border-radius: 16px;
    padding: 48px 32px;
    margin: 24px 0;
}

.paywall-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

.paywall-box h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #1e3c72;
    margin: 0 0 12px;
}

.paywall-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 28px;
}

.paywall-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-login {
    padding: 11px 28px;
    border-radius: 10px;
    background: #f0f4ff;
    color: #2a5298;
    border: 2px solid #2a5298;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.93rem;
}

.btn-join {
    padding: 11px 28px;
    border-radius: 10px;
    background: #2a5298;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.93rem;
}

.btn-login:hover {
    background: #dce8ff;
}

.btn-join:hover {
    background: #1e3c72;
}

/* 슬라이드 이미지 + 해설 세트 */
.ppt-slide-full {
    border: 1px solid #dde4f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #fff;
}

.slide-label {
    background: #1e3c72;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 16px;
}

.slide-img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #e8edf8;
}

.slide-commentary {
    padding: 18px 22px;
    background: #f8faff;
}

.slide-commentary-title {
    font-size: 0.97rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 0 0 10px;
}

.slide-desc {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 8px;
}

.slide-bullets {
    padding-left: 20px;
    margin: 6px 0 0;
}

.slide-bullets li {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 4px;
}
/*  ó ڽ */
.data-source-box { margin-top:14px; border-radius:10px; overflow:hidden; border:1px solid #d0ddf8; font-size:0.85rem; }
.ds-row { display:flex; gap:10px; padding:9px 14px; align-items:flex-start; line-height:1.6; }
.ds-old { background:#f9f0f0; border-bottom:1px solid #edd; }
.ds-new { background:#f0f6ff; border-bottom:1px solid #dde8f8; }
.ds-land114 { background:#f0fff4; }
.ds-label { flex-shrink:0; font-weight:800; width:80px; font-size:0.8rem; }
.ds-old .ds-label { color:#a04040; }
.ds-new .ds-label { color:#2a5298; }
.ds-land114 .ds-label { color:#1a7a40; }
.ds-text { color:#444; }
