/* 덕화장학회 공통 스타일 (토큰 · 헤더 · 푸터 · 홈 섹션) */
:root {
  --ink: #1c2420;
  --ink-2: #4a544f;
  --ink-3: #7c8580;
  --line: #e4e1da;
  --paper: #faf8f4;
  --white: #ffffff;
  --green: #234a3e;
  --green-2: #2f5f50;
  --green-soft: #e8efe9;
  --accent: #d8692a;
  --accent-soft: #fbeee5;
  --radius: 16px;
  --wrap: 1200px;
  --serif: "Noto Serif KR", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.65; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.35; font-weight: 700; margin-top: 8px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.2; letter-spacing: .04em; }
.logo-text strong { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.gnb { display: flex; gap: 8px; margin-left: auto; }
.gnb > li { position: relative; }
.gnb > li > a { display: block; padding: 26px 16px; font-weight: 600; font-size: 17px; }
.gnb > li:hover > a { color: var(--green-2); }
.sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 180px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(28,36,32,.10); opacity: 0; visibility: hidden; transition: .18s; }
.gnb > li:hover .sub, .gnb > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.sub a:hover { background: var(--green-soft); color: var(--green); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: .18s; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c25a1f; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(255,255,255,.08), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(216,105,42,.18), transparent 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 120px; }
.hero-since { font-family: var(--serif); color: #f3b58d; font-size: 18px; letter-spacing: .04em; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); line-height: 1.28; font-weight: 700; margin: 16px 0 24px; }
.hero h1 em { font-style: normal; color: #f3b58d; }
.hero p { font-size: 19px; color: rgba(255,255,255,.82); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.notice-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.notice-card h3 { font-size: 23px; line-height: 1.4; margin: 14px 0 20px; }
.notice-card dl { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; font-size: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-card dt { color: var(--ink-3); }
.notice-card dd { font-weight: 600; }
.notice-card .more { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-weight: 700; color: var(--green-2); }

/* ---------- Quick links ---------- */
.quick { margin-top: -56px; position: relative; z-index: 2; }
.quick ul { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(28,36,32,.08); overflow: hidden; }
.quick li + li { border-left: 1px solid var(--line); }
.quick a { display: flex; align-items: center; gap: 16px; padding: 28px 28px; transition: .18s; }
.quick a:hover { background: var(--green-soft); }
.quick .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.quick a:hover .ico { background: var(--green); color: #fff; }
.quick strong { display: block; font-size: 18px; }
.quick span { font-size: 14px; color: var(--ink-3); }

/* ---------- Stats ---------- */
.section { padding: 112px 0; }
.stats-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.stats-head p { color: var(--ink-2); max-width: 440px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.stat .label { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.stat .num { font-family: var(--serif); font-size: clamp(36px, 4vw, 48px); font-weight: 700; color: var(--green); line-height: 1.2; margin-top: 10px; }
.stat .num small { font-size: .45em; font-family: "Pretendard Variable", sans-serif; color: var(--ink-2); margin-left: 4px; }
.stat .desc { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 16px; text-align: right; }

/* ---------- Business ---------- */
.biz { background: var(--white); }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.biz-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; transition: .2s; }
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(28,36,32,.10); }
.ph { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: rgba(255,255,255,.85); position: relative; }
.biz-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.biz-card .num { font-size: 13px; font-weight: 700; color: var(--accent); }
.biz-card h3 { font-size: 21px; margin: 6px 0 10px; }
.biz-card p { font-size: 15px; color: var(--ink-2); flex: 1; }
.biz-card .link { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--green-2); }

/* ---------- Board ---------- */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.board { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.board-head h3 { font-size: 21px; }
.board-head a { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.board li a { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.board li:last-child a { border-bottom: 0; }
.board li a:hover .t { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.board .t { flex: 1; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .d { font-size: 14px; color: var(--ink-3); flex: none; }
.tag { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tag.file { background: var(--green-soft); color: var(--green); }

/* ---------- News ---------- */
.news-head { display: flex; justify-content: space-between; align-items: end; }
.news-head a { font-weight: 700; color: var(--green-2); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.news-card .ph { border-radius: var(--radius); aspect-ratio: 16/10; }
.news-card .meta { font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.news-card h3 { font-size: 19px; line-height: 1.45; margin-top: 4px; }
.news-card:hover h3 { color: var(--green-2); }

/* ---------- Support CTA ---------- */
.support { background: var(--accent-soft); }
.support .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.support p { color: var(--ink-2); margin-top: 16px; }
.account { background: var(--white); border-radius: 20px; padding: 32px; }
.account .bank { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.account .no { font-size: 28px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.account .holder { color: var(--ink-2); }
.copy { margin-top: 20px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.copy:hover { background: var(--green-2); }

/* ---------- Footer ---------- */
.footer { background: #17201c; color: rgba(255,255,255,.65); padding: 56px 0 40px; font-size: 15px; }
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .name { font-family: var(--serif); font-size: 21px; color: #fff; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a:hover { color: #fff; }
.footer nav a.strong { color: #fff; font-weight: 700; }
.footer address { font-style: normal; margin-top: 24px; line-height: 1.9; }
.footer address span + span::before { content: "|"; margin: 0 12px; opacity: .3; }
.footer .copy-r { margin-top: 12px; font-size: 13px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gnb, .header .btn-accent { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 104px; gap: 40px; }
  .quick ul, .stats, .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .quick li:nth-child(3) { border-left: 0; }
  .quick li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .support .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header .wrap { height: 64px; }
  .section { padding: 72px 0; }
  .hero p { font-size: 17px; }
  .notice-card { padding: 24px; }
  .quick a { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .stats-head, .news-head { flex-direction: column; align-items: flex-start; }
  .boards, .news { grid-template-columns: 1fr; }
  .board { padding: 24px 20px; }
  .stat { padding: 24px 20px; }
  .biz-grid { grid-template-columns: 1fr; }
  .account .no { font-size: 23px; }
  .footer address span { display: block; }
  .footer address span + span::before { content: none; }
}

/* ---------- Header extras (active menu · mobile drawer) ---------- */
.gnb > li.on > a { color: var(--green-2); box-shadow: inset 0 -3px 0 var(--accent); }
.drawer { border-top: 1px solid var(--line); background: var(--white); padding: 8px 16px 24px; max-height: calc(100vh - 64px); overflow-y: auto; }
.drawer-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-group strong { display: block; font-size: 17px; margin-bottom: 8px; }
.drawer-group a { display: inline-block; padding: 6px 14px 6px 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 1025px) { .drawer { display: none; } }

/* 내용이 짧은 페이지에서도 푸터를 화면 하단에 고정 */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* 실제 사진이 들어간 썸네일 */
.ph.has-img { background: #e9ece9; overflow: hidden; }
.ph.has-img::after { content: none; }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.muted { color: var(--ink-3); font-size: 15px; }
.footer .admin-link { margin-left: 12px; opacity: .7; text-decoration: underline; text-underline-offset: 3px; }
.footer .admin-link:hover { opacity: 1; }

/* 상단 관리자 버튼 */
.admin-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: .15s; margin-left: -28px; }
.admin-btn:hover { border-color: var(--green-2); color: var(--green-2); }
.admin-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.admin-btn.on:hover { background: var(--green-2); color: #fff; }
.drawer-admin { display: block; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 700; }
@media (max-width: 1024px) { .header .admin-btn { margin-left: auto; } .header .admin-btn + .menu-toggle { margin-left: 4px; } }
@media (max-width: 720px) { .header .admin-btn:not(.on) { padding: 0 10px; font-size: 0; gap: 0; } .header .admin-btn.on { font-size: 13px; padding: 0 12px; height: 36px; } }

/* 메인 사업 카드 일러스트 */
.ph.illust { background: none; overflow: hidden; }
.ph.illust img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.biz-card:hover .ph.illust img { transform: scale(1.04); }
