/* ===== 울쌤학원 홈페이지 공통 스타일 =====
   색상을 바꾸려면 아래 :root 의 값만 고치면 됩니다. */
:root {
  --ink: #0d1b26;        /* 제목 글자 */
  --text: #283541;       /* 본문 글자 */
  --muted: #5a6875;      /* 보조 글자 */
  --line: #e1e7ec;       /* 구분선 */
  --bg: #ffffff;         /* 기본 배경 */
  --soft: #f3f6f9;       /* 옅은 회청 배경 */
  --tint: #e9f2f8;       /* 옅은 파랑 배경 */
  --accent: #0b6aa6;     /* 강조색 (로고 색을 조금 밝게) */
  --accent-deep: #004b74;  /* 로고 색 */
  --navy: #00334f;       /* 어두운 구역 (로고 색을 어둡게) */
  --navy-2: #004b74;
  --warm: #ffb547;       /* 보조 강조색 (아주 조금만) */
  --radius: 20px;
  --wrap: 1160px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 12px 32px -18px rgba(0, 75, 116, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ----- 맨 위 알림 띠 ----- */
.announce { background: var(--navy); color: #d5e8f5; font-size: 14.5px; }
.announce .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.announce a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.announce .a-badge { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--warm); color: var(--navy); font-size: 12px; font-weight: 800; }
.announce .a-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.announce a:hover .a-text { text-decoration: underline; text-underline-offset: 3px; }
.announce button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #a7bccb; font-size: 18px; cursor: pointer; }
.announce button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ----- 머리말(메뉴) ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 20, 36, .4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.site-footer .brand img { height: 40px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent), #3f97cf);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 6px 14px -6px rgba(11, 106, 166, .7);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--accent); font-weight: 700; background: var(--tint); }
.nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 700; margin-left: 10px; padding: 9px 18px; }
.nav a.nav-cta:hover { background: var(--accent-deep); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  border-radius: 12px; font-size: 22px; color: var(--ink);
}

/* ----- 버튼 ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 106, 166, .8); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .arrow { transition: transform .15s; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ----- 구역 공통 ----- */
section { padding: 104px 0; }
.soft { background: var(--soft); }
.tint { background: var(--tint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: clamp(30px, 1.6rem + 1.8vw, 46px); font-weight: 800; letter-spacing: -0.035em; }
.section-lead { margin-top: 16px; max-width: 36em; color: var(--muted); font-size: 18px; }
.section-head { margin-bottom: 52px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-more { font-weight: 700; color: var(--accent); white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 어두운 구역 */
.dark { background: var(--navy); color: #bfd0dc; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #7fc0e8; }
.dark .section-lead { color: #9fb5c5; }

/* ----- 첫 화면 ----- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 112px 0 0;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(11, 106, 166, .16), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(11, 106, 166, .08), transparent 70%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(11, 106, 166, .22) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 30%, #000, transparent 75%);
          mask-image: radial-gradient(60% 70% at 78% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 1.6rem + 4.4vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; }
.hero h1 .hl { position: relative; color: var(--accent); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; z-index: -1;
  border-radius: 4px; background: rgba(255, 181, 71, .55);
}
.hero-lead { margin: 28px 0 40px; max-width: 30em; font-size: 19px; color: var(--muted); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero-tags span {
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink);
}

/* 첫 화면 오른쪽 장식 (그래프 선과 과목 카드) */
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: end; }
.hero-art .panel {
  position: absolute; inset: 8% 4% 12% 8%; border-radius: 28px;
  background: linear-gradient(160deg, #fff 0%, #f1f7fb 100%);
  border: 1px solid #d6e5ef; box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column;
}
.hero-art .panel-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.hero-art .panel-title { margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.hero-art svg.chart { margin-top: auto; width: 100%; height: auto; color: var(--accent); overflow: visible; }
.chart .grid-line { stroke: #e1eaf1; stroke-width: 1; }
.chart .area { fill: url(#heroArea); }
.chart .line { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: #fff; stroke: currentColor; stroke-width: 3; }
.chart .dot.last { fill: currentColor; }
.hero-art .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 15px; font-weight: 800; color: var(--ink);
}
.hero-art .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero-art .chip.c1 { top: 2%; left: 0; }
.hero-art .chip.c2 { top: 18%; right: -2%; }
.hero-art .chip.c2 i { background: var(--warm); }
.hero-art .chip.c3 { bottom: 4%; left: 14%; }
.hero-art .chip.c3 i { background: #19b28c; }
.hero-art .chip.c4 { bottom: 16%; right: 0; }
.hero-art .chip.c4 i { background: #8b5cf6; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .chip { animation: float 6s ease-in-out infinite; }
  .hero-art .chip.c2 { animation-delay: -1.5s; }
  .hero-art .chip.c3 { animation-delay: -3s; }
  .hero-art .chip.c4 { animation-delay: -4.5s; }
  .chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .3s ease-out forwards; }
  .chart .area, .chart .dot { opacity: 0; animation: fade .6s 1.4s ease-out forwards; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* 숫자 요약 띠 */
.stats {
  position: relative; margin-top: 88px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 24px 24px 0 0; border-bottom: 0;
  box-shadow: 0 -18px 40px -32px rgba(0, 75, 116, .45);
}
.stat { padding: 30px 28px 34px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { display: block; font-size: clamp(36px, 1.6rem + 1.6vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .n small { margin-left: 4px; font-size: .42em; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.stat .l { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }

/* 하위 페이지 머리 */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 92px 0 64px;
  background: radial-gradient(50% 80% at 90% 0%, rgba(11, 106, 166, .13), transparent 70%), var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(11, 106, 166, .2) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(45% 90% at 92% 10%, #000, transparent 75%);
          mask-image: radial-gradient(45% 90% at 92% 10%, #000, transparent 75%);
}
.page-hero h1 { font-size: clamp(36px, 1.6rem + 3vw, 60px); font-weight: 800; letter-spacing: -0.04em; }
.page-hero p { margin-top: 16px; max-width: 34em; font-size: 18.5px; color: var(--muted); }

/* ----- 카드 격자 ----- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.soft .card, .tint .card { border-color: #dfe6ec; }
@media (hover: hover) {
  a.card:hover, .card.lift:hover { transform: translateY(-4px); border-color: #bcd6e8; box-shadow: var(--shadow); }
}
.card:has(a:focus-visible) { border-color: var(--accent); }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .num { display: block; margin-bottom: 26px; font-size: 13.5px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.card .more { display: inline-flex; gap: 6px; margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--accent); }

/* 과목 카드: 머리글자 아이콘 */
.subject .icon {
  width: 52px; height: 52px; margin-bottom: 26px; border-radius: 16px;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff;
}
.subject.ko .icon { background: linear-gradient(140deg, #0b6aa6, #3f97cf); }
.subject.en .icon { background: linear-gradient(140deg, #19b28c, #5fd3b3); }
.subject.ma .icon { background: linear-gradient(140deg, #ff8a3d, #ffb547); }
.subject.sc .icon { background: linear-gradient(140deg, #8b5cf6, #b59bff); }

/* 강점 카드 묶음 (크기가 다른 카드) */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento .card { padding: 36px; }
.bento .feature {
  grid-row: span 2; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; color: #bfd0dc;
  overflow: hidden;
}
.bento .feature h3 { color: #fff; font-size: clamp(26px, 1.2rem + 1vw, 34px); line-height: 1.3; }
.bento .feature p { color: #9fb5c5; font-size: 17px; }
.bento .feature .num { color: #7fc0e8; }
.bento .feature .big {
  margin-top: auto; padding-top: 40px; font-size: clamp(90px, 4rem + 6vw, 160px); font-weight: 900; line-height: .8;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(127, 192, 232, .45);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.soft .tag, .tint .tag { background: #fff; }

/* 학년 구분 (큰 줄 목록) */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.row h3 { font-size: 28px; font-weight: 800; }
.row p { color: var(--muted); }
.row .tags { margin-top: 0; justify-content: flex-end; }

/* ----- 지점 카드 ----- */
.branch { display: flex; flex-direction: column; }
.branch .b-logo { height: 96px; margin: -4px 0 20px; display: flex; align-items: center; }
.branch .b-logo img { max-height: 100%; max-width: 72%; width: auto; }
.branch .b-tag {
  align-self: flex-start; margin-bottom: 18px; padding: 4px 11px; border-radius: 999px;
  background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 800;
}
.branch h3 { font-size: 20px; }
.branch p { flex: 1; }
.branch .b-reg { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.site-footer .f-reg { display: block; margin-top: 2px; font-size: 13px; color: #86a0b3; }
.branch .b-actions { display: flex; gap: 8px; margin-top: 22px; }
.branch .b-actions a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 700; color: var(--ink); transition: border-color .15s, background .15s;
}
.branch .b-actions a:hover { border-color: var(--accent); color: var(--accent); }
.branch .b-actions a.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.branch .b-actions a.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----- 최근 공지 ----- */
.recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recent a { display: flex; flex-direction: column; min-height: 190px; }
.recent .r-cat { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.recent h3 { margin-top: 14px; font-size: 19px; line-height: 1.45; }
.recent .r-date { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ----- 문의 유도 띠 ----- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff; border-radius: 32px; padding: 76px 64px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(11, 106, 166, .55), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 1.4rem + 1.6vw, 44px); font-weight: 800; }
.cta-band p { margin: 16px 0 34px; color: #b3c7d5; font-size: 18px; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ----- 표 ----- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--soft); font-size: 14px; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover td { background: #f8fbfd; } }
.note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* ----- 강사 ----- */
.teachers { counter-reset: t; }
.teacher { counter-increment: t; }
.teacher .avatar {
  width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--tint), #d3e6f3); color: var(--accent);
  font-size: 24px; font-weight: 900; letter-spacing: -0.02em; overflow: hidden;
}
.teacher .avatar:empty::before { content: counter(t, decimal-leading-zero); }
.teacher .avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher .avatar.t-ma { background: linear-gradient(140deg, #fff3e8, #ffe3cc); color: #d9661a; }
.teacher .avatar.t-sc { background: linear-gradient(140deg, #f4efff, #e6dcff); color: #7444d6; }
.teacher .avatar.t-en { background: linear-gradient(140deg, #e8f8f2, #d0f1e5); color: #0f8a69; }
.teacher .t-title { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.teacher h3 small { margin-left: 4px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.teacher .tags { margin-top: 14px; }
.teacher[hidden] { display: none; }
.teacher .role { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.teacher ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }

/* ----- 직원 ----- */
.year-tabs .staff-tab { margin-left: 8px; position: relative; }
.year-tabs .staff-tab::before { content: ""; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
section[hidden], .teachers[hidden] { display: none; }
.staff-group + .staff-group { margin-top: 44px; }
.staff-group h3 { margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.staff-group h3 span { margin-left: 6px; font-size: 15px; font-weight: 700; color: var(--accent); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.staff {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.staff .s-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); font-size: 16px; font-weight: 900;
}
.staff .s-av.car { background: #fff3e8; color: #d9661a; }
.staff .s-av.en { background: #e8f8f2; color: #0f8a69; }
.staff .s-av.js { background: #f4efff; color: #7444d6; }
.staff-group + .staff-group { margin-top: 36px; }
@media (max-width: 600px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- 공지사항 ----- */
.notice-list { border-top: 2px solid var(--ink); }
.notice-list details { border-bottom: 1px solid var(--line); }
.notice-list summary {
  display: grid; grid-template-columns: 76px 1fr auto 24px; gap: 18px; align-items: center;
  padding: 26px 4px; cursor: pointer; list-style: none;
}
.notice-list summary::-webkit-details-marker { display: none; }
.notice-list summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); text-align: center; transition: transform .2s; }
.notice-list details[open] summary::after { transform: rotate(45deg); }
.notice-list summary:hover .n-title { color: var(--accent); }
.n-cat { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 12.5px; font-weight: 800; color: var(--accent); }
.n-title { font-size: 18px; font-weight: 700; color: var(--ink); transition: color .15s; }
.n-date { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.n-body { margin: 0 4px 28px 98px; padding: 22px 24px; border-radius: 14px; background: var(--soft); color: var(--text); white-space: pre-line; }

.empty { padding: 56px 0; text-align: center; color: var(--muted); font-size: 17px; }

/* ----- 상담·오시는 길 ----- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.form-card { padding: 40px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fbfcfd; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(11, 106, 166, .14);
}
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff;
}
.checks label:has(input:checked) { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.checks input { accent-color: var(--accent); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.info-list { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.info-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.info-list dd a { color: var(--accent); }

/* ----- 프로그램 단계 ----- */
ol.steps { margin: 0; padding: 0; counter-reset: step; display: grid; border-top: 2px solid var(--ink); }
.steps li { list-style: none; display: grid; grid-template-columns: 72px 220px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { counter-increment: step; content: "0" counter(step); font-size: 15px; font-weight: 800; color: var(--accent); }
.steps h3 { font-size: 21px; font-weight: 800; }
.steps p { color: var(--muted); }

/* 합격 실적 연도 선택 */
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.year-tabs button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.year-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.year-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ----- 꼬리말 ----- */
.site-footer { background: var(--navy); color: #9fb5c5; padding: 72px 0 48px; font-size: 14.5px; }
.site-footer .f-top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand { color: #fff; font-size: 22px; }
.site-footer .f-intro p { margin-top: 16px; line-height: 1.8; }
.site-footer .f-intro a { color: #fff; font-weight: 700; }
.site-footer .f-branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.site-footer .f-branches strong { display: block; margin-bottom: 6px; color: #fff; font-size: 15px; }
.site-footer .f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a:hover { color: #fff; }

/* ----- 휴대폰 하단 고정 버튼 ----- */
.dock { display: none; }

/* ----- 스크롤하면 나타나기 ----- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ----- 화면이 좁을 때 ----- */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .grid-4, .recent { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-row: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row .tags { justify-content: flex-start; margin-top: 6px; }
  .site-footer .f-top { grid-template-columns: 1fr; }

  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 20, 36, .35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; padding: 14px 16px; }

  /* 하단 고정 버튼 */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px;
    border-radius: 14px; border: 1px solid var(--line); background: #fff;
    font-size: 15px; font-weight: 700; color: var(--ink);
  }
  .dock a svg { width: 18px; height: 18px; }
  .dock a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-2, .grid-3, .grid-4, .field-2, .recent { grid-template-columns: 1fr; }
  .card, .bento .card { padding: 26px; }
  .form-card { padding: 24px; border-radius: 22px; }
  .cta-band { padding: 48px 26px; border-radius: 24px; }
  .hero-lead { font-size: 17.5px; margin: 22px 0 32px; }
  .stat { padding: 22px 18px 24px; }
  .notice-list summary { grid-template-columns: 1fr 24px; gap: 6px 12px; padding: 20px 2px; }
  .notice-list .n-cat { grid-column: 1; }
  .notice-list .n-title { grid-column: 1; }
  .notice-list .n-date { grid-column: 1; }
  .notice-list summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .n-body { margin: 0 0 22px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li p { grid-column: 2; }
  .btn-row .btn { width: 100%; }
  .site-footer .f-branches { grid-template-columns: 1fr; }
  .announce .wrap { padding-right: 8px; }
}
