/* ============================================
   KAIEI 한국인공지능전문교육원 — Design Tokens
   ============================================ */
:root {
  --teal: #14a889;
  --teal-dark: #0e8a70;
  --teal-tint: #e6f5f0;
  --navy: #141f38;
  --navy-soft: #1c2b45;
  --orange: #f4772e;
  --amber: #f0a44a;
  --red: #e2574c;
  --green: #3fae6d;
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --text: #22282e;
  --muted: #6b7680;
  --line: #e7eae8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 40, 35, 0.06);
  --shadow-lift: 0 12px 30px rgba(20, 40, 35, 0.14);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Malgun Gothic', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 {
  font-family: 'Gothic A1', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: keep-all;
}
p { margin: 0; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}
.section-title { font-size: 30px; margin-bottom: 6px; }
.section-desc { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.divider { height: 1px; background: var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #2467c9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 13px; letter-spacing: -0.5px;
}
.brand-mark-img { height: 42px; width: auto; display: block; }
.brand-logo-full { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo-full { height: 32px; } }
.brand-text { font-weight: 800; font-size: 18px; color: var(--navy); }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; margin-top: -2px; }

nav.gnb { display: flex; gap: 34px; }
nav.gnb a {
  font-size: 15.5px; font-weight: 600; color: var(--text);
  padding: 8px 0; position: relative;
}
nav.gnb a.active { color: var(--teal); font-weight: 800; }
nav.gnb a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none; width: 40px; height: 40px; border: none; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.hamburger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 15.5px; color: var(--text);
}
.mobile-nav a.active { color: var(--teal); }

@media (max-width: 900px) {
  nav.gnb, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Mobile Fine-tuning ---------- */
@media (max-width: 640px) {
  .tab-bar { flex-wrap: wrap; gap: 6px; }
  .tab-btn { padding: 10px 14px; font-size: 13.5px; }
  .step-actions { flex-wrap: wrap; }
  .step-actions .btn { flex: 1 1 auto; }
  .info-table td.label { width: 84px; font-size: 13.5px; }
  .info-table td.val { font-size: 13.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .section { padding: 48px 0; }
  .plan-table { font-size: 12.5px; }
  .result-badge { font-size: 11.5px; padding: 5px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: var(--navy);
  background-size: cover; background-position: center;
  color: #fff; overflow: hidden;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: url('../images/brand/hero-video-poster.jpg') center/cover no-repeat, var(--navy);
}
.hero-video-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(8,14,28,.82), rgba(8,14,28,.42));
}
.hero-video-wrap iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; /* 16:9 */
  min-height: 100%; min-width: 177.78vh; /* 100 * 16/9 vh */
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.32; max-width: 640px; }
.hero h1 .char {
  display: inline-block; opacity: 0; transform: translateY(16px);
  animation: charIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes charIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero Film Flow (실측 기반 무한 루프 - 여백 없이 seamless) ---------- */
.hero-filmflow { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #c2c2c2; }
.ff-track { position: absolute; display: flex; align-items: stretch; gap: 4px; will-change: transform; }
.ff-track.r1 { top: 0%; height: 29.8%; animation: flowLeft 70s linear infinite; }
.ff-track.r2 { top: 29.8%; height: 39.1%; animation: flowRight 85s linear infinite; }
.ff-track.r3 { top: 68.9%; height: 31.1%; animation: flowLeft 78s linear infinite; }
.ff-unit { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: var(--ar, 1.3); }
.ff-leaf { position: absolute; padding: 2px; box-sizing: border-box; }
.ff-leaf img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.ff-track.calm img { filter: saturate(.72) contrast(.95) brightness(1.05) sepia(.05); }
.ff-track.recall img { filter: sepia(.32) saturate(.84) contrast(.92) brightness(1.07) hue-rotate(-6deg); }
@keyframes flowLeft { from { transform: translateX(0); } to { transform: translateX(calc(var(--setw, 0px) * -1)); } }
@keyframes flowRight { from { transform: translateX(calc(var(--setw, 0px) * -1)); } to { transform: translateX(0); } }
.filmflow-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(10,18,26,.70) 0%, rgba(10,18,26,.40) 45%, rgba(10,18,26,.18) 100%);
}
.hero .hero-eyebrow { color: #7be0c9; font-weight: 700; font-size: 15px; margin-bottom: 14px; display: block; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-page {
  min-height: 260px;
}
.hero-page h1 { font-size: 32px; }
@media (max-width: 640px) {
  .hero { min-height: 420px; }
  .hero h1 { font-size: 30px; }
  .hero-page { min-height: 190px; }
  .hero-page h1 { font-size: 24px; }
}

/* ---------- Cards ---------- */
.intro-card {
  background: linear-gradient(150deg, #d9f0ea 0%, #e9e6f6 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  font-size: 15.5px;
  color: #2c3138;
  line-height: 1.7;
}
.intro-card p + p { margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.char-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.char-card .char-img { aspect-ratio: 4/3; background: #dfe4e2; overflow: hidden; }
.char-card .char-img img { width: 100%; height: 100%; object-fit: cover; }
.char-card .char-body { padding: 22px; }
.char-card .char-tag { color: var(--teal); font-weight: 800; font-size: 13px; }
.char-card h3 { font-size: 18px; margin: 8px 0 10px; }
.char-card p { color: var(--muted); font-size: 14px; }

.tone-card {
  border-left: 4px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.tone-card.red { border-color: var(--red); background: linear-gradient(160deg,#fdeceb,#fff); }
.tone-card.amber { border-color: var(--amber); background: linear-gradient(160deg,#fdf1e0,#fff); }
.tone-card.green { border-color: var(--green); background: linear-gradient(160deg,#e8f6ec,#fff); }
.tone-card .ic { font-size: 26px; margin-bottom: 10px; }
.tone-card h4 { font-size: 19px; margin-bottom: 8px; }
.tone-card p { font-size: 14.5px; color: #4a5158; }

.audience-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.audience-card .ic {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.audience-card h4 { font-size: 16.5px; margin-bottom: 6px; }
.audience-card p { font-size: 13.5px; color: var(--muted); }

.step-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: 16px; margin-bottom: 4px; }
.step-item p { font-size: 14px; color: var(--muted); }

/* ---------- Course info block ---------- */
.course-block { margin-bottom: 64px; }
.course-badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.course-block h2 { font-size: 26px; margin-bottom: 4px; }
.course-block .course-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table td { padding: 12px 0; vertical-align: top; font-size: 14.5px; }
.info-table td.label { width: 110px; font-weight: 800; color: var(--navy); }
.info-table td.val { color: #333; }
.info-table td.val small { color: var(--muted); }

.competitive-list { list-style: none; margin: 20px 0; }
.competitive-list li { padding: 8px 0 8px 20px; position: relative; font-size: 14.5px; color: #333; }
.competitive-list li::before { content: '–'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.lecturer-poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px; }

.plan-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 8px; }
.plan-table th {
  background: var(--navy); color: #fff; padding: 10px 8px; font-weight: 700;
  border: 1px solid var(--navy);
}
.plan-table td { padding: 10px 8px; border: 1px solid var(--line); vertical-align: top; }
.plan-table td.session { font-weight: 800; color: var(--navy); white-space: nowrap; }
.plan-table td.detail { color: var(--muted); font-size: 12.8px; line-height: 1.6; white-space: pre-line; }
.plan-table tr.special td { background: #fff5ec; color: var(--orange); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 30px; }
.result-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #eaf4ff 0%, #d6ebff 100%);
  border: 1px solid #a9d2f7;
  border-radius: 8px;
  color: #0b4a8f;
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: 0 1px 0 #ffffff inset, 0 2px 3px rgba(15,70,140,0.12);
}

/* ---------- Gallery ---------- */
.gallery-section { margin-bottom: 56px; }
.gallery-section h3 { font-size: 19px; border-left: 4px solid var(--teal); padding-left: 12px; margin-bottom: 18px; }
.gallery-notes { list-style: none; margin: 0 0 22px; }
.gallery-notes li { padding: 6px 0 6px 18px; position: relative; font-size: 14px; color: #3a4046; }
.gallery-notes li::before { content: '•'; position: absolute; left: 0; color: var(--teal); }

.gthumb {
  position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: #e8ecea; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,25,.45), transparent 55%);
  opacity: 0; transition: opacity .18s ease;
}
.gthumb:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,40,35,.18); }
.gthumb:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,16,20,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  z-index: 999;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 88vw; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 88vw; max-height: 76vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-caption { color: #eef2f0; font-size: 14px; margin-top: 16px; }
.lb-close, .lb-nav {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-close { top: 22px; right: 28px; width: 40px; height: 40px; font-size: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 20px; }
.lb-nav:hover, .lb-close:hover { background: var(--teal); border-color: var(--teal); }
.lb-prev { left: -64px; } .lb-next { right: -64px; }
.lb-count { position: absolute; top: 22px; left: 28px; color: rgba(255,255,255,.7); font-size: 13px; }
@media (max-width: 760px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- Partner logos ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; }
.partner-grid .p-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); text-align: center; min-height: 68px;
}
@media (max-width: 760px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
footer.site-footer { background: #23282e; color: #b9c0c4; padding: 44px 0 26px; font-size: 13.5px; }
footer.site-footer .f-row { margin-bottom: 6px; }
footer.site-footer strong { color: #e4e8e6; }
footer.site-footer .f-copy { margin-top: 20px; padding-top: 18px; border-top: 1px solid #383e43; color: #7d848a; }

/* ---------- Apply Form ---------- */
.progress-track { display: flex; gap: 6px; margin-bottom: 8px; }
.progress-seg { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.progress-seg.done { background: var(--teal); }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 30px; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; color: var(--navy); }
.field .req { color: var(--red); margin-left: 3px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-size: 14px; cursor: pointer; user-select: none; color: var(--text);
}
.choice-pill input { display: none; }
.choice-pill.checked { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }

.step-actions { display: flex; justify-content: space-between; margin-top: 36px; gap: 12px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: 24px; } }

.summary-box { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; font-size: 14px; }
.summary-box .s-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary-box .s-row:last-child { border-bottom: none; }
.summary-box .s-row span:first-child { color: var(--muted); }
.summary-box .s-row span:last-child { font-weight: 700; text-align: right; }

.done-screen { text-align: center; padding: 60px 20px; }
.done-screen .ic { font-size: 52px; margin-bottom: 20px; }

/* ---------- Admin ---------- */
.admin-login { max-width: 380px; margin: 100px auto; }
.admin-table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin-table th { background: var(--navy); color: #fff; padding: 10px; text-align: left; white-space: nowrap; }
table.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.admin-table tr:hover td { background: var(--teal-tint); }

/* ---------- utils ---------- */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.text-muted { color: var(--muted); }
.badge-count { background: var(--teal-tint); color: var(--teal-dark); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }

/* ---------- Section Banner (contained, not full-bleed) ---------- */
.section-banner {
  width: 100%; aspect-ratio: 21/6; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow);
}
.section-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .section-banner { aspect-ratio: 16/9; } }

/* ---------- Anchor scroll offset (sticky header 보정) ---------- */
.anchor-section { padding-top: 92px; margin-top: -92px; }
@media (max-width: 900px) { .anchor-section { padding-top: 76px; margin-top: -76px; } }

/* ---------- One-page section divider ---------- */
.page-section { border-top: 1px solid var(--line); }
.page-section:first-of-type { border-top: none; }

/* ============================================
   카테고리 허브 (전면 재설계 v2 — 풀스크린 전환형)
   ============================================ */
.cat-hub { padding: 60px 0 100px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1020px; margin: 0 auto;
}
.cat-btn {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfa 100%);
  border: 1px solid #e9ece9;
  border-radius: 28px;
  padding: 40px 20px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 24px rgba(20,40,35,.06), 0 2px 6px rgba(20,40,35,.05);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.cat-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 40px rgba(20,40,35,.13), 0 4px 10px rgba(20,40,35,.06);
  border-color: #dde3de;
}
.cat-btn.active {
  border-color: var(--teal);
  background: linear-gradient(180deg, #ffffff 0%, #f2faf7 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 36px rgba(20,168,137,.18), 0 3px 8px rgba(20,168,137,.1);
}
.cat-btn .cat-icon {
  width: 74px; height: 74px; border-radius: 20px;
  background: linear-gradient(150deg, #eef2f0 0%, #e2e8e4 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 14px rgba(20,40,35,.10);
  display: flex; align-items: center; justify-content: center;
  color: #4a5450;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.cat-btn .cat-icon svg { width: 32px; height: 32px; }
.cat-btn:hover .cat-icon { transform: translateY(-2px); }
.cat-btn.active .cat-icon {
  background: linear-gradient(150deg, var(--teal) 0%, #0e8a70 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px rgba(14,138,112,.35);
  transform: scale(1.05);
}
.cat-btn .cat-label { font-weight: 800; font-size: 17.5px; color: var(--navy); text-align: center; line-height: 1.35; }
.cat-btn .cat-chevron { display: none; }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 패널: 풀스크린 전환형 (아코디언 아님) ---------- */
.cat-panel { display: none; max-width: 1020px; margin: 0 auto; }
.cat-panel.open { display: block; }
.cat-panel-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: 0 20px 50px rgba(20,40,35,.08);
}
.back-to-hub {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 0; margin-bottom: 26px;
}
.back-to-hub:hover { color: var(--teal-dark); }
@media (max-width: 900px) {
  .cat-panel-inner { padding: 32px 22px; border-radius: 18px; }
}

/* ---------- 교육 프로그램 카드 ---------- */
.prog-intro { font-size: 15.5px; color: #333; line-height: 1.75; margin-bottom: 44px; }
.prog-intro strong { color: var(--teal-dark); }
.prog-group-title { font-size: 20px; margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px; }
.prog-group-sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prog-card {
  background: var(--bg-soft); border-radius: 16px; padding: 26px 22px;
  border: 1px solid var(--line);
}
.prog-tag {
  display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.prog-card h4 { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.prog-card p { font-size: 13.5px; color: #4a5158; line-height: 1.65; margin-bottom: 14px; }
.prog-method { font-size: 12.5px; color: var(--teal-dark); font-weight: 700; }
@media (max-width: 900px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prog-grid { grid-template-columns: 1fr; } }

.cert-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cert-row { display: flex; align-items: center; gap: 20px; padding: 16px 22px; background: #fff; flex-wrap: wrap; }
.cert-row.alt { background: var(--teal-tint); }
.cert-row + .cert-row { border-top: 1px solid var(--line); }
.cert-name { font-weight: 800; font-size: 14.5px; color: var(--navy); flex: 0 0 220px; }
.cert-desc { font-size: 13px; color: var(--muted); flex: 1 1 auto; }
.cert-hour { font-size: 12.5px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
@media (max-width: 640px) {
  .cert-name { flex: 1 1 100%; }
}

/* ---------- 행사 & 네트워크 (갈라) ---------- */
.gala-layout { display: flex; gap: 40px; align-items: flex-start; }
.gala-poster { flex: 0 0 280px; }
.gala-poster img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lift); }
.gala-details { flex: 1; min-width: 0; }
.gala-date-badge {
  display: inline-block; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .5px;
}
.gala-details h2 { font-size: 27px; margin-bottom: 8px; }
.gala-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.gala-divider { height: 1px; background: var(--line); margin: 22px 0; }
.gala-info-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.gala-info-row .ic { font-size: 18px; flex-shrink: 0; width: 26px; }
.gala-info-row .label { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.gala-info-row .val { font-size: 15px; font-weight: 700; color: var(--navy); }
.gala-comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 28px; }
.gala-comp-card { background: var(--bg-soft); border-radius: 14px; padding: 20px; }
.gala-comp-card .comp-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; color: var(--teal-dark); letter-spacing: .5px; margin-bottom: 8px; }
.gala-comp-card h4 { font-size: 18px; margin-bottom: 6px; }
.gala-comp-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.gala-feature-box {
  background: linear-gradient(120deg, #1a2244 0%, #c9591f 100%);
  border-radius: 16px; padding: 26px 28px; color: #fff;
}
.gala-feature-box .feat-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; font-weight: 600; }
.gala-feature-box .feat-item .chk { flex-shrink: 0; }
.gala-closing { text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-top: 30px; }
@media (max-width: 760px) {
  .gala-layout { flex-direction: column; }
  .gala-poster { flex: 0 0 auto; max-width: 220px; margin: 0 auto; }
  .gala-comp-grid { grid-template-columns: 1fr; }
}

/* ---------- 상담&문의 서비스 카드 그리드 (입체) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  border: 1px solid #eceeec;
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 8px 20px rgba(20,40,35,.06), 0 2px 5px rgba(20,40,35,.05);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 34px rgba(20,40,35,.12), 0 4px 8px rgba(20,40,35,.06);
  border-color: #dde3de;
}
.service-card .sv-num {
  font-family: 'Gothic A1', sans-serif; font-weight: 900; font-size: 26px;
  color: var(--teal); opacity: .45; margin-bottom: 10px; letter-spacing: -1px;
}
.service-card h4 { font-size: 16.5px; margin-bottom: 10px; color: var(--navy); line-height: 1.35; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }


/* ---------- 협력기관 텍스트 배지 ---------- */
.partner-tag-label { font-size: 12.5px; font-weight: 800; color: var(--teal-dark); margin-bottom: 12px; letter-spacing: .3px; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-tag {
  display: inline-block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #333;
  transition: border-color .18s ease, color .18s ease;
}
.partner-tag:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- 협력기관 로고 그리드 ---------- */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.partner-logo-cell {
  background: rgb(220,234,231); /* 원본 로고 배경색과 동일 */
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.partner-logo-cell:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.partner-logo-cell img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) { .partner-logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .partner-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partner-logo-cell { min-height: 76px; padding: 14px 14px; }
  .partner-logo-cell img { max-height: 42px; }
}
