@charset "utf-8";
/* ============================================================
 *  영재교육원 공통 스타일
 *  - Tailwind 의존성을 제거하고 순수 CSS 로 재작성
 * ============================================================ */

/* ---------- 1. 변수 ---------- */
:root {
  /* 경기영재교육원 메인 컬러 (초록) — 변수명은 기존(blue-*)을 유지하되 값만 초록 계열로 재정의 */
  --navy:        #0f5c4c;   /* 로고·대제목 */
  --green:       #12705c;   /* 상단바 */
  --green-dark:  #0f5c4c;
  --green-light: #a7e3d3;
  --blue-900:    #12705c;   /* 서브페이지 제목·포인트 (진한 초록) */
  --blue-800:    #178a70;
  --blue-700:    #1d9c7f;
  --blue-600:    #23ad8e;
  --blue-500:    #35c2a2;
  --blue-200:    #b9e9dc;
  --blue-100:    #d9f3ec;
  --blue-50:     #eef9f5;
  --sky-50:      #f1faf7;

  --gray-900:    #111827;
  --gray-800:    #1f2937;
  --gray-700:    #374151;
  --gray-600:    #4b5563;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-300:    #d1d5db;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #f9fafb;

  --orange:      #f97316;
  --red-600:     #dc2626;

  --font-base:   'Noto Sans KR', 'Malgun Gothic', -apple-system, sans-serif;
  --fs-body:     17px;
  --container:   1200px;
  --radius:      8px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

/* ---------- 2. 리셋 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; color: var(--gray-900); }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: 0; background: none; }
address { font-style: normal; }

.wrap { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.wrap > main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 3. 애니메이션 ---------- */
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-float-up { animation: floatUp 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
.animate-fade-in  { animation: fadeIn .5s ease-in-out forwards; }
.delay-3 { opacity: 0; animation-delay: .3s; }
.delay-5 { opacity: 0; animation-delay: .5s; }

/* ============================================================
 *  4. 헤더
 * ============================================================ */
.header {
  position: relative;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  z-index: 50;
}

/* 4-1. 상단 유틸바 */
.topbar { background: var(--green); border-bottom: 1px solid var(--green-dark); }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 48px; color: #fff;
}
.topbar-title {
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  padding-right: 16px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.topbar-util {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0; font-size: 12px; color: rgba(255,255,255,.8);
}
.topbar-util a, .topbar-util button { color: inherit; transition: color .2s; }
.topbar-util a:hover, .topbar-util button:hover { color: #fff; }
.topbar-divider { color: rgba(255,255,255,.35); }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-user .name { color: var(--green-light); font-weight: 700; }

/* 4-2. 로고 + GNB */
.header-main {
  display: flex; justify-content: space-between; align-items: center; height: 96px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 8px 0; }
.logo-text {
  font-size: 24px; font-weight: 700; color: var(--green);
  letter-spacing: -.02em; white-space: nowrap;
}

.gnb { display: flex; align-items: center; height: 100%; }
.gnb > ul { display: flex; height: 100%; gap: 32px; }
.gnb > ul > li { position: relative; display: flex; align-items: center; height: 100%; }
.gnb > ul > li > a {
  display: block; padding: 8px; font-size: 18px; font-weight: 700;
  color: var(--gray-800); transition: color .2s;
}
.gnb > ul > li > a:hover,
.gnb > ul > li.on > a { color: var(--blue-900); }

.gnb-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 224px; display: flex; flex-direction: column; padding: 8px 0;
  background: var(--blue-900); box-shadow: var(--shadow-xl);
  border-radius: 0 0 6px 6px;
  opacity: 0; visibility: hidden; transition: all .2s; z-index: 50;
}
.gnb > ul > li:hover .gnb-sub,
.gnb > ul > li:focus-within .gnb-sub { opacity: 1; visibility: visible; }
.gnb-sub a {
  display: block; padding: 12px 24px; text-align: center; white-space: nowrap;
  font-size: 16px; font-weight: 500; color: #fff;
  border-bottom: 1px solid var(--blue-800); transition: background .2s;
}
.gnb-sub a:last-child { border-bottom: 0; }
.gnb-sub a:hover { background: var(--blue-800); }

/* 4-3. 모바일 토글 */
.nav-toggle { display: none; color: var(--gray-700); padding: 4px; }
.nav-toggle svg { width: 32px; height: 32px; }

.mobile-nav {
  display: none; position: absolute; width: 100%; z-index: 40;
  background: #fff; border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--gray-100); }
.mobile-nav > ul > li > a {
  display: block; padding: 16px 24px; font-weight: 700;
  color: var(--gray-800); background: var(--gray-50);
}
.mobile-nav .m-sub a {
  display: block; padding: 12px 32px; font-size: 14px; color: var(--gray-600);
}
.mobile-nav .m-sub a:hover { color: var(--blue-900); }

/* ============================================================
 *  5. 메인 - 히어로 슬라이더
 * ============================================================ */
.hero {
  position: relative; width: 100%; height: 85vh;
  overflow: hidden; background: #000;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.4); z-index: 10;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 10s linear;
}
.hero-slide.active img { transform: scale(1.1); }

.hero-caption {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 192px; pointer-events: none;
}
.hero-caption .inner { text-align: center; color: #fff; pointer-events: auto; }
.hero-caption h2 {
  font-size: 48px; font-weight: 700; color: #fff; white-space: nowrap;
  letter-spacing: -.02em; text-shadow: 0 2px 15px rgba(0,0,0,.7), 0 5px 5px rgba(0,0,0,.9);
}
.hero-caption .lead {
  margin-top: 24px; font-size: 24px; font-weight: 500;
  color: rgba(255,255,255,.95); text-shadow: 0 3px 3px rgba(0,0,0,.9);
}
.hero-caption .en {
  margin-top: 12px; font-size: 18px; font-weight: 300;
  letter-spacing: .05em; text-shadow: 0 2px 4px rgba(0,0,0,.9);
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 30; padding: 12px; border-radius: 50%;
  color: #fff; background: rgba(0,0,0,.2);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s, background .2s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.5); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 30;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 999px;
  background: rgba(255,255,255,.4); box-shadow: var(--shadow-md);
  transition: all .3s;
}
.hero-dots button:hover { background: rgba(255,255,255,.8); }
.hero-dots button.active { width: 32px; background: #fff; }

/* ============================================================
 *  6. 메인 - 게시판 영역 (BID 엔진 삽입 위치)
 * ============================================================ */
.main-boards { padding: 48px 0; background: #fff; }
.main-boards .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;
}
.main-boards .col { display: flex; flex-direction: column; height: 100%; background: #fff; }

/* ============================================================
 *  7. 서브 페이지 레이아웃
 * ============================================================ */
.sub-visual {
  position: relative; width: 100%; height: 192px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--gray-800);
}
.sub-visual .bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center center; background-size: cover;
  background-repeat: no-repeat;
}
.sub-visual .dim { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,.12); }
.sub-visual h2 {
  position: relative; z-index: 20; font-size: 30px; color: #fff;
  letter-spacing: .1em; text-shadow: var(--shadow-lg);
}

.sub-body { padding: 48px 0; }
.sub-layout { display: flex; gap: 40px; }

/* 7-1. 좌측 메뉴 */
.sub-aside { width: 256px; flex-shrink: 0; }
.lnb { background: #fff; border: 1px solid var(--gray-200); }
.lnb-head { padding: 24px; text-align: center; color: #fff; background: var(--blue-900); }
.lnb-head h3 { font-size: 20px; color: #fff; }
.lnb-head p {
  margin-top: 4px; font-size: 12px; color: var(--blue-200);
  text-transform: uppercase; letter-spacing: .05em;
}
.lnb-list li { border-bottom: 1px solid var(--gray-100); }
.lnb-list li:last-child { border-bottom: 0; }
.lnb-list a {
  display: block; padding: 16px 24px; text-align: center;
  font-size: 20px; font-weight: 700; color: var(--gray-600); transition: all .2s;
}
.lnb-list a:hover { background: var(--gray-50); color: var(--blue-800); }
.lnb-list a.on {
  color: var(--blue-800); background: var(--blue-50);
  border-left: 4px solid var(--blue-800);
}

/* 7-2. 본문 */
.sub-content { flex: 1; min-width: 0; min-height: 500px; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 16px; margin-bottom: 32px; border-bottom: 2px solid var(--gray-800);
}
.page-head h3 { font-size: 24px; color: var(--gray-800); }
.breadcrumb { font-size: 12px; color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gray-800); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .cur { font-weight: 700; color: var(--gray-800); }

/* ============================================================
 *  8. 본문 공통 컴포넌트
 * ============================================================ */
.stack-8  > * + * { margin-top: 32px; }
.stack-12 > * + * { margin-top: 48px; }

/* 8-1. 텍스트 박스 */
.text-box {
  padding: 32px; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: var(--radius);
}
.text-box p { text-align: justify; line-height: 1.9; }
.text-box p + p { margin-top: 24px; }

.notice-box {
  padding: 24px; background: var(--gray-50);
  border-left: 4px solid var(--blue-900); border-radius: 4px;
  font-weight: 500; color: var(--gray-800);
}

/* 8-2. 섹션 제목 */
.sec-title {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--gray-200);
}
.sec-title .bar { width: 6px; height: 32px; background: var(--blue-800); }
.sec-title h4 { font-size: 24px; }

.sec-title-diamond {
  padding-bottom: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--gray-200);
}
.sec-title-diamond h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; color: var(--blue-900);
}
.sec-title-diamond .dot {
  width: 8px; height: 8px; background: var(--blue-900); transform: rotate(45deg);
}

.num-title {
  padding-left: 12px; margin-bottom: 16px; font-size: 20px;
  border-left: 4px solid var(--blue-800);
}

.sub-head { margin-bottom: 8px; font-size: 18px; color: var(--blue-900); }
.paper {
  padding: 16px; background: #fff; border: 1px solid var(--gray-100);
  border-radius: 4px; box-shadow: var(--shadow-sm); line-height: 1.8;
}
.paper p + p { margin-top: 8px; }
.paper.loose p + p { margin-top: 16px; }
.indent { padding-left: 16px; }
.indent > * + * { margin-top: 32px; }

/* 8-3. 인사말 */
.greeting .photo {
  width: 256px; height: auto; float: right;
  margin: 0 0 24px 40px; border-radius: 4px; object-fit: cover;
}
.greeting p { margin-bottom: 24px; text-align: justify; line-height: 1.9; }
.greeting::after { content: ''; display: block; clear: both; }
.sign { margin-top: 48px; text-align: right; }
.sign .inner { display: inline-block; text-align: left; }
.sign .org { margin-bottom: 8px; }
.sign .name { display: flex; justify-content: flex-end; gap: 8px; }

/* 8-4. 교수 프로필 */
.prof { display: flex; gap: 24px; margin-bottom: 32px; background: #fff; }
.prof .thumb { width: 192px; flex-shrink: 0; }
.prof .thumb img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
.prof .info { flex: 1; }
.prof .info h5 {
  padding-bottom: 8px; margin-bottom: 16px; font-size: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.prof dl { display: grid; gap: 12px; margin: 0; }
.prof dl > div { display: grid; grid-template-columns: 80px 1fr; }
.prof dt { font-weight: 700; color: var(--gray-600); }
.prof dd { margin: 0; color: var(--gray-800); }
.prof dd ul { color: var(--gray-600); }
.prof dd li { position: relative; padding-left: 14px; }
.prof dd li + li { margin-top: 4px; }
.prof dd li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.prof a { color: var(--blue-600); }
.prof a:hover { text-decoration: underline; }

/* 8-5. 목표 리스트 */
.goal-list { display: grid; gap: 24px; }
.goal-item {
  display: flex; gap: 16px; padding: 24px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius); transition: all .2s;
}
.goal-item:hover { border-color: #8fdcc7; box-shadow: var(--shadow-md); }
.goal-item .no {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-900); color: #fff; font-weight: 700; font-size: 16px;
}
.goal-item .txt { display: flex; align-items: center; line-height: 1.8; }

.intro-banner {
  padding: 24px; text-align: center; line-height: 1.8; font-weight: 500;
  color: var(--gray-800); background: rgba(239,246,255,.5);
  border: 1px solid var(--blue-100); border-radius: var(--radius);
}

/* 8-6. 표 */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.table-wrap.flat { box-shadow: var(--shadow-sm); }

.tbl { min-width: 600px; }
.tbl thead { background: var(--blue-900); color: #fff; }
.tbl thead th {
  padding: 16px 24px; text-align: center; font-weight: 700;
  border-right: 1px solid var(--blue-800);
}
.tbl thead th:last-child { border-right: 0; }
.tbl tbody tr { border-bottom: 1px solid var(--gray-200); background: #fff; }
.tbl tbody tr:hover { background: var(--blue-50); }
.tbl tbody td {
  padding: 16px 24px; text-align: center; color: var(--gray-600);
  border-right: 1px solid var(--gray-100);
}
.tbl tbody td:last-child { border-right: 0; }
.tbl tbody td.strong { color: var(--gray-800); font-weight: 500; }
.tbl tfoot { background: var(--gray-100); font-weight: 700; color: var(--gray-900); }
.tbl tfoot td { padding: 16px 24px; text-align: center; border-right: 1px solid var(--gray-200); }
.tbl tfoot td:last-child { border-right: 0; }

/* 모집요강용 표 */
.tbl-apply { min-width: 700px; }
.tbl-apply thead th {
  padding: 12px 16px; text-align: center;
  background: rgba(219,234,254,.5); color: var(--gray-800);
  border-right: 1px solid var(--blue-200); border-bottom: 1px solid var(--blue-200);
}
.tbl-apply thead th.white { background: #fff; }
.tbl-apply thead th.light { background: var(--blue-50); }
.tbl-apply thead th.normal { font-weight: 400; color: var(--gray-600); background: #fff; }
.tbl-apply tbody tr { border-bottom: 1px solid var(--gray-200); }
.tbl-apply tbody tr:hover { background: var(--gray-50); }
.tbl-apply tbody td {
  padding: 12px 16px; text-align: center; color: var(--gray-700);
  border-right: 1px solid var(--gray-100);
}
.tbl-apply tbody td.head { font-weight: 500; }
.tbl-apply tbody td.merge { background: rgba(249,250,251,.5); font-weight: 500; border-left: 1px solid var(--gray-100); }
.tbl-apply tbody td.doc { padding: 16px 24px; text-align: left; line-height: 1.9; }
.tbl-apply tbody td.doc-label {
  padding: 16px; text-align: center; font-weight: 700;
  color: var(--gray-800); background: rgba(249,250,251,.5);
}
.tbl-note { margin-top: 8px; text-align: right; color: var(--gray-500); }

/* 게시판 표 */
.tbl-board { border-top: 2px solid var(--gray-900); }
.tbl-board thead { background: #f9f9f9; border-bottom: 1px solid #ddd; }
.tbl-board thead th {
  padding: 12px 24px; text-align: center; font-size: 15px;
  font-weight: 500; color: #222;
}
.tbl-board tbody tr { background: #fff; border-bottom: 1px solid #f3f3f3; }
.tbl-board tbody tr:hover { background: var(--gray-50); }
.tbl-board tbody td { padding: 12px 24px; text-align: center; color: #222; }
.tbl-board tbody td.subject { text-align: left; font-weight: 500; }
.tbl-board tbody td.subject a:hover { color: var(--blue-700); }
.tbl-board tbody td.date { color: #777; font-weight: 400; white-space: nowrap; }
.col-no   { width: 64px; }
.col-date { width: 128px; }
.col-w32  { width: 128px; }
.col-w24  { width: 96px; }
.col-w20  { width: 80px; }
.col-file { width: 160px; }
.col-reg  { width: 192px; }

.badge-notice {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--orange); color: #fff; font-size: 12px;
  font-weight: 700; letter-spacing: -.02em; vertical-align: middle;
}
.badge-file {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  font-weight: 700; line-height: 1;
}
.badge-file.pdf  { background: var(--red-600); color: #fee2e2; }
.badge-file.hwp  { background: var(--blue-600); color: var(--blue-100); }
.badge-file.etc  { background: #4b5563; color: var(--gray-100); }

/* 8-7. 오시는 길 */
.map-card {
  padding: 32px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
}
.map-card h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 20px; }
.map-card h4 svg { width: 24px; height: 24px; color: var(--blue-800); }
.map-card .addr { padding-left: 32px; margin-bottom: 32px; color: var(--gray-700); }
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius);
}
.map-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.map-fallback {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray-500); background: var(--gray-50);
}
.map-fallback.show { display: flex; }
.map-fallback svg { width: 64px; height: 64px; margin-bottom: 8px; color: var(--gray-300); }
.map-fallback .btn {
  margin-top: 16px; padding: 8px 16px; border-radius: 4px;
  background: #22c55e; color: #fff; font-size: 14px; font-weight: 700;
}
.way-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.way-item {
  padding: 16px; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: 4px;
}
.way-item h5 { margin-bottom: 8px; color: var(--gray-800); }
.way-item li { color: var(--gray-600); }
.way-item li + li { margin-top: 4px; }

/* 8-8. 모집요강 */
.apply-hero {
  padding: 32px 0; margin-bottom: 32px; text-align: center;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
}
.apply-hero h2 { margin-bottom: 8px; font-size: 30px; }
.apply-hero h3 { font-size: 24px; color: var(--blue-800); }

.info-card {
  padding: 24px; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.info-card > * + * { margin-top: 16px; }
.info-card .label { margin-right: 8px; font-weight: 700; color: var(--gray-800); }
.list-dot { padding: 16px; background: var(--gray-50); border-radius: 4px; color: var(--gray-600); }
.list-dot li { position: relative; padding-left: 16px; }
.list-dot li + li { margin-top: 8px; }
.list-dot li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}

.highlight-box {
  padding: 24px; text-align: center; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--radius);
}
.highlight-box p { font-size: 18px; font-weight: 700; color: var(--gray-800); }

.step-card {
  padding: 24px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); transition: box-shadow .2s;
}
.step-card + .step-card { margin-top: 24px; }
.step-card:hover { box-shadow: var(--shadow-md); }
.step-card h5 { margin-bottom: 12px; font-size: 18px; color: var(--blue-800); }
.step-card .body { padding-left: 16px; color: var(--gray-700); }
.step-card .body > * + * { margin-top: 8px; }
.step-card .body .em { font-weight: 600; color: var(--gray-900); }
.step-card .body .gray { margin-top: 8px; padding: 12px; background: var(--gray-50); border-radius: 4px; }

.contact-box { padding: 24px; background: var(--gray-100); border-radius: var(--radius); color: var(--gray-700); }
.contact-box .name { margin-bottom: 8px; font-weight: 700; }
.contact-box li + li { margin-top: 4px; }
.contact-box a { color: var(--blue-600); text-decoration: underline; }

.tip {
  display: inline-block; margin-top: 24px; padding: 12px 24px;
  border-radius: 999px; background: var(--blue-50);
  border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm);
  color: var(--blue-600); font-weight: 700;
}
.center { text-align: center; }

/* 8-9. 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gallery-item {
  overflow: hidden; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius); transition: box-shadow .2s;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.gallery-item .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.gallery-item:hover .thumb img { transform: scale(1.05); }
.gallery-item .body { padding: 16px; }
.gallery-item h4 {
  margin-bottom: 8px; font-size: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-item:hover h4 { color: var(--blue-800); }
.gallery-item .date { text-align: right; color: var(--gray-500); }

/* 8-10. 페이지네이션 */
.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination nav { display: inline-flex; box-shadow: var(--shadow-sm); border-radius: 6px; }
.pagination button {
  display: inline-flex; align-items: center; padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  background: #fff; border: 1px solid var(--gray-300); margin-left: -1px;
}
.pagination button:first-child { padding: 8px; border-radius: 6px 0 0 6px; margin-left: 0; color: var(--gray-500); }
.pagination button:last-child  { padding: 8px; border-radius: 0 6px 6px 0; color: var(--gray-500); }
.pagination button:hover { background: var(--gray-50); }
.pagination button.on { color: var(--blue-600); }
.pagination button.on:hover { background: var(--blue-50); }
.pagination svg { width: 20px; height: 20px; }

/* 8-11. 관련 사이트 */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-grid a {
  display: block; padding: 16px; text-align: center;
  background: var(--sky-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); transition: all .2s;
}
.link-grid a:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); }
.link-grid span { font-weight: 700; color: var(--blue-700); }

/* 8-12. 접근 권한 없음 */
.no-access {
  padding: 80px 20px; text-align: center; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
}
.no-access svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--gray-400); display: block; }
.no-access h3 { margin-bottom: 8px; font-size: 20px; color: var(--gray-800); }
.no-access p { color: var(--gray-600); }

.btn-write {
  padding: 8px 16px; border-radius: 4px; background: var(--blue-900);
  color: #fff; font-size: 14px; font-weight: 700; transition: background .2s;
}
.btn-write:hover { background: var(--blue-800); }
.board-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* ============================================================
 *  9. 푸터
 * ============================================================ */
.footer { background: #222; color: #ddd; line-height: 1.6; }
.footer a:hover { color: #6fd6b9; }
.footer-links { display: flex; justify-content: center; padding: 24px 0; }
.footer-links ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  width: 100%; font-size: 15px;
}
.footer-links a { font-weight: 700; transition: color .2s; }
.footer-links .bar { width: 1px; height: 12px; margin: 0 16px; background: #666; }
.footer-line { width: 100%; height: 1px; background: #666; }
.footer-info { padding: 24px 0; text-align: center; }
.footer-info .row {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 16px; font-size: 15px; font-weight: 700;
}
.footer-info .item { display: flex; align-items: center; }
.footer-info .tag {
  margin-right: 8px; padding: 1px 5px; border-radius: 3px;
  background: #666; color: #fff; font-size: 15px;
}
.footer-info .sep { margin: 0 24px; color: #666; }
.footer-copy { color: #777; font-weight: 700; font-size: 15px; }

/* ============================================================
 *  10. 반응형
 * ============================================================ */
@media (max-width: 1023px) {
  .gnb { display: none; }
  .nav-toggle { display: block; }
  .header-main { height: 80px; }
  .logo-text { font-size: 20px; white-space: normal; }
  .topbar-title { font-size: 14px; }

  .sub-layout { flex-direction: column; gap: 24px; }
  .sub-aside { width: 100%; }
  .lnb-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .lnb-list a { font-size: 16px; padding: 12px; }
  .lnb-list a.on { border-left: 0; border-bottom: 3px solid var(--blue-800); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
  .main-boards .grid { grid-template-columns: 1fr; gap: 32px; }

  .hero { height: 70vh; }
  .hero-caption { padding-top: 128px; }
  .hero-caption h2 { font-size: 26px; white-space: normal; }
  .hero-caption .lead { font-size: 18px; }
  .hero-caption .en { font-size: 14px; }
}

@media (max-width: 767px) {
  :root { --fs-body: 16px; }
  .topbar-title { display: none; }
  .topbar-inner { justify-content: flex-end; }

  .greeting .photo { float: none; width: 100%; margin: 0 0 24px 0; }
  .prof { flex-direction: column; }
  .prof .thumb { width: 100%; max-width: 220px; }
  .way-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .text-box, .map-card { padding: 20px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .breadcrumb { display: none; }
  .sub-visual h2 { font-size: 22px; }
  .apply-hero h2 { font-size: 22px; }
  .apply-hero h3 { font-size: 18px; }
  .footer-info .row { flex-direction: column; gap: 12px; }
  .footer-info .sep { display: none; }
}
