@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
    --ink: #1a1816;
    --muted: #6d675f;
    --line: #e7e2db;
    --soft: #f5f3f0;
    --crimson: #8c1d2c;
    --max: 1120px;
}

body.is-home,
body.is-sub {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
body.is-home h1, body.is-sub h1,
body.is-home h2, body.is-sub h2,
body.is-home h3, body.is-sub h3 {
    float: none;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}
body.is-home a, body.is-sub a { color: inherit; text-decoration: none; }
#wrap { background: #fff !important; overflow: visible !important; width: auto !important; }
body.is-home #container,
body.is-sub #container,
#footer.site-foot {
    width: auto;
    max-width: none;
    float: none;
    margin: 0;
    min-height: 0;
    height: auto;
    overflow: visible;
    background: none;
}
.sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--crimson); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.brand-text small { font-weight: 500; color: var(--muted); font-size: 12px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 8px 11px; font-size: 15px; font-weight: 500; color: #3c3834; }
.nav-item.is-on > a, .nav-item > a:hover { color: var(--crimson); }
.nav-item.is-on > a { box-shadow: inset 0 -2px 0 var(--crimson); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 168px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(26,24,22,.08); }
.site-nav .sub a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.site-nav .sub a:hover { background: var(--soft); }
.nav-item.has-sub:hover .sub, .nav-item.has-sub:focus-within .sub { display: block; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.nav-toggle-lines, .nav-toggle-lines:before, .nav-toggle-lines:after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; }
.nav-toggle-lines:before, .nav-toggle-lines:after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines:before { top: -6px; }
.nav-toggle-lines:after { top: 6px; }

.hero { padding-top: 28px; }
.hero-frame { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; aspect-ratio: 1000 / 547; border-radius: 12px; overflow: hidden; background: #24181a; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-ui { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-prev, .hero-next, .hero-dot { border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.hero-prev, .hero-next { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-dot.is-on { background: #fff; }
.hero-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 28px 0 8px; }
.hero-lead h1 { margin: 0; max-width: 640px; font-size: clamp(26px, 3vw, 36px); }
.hero-links { display: flex; gap: 18px; flex: none; margin: 0; }
.hero-links a { color: var(--crimson); font-weight: 700; }

.home-block { padding: 56px 0; }
.home-block.alt { background: var(--soft); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sec-h h2 { margin: 0; font-size: 22px; }
.sec-h a { color: var(--crimson); font-weight: 600; font-size: 14px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.news-grid > * { min-width: 0; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-list .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.news-list .date { flex: none; color: var(--muted); font-size: 13px; }
.galleryBoard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.galleryBoard .card { display: block; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.galleryBoard .img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.galleryBoard .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galleryBoard .title { display: -webkit-box; padding: 14px 16px 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.logo-row a { display: grid; place-items: center; width: 140px; height: 64px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.logo-row img { max-width: 108px; max-height: 36px; }

.page-hero { padding: 36px 0 0; }
.page-hero .site-wrap { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-hero .crumb { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.page-hero .crumb a { color: var(--crimson); }
.page-hero h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); }
.page-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; padding: 32px 0 72px; }
.page-body.is-plain { grid-template-columns: minmax(0, 1fr); }
.side { display: flex; flex-direction: column; align-self: start; position: sticky; top: 96px; }
.side a { padding: 10px 12px; border-left: 2px solid transparent; font-weight: 500; color: #3c3834; }
.side a[aria-current="page"] { border-left-color: var(--crimson); color: var(--crimson); }
#rightS, #content { width: auto; float: none; min-width: 0; }
#content { margin: 0; min-height: 200px; overflow: visible; }
#content img { max-width: 100%; height: auto; }
#content > img { display: block; width: min(860px, 100%); margin: 0 auto 28px; border-radius: 10px; }

#aboutBox { text-align: center; }
#aboutBox img { width: min(680px, 100%); display: block; margin: 0 auto; }
#profileBox { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; background: none; box-shadow: none; padding: 0; }
#profileBox .imgBox { width: 200px; height: auto; float: none; border: 0; border-radius: 10px; overflow: hidden; background: var(--soft); }
#profileBox .imgBox img { width: 100%; height: auto; object-fit: contain; display: block; }
.profile, .profile2 { float: none; width: auto; margin: 0; }
.profile h4, .profile2 h4, #profileStu h3 { background: none; padding: 0; margin: 0 0 8px; font-size: 26px; }
.profile p, .profile2 p { height: auto; margin: 0 0 16px; color: var(--muted); }
.profile dl, .profile2 dl { float: none; width: auto; display: block; margin: 0 0 12px; }
.profile dl dt, .profile2 dl dt { color: var(--crimson); font-weight: 700; }
.profile dl dd, .profile2 dl dd, .profile dl.email dd, .profile dl.email dd a { background: none; padding: 0; margin: 2px 0; }
#prof_txt { margin-top: 40px; padding-top: 8px; border-top: 0; background: none; box-shadow: none; }
#prof_txt dt { margin-top: 28px; font-size: 18px; background: none; }
#prof_txt dd, #prof_txt li { background: none; padding: 0; margin: 0 0 8px; color: #3f3a36; line-height: 1.7; }
#profileStu h3 { margin: 28px 0 0; font-size: 20px; }
#profileStu ul { width: auto; margin: 8px 0 24px; padding: 0; }
#profileStu ul li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; }
#profileStu ul li > img { width: 112px; height: auto; object-fit: contain; border: 0; border-radius: 8px; float: none; display: block; }
#profileStu ul li > dl { float: none; width: auto; margin: 0; }
#profileStu ul li > dl dt { background: none; border: 0; padding: 0; font-size: 18px; }
#profileStu ul li > dl dt span { display: block; margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
#profileStu ul li > dl dd { margin: 6px 0 0; }
#profileStu ul li > dl dd span, #profileStu ul li > dl dd a { background: none; padding: 0; color: var(--crimson); }
#link { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
#link h3 { grid-column: 1 / -1; margin: 12px 0 0; padding: 0; background: none; font-size: 20px; }
#link h3.first { margin-top: 0; }
#link dl { float: none; width: auto; margin: 0; }
#link img { width: 100%; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
#link dt { margin-top: 10px; background: none; padding: 0; font-weight: 700; }
#link dd { margin: 4px 0 0; padding: 0; color: var(--muted); font-size: 13px; }
#sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-map-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.site-map-card h2 { margin: 0 0 10px; font-size: 18px; }
.site-map-card a { display: block; padding: 4px 0; color: var(--crimson); font-weight: 600; }
.contP, .contxt dt, .roadTxt dt { background: none; padding: 0; margin: 18px 0 8px; font-weight: 700; }
.roadTxt, .contxt { margin: 0; }
.roadTxt dd, .contxt dd { margin: 0 0 6px; background: none; padding: 0; }
.contxt dd a { color: var(--crimson); font-weight: 600; }

.board_button { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.board_list { width: 100%; border-collapse: collapse; }
.board_list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--ink); background: transparent; }
.board_list td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board_list td.subject a { font-weight: 600; }
.board_list td.num, .board_list td.datetime, .board_list td.hit, .board_list td.name { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rsh-item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rsh-item .thumb, .rsh-item .txt { float: none; width: auto; margin: 0; }
.rsh-item img { width: 100% !important; height: 112px !important; object-fit: cover; border-radius: 8px; }
.rsh-item .title { font-weight: 700; }
.rsh-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.boxMedia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mediaList { float: none; width: auto; height: auto; margin: 0; text-align: left; }
.mediaList p { width: auto; height: auto; margin: 0; }
.mediaList img { width: 100% !important; height: 160px !important; object-fit: cover; border-radius: 8px; }
.mediaList .title { display: -webkit-box; margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.45; white-space: normal; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.board_page, .pg_wrap { margin: 28px 0; text-align: center; }
.pg_page, .pg_current { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 6px; }
.pg_current { background: var(--crimson); color: #fff; }
#bo_v_title { font-size: 28px !important; border-bottom: 1px solid var(--line) !important; padding-bottom: 12px; }
#bo_v_con { font-size: 16px; line-height: 1.75; }
#bo_v_con img { max-width: 100%; height: auto; }

.site-foot { background: #1a1816; color: #f4efe9; padding: 36px 0 20px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; }
.site-foot strong { display: block; margin-bottom: 8px; font-size: 18px; }
.site-foot p { margin: 0; color: #d9d0c7; }
.site-foot a { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; text-align: right; }
.foot-links li { margin: 0 0 6px; }
.foot-copy { margin-top: 22px; color: #b7aea4; font-size: 13px; }

@media (max-width: 1100px) {
    .boxMedia { grid-template-columns: repeat(3, 1fr); }
    #link { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; max-height: 70vh; overflow: auto; }
    .site-nav.is-open { display: block; }
    .nav-item.is-on > a { box-shadow: none; }
    .site-nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 14px; }
    .news-grid, .galleryBoard, .band-grid { grid-template-columns: 1fr; }
    .hero-lead, .page-body, #profileBox, .rsh-item { grid-template-columns: 1fr; display: block; }
    .hero-lead { display: block; }
    .hero-links { margin-top: 14px; }
    .page-body { display: block; }
    .side { position: static; flex-direction: row; overflow: auto; gap: 8px; margin-bottom: 20px; }
    .side a { flex: none; border: 1px solid var(--line); border-radius: 999px; }
    .side a[aria-current="page"] { border-color: var(--crimson); }
    .boxMedia, #sitemap { grid-template-columns: 1fr 1fr; }
    #link { grid-template-columns: 1fr 1fr; }
    .foot-grid, .foot-links { display: block; text-align: left; }
}
@media (max-width: 640px) {
    .site-wrap, .hero-frame { width: min(var(--max), calc(100% - 28px)); }
    .boxMedia, #link, #sitemap, #profileStu ul li { grid-template-columns: 1fr; }
    #profileStu ul li { display: grid; }
    .board_list thead { display: none; }
    .board_list, .board_list tbody, .board_list tr, .board_list td { display: block; width: auto; }
    .board_list td.num, .board_list td.hit, .board_list td.name { display: none; }
    .news-list .txt { white-space: normal; }
    .hero-lead h1, .page-hero h1 { font-size: 28px; }
}
