@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --navy: #1e2a6e;
  --navy-deep: #131b4a;
  --sea: #0a7ea4;
  --sea-soft: #e6f3f8;
  --ink: #1c2230;
  --text: #3b4354;
  --muted: #7a8394;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.logo span { color: var(--navy); }
.gnb { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 26px 18px; font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.gnb > li:hover > a, .gnb > li.on > a { color: var(--sea); }
.gnb .sub {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 170px; margin: 0; padding: 10px 0; list-style: none;
  background: var(--navy-deep); border-radius: 0 0 8px 8px;
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.gnb > li:hover .sub, .gnb > li:focus-within .sub { opacity: 1; visibility: visible; }
.gnb .sub a { display: block; padding: 8px 20px; font-size: 14.5px; color: #c9cfe6; white-space: nowrap; }
.gnb .sub a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
}
.nav-toggle i { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; }
.hero .slides { position: relative; aspect-ratio: 1885 / 690; max-height: 640px; width: 100%; }
.hero .slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero .slides img.on { opacity: 1; }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.hero .dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
}
.hero .dots button.on { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--sea); margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--text); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px;
}
.card .num { font-size: 14px; font-weight: 800; color: var(--sea); margin-bottom: 10px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; margin: 0; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.quick a {
  display: block; padding: 26px 22px; border-radius: 12px; background: var(--navy); color: #fff;
  transition: transform .15s, background .15s;
}
.quick a:hover { transform: translateY(-3px); background: var(--sea); }
.quick strong { display: block; font-size: 19px; margin-bottom: 4px; }
.quick span { font-size: 14.5px; color: #cfd6f2; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 15.5px;
  background: var(--navy); color: #fff;
}
.btn:hover { background: var(--sea); }
.btn.ghost { background: none; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* ---------- sub pages ---------- */
.page-head { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--sea)); color: #fff; padding: 54px 0 0; }
.page-head .crumb { font-size: 14px; color: #b9c2e8; margin-bottom: 8px; }
.page-head h1 { color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; padding-bottom: 34px; }
.tabs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.tabs a {
  display: block; padding: 13px 22px; font-size: 15.5px; font-weight: 600; white-space: nowrap;
  color: #dfe4f7; background: rgba(255,255,255,.1); border-radius: 8px 8px 0 0;
}
.tabs a:hover { background: rgba(255,255,255,.2); }
.tabs a.on { background: #fff; color: var(--navy); }
.content { padding: 56px 0 84px; }
.content h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.02em; }
.content h2:not(:first-child) { margin-top: 56px; }
.content h3 { font-size: 19px; margin: 28px 0 8px; }
.prose { max-width: 820px; font-size: 17px; }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 6px; }

/* greeting */
.greeting { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.greeting figure { margin: 0; }
.greeting figure img { border-radius: 12px; width: 100%; }
.greeting figcaption { margin-top: 14px; text-align: center; font-weight: 700; color: var(--ink); line-height: 1.5; }
.greeting figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.sign { margin-top: 30px; text-align: right; font-size: 18px; font-weight: 800; color: var(--ink); }
.sign small { display: block; font-weight: 500; font-size: 15px; color: var(--muted); }

/* numbered list blocks */
.steps { counter-reset: s; display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 900px; }
.steps > li {
  counter-increment: s; position: relative; padding: 24px 26px 24px 78px;
  background: var(--bg-soft); border-radius: 12px;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 26px; top: 22px;
  font-size: 24px; font-weight: 800; color: var(--sea);
}
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; font-size: 16px; }
.steps ul { margin: 0; padding-left: 18px; font-size: 16px; }
.steps ul li { margin-bottom: 4px; }

/* org chart */
.org { max-width: 900px; margin: 0 auto; }
.org-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.org-box {
  min-width: 170px; padding: 14px 20px; text-align: center; font-weight: 700; font-size: 16.5px;
  color: #fff; background: var(--navy); border-radius: 8px;
}
.org-box.light { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.org-box small { display: block; font-weight: 500; font-size: 13.5px; opacity: .85; }
.org-line { width: 2px; height: 26px; background: var(--navy); margin: 0 auto; }
.org-side { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.org-side .l { display: flex; justify-content: flex-end; }
.org-side .r { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.org-side .org-box.light { min-width: 130px; }
.org-committee { border: 1.5px solid var(--navy); border-radius: 8px; overflow: hidden; max-width: 640px; margin: 0 auto; }
.org-committee > div:first-child { background: var(--navy); color: #fff; text-align: center; font-weight: 700; padding: 9px; }
.org-committee ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.org-committee li { padding: 12px 6px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--navy); border-left: 1px solid var(--line); }
.org-committee li:first-child { border-left: 0; }

.deflist { display: grid; gap: 12px; max-width: 900px; margin: 0; }
.deflist div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 22px; background: var(--bg-soft); border-radius: 10px; }
.deflist dt { font-weight: 800; color: var(--navy); }
.deflist dd { margin: 0; font-size: 16px; }

table.people { width: 100%; max-width: 900px; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 16px; }
table.people th, table.people td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.people th { width: 190px; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
table.people td b { color: var(--ink); margin-right: 8px; }
table.people td span { color: var(--muted); font-size: 14.5px; }
table.people td div + div { margin-top: 6px; }

/* history */
.timeline { max-width: 900px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--sea); }
.timeline > li { position: relative; padding: 0 0 34px 32px; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 9px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sea); border: 3px solid #fff;
}
.timeline .year { font-size: 28px; font-weight: 800; color: var(--sea); line-height: 1.2; margin-bottom: 10px; }
.timeline dl { margin: 0; }
.timeline dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.timeline dd { margin: 2px 0 0; font-size: 15.5px; color: var(--muted); }

.seminars h3 { font-size: 24px; color: var(--sea); margin: 36px 0 14px; }
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.posters button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left;
  font: inherit; color: inherit;
}
.posters img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 10px; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
.posters button:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,30,80,.18); }
.posters .no { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--sea); }
.posters .ttl { display: block; font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.posters .date { display: block; color: var(--muted); font-size: 14px; }
dialog.viewer { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; }
dialog.viewer::backdrop { background: rgba(10,14,30,.82); }
dialog.viewer img { max-width: 94vw; max-height: 94vh; border-radius: 8px; cursor: zoom-out; }

/* location */
.loc-info { display: grid; gap: 10px; margin: 26px 0 0; max-width: 900px; }
.loc-info div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc-info dt { font-weight: 700; color: var(--ink); }
.loc-info dd { margin: 0; }
.loc-img { border-radius: 12px; border: 1px solid var(--line); max-width: 900px; width: 100%; }

/* boards */
.board { max-width: 900px; border-top: 2px solid var(--navy); margin: 0; padding: 0; list-style: none; }
.board li { border-bottom: 1px solid var(--line); }
.board details summary {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 17px 8px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
}
.board details summary::-webkit-details-marker { display: none; }
.board .date { color: var(--muted); font-weight: 400; font-size: 14.5px; }
.board .body { padding: 4px 8px 22px; white-space: pre-line; }
.board .body a { color: var(--sea); text-decoration: underline; }
.board .empty { padding: 60px 0; text-align: center; color: var(--muted); }
.notice-box { max-width: 900px; padding: 26px 28px; background: var(--sea-soft); border-radius: 12px; }
.notice-box p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #1f2330; color: #aab1c2; padding: 44px 0 40px; font-size: 14.5px; }
.site-footer .name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { margin-top: 18px; padding-top: 18px; border-top: 1px solid #343a4c; font-size: 13px; letter-spacing: .02em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-header .wrap { height: 62px; }
  .logo { font-size: 21px; }
  .nav-toggle { display: block; }
  .gnb {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 62px); overflow-y: auto; padding: 8px 0 16px;
  }
  .gnb.open { display: flex; }
  .gnb > li > a { padding: 12px 20px 4px; }
  .gnb .sub {
    position: static; transform: none; opacity: 1; visibility: visible; background: none; padding: 0 0 6px;
    display: flex; flex-wrap: wrap;
  }
  .gnb .sub a { color: var(--muted); padding: 6px 20px; }
  .gnb .sub a:hover { color: var(--sea); background: none; }

  .section { padding: 52px 0; }
  .section-title { font-size: 25px; }
  .lead { font-size: 16.5px; }
  .cards { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: 36px; }
  .page-head h1 { font-size: 28px; padding-bottom: 24px; }
  .content { padding: 38px 0 60px; }
  .content h2 { font-size: 22px; }
  .prose { font-size: 16px; }
  .greeting { grid-template-columns: 1fr; gap: 28px; }
  .greeting figure { max-width: 240px; margin: 0 auto; }
  .steps > li { padding: 56px 20px 20px; }
  .steps > li::before { left: 20px; top: 16px; }
  .deflist div { grid-template-columns: 1fr; gap: 4px; }
  table.people th { width: 110px; }
  .org-side { grid-template-columns: 1fr; justify-items: center; }
  .org-side .l, .org-side .r { justify-content: center; align-items: center; flex-direction: row; flex-wrap: wrap; }
  .org-committee ul { grid-template-columns: 1fr; }
  .org-committee li { border-left: 0; border-top: 1px solid var(--line); }
  .posters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .loc-info div { grid-template-columns: 84px 1fr; }
}
