/* ==========================================================================
   KENTECH AX대학원 - Stylesheet
   ========================================================================== */

:root {
  --ink: #0b1020;
  --ink-2: #141b33;
  --text: #1f2937;
  --muted: #5b6475;
  --faint: #8b93a5;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef0ff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #6366f1 0%, #22d3ee 100%);

  --header-h: 80px;
  --mega-h: 250px;
  /* 메인 바로가기: 첫 화면에 걸치는 높이 / 첫 화면 아래로 내려오는 높이(+아래 여백) */
  --quick-overlap: 64px;
  --quick-below: 96px;
  --radius: 14px;
  --container: 1280px;
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.9375rem; }
/* 동계인턴 지원 버튼과 메인 첫 화면 버튼은 사각형 박스 모양 */
.btn[data-open-apply], .hero-actions .btn { border-radius: 4px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-soft); }
.btn-line { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Header + Mega menu
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; top: var(--header-h);
  height: 0; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 30px -24px rgba(15, 23, 42, 0.25);
  transition: height 0.35s var(--ease);
  z-index: -1; opacity: 0;
}
.site-header.is-scrolled,
.site-header:has(.gnb:hover, .gnb:focus-within) {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header:has(.gnb:hover, .gnb:focus-within)::after { height: var(--mega-h); opacity: 1; }

.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-univ { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; opacity: 0.75; }
.brand-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }

.gnb { flex: 1; display: flex; justify-content: center; height: 100%; }
.gnb-list { display: flex; height: 100%; }
.gnb-item { position: relative; width: 132px; height: 100%; }
.gnb-link {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 1.0625rem; font-weight: 700; position: relative;
}
.gnb-link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px;
  background: var(--accent); transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.gnb-item:hover .gnb-link::after, .gnb-item.active .gnb-link::after { width: 40%; left: 30%; }
.gnb-sub {
  position: absolute; top: 100%; left: 0; width: 100%;
  padding: 24px 0; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.gnb:hover .gnb-sub, .gnb:focus-within .gnb-sub { opacity: 1; visibility: visible; transform: none; }
.gnb-item:hover .gnb-sub { background: var(--accent-soft); }
.gnb-sub a {
  display: block; padding: 6px 8px; font-size: 0.9375rem; color: var(--muted); line-height: 1.5;
  transition: color 0.2s;
}
.gnb-sub a:hover, .gnb-sub a.active { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-util { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; opacity: 0.8; }
.header-util:hover { opacity: 1; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; width: 16px; }
.menu-toggle span:nth-child(3) { top: 27px; }

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mm-head { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mm-close { width: 44px; height: 44px; display: grid; place-items: center; }
.mm-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.mm-group { border-bottom: 1px solid var(--line); }
.mm-title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 4px; font-size: 1.125rem; font-weight: 700; text-align: left; }
.mm-title svg { transition: transform 0.3s; }
.mm-group.open .mm-title { color: var(--accent); }
.mm-group.open .mm-title svg { transform: rotate(180deg); }
.mm-sub { display: none; padding: 0 4px 16px; }
.mm-group.open .mm-sub { display: block; }
.mm-sub a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--muted); }
.mm-sub a.active, .mm-sub a:hover { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mm-foot { padding: 16px 20px 24px; }
.mm-foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Home: Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  /* 화면 높이에 맞추되, 아래 바로가기(.quick)가 첫 화면 안에 다 보이도록 그만큼 뺌 */
  min-height: max(560px, calc(100vh - var(--quick-below)));
  min-height: max(560px, calc(100svh - var(--quick-below)));
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(24px, 5vh, 72px)) 0 calc(var(--quick-overlap) + clamp(32px, 6vh, 120px));
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(99, 102, 241, 0.35), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(34, 211, 238, 0.18), transparent 70%),
    var(--ink);
  color: #fff;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(11, 16, 32, 0.9));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--cyan); margin-bottom: clamp(16px, 2.6vh, 32px); font-size: clamp(0.8125rem, 0.7rem + 0.25vw, 1rem); }
/* 글자 크기는 화면 너비와 높이 중 작은 쪽에 맞춤 (낮은 노트북 화면에서 넘치지 않게) */
.hero-title {
  font-size: clamp(2.25rem, min(6.4vw, 10vh), 6.5rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.035em;
}
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { margin-top: clamp(18px, 3.2vh, 40px); max-width: 33em; font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.375rem); color: rgba(255, 255, 255, 0.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 5vh, 60px); }
.hero-scroll {
  position: absolute; left: 50%; bottom: calc(var(--quick-overlap) + 16px); z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.55);
}
.hero-scroll::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}
/* 낮은 화면에서는 SCROLL 표시를 숨겨 문구 공간 확보 */
@media (max-height: 900px) { .hero-scroll { display: none; } }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Quick links (첫 화면 아래 걸치는 바로가기) */
.quick { position: relative; z-index: 2; margin-top: calc(var(--quick-overlap) * -1); }
.quick-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.quick-list a {
  display: flex; align-items: center; gap: 16px; padding: 28px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}
.quick-list li:last-child a { border-right: 0; }
.quick-list a:hover { background: var(--accent-soft); }
.quick-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  transition: background 0.25s, color 0.25s;
}
.quick-list a:hover .quick-icon { background: var(--accent); color: #fff; }
.quick-text strong { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.quick-text span { font-size: 0.875rem; color: var(--faint); }

/* --------------------------------------------------------------------------
   Home: Sections
   -------------------------------------------------------------------------- */
.section { padding: 128px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-title { margin-top: 14px; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.section-lead { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 1.0625rem; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.link-more:hover { color: var(--accent); }
.link-more svg { transition: transform 0.25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* About: AX 소개 */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.about-def {
  margin-top: 32px; padding: 28px 30px; border-radius: var(--radius);
  background: var(--ink); color: rgba(255, 255, 255, 0.8); font-size: 1rem;
}
.about-def b { display: block; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.about-def b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillars { display: grid; gap: 16px; }
.pillar {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.pillar:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.pillar-num { font-family: 'Inter', sans-serif; font-size: 2.25rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Programs: 교육과정 카드 */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program {
  position: relative; display: flex; flex-direction: column;
  min-height: 340px; padding: 36px 32px; border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.program::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0;
  transition: opacity 0.35s; z-index: 0;
}
.program > * { position: relative; z-index: 1; }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.program:hover::before { opacity: 1; }
.program-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; transition: background 0.35s, color 0.35s; }
.program h3 { margin-top: 28px; font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; transition: color 0.35s; }
.program p { margin-top: 12px; color: var(--muted); transition: color 0.35s; }
.program .program-go { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); transition: color 0.35s; }
.program:hover h3, .program:hover .program-go { color: #fff; }
.program:hover p { color: rgba(255, 255, 255, 0.7); }
.program:hover .program-tag { background: rgba(255, 255, 255, 0.12); color: var(--cyan); }

/* News + Schedule */
.board { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.board-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.board-head h3 { font-size: 1.375rem; font-weight: 800; color: var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 4px; }
.news-list a:hover strong { color: var(--accent); }
.news-cat { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 700; color: var(--accent); }
.news-list strong { font-size: 1.0625rem; font-weight: 600; color: var(--ink); transition: color 0.2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--faint); }
.sched-list li { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.sched-date { text-align: center; padding: 8px 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-family: 'Inter', sans-serif; line-height: 1.2; }
.sched-date b { display: block; font-size: 1.5rem; font-weight: 800; }
.sched-date span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.sched-list strong { display: block; font-weight: 600; color: var(--ink); }
.sched-list p { font-size: 0.9375rem; color: var(--faint); }

/* Admission CTA */
.cta-band {
  position: relative; overflow: hidden;
  padding: 72px 64px; border-radius: 24px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(34, 211, 238, 0.35), transparent 60%),
    linear-gradient(120deg, #312e81, #4f46e5);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band .eyebrow { color: var(--cyan); }
.cta-band h2 { margin-top: 12px; font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, 0.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }

/* --------------------------------------------------------------------------
   Sub page
   -------------------------------------------------------------------------- */
.subhead {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 64px;
  background: var(--ink); color: #fff;
}
.subhead-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 90% at 90% 0%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(40% 80% at 0% 100%, rgba(34, 211, 238, 0.18), transparent 70%);
}
.subhead-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.subhead-inner { position: relative; }
.subhead .eyebrow { color: var(--cyan); }
.subhead-title { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.subhead-desc { margin-top: 14px; max-width: 680px; color: rgba(255, 255, 255, 0.7); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; margin-top: 36px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.crumb-home { display: inline-flex; align-items: center; gap: 6px; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a {
  position: relative; display: block; padding: 20px 20px; white-space: nowrap;
  font-weight: 600; color: var(--muted); transition: color 0.2s;
}
.subnav-list a::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.subnav-list a:hover { color: var(--ink); }
.subnav-list a.active { color: var(--accent); }
.subnav-list a.active::after { transform: scaleX(1); }

.page-main { padding: 88px 0 128px; }
.content { max-width: 960px; }
.content-section + .content-section { margin-top: 64px; }
.content h2 { font-size: 1.625rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 20px; }
.content h2::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 14px; background: var(--grad); border-radius: 2px; }
.content p + p { margin-top: 12px; }
.note { color: var(--faint); font-size: 0.9375rem; }

.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info-table th, .info-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 160px; background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.pending {
  text-align: center; padding: 96px 24px;
  border: 1px dashed #c9cfdd; border-radius: var(--radius); background: var(--bg-soft);
}
.pending-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pending h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.pending p { margin-top: 10px; color: var(--muted); }
.pending .btn { margin-top: 28px; }

/* Content components */
.lead { font-size: 1.125rem; color: var(--muted); }
.content-wide { max-width: none; }
.content h3 { font-size: 1.1875rem; font-weight: 700; color: var(--ink); }
.bullet-list li { position: relative; padding-left: 16px; }
.bullet-list li + li { margin-top: 6px; }
.bullet-list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-key { display: block; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; }
.card p, .card ul { margin-top: 10px; color: var(--muted); font-size: 0.9688rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stat { padding: 26px 20px; border-bottom: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: 'Inter', sans-serif; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.stat b small { margin-left: 2px; font-family: 'Pretendard', sans-serif; font-size: 1rem; font-weight: 700; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 0.9688rem; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
.data-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.data-table .num { text-align: right; font-family: 'Inter', sans-serif; }
.table-caption { margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 12px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px; border-radius: var(--radius); background: var(--bg-soft); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 800; color: var(--accent); }
.steps strong { display: block; color: var(--ink); }
.steps p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 0 0 28px 28px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline time { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--accent); }
.timeline p { color: var(--text); }

.org { display: grid; gap: 16px; justify-items: center; text-align: center; }
.org-box { padding: 16px 24px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); }
.org-box small { display: block; font-weight: 500; font-size: 0.875rem; color: var(--muted); }
.org-box.is-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.org-box.is-main small { color: rgba(255, 255, 255, 0.7); }
.org-row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; width: 100%; }
.org-line { width: 2px; height: 20px; background: var(--line); }

.fac-group + .fac-group { margin-top: 48px; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fac-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fac-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fac-card h3 small { font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500; color: var(--faint); }
.fac-pos { margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.fac-card dl { margin-top: 14px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; font-size: 0.9063rem; }
.fac-card dt { color: var(--faint); }
.fac-card dd { color: var(--text); }
.fac-card dd a:hover { color: var(--accent); }

/* Greeting */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; margin-bottom: 72px; }
.greeting-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.greeting-body p + p { margin-top: 16px; }
.greeting-body strong { color: var(--ink); }
.greeting-hello { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); }
.greeting-thanks { font-weight: 700; color: var(--ink); }
.greeting-sign { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.greeting-sign-role { font-weight: 700; color: var(--accent); }
.greeting-sign strong { margin-top: 6px; font-size: 1.5rem; letter-spacing: 0.2em; color: var(--ink); }

/* Home: at a glance */
.glance { margin-top: 72px; }

/* Sitemap */
.sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sm-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sm-group h2 { margin: 0; padding: 20px 24px; font-size: 1.1875rem; font-weight: 800; background: var(--ink); color: #fff; }
.sm-group h2::before { display: none; }
.sm-group h2 small { margin-left: 8px; font-family: 'Inter', sans-serif; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; color: var(--cyan); }
.sm-group ul { padding: 10px; }
.sm-group li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 8px; color: var(--text); }
.sm-group li a:hover { background: var(--accent-soft); color: var(--accent); }
.sm-badge { flex-shrink: 0; padding: 1px 8px; border: 1px solid #cfd4e0; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--faint); }
.sm-etc { margin-top: 24px; }
.sm-etc ul { display: flex; flex-wrap: wrap; }

/* Notice (공지사항 목록 · 상세) */
.notice-table td a { font-weight: 600; color: var(--ink); }
.notice-table td a:hover { color: var(--accent); }
.notice-table .col-no, .notice-table .col-date { width: 1%; white-space: nowrap; text-align: center; font-family: 'Inter', sans-serif; color: var(--faint); }
.notice-badge { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
.post-head { padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.post-title { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: 0.9375rem; color: var(--faint); }
.post-files { margin-top: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.post-files h2 { margin: 0 0 8px; font-size: 0.9375rem; }
.post-files h2::before { display: none; }
.post-files li + li { margin-top: 4px; }
.post-files a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9375rem; }
.post-files a:hover { color: var(--accent); text-decoration: underline; }
.post-body { padding: 40px 0; border-bottom: 1px solid var(--line); }
.post-poster { display: block; max-width: 720px; margin: 0 auto 40px; }
.post-poster img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.post-body .content-section + .content-section { margin-top: 40px; }
.post-body h2 { font-size: 1.25rem; }
.post-apply { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.post-nav { display: flex; justify-content: center; margin-top: 32px; }

/* Modal (학부인턴 지원 창) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(11, 16, 32, 0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 28px 32px 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  transform: translateY(16px); transition: transform 0.3s var(--ease);
}
.modal-overlay.active .modal-box { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--bg-soft); }
.modal-close:hover { color: var(--ink); background: var(--line); }
.modal-head { padding-right: 40px; }
.modal-head .eyebrow { color: var(--accent); }
.modal-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.event-info { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 0.9375rem; }
.event-info dt { font-weight: 700; color: var(--accent-strong); }
.event-info dd { color: var(--text); }
.form-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 16px; font-size: 0.875rem; }
.form-downloads span { font-weight: 700; color: var(--ink); }
.form-downloads a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.form-downloads a:hover { border-color: var(--accent); color: var(--accent); }

.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-field label small, .form-files legend small { font-weight: 500; color: var(--faint); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #cfd4e0; border-radius: 8px; background: #fff;
  font: inherit; font-size: 0.9375rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input[type="file"] { padding: 6px 10px; font-size: 0.875rem; cursor: pointer; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.form-field .invalid, .form-check .invalid { border-color: #dc2626; outline: 2px solid rgba(220, 38, 38, 0.3); }
.form-hint { margin-top: 6px; font-size: 0.8125rem; color: var(--faint); }
.form-hint a { color: var(--accent); text-decoration: underline; }
.form-files { display: grid; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.form-files legend { padding: 0 6px; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.form-notice { padding: 10px 12px; border-radius: 8px; background: var(--bg-soft); font-size: 0.8125rem; color: var(--muted); }
.form-notice strong { color: var(--ink); }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-top: -4px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.form-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { font-size: 0.875rem; font-weight: 600; color: #dc2626; }
.btn-submit { width: 100%; margin-top: 4px; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.brand-footer { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a:hover { color: #fff; }
.footer-links a.highlight { color: var(--cyan); font-weight: 700; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px 0 48px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; }
.footer-copy { margin-top: 16px; font-family: 'Inter', sans-serif; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.4); }
.family-select {
  width: 260px; height: 48px; padding: 0 40px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: rgba(255, 255, 255, 0.8); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.family-select option { color: var(--ink); }

/* --------------------------------------------------------------------------
   Floating
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 500;
  padding: 12px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .gnb-item { width: 112px; }
  .header-util { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; --quick-below: 200px; }
  .gnb, .header-cta { display: none; }
  .header-inner { justify-content: space-between; }
  .menu-toggle { display: block; }
  .site-header::after { display: none; }
  .quick-list { grid-template-columns: repeat(2, 1fr); }
  .quick-list li:nth-child(2) a { border-right: 0; }
  .quick-list li:nth-child(-n+2) a { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .programs { grid-template-columns: 1fr; }
  .program { min-height: 0; }
  .board { grid-template-columns: 1fr; gap: 56px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 56px 40px; }
  .sm-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-4, .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .greeting { grid-template-columns: 240px 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .greeting { grid-template-columns: 1fr; }
  .greeting-photo { max-width: 280px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand-name { font-size: 1.1875rem; }
  .brand img { width: 34px; }
  :root { --quick-overlap: 48px; --quick-below: 268px; }
  .hero-desc { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .quick-list a { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 18px; }
  .quick-text span { display: none; }
  .section { padding: 88px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .pillar { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
  .program { padding: 30px 24px; }
  .news-list a { grid-template-columns: 1fr; }
  .news-list strong { white-space: normal; }
  .cta-band { padding: 44px 24px; border-radius: 18px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .subhead { padding: calc(var(--header-h) + 48px) 0 44px; }
  .subnav-list a { padding: 16px 14px; }
  .subnav-list a::after { left: 14px; right: 14px; }
  .page-main { padding: 56px 0 88px; }
  .info-table th { width: 96px; padding: 14px 12px; }
  .info-table td { padding: 14px 12px; }
  .sm-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .fac-grid, .steps, .org-row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .stat { padding: 20px 14px; }
  .stat b { font-size: 1.75rem; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .family-select { width: 100%; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 94vh; max-height: 94dvh; padding: 28px 18px 24px; border-radius: 20px 20px 0 0; }
  .form-row { grid-template-columns: 1fr; }
  .notice-table .col-no { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
