:root {
  --bg: #fbfbfd;
  --ink: #14161d;
  --muted: #5f6675;
  --line: #e7e8ee;
  --card: #ffffff;

  --g1: #6366f1;  /* indigo */
  --g2: #8b5cf6;  /* violet */
  --g3: #06b6d4;  /* cyan   */

  --blue: #2f6fed;   --blue-bg: #eef4ff;
  --green: #1e9e6a;  --green-bg: #e8faf1;
  --purple: #7b53d6; --purple-bg: #f1ecfd;
  --amber: #d08700;  --amber-bg: #fdf5e1;

  --radius: 22px;
  --shadow: 0 1px 2px rgba(20,30,50,.05), 0 10px 30px rgba(20,30,50,.07);
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system,
               'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }

/* ── 상단바 ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 26px;
  background: rgba(251,251,253,.72);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.brand .dot {
  background: linear-gradient(90deg, var(--g1), var(--g3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-tab { color: var(--muted); font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 999px;
  transition: color .15s, background .15s; }
.nav-tab:hover { color: var(--g2); background: var(--purple-bg); }
.nav-cta {
  color: #fff !important; background: linear-gradient(90deg, var(--g1), var(--g2));
  padding: 7px 16px; border-radius: 999px; font-size: .9rem !important; font-weight: 700;
  box-shadow: 0 6px 16px rgba(99,102,241,.30); margin-left: 4px;
}
.nav-cta:hover { box-shadow: 0 8px 20px rgba(99,102,241,.42); }

/* ── 히어로 ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 48vh; display: grid; place-items: center; text-align: center;
  padding: 52px 22px 44px;
}
.aurora { position: absolute; inset: 0; z-index: 0; filter: blur(55px); opacity: .6; }
.blob { position: absolute; width: 30vmax; height: 30vmax; border-radius: 50%; }
.b1 { background: radial-gradient(circle at 30% 30%, var(--g1), transparent 60%); top: -14%; left: -8%; animation: float1 16s ease-in-out infinite; }
.b2 { background: radial-gradient(circle at 70% 40%, var(--g2), transparent 60%); top: -6%; right: -12%; animation: float2 19s ease-in-out infinite; }
.b3 { background: radial-gradient(circle at 50% 70%, var(--g3), transparent 60%); bottom: -22%; left: 22%; animation: float3 22s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,8%) scale(1.1)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7%,6%) scale(1.05)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(4%,-8%) scale(1.12)} }

.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-weight: 700; font-size: .88rem; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-title {
  margin: 0 0 18px; font-weight: 800; line-height: 1.2;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem); letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--g1), var(--g2) 45%, var(--g3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 auto 30px; max-width: 540px; font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .14s ease, box-shadow .14s ease, background .14s;
}
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--g1), var(--g2)); box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99,102,241,.45); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--muted); font-size: 1.3rem; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ── 공통 섹션 ── */
.section-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .76rem;
  font-weight: 800; color: var(--g2); margin: 0 0 14px;
}

/* ── 소개 / 철학 ── */
.about { max-width: 720px; margin: 0 auto; padding: 90px 22px 70px; }
.about-title { margin: 0 0 26px; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.about-body p { margin: 0 0 20px; font-size: 1.1rem; color: #2b303c; }
.about-body p:first-of-type { font-size: 1.18rem; }

/* ── bento ── */
.bento { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 90px; }
.bento-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .16s ease, box-shadow .16s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--tile-a, var(--g1)), transparent 80%);
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,30,50,.13); }
.tile-icon {
  font-size: 1.8rem; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 16px; background: var(--tile-bg, var(--blue-bg)); margin-bottom: 6px;
}
.tile-title { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.tile-desc { color: var(--muted); font-size: .96rem; flex: 1; }
.tile-go { margin-top: 8px; font-weight: 700; font-size: .9rem; color: var(--tile-a, var(--g1)); opacity: 0; transform: translateX(-4px); transition: .16s; }
.tile:hover .tile-go { opacity: 1; transform: translateX(0); }
.ext { font-size: .85em; opacity: .7; }

.accent-blue   { --tile-a: var(--blue);   --tile-bg: var(--blue-bg); }
.accent-green  { --tile-a: var(--green);  --tile-bg: var(--green-bg); }
.accent-purple { --tile-a: var(--purple); --tile-bg: var(--purple-bg); }
.accent-amber  { --tile-a: var(--amber);  --tile-bg: var(--amber-bg); }

/* ── 섹션(서브) 페이지 ── */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px 10px; }
.back { color: var(--muted); font-weight: 600; font-size: .9rem; }
.back:hover { color: var(--ink); }
.page-head h1 { margin: 16px 0 8px; font-size: clamp(1.7rem,4vw,2.3rem); letter-spacing: -.03em; }
.page-head .lead { margin: 0; color: var(--muted); font-size: 1.05rem; }
.page-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 22px 90px; display: grid; gap: 18px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-grid .tool-card { margin: 0; }
@media (max-width: 640px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  --tile-a: var(--purple); --tile-bg: var(--purple-bg);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,30,50,.13); }
.tool-card .tile-go { opacity: 1; transform: none; }

.placeholder {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 46px 26px; text-align: center;
}
.placeholder .ph-emoji { font-size: 2rem; margin: 0 0 8px; }
.placeholder p { margin: 4px 0; }
.muted { color: var(--muted); font-size: .94rem; }

/* ── 푸터 ── */
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 22px 44px; border-top: 1px solid var(--line); }

/* ── 스크롤 등장 애니메이션 ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── 챗봇 ── */
#chat-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(99,102,241,.45); transition: transform .16s;
}
#chat-toggle:hover { transform: scale(1.06); }
#chat-panel[hidden] { display: none !important; }
#chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 41;
  width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20,30,50,.25);
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 16px;
  background: linear-gradient(90deg, var(--g1), var(--g2)); color: #fff;
}
.chat-head strong { flex: 1; font-size: .98rem; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #58e58a; box-shadow: 0 0 0 3px rgba(88,229,138,.3); }
#chat-close { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; opacity: .85; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 15px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: #f1f2f6; border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(90deg, var(--g1), var(--g2)); border-bottom-right-radius: 5px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; }
.chip {
  font-size: .82rem; color: var(--g2); background: #f3f1fe; border: 1px solid #e6e1fb;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .14s;
}
.chip:hover { background: #e9e4fd; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: .94rem; outline: none; font-family: inherit; }
.chat-form input:focus { border-color: var(--g2); }
.chat-form button { width: 42px; border: none; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--g1), var(--g2)); }

/* ── 게시판(공지·일정) ── */
.board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.board-title { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: none; }
.b-date { flex: 0 0 96px; color: var(--g2); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.b-main { display: flex; flex-direction: column; gap: 3px; }
.b-title { font-weight: 700; }
.b-body { color: var(--muted); font-size: .94rem; }

/* ── 로그인 ── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px;
  background: radial-gradient(60vmax 60vmax at 70% -10%, var(--purple-bg), transparent),
              radial-gradient(50vmax 50vmax at -10% 110%, var(--blue-bg), transparent), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; text-align: center; }
.login-card h1 { margin: 0 0 8px; font-size: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 14px; }
.login-form input { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 1rem; font-family: inherit; }
.login-form input:focus { outline: none; border-color: var(--g2); }
.login-err { color: #d33; font-size: .9rem; margin: 0; }
.login-card code { background: #f1f2f6; padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* ── 관리자 ── */
body.admin { background: #f3f4f8; }
.admin-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; background: #14161d; color: #fff; }
.admin-bar .grow { flex: 1; }
.admin-bar a { color: #c8cbd6; font-weight: 600; font-size: .9rem; }
.admin-bar a:hover { color: #fff; }
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 26px 20px 80px; display: grid; gap: 20px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.admin-card h2 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -.02em; }
.grid-form { display: grid; gap: 12px; margin-top: 14px; }
.grid-form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.grid-form input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .98rem; font-family: inherit; }
.form-actions { margin-top: 4px; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.row-form.new { border-top: none; border-bottom: 2px dashed var(--line); padding-bottom: 16px; margin-bottom: 6px; }
.row-form input, .row-form select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: .92rem; font-family: inherit; }
.row-form input[name="title"] { flex: 1 1 140px; }
.row-form input[name="body"], .row-form input[name="note"] { flex: 2 1 180px; }
.row-form input[type="date"] { flex: 0 0 auto; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn-del { color: #fff; background: #e05656; }
.btn-del:hover { background: #c93f3f; }
.empty { color: var(--muted); font-size: .92rem; padding: 14px 0 2px; }
.open-warn { background: #fff7e6; border: 1px solid #f3d98a; color: #8a5a00; border-radius: 12px; padding: 12px 16px; font-size: .92rem; }
.open-warn code { background: #fbeec4; padding: 1px 6px; border-radius: 6px; }

/* ── 모바일 ── */
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  /* 상단바: 브랜드 한 줄, 메뉴 탭은 아래 줄에 모두 표시(가운데, 줄바꿈 허용) */
  .topbar { flex-direction: column; align-items: stretch; gap: 9px; padding: 11px 14px; }
  .topnav { justify-content: center; gap: 5px 7px; flex-wrap: wrap; }
  .nav-tab { display: inline-block; font-size: .82rem; padding: 6px 11px; }
  .nav-cta { font-size: .82rem !important; padding: 6px 12px; }
  .hero { min-height: 44vh; }
  .board-list li { flex-direction: column; gap: 4px; }
  .b-date { flex: none; }
}

/* ── 동호회 페이지 ── */
.g-hero { max-width: var(--maxw); margin: 0 auto; padding: 36px 22px 14px; text-align: center; }
.g-hero .back { display: inline-block; margin-bottom: 14px; }
.g-hero .eyebrow { margin-bottom: 14px; }
.g-title { margin: 0 0 12px; font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--purple), var(--g2) 60%, var(--g1));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-sub { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 1.08rem; }

/* 대문 사진 — 너무 크지 않게 가운데 액자 */
.g-photo { max-width: 660px; margin: 22px auto 0; padding: 0 22px; }
.g-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(20,30,50,.16); display: block; }
.g-photo figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }

.g-wrap { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 90px; display: grid; gap: 26px; }

.g-about { max-width: 720px; margin: 0 auto; text-align: center; }
.g-about p { margin: 0 0 16px; font-size: 1.08rem; color: #2b303c; }
.g-slogan { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 한 주 달력 */
.g-cal-sec .board-title { text-align: center; margin-bottom: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .cell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow); text-align: center; transition: transform .14s ease, box-shadow .14s ease; }
.cal .cell:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,30,50,.12); }
.cal .d { font-weight: 800; font-size: .92rem; padding: 8px 4px; background: #f1f2f6; color: var(--ink); }
.cal .c { padding: 14px 6px; min-height: 80px; display: flex; flex-direction: column; gap: 3px;
  align-items: center; justify-content: center; }
.cal .lbl { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.cal .sub { font-size: .74rem; color: var(--muted); }
.cell.class .d { background: var(--purple); color: #fff; }
.cell.class { border-color: #e3dafb; }
.cell.event .d { background: linear-gradient(90deg, var(--g1), var(--g2)); color: #fff; }
.cell.event { border-color: #cfd6fb; box-shadow: 0 10px 26px rgba(99,102,241,.20); }
.cell.event .lbl { color: var(--g2); }
.cell.free .lbl { font-weight: 600; color: var(--muted); }
.cell.rest { opacity: .55; }
.cell.sun .d { color: #e05656; }
.cal-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

/* 정보 카드 (찾아오기 / 가입문의) */
.g-info { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { margin: 0 0 14px; font-size: 1.08rem; letter-spacing: -.02em; }
.info-card.accent { border-top: 3px solid var(--purple); }
.info-card .place { font-weight: 700; margin: 0 0 4px; }
.info-card .addr { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.info-card .leader { font-weight: 700; margin: 0 0 2px; }
.info-card .phone { display: inline-block; font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: .01em; }
.info-card .join-note { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }

.g-videos .board-title { margin-bottom: 14px; }
.g-videos .bt-sub { font-size: .85rem; font-weight: 700; color: var(--muted); }
.vid-row { display: flex; flex-wrap: wrap; gap: 12px; }
.vid-btn { display: flex; flex-direction: column; gap: 3px; min-width: 150px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--purple);
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease; }
.vid-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,30,50,.12); }
.vid-song { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.vid-meta { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* 회칙 */
.g-rules .board-title { text-align: center; margin-bottom: 4px; }
.rules-eff { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.rules-doc { display: grid; gap: 10px; }
.rule-ch { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.rule-ch > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800;
  letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; }
.rule-ch > summary::-webkit-details-marker { display: none; }
.rule-ch > summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.rule-ch[open] > summary::after { transform: rotate(180deg); }
.rule-ch[open] > summary { border-bottom: 1px solid var(--line); }
.rule-body { padding: 8px 20px 18px; }
.rule-art { padding: 14px 0; border-top: 1px dashed var(--line); }
.rule-art:first-child { border-top: none; }
.rule-no { margin: 0 0 6px; font-weight: 700; color: var(--purple); }
.rule-no span { color: var(--ink); }
.rule-line { margin: 0 0 5px; font-size: .95rem; color: #2b303c; line-height: 1.7; }
.rule-line:last-child { margin-bottom: 0; }

/* 회칙 보기 버튼(동호회 페이지) */
.rule-link { display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease; }
.rule-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,30,50,.12); }
.rule-link .tile-icon { margin: 0; flex: 0 0 auto; background: var(--purple-bg); }
.rule-link-main { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rule-link-go { font-size: 1.3rem; color: var(--purple); font-weight: 800; }

/* 가입 버튼 묶음 + 당근 */
.join-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.join-cta .btn { justify-content: center; }
.btn-carrot { color: #fff; background: linear-gradient(90deg, #ff8a3d, #ff5d2e); box-shadow: 0 8px 22px rgba(255,93,46,.30); }
.btn-carrot:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,93,46,.40); }

/* 자주 묻는 질문 */
.g-faq .board-title { text-align: center; margin-bottom: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "＋"; color: var(--purple); font-weight: 800; font-size: 1.1rem; }
.faq-item[open] > summary::after { content: "－"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--line); }
.faq-a { margin: 0; padding: 14px 20px 18px; color: #2b303c; line-height: 1.7; font-size: .96rem; }

/* 방과후 연간 커리큘럼 */
.cur-sec .board-title { text-align: center; margin-bottom: 16px; }
.cur-list { display: grid; gap: 10px; }
.cur-month { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.cur-month > summary { cursor: pointer; list-style: none; padding: 15px 20px; font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.cur-month > summary::-webkit-details-marker { display: none; }
.cur-month > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.cur-month[open] > summary::after { transform: rotate(180deg); }
.cur-month[open] > summary { border-bottom: 1px solid var(--line); }
.wk-count { font-size: .8rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 3px 10px; border-radius: 999px; }
.cur-weeks { list-style: none; margin: 0; padding: 6px 18px 14px; }
.cur-weeks li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px dashed var(--line); }
.cur-weeks li:first-child { border-top: none; }
.wk { flex: 0 0 auto; align-self: flex-start; font-weight: 800; font-size: .8rem; color: #fff;
  background: var(--green); border-radius: 8px; padding: 4px 9px; margin-top: 2px; }
.wk-main { display: flex; flex-direction: column; gap: 3px; }
.wk-topic { font-weight: 700; letter-spacing: -.01em; }
.wk-content { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.wk-mat { font-size: .8rem; color: var(--green); font-weight: 600; margin-top: 2px; }
.cur-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px 0 0; }

/* 안내문 임베드 (Prezi 등) */
.embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1118; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-tip { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.embed-tip a { color: var(--g2); font-weight: 600; }

/* 방과후 안내문(네이티브) */
.dg-hero { max-width: 760px; margin: 0 auto; padding: 40px 22px 10px; text-align: center; }
.dg-hero .back { display: inline-block; margin-bottom: 14px; }
.dg-hero .eyebrow { margin-bottom: 14px; }
.dg-title { margin: 0 0 14px; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(100deg, #7b53d6, #ec4899 55%, #f6932b);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.dg-intro { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.dg-wrap { max-width: 760px; margin: 0 auto; padding: 30px 22px 90px; display: grid; gap: 18px; }

.dg-card { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i,0)*70ms); }
.dg-card.in { opacity: 1; transform: none; }
.dg-badge { flex: 0 0 auto; }
.dg-badge span { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 1rem; text-align: center; line-height: 1.2;
  box-shadow: 0 8px 20px rgba(20,30,50,.18); }
.dg-body { flex: 1; padding-top: 4px; }
.dg-lead { margin: 0 0 8px; font-weight: 700; }
.dg-list { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.dg-list li { line-height: 1.65; color: #2b303c; }
.dg-list li::marker { color: var(--dg-c, var(--purple)); font-weight: 800; }

.dg-card.accent-purple { --dg-c: #7b53d6; border-left: 4px solid #7b53d6; }
.dg-card.accent-purple .dg-badge span { background: linear-gradient(135deg, #8b5cf6, #7b53d6); }
.dg-card.accent-red { --dg-c: #e0564b; border-left: 4px solid #e0564b; }
.dg-card.accent-red .dg-badge span { background: linear-gradient(135deg, #f97362, #e0564b); }
.dg-card.accent-amber { --dg-c: #d98a16; border-left: 4px solid #e3a02b; }
.dg-card.accent-amber .dg-badge span { background: linear-gradient(135deg, #f6b94c, #e3a02b); }
.dg-card.accent-pink { --dg-c: #db2f86; border-left: 4px solid #ec4899; }
.dg-card.accent-pink .dg-badge span { background: linear-gradient(135deg, #f472b6, #ec4899); }

.dg-contact { text-align: center; background: linear-gradient(135deg, #2b3a55, #14161d); color: #fff;
  border-radius: var(--radius); padding: 30px 22px; box-shadow: var(--shadow); }
.dgc-note { margin: 0 0 12px; color: #d7dbe6; }
.dgc-name { margin: 0 0 2px; font-weight: 700; }
.dgc-phone { display: inline-block; color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }

@media (max-width: 560px) {
  .dg-card { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .dg-body { padding-top: 0; }
  .dg-list { text-align: left; }
}

/* 회사 소개 페이지 */
.co-tagline { font-weight: 800; font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--blue), var(--g1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-corp { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.co-philosophy { max-width: 640px; margin: 0 auto; text-align: center; font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.5rem); letter-spacing: -.02em; line-height: 1.5; padding: 8px 22px;
  background: linear-gradient(100deg, var(--blue), var(--g1) 60%, var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: var(--radius); padding: 22px 14px; text-align: center; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue); }
.stat-label { color: var(--muted); font-size: .9rem; }
.co-gallery .board-title { text-align: center; margin-bottom: 16px; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.co-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 1 / 1; transition: transform .14s ease, box-shadow .14s ease; }
.co-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20,30,50,.14); }
.co-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.co-chip { background: var(--blue-bg); color: var(--blue); border: 1px solid #d6e4ff; border-radius: 999px;
  padding: 7px 15px; font-size: .9rem; font-weight: 700; }
.co-cta { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  color: #fff; background: linear-gradient(90deg, var(--blue), var(--g1)); border-radius: var(--radius);
  padding: 22px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 10px 26px rgba(47,111,237,.32);
  transition: transform .14s ease, box-shadow .14s ease; }
.co-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(47,111,237,.42); }
.co-cta-go { font-size: 1.3rem; }

/* 교육 분야 카드 */
.co-fields-sec .board-title { text-align: center; margin-bottom: 16px; }
.co-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.field-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px;
  text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
  transition: transform .14s ease, box-shadow .14s ease; }
.field-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,30,50,.12); }
.field-icon { font-size: 1.7rem; }
.field-name { font-weight: 800; font-size: .98rem; }
.field-desc { color: var(--muted); font-size: .8rem; line-height: 1.4; }

@media (max-width: 760px) {
  .co-fields { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .co-stats { grid-template-columns: repeat(2, 1fr); }
  .co-grid { grid-template-columns: repeat(2, 1fr); }
  .co-fields { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 12px; }
}

@media (max-width: 720px) {
  .g-info { grid-template-columns: 1fr; }
  /* 달력은 가로 스크롤 — 요일 순서 유지하며 모바일에서도 한 칸씩 큼직하게 */
  .cal { grid-template-columns: repeat(7, 116px); overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .cal .cell { scroll-snap-align: start; }
  .g-photo img { aspect-ratio: 4 / 3; }
  .rule-ch > summary { padding: 14px 16px; }
  .rule-body { padding: 8px 16px 16px; }
}
