@charset "utf-8";
/* =========================================================
   사단법인 경기동학민회 - 공통 스타일
   색상은 로고(명함)에서 추출
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Serif+KR:wght@600;700;900&display=swap");

:root {
  --blue: #2741aa;        /* 로고 청색 */
  --blue-dark: #1b2e7a;
  --teal: #006e6e;        /* 로고 청록 */
  --magenta: #a00064;     /* 로고 자주 */
  --gold: #cbbb8e;        /* 명함 금색 */
  --ink: #222;
  --muted: #666;
  --line: #e2e2e2;
  --bg-soft: #f6f5f1;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 상단 유틸바 ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar .util a { margin-left: 14px; }
.topbar .util a:hover { color: var(--blue); }

/* ---------- 헤더 ---------- */
.header-main .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 62px; width: auto; }
.logo .logo-txt { font-size: 13px; color: var(--muted); line-height: 1.3; border-left: 1px solid var(--line); padding-left: 12px; }
.logo .logo-txt b { display: block; color: var(--ink); font-size: 15px; }
.search { display: flex; border: 2px solid var(--blue); border-radius: 20px; overflow: hidden; }
.search input { border: 0; padding: 6px 14px; width: 210px; font: inherit; font-size: 14px; outline: none; }
.search button { padding: 0 14px; color: var(--blue); font-weight: 700; }

/* ---------- GNB ---------- */
.gnb { background: var(--blue); position: relative; z-index: 50; }
.gnb > .wrap > ul { display: flex; }
.gnb > .wrap > ul > li { position: relative; flex: 1 1 auto; text-align: center; }
.gnb > .wrap > ul > li > a {
  display: block; color: #fff; font-weight: 700; font-size: 16px; line-height: 54px; padding: 0 8px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.gnb .sub { min-width: 190px; }
.gnb > .wrap > ul > li:hover > a,
.gnb > .wrap > ul > li.on > a { border-bottom-color: var(--gold); background: var(--blue-dark); }
.gnb .sub {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 8px 18px rgba(0,0,0,.08);
  padding: 8px 0;
}
.gnb li:hover > .sub, .gnb li:focus-within > .sub { display: block; }
.gnb .sub a { display: block; padding: 7px 10px; font-size: 15px; color: #444; }
.gnb .sub a:hover { color: var(--blue); background: var(--bg-soft); }
.menu-btn { display: none; color: var(--blue); font-size: 28px; line-height: 1; }

/* ---------- 메인 슬라이더 ---------- */
.hero { position: relative; overflow: hidden; background: #0f1a45; }
.hero .slide {
  display: none; min-height: 470px; position: relative;
  background-size: cover; background-position: center;
}
.hero .slide.on { display: block; animation: fade .7s; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.hero .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,26,69,.92) 0%, rgba(15,26,69,.7) 45%, rgba(15,26,69,.15) 100%); }
.hero .slide .wrap { position: relative; display: flex; align-items: center; min-height: 470px; gap: 40px; }
.hero .copy { color: #fff; flex: 1; }
.hero .copy .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .05em; margin-bottom: 10px; }
.hero .copy h2 { font-family: "Noto Serif KR", serif; font-size: 44px; line-height: 1.3; margin-bottom: 16px; }
.hero .copy p { font-size: 17px; opacity: .9; max-width: 560px; }
.hero .copy .btn { margin-top: 26px; }
.hero .poster { width: 300px; flex: none; box-shadow: 0 12px 30px rgba(0,0,0,.4); border: 4px solid #fff; }
.hero .ctrl { position: absolute; bottom: 22px; left: 0; right: 0; }
.hero .ctrl .wrap { display: flex; gap: 8px; }
.hero .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero .dot.on { background: var(--gold); width: 32px; border-radius: 6px; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 24px; font-weight: 700; font-size: 15px; }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: #fff; }
.btn-line { border: 1px solid var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }

/* ---------- 퀵링크 ---------- */
.quick { border-bottom: 1px solid var(--line); }
.quick ul { display: grid; grid-template-columns: repeat(6, 1fr); }
.quick li a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 6px; font-weight: 500; font-size: 15px; text-align: center; }
.quick li a:hover { color: var(--blue); }
.quick .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.quick .ico svg { width: 30px; height: 30px; }
.quick li:nth-child(3n+1) .ico { background: var(--blue); }
.quick li:nth-child(3n+2) .ico { background: var(--teal); }
.quick li:nth-child(3n+3) .ico { background: var(--magenta); }

/* ---------- 메인 섹션 ---------- */
.sec { padding: 56px 0; }
.sec.soft { background: var(--bg-soft); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.sec-head h3 { font-size: 22px; }
.sec-head h3::before { content: ""; display: inline-block; width: 6px; height: 20px; background: var(--magenta); margin-right: 10px; vertical-align: -2px; }
.sec-head .more { font-size: 14px; color: var(--muted); }
.sec-head .more:hover { color: var(--blue); }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }

.tabs { display: flex; gap: 4px; }
.tabs button { padding: 4px 14px; font-size: 15px; color: var(--muted); border-radius: 14px; }
.tabs button.on { background: var(--blue); color: #fff; }

.post-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.post-list li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list li a:hover { color: var(--blue); text-decoration: underline; }
.post-list .date { color: #999; font-size: 14px; flex: none; }
.empty { padding: 40px 0; text-align: center; color: #999; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; }
.gallery .thumb { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .cap { font-size: 14px; padding: 8px 2px 0; line-height: 1.45; }
.gallery .cap span { display: block; color: #999; font-size: 13px; }

/* 소개 배너 (메인) */
.intro-band { background: var(--blue); color: #fff; }
.intro-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.intro-band h3 { font-family: "Noto Serif KR", serif; font-size: 30px; line-height: 1.4; margin-bottom: 14px; }
.intro-band .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-band .values div { background: rgba(255,255,255,.08); border-top: 3px solid var(--gold); padding: 18px 14px; }
.intro-band .values b { display: block; font-size: 20px; font-family: "Noto Serif KR", serif; color: var(--gold); }
.intro-band .values span { font-size: 14px; opacity: .85; }

/* 숫자 카드 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div { background: #fff; border: 1px solid var(--line); padding: 22px 18px; text-align: center; }
.stats b { display: block; font-size: 32px; color: var(--blue); font-weight: 900; }
.stats span { font-size: 14px; color: var(--muted); }

/* 관련기관 배너 */
.banners { border-top: 1px solid var(--line); padding: 22px 0; }
.banners ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.banners a { display: block; border: 1px solid var(--line); padding: 10px 18px; font-size: 14px; color: #555; border-radius: 4px; }
.banners a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 푸터 ---------- */
.footer { background: #1d2230; color: #b8bcc8; font-size: 14px; }
.footer .links { border-bottom: 1px solid #333949; }
.footer .links .wrap { display: flex; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.footer .links a { color: #e5e7ee; }
.footer .links a:hover { color: var(--gold); }
.footer .info .wrap { display: flex; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 36px; }
.footer .info img { height: 58px; width: auto; flex: none; }
.footer .info p { line-height: 1.9; }
.footer .copy { color: #7d8293; margin-top: 8px; }

/* ---------- 서브페이지 ---------- */
.sub-visual {
  background: linear-gradient(rgba(20,30,80,.72), rgba(20,30,80,.72)), url("../img/photo/painting-sainyeocheon.jpg") center/cover;
  color: #fff; text-align: center; padding: 56px 0 50px;
}
.sub-visual h2 { font-family: "Noto Serif KR", serif; font-size: 34px; }
.sub-visual p { color: var(--gold); margin-top: 6px; }
.sub-nav { border-bottom: 1px solid var(--line); background: #fff; }
.sub-nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
.sub-nav a { display: block; padding: 14px 22px; font-weight: 500; color: #555; border-bottom: 3px solid transparent; }
.sub-nav a:hover { color: var(--blue); }
.sub-nav a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }

.page { padding-top: 40px; padding-bottom: 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 36px; }
.page-head h3 { font-size: 30px; }
.crumb { font-size: 13px; color: #999; }
.crumb span + span::before { content: "›"; margin: 0 7px; }

/* 본문 타이포 */
.content h4 { font-size: 22px; margin: 40px 0 14px; color: var(--blue); }
.content h4:first-child { margin-top: 0; }
.content h5 { font-size: 18px; margin: 26px 0 8px; }
.content p { margin-bottom: 14px; }
.content .lead { font-size: 18px; color: #333; }
.content .source { font-size: 13px; color: #999; text-align: right; }
.content ul.dot li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.content ul.dot li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; background: var(--magenta); border-radius: 50%; }
.content ol.num { counter-reset: n; }
.content ol.num li { counter-increment: n; position: relative; padding-left: 34px; margin-bottom: 10px; }
.content ol.num li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; display: grid; place-items: center; }
.box { background: var(--bg-soft); border-left: 4px solid var(--gold); padding: 20px 24px; margin: 18px 0; }
.quote { font-family: "Noto Serif KR", serif; font-size: 26px; line-height: 1.6; color: var(--blue); text-align: center; padding: 30px 10px; }
.quote cite { display: block; font-size: 16px; color: var(--muted); font-style: normal; margin-top: 8px; }

.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0; }
.figs.three { grid-template-columns: repeat(3, 1fr); }
.figs figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eee; }
.figs figcaption, figure.single figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; text-align: center; }
figure.single { margin: 20px 0; }

table.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; margin: 12px 0 20px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl th { background: var(--bg-soft); width: 160px; font-weight: 700; }
.tbl thead th { width: auto; text-align: center; }

/* 연혁 */
.timeline { border-left: 2px solid var(--line); margin-left: 70px; }
.timeline .yr { position: relative; padding: 0 0 30px 34px; }
.timeline .yr > b { position: absolute; left: -84px; top: -4px; font-size: 24px; color: var(--blue); font-weight: 900; }
.timeline .yr::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--magenta); }
.timeline .yr li { margin-bottom: 6px; }

/* 조직도 */
.org { text-align: center; }
.org .node { display: inline-block; padding: 12px 26px; border-radius: 6px; font-weight: 700; background: #fff; border: 2px solid var(--blue); color: var(--blue); min-width: 160px; }
.org .node.main { background: var(--blue); color: #fff; }
.org .vline { width: 2px; height: 26px; background: #bbb; margin: 0 auto; }
.org .row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.org .row .node { border-color: var(--teal); color: var(--teal); }
.org .row.committee .node { border-color: var(--magenta); color: var(--magenta); font-size: 15px; }

/* 과제 카드 */
.task-group { margin-bottom: 30px; }
.task-group .tag { display: inline-block; padding: 3px 14px; border-radius: 14px; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.task { border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 12px; }
.task h5 { margin: 0 0 6px; }

/* 게시판 */
.board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.board-top form { display: flex; gap: 6px; }
.board-top input { border: 1px solid #ccc; padding: 6px 10px; font: inherit; font-size: 14px; }
.board-top button { background: var(--ink); color: #fff; padding: 0 14px; }
table.board { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.board th, .board td { border-bottom: 1px solid var(--line); padding: 13px 8px; text-align: center; }
.board th { background: var(--bg-soft); }
.board td.tit { text-align: left; }
.board td.tit a:hover { color: var(--blue); text-decoration: underline; }
.board .badge { display: inline-block; font-size: 12px; background: var(--magenta); color: #fff; padding: 0 8px; border-radius: 10px; margin-right: 6px; }
.post-view .head { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 6px; }
.post-view .head h4 { font-size: 22px; color: var(--ink); margin: 0 0 4px; }
.post-view .meta { font-size: 14px; color: #999; }
.post-view .body { padding: 30px 6px; min-height: 200px; border-bottom: 1px solid var(--line); }
.post-view .body img { margin: 10px 0; }
.post-view .foot { text-align: center; padding: 24px 0; }
.notice-box { border: 1px dashed #bbb; background: #fffdf5; padding: 14px 18px; font-size: 14px; color: #6b5a1e; margin-bottom: 24px; }

a.node:hover { background: var(--bg-soft); }
.content h4[id] { scroll-margin-top: 20px; }
.content sup { font-size: 11px; color: var(--magenta); }

/* 문의 양식 */
.contact-form { border: 1px solid var(--line); padding: 24px; margin-bottom: 30px; background: #fff; }
.contact-form .f-row { margin-bottom: 14px; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 15px; }
.contact-form label em { color: var(--magenta); font-style: normal; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid #ccc; padding: 9px 12px; font: inherit; font-size: 15px; border-radius: 4px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.contact-form .agree label { font-weight: 400; font-size: 14px; color: #555; }
.contact-form button { font-size: 16px; }

/* 메인: 분과·지역 카드 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards.six { grid-template-columns: repeat(6, 1fr); }
.cards a { display: block; border: 1px solid var(--line); background: #fff; padding: 18px 16px; border-top: 3px solid var(--blue); }
.cards a:hover { border-top-color: var(--magenta); }
.cards b { display: block; font-size: 16px; margin-bottom: 4px; }
.cards span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }

.map-box { aspect-ratio: 16/7; background: #e9ecf3; display: grid; place-items: center; color: #777; border: 1px solid var(--line); margin-bottom: 18px; text-align: center; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .gnb > .wrap > ul > li > a { font-size: 14px; padding: 0 4px; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.six { grid-template-columns: repeat(3, 1fr); }
  .hero .copy h2 { font-size: 34px; }
  .hero .poster { width: 230px; }
  .two-col, .intro-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .search, .logo .logo-txt, .topbar .wrap > span { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .topbar .util a { margin-left: 12px; }
  .header-main .wrap { height: 72px; }
  .logo img { height: 48px; }
  .menu-btn { display: block; }
  .gnb { display: none; }
  .gnb.open { display: block; }
  .gnb > .wrap { padding: 0; }
  .gnb > .wrap > ul { flex-direction: column; }
  .gnb > .wrap > ul > li { text-align: left; }
  .gnb > .wrap > ul > li > a { padding: 0 16px; line-height: 48px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .gnb .sub { display: block; position: static; box-shadow: none; border: 0; padding: 4px 0 8px; background: var(--blue-dark); }
  .gnb .sub a { color: #dfe4f7; padding: 6px 30px; }
  .gnb .sub a:hover { background: transparent; color: #fff; }
  .hero .slide, .hero .slide .wrap { min-height: 400px; }
  .hero .poster { display: none; }
  .hero .copy h2 { font-size: 28px; }
  .quick ul { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .figs.three { grid-template-columns: repeat(2, 1fr); }
  .footer .info .wrap { flex-direction: column; gap: 16px; }
  .footer .links .wrap { flex-wrap: wrap; gap: 8px 18px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page-head h3 { font-size: 24px; }
  .intro-band .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .figs, .figs.three { grid-template-columns: 1fr; }
  .cards, .cards.six { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 16px; }
  .sub-nav a { padding: 10px 12px; font-size: 14px; }
  .board .col-hide { display: none; }
  .tbl th { width: 96px; }
  .timeline { margin-left: 8px; }
  .timeline .yr > b { position: static; display: block; margin-bottom: 6px; font-size: 20px; }
  .quote { font-size: 20px; }
}
