/* ── edu.css ── 홈페이지 제작 강의 7일 완성 */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0a0a0f;
  --paper: #f7f5f0;
  --accent: #ff3b00;
  --accent2: #0057ff;
  --gold: #f5c842;
  --mid: #6b6b6b;
  --line: #e0ddd6;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ──────────────────────────────────────
   HERO
────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 59px,
    var(--line) 59px,
    var(--line) 60px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-right: 2px solid var(--ink);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 32px;
  width: fit-content;
}
.hero-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 300;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--mid);
  margin-bottom: 48px;
  font-weight: 300;
}
.price-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.price-original {
  font-size: 18px;
  color: var(--mid);
  text-decoration: line-through;
}
.price-now {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 52px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-tag {
  background: var(--gold);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 48px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  width: fit-content;
}
.cta-btn:hover {
  background: var(--accent);
  color: #fff;
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  background: var(--ink);
  color: var(--paper);
}
.days-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.days-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  color: var(--paper);
  opacity: 0.08;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-55%);
  user-select: none;
  pointer-events: none;
}
.hero-tagline {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}
.hero-tagline span { color: var(--gold); }

.review-strip {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.stars { display: flex; gap: 3px; }
.star {
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.review-text { font-size: 13px; color: rgba(247,245,240,0.7); }
.review-text strong { color: var(--gold); }

/* ──────────────────────────────────────
   공통 섹션
────────────────────────────────────── */
.section { padding: 100px 60px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────
   추천 대상
────────────────────────────────────── */
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.target-card {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 40px;
  position: relative;
  transition: transform 0.2s;
}
.target-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.tc-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 64px;
  color: var(--line);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 32px;
}
.tc-icon { font-size: 32px; margin-bottom: 16px; }
.tc-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.tc-desc { font-size: 14px; color: var(--mid); line-height: 1.7; font-weight: 300; }

/* ──────────────────────────────────────
   실습 프로젝트
────────────────────────────────────── */
.projects {
  background: var(--ink);
  color: var(--paper);
}
.projects .section-title { color: var(--paper); }
.projects .section-label { color: rgba(247,245,240,0.5); }

.project-list { display: flex; flex-direction: column; gap: 2px; }
.project-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(247,245,240,0.15);
  transition: padding-left 0.3s;
  cursor: default;
}
.project-item:hover { padding-left: 16px; }
.pi-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}
.pi-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pi-desc { font-size: 14px; color: rgba(247,245,240,0.6); line-height: 1.6; font-weight: 300; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(247,245,240,0.3);
  color: rgba(247,245,240,0.7);
}
.tag.hot { border-color: var(--accent); color: var(--accent); }

/* ──────────────────────────────────────
   커리큘럼
────────────────────────────────────── */
.curriculum { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.step-col { border: 2px solid var(--ink); overflow: hidden; }
.step-header {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}
.step-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.5);
  margin-bottom: 4px;
}
.step-name { font-size: 16px; font-weight: 700; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.step-item:last-child { border-bottom: none; }
.si-dot {
  width: 6px;
  height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.step-col:last-child .si-dot { background: var(--accent); }

/* ──────────────────────────────────────
   수강생 후기
────────────────────────────────────── */
.reviews { padding: 100px 60px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  border: 2px solid var(--ink);
  padding: 36px;
  position: relative;
  background: #fff;
}
.review-card::before {
  content: '"';
  font-family: 'Black Han Sans', sans-serif;
  font-size: 120px;
  color: var(--line);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
  pointer-events: none;
}
.rv-text {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  position: relative;
  z-index: 1;
  padding-top: 20px;
}
.rv-stars { display: flex; gap: 3px; margin-top: 20px; }
.rv-star {
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

/* ──────────────────────────────────────
   수강 신청 폼
────────────────────────────────────── */
.enroll-section {
  background: #fff;
  border-top: 2px solid var(--ink);
}

.enroll-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* 왼쪽 강의 정보 요약 */
.enroll-info {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 32px;
  position: sticky;
  top: 24px;
}
.enroll-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(247,245,240,0.12);
}
.enroll-info-item:last-child { border-bottom: none; }
.ei-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.5);
}
.ei-value {
  font-size: 15px;
  font-weight: 500;
}
.ei-original {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 14px;
}
.ei-price {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

/* 오른쪽 폼 */
.enroll-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-row .form-col { margin-bottom: 0; }

.noble-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.noble-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--paper);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.noble-input:focus {
  border-color: var(--ink);
}
select.noble-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0f' stroke-width='2' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.noble-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.agree-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  margin-top: 4px;
}
.agree-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.agree-box label {
  font-size: 13px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1.5;
}

.btn-area { text-align: left; }
.submit-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 18px 56px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.submit-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ──────────────────────────────────────
   하단 CTA
────────────────────────────────────── */
.bottom-cta {
  background: var(--accent);
  color: #fff;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-top: 2px solid var(--ink);
}
.bc-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 100;
}
.bc-title small {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.bc-price-block { text-align: right; }
.bc-original { font-size: 18px; text-decoration: line-through; opacity: 0.6; margin-bottom: 4px; }
.bc-now { font-family: 'Black Han Sans', sans-serif; font-size: 56px; line-height: 1; }
.bc-btn {
  display: block;
  margin-top: 24px;
  background: #fff;
  color: var(--accent);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.bc-btn:hover { background: var(--ink); color: #fff; }

/* ──────────────────────────────────────
   반응형
────────────────────────────────────── */
@media (max-width: 1024px) {
  .enroll-wrap {
    grid-template-columns: 1fr;
  }
  .enroll-info {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .enroll-info-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(247,245,240,0.12);
    border-right: 1px solid rgba(247,245,240,0.12);
  }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-left { border-right: none; border-bottom: 2px solid var(--ink); padding: 60px 30px; }
  .hero-right { padding: 60px 30px; }
  .days-num { font-size: 160px; right: 20px; }
  .section { padding: 70px 30px; }
  .reviews { padding: 70px 30px; }
  .target-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 60px 1fr; }
  .pi-tags { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .bottom-cta { grid-template-columns: 1fr; text-align: center; padding: 70px 30px; }
  .bc-price-block { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .enroll-info { grid-template-columns: 1fr; }
}