/* =========================================================
   중앙기독학교 입학처 - 고려대학교 입학처형 레이아웃
   (공통 헤더/GNB · 전체메뉴 · 서브비주얼 · 경로바 · 푸터 · 메인 풀페이지 섹션)
   style.css(공통 컴포넌트) 다음에 로드된다. 관리자 화면에는 로드하지 않음.
   ========================================================= */

:root {
    --hd-h: 90px;
    --ivory: #f6f3ec;
    --ivory-200: #ece6d9;
    --navy: var(--brand-800);
    --navy-deep: var(--brand-900);
    --gold: var(--gold-500);
    --wrap: 1400px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

body { overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
body.is-locked { overflow: hidden; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-nav a {
    position: fixed; top: -60px; left: 16px; z-index: 1000;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
    font-weight: 700; transition: top .2s;
}
.skip-nav a:focus { top: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.hd {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    height: var(--hd-h);
    color: #fff;
    transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s;
}
.hd::before {           /* 투명 헤더 위 가독성용 그라데이션 */
    content: ''; position: absolute; inset: 0 0 -40px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(5, 18, 40, .45), rgba(5, 18, 40, 0));
    transition: opacity .3s;
}
.hd.is-solid, .hd.is-hover, body.page-sub .hd.is-solid {
    background: #fff; color: var(--ink-900);
    box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(8, 33, 63, .06);
}
.hd.is-solid::before, .hd.is-hover::before { opacity: 0; }

.hd-inner {
    position: relative; z-index: 2;
    display: flex; align-items: stretch; height: 100%;
    padding-left: 40px;
}
.hd-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 24px; }
.hd-logo a { display: block; position: relative; }
.hd-logo img { height: 46px; width: auto; transition: opacity .25s; }
.hd-logo .logo-c { position: absolute; inset: 0; opacity: 0; }
.hd.is-solid .hd-logo .logo-w, .hd.is-hover .hd-logo .logo-w { opacity: 0; }
.hd.is-solid .hd-logo .logo-c, .hd.is-hover .hd-logo .logo-c { opacity: 1; }

/* GNB */
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb-list { display: flex; height: 100%; }
.gnb-item { position: relative; }
.gnb-link {
    display: flex; align-items: center; height: 100%;
    padding: 0 clamp(14px, 1.6vw, 30px);
    font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap;
    position: relative;
}
.gnb-link::after {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px;
    background: var(--gold); transition: left .25s var(--ease), right .25s var(--ease);
}
.gnb-item:hover > .gnb-link::after, .gnb-item:focus-within > .gnb-link::after,
.gnb-item.is-current > .gnb-link::after { left: 18%; right: 18%; }
.gnb-item:hover > .gnb-link, .gnb-item:focus-within > .gnb-link { color: var(--navy); }

.gnb-sub {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, -6px);
    min-width: 100%; width: max-content; max-width: 220px;
    padding: 14px 0 16px;
    background: var(--ivory);
    border-top: 2px solid var(--navy);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(8, 33, 63, .14);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.gnb-item:hover > .gnb-sub, .gnb-item:focus-within > .gnb-sub {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.gnb-sub a {
    display: block; padding: 9px 22px; text-align: center;
    font-size: 14.5px; color: var(--ink-700); line-height: 1.4;
}
.gnb-sub a:hover, .gnb-sub a:focus { color: var(--navy); font-weight: 700; }

/* 헤더 오른쪽 유틸 */
.hd-util { display: flex; align-items: stretch; margin-left: auto; }
.hd-family { position: relative; display: flex; }
.hd-family-btn {
    display: flex; align-items: center; gap: 10px;
    height: 100%; padding: 0 26px;
    background: var(--navy); color: #fff; border: 0; cursor: pointer;
    font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap;
}
.hd-family-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.hd-family.is-open .hd-family-btn svg { transform: rotate(180deg); }
.hd-family-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); padding: 8px 0;
    display: none;
}
.hd-family.is-open .hd-family-list { display: block; }
.hd-family-list a { display: block; padding: 10px 26px; color: rgba(255,255,255,.82); font-size: 14px; }
.hd-family-list a:hover, .hd-family-list a:focus { color: #fff; background: rgba(255,255,255,.08); }

.hd-icons { display: flex; background: var(--gold); }
.hd-icon {
    display: flex; align-items: center; justify-content: center;
    width: 76px; height: 100%; border: 0; background: transparent; color: #fff; cursor: pointer;
    transition: background .2s;
}
.hd-icon:hover, .hd-icon:focus-visible { background: rgba(0,0,0,.12); }
.hd-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-allmenu .ico-burger { display: none; }

/* ---------------------------------------------------------
   Layers: search / sitemap
   --------------------------------------------------------- */
.search-layer, .sitemap {
    position: fixed; inset: 0; z-index: 500;
}
.search-layer[hidden], .sitemap[hidden] { display: none; }

.layer-close {
    position: absolute; width: 52px; height: 52px; border: 0; background: transparent; cursor: pointer;
}
.layer-close::before, .layer-close::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 2px;
    background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.layer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.search-layer { background: rgba(6, 22, 46, .94); color: #fff; animation: fadeIn .25s ease; }
.search-layer-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 22vh 24px 0; }
.search-layer .layer-close { top: 28px; right: 24px; color: #fff; position: fixed; }
.search-eyebrow { margin: 0 0 18px; font-size: 15px; font-weight: 800; letter-spacing: .3em; color: var(--gold); }
.search-form { display: flex; border-bottom: 2px solid rgba(255,255,255,.85); }
.search-form input {
    flex: 1; border: 0; background: transparent; color: #fff;
    font-size: clamp(20px, 3vw, 32px); padding: 14px 0; outline: none; border-radius: 0;
}
.search-form input::placeholder { color: rgba(255,255,255,.45); }
.search-form button { width: 64px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.search-form button svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-keywords { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 24px; font-size: 14.5px; }
.search-keywords span { color: rgba(255,255,255,.55); margin-right: 6px; }
.search-keywords a { color: rgba(255,255,255,.88); }
.search-keywords a:hover { color: var(--gold); }

.sitemap { display: flex; background: rgba(6, 22, 46, .5); animation: fadeIn .25s ease; }
.sitemap-photo {
    flex: 0 0 30%; background-size: cover; background-position: center; position: relative;
}
.sitemap-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,22,46,.75), rgba(6,22,46,.05) 55%); }
.sitemap-photo-text { position: absolute; left: 40px; bottom: 44px; z-index: 1; color: #fff; }
.sitemap-photo-text strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sitemap-photo-text span { font-size: 15px; opacity: .8; }
.sitemap-panel {
    flex: 1; background: #fff; overflow-y: auto; padding: 36px 6vw 48px;
    animation: slideIn .35s var(--ease);
}
.sitemap-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sitemap-logo img { height: 42px; }
.sitemap-top .layer-close { position: relative; color: var(--ink-900); }
.sitemap-row {
    display: flex; align-items: center; gap: 24px;
    padding: 24px 0; border-bottom: 1px solid var(--line);
}
.sitemap-title {
    flex: 0 0 200px; text-align: left; border: 0; background: none; padding: 0; cursor: default;
    font: inherit; font-size: 21px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em;
}
.sitemap-row.is-current .sitemap-title { color: var(--navy); }
.sitemap-sub { display: flex; flex-wrap: wrap; align-items: center; }
.sitemap-sub li { display: flex; align-items: center; }
.sitemap-sub li + li::before { content: '/'; color: var(--ink-400); margin: 0 18px; font-size: 13px; }
.sitemap-sub a { font-size: 15px; color: var(--ink-700); padding: 4px 0; }
.sitemap-sub a:hover, .sitemap-sub a.is-current { color: var(--navy); font-weight: 700; }
.sitemap-family { display: none; }

/* ---------------------------------------------------------
   Sub visual + location + tabs
   --------------------------------------------------------- */
.sub-visual {
    position: relative; height: 340px;
    background-size: cover; background-position: center 40%;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.sub-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,22,46,.55), rgba(6,22,46,.35) 50%, rgba(6,22,46,.6)); }
.sub-visual-inner { position: relative; padding-top: calc(var(--hd-h) - 10px); }
.sub-visual-en { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-100); }
.sub-visual-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }

.location { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.location-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; min-height: 58px; }
.location-home { display: flex; align-items: center; justify-content: center; width: 56px; color: var(--ink-600); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.location-home svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.location-text { display: flex; align-items: center; padding: 0 20px; font-weight: 700; color: var(--navy); }
.location-drop { position: relative; border-right: 1px solid var(--line); }
.location-drop > button {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-width: 220px; height: 100%; padding: 0 20px;
    border: 0; background: #fff; cursor: pointer; font: inherit; font-size: 15px; color: var(--ink-700); text-align: left;
}
.location-drop.is-depth2 > button { color: var(--navy); font-weight: 700; }
.location-drop > button::after {
    content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex-shrink: 0;
}
.location-drop.is-open > button::after { transform: rotate(-135deg) translate(-2px, -2px); }
.location-drop ul {
    display: none; position: absolute; left: -1px; right: -1px; top: 100%;
    background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 8px 0;
    box-shadow: 0 14px 30px rgba(8,33,63,.12);
}
.location-drop.is-open ul { display: block; }
.location-drop ul a { display: block; padding: 9px 20px; font-size: 14.5px; color: var(--ink-600); }
.location-drop ul a:hover, .location-drop ul a.is-current { color: var(--navy); font-weight: 700; background: var(--mist); }
.location-tools { margin-left: auto; display: flex; border-left: 1px solid var(--line); }
.location-tools button {
    width: 56px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--ink-600); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.location-tools button:hover { color: var(--navy); background: var(--mist); }
.location-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.sub-tabs { max-width: 1180px; margin: 44px auto 0; padding: 0 24px; }
.sub-tabs ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.sub-tabs a {
    display: block; padding: 11px 26px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: 15px; font-weight: 600; color: var(--ink-600); transition: all .2s;
}
.sub-tabs a:hover { border-color: var(--navy); color: var(--navy); }
.sub-tabs a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

.sub-content { min-height: 40vh; padding-bottom: 40px; }
.sub-content > .container.section:first-child { padding-top: 48px; }
/* 서브비주얼에 제목이 이미 크게 나오므로 본문 첫 제목은 작게 */
.sub-content > .container.section > .section-head:first-child h2 { font-size: 24px; }

/* ---------------------------------------------------------
   게시판 (고려대형 테이블)
   --------------------------------------------------------- */
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-total { margin: 0; font-size: 15px; color: var(--ink-600); }
.board-total strong { color: var(--navy); }
.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 15px; }
.board-table th { padding: 15px 10px; font-weight: 700; color: var(--ink-900); border-bottom: 1px solid var(--ink-400); background: #fff; }
.board-table td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink-600); }
.board-table td.col-title { text-align: left; }
.board-table td.col-title a { color: var(--ink-900); display: inline-flex; align-items: center; gap: 8px; }
.board-table td.col-title a:hover { color: var(--navy); text-decoration: underline; }
.board-table tr.is-pinned td.col-title a { color: var(--navy); font-weight: 700; }
.board-table .col-num { width: 80px; }
.board-table .col-writer, .board-table .col-state, .board-table .col-file, .board-table .col-hit { width: 100px; }
.board-table .col-date { width: 120px; font-size: 14px; }
.board-table .board-empty { padding: 60px 0; color: var(--ink-400); }
.board-table tbody tr:hover { background: #fafbfd; }
.notice-badge {
    display: inline-block; min-width: 46px; padding: 3px 8px; border-radius: 4px;
    background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
}
.file-icon { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-600); font-size: 13px; }
.file-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.state-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-400); border: 1px solid var(--line); }
.state-badge.is-done { color: var(--brand-700); border-color: var(--brand-500); background: var(--brand-100); }
.lock { font-size: 13px; }

.board-view { border-top: 2px solid var(--navy); }
.board-view-head { padding: 28px 8px 22px; border-bottom: 1px solid var(--line); }
.board-view-head h2 { font-size: 24px; font-weight: 800; margin: 10px 0 12px; line-height: 1.4; }
.board-view-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-400); font-size: 14px; }
.board-view-body { padding: 36px 8px; line-height: 1.9; font-size: 15.5px; min-height: 160px; border-bottom: 1px solid var(--line); }
.answer-box { margin-top: 28px; padding: 26px 28px; background: var(--ivory); border-radius: 14px; border-left: 4px solid var(--gold); }
.answer-label { font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.answer-body { line-height: 1.85; }
.answer-date { color: var(--ink-400); font-size: 13px; margin-top: 12px; }
.secret-gate { text-align: center; padding: 56px 16px; }
.secret-gate p { color: var(--ink-600); margin: 0 0 18px; }
.secret-form { display: flex; justify-content: center; gap: 8px; max-width: 360px; margin: 0 auto; }
.secret-form input { flex: 1; }

.form-row { display: flex; gap: 20px; }
.form-row > .field-group { flex: 1; min-width: 0; }
.privacy-box { padding: 18px 20px; background: var(--mist); border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; }
.privacy-box p { margin: 6px 0 0; color: var(--ink-600); }

/* ---------------------------------------------------------
   원서접수 안내 페이지
   --------------------------------------------------------- */
.guide-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; margin: 0; padding: 0; }
.guide-step {
    position: relative; padding: 28px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
    counter-increment: step;
}
.guide-step::before {
    content: 'STEP ' counter(step, decimal-leading-zero); display: block; margin-bottom: 12px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--gold-600);
}
.guide-step h4 { font-size: 17px; margin-bottom: 8px; color: var(--navy); }
.guide-step p { margin: 0; font-size: 14px; color: var(--ink-600); line-height: 1.7; }
.period-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.period-table th, .period-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.period-table th { width: 34%; background: var(--mist); font-weight: 700; color: var(--ink-700); }
.period-table .is-now { color: var(--brand-700); font-weight: 700; }
.period-table .is-now::after { content: '진행중'; margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #fff; }
.guide-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------------------------------------------------------
   공통: 섹션 제목 (CCA + 제목), more 버튼, 페이저
   --------------------------------------------------------- */
.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--ink-900); }
.sec-title b { font-size: 1.55em; font-weight: 900; color: var(--navy); letter-spacing: -.04em; line-height: 1; }
.pill-more {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
    background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700;
}
.pill-more:hover { background: var(--navy-deep); }
.circle-more {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--navy); color: var(--navy); font-size: 22px; line-height: 1;
}
.circle-more:hover { background: var(--navy); color: #fff; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.pager-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink-900); background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--ink-900);
}
.pager-btn:disabled { opacity: .3; cursor: default; }
.pager-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.pager-num { font-size: 15px; color: var(--ink-400); min-width: 72px; text-align: center; }
.pager-num b { font-size: 24px; color: var(--ink-900); font-weight: 800; }
.progress { height: 4px; background: var(--ivory-200); border-radius: 4px; overflow: hidden; margin-top: 26px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .45s var(--ease); }

/* ---------------------------------------------------------
   Schedule widget (메인 + 입학일정 페이지)
   --------------------------------------------------------- */
.schedule-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 16px; }
.schedule-year {
    width: auto; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-700);
    padding: 6px 28px 6px 6px; cursor: pointer;
}
.schedule-months {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px;
    background: var(--navy); border-radius: 14px; padding: 6px;
}
.schedule-month {
    position: relative; border: 0; background: transparent; color: rgba(255,255,255,.88); cursor: pointer;
    padding: 24px 0 8px; border-radius: 10px; font: inherit; font-size: 15px;
}
.schedule-month .cnt {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
    background: var(--gold); color: #fff; border: 2px solid var(--navy);
    font-size: 12px; font-weight: 800; line-height: 20px; display: none;
}
.schedule-month.has-event .cnt { display: block; }
.schedule-month:hover { background: rgba(255,255,255,.1); }
.schedule-month.is-active { background: #fff; color: var(--navy); font-weight: 800; }
.schedule-month.is-active .cnt { border-color: #fff; }
.schedule-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.schedule-item {
    display: grid; grid-template-columns: 170px 110px 120px 1fr; align-items: center; gap: 16px;
    padding: 12px 26px; min-height: 70px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 6px 18px rgba(8,33,63,.04);
}
.schedule-item .d { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
.schedule-item .y { font-size: 13.5px; color: var(--ink-400); }
.schedule-item .c {
    justify-self: start; padding: 5px 16px; border: 1px solid var(--navy); border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.schedule-item .c.cat-서류 { border-color: var(--gold-600); color: var(--gold-600); }
.schedule-item .c.cat-발표 { background: var(--navy); color: #fff; }
.schedule-item .t { font-size: 16px; color: var(--ink-900); }
.schedule-item .t small { display: block; color: var(--ink-400); font-size: 13px; margin-top: 2px; }
.schedule-item a.t:hover { color: var(--navy); text-decoration: underline; }
.schedule-item.is-today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.schedule-empty { padding: 48px 0; text-align: center; color: var(--ink-400); background: #fff; border-radius: 14px; border: 1px dashed var(--line); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.ft { background: var(--navy); color: rgba(255,255,255,.75); }
.ft-main { padding: 52px 0 46px; }
.ft-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 40px; align-items: flex-start; }
.ft-logo { height: 52px; width: auto; }
.ft-contact { flex: 1; }
.ft-call { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.ft-call-label { margin: 0; display: flex; flex-direction: column; color: #fff; }
.ft-call-label span { font-size: 14px; opacity: .85; }
.ft-call-label strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.ft-hours { margin: 0; font-size: 14px; color: #fff; opacity: .9; }
.ft-call-num a { display: block; color: #fff; font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ft-addr { margin-top: 16px; font-style: normal; font-size: 14px; }
.ft-addr a:hover { color: #fff; }
.ft-addr .bar { margin: 0 8px; opacity: .4; }
.ft-copy { margin: 4px 0 0; font-size: 12.5px; letter-spacing: .02em; opacity: .7; }
.ft-family { position: relative; width: 240px; flex-shrink: 0; }
.ft-family > button {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px; border-radius: 999px; border: 0; background: #fff; color: var(--ink-700);
    font: inherit; font-size: 14px; cursor: pointer;
}
.ft-family > button::after { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translateY(2px); transition: transform .2s; }
.ft-family.is-open > button::after { transform: rotate(-135deg) translate(2px, 0); }
.ft-family ul { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #fff; border-radius: 16px; padding: 10px 0; box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.ft-family.is-open ul { display: block; }
.ft-family ul a { display: block; padding: 9px 22px; font-size: 14px; color: var(--ink-700); }
.ft-family ul a:hover { color: var(--navy); background: var(--mist); }
.ft-links { background: #1f2329; }
.ft-links ul { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: center; flex-wrap: wrap; }
.ft-links a { display: block; padding: 22px 26px; color: rgba(255,255,255,.72); font-size: 14px; }
.ft-links a:hover { color: #fff; }

/* TOP 버튼 */
.btn-top {
    position: fixed; right: 28px; bottom: 28px; z-index: 250;
    width: 62px; height: 62px; border-radius: 50%;
    background: var(--ivory); color: var(--ink-900); box-shadow: 0 8px 24px rgba(8,33,63,.18);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.btn-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn-top.is-show { opacity: 1; visibility: visible; transform: none; }
.btn-top:hover { background: var(--navy); color: #fff; }

.toast {
    position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 600;
    background: rgba(18,22,31,.92); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px;
    opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   MAIN (풀페이지 섹션)
   ========================================================= */
.page-main .main-content { display: block; }
.fp-section { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.fp-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(var(--hd-h) + 20px) 24px 40px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.fp-head.no-line { border-bottom: 0; margin-bottom: 18px; padding-bottom: 0; }

/* 좌측 섹션 내비게이션 (고려대형 세로 알약) */
.fp-nav {
    position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 200;
    padding: 18px 10px; border-radius: 30px; background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .3s;
}
.fp-nav.is-light { background: rgba(8,33,63,.06); }
.fp-nav ul { display: flex; flex-direction: column; gap: 14px; }
.fp-nav a { position: relative; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.fp-nav a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; transition: all .25s; }
.fp-nav.is-light a::before { background: var(--navy); }
.fp-nav a.is-active::before { width: 14px; height: 14px; background: transparent; border: 2.5px solid #fff; }
.fp-nav.is-light a.is-active::before { border-color: var(--navy); }
.fp-nav a span {
    position: absolute; left: 30px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #fff;
    opacity: 0; transform: translateX(-4px); transition: all .25s; pointer-events: none;
}
.fp-nav.is-light a span { color: var(--navy); }
.fp-nav a.is-active span, .fp-nav a:hover span { opacity: 1; transform: none; }

/* --- 1. Visual --- */
.sec-visual { color: #fff; background: var(--navy-deep); }
.visual-slides { position: absolute; inset: 0; }
.visual-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear;
}
.visual-slide.active { opacity: 1; transform: scale(1); }
.visual-slide .hero-video-embed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.visual-slide .hero-video-embed iframe {
    position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%); border: 0;
}
.sec-visual::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(6,22,46,.35), rgba(6,22,46,.15) 40%, rgba(6,22,46,.55)); pointer-events: none; }
.visual-text { position: relative; z-index: 2; text-align: center; padding: var(--hd-h) 24px 0; max-width: 1100px; margin: 0 auto; }
.visual-eyebrow { margin: 0 0 10px; font-size: clamp(18px, 2vw, 28px); font-weight: 400; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.visual-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1.22; letter-spacing: -.04em; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.visual-title em { font-style: normal; color: var(--gold-100); }
.visual-desc { margin: 16px 0 0; font-size: clamp(14px, 1.2vw, 17px); opacity: .9; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.visual-btns { display: flex; justify-content: center; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.glass-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
    min-width: 260px; padding: 18px 26px; border-radius: 999px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 15.5px; font-weight: 700; transition: all .25s;
}
.glass-btn::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: transform .25s; }
.glass-btn:hover { background: #fff; color: var(--navy); }
.glass-btn:hover::after { background: var(--gold); transform: scale(1.4); }
.visual-caption { margin-top: 18px; font-size: 14px; opacity: .85; min-height: 1.4em; }

.visual-pager {
    position: absolute; z-index: 3; top: calc(var(--hd-h) + 54px); left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px;
}
.visual-pager button { width: 36px; height: 36px; border: 0; background: none; color: rgba(255,255,255,.75); font: inherit; font-size: 15px; cursor: pointer; position: relative; }
.visual-pager button.is-active { color: #fff; font-weight: 800; }
.visual-pager button.is-active::after {
    content: ''; position: absolute; inset: 4px; border-radius: 50%;
    border: 2px solid transparent; border-right-color: #fff; border-top-color: #fff;
    animation: spin 5.5s linear;
}
.visual-pager .vp-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.visual-pager .vp-toggle .i-play { display: none; }
.visual-pager .vp-toggle.is-paused .i-play { display: inline; }
.visual-pager .vp-toggle.is-paused .i-pause { display: none; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.visual-arrows {
    position: absolute; z-index: 3; right: 30px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
    background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.visual-arrows button { width: 48px; height: 52px; border: 0; background: none; color: #fff; cursor: pointer; }
.visual-arrows button:hover { background: rgba(255,255,255,.2); }
.visual-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.scroll-down {
    position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 600;
}
.scroll-down .mouse { width: 24px; height: 36px; border: 2px solid #fff; border-radius: 12px; position: relative; }
.scroll-down .mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: wheel 1.6s infinite; }
.scroll-down svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; animation: bob 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.dday-chip {
    position: absolute; z-index: 3; right: 100px; bottom: 40px;
    display: flex; align-items: stretch; border-radius: 18px; overflow: hidden;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dday-chip .n { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 20px; background: var(--gold); font-weight: 800; }
.dday-chip .n b { font-size: 28px; line-height: 1; }
.dday-chip .n small { font-size: 11px; letter-spacing: .06em; margin-top: 3px; }
.dday-chip .b { padding: 14px 22px; display: flex; flex-direction: column; justify-content: center; }
.dday-chip .b strong { font-size: 15px; }
.dday-chip .b span { font-size: 13px; opacity: .8; }

.hero-play-btn {
    position: absolute; z-index: 4; left: 50%; bottom: 120px; transform: translateX(-50%);
    width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-size: 20px; cursor: pointer;
}
.video-modal { position: fixed; inset: 0; z-index: 700; display: none; align-items: center; justify-content: center; }
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.video-modal-box { position: relative; width: min(1000px, 92vw); aspect-ratio: 16/9; }
.video-modal-frame, .video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; }

/* --- 2. Notice --- */
.sec-notice { background: #fff; }
.notice-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-tabs button {
    padding: 9px 20px; border-radius: 999px; border: 0; background: var(--mist); color: var(--ink-600);
    font: inherit; font-size: 14.5px; cursor: pointer; transition: all .2s;
}
.notice-tabs button:hover { color: var(--navy); }
.notice-tabs button.is-active { background: var(--navy); color: #fff; font-weight: 700; }
.notice-panel[hidden] { display: none; }
.card-track-wrap { overflow: hidden; margin: 0 -10px; padding: 6px 0 4px; }
.card-track { display: flex; transition: transform .55s var(--ease); }
.card-track > * { flex: 0 0 25%; padding: 0 10px; }
.n-card {
    display: flex; flex-direction: column; height: 260px; padding: 26px 26px 22px;
    border: 1px solid var(--line); border-radius: 24px; background: #fff;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.n-card:hover { border-color: var(--navy); box-shadow: 0 16px 36px rgba(8,33,63,.12); transform: translateY(-4px); }
.n-card .tag { align-self: flex-start; padding: 4px 12px; border-radius: 6px; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 700; }
.n-card .tag.is-pin { background: var(--navy); }
.n-card .tit {
    margin: 18px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line);
    font-size: 16.5px; font-weight: 600; line-height: 1.55; color: var(--ink-900);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.55em * 3 + 16px);
}
.n-card .date { margin-top: auto; font-size: 13px; color: var(--ink-400); }
.n-empty { padding: 60px 0; text-align: center; color: var(--ink-400); border: 1px dashed var(--line); border-radius: 24px; }
.notice-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 30px; padding: 26px 34px; border-radius: 22px;
    background: linear-gradient(110deg, var(--navy) 0%, var(--brand-600) 100%); color: #fff;
}
.notice-banner strong { display: block; font-size: 20px; font-weight: 700; }
.notice-banner span { font-size: 14px; opacity: .8; }
.notice-banner .go { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.notice-banner .go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; }
.notice-banner:hover .go { background: var(--gold); }

/* --- 3. Quick link --- */
.sec-quick { background: var(--ivory); }
.sec-quick::before {      /* 배경의 큰 영문 워드마크 */
    content: 'CENTRAL CHRISTIAN ACADEMY'; position: absolute; left: -2%; top: 50%; transform: translateY(-50%);
    font-size: 15vw; font-weight: 900; line-height: .9; letter-spacing: -.04em; white-space: nowrap;
    color: rgba(11, 47, 99, .03); pointer-events: none;
}
.quick-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 32px; }
.quick-book, .quick-links { background: #fff; border-radius: 28px; box-shadow: 0 20px 50px rgba(8,33,63,.08); }
.quick-book { position: relative; padding: 26px 34px 30px; text-align: left; }
.qb-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.qb-dots button { width: 10px; height: 10px; border-radius: 6px; border: 0; background: var(--ivory-200); cursor: pointer; padding: 0; transition: width .25s; }
.qb-dots button.is-active { width: 26px; background: var(--navy); }
.qb-viewport { overflow: hidden; }
.qb-track { display: flex; transition: transform .5s var(--ease); }
.qb-slide { flex: 0 0 100%; }
.qb-cover {
    position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; overflow: hidden;
    background-size: cover; background-position: center; color: #fff;
    box-shadow: 0 16px 30px rgba(8,33,63,.25), inset 6px 0 0 rgba(0,0,0,.18);
}
.qb-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,33,63,.92) 0%, rgba(8,33,63,.55) 55%, rgba(8,33,63,.2) 100%); }
.qb-cover::after { content: ''; position: absolute; right: 18px; top: 0; width: 22px; height: 40px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.qb-cover-text { position: absolute; left: 22px; top: 28%; right: 22px; }
.qb-cover-text small { display: block; font-size: 15px; opacity: .9; }
.qb-cover-text strong { display: block; margin-top: 4px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.qb-cover-text em { display: block; margin-top: 6px; font-style: normal; font-size: 18px; letter-spacing: .5em; opacity: .9; }
.qb-cover-logo { position: absolute; left: 22px; bottom: 18px; height: 22px; width: auto; opacity: .95; }
.qb-meta { margin-top: 18px; }
.qb-meta strong { display: block; font-size: 17px; color: var(--ink-900); }
.qb-meta span { font-size: 13.5px; color: var(--ink-400); }
.qb-arrow { position: absolute; top: 48%; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--ink-700); }
.qb-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.qb-prev { left: 2px; }
.qb-next { right: 2px; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); align-content: center; padding: 40px 30px; row-gap: 26px; }
.ql-item { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 8px; border-radius: 18px; text-align: center; transition: background .2s; }
.ql-item:hover { background: var(--mist); }
.ql-ico { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; position: relative; }
.ql-ico svg { width: 64px; height: 64px; fill: none; stroke: var(--ink-900); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.ql-ico svg .accent { stroke: var(--gold); stroke-width: 2.2; }
.ql-item:hover .ql-ico svg { transform: translateY(-4px); }
.ql-item span { font-size: 15px; font-weight: 600; color: var(--ink-700); line-height: 1.35; }

/* --- 4. Schedule --- */
.sec-schedule { background: #fff; }
.sec-schedule::before {
    content: ''; position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
    width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(circle, rgba(180,146,58,.12) 0%, rgba(180,146,58,0) 70%);
}
.sec-schedule .fp-head { border-bottom: 0; margin-bottom: 10px; }
.sec-schedule .schedule-tools { margin-bottom: 26px; }
.sec-schedule .schedule-list { max-height: calc(100vh - var(--hd-h) - 330px); min-height: 200px; overflow-y: auto; padding: 0 4px 10px 0; overscroll-behavior: contain; scrollbar-width: thin; }
.sec-schedule .schedule-list.is-scrollable { -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent); }
.sec-schedule .schedule-list.is-scrollable.is-end { -webkit-mask-image: none; mask-image: none; }

/* --- 5. School --- */
.sec-school { background: linear-gradient(180deg, var(--ivory) 0%, #fff 100%); }
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.school-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    height: min(46vh, 420px); min-height: 300px; padding: 26px; border-radius: 26px; overflow: hidden;
    background-size: cover; background-position: center; color: #fff;
    box-shadow: 0 18px 40px rgba(8,33,63,.14);
}
.school-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,22,46,.92) 0%, rgba(6,22,46,.35) 55%, rgba(6,22,46,.1) 100%); transition: background .3s; }
.school-card:hover::before { background: linear-gradient(to top, rgba(11,47,99,.95) 0%, rgba(11,47,99,.6) 70%, rgba(11,47,99,.3) 100%); }
.school-card > * { position: relative; }
.school-card .en { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-100); font-weight: 700; }
.school-card h3 { font-size: 24px; font-weight: 800; margin: 4px 0 18px; }
.school-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.school-card .links a {
    padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); font-size: 13.5px; font-weight: 600;
    transition: all .2s;
}
.school-card .links a:hover { background: #fff; color: var(--navy); }
.school-card .num { position: absolute; top: 22px; right: 26px; font-size: 44px; font-weight: 900; opacity: .35; line-height: 1; }

/* 섹션 진입 애니메이션 */
.fp-section .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fp-section.is-in .reveal { opacity: 1; transform: none; }
.fp-section.is-in .reveal:nth-child(2) { transition-delay: .1s; }
.fp-section.is-in .reveal:nth-child(3) { transition-delay: .2s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1600px) {
    .gnb-link { padding: 0 16px; }
    .hd-icon { width: 66px; }
    .hd-family-btn { padding: 0 22px; }
}

@media (max-width: 1360px) {
    .hd-inner { padding-left: 24px; }
    .hd-logo img { height: 40px; }
    .gnb-link { font-size: 15.5px; padding: 0 14px; }
    .hd-family-btn { padding: 0 18px; font-size: 13.5px; }
    .hd-icon { width: 64px; }
}

@media (max-width: 1180px) {
    :root { --hd-h: 72px; }
    .gnb, .hd-family { display: none; }
    .hd-icon { width: 60px; }
    .hd-icons { background: transparent; }
    .hd-icon { color: inherit; }
    .hd-allmenu .ico-grid { display: none; }
    .hd-allmenu .ico-burger { display: block; }

    /* 전체메뉴 → 모바일 메뉴(아코디언) */
    .sitemap-photo { display: none; }
    .sitemap-panel { padding: 18px 24px 40px; animation: none; }
    .sitemap-row { display: block; padding: 0; }
    .sitemap-title {
        width: 100%; display: flex; justify-content: space-between; align-items: center;
        padding: 18px 0; font-size: 18px; cursor: pointer;
    }
    .sitemap-title::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink-400); border-bottom: 2px solid var(--ink-400); transform: rotate(45deg); transition: transform .2s; }
    .sitemap-row.is-open .sitemap-title::after { transform: rotate(-135deg); }
    .sitemap-sub { display: none; padding: 4px 0 16px; background: var(--mist); border-radius: 12px; margin-bottom: 14px; }
    .sitemap-row.is-open .sitemap-sub { display: block; }
    .sitemap-sub li + li::before { content: none; }
    .sitemap-sub a { display: block; padding: 10px 18px; }
    .sitemap-family { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
    .sitemap-family a { padding: 12px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 13.5px; text-align: center; }

    .fp-nav { display: none; }
    .quick-wrap { grid-template-columns: 1fr; }
    .quick-book { display: grid; grid-template-columns: 200px 1fr; gap: 0 28px; align-items: center; }
    .quick-book .qb-dots { grid-column: 1 / -1; }
    .school-grid { grid-template-columns: repeat(2, 1fr); }
    .school-card { height: 300px; }
    .card-track > * { flex-basis: 50%; }
    .schedule-item { grid-template-columns: 140px 90px 1fr; }
    .schedule-item .y { display: none; }
    .sec-schedule .schedule-list { max-height: none; overflow: visible; }
}

@media (max-width: 860px) {
    .fp-section { min-height: auto; }
    .sec-visual { min-height: 100svh; min-height: 100vh; }
    @supports (height: 100svh) { .sec-visual { min-height: 100svh; } }
    .fp-inner { padding: 64px 20px 56px; }
    .fp-head { flex-direction: column; align-items: flex-start; }
    .visual-arrows, .scroll-down { display: none; }
    .sec-visual { padding-bottom: 32px; }
    .dday-chip { position: relative; z-index: 3; right: auto; bottom: auto; margin: 28px 20px 0; align-self: center; width: calc(100% - 40px); max-width: 420px; }
    .dday-chip .n b { font-size: 22px; }
    .dday-chip .b strong { font-size: 14px; }
    .glass-btn { min-width: 0; width: 100%; max-width: 320px; padding: 15px 22px; }
    .visual-btns { gap: 12px; margin-top: 32px; flex-direction: column; align-items: center; }
    .visual-pager { top: calc(var(--hd-h) + 8px); }
    .visual-text { padding-top: calc(var(--hd-h) + 60px); }
    .card-track > * { flex-basis: 85%; }
    .n-card { height: 230px; }
    .notice-banner { padding: 22px 22px; }
    .notice-banner strong { font-size: 17px; }
    .quick-book { display: block; padding: 22px 22px 26px; }
    .qb-cover { max-width: 240px; margin: 0 auto; }
    .qb-meta { text-align: center; }
    .quick-links { grid-template-columns: repeat(2, 1fr); padding: 24px 10px; row-gap: 8px; }
    .ql-ico, .ql-ico svg { width: 52px; height: 52px; }
    .schedule-months { grid-template-columns: repeat(6, 1fr); row-gap: 14px; padding: 14px 6px 6px; }
    .schedule-item { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 18px; }
    .schedule-item .d { font-size: 18px; }
    .schedule-item .t { grid-column: 1 / -1; }
    .school-grid { grid-template-columns: 1fr; }
    .school-card { height: 220px; min-height: 0; }
    .sec-quick::before { font-size: 26vw; }

    .sub-visual { height: 240px; }
    .location-drop > button { min-width: 0; padding: 0 14px; font-size: 14px; }
    .location-drop:not(.is-depth2) { display: none; }
    .location-tools button { width: 46px; }
    .sub-tabs { margin-top: 28px; }
    .sub-tabs ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .sub-tabs a { white-space: nowrap; padding: 9px 18px; font-size: 14px; }

    .board-table .col-writer, .board-table .col-file, .board-table .col-hit, .board-table .col-num { display: none; }
    .board-table .col-date { width: 90px; font-size: 12.5px; }
    .board-table .col-state { width: 80px; }
    .form-row { flex-direction: column; gap: 0; }

    .ft-inner { flex-direction: column; gap: 24px; }
    .ft-call { gap: 12px; }
    .ft-call-label strong { font-size: 24px; }
    .ft-call-num a { font-size: 28px; }
    .ft-family { width: 100%; }
    .ft-links a { padding: 14px 12px; font-size: 13px; }
    .btn-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
    .hd-logo img { height: 34px; }
    .hd-icon { width: 48px; }
    .hd-icon svg { width: 24px; height: 24px; }
    .visual-title { font-size: 30px; }
    .card-track > * { flex-basis: 92%; }
    .location-home { width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .visual-slide { transition: opacity .3s; transform: none !important; }
    .fp-section .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
    .hd, .sub-visual, .location, .sub-tabs, .ft, .btn-top, .fp-nav, .sitemap, .search-layer { display: none !important; }
    .sub-content { padding: 0; }
}

/* =========================================================
   온라인 원서접수 (가족접수번호)
   ========================================================= */
.gnb-item.is-highlight > .gnb-link { color: var(--gold-100); }
.hd.is-solid .gnb-item.is-highlight > .gnb-link, .hd.is-hover .gnb-item.is-highlight > .gnb-link { color: var(--gold-600); }
.gnb-item.is-highlight > .gnb-link::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 7px; animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.applicant-bar { background: var(--ivory); border-bottom: 1px solid var(--ivory-200); }
.applicant-bar-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.applicant-bar p { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.applicant-bar .fam-label { font-size: 13px; color: var(--ink-600); }
.applicant-bar .fam-no { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.applicant-bar .fam-name { font-size: 14px; color: var(--ink-700); }
.applicant-bar-actions { display: flex; gap: 8px; }

.apply-auth { max-width: 600px; }
.auth-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 13.5px; color: var(--ink-400); font-weight: 600; }
.auth-steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 12px; flex-shrink: 0; }
.auth-steps li.is-current { background: var(--navy); color: #fff; }
.auth-steps li.is-current span { color: var(--navy); }
.auth-steps li.is-done { background: var(--brand-100); color: var(--brand-700); }
.code-input { font-size: 26px !important; letter-spacing: .5em; text-align: center; font-weight: 800; }
.auth-sub-actions { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--ink-600); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--navy); }
.auth-foot { margin-top: 26px; text-align: center; font-size: 14px; color: var(--ink-600); }
.auth-foot a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.family-pick { display: flex !important; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 400 !important; flex-wrap: wrap; }
.family-pick input { width: auto; }
.family-pick strong { color: var(--navy); font-size: 17px; }
.family-pick span { font-size: 13px; color: var(--ink-600); }

.family-card {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 24px 28px; margin-bottom: 20px; border-radius: 20px; color: #fff;
    background: linear-gradient(110deg, var(--navy) 0%, var(--brand-600) 100%);
}
.family-card .fc-label { display: block; font-size: 13px; opacity: .8; }
.family-card .fc-no { font-size: 30px; font-weight: 800; letter-spacing: .03em; }
.family-card dl { margin: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.family-card dt { font-size: 12.5px; opacity: .75; }
.family-card dd { margin: 2px 0 0; font-weight: 600; }

.lookup-box { margin-bottom: 26px; border: 1px dashed var(--brand-500); border-radius: 14px; background: var(--brand-100); }
.lookup-box summary { padding: 14px 18px; cursor: pointer; font-size: 14.5px; color: var(--brand-700); }
.lookup-form { padding: 4px 18px 18px; }
.lookup-form .form-row .field-group { margin-bottom: 12px; }

.apply-cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 30px 34px; border-radius: 22px; background: var(--ink-600); color: #fff;
}
.apply-cta-box.is-open { background: linear-gradient(110deg, var(--navy) 0%, var(--brand-600) 100%); }
.apply-cta-box strong { font-size: 21px; }
.apply-cta-box p { margin: 6px 0 0; opacity: .85; font-size: 14.5px; max-width: 620px; }
.apply-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
    .auth-steps { flex-direction: column; }
    .family-card .fc-no { font-size: 24px; }
    .applicant-bar .fam-no { font-size: 17px; }
    .apply-cta-box { padding: 24px 22px; }
}

/* =========================================================
   원서접수 v3 : 보호자(아버지·어머니·법정대리인) 참여형
   ========================================================= */
.hint { font-size: 12.5px; color: var(--ink-400); margin-top: 6px; }
.privacy-box { margin: 6px 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--mist); font-size: 13.5px; color: var(--ink-600); }
.privacy-box strong { display: block; color: var(--ink-700); margin-bottom: 4px; }
.privacy-box p { margin: 0; }

.apply-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 36px 38px; box-shadow: 0 10px 30px rgba(8,33,63,.06); }
.apply-card-head { text-align: center; margin: 0 -36px 28px; padding: 0 24px 24px; border-bottom: 1px solid var(--line); }
.apply-card-head h1 { margin: 0; font-size: 25px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.apply-card-head p { margin: 6px 0 0; font-size: 15px; color: var(--gold-600); font-weight: 600; }

.relation-pick { border: 0; padding: 0; margin: 0 0 20px; }
.relation-pick legend { font-weight: 700; font-size: 14.5px; color: var(--ink-700); margin-bottom: 10px; padding: 0; }
.relation-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.relation-pick legend { width: 100%; }
.radio-pill { position: relative; flex: 1 1 120px; margin: 0 !important; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
    display: flex; align-items: center; justify-content: center; height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
    font-weight: 600; font-size: 15px; color: var(--ink-600); background: #fff; transition: all .15s;
}
.radio-pill:hover span { border-color: var(--brand-600); }
.radio-pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--gold-100); outline-offset: 2px; }

.who-box { margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ok-badge, .wait-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.ok-badge { background: #e3f5ea; color: #1c7a43; }
.wait-badge { background: var(--gold-100); color: var(--gold-600); }
.me-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }

.dup-alert { line-height: 1.65; }
.dup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dup-actions .btn-outline { background: #fff; }

.join-info { margin: 0 0 22px; border-top: 2px solid var(--navy); }
.join-info > div { display: flex; border-bottom: 1px solid var(--line); }
.join-info dt { width: 34%; padding: 13px 16px; background: var(--mist); font-weight: 700; font-size: 14px; color: var(--ink-700); }
.join-info dd { flex: 1; margin: 0; padding: 13px 16px; font-size: 15px; }
.join-info dd strong { color: var(--navy); font-size: 17px; letter-spacing: .03em; }

/* 현황 대시보드 */
.apply-dash { max-width: 1180px; padding-top: 40px; }
.family-card .fc-me { font-size: 14px; opacity: .9; }
.family-card .fc-me strong { color: var(--gold-100); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.dash-box > h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.dash-box > h3::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--gold); }

.guardian-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.guardian-row:first-of-type { border-top: 0; padding-top: 4px; }
.g-rel { flex: 0 0 86px; font-weight: 700; color: var(--ink-700); padding-top: 2px; }
.g-body { flex: 1; min-width: 0; }
.g-body > strong { font-size: 16px; }
.g-mail { margin-top: 4px; font-size: 13.5px; color: var(--ink-600); word-break: break-all; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.g-empty { color: var(--ink-400); font-size: 14px; display: block; margin-bottom: 8px; }
.g-actions { display: flex; gap: 14px; margin-top: 6px; }
.g-actions .link-btn { font-size: 13px; }
.invite-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.invite-box > summary::-webkit-details-marker { display: none; }
.invite-box[open] > summary { background: var(--mist); }
.invite-form { display: grid; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--mist); }
.invite-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.joined-list { margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; background: #eef9f2; display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }

.child-cards { display: grid; gap: 10px; }
.child-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.child-card > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.child-card strong { font-size: 16px; color: var(--navy); }
.child-card span { font-size: 13.5px; color: var(--ink-600); }

.period-details { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.period-details > summary { padding: 14px 20px; cursor: pointer; font-weight: 700; color: var(--ink-700); font-size: 14.5px; }
.period-details .period-table { margin: 0 20px 20px; width: calc(100% - 40px); }

.doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 14px; }
.doc-table th, .doc-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.doc-table thead th { background: var(--mist); font-weight: 700; color: var(--ink-700); font-size: 13.5px; }
.doc-table td.who { width: 104px; font-weight: 700; color: var(--navy); background: #fafbfd; border-right: 1px solid var(--line); text-align: center; }
.doc-table td.who small { font-weight: 400; color: var(--ink-600); }
.doc-table td.who.child { color: var(--gold-600); }
.doc-table td.scope { color: var(--ink-400); font-size: 13px; white-space: nowrap; }
.doc-table td.act { width: 92px; text-align: right; white-space: nowrap; }
.doc-table td.act .hint { margin: 0; }
.doc-table tr.is-mine td:not(.who) { background: #fffdf6; }
.doc-table tr.is-wait td { color: var(--ink-400); background: #fafbfd; font-size: 13.5px; }
.st { display: inline-block; font-size: 13px; font-weight: 700; white-space: nowrap; }
.st-done { color: #1c7a43; }
.st-todo { color: var(--ink-400); font-weight: 600; }

.dl-list { display: flex; flex-wrap: wrap; gap: 10px; }
.submit-box { text-align: center; padding: 30px 26px; }
.submit-box p { margin: 0 0 14px; color: var(--ink-600); }
.submit-done { font-size: 18px; font-weight: 800; color: #1c7a43 !important; }
.missing-list { list-style: none; margin: 0 auto 18px; padding: 14px 18px; max-width: 620px; text-align: left; border-radius: 12px; background: var(--mist); font-size: 14px; color: var(--ink-600); display: grid; gap: 4px; }
.missing-list li::before { content: '·'; margin-right: 6px; color: var(--gold); font-weight: 800; }

/* 작성 화면 공통 */
.sign-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.q-row { padding: 12px 0; border-bottom: 1px dashed var(--line); margin-bottom: 0 !important; }
.q-row select { max-width: 160px; margin-top: 6px; }
.q-detail { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--mist); }
.q-detail[hidden] { display: none; }
.check-line { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14.5px; margin: 8px 0; cursor: pointer; }
.check-line input { width: auto !important; flex-shrink: 0; }
.sig-prev { display: block; max-width: 260px; height: 80px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 4px; }

@media (max-width: 860px) {
    .dash-grid { grid-template-columns: 1fr; }
    .apply-dash, .sub-content .form-page { padding-left: 16px !important; padding-right: 16px !important; }
    .apply-card { padding: 26px 20px 28px; border-radius: 18px; }
    .apply-card-head { margin: 0 -20px 22px; }
    .apply-card-head h1 { font-size: 21px; }
    .dash-box { padding: 20px 18px; }
    .g-rel { flex-basis: 64px; }
    .join-info dt { width: 38%; }
}
