:root {
  --bg: #f4efe7;
  --surface: #fffdf9;
  --surface-strong: #f0e4d4;
  --line: #d8c7b2;
  --text: #2d241c;
  --muted: #6e6154;
  --primary: #7a2e2e;
  --primary-strong: #5b1d1d;
  --accent: #b98a4b;
  --shadow: 0 18px 40px rgba(47, 34, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 138, 75, 0.18), transparent 32%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 88px 0; }
.eyebrow { margin-bottom: 12px; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.muted, .section-title p, .page-hero p { color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-title h2, .page-hero h1, .hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.03em; }
.section-title h2 { font-size: clamp(2rem, 3vw, 3rem); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 243, 0.82);
  border-bottom: 1px solid rgba(122, 46, 46, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--primary), #9f5555);
  color: #fff; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.brand-text strong, .brand-text span { display: block; }
.brand-text strong { font-size: 1rem; }
.brand-text span { color: var(--muted); font-size: 0.85rem; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--text); }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav a {
  padding: 10px 14px; color: var(--muted); font-weight: 600; border-radius: 999px; transition: 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: rgba(122, 46, 46, 0.08); }
.nav-dropdown {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 16px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid rgba(122, 46, 46, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-menu a {
  border-radius: 14px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero { padding: 56px 0 40px; }
.hero-grid, .page-hero-grid, .info-grid, .news-grid, .support-grid, .footer-grid, .gallery {
  display: grid; gap: 28px;
}
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); align-items: stretch; }
.hero-copy, .hero-card, .panel, .notice-card, .card, .message-box, .timeline, .contact-box, .support-box, .form-card {
  background: var(--surface);
  border: 1px solid rgba(122, 46, 46, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 56px; position: relative; overflow: hidden;
}
.hero-copy::after {
  content: ""; position: absolute; inset: auto -60px -60px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 138, 75, 0.28) 0%, transparent 70%);
}
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 0.95; }
.hero-copy p, .card p, .notice-card p, .support-box p, .timeline-item p, .message-box p, .panel p { margin: 0; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { border-color: rgba(122, 46, 46, 0.2); background: rgba(255, 255, 255, 0.6); color: var(--primary); }

.hero-card {
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(122, 46, 46, 0.95), rgba(61, 19, 19, 0.95)), #5b1d1d;
  color: #fff;
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat {
  padding: 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat strong { display: block; margin-bottom: 6px; font-size: 1.8rem; font-family: Georgia, serif; }

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.quick-link, .card, .notice-card, .timeline-item, .support-box { padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid rgba(122, 46, 46, 0.08); }
.quick-link { display: block; min-height: 160px; transition: 0.2s ease; }
.quick-link:hover, .card:hover, .notice-card:hover { transform: translateY(-4px); }
.quick-link strong, .card h3, .notice-card h3, .support-box h3 { display: block; margin-bottom: 10px; font-size: 1.15rem; }

.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-grid { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.notice-list, .schedule, .contact-list, .board-list { display: grid; gap: 16px; }
.notice-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 0.92rem; color: var(--muted); }
.schedule-item, .timeline-item {
  display: grid; gap: 18px; align-items: start; padding: 16px 0;
}
.schedule-item { grid-template-columns: 92px 1fr; border-bottom: 1px solid rgba(122, 46, 46, 0.08); }
.schedule-item:last-child { border-bottom: 0; padding-bottom: 0; }
.date-box {
  padding: 14px 10px; border-radius: 16px; background: var(--surface-strong); text-align: center;
}
.date-box strong, .timeline-year { display: block; font-family: Georgia, serif; }
.date-box strong { font-size: 1.35rem; }

.page-hero { padding: 54px 0 18px; }
.page-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; }
.page-hero .panel, .message-box, .contact-box, .form-card { padding: 36px; }
.highlight-panel {
  padding: 32px; background: linear-gradient(180deg, rgba(122, 46, 46, 0.96), rgba(79, 26, 26, 0.96)), #602121; color: #fff;
}
.timeline { padding: 28px; }
.timeline-item { grid-template-columns: 120px 1fr; margin-bottom: 14px; }
.timeline-item:last-child { margin-bottom: 0; }
.contact-list strong, .board-list strong { display: block; margin-bottom: 4px; }
.board-list .card { padding: 18px 20px; }

.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card {
  min-height: 220px; padding: 24px; border-radius: var(--radius-md); color: #fff;
  display: flex; align-items: end; background-size: cover; background-position: center;
}
.gallery-card:nth-child(1) { background-image: linear-gradient(180deg, transparent, rgba(35, 22, 14, 0.7)), linear-gradient(135deg, #7a2e2e, #c59b61); }
.gallery-card:nth-child(2) { background-image: linear-gradient(180deg, transparent, rgba(35, 22, 14, 0.7)), linear-gradient(135deg, #3f5a74, #d9b16c); }
.gallery-card:nth-child(3) { background-image: linear-gradient(180deg, transparent, rgba(35, 22, 14, 0.7)), linear-gradient(135deg, #57663d, #c9835f); }

.support-grid { grid-template-columns: 1fr 1fr; }
.support-box ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

.site-footer { padding: 30px 0 44px; }
.footer-grid {
  grid-template-columns: 1.2fr 0.8fr; padding: 28px 32px; border-radius: var(--radius-lg); background: #2b211a; color: rgba(255, 255, 255, 0.82);
}
.footer-grid strong { display: block; color: #fff; margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-note { margin-top: 18px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero-grid, .page-hero-grid, .info-grid, .news-grid, .support-grid, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); left: 20px; right: 20px;
    display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px;
    border-radius: 20px; background: rgba(255, 253, 249, 0.98); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .nav-dropdown > a {
    justify-content: space-between;
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 4px;
    box-shadow: none;
    border-radius: 16px;
  }
  .hero-copy, .hero-card, .page-hero .panel, .message-box, .contact-box, .form-card { padding: 28px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .hero-copy h1 { font-size: 2.5rem; }
.quick-links, .hero-stats, .form-grid { grid-template-columns: 1fr; }
  .timeline-item, .schedule-item { grid-template-columns: 1fr; }
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.subnav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(122, 46, 46, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.executive-card {
  padding: 0;
  overflow: hidden;
}

.executive-photo {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8e5f48, #d2b383);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.executive-photo span {
  font-size: 3rem;
  font-family: Georgia, serif;
}

.executive-meta {
  padding: 24px;
}

.executive-meta h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.executive-meta strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
}

.admin-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 108px;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(122, 46, 46, 0.08);
  background: #fff;
  color: var(--text);
  padding: 16px 18px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
}

.admin-menu button.is-active {
  background: rgba(122, 46, 46, 0.1);
  color: var(--primary);
  border-color: rgba(122, 46, 46, 0.18);
}

.admin-pane[hidden] {
  display: none;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-filter input,
.admin-filter select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(122, 46, 46, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(122, 46, 46, 0.08);
  border-radius: 18px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(122, 46, 46, 0.08);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f8f1e7;
  color: var(--primary);
  font-size: 0.95rem;
}

.data-table tbody tr:hover {
  background: rgba(122, 46, 46, 0.03);
}

.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.event-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-post-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(122, 46, 46, 0.08);
  box-shadow: var(--shadow);
}

.event-post-card h3 {
  margin: 0 0 10px;
}

.event-post-card .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(122, 46, 46, 0.08);
  border-radius: 16px;
  background: #fff;
}

.admin-item p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.admin-stack {
  display: grid;
  gap: 16px;
}

.admin-section {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(122, 46, 46, 0.08);
  box-shadow: var(--shadow);
}

.table-list {
  display: grid;
  gap: 14px;
}

@media (max-width: 960px) {
  .executive-grid,
  .admin-grid,
  .admin-shell,
  .event-post-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}
