/* ── 강의 목록 ── */
.courses-hero { text-align: center; padding: 60px 20px 20px; }
.courses-hero h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: #c9a85c; margin-bottom: 10px; }
.courses-hero p { color: #a09880; font-size: 1rem; }

.lang-tabs { display: flex; justify-content: center; gap: 12px; margin: 28px 0 36px; }
.lang-tabs a { padding: 9px 28px; border-radius: 24px; border: 1px solid #c9a85c66; color: #c9a85c; text-decoration: none; font-size: 0.95rem; transition: all .2s; }
.lang-tabs a.active,
.lang-tabs a:hover { background: #c9a85c; color: #151c2c; font-weight: 700; }

.sub-banner { max-width: 860px; margin: 0 auto 40px; padding: 0 20px; }
.sub-banner > div { background: linear-gradient(135deg, var(--bg2), #1e2e48); border: 1px solid #c9a85c66; border-radius: 14px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sub-banner h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #c9a85c; margin-bottom: 6px; }
.sub-banner p { color: #a09880; font-size: 0.9rem; }
.sub-btn { padding: 12px 28px; background: #c9a85c; border: none; border-radius: 10px; color: #151c2c; font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; text-align: center; }
.sub-btn:hover { background: #e0bc6e; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.course-card { background: var(--bg2); border: 1px solid #c9a85c33; border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s; }
.course-card:hover { transform: translateY(-4px); border-color: #c9a85c88; }
.course-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #151c2c; display: block; }
.thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #151c2c, #1e2e48); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.course-card > div { padding: 20px; }
.course-card > div > div { margin-bottom: 8px; }
.badge-en, .badge-kr, .badge-free { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; }
.badge-en { background: #2a4060; color: #7ab3e0; }
.badge-kr { background: #3a2a10; color: #c9a85c; }
.badge-free { background: #1a3a20; color: #5a9e6f; margin-left: 4px; }
.course-card h2 { font-size: 1.05rem; font-weight: 700; color: #ede8dc; margin-bottom: 8px; line-height: 1.4; }
.course-card p { font-size: 0.85rem; color: #a09880; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card footer { display: flex; align-items: center; justify-content: space-between; }
.course-card footer > span { font-size: 1.1rem; font-weight: 700; color: #c9a85c; }
.course-card footer > span.free { color: #5a9e6f; }
.course-btn { padding: 8px 18px; background: #c9a85c; border: none; border-radius: 8px; color: #151c2c; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.course-btn:hover { background: #e0bc6e; }

p.empty-msg { text-align: center; color: #a09880; padding: 60px 20px; font-size: 1rem; }

.subscribed-badge { color: #5a9e6f; font-weight: 700; }

.user-bar { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 0.88rem; color: #a09880; }
.user-bar a { color: #c9a85c; text-decoration: none; }

/* ── 강의 상세 ── */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.detail-wrap > a:first-child { display: inline-block; color: #a09880; text-decoration: none; font-size: 0.88rem; margin-bottom: 24px; }
.detail-wrap > a:first-child:hover { color: #c9a85c; }

.detail-header { display: grid; grid-template-columns: 1fr 340px; gap: 36px; margin-bottom: 36px; }
@media (max-width: 700px) { .detail-header { grid-template-columns: 1fr; } }
.detail-header img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #151c2c; }
.detail-header .thumb-placeholder { border-radius: 10px; font-size: 4rem; }

.detail-info h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: #ede8dc; margin-bottom: 10px; line-height: 1.35; }
.detail-info p { color: #a09880; line-height: 1.7; font-size: 0.95rem; margin-bottom: 20px; }
.detail-price { font-size: 1.6rem; font-weight: 700; color: #c9a85c; margin-bottom: 16px; }
.access-badge { display: flex; align-items: center; gap: 8px; color: #5a9e6f; font-weight: 700; margin-bottom: 16px; font-size: 1rem; }

.buy-btn { width: 100%; padding: 14px; background: #c9a85c; border: none; border-radius: 10px; color: #151c2c; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-bottom: 10px; display: block; text-align: center; text-decoration: none; }
.buy-btn:hover { background: #e0bc6e; }
.sub-hint { font-size: 0.82rem; color: #a09880; text-align: center; }
.sub-hint a { color: #c9a85c; text-decoration: none; }

.video-wrap { position: relative; padding-bottom: 56.25%; border-radius: 10px; overflow: hidden; background: #0a0f1a; margin-bottom: 36px; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.locked-wrap { background: var(--bg2); border: 1px solid #c9a85c33; border-radius: 10px; padding: 48px 24px; text-align: center; margin-bottom: 36px; }
.locked-wrap p:first-of-type { font-size: 3rem; margin-bottom: 12px; }
.locked-wrap p { color: #a09880; margin-bottom: 20px; }

.detail-desc-section { margin-top: 36px; }
.detail-desc-section h2 { font-size: 1.15rem; color: #c9a85c; margin-bottom: 12px; border-bottom: 1px solid #c9a85c33; padding-bottom: 8px; }
.detail-desc-section p { color: #a09880; line-height: 1.8; }

.coming-soon {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.cs-tag {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4a5268;
  margin: 0;
}

.cs-page-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ede8dc;
  margin: 0;
}

.cs-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-style: italic;
  color: #c9a85c;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

.cs-divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a85c80, transparent);
}

.cs-sub {
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  color: #3a4055;
  text-transform: uppercase;
  margin: 0;
}
