/* ===== COURSE HERO ===== */
.course-hero {
    padding-top: 150px;
    /* --hero-bg/--hero-text/--hero-icon 는 admin/etc/hero-banner(색상 테마)에서
       인라인으로 주입된다 — 미설정 시 기존 블랙 테마 값으로 그대로 폴백된다 */
    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;
    text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.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 Left */
.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-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-refund   { background: #1a7a3d; color: #fff; }
.hb-no-refund{ background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.12); }
.hb-hrd      { background: #6b5cff; color: #fff; }
.hb-progress { background: var(--accent); color: #fff; }
.hb-closed   { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1); }

.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, var(--gray-500));
    font-weight: 330;
    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-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-won  { font-size: 16px; color: var(--gray-500); font-weight: 400; }
.purchase-note       { font-size: 14px; color: #1a7a3d; font-weight: 500; margin-bottom: 20px; }
.purchase-note-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; }
.purchase-note-rows  { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(26,122,61,0.05); border-left: 2px solid #1a7a3d; }
.purchase-note-row   { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--gray-700); font-weight: 400; }
.purchase-note-row .label { color: var(--gray-500); font-weight: 330; }
.purchase-note-plain { color: var(--gray-500); font-weight: 400; }
.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: 4em; text-align: justify;
    text-align-last: justify; text-justify: inter-character;
}
.purchase-info-val   { font-size: 15px; color: var(--black); font-weight: 500; }
.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); }
.venue-map-link { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.venue-map-link:hover { color: var(--accent); }
.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; text-decoration: none;
}
.purchase-btn-apply:hover { background: var(--accent-hover); }
.purchase-btn-apply.btn-disabled {
    background: var(--gray-300); color: var(--gray-500); cursor: default;
}
.purchase-btn-apply.btn-disabled:hover { background: var(--gray-300); }
.purchase-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; background: var(--white); color: var(--black);
    font-size: 14px; 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; text-decoration: none;
}
.purchase-btn-secondary:hover { border-color: var(--black); color: var(--black); }
.purchase-member-tip {
    margin-top: 16px; padding: 14px; background: rgba(26,122,61,0.05);
    border-left: 3px solid #1a7a3d; font-size: 12px; color: var(--gray-600);
    line-height: 1.7; font-weight: 330;
}
.purchase-member-tip strong { color: #1a7a3d; font-weight: 600; }

/* ===== DETAIL MAIN ===== */
.detail-main    { background: var(--gray-100); }
.detail-layout  { display: block; padding: 0; }
.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; }

/* introProcess raw HTML wrapper */
.intro-process-content { font-size: 16px; color: var(--gray-700); line-height: 1.9; }
.intro-process-content img { max-width: 100%; height: auto; }

/* 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; }

/* 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;
    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; overflow: hidden;
    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; margin-top: 5px; flex-shrink: 0; }

/* Schedule (Curriculum) */
.schedule-day { margin-bottom: 32px; }
.schedule-day-header {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px; background: var(--gray-900); margin-bottom: 2px;
}
.schedule-day-num   { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: var(--accent); min-width: 48px; }
.schedule-day-date  { font-size: 14px; font-weight: 600; color: var(--white); }
.schedule-day-total { font-size: 12px; color: var(--gray-500); margin-left: auto; }

.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table tr { border-bottom: 1px solid var(--gray-100); }
.schedule-table tr:last-child { border-bottom: none; }
.schedule-table td { padding: 13px 20px; font-size: 13px; vertical-align: top; }
.schedule-table .time-col    { color: var(--gray-500); font-weight: 400; width: 100px; min-width: 100px; white-space: nowrap; font-family: 'Poppins', sans-serif; font-size: 14px; }
.schedule-table .content-col { color: var(--gray-700); font-weight: 400; line-height: 1.6; font-size: 17px; }
.schedule-table .break-row td { background: var(--gray-100); color: var(--gray-400); font-size: 12px; text-align: center; padding: 8px 20px; }
.schedule-table .break-row .time-col { text-align: left; }

.curriculum-content-wrap { display: table; margin: 0 0 0 20%; }
.curriculum-heading { display: block; font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.curriculum-heading:not(:first-child) { margin-top: 16px; }
.schedule-table .sub-list { margin-top: 4px; padding-left: 12px; }
.schedule-table .sub-list li { font-size: 16px; color: var(--gray-500); list-style: none; padding: 2px 0; }
.schedule-table .sub-list li::before { content: '·'; margin-right: 6px; color: var(--gray-400); }
.schedule-table .sub-list li.sub-list-lv2 { margin-left: 18px; font-weight: 500; color: var(--gray-600); }
.schedule-table .sub-list li.sub-list-lv2::before { content: '-'; color: var(--accent); }

.prep-box { background: var(--gray-100); padding: 20px 24px; margin-top: 24px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.prep-box-label { font-family: 'Poppins', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-400); min-width: 72px; padding-top: 2px; }
.prep-items { display: flex; gap: 12px; flex-wrap: wrap; }
.prep-item  { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--gray-600); font-weight: 400; }
.prep-item i { color: var(--accent); font-size: 11px; }

/* ===== 공개교육 전용: 환급안내 ===== */
.refund-calc-card  { background: var(--gray-100); padding: 24px 28px; margin: 20px 0; }
.refund-calc-title { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.refund-table { width: 100%; border-collapse: collapse; }
.refund-table tr { border-bottom: 1px solid var(--gray-200); }
.refund-table tr:last-child { border-bottom: none; font-weight: 700; }
.refund-table td { padding: 10px 0; font-size: 14px; color: var(--gray-700); }
.refund-table td:last-child { text-align: right; font-family: 'Poppins', sans-serif; font-weight: 600; }
.refund-table tr:last-child td { color: var(--accent); font-size: 16px; }
.refund-note { font-size: 12px; color: var(--gray-400); font-weight: 330; margin-top: 10px; }

.refund-steps { display: flex; gap: 0; margin-top: 24px; flex-wrap: wrap; }
.refund-step  {
    flex: 1; min-width: 140px; display: flex; flex-direction: column;
    align-items: center; text-align: center; padding: 20px 16px; position: relative;
}
.refund-step::after {
    content: '→'; position: absolute; right: -8px; top: 50%;
    transform: translateY(-50%); color: var(--gray-300); font-size: 14px;
}
.refund-step:last-child::after { display: none; }
.refund-step-num {
    width: 32px; height: 32px; background: var(--accent); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.refund-step-text { font-size: 13px; color: var(--gray-700); font-weight: 400; line-height: 1.5; }

.priority-box {
    background: rgba(26,122,61,0.06); border-left: 3px solid #1a7a3d;
    padding: 16px 20px; margin-top: 20px;
    font-size: 13px; color: var(--gray-600); font-weight: 330; line-height: 1.7;
}
.priority-box strong { color: #1a7a3d; font-weight: 600; }

/* ===== TEXTBOOK SECTION ===== */
.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-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 BOTTOM ===== */
.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; }

/* ===== STICKY BOTTOM CTA (mobile) ===== */
.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;
    transition: var(--transition-fast); font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
}
.bottom-cta-btn:hover { background: var(--accent-hover); }
.bottom-cta-btn.btn-disabled { background: var(--gray-300); color: var(--gray-500); cursor: default; }

/* ===== 약도 팝업 모달 ===== */
.map-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2000;
    align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.map-modal-overlay.is-open { display: flex; }
.map-modal {
    background: var(--white);
    width: 100%; max-width: 740px; max-height: 90vh;
    overflow-y: auto; position: relative;
    animation: mapModalIn 0.3s ease;
}
@keyframes mapModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.map-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
}
.map-modal-title { display: flex; align-items: center; gap: 10px; }
.map-modal-title i { color: var(--accent); font-size: 16px; }
.map-modal-title strong { font-size: 16px; font-weight: 700; color: var(--black); }
.map-modal-title span   { font-size: 12px; color: var(--gray-500); font-weight: 400; }
.map-modal-close {
    width: 34px; height: 34px; border: 1px solid var(--gray-200);
    background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 16px;
    transition: var(--transition-fast); flex-shrink: 0;
}
.map-modal-close:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.map-modal-img-wrap { width: 100%; background: var(--gray-100); overflow: hidden; line-height: 0; }
.map-modal-img-wrap img { width: 100%; height: auto; display: block; }
.map-modal-info {
    padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--gray-100);
}
.map-modal-address { display: flex; flex-direction: column; gap: 5px; }
.map-modal-address .addr-row {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--gray-600); font-weight: 330; line-height: 1.6;
}
.map-modal-address .addr-row i { color: var(--accent); font-size: 13px; margin-top: 2px; flex-shrink: 0; width: 14px; }
.map-modal-directions {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; background: var(--accent); color: var(--white);
    text-decoration: none; font-size: 13px; font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    transition: var(--transition-fast); white-space: nowrap; flex-shrink: 0;
}
.map-modal-directions:hover { background: var(--accent-hover); }

/* ===== 수강신청 전 필독사항 모달 ===== */
.apply-notice-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2100;
    align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.apply-notice-modal-overlay.is-open { display: flex; }
.apply-notice-modal {
    background: var(--white);
    width: 100%; max-width: 640px; max-height: 85vh;
    overflow-y: auto; position: relative;
    animation: mapModalIn 0.3s ease;
}
.apply-notice-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; background: var(--white); z-index: 1;
}
.apply-notice-modal-title { display: flex; align-items: center; gap: 10px; }
.apply-notice-modal-title i { color: var(--accent); font-size: 18px; }
.apply-notice-modal-title strong { font-size: 17px; font-weight: 700; color: var(--black); }
.apply-notice-modal-close {
    width: 34px; height: 34px; border: 1px solid var(--gray-200);
    background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 16px;
    transition: var(--transition-fast); flex-shrink: 0;
}
.apply-notice-modal-close:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.apply-notice-modal-body {
    padding: 24px; font-size: 14.5px; color: var(--gray-700); line-height: 1.85;
}
.apply-notice-modal-body p { margin: 0 0 14px; }
.apply-notice-modal-body p:last-child { margin-bottom: 0; }
.apply-notice-modal-body ul, .apply-notice-modal-body ol { padding-left: 20px; margin: 0 0 14px; }
.apply-notice-modal-body img { max-width: 100%; height: auto; }
.apply-notice-modal-footer {
    display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--gray-100);
    position: sticky; bottom: 0; background: var(--white);
}
.apply-notice-btn-cancel {
    flex: 1; padding: 13px 20px; background: var(--white); color: var(--gray-600);
    border: 1px solid var(--gray-200); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition-fast);
}
.apply-notice-btn-cancel:hover { background: var(--gray-100); }
.apply-notice-btn-confirm {
    flex: 2; padding: 13px 20px; background: var(--accent); color: var(--white);
    border: 1px solid var(--accent); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: var(--transition-fast);
}
.apply-notice-btn-confirm: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; }
    .related-bottom { padding-bottom: 100px; }
}
@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: 14px; max-width: 100%; }
    .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: 26px; }
    .detail-tabs { top: 60px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .detail-tabs.is-pinned { top: 60px; }
    .detail-tab  { padding: 16px 20px; font-size: 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .detail-section { padding: 28px 20px; }
    .instructor-card { flex-direction: column; gap: 16px; }
    .schedule-table .time-col { display: none; }
    .schedule-table .content-col { width: 100%; }
    .curriculum-content-wrap { margin-left: 0; }
    .refund-steps { flex-direction: column; gap: 0; }
    .refund-step { flex: none; width: 100%; flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 14px 16px; }
    .refund-step::after { content: '↓'; right: auto; top: auto; bottom: -12px; left: 50%; transform: translateX(-50%); }
    .refund-step:last-child::after { display: none; }
    .related-bottom-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .textbook-section { padding: 40px 0 100px; }
    .textbook-card { padding: 24px 20px; }
    .textbook-card-body { flex-direction: column; }
    .textbook-cover { width: 100%; max-width: 220px; }
}
@media (max-width: 480px) {
    .map-modal { max-height: 95vh; }
    .map-modal-header { padding: 16px; }
    .map-modal-info { padding: 16px; flex-direction: column; align-items: flex-start; }
    .map-modal-directions { width: 100%; justify-content: center; }
    .apply-notice-modal { max-height: 95vh; }
    .apply-notice-modal-header, .apply-notice-modal-body, .apply-notice-modal-footer { padding: 16px; }
    .apply-notice-modal-footer { flex-direction: column; }
}

/* ── 강의 수강 문의 (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-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-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; }
@media (max-width: 768px) { .qna-section { padding: 40px 0; scroll-margin-top: 112px; } .qna-table th:first-child, .qna-table td:first-child, .qna-table th:nth-child(3), .qna-table td:nth-child(3) { display: none; } }
