/* 세계문화 어울림 축제 · 교육용 가상 행사 · 휴대폰 먼저 */
:root {
  --navy: #14213d;
  --navy-2: #1d2d52;
  --ink: #1b2233;
  --muted: #5d6475;
  --bg: #ffffff;
  --alt: #f5f6fa;
  --coral: #ff6b5b;
  --coral-dark: #e04e3f;
  --sun: #ffc857;
  --mint: #4ecdc4;
  --violet: #8e7dff;
  --green: #1f8a6b;
  --line: #e4e7ef;
  --error: #c62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* 맨 위: 교육용 안내 띠 + 바로가기 */
.topbar { position: sticky; top: 0; z-index: 20; }
.notice-bar {
  background: var(--sun); color: var(--navy);
  text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .02em;
  padding: 6px 12px;
}
body > .notice-bar { position: sticky; top: 0; z-index: 20; } /* 관리자 화면 */
.nav {
  background: rgba(20, 33, 61, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; }
.nav-brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 16px; white-space: nowrap; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-links a {
  display: block; color: rgba(255, 255, 255, .8); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 6px 9px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-links .nav-cta { background: var(--coral); color: #fff; padding: 6px 14px; }
.nav-links .nav-cta:hover { background: var(--coral-dark); }
@media (max-width: 420px) {
  .nav-brand { display: none; }
  .nav-inner { justify-content: center; }
}

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, #2b3f73 0%, transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; display: block; opacity: .9; }
.s1 { width: 180px; height: 180px; right: -50px; top: 30px; border-radius: 50%; background: var(--coral); }
.s2 { width: 90px; height: 90px; right: 90px; top: 170px; border-radius: 50% 50% 0 50%; background: var(--sun); }
.s3 { width: 120px; height: 60px; right: 10px; top: 230px; border-radius: 120px 120px 0 0; background: var(--mint); }
.s4 { width: 46px; height: 46px; right: 170px; top: 60px; border: 6px solid var(--violet); border-radius: 50%; opacity: .8; }
.s5 { width: 70px; height: 70px; left: -20px; bottom: 40px; background: var(--mint); transform: rotate(45deg); border-radius: 10px; opacity: .35; }
.s6 {
  width: 160px; height: 100px; right: 40px; bottom: 30px; opacity: .25;
  background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 16px 16px;
}
@media (max-width: 640px) {
  .s1 { width: 120px; height: 120px; right: -40px; top: 16px; }
  .s2 { width: 54px; height: 54px; right: 50px; top: 110px; }
  .s3 { width: 80px; height: 40px; right: -10px; top: 150px; }
  .s4 { right: 110px; top: 30px; width: 32px; height: 32px; border-width: 4px; }
  .hero-pattern { opacity: .55; }
}

.hero-host {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 15px; font-weight: 700; color: #fff;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 900; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sun), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 0 0 28px; max-width: 34em; color: rgba(255, 255, 255, .85); font-size: 18px; }
.hero-facts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.hero-facts li {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 12px 16px;
}
.hero-facts .label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--sun); margin: 0 0 2px;
}
.hero-facts .value { font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-block; border: 0; border-radius: 999px;
  padding: 16px 30px; font-size: 19px; font-weight: 800;
  text-decoration: none; cursor: pointer; font-family: inherit; text-align: center;
  min-height: 56px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 91, .35); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 91, .4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #c9c3cc; box-shadow: none; transform: none; cursor: wait; }
.btn-arrow::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { display: block; width: 100%; }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* 섹션 */
.section { padding: 64px 0; }
.section-alt { background: var(--alt); }
.eyebrow {
  margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral);
}
h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 900; color: var(--navy); }
h3 { font-size: 20px; margin: 28px 0 10px; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* 소개 */
.about-grid { display: grid; gap: 14px; }
.about-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow); overflow: hidden;
}
.about-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--coral); }
.about-card:nth-child(2)::before { background: var(--mint); }
.about-card h3 { margin: 0 0 6px; }
.about-card p { margin: 0; }

/* 프로그램 타임라인 */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--coral), var(--sun), var(--mint));
}
.tl-item { position: relative; padding-left: 34px; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--coral);
}
.tl-item.is-common::before { border-color: #b7bccb; }
.tl-time { margin: 0 0 6px; font-weight: 800; color: var(--coral-dark); font-variant-numeric: tabular-nums; font-size: 16px; }
.is-common .tl-time { color: var(--muted); }
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.is-pick .tl-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,33,61,.06), 0 14px 32px rgba(20,33,61,.1); }
.tl-card h3 { margin: 0 0 2px; font-size: 21px; }
.tl-card p { margin: 4px 0; }
.tl-zone { color: var(--muted); font-size: 15px; font-weight: 600; }
.tl-zone::before { content: "● "; color: var(--mint); font-size: 11px; vertical-align: 2px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; margin-top: 8px; vertical-align: 1px;
}
.tag-pick { background: #ffe7e3; color: var(--coral-dark); }
.tag-common { background: #eceef4; color: var(--muted); }

/* 참가 안내 */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 14px 62px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.tbd { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbd li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; }
.tbd li + li { border-top: 1px solid var(--line); }
.tbd strong {
  white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--muted);
  background: var(--alt); border-radius: 999px; padding: 3px 10px;
}

/* 주최 */
.host-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.host-card h3 { margin-top: 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.label { display: inline-block; min-width: 64px; margin-right: 8px; font-weight: 800; color: var(--coral-dark); }

/* 신청 폼 */
.section-apply { background: linear-gradient(180deg, #fff 0%, var(--alt) 100%); }
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #ffe2a3; border-radius: 14px;
  padding: 12px 16px; font-weight: 600; font-size: 16px;
}
.callout::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sun); color: var(--navy); font-weight: 900; font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; margin-top: 20px; box-shadow: var(--shadow); }
form { margin: 0; }
.field { margin: 0 0 22px; border: 0; padding: 0; }
fieldset.field { min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 800; margin-bottom: 8px; padding: 0; font-size: 17px; color: var(--navy); }
.req { font-size: 12px; font-weight: 800; color: var(--coral-dark); background: #ffe7e3; border-radius: 6px; padding: 2px 7px; vertical-align: 2px; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"] {
  width: 100%; font-size: 19px; font-family: inherit; color: var(--ink);
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fbfbfd;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="password"]:focus {
  outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(20, 33, 61, .08);
}
input[aria-invalid="true"] { border-color: var(--error); }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 8px; cursor: pointer; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.check:hover { border-color: #c7ccda; }
.check:has(input:checked) { border-color: var(--coral); background: #fff5f3; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--coral); }
.consent ul { background: var(--alt); border-radius: 12px; padding: 12px 14px 12px 32px; margin: 0 0 10px; }
.field-error { color: var(--error); font-weight: 700; margin: 6px 0 0; font-size: 15px; }
.field-error:empty { display: none; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); background: #fdecea; border-radius: 12px; padding: 12px 14px; }

/* 접수 완료 */
.done { text-align: center; padding: 8px 0; }
.done-icon {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: #e3f5ee; position: relative;
}
.done-icon::after {
  content: ""; position: absolute; left: 23px; top: 15px; width: 14px; height: 26px;
  border: solid var(--green); border-width: 0 5px 5px 0; transform: rotate(45deg);
}
.done h3 { color: var(--green); font-size: 28px; margin: 0 0 4px; }
.receipt { font-size: 18px; color: var(--muted); }
.receipt strong { display: block; font-size: 34px; letter-spacing: 2px; color: var(--navy); font-variant-numeric: tabular-nums; }

/* 바닥 */
.footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 32px 0; font-size: 14px; }
.footer p { margin: 4px 0; }
.footer-title { color: #fff; font-weight: 800; font-size: 15px; }

/* 관리자 */
.admin-table-wrap { overflow-x: auto; }
.admin-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.admin-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.admin-item p { margin: 2px 0; }

@media (min-width: 720px) {
  .hero { padding: 88px 0 96px; }
  .hero h1 { font-size: 64px; }
  .hero-facts { grid-template-columns: 1fr 1.6fr .7fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
  h2 { font-size: 36px; }
  .form-card { padding: 36px 40px; }
  .tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
  .tl-time { margin-top: 18px; text-align: left; }
  .tl-item::before { top: 24px; }
  .btn-block { max-width: 420px; margin-left: auto; margin-right: auto; }
}
