/* =========================================================
   대한비뇨의학과의사회 — v2 (메가메뉴 / 풀스크린 히어로 / 풀폭 서브)
   ========================================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,500;0,600;1,400&display=swap');

:root {
  --navy:#0b2a45; --navy-2:#103a5e; --navy-deep:#071d31;
  --teal:#0e9aa8; --teal-2:#16b8c4; --cyan:#2bd0d9;
  --ink:#16242f; --muted:#5d7080; --line:#e3eaf0;
  --bg:#ffffff; --bg-soft:#f3f7fa; --bg-soft-2:#eaf1f6; --gold:#c7a35a;
  --radius:14px;
  --shadow-sm:0 1px 2px rgba(11,42,69,.06),0 2px 8px rgba(11,42,69,.05);
  --shadow-md:0 8px 30px rgba(11,42,69,.10);
  --shadow-lg:0 20px 60px rgba(11,42,69,.16);
  --maxw:1280px;
  --header-h:127px;
  --sans:"Pretendard","Pretendard Variable",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --serif:"Spectral","Pretendard",serif;
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:140px; }
body { font-family:var(--sans); color:var(--ink); background:var(--bg); line-height:1.65; -webkit-font-smoothing:antialiased; letter-spacing:-.01em; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
ul { list-style:none; }

.wrap { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow { font-family:var(--serif); font-style:italic; font-size:1rem; letter-spacing:.02em; color:var(--teal); }
.section-title { font-size:clamp(1.55rem,3vw,2.15rem); font-weight:700; letter-spacing:-.03em; color:var(--navy); line-height:1.25; }

.btn { display:inline-flex; align-items:center; gap:.5em; padding:.8em 1.5em; border-radius:999px; font-weight:600; font-size:.94rem; border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s, color .2s; cursor:pointer; }
.btn-primary { background:var(--navy); color:#fff; }
.btn-primary:hover { background:var(--navy-2); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-teal { background:var(--teal); color:#fff; }
.btn-teal:hover { background:var(--teal-2); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost { background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--teal); color:var(--teal); }

/* =========================================================
   헤더 + 메가 메뉴
   ========================================================= */
.site-header { position:sticky; top:0; z-index:60; background:#fff; box-shadow:0 1px 0 var(--line); }
.head-top { display:flex; align-items:center; justify-content:space-between; height:72px; max-width:none; padding:0 48px; }

.brand { display:flex; align-items:center; gap:13px; }
.brand .mark { width:46px; height:46px; border-radius:12px; background:linear-gradient(135deg,var(--navy) 0%,var(--teal) 130%); display:grid; place-items:center; flex:none; box-shadow:var(--shadow-sm); }
.brand .mark svg { width:27px; height:27px; }
.brand .b-text strong { display:block; font-size:1.18rem; font-weight:800; color:var(--navy); letter-spacing:-.04em; line-height:1.1; }
.brand .b-text span { display:block; font-family:var(--serif); font-size:.72rem; letter-spacing:.13em; color:var(--teal); text-transform:uppercase; font-weight:500; }

.head-util { display:flex; align-items:center; gap:6px; }
.head-util a { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; color:var(--muted); font-size:.92rem; font-weight:600; transition:.2s; }
.head-util a:hover { color:var(--navy); background:var(--bg-soft); }
.head-util a svg { width:17px; height:17px; }

/* 모바일 유틸(햄버거 메뉴) — 데스크탑에선 숨김 */
.m-util, .m-util-foot { display:none; }

/* GNB 바 */
.gnb-bar { position:relative; border-top:1px solid var(--line); }
.gnb { display:grid; grid-template-columns:repeat(6,1fr); max-width:none; padding:0 48px; }
.gnb > li > a { display:block; text-align:center; line-height:54px; font-weight:700; font-size:1.08rem; color:var(--navy); position:relative; transition:color .2s; }
.gnb > li > a::after { content:""; position:absolute; left:24%; right:24%; bottom:0; height:3px; background:var(--teal); transform:scaleX(0); transition:transform .25s; }
.gnb > li > a:hover::after, .gnb > li > a.active::after { transform:scaleX(1); }
.gnb > li > a:hover, .gnb > li > a.active { color:var(--teal); }

/* 메가 패널 */
.mega { position:absolute; left:0; top:100%; width:100%; background:rgba(255,255,255,.68); backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4); border-top:1px solid rgba(227,234,240,.7); box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .22s, transform .22s, visibility .22s; z-index:61; }
.gnb-bar:hover .mega, .gnb-bar:focus-within .mega { opacity:1; visibility:visible; transform:none; }
.mega-inner { max-width:none; margin:0; padding:34px 48px 40px; display:grid; grid-template-columns:repeat(6,1fr); }
.mega-col { padding:0 12px; text-align:center; }
.mega-col .mh { display:none; }
.mega-col li a { display:block; padding:9px 8px; font-size:.95rem; color:#2c3e4a; font-weight:500; border-radius:7px; transition:.18s; }
.mega-col li a:hover { background:rgba(243,247,250,.85); color:var(--navy); }

/* 메가 스크림(딤) */
.mega-scrim { position:fixed; inset:0; background:rgba(7,29,49,.42); opacity:0; visibility:hidden; transition:.25s; z-index:50; }
body.mega-open .mega-scrim { opacity:1; visibility:visible; }

/* 모바일 토글 */
.nav-toggle { display:none; position:absolute; right:18px; top:14px; width:44px; height:44px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; place-items:center; z-index:62; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:20px; height:2px; background:var(--navy); position:relative; transition:.25s; }
.nav-toggle span::before { position:absolute; top:-6px; }
.nav-toggle span::after { position:absolute; top:6px; }

/* =========================================================
   메인 히어로 (풀스크린 캐러셀)
   ========================================================= */
.hero { position:relative; width:100%; height:clamp(460px, 76vh, 760px); color:#fff; overflow:hidden; background:var(--navy-deep); }
.hero .slide { position:absolute; inset:0; background-size:cover; background-position:center; display:flex; align-items:center; opacity:0; visibility:hidden; transition:opacity .9s ease; z-index:1; }
.hero .slide.is-active { opacity:1; visibility:visible; z-index:2; }
.slide-shade { position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(5,18,32,.82) 0%,rgba(5,18,32,.5) 45%,rgba(5,18,32,.2) 100%); }
.slide-inner { position:relative; z-index:2; width:100%; }
.slide.is-active .slide-inner { animation:slideUp .8s ease both; }
@keyframes slideUp { from{opacity:0; transform:translateY(28px);} to{opacity:1; transform:none;} }
.hero .eyebrow { color:#7fe3ec; }
.hero h1 { font-size:clamp(2.2rem,5vw,3.6rem); font-weight:800; letter-spacing:-.045em; line-height:1.16; margin:14px 0 18px; }
.hero h1 span { color:#7fe3ec; }
.hero .lead { font-size:1.08rem; color:#e3eef5; max-width:600px; }
.hero-btns { display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.btn-ghost.light { color:#fff; border-color:rgba(255,255,255,.5); }
.btn-ghost.light:hover { border-color:#7fe3ec; color:#7fe3ec; }
.ph-note { position:absolute; top:16px; right:20px; z-index:5; font-size:.74rem; color:rgba(255,255,255,.8); background:rgba(0,0,0,.3); padding:5px 12px; border-radius:999px; }

/* 화살표 / 점 */
.car-arrow { position:absolute; top:46%; transform:translateY(-50%); z-index:7; width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.45); background:rgba(8,24,40,.32); color:#fff; font-size:1.7rem; line-height:1; cursor:pointer; display:grid; place-items:center; transition:.2s; backdrop-filter:blur(2px); }
.car-arrow:hover { background:var(--teal); border-color:var(--teal); }
.car-arrow.prev { left:28px; } .car-arrow.next { right:28px; }
.car-dots { position:absolute; left:0; right:0; bottom:96px; z-index:7; display:flex; gap:10px; justify-content:center; }
.car-dots button { width:11px; height:11px; border-radius:50%; border:none; cursor:pointer; background:rgba(255,255,255,.45); padding:0; transition:.25s; }
.car-dots button.on { background:#fff; width:30px; border-radius:6px; }

/* 히어로 하단 퀵링크(오버레이 카드) */
.hero-quick { position:absolute; left:0; right:0; bottom:0; z-index:6; }
.hero-quick .wrap { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(255,255,255,.12); border-radius:16px 16px 0 0; overflow:hidden; backdrop-filter:blur(3px); }
.hq { display:flex; flex-direction:column; align-items:center; gap:9px; padding:24px 12px 26px; background:rgba(11,42,69,.55); color:#fff; transition:.22s; }
.hq:hover { background:var(--teal); }
.hq svg { width:30px; height:30px; }
.hq strong { font-size:1.04rem; font-weight:700; }

/* 히어로 하단 퀵링크 카드 (v1 스타일 — 흰 카드 + 아이콘 + 제목/설명) */
.quicklinks { margin-top:-44px; position:relative; z-index:8; }
.quicklinks .wrap { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.ql { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; box-shadow:var(--shadow-md); transition:transform .25s, box-shadow .25s; }
.ql:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.ql .ic { width:46px; height:46px; flex:none; border-radius:12px; background:var(--bg-soft-2); color:var(--teal); display:grid; place-items:center; }
.ql .ic svg { width:24px; height:24px; }
.ql strong { display:block; color:var(--navy); font-size:1.02rem; }
.ql em { font-style:normal; font-size:.82rem; color:var(--muted); }
@media (max-width:1024px){ .quicklinks .wrap { grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ .quicklinks { margin-top:18px; } .quicklinks .wrap { grid-template-columns:1fr; } }

/* =========================================================
   메인 섹션
   ========================================================= */
.section { padding:84px 0; }
.section.soft { background:var(--bg-soft); }
.section-head { text-align:center; max-width:640px; margin:0 auto 48px; }
.section-head .section-title { margin-top:8px; }
.section-head p { color:var(--muted); margin-top:14px; }

.home-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:44px; align-items:start; }
.home-grid > * { min-width:0; }   /* 그리드 아이템이 콘텐츠보다 좁아질 수 있게 → 긴 제목 말줄임/패널 오버플로우 방지 */
.panel-head { display:flex; justify-content:space-between; align-items:baseline; border-bottom:2px solid var(--navy); padding-bottom:14px; margin-bottom:8px; }
.panel-head h3 { font-size:1.35rem; color:var(--navy); font-weight:800; }
.panel-head .more { font-size:.85rem; color:var(--muted); }
.panel-head .more:hover { color:var(--teal); }
.news li a { display:flex; align-items:center; gap:12px; padding:16px 4px; border-bottom:1px solid var(--line); }
.news li:last-child a { border-bottom:none; }
.news .tag { font-size:.72rem; font-weight:700; color:#fff; background:var(--teal); padding:3px 10px; border-radius:6px; flex:none; }
.news .tag.notice { background:var(--navy); }
.news .t { flex:1; min-width:0; color:var(--ink); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news li a:hover .t { color:var(--teal); }
.news .d { color:var(--muted); font-size:.83rem; flex:none; }
.news .cmt { flex:none; color:var(--teal); font-weight:700; font-size:.82rem; }
.news .vw { flex:none; color:var(--muted); font-size:.82rem; }
.sched li { display:flex; gap:16px; align-items:center; padding:15px 4px; border-bottom:1px solid var(--line); }
.sched li:last-child { border-bottom:none; }
/* 항목 전체를 링크로 감싼 경우(메인 학술 일정 → /event/view) */
.sched li > a { display:flex; gap:16px; align-items:center; flex:1; min-width:0; color:inherit; }
.sched li > a:hover .info strong { color:var(--teal); }
.sched li > a:hover .dt { background:#e7f6f8; }
.sched .dt { width:60px; flex:none; text-align:center; background:var(--bg-soft); border-radius:10px; padding:8px 0; transition:background .18s; }
.sched .dt b { display:block; font-family:var(--serif); font-size:1.4rem; color:var(--navy); line-height:1; }
.sched .dt i { font-style:normal; font-size:.7rem; color:var(--teal); font-weight:700; letter-spacing:.05em; }
.sched .info { min-width:0; }
.sched .info strong { display:block; color:var(--navy); font-size:1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sched .info em { display:block; font-style:normal; font-size:.85rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 지나간 행사 */
.sched li.is-past .dt { opacity:.6; }
.sched li.is-past .info strong { color:var(--muted); font-weight:600; }
.sched .ev-done { display:inline-block; margin-left:8px; padding:1px 7px; border:1px solid var(--line); border-radius:5px; background:var(--bg-soft); font-size:.68rem; font-weight:700; color:var(--muted); vertical-align:2px; }

.cards { display:grid; gap:24px; }
.cards.c4 { grid-template-columns:repeat(4,1fr); }
.cards.c3 { grid-template-columns:repeat(3,1fr); }
.cards.c2 { grid-template-columns:repeat(2,1fr); }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow-sm); transition:transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:#cfe1ea; }
.card .ic { width:52px; height:52px; border-radius:13px; display:grid; place-items:center; background:var(--bg-soft-2); color:var(--teal); margin-bottom:18px; }
.card .ic svg { width:26px; height:26px; }
.card h4 { font-size:1.12rem; color:var(--navy); font-weight:700; margin-bottom:8px; }
.card p { color:var(--muted); font-size:.92rem; }

.cta-band { background:linear-gradient(120deg,#0b2a45,#103a5e); color:#fff; }
.cta-band .wrap { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:56px 24px; flex-wrap:wrap; }
.cta-band h2 { font-size:clamp(1.4rem,2.6vw,1.9rem); font-weight:800; letter-spacing:-.03em; margin:6px 0 10px; }
.cta-band p { color:#cfe0ec; max-width:620px; }

/* =========================================================
   관련 기관·후원 배너 (가로 무한 흐름)
   ========================================================= */
.brand-strip { padding:30px 0; background:var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.bs-viewport { position:relative; overflow:hidden; }
.bs-track { display:flex; align-items:center; width:max-content; animation:bs-scroll var(--bs-duration,40s) linear infinite; will-change:transform; }
.bs-viewport:hover .bs-track { animation-play-state:paused; }
@keyframes bs-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

.bs-item { flex:none; display:grid; place-items:center; height:60px; margin-right:24px; padding:9px 20px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s, border-color .2s; }
.bs-item img { height:40px; width:auto; max-width:180px; object-fit:contain; display:block; }
a.bs-item:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:#cfe1ea; }

.bs-fade { position:absolute; top:0; bottom:0; width:80px; pointer-events:none; z-index:2; }
.bs-fade.left  { left:0;  background:linear-gradient(to right, var(--bg-soft), transparent); }
.bs-fade.right { right:0; background:linear-gradient(to left,  var(--bg-soft), transparent); }

@media (max-width:640px){
  .brand-strip { padding:22px 0; }
  .bs-item { height:50px; margin-right:16px; padding:7px 14px; }
  .bs-item img { height:32px; max-width:140px; }
  .bs-fade { width:48px; }
}

/* =========================================================
   서브 페이지 (좌측 사이드 없음 — 풀폭)
   ========================================================= */
.page-hero { background:linear-gradient(120deg,var(--navy-deep),var(--navy) 60%,var(--navy-2)); color:#fff; position:relative; overflow:hidden; padding:60px 0 54px; }
.page-hero::after { content:""; position:absolute; right:-120px; top:-80px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle at center,rgba(43,208,217,.28),transparent 70%); }
.page-hero .eyebrow { color:var(--cyan); font-size:1.05rem; }
.page-hero h1 { font-size:clamp(1.9rem,4vw,2.7rem); font-weight:800; letter-spacing:-.04em; margin-top:6px; }
.page-hero .crumb { margin-top:14px; font-size:.9rem; color:#a9c2d4; }
.page-hero .crumb a:hover { color:#fff; }

.subpage { max-width:var(--maxw); margin:0 auto; padding:0 24px 90px; }

/* 섹션 가로 탭 (좌측 메뉴 대체) */
.subtab { display:flex; flex-wrap:nowrap; gap:4px; margin:0 0 40px; border-bottom:1px solid var(--line); position:sticky; top:var(--header-h); background:#fff; z-index:20; padding-top:14px; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:none; -ms-overflow-style:none; }
.subtab::-webkit-scrollbar { display:none; height:0; }
.subtab a { padding:14px 20px; font-weight:600; font-size:1rem; color:var(--muted); border-bottom:3px solid transparent; margin-bottom:-1px; transition:.2s; white-space:nowrap; flex:none; }
.subtab a:hover { color:var(--navy); }
.subtab a.active { color:var(--navy); border-bottom-color:var(--teal); }

.subpage-pad { padding-top:52px; }

/* 콘텐츠 타이포 */
.content h2 { font-size:1.7rem; font-weight:800; color:var(--navy); letter-spacing:-.03em; margin-bottom:22px; position:relative; padding-left:18px; }
.content h2::before { content:""; position:absolute; left:0; top:5px; bottom:5px; width:5px; border-radius:3px; background:linear-gradient(var(--teal),var(--navy)); }
.content h3 { font-size:1.25rem; color:var(--navy); margin:30px 0 12px; font-weight:700; }
.content p { color:#3a4b58; margin-bottom:15px; font-size:1.05rem; }
.content p + h2 { margin-top:52px; }
.content > section { margin-bottom:8px; }

/* 위지윅 본문 정렬(Quill 클래스) — 인사말/게시글 공통 */
.ql-align-center { text-align:center; }
.ql-align-right { text-align:right; }
.ql-align-justify { text-align:justify; }

/* 인사말 본문(관리자 편집 내용) */
.greeting-body p { color:#3a4b58; margin-bottom:15px; font-size:1.05rem; line-height:1.9; }
.greeting-body ul { list-style:disc; padding-left:22px; margin-bottom:15px; }
.greeting-body ol { list-style:decimal; padding-left:22px; margin-bottom:15px; }
.greeting-body li { margin-bottom:6px; }
.greeting-body img { max-width:100%; height:auto; border-radius:10px; }
.greeting-body strong { font-weight:700; color:var(--navy); }
.greeting-body a { color:var(--teal); text-decoration:underline; }

.table { width:100%; border-collapse:collapse; font-size:1rem; margin:8px 0 24px; }
.table th, .table td { padding:15px 16px; border-bottom:1px solid var(--line); text-align:left; }
.table thead th { background:var(--navy); color:#fff; font-weight:600; }
.table thead th:first-child { border-top-left-radius:10px; }
.table thead th:last-child { border-top-right-radius:10px; }
.table tbody tr:hover { background:var(--bg-soft); }

.infobox { background:var(--bg-soft); border:1px solid var(--line); border-left:4px solid var(--teal); border-radius:10px; padding:20px 24px; margin:20px 0; }
.infobox h4 { color:var(--navy); margin-bottom:6px; font-size:1.08rem; }
.infobox p { margin:0; color:#3a4b58; font-size:1rem; }

.timeline { border-left:2px solid var(--line); margin-left:8px; padding-left:28px; }
.timeline li { position:relative; padding-bottom:28px; }
.timeline li::before { content:""; position:absolute; left:-36px; top:4px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--teal); }
.timeline .yr { font-family:var(--serif); font-size:1.32rem; color:var(--navy); font-weight:600; }
.timeline .ev { color:var(--muted); font-size:1.02rem; }

.people { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.person { text-align:center; }
.person .ava { width:104px; height:104px; margin:0 auto 14px; border-radius:50%; background:linear-gradient(135deg,var(--bg-soft-2),#d6e4ec); display:grid; place-items:center; color:var(--navy); font-size:1.7rem; font-weight:700; font-family:var(--serif); }
.person .role { font-size:.85rem; color:var(--teal); font-weight:600; }
.person .nm { font-size:1.1rem; color:var(--navy); font-weight:700; }
.person .aff { font-size:.9rem; color:var(--muted); }

/* 의사회 임원 — 회장 특별 카드 */
.off-head { display:flex; gap:30px; align-items:center; background:linear-gradient(120deg,var(--navy-deep),var(--navy) 58%,var(--navy-2)); color:#fff; border-radius:18px; padding:32px 36px; margin:6px 0 34px; box-shadow:var(--shadow-md); position:relative; overflow:hidden; }
.off-head::after { content:""; position:absolute; right:-110px; top:-90px; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle at center,rgba(43,208,217,.22),transparent 70%); }
.off-head-photo { width:158px; height:198px; flex:none; border-radius:14px; overflow:hidden; background:rgba(255,255,255,.12); display:grid; place-items:center; box-shadow:0 12px 32px rgba(0,0,0,.28); position:relative; z-index:1; }
.off-head-photo img { width:100%; height:100%; object-fit:cover; }
.off-head-photo .ph { font-family:var(--serif); font-size:3.4rem; color:rgba(255,255,255,.55); }
.off-head-info { position:relative; z-index:1; min-width:0; }
.off-head-badge { display:inline-block; background:var(--teal); color:#fff; font-size:.82rem; font-weight:700; padding:5px 15px; border-radius:999px; letter-spacing:.02em; }
.off-head .off-head-name { font-size:clamp(1.7rem,3vw,2.1rem); font-weight:800; letter-spacing:-.03em; margin:13px 0 9px; color:#fff; }
.off-head .off-head-hosp { font-size:1.08rem; color:#7fe3ec; font-weight:600; margin:0 0 12px; }
.off-head .off-head-line { font-size:.97rem; color:#cfe0ec; line-height:1.65; margin:0; }
.off-head .off-head-line.tel { margin-top:3px; }
.off-head .off-head-line.tel::before { content:"\260E  "; opacity:.8; }

/* 의사회 임원 — 일반 임원 그리드 */
.off-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:6px; }
.off-card { display:flex; gap:16px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s, border-color .2s; }
.off-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:#cfe1ea; }
.off-photo { width:86px; height:108px; flex:none; border-radius:10px; overflow:hidden; background:var(--bg-soft-2); display:grid; place-items:center; }
.off-photo img { width:100%; height:100%; object-fit:cover; }
.off-photo .ph { font-family:var(--serif); font-size:1.9rem; color:var(--navy); opacity:.45; }
.off-info { min-width:0; }
.off-card .off-pos { font-size:.82rem; color:var(--teal); font-weight:700; margin:0; }
.off-card .off-name { font-size:1.26rem; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin:2px 0 7px; }
.off-card .off-hosp { font-size:.95rem; color:var(--ink); font-weight:600; margin:0 0 6px; line-height:1.4; }
.off-card .off-addr { font-size:.85rem; color:var(--muted); line-height:1.5; margin:0; }
.off-card .off-tel { font-size:.85rem; color:var(--muted); margin:3px 0 0; }
.off-card .off-tel::before { content:"\260E  "; opacity:.7; }
@media (max-width:1024px){ .off-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px){
  .off-grid { grid-template-columns:1fr; }
  .off-head { flex-direction:column; text-align:center; gap:20px; padding:26px 22px; }
  .off-head-photo { width:140px; height:176px; }
}

/* 의사회 임원 — 기수 라벨 */
.content .off-term-label { display:inline-block; background:linear-gradient(120deg,var(--navy),var(--navy-2)); color:#fff; font-weight:700; font-size:.95rem; padding:8px 18px; border-radius:999px; margin:0 0 22px; letter-spacing:.01em; }

/* 역대 회장단 (회장 명단) */
.pres-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:6px; }
.pres-card { text-align:center; background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 18px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s, border-color .2s; }
.pres-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:#cfe1ea; }
.pres-photo { width:120px; height:120px; margin:0 auto 16px; border-radius:50%; overflow:hidden; background:var(--bg-soft-2); display:grid; place-items:center; border:3px solid #fff; box-shadow:0 6px 18px rgba(11,42,69,.12); }
.pres-photo img { width:100%; height:100%; object-fit:cover; }
.pres-photo .ph { font-family:var(--serif); font-size:2.4rem; color:var(--navy); opacity:.45; }
.pres-card .pres-term { display:inline-block; background:var(--navy); color:#fff; font-size:.78rem; font-weight:700; padding:4px 12px; border-radius:999px; margin:0 0 8px; }
.pres-card .pres-name { font-size:1.3rem; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin:0 0 6px; }
.pres-card .pres-hosp { font-size:.92rem; color:var(--ink); font-weight:600; margin:0 0 4px; line-height:1.4; }
.pres-card .pres-years { font-size:.88rem; color:var(--teal); font-weight:600; margin:0; }
@media (max-width:1024px){ .pres-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .pres-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .pres-grid { grid-template-columns:1fr; } }

/* 서브 — 단일 이미지 콘텐츠(임원/연혁 등 업로드 이미지) */
.doc-image { text-align:center; padding:10px 0 8px; }
.doc-image img { display:inline-block; max-width:1000px; width:100%; height:auto; border-radius:12px; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.doc-empty { text-align:center; color:var(--muted); font-size:1.05rem; padding:70px 0; background:var(--bg-soft); border:1px dashed var(--line); border-radius:14px; }

/* =========================================================
   병원 검색 (지역별 / 병·의원)
   ========================================================= */
.tac { text-align:center; }
.tal { text-align:left; }
/* 탭(지역별/병·의원) */
.hosp-subtabs { display:flex; gap:8px; margin:2px 0 14px; }
.hosp-subtabs a { padding:10px 20px; border:1px solid var(--line); border-radius:999px; font-weight:600; font-size:.95rem; color:var(--muted); transition:.2s; }
.hosp-subtabs a:hover { border-color:var(--teal); color:var(--teal); }
.hosp-subtabs a.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.hosp-note { color:var(--muted); font-size:.9rem; margin:0 0 18px; }
/* 검색 폼 */
.hosp-form { display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:18px; }
.hosp-form select { height:44px; padding:0 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-family:inherit; font-size:.95rem; color:var(--ink); cursor:pointer; min-width:130px; }
.hosp-form select:focus { outline:none; border-color:var(--teal); }
.hosp-search-box { display:flex; gap:8px; flex:1; min-width:240px; }
.hosp-search-box.wide { width:100%; }
.hosp-form input[type=text] { flex:1; height:44px; padding:0 14px; border:1px solid var(--line); border-radius:10px; font-family:inherit; font-size:.95rem; }
.hosp-form input[type=text]:focus { outline:none; border-color:var(--teal); }
.hosp-form button { height:44px; padding:0 24px; border:none; border-radius:10px; background:var(--navy); color:#fff; font-weight:700; font-size:.95rem; cursor:pointer; transition:.2s; flex:none; }
.hosp-form button:hover { background:var(--teal); }
/* 시도 버튼 */
.hosp-provinces { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.hosp-prov-btn { padding:9px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; font-family:inherit; font-size:.94rem; font-weight:600; color:var(--navy); cursor:pointer; transition:.18s; }
.hosp-prov-btn:hover { border-color:var(--teal); color:var(--teal); }
.hosp-prov-btn.on { background:var(--teal); border-color:var(--teal); color:#fff; }
/* 시군구 지도 */
.hosp-map { text-align:center; margin:6px 0 24px; padding:18px; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; }
.hosp-map-hint { color:var(--muted); font-size:.88rem; margin:0 0 12px; }
.hosp-map img { display:inline-block; max-width:360px; width:100%; height:auto; }
.hosp-map area { cursor:pointer; }
/* 결과 */
.hosp-results { margin-top:4px; }
.hosp-count { font-size:.95rem; color:var(--ink); margin:0 0 10px; }
.hosp-count strong { color:var(--teal); font-weight:800; font-size:1.1rem; }
.hosp-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.hosp-table { width:100%; border-collapse:collapse; font-size:.95rem; min-width:760px; }
.hosp-table thead th { background:var(--navy); color:#fff; font-weight:600; padding:13px 14px; white-space:nowrap; }
.hosp-table tbody td { padding:13px 14px; border-bottom:1px solid var(--line); color:#3a4b58; vertical-align:middle; }
.hosp-table tbody tr:last-child td { border-bottom:none; }
.hosp-table tbody tr:hover { background:var(--bg-soft); }
.hosp-table .hosp-name { font-weight:700; color:var(--navy); }
.hosp-link { display:inline-block; padding:5px 12px; border:1px solid var(--line); border-radius:999px; font-size:.85rem; font-weight:600; color:var(--teal); transition:.18s; }
.hosp-link:hover { border-color:var(--teal); background:var(--teal); color:#fff; }
.hosp-view { display:inline-grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--navy); cursor:pointer; transition:.18s; }
.hosp-view:hover { background:var(--navy); border-color:var(--navy); color:#fff; }
.hosp-view svg { display:block; }
.hosp-dash { color:#b7c4ce; }
.hosp-empty { text-align:center; color:var(--muted); padding:48px 0 !important; }
/* 페이지네이션 */
.hosp-pager { display:flex; justify-content:center; gap:6px; margin-top:22px; flex-wrap:wrap; }
.hosp-pager .pg_page { min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--muted); font-size:.92rem; font-weight:600; cursor:pointer; transition:.15s; }
.hosp-pager .pg_page:hover { border-color:var(--teal); color:var(--teal); }
.hosp-pager .pg_page.on { background:var(--navy); border-color:var(--navy); color:#fff; }
/* 상세 팝업 */
.hosp-pop { position:fixed; inset:0; z-index:120; background:rgba(7,29,49,.55); display:none; align-items:center; justify-content:center; padding:20px; }
.hosp-pop-box { background:#fff; border-radius:16px; width:100%; max-width:860px; max-height:86vh; overflow:auto; box-shadow:var(--shadow-lg); }
.hosp-pop-head { display:flex; align-items:center; justify-content:space-between; padding:20px 26px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; }
.hosp-pop-head h4 { font-size:1.18rem; color:var(--navy); font-weight:800; }
.hosp-pop-x { width:36px; height:36px; border:none; background:var(--bg-soft); border-radius:9px; font-size:1.4rem; line-height:1; color:var(--muted); cursor:pointer; transition:.18s; }
.hosp-pop-x:hover { background:var(--navy); color:#fff; }
.hosp-pop-body { padding:24px 26px; }
.hosp-pop-foot { padding:0 26px 24px; text-align:center; }
.hosp-detail { width:100%; border-collapse:collapse; font-size:.95rem; }
.hosp-detail.mt { margin-top:18px; }
.hosp-detail th { background:var(--bg-soft-2); color:var(--navy); font-weight:700; padding:12px 10px; border:1px solid var(--line); }
.hosp-detail td { padding:12px 10px; border:1px solid var(--line); color:#3a4b58; }
@media (max-width:760px){
  .hosp-form select, .hosp-search-box { min-width:0; width:100%; }
  .hosp-map img { max-width:300px; }
}

/* 신문고 작성 폼 */
.voice-form { margin-top:10px; max-width:760px; }
.vf-row { display:flex; gap:18px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line); }
.vf-label { width:96px; flex:none; padding-top:11px; font-weight:700; color:var(--navy); font-size:.98rem; }
.vf-label .req { color:#e2574c; margin-left:2px; }
.vf-field { flex:1; min-width:0; }
.vf-field input[type=text], .vf-field select, .vf-field textarea { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 14px; font-family:inherit; font-size:.98rem; color:var(--ink); background:#fff; }
.vf-field input[type=text]:focus, .vf-field select:focus, .vf-field textarea:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(14,154,168,.12); }
.vf-field select { cursor:pointer; max-width:260px; }
.vf-field textarea { resize:vertical; line-height:1.7; min-height:180px; }
.vf-foot { padding-top:24px; text-align:center; }
.vf-foot .btn { min-width:200px; justify-content:center; }
@media (max-width:600px){
  .vf-row { flex-direction:column; gap:8px; padding:14px 0; }
  .vf-label { width:auto; padding-top:0; }
  .vf-field select { max-width:none; }
}

/* 관련 사이트 (배너) */
.banner-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:6px; }
.banner-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s, border-color .2s; }
.banner-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--teal); }
.banner-img { display:flex; align-items:center; justify-content:center; height:128px; background:var(--bg-soft); padding:20px; }
.banner-img img { max-width:100%; max-height:100%; object-fit:contain; }
.banner-ph { color:var(--muted); font-weight:700; font-size:1rem; text-align:center; }
.banner-card .banner-name { padding:15px 16px; font-weight:700; color:var(--navy); font-size:1.02rem; text-align:center; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:center; gap:6px; }
.banner-card .banner-name em { color:var(--teal); font-style:normal; font-size:.9rem; }
.banner-card:hover .banner-name { color:var(--teal); }
@media (max-width:860px){ .banner-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .banner-grid { grid-template-columns:1fr; } }

/* 회칙 등 문서 탭 */
.doc-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 26px; }
.doc-tabs a { padding:9px 16px; border:1px solid var(--line); border-radius:999px; font-size:.92rem; font-weight:600; color:var(--muted); transition:.2s; }
.doc-tabs a:hover { border-color:var(--teal); color:var(--teal); }
.doc-tabs a.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.doc-body { color:#3a4b58; font-size:1.05rem; line-height:1.9; }
.doc-body ul, .doc-body ol { padding-left:20px; }
.doc-body li { margin-bottom:6px; }

/* 사무국 지도 */
.office-map { margin-top:8px; border-radius:14px; overflow:hidden; border:1px solid var(--line); height:480px; }
.office-map > div { width:100%; height:100%; }

/* =========================================================
   게시판 — 리스트
   ========================================================= */
.board-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:2px 0 18px; flex-wrap:wrap; }
.board-toolbar .bt-desc { color:var(--muted); font-size:.98rem; margin:0; }
.btn-write { display:inline-flex; align-items:center; gap:7px; background:var(--navy); color:#fff; padding:.62em 1.3em; border-radius:999px; font-weight:600; font-size:.92rem; transition:transform .2s, box-shadow .2s, background .2s; }
.btn-write svg { width:16px; height:16px; }
.btn-write:hover { background:var(--teal); transform:translateY(-2px); box-shadow:var(--shadow-md); }

.board-list { display:flex; flex-direction:column; gap:2px; }
.board-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:18px 16px; border-bottom:1px solid var(--line); border-radius:12px; transition:background .2s, transform .2s, box-shadow .2s; }
.board-row:hover { background:var(--bg-soft); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.board-row .no { flex:none; width:42px; text-align:center; color:var(--muted); font-size:.9rem; }
.board-row .ti { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:11px; font-size:1.06rem; }
.board-row .ti .tag { flex:none; background:rgba(14,154,168,.10); color:var(--teal); border:0; font-size:.74rem; font-weight:700; padding:4px 11px; border-radius:999px; }
.board-row .ti .tag.notice { background:rgba(11,42,69,.10); color:var(--navy); }
.board-row .no .tag { display:inline-block; background:rgba(14,154,168,.10); color:var(--teal); font-size:.72rem; font-weight:700; padding:3px 10px; border-radius:999px; line-height:1.5; }
.board-row .no .tag.notice { background:rgba(11,42,69,.10); color:var(--navy); }
.board-row .ti a { min-width:0; color:var(--ink); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color .2s; }
.board-row:hover .ti a { color:var(--navy); }
.board-row .dt, .board-row .vw { flex:none; color:var(--muted); font-size:.86rem; }
.board-head { display:flex; gap:14px; padding:14px 16px; background:var(--bg-soft); border-radius:10px; font-size:.9rem; color:var(--muted); font-weight:600; }
.board-head .no { width:42px; text-align:center; flex:none; }
.board-head .ti { flex:1; }
.board-head .dt { width:96px; flex:none; }
.board-head .vw { width:64px; flex:none; }

.pager { display:flex; justify-content:center; gap:8px; margin-top:36px; }
.pager a { width:40px; height:40px; display:grid; place-items:center; border-radius:11px; border:1px solid var(--line); color:var(--muted); font-size:.95rem; transition:.2s; }
.pager a:hover { border-color:var(--teal); color:var(--teal); }
.pager a.on { background:var(--navy); border-color:var(--navy); color:#fff; }

/* pagination (function.lib.php print_page 출력용 — pager 스타일 매핑) */
.pagination { display:flex; justify-content:center; gap:8px; margin-top:36px; flex-wrap:wrap; }
.pagination a { min-width:40px; height:40px; padding:0 6px; display:grid; place-items:center; border-radius:11px; border:1px solid var(--line); color:var(--muted); font-size:.95rem; transition:.2s; }
.pagination a:hover { border-color:var(--teal); color:var(--teal); }
.pagination a.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.pagination a.first::before { content:"«"; }
.pagination a.prev::before { content:"‹"; }
.pagination a.next::before { content:"›"; }
.pagination a.last::before { content:"»"; }

/* =========================================================
   게시판 — 보기
   ========================================================= */
.board-view { max-width:1080px; margin:0 auto; }
.bv-head { padding:6px 2px 22px; border-bottom:1px solid var(--line); }
.bv-cat { display:inline-block; font-size:.8rem; font-weight:700; color:var(--teal); background:rgba(14,154,168,.10); padding:4px 12px; border-radius:999px; margin-bottom:12px; }
.bv-head h1 { font-size:clamp(1.4rem,2.8vw,1.95rem); font-weight:800; color:var(--navy); letter-spacing:-.03em; line-height:1.32; }
.bv-meta { margin-top:14px; display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--muted); font-size:.93rem; }
.bv-meta .bv-writer { color:var(--ink); font-weight:600; }
.bv-meta .bv-dot { opacity:.35; }
.bv-files { display:flex; gap:16px; padding:16px; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; margin:18px 0 0; align-items:flex-start; }
.bv-files-label { flex:none; font-weight:700; color:var(--navy); font-size:.92rem; padding-top:9px; }
.bv-files ul { display:flex; flex-wrap:wrap; gap:10px; }
.bv-files li { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 15px; transition:.2s; }
.bv-files li::before { content:""; width:15px; height:15px; flex:none; background:no-repeat center/contain; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.bv-files li:hover { border-color:var(--teal); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.bv-files li a { color:var(--ink); font-weight:600; font-size:.9rem; }
.bv-files li:hover a { color:var(--teal); }
.bv-files li em { color:var(--muted); font-style:normal; font-size:.82rem; }
.bv-body { padding:36px 2px; min-height:180px; border-bottom:1px solid var(--line); color:#3a4b58; font-size:1.06rem; line-height:1.9; }
.bv-body p { margin-bottom:18px; }
.bv-like { display:flex; justify-content:center; align-items:center; gap:10px; padding:34px 0 8px; }
.bv-like-btn { display:inline-flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:11px 24px; cursor:pointer; color:var(--navy); font-weight:600; font-size:.95rem; transition:.2s; }
.bv-like-btn svg { width:22px; height:22px; color:var(--teal); }
.bv-like-btn:hover { background:var(--teal); border-color:var(--teal); color:#fff; }
.bv-like-btn:hover svg { color:#fff; }
.bv-like-count { background:var(--bg-soft); border-radius:999px; padding:9px 16px; color:var(--teal); font-weight:700; font-size:.95rem; }
.bv-actions { display:flex; justify-content:flex-end; gap:8px; padding-bottom:6px; }
.bv-actions .btn { padding:.55em 1.2em; font-size:.88rem; border-radius:999px; }
.bv-del:hover { border-color:#d9534f; color:#d9534f; }

.comments { margin-top:36px; padding-top:30px; border-top:2px solid var(--navy); }
.comments h3 { font-size:1.18rem; font-weight:800; color:var(--navy); margin-bottom:18px; }
.comments h3 span { color:var(--teal); }
.comment-list { display:flex; flex-direction:column; }
.comment { display:grid; grid-template-columns:42px 1fr; gap:14px; align-items:start; padding:18px 2px; border-bottom:1px solid var(--line); }
.c-ava { width:42px; height:42px; border-radius:50%; flex:none; background:linear-gradient(135deg,var(--navy),var(--teal)); color:#fff; display:grid; place-items:center; font-weight:700; font-size:1rem; font-family:var(--serif); }
.c-ava.anonymous { background:linear-gradient(135deg,#8aa0b0,#b9cbd9); }
.c-main { min-width:0; }
.c-head { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.c-name { font-weight:700; color:var(--navy); font-size:.95rem; }
.c-name.anonymous { color:var(--muted); }
.c-date { color:var(--muted); font-size:.82rem; }
.c-body { color:#3a4b58; font-size:1rem; line-height:1.7; }
.c-actions { margin-top:8px; }
.c-actions a { color:var(--muted); font-size:.85rem; font-weight:600; }
.c-actions a:hover { color:var(--teal); }
.comment-list.reply { margin-top:14px; gap:10px; }
.comment-list.reply .comment { grid-template-columns:34px 1fr; gap:11px; padding:14px 16px; background:var(--bg-soft); border-radius:12px; border-bottom:none; }
.comment-list.reply .c-ava { width:34px; height:34px; font-size:.85rem; }
.comment-form { margin-top:22px; background:var(--bg-soft); border:1px solid var(--line); border-radius:16px; padding:20px; }
.cf-top { margin-bottom:10px; display:flex; gap:8px; }
.cf-select, .cf-name { border:1px solid var(--line); border-radius:10px; padding:9px 12px; font-size:.92rem; font-family:inherit; }
.cf-input { display:flex; gap:10px; align-items:stretch; }
.cf-input textarea { flex:1; border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:.98rem; font-family:inherit; resize:vertical; min-height:64px; }
.cf-input .btn { flex:none; }

.post-nav { margin-top:34px; display:flex; flex-direction:column; gap:10px; }
.post-nav .pn-row { display:flex; align-items:center; gap:16px; padding:14px 18px; border:1px solid var(--line); border-radius:12px; transition:.2s; }
.post-nav .pn-row:hover { border-color:var(--teal); box-shadow:var(--shadow-sm); }
.post-nav .pn-label { flex:none; width:54px; color:var(--teal); font-weight:700; font-size:.88rem; }
.post-nav .pn-title { color:#3a4b58; font-size:.98rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-nav .pn-row:hover .pn-title { color:var(--navy); }
.bv-foot { display:flex; justify-content:center; margin-top:34px; }
.bv-foot .btn { border-radius:999px; padding:.7em 2em; }

/* =========================================================
   게시판 — 쓰기
   ========================================================= */
.board-write { max-width:1080px; margin:0 auto; }
.write-form { margin-top:4px; }
.form-row { display:grid; grid-template-columns:140px 1fr; gap:20px; align-items:start; padding:22px 8px; border-bottom:1px solid var(--line); }
.form-label { font-weight:700; color:var(--navy); font-size:1rem; padding-top:10px; }
.form-field .input, .form-field .select { border:1px solid var(--line); border-radius:9px; padding:11px 14px; font-size:.98rem; font-family:inherit; }
.form-field .input { width:100%; }
.form-field.form-inline { display:flex; gap:8px; align-items:center; }
.form-field .select { min-width:120px; }
.editor-box { border:1px solid var(--line); border-radius:10px; min-height:300px; padding:16px; font-size:1rem; line-height:1.8; color:var(--ink); overflow:auto; }
.editor-box:empty::before { content:attr(data-placeholder); color:#9aa9b4; }
.editor-box:focus { outline:none; border-color:var(--teal); }
.field-help { margin-top:8px; color:var(--muted); font-size:.85rem; }
.write-foot { display:flex; justify-content:center; gap:10px; margin-top:28px; }
.write-foot .btn { min-width:120px; justify-content:center; border-radius:999px; }

/* 드롭존 */
.dropzone { position:relative; display:flex; align-items:center; justify-content:center; gap:20px; text-align:left; border:2px dashed var(--line); border-radius:14px; background:var(--bg-soft); padding:18px 22px 14px; cursor:pointer; transition:border-color .2s, background .2s, box-shadow .2s; }
.dropzone:hover { border-color:var(--teal); background:#eef7f9; }
.dropzone:focus-visible { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(43,208,217,.25); }
.dropzone.is-drag { border-style:solid; border-color:var(--teal); background:#e6f6f8; box-shadow:inset 0 0 0 2px rgba(14,154,168,.18); }
.dz-ic { width:42px; height:42px; flex:none; border-radius:50%; background:#fff; border:1px solid var(--line); display:grid; place-items:center; color:var(--teal); transition:transform .2s; }
.dropzone.is-drag .dz-ic { transform:translateY(-2px) scale(1.05); }
.dz-ic svg { width:22px; height:22px; }
.dz-text { display:flex; flex-direction:column; }
.dropzone .dz-title { color:var(--ink); font-weight:600; font-size:.98rem; line-height:1.4; margin:0; }
.dz-title span { color:var(--teal); text-decoration:underline; }
.dropzone .dz-sub { color:var(--muted); font-size:.84rem; line-height:1.4; margin:3px 0 0; }
.dz-files { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.dz-files:empty { display:none; }
.dz-file { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; animation:dzIn .2s ease; }
@keyframes dzIn { from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }
.dz-file .dzf-ic { width:30px; height:30px; flex:none; border-radius:8px; background:var(--bg-soft-2); color:var(--teal); display:grid; place-items:center; }
.dz-file .dzf-ic svg { width:16px; height:16px; }
.dz-file .dzf-name { flex:1; min-width:0; color:var(--ink); font-weight:600; font-size:.92rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dz-file .dzf-size { flex:none; color:var(--muted); font-size:.82rem; }
.dz-file .dzf-del { flex:none; width:30px; height:30px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); cursor:pointer; font-size:1.05rem; line-height:1; transition:.2s; }
.dz-file .dzf-del:hover { border-color:#d9534f; color:#d9534f; }

/* =========================================================
   푸터 / 공통
   ========================================================= */
.site-footer { background:var(--navy-deep); color:#9fb6c6; padding:56px 0 30px; font-size:.9rem; }
.footer-top { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-top .brand .b-text strong { color:#fff; }
.site-footer .footer-logo { height:38px; width:auto; max-width:100%; display:block; filter:brightness(0) invert(.92); }
.footer-top h5 { color:#fff; font-size:.98rem; margin-bottom:16px; font-weight:700; }
.footer-top ul li { margin-bottom:9px; }
.footer-top ul li a:hover { color:#fff; }
.footer-info { margin-top:18px; line-height:1.8; font-size:.85rem; color:#84a0b3; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:.82rem; color:#6f8aa3; flex-wrap:wrap; gap:12px; }
.footer-bottom .fb-links { display:flex; gap:18px; }
.footer-bottom .fb-links a:hover { color:#fff; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

.top-btn { position:fixed; right:26px; bottom:26px; z-index:45; width:56px; height:56px; border-radius:16px; background:var(--navy); color:#fff; border:none; cursor:pointer; display:grid; place-items:center; box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transform:translateY(10px); transition:.25s; }
.top-btn.show { opacity:1; visibility:visible; transform:none; }
.top-btn:hover { background:var(--teal); }
.top-btn svg { width:22px; height:22px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width:1024px){
  .home-grid { grid-template-columns:1fr; gap:40px; }
  .people { grid-template-columns:repeat(2,1fr); }
  .cards.c4 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  :root { --header-h:64px; }
  body { overflow-x:clip; }   /* 모바일 가로 스크롤 차단(예기치 못한 오버플로우 방지 — sticky 헤더는 유지) */
  .head-top { height:64px; padding:0 16px; }
  .head-util { display:none; }
  .m-util { display:block; padding:13px 20px; border-bottom:1px solid var(--line); background:var(--bg-soft); }
  .m-util-links { display:flex; flex-wrap:wrap; gap:4px 16px; margin:0; }
  .m-util-links a { color:var(--navy); font-weight:600; font-size:.85rem; padding:3px 2px; }
  .m-util-foot { display:block; padding:13px 20px 16px; border-top:1px solid var(--line); }
  .m-util-foot a { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:.84rem; font-weight:600; }
  .m-util-foot a svg { width:15px; height:15px; }
  .m-util-foot a:hover { color:var(--navy); }
  .brand .b-text strong { font-size:1.05rem; }
  .nav-toggle { display:grid; }
  .gnb-bar { display:none; position:absolute; left:0; right:0; top:64px; background:#fff; border-top:1px solid var(--line); box-shadow:var(--shadow-md); max-height:calc(100vh - 64px); overflow-y:auto; }
  .gnb-bar.open { display:block; }
  .gnb { display:none; }
  .mega { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border-top:none; }
  .mega-inner { grid-template-columns:1fr; padding:6px 0; }
  .mega-col { min-height:0; padding:0 20px; border-bottom:1px solid var(--line); text-align:left; }
  .mega-col:last-child { border-bottom:none; }
  .mega-col .mh { display:block; position:relative; cursor:pointer; font-weight:800; color:var(--navy); font-size:1.06rem; border-bottom:none; padding:16px 0; }
  .mega-col .mh::after { content:""; position:absolute; right:4px; top:50%; width:9px; height:9px; margin-top:-7px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .3s; }
  .mega-col.open .mh::after { transform:rotate(-135deg); margin-top:-3px; }
  .mega-col ul { max-height:0; overflow:hidden; transition:max-height .32s ease; }
  .mega-col.open ul { max-height:720px; }
  .mega-col li a { text-align:left; padding:10px 10px; color:#2c3e4a; }
  .mega-col li:last-child a { padding-bottom:14px; }
  .mega-scrim { display:none; }
  .hero { height:auto; min-height:0; }
  .hero-carousel { position:relative; height:58vh; min-height:380px; }
  .hero .slide { position:absolute; inset:0; }
  .slide-shade { background:linear-gradient(180deg,rgba(5,18,32,.55) 0%,rgba(5,18,32,.55) 40%,rgba(5,18,32,.85) 100%); }
  .hero .lead { max-width:none; }
  .hero-btns { margin-top:24px; }
  .car-arrow { top:42%; }
  .car-dots { position:absolute; bottom:18px; }
  .hero-quick { position:static; }
  .hero-quick .wrap { border-radius:0; padding:0; }
  .ph-note { display:none; }
}
@media (max-width:760px){
  .hero h1 { font-size:2rem; }
  .hero-quick .wrap { grid-template-columns:repeat(2,1fr); }
  .footer-top { grid-template-columns:1fr; gap:28px; }
  .cards.c4, .cards.c3, .cards.c2 { grid-template-columns:1fr; }
  .people { grid-template-columns:1fr 1fr; }
  .form-row { grid-template-columns:1fr; gap:10px; }
  .form-label { padding-top:0; }
  .board-row .dt, .board-row .vw { font-size:.8rem; }
  .car-arrow { width:42px; height:42px; font-size:1.4rem; }
  .car-arrow.prev { left:12px; } .car-arrow.next { right:12px; }
  .office-map { height:360px; }
}

/* =========================================================
   게시판 목록 — 컬럼 정렬 & 모바일 대응
   ========================================================= */
.board-head, .board-row { gap:12px; }
.board-head .no, .board-row .no { width:72px; text-align:center; flex:none; }
.board-head .ti, .board-row .ti { flex:1 1 auto; min-width:0; }
.board-head .ti { text-align:center; }
.board-row .b-meta, .board-head .b-meta { display:flex; align-items:center; gap:12px; flex:none; color:var(--muted); font-size:.86rem; }
.board-row .b-meta .wr, .board-head .b-meta .wr { width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; }
.board-row .b-meta .dt, .board-head .b-meta .dt { width:92px; text-align:center; }
.board-row .b-meta .vw, .board-head .b-meta .vw { width:58px; text-align:center; }
.board-row .b-meta .wr.anonymous { color:var(--muted); }

@media (max-width:640px){
  .board-head { display:none; }
  .board-row { flex-wrap:wrap; align-items:flex-start; padding:15px 12px; gap:6px; }
  .board-row .no { display:none; }
  .board-row.static .no { display:inline-block; width:auto; }
  .board-row .ti { flex:1 1 100%; font-size:1.02rem; }
  .board-row .ti a { white-space:normal; }
  .board-row .b-meta { flex:1 1 100%; gap:10px; font-size:.82rem; }
  .board-row .b-meta .wr, .board-row .b-meta .dt, .board-row .b-meta .vw { width:auto; text-align:left; }
  .board-row .b-meta .vw::before { content:"· 조회 "; opacity:.8; }
}

/* 게시판 검색 툴바 */
.board-search { display:flex; gap:8px; align-items:center; }
.board-search select, .board-search input { border:1px solid var(--line); border-radius:9px; padding:10px 12px; font-family:inherit; font-size:.95rem; background:#fff; color:var(--ink); }
.board-search select { flex:none; }
.board-search input { width:220px; }
.board-search button { flex:none; }
@media (max-width:640px){
  .board-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
  .board-search { width:100%; }
  .board-search input { flex:1 1 auto; width:auto; min-width:0; }
  .board-toolbar .btn-write { display:none; }   /* 모바일: 하단 FAB 로 대체 */
}

/* 모바일 글쓰기 플로팅 버튼(FAB) */
.write-fab { display:none; }
@media (max-width:640px){
  .write-fab {
    display:grid; place-items:center;
    position:fixed; right:18px; bottom:18px; z-index:46;
    width:56px; height:56px; border-radius:50%;
    background:var(--navy); color:#fff; border:none;
    box-shadow:var(--shadow-md);
    transition:transform .2s, background .2s;
  }
  .write-fab:hover, .write-fab:active { background:var(--teal); transform:translateY(-2px); }
  .write-fab svg { width:24px; height:24px; }
  /* '맨 위로' 버튼을 FAB 위로 올려 겹침 방지 */
  .top-btn { right:18px; bottom:84px; width:48px; height:48px; border-radius:14px; }
}

/* 헤더 로고 (엠블럼+글자 포함 통짜 로고) */
.site-header .brand .mark { background:none; box-shadow:none; border-radius:0; width:auto; height:48px; }
.site-header .brand .mark img { width:auto; height:48px; object-fit:contain; display:block; }
@media (max-width:900px){
  .site-header .brand .mark, .site-header .brand .mark img { height:36px; }
}

/* =========================================================
   학술행사일정 (event)
   ========================================================= */
.ev-empty { padding:60px 20px; text-align:center; color:var(--muted); background:var(--bg-soft); border-radius:var(--radius); }

.ev-list { display:flex; flex-direction:column; gap:14px; }
.ev-card { border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow-sm); transition:transform .18s, box-shadow .18s, border-color .18s; }
.ev-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:#cfe0ea; }
.ev-card.is-static { border-color:#f0d9a8; background:linear-gradient(0deg,#fffdf7,#fff); }
.ev-card-link { display:block; padding:20px 24px; }

.ev-tags { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:10px; }
.ev-type { font-size:.76rem; font-weight:700; border-radius:6px; padding:3px 10px; color:#fff; }
.ev-type-i { background:var(--teal); }
.ev-type-o { background:#2563b8; }
.ev-phase { font-size:.74rem; font-weight:700; border-radius:999px; padding:3px 10px; }
.ev-soon { background:#eaf1fb; color:#2563b8; }
.ev-live { background:#e6f7ee; color:#1f9d57; }
.ev-done { background:#eef2f6; color:#8090a0; }
.ev-pin { font-size:.72rem; font-weight:700; color:#b8860b; background:#fff3d6; border-radius:6px; padding:3px 9px; }
.ev-reg-open { font-size:.72rem; font-weight:700; color:#fff; background:var(--teal-2); border-radius:6px; padding:3px 9px; }

.ev-title { font-size:1.18rem; font-weight:700; color:var(--navy); letter-spacing:-.02em; line-height:1.4; }
.ev-meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:10px; color:var(--muted); font-size:.92rem; }
.ev-meta span { display:inline-flex; align-items:center; gap:7px; }
.ev-meta svg { width:16px; height:16px; color:var(--teal); flex:none; }

/* 상세 */
.ev-view { max-width:860px; margin:0 auto; }
.ev-view-head { padding-bottom:18px; border-bottom:2px solid var(--navy); margin-bottom:22px; }
.ev-view-head h2 { font-size:1.7rem; font-weight:800; color:var(--navy); letter-spacing:-.03em; line-height:1.35; margin-top:10px; }
.ev-info { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.ev-info-row { display:flex; border-bottom:1px solid var(--line); }
.ev-info-row:last-child { border-bottom:none; }
.ev-info-row dt { flex:none; width:120px; background:var(--bg-soft); padding:14px 18px; font-weight:700; color:var(--navy); font-size:.92rem; }
.ev-info-row dd { flex:1; padding:14px 18px; color:var(--ink); min-width:0; word-break:break-word; }
.ev-link { color:var(--teal); font-weight:600; text-decoration:underline; }
.ev-attend-cnt { color:var(--muted); font-size:.9rem; margin-left:6px; }
.ev-content { margin:24px 0; line-height:1.85; color:#2c3e4a; }
.ev-attend { margin:26px 0; padding:24px; background:var(--bg-soft); border-radius:var(--radius); display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.ev-attend-btns { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.ev-attend .btn { margin:0; }
.ev-attend-done { display:flex; flex-direction:column; gap:2px; }
.ev-attend-done strong { color:var(--teal); font-size:1.05rem; }
.ev-attend-done span { color:var(--muted); font-size:.88rem; }
.ev-attend-note { color:var(--muted); }
.ev-foot { margin-top:30px; text-align:center; }

/* 달력 */
.ev-legend { display:flex; gap:18px; justify-content:flex-end; margin-bottom:14px; color:var(--muted); font-size:.9rem; }
.ev-legend span { display:inline-flex; align-items:center; gap:7px; }
.ev-legend .dot { width:12px; height:12px; border-radius:3px; display:inline-block; }
.ev-legend .dot.i { background:var(--teal); }
.ev-legend .dot.o { background:#2563b8; }
.ev-calendar { --fc-border-color:var(--line); --fc-today-bg-color:#f0fafb; font-size:.92rem; }
.ev-calendar .fc .fc-toolbar-title { font-size:1.25rem; font-weight:800; color:var(--navy); }
.ev-calendar .fc .fc-button { background:#fff; border:1px solid var(--line); color:var(--navy); font-weight:600; box-shadow:none; text-transform:none; }
.ev-calendar .fc .fc-button:hover { background:var(--bg-soft); border-color:var(--teal); color:var(--teal); }
.ev-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
.ev-calendar .fc .fc-button.fc-button-active { background:var(--navy); border-color:var(--navy); color:#fff; }
.ev-calendar .fc-daygrid-event { padding:2px 6px; font-weight:600; border:none; cursor:pointer; }
.ev-calendar .fc-day-sun a { color:#d23b3b; }
.ev-calendar .fc-day-sat a { color:#2563b8; }

@media (max-width:640px){
  .ev-view-head h2 { font-size:1.35rem; }
  .ev-info-row dt { width:84px; padding:12px; font-size:.86rem; }
  .ev-info-row dd { padding:12px; }
  .ev-calendar .fc .fc-toolbar { flex-wrap:wrap; gap:8px; }
}

/* =========================================================
   의사회 연혁 (history : 기간 탭 + 연도 타임라인)
   ========================================================= */
.hist { margin-top:8px; }

/* 기간 탭 */
.hist-tabs {
  display:flex; flex-wrap:wrap; gap:8px;
  background:var(--bg-soft); padding:10px; border-radius:14px; margin-bottom:26px;
}
.hist-tab {
  flex:1 1 auto; min-width:96px; text-align:center; white-space:nowrap;
  padding:13px 14px; border-radius:10px; border:1px solid transparent;
  background:transparent; color:var(--muted); font-size:.98rem; font-weight:700; cursor:pointer;
  transition:background .15s, color .15s, border-color .15s;
}
.hist-tab:hover { color:var(--navy); }
.hist-tab.on { background:#fff; color:var(--navy); border-color:var(--navy); box-shadow:var(--shadow-sm); }

/* 기간별 패널 */
.hist-group-panel { display:none; }
.hist-group-panel.on { display:block; }

/* 연도 타임라인 목록 */
.hist-list { position:relative; padding-top:6px; }
.hist-list::before {
  content:""; position:absolute; left:11px; top:20px; bottom:20px; width:2px;
  background:linear-gradient(180deg, var(--teal), #cfe1ea);
}
.hist-item { display:flex; gap:36px; align-items:flex-start; padding:0 0 42px; }
.hist-item:last-child { padding-bottom:6px; }

.hist-detail-year {
  flex:none; width:150px; font-size:1.7rem; font-weight:800; color:var(--navy);
  display:flex; align-items:center; gap:10px; line-height:1.2;
}
.hist-detail-year .emb {
  width:24px; height:24px; flex:none; border-radius:50%; position:relative; z-index:1;
  background:radial-gradient(circle at 35% 30%, var(--teal), var(--navy));
  box-shadow:0 0 0 5px #fff;
}
.hist-detail-body { flex:1; min-width:0; line-height:1.9; color:#2c3e4a; }
.hist-detail-body.ql-editor { padding:0; min-height:0; font-family:inherit; white-space:normal; word-break:break-word; }
.hist-detail-body p { margin:0 0 1.1em; }
.hist-detail-body p:last-child { margin-bottom:0; }
.hist-detail-body img { max-width:100%; height:auto; border-radius:8px; margin:6px 0; }

@media (max-width:640px){
  .hist-tab { flex-basis:calc(50% - 4px); min-width:0; }
  .hist-list::before { display:none; }
  .hist-item { flex-direction:column; gap:10px; padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid var(--line); }
  .hist-item:last-child { padding-bottom:0; margin-bottom:0; border-bottom:none; }
  .hist-detail-year { width:auto; font-size:1.45rem; }
  .hist-detail-year .emb { width:18px; height:18px; box-shadow:none; }
}
