/* ===================================================
   교육 세부 페이지 전용 스타일
   =================================================== */

/* ── 히어로 ── */
.course-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(135deg, #1a2238 0%, #2a3a6e 100%);
  color: #fff;
}

.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 0h60v60H0z" fill="none"/><path d="M0 60L60 0M-15 15L15 -15M45 75L75 45" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>') repeat;
}

.course-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.course-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.course-hero-title {
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.course-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 500px;
}

.course-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 30px;
  transition: opacity .2s;
}
.btn-hero-primary:hover { opacity: .9; }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.2); }

.course-hero-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.course-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 뱃지 빠른 정보 ── */
.course-quick-info {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 20px 0;
}

.course-quick-info-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #495057;
}

.quick-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.quick-info-text strong {
  display: block;
  font-size: 12px;
  color: #adb5bd;
  font-weight: 600;
  margin-bottom: 1px;
}

/* ── 본문 레이아웃 ── */
.course-body-wrap {
  padding: 56px 0 80px;
  background: #f8f9fa;
}

.course-body-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── 왼쪽 콘텐츠 ── */
.course-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.content-card-title {
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #303441;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f3f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

.content-card p {
  font-size: 14.5px;
  color: #495057;
  line-height: 1.85;
  margin-bottom: 12px;
}
.content-card p:last-child { margin-bottom: 0; }

/* ── 대상자 리스트 ── */
.target-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #303441;
  line-height: 1.6;
  transition: background .15s;
}
.target-item:hover { background: #f1f3f5; }

.target-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 교육 과정 타임라인 ── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
  position: relative;
}
.process-item:last-child { padding-bottom: 0; }
.process-item:last-child .process-line { display: none; }

.process-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-line {
  position: absolute;
  left: 17px;
  top: 36px;
  width: 2px;
  height: calc(100% - 12px);
  background: #e9ecef;
}

.process-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #303441;
  margin-bottom: 4px;
}
.process-content p {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* ── 오른쪽 사이드바 ── */
.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.sidebar-cta {
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
}

.sidebar-cta h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 13px;
  opacity: .85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-cta-btn {
  display: block;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  transition: opacity .2s;
  margin-bottom: 10px;
}
.sidebar-cta-btn:hover { opacity: .9; }

.sidebar-cta-btn-outline {
  display: block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 11px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.sidebar-cta-btn-outline:hover { background: rgba(255,255,255,.25); }

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #303441;
  margin-bottom: 14px;
}

.sidebar-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f3f5;
}
.sidebar-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-info-item dt { color: #6c757d; font-weight: 600; }
.sidebar-info-item dd { color: #303441; font-weight: 700; }

/* ── 관련 과정 ── */
.related-courses {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.related-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-card-body {
  padding: 14px 16px;
}

.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #303441;
  margin-bottom: 6px;
}

.related-card-action {
  font-size: 12px;
  font-weight: 700;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .course-hero-inner { grid-template-columns: 1fr; }
  .course-hero-img { max-width: 480px; }
  .course-body-grid { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .course-hero { padding: 40px 0 36px; }
  .course-quick-info-inner { gap: 20px; }
  .content-card { padding: 24px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .course-hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { text-align: center; justify-content: center; }
}
