/* 미래학당 홈페이지 — 색은 강의 슬라이드와 같게(남색·크림·노랑) */
:root {
  --navy: #1f2a5a;
  --navy-2: #2f3d7a;
  --cream: #fff8ec;
  --yellow: #ffe27a;
  --ink: #222631;
  --muted: #6b6f7b;
  --line: #e7dfcf;
  --white: #ffffff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  word-break: keep-all;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
.wrap { width: min(1080px, 92%); margin: 0 auto; }

/* 머리 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 236, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.logo small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: #f3ead6; }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.menu-btn { display: none; border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 1rem; }

/* 첫 화면 큰 칸 */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: .9rem; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.25; color: var(--navy); margin: 16px 0; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); line-height: 1.35; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 1.2rem; color: var(--navy); margin: 0 0 8px; }
.lead { font-size: 1.12rem; color: #3b3f4b; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--navy);
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:hover { filter: brightness(1.08); }

/* 칸 */
.section { padding: 56px 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.white .card { background: var(--cream); }
.card p { margin: 0; color: #444855; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; margin-bottom: 10px; }

/* 맛보기 영상 */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 10px 30px rgba(31, 42, 90, .18);
}
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .veil {
  position: absolute; inset: auto 0 0 0; padding: 12px 16px;
  background: linear-gradient(transparent, rgba(31, 42, 90, .88));
  color: #fff; font-size: .9rem;
}
.video .play {
  position: absolute; right: 16px; bottom: 52px;
  width: 56px; height: 56px; border-radius: 50%; background: rgba(31, 42, 90, .9);
  display: grid; place-items: center; color: #fff; font-size: 22px; padding-left: 5px;
}
.video-meta { margin-top: 12px; }
.video-meta strong { color: var(--navy); }
.video-meta span { color: var(--muted); font-size: .92rem; }
.ai-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* 강의 목록 */
.course-group { margin-bottom: 34px; }
.course-group h3 { border-left: 6px solid var(--yellow); padding-left: 10px; }
.course-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.course-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.course-list .no { color: var(--muted); font-weight: 700; margin-right: 8px; }
.badge { flex-shrink: 0; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.open { background: var(--navy); color: #fff; }
.badge.soon { background: #efe6d2; color: #6a5a32; }
.badge.plan { background: #e9ecf6; color: var(--navy-2); }

/* 원장 소개 */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.profile figure { margin: 0; }
.profile figure img { border-radius: var(--radius); }
.profile figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts b { color: var(--navy); display: inline-block; min-width: 92px; }

/* 자주 묻는 질문 */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; font-size: 1.05rem; }
.faq details p { margin: 0 0 16px; color: #444855; }

/* 문의 */
.contact-card { text-align: center; }
.contact-card .big { font-size: 1.6rem; font-weight: 800; color: var(--navy); text-decoration: none; display: block; margin: 6px 0; }

/* 아직 채울 곳(원장님이 정하실 칸) — 공개 전에 모두 채웁니다 */
.fill-me { background: #fff3b0; border: 1.5px dashed #c9a400; border-radius: 6px; padding: 0 6px; color: #6a5300; font-weight: 600; }

/* 직영 교습소 띠 */
.sister { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sister h3 { color: var(--yellow); }
.sister p { margin: 0; color: #dfe3f3; }
.sister .links a { color: #fff; font-weight: 700; margin-right: 14px; }

/* 꼬리 */
.site-footer { background: #171f45; color: #c9cee3; font-size: .88rem; padding: 36px 0 44px; margin-top: 40px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.updated { color: var(--muted); font-size: .85rem; margin-top: 24px; }

/* 휴대폰 */
@media (max-width: 860px) {
  .hero .wrap, .grid-2, .profile { grid-template-columns: 1fr; }
  .grid-3, .course-list { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 10px 4%; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .profile figure { max-width: 320px; }
}
