/* ===== EDU DETAIL PAGE ===== */

/* ── Course Hero ── */
.course-hero { padding-top: 150px; background: var(--hero-bg, var(--black)); position: relative; overflow: hidden; }
.course-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 50%, rgba(232,97,60,0.1) 0%, transparent 50%), radial-gradient(ellipse at 85% 30%, rgba(26,61,124,0.12) 0%, transparent 50%); }
/* 롤링 배너(썸네일) 배경색 전환 레이어 — 상단 헤더가 겹치는 영역(150px, 모바일 60px)은
   항상 검정으로 유지하고 그 아래 콘텐츠 영역에만 적용한다(헤더가 투명이라 그대로 비침) */
.hero-bg-layer { position: absolute; top: 150px; left: 0; right: 0; bottom: 0; transition: background 1s ease; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px), repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.015) 79px, rgba(255,255,255,0.015) 80px); pointer-events: none; }
.course-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 380px; gap: 60px; padding-top: 72px; padding-bottom: 72px; align-items: start; }

/* Hero 롤링 배너(썸네일 슬라이드 등록 시에만 렌더링) */
.hero-rotator { position: relative; min-height: 280px; }
.hero-slide-panel { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.hero-slide-panel.active { opacity: 1; pointer-events: auto; }
.hero-slide-image-bg {
    width: 100%; height: 100%; min-height: 280px;
    max-width: 550px; max-height: 610px;
    display: flex; align-items: center; justify-content: flex-start;
    border-radius: 12px; overflow: hidden;
    position: relative;
}
.hero-slide-thumb { width: 100%; height: 100%; object-fit: contain; }

/* 히어로 썸네일 슬라이드 내 강사 카드(제목 좌상단 + 강사 사진 우하단 대형 + 자동 순환) */
.hero-card-content { width: 100%; height: 100%; position: relative; }
.hero-card-pager {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    display: flex; gap: 6px;
    background: rgba(0,0,0,0.35); border-radius: 24px; padding: 6px;
}
.hero-card-dot {
    font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.6);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.hero-card-dot.active { background: rgba(255,255,255,0.92); color: #111; }
.hero-card-top { position: absolute; top: 24px; left: 24px; right: 150px; z-index: 2; }
.hero-card-tag { font-size: 21px; font-weight: 700; color: rgba(255,255,255,0.9); }
.hero-card-title {
    position: absolute; top: 64px; left: 24px; right: 24px; z-index: 2;
    font-size: 36px; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: -.3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-photos { position: absolute; right: 0; bottom: 0; width: 70%; height: 74%; z-index: 1; }
.hero-card-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-card-photo.active { opacity: 1; }
.hero-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-card-bottom { position: absolute; left: 24px; bottom: 24px; max-width: 60%; z-index: 2; }
.hero-card-instructor-info { display: none; }
.hero-card-instructor-info.active { display: block; }
.hero-card-name { font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-card-affil { font-size: 21px; color: rgba(255,255,255,0.9); margin-top: 4px; white-space: pre-line; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

.hero-badges { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; letter-spacing: 0.5px; }
.hb-save { background: #2c5f9e; color: #fff; }
.hb-member { background: var(--accent); color: #fff; }
.hb-best { background: #8b4513; color: #fff; }
.hb-cat { background: var(--hero-badge-bg, rgba(255,255,255,0.08)); color: var(--hero-text, rgba(255,255,255,0.6)); border: 1px solid var(--hero-badge-border, transparent); font-weight: 500; }
.hb-discount { background: #e02020; color: #fff; }
.course-hero h1 { font-size: 38px; font-weight: 800; color: var(--hero-text, var(--white)); line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 18px; }
.course-hero-desc { font-size: 15px; color: var(--hero-text, rgba(255,255,255,0.72)); font-weight: 340; line-height: 1.85; margin-bottom: 28px; max-width: 580px; }
.course-meta-row { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); }
.course-meta-item { display: flex; align-items: center; gap: 8px; }
.course-meta-item i { color: var(--hero-icon, var(--accent)); font-size: 14px; width: 16px; }
.course-meta-label { font-size: 11px; color: var(--gray-500); font-weight: 330; margin-right: 2px; }
.course-meta-val { font-size: 14px; color: var(--hero-text, rgba(255,255,255,0.8)); font-weight: 500; }

/* ── Purchase Card ── */
.purchase-card { background: var(--white); padding: 0; position: sticky; top: 136px; }
.purchase-body { padding: 24px; }
.purchase-price-original { font-size: 15px; color: var(--gray-400); text-decoration: line-through; margin-bottom: 2px; }
.purchase-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.purchase-price { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 800; color: var(--black); }
.purchase-price-discount { color: #e02020; }
.purchase-price-won { font-size: 16px; color: var(--gray-500); font-weight: 400; }
.purchase-note { font-size: 14px; color: var(--gray-400); margin-bottom: 12px; }
.purchase-note-highlight { color: var(--accent); font-weight: 500; }

.purchase-save-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(232,97,60,0.06); border-left: 3px solid var(--accent); margin-bottom: 20px; position: relative; cursor: default; }
.purchase-save-label { font-size: 14px; color: var(--gray-600); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.save-help-icon { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--gray-400); color: var(--gray-400); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; font-style: normal; }
.purchase-save-price { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; color: var(--accent); }
.purchase-save-price.save-price-zero { color: #2c5f9e; }
.purchase-save-price.save-price-zero .purchase-save-won { color: #2c5f9e; }
.purchase-save-won { font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 400; color: var(--accent); margin-left: 2px; }
.save-tooltip { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: var(--gray-900); color: rgba(255,255,255,0.88); font-size: 12px; font-weight: 330; line-height: 1.7; padding: 12px 14px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.save-tooltip::after { content: ''; position: absolute; top: 100%; left: 20px; border: 6px solid transparent; border-top-color: var(--gray-900); }
.save-tooltip strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.purchase-save-row:hover .save-tooltip { opacity: 1; visibility: visible; }

.purchase-info { margin-bottom: 20px; }
.purchase-info-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.purchase-info-row:first-child { border-top: 1px solid var(--gray-100); }
.purchase-info-label { font-size: 15px; color: var(--gray-500); font-weight: 330; display: inline-block; width: 5em; text-align: justify; text-align-last: justify; text-justify: inter-character; }
.purchase-info-val { font-size: 15px; color: var(--black); font-weight: 500; text-align: right; max-width: 220px; }
.purchase-info-textbook-link { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.2s; }
.purchase-info-textbook-link:hover { color: var(--accent); }

.purchase-book-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--gray-100); border: 1px solid var(--gray-200); }
.purchase-book-check { display: flex; align-items: center; padding: 4px; margin: 0 -4px; cursor: pointer; }
.purchase-book-check.is-locked { cursor: default; }
.purchase-book-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.purchase-book-check.is-locked input[type="checkbox"] { cursor: default; }
.purchase-book-main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.purchase-book-name { font-size: 15px; color: var(--black); font-weight: 500; text-decoration: none; }
.purchase-book-name:hover { text-decoration: underline; color: var(--accent); }
.purchase-book-note { display: block; font-size: 13px; font-weight: 400; color: var(--gray-400); }
.purchase-book-price { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.purchase-book-price small { font-size: 13px; font-weight: 400; color: var(--gray-500); margin-left: 1px; }

.purchase-total-row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; margin-bottom: 14px; border-top: 1px solid var(--gray-200); }
.purchase-total-label { font-size: 15px; color: var(--gray-600); font-weight: 500; }
.purchase-total-price { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--black); }
.purchase-total-row small { font-size: 14px; color: var(--gray-500); font-weight: 400; margin-left: 2px; }

.purchase-btn-apply { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 17px; background: var(--accent); color: var(--white); font-size: 17px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition-fast); letter-spacing: 0.3px; margin-bottom: 10px; font-family: 'Noto Sans KR', sans-serif; }
.purchase-btn-apply:hover { background: var(--accent-hover); }
.purchase-btn-preview { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--white); color: var(--black); font-size: 16px; font-weight: 500; border: 1px solid var(--gray-200); cursor: pointer; transition: var(--transition-fast); letter-spacing: 0.3px; font-family: 'Noto Sans KR', sans-serif; }
.purchase-btn-preview:hover { border-color: var(--black); }
.purchase-member-tip { display: block; margin-top: 16px; padding: 14px; background: var(--gray-100); font-size: 12px; color: var(--gray-600); line-height: 1.7; font-weight: 330; text-decoration: none; cursor: pointer; transition: var(--transition-fast); }
.purchase-member-tip:hover { background: var(--gray-200); }
.purchase-member-tip strong { color: var(--accent); font-weight: 600; }

/* ── Detail Tabs ── */
.detail-main { background: var(--gray-100); }
.detail-content { background: var(--white); }
.detail-tabs {
    display: flex; background: var(--white); border-bottom: 2px solid var(--gray-200);
    position: sticky; top: 150px; z-index: 100;
}
/* detail-content 하단(교재안내·문의 섹션)을 벗어나면 JS가 이 클래스를 붙여
   fixed로 이어받는다 — sticky는 부모(detail-content) 경계까지만 유효하므로 */
.detail-tabs.is-pinned {
    position: fixed; top: 150px; left: 0; right: 0;
    max-width: 1320px; margin: 0 auto; padding: 0 40px;
}
.detail-tab { font-family: 'Poppins', 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 500; padding: 18px 28px; border: none; background: none; color: var(--gray-400); cursor: pointer; transition: var(--transition-fast); position: relative; white-space: nowrap; }
.detail-tab::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.detail-tab:hover { color: var(--gray-700); }
.detail-tab.active { color: var(--black); font-weight: 700; }
.detail-tab.active::after { width: calc(100% - 40px); }
.tab-panel { display: block; scroll-margin-top: 136px; }

/* ── Detail Sections ── */
.detail-section { padding: 48px; border-bottom: 1px solid var(--gray-100); }
.detail-section:last-child { border-bottom: none; }
.detail-section-title { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gray-600); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.detail-section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.detail-section h2 { font-size: 24px; font-weight: 700; color: var(--black); margin-bottom: 16px; line-height: 1.45; }
.detail-section p { font-size: 18px; color: var(--gray-600); font-weight: 330; line-height: 1.9; margin-bottom: 14px; }
.detail-section p:last-child { margin-bottom: 0; }

/* feature-grid: 대상고객 */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: var(--gray-100); }
.feature-icon { width: 36px; height: 36px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.feature-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 3px; }
.feature-text span { font-size: 14px; color: var(--gray-500); font-weight: 330; line-height: 1.6; }

/* ── Curriculum ── */
.curriculum-list { list-style: none; }
.curriculum-chapter { margin-bottom: 4px; }
.chapter-header { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--gray-900); cursor: pointer; transition: background 0.2s; }
.chapter-header:hover { background: var(--gray-800); }
.chapter-num { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: var(--accent); min-width: 32px; }
.chapter-title { font-size: 16px; font-weight: 600; color: var(--white); flex: 1; }
.chapter-meta { font-size: 12px; color: var(--gray-500); font-weight: 330; display: flex; align-items: center; gap: 12px; }
.chapter-arrow { color: var(--gray-500); font-size: 11px; transition: transform 0.25s; }
.chapter-header.open .chapter-arrow { transform: rotate(180deg); }
.lesson-list { display: none; list-style: none; background: var(--white); border: 1px solid var(--gray-100); }
.lesson-list.open { display: block; }
.lesson-item { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 30px; border-bottom: 1px solid var(--gray-100); transition: background 0.2s; }
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--gray-100); }
.lesson-ico { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-400); font-size: 11px; flex-shrink: 0; }
.lesson-ico.free { background: rgba(232,97,60,0.1); color: var(--accent); cursor: pointer; }
.lesson-title { flex: 1; font-size: 17px; color: var(--gray-700); font-weight: 400; }
.lesson-duration { font-family: 'Poppins', sans-serif; font-size: 12px; color: var(--gray-400); font-weight: 330; white-space: nowrap; }
.lesson-preview { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; cursor: pointer; white-space: nowrap; }

/* ── Video Modal ── */
.video-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.video-modal-overlay.is-open { opacity: 1; visibility: visible; }
.video-modal-box { position: relative; width: 90%; max-width: 860px; background: #111; }
/* 플레이어 내부 video 강제 표시 */
#previewPlayer video { width: 100% !important; height: 100% !important; display: block !important; visibility: visible !important; opacity: 1 !important; }
#previewPlayerWrap > div { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; }
.video-modal-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 4px; }
.video-modal-close:hover { color: var(--accent); }
.video-modal-ratio { position: relative; width: 100%; padding-top: 56.25%; background: #111; }
.video-modal-player { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.video-modal-play-btn { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 24px rgba(232,97,60,0.45); }
.video-modal-play-btn i { color: #fff; font-size: 28px; margin-left: 4px; }
.video-modal-title-bar { background: #1a1a1a; padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Instructor ── */
.instructor-card { display: flex; gap: 28px; padding: 28px; background: var(--gray-100); margin-bottom: 24px; }
.instructor-avatar { width: auto; min-width: 120px; max-width: 200px; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, var(--gray-700), var(--gray-900)); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 28px; align-self: flex-start; }
.instructor-avatar img { width: 100%; height: auto; display: block; }
.instructor-name { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.instructor-title { font-size: 17px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.instructor-bio { font-size: 17px; color: var(--gray-600); font-weight: 330; line-height: 1.85; }
.instructor-career { list-style: none; margin-top: 14px; }
.instructor-career li { font-size: 17px; color: var(--gray-600); font-weight: 330; padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; }
.instructor-career li::before { content: '—'; color: var(--gray-300); font-size: 10px; flex-shrink: 0; margin-top: 3px; }

/* ── Reviews ── */
.review-summary { display: flex; align-items: center; gap: 40px; padding: 28px; background: var(--gray-100); margin-bottom: 24px; }
.review-score-big { text-align: center; }
.review-score-num { font-family: 'Poppins', sans-serif; font-size: 52px; font-weight: 800; color: var(--black); line-height: 1; }
.review-stars { color: #f5a623; font-size: 18px; margin: 6px 0; }
.review-count { font-size: 12px; color: var(--gray-500); }
.review-bars { flex: 1; }
.review-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-bar-label { font-size: 12px; color: var(--gray-600); min-width: 24px; text-align: right; font-family: 'Poppins', sans-serif; }
.review-bar-track { flex: 1; height: 6px; background: var(--gray-200); }
.review-bar-fill { height: 100%; background: #f5a623; }
.review-bar-pct { font-size: 11px; color: var(--gray-400); min-width: 30px; font-family: 'Poppins', sans-serif; }
.review-placeholder { padding: 48px 0; text-align: center; }
.review-placeholder i { font-size: 36px; color: var(--gray-300); margin-bottom: 16px; display: block; }
.review-placeholder p { font-size: 14px; color: var(--gray-400); font-weight: 330; }

/* ── Completion Table ── */
.completion-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.completion-table thead tr { background: var(--gray-100); border-top: 2px solid var(--gray-300); border-bottom: 1px solid var(--gray-200); }
.completion-table th { padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--gray-700); text-align: center; }
.completion-table td { padding: 14px 16px; font-size: 15px; color: var(--gray-800); text-align: center; border-bottom: 1px solid var(--gray-200); }
.completion-note { margin-top: 12px; font-size: 12px; color: var(--gray-500); }

/* ── Textbook ── */
.textbook-section { background: var(--gray-100); padding: 60px 0; scroll-margin-top: 136px; }
.textbook-section-label { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px; }
.textbook-section-title { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 28px; line-height: 1.45; }
.textbook-card { background: var(--white); padding: 32px 36px; }
.textbook-card-header { border-bottom: 1px solid var(--gray-100); padding-bottom: 16px; margin-bottom: 24px; }
.textbook-card-name { font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.textbook-card-meta { font-size: 12px; color: var(--gray-400); font-weight: 330; }
.textbook-card-meta span { margin-right: 16px; }
.textbook-card-body { display: flex; gap: 36px; align-items: flex-start; }
.textbook-cover {
    width: 220px; flex-shrink: 0;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--gray-500);
    text-align: center; line-height: 1.5; padding: 16px;
    min-height: 160px;
}
.textbook-info {}
.textbook-desc  { font-size: 15px; color: var(--gray-600); font-weight: 330; line-height: 1.7; margin-bottom: 20px; }
.textbook-price-box { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 14px 18px; margin-bottom: 20px; }
.textbook-price-row   { display: flex; gap: 24px; align-items: baseline; }
.textbook-price-row + .textbook-price-row { margin-top: 6px; }
.textbook-price-label { font-size: 12px; color: var(--gray-500); font-weight: 400; width: 48px; }
.textbook-price-val   { font-size: 16px; font-weight: 400; color: var(--gray-600); }
.textbook-price-sale  { color: #e87722; }
.textbook-discount-badge { font-size: 12px; font-weight: 600; color: #e87722; align-self: center; }
.textbook-details     { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.textbook-detail-item { font-size: 14px; color: var(--gray-500); font-weight: 330; }
.textbook-detail-item strong { color: var(--gray-700); font-weight: 500; }
.textbook-pending-note { font-size: 13px; color: var(--gray-400); font-style: italic; padding: 20px 0; }

.textbook-notice { background: var(--white); padding: 40px 36px; display: flex; align-items: center; gap: 28px; }
.textbook-notice-icon { font-size: 40px; color: var(--gray-300); flex-shrink: 0; }
.textbook-notice-body strong { display: block; font-size: 17px; font-weight: 700; color: #e87722; margin-bottom: 10px; }
.textbook-notice-body p { font-size: 13px; color: var(--gray-500); font-weight: 330; line-height: 1.8; margin: 0; }
.textbook-btn-disabled {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; background: var(--gray-300); color: var(--gray-500);
    font-size: 13px; font-weight: 600; border: none; cursor: default;
    font-family: 'Noto Sans KR', sans-serif;
}
.textbook-btn-buy {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; background: var(--accent); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif; transition: opacity 0.2s;
}
.textbook-btn-buy:hover { opacity: 0.85; }

/* ── Related Courses ── */
.related-bottom { background: var(--white); padding: 60px 0; border-top: 1px solid var(--gray-100); }
.related-bottom-title { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--black); margin-bottom: 28px; }
.related-bottom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.related-card { display: block; text-decoration: none; color: inherit; transition: var(--transition-fast); }
.related-card:hover .related-thumb { opacity: 0.82; }
.related-thumb { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.4; margin-bottom: 14px; transition: opacity 0.2s ease; position: relative; overflow: hidden; }
.related-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.related-cat { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 5px; }
.related-name { font-size: 16px; color: var(--black); font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.related-meta { font-size: 14px; color: var(--gray-400); font-weight: 330; }

/* ── Q&A ── */
.qna-section { background: var(--white); padding: 60px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: 136px; }
.qna-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.qna-total { font-size: 13px; color: var(--gray-600); font-weight: 400; }
.qna-total strong { color: var(--accent); font-weight: 700; }
.qna-search-area { display: flex; align-items: center; gap: 6px; }
.qna-input {
    height: 36px; padding: 0 12px; border: 1px solid var(--gray-300);
    background: var(--white); font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
    color: var(--black); outline: none; min-width: 180px;
}
.qna-input::placeholder { color: var(--gray-400); }
.qna-search-btn {
    height: 36px; padding: 0 16px; background: var(--gray-700); color: var(--white);
    border: none; font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500; cursor: pointer; transition: var(--transition-fast);
}
.qna-search-btn:hover { background: var(--black); }
.qna-consult-btn {
    height: 36px; padding: 0 18px; background: #4a3a8a; color: var(--white);
    border: none; font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500; cursor: pointer; transition: var(--transition-fast);
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.qna-consult-btn:hover { background: #372b6e; color: var(--white); }
.qna-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.qna-table thead tr { background: var(--gray-100); border-top: 2px solid var(--gray-300); border-bottom: 1px solid var(--gray-200); }
.qna-table th { padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--gray-600); text-align: center; font-family: 'Poppins', 'Noto Sans KR', sans-serif; }
.qna-table th:nth-child(2) { text-align: left; }
.qna-table tbody tr { border-bottom: 1px solid var(--gray-200); transition: background 0.15s; }
.qna-table td { padding: 14px 16px; font-size: 13px; color: var(--gray-700); text-align: center; vertical-align: middle; }
.qna-table td:nth-child(2) { text-align: left; }
.qna-row-icon { color: var(--gray-400); margin-right: 8px; font-size: 14px; }
.qna-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; font-family: 'Poppins', sans-serif; }
.qna-status.answered { background: var(--gray-200); color: var(--gray-600); }
.qna-status.waiting  { background: rgba(232,97,60,0.1); color: var(--accent); }
.qna-empty { padding: 48px 0; text-align: center; font-size: 14px; color: var(--gray-400); }
.qna-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.qna-pagination a, .qna-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 1px solid var(--gray-200);
    font-size: 13px; color: var(--gray-600); text-decoration: none;
    transition: var(--transition-fast); font-family: 'Poppins', sans-serif;
}
.qna-pagination a:hover { border-color: var(--gray-500); color: var(--black); }
.qna-pagination span.current { background: var(--gray-700); color: var(--white); border-color: var(--gray-700); font-weight: 700; }
.qna-placeholder { padding: 48px; text-align: center; background: var(--gray-100); }
.qna-placeholder i { font-size: 36px; color: var(--gray-300); margin-bottom: 16px; display: block; }
.qna-placeholder p { font-size: 14px; color: var(--gray-500); font-weight: 330; line-height: 1.8; }
.qna-placeholder a { color: var(--accent); text-decoration: underline; }

/* ── Promo Banner ── */
.promo-bottom { position: relative; overflow: hidden; background: linear-gradient(135deg,#0a0a0a,#1a1208); padding: 64px 0; }
.promo-bottom::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 65% 50%, rgba(232,97,60,0.18) 0%, transparent 60%); }
.promo-bottom-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.promo-bottom-label { font-family: 'Poppins', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.promo-bottom-title { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 10px; }
.promo-bottom-desc { font-size: 14px; color: var(--gray-500); font-weight: 330; line-height: 1.7; }
.promo-bottom-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: var(--transition-fast); }
.promo-bottom-btn:hover { background: var(--accent-hover); }

/* ── Mobile Bottom CTA ── */
.bottom-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--white); border-top: 1px solid var(--gray-200); padding: 16px 20px; gap: 10px; align-items: center; }
.bottom-cta-price { flex: 1; }
.bottom-cta-price-num { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 800; color: var(--black); }
.bottom-cta-price-note { font-size: 11px; color: var(--gray-400); }
.bottom-cta-btn { padding: 14px 28px; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: 'Noto Sans KR', sans-serif; transition: var(--transition-fast); }
.bottom-cta-btn:hover { background: var(--accent-hover); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .course-hero .container { grid-template-columns: 1fr; }
    .purchase-card { position: static; }
    .bottom-cta { display: flex; }
    .scroll-top { bottom: 88px; right: 20px; }
}
@media (max-width: 768px) {
    .course-hero { padding-top: 60px; }
    .hero-bg-layer { top: 60px; }
    .course-hero h1 { font-size: 26px; }
    .course-hero-desc { font-size: 13px; }
    .hero-rotator { min-height: 260px; }
    .hero-slide-image-bg { min-height: 260px; }
    /* 강사 카드: 좁은 화면에서 태그(hero-card-tag)가 2줄로 줄바꿈되면서 top:64px에
       절대배치된 제목(hero-card-title)과 겹쳐 보이던 문제 — 태그/제목을 자연스러운
       흐름으로 위쪽에 쌓아 겹침 자체가 불가능하게 만든다. 태그가 없는 강좌(검색 키워드
       미등록)에서도 제목이 카운터(pager)와 겹치지 않도록 컨테이너 자체에 상단 여백을
       확보해둔다 */
    .hero-card-content { box-sizing: border-box; padding-top: 44px; }
    .hero-card-top { position: static; padding: 0 46px 0 16px; }
    .hero-card-tag { font-size: 13px; }
    .hero-card-title { position: static; padding: 6px 16px 0; font-size: 25px; }
    .hero-card-pager { top: 12px; right: 12px; padding: 4px; gap: 4px; }
    .hero-card-dot { width: 22px; height: 22px; font-size: 11px; }
    .hero-card-bottom { left: 16px; bottom: 16px; max-width: 65%; }
    .hero-card-name { font-size: 17px; }
    .hero-card-affil { font-size: 13px; }
    .purchase-body { padding: 16px; }
    .purchase-price { font-size: 24px; }
    .detail-tabs { top: 60px; overflow-x: auto; scrollbar-width: none; }
    .detail-tabs.is-pinned { top: 60px; }
    .detail-tabs::-webkit-scrollbar { display: none; }
    .detail-tab { padding: 14px 16px; font-size: 12px; }
    .tab-panel { scroll-margin-top: 112px; }
    .textbook-section { scroll-margin-top: 112px; }
    .qna-section { scroll-margin-top: 112px; }
    .feature-grid { grid-template-columns: 1fr; }
    .detail-section { padding: 28px 20px; }
    .instructor-card { flex-direction: column; gap: 16px; }
    .review-summary { flex-direction: column; gap: 20px; }
    .textbook-section { padding: 40px 0; }
    .textbook-card { padding: 24px 20px; }
    .textbook-card-body { flex-direction: column; }
    .textbook-cover { width: 100%; max-width: 200px; }
    .textbook-notice { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 16px; }
    .qna-section { padding: 40px 0; }
    .related-bottom { padding: 40px 0 100px; }
    .related-bottom-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .promo-bottom { padding: 40px 0; }
    .promo-bottom-inner { flex-direction: column; gap: 24px; }
    .promo-bottom-title { font-size: 22px; }
}
