@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #2e2e2e;
  --ink-soft: #6b6b6b;
  --ink-faint: #9a9a9a;
  --navy: #192a56;
  --brand: #0a0a38;
  --mint: #64e6cb;
  --mint-deep: #0f766e;
  --line: #ebebeb;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;
  --radius: 4px;
  --header-h: 72px;
  --shell: 1240px;
  --side-w: 232px;
  --font: 'Rubik', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Helvetica Neue', Arial, sans-serif;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand img { width: 24px; height: 24px; object-fit: contain; }
.header-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}
.header-links a {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid transparent;
}
.header-links a:hover { border-bottom-color: var(--navy); }

/* ---------------------------------------------------------------- layout */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.sidebar {
  flex: 0 0 var(--side-w);
  width: var(--side-w);
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 0 40px;
}
.sidebar__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  color: var(--ink);
  font-size: 16px;
  transition: color .15s ease;
}
.sidebar a:hover { color: var(--mint-deep); }
.sidebar a.is-active { color: var(--mint-deep); font-weight: 600; }
.sidebar .count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-family: 'Rubik', sans-serif;
}
.sidebar hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.sidebar__note { font-size: 13px; color: var(--ink-faint); line-height: 1.7; }

.main { flex: 1 1 auto; min-width: 0; padding: 28px 0 0; }

/* ------------------------------------------------------------------ hero */
.hero {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero__body { flex: 1 1 auto; min-width: 0; }
.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0b5a4e;
  margin-bottom: 14px;
  font-family: 'Rubik', sans-serif;
}
.hero h1 {
  font-size: 40px;
  color: #14202b;
  margin-bottom: 18px;
}
.hero p {
  font-size: 17px;
  line-height: 1.8;
  color: #17303a;
  max-width: 620px;
}
.hero__sub {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #0e4c43;
}
.hero__sub strong { font-weight: 700; color: #08312a; }
.hero__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-block;
  background: rgba(255, 255, 255, .72);
  color: #0b4a41;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.hero__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
}
.hero__logo img { height: 208px; width: auto; }

/* -------------------------------------------------------------- sections */
.section { padding-top: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.section__head { margin-bottom: 24px; }
.section h2 { font-size: 26px; }
.section__desc { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

.empty-note {
  border: 1px dashed #d7dae0;
  border-radius: var(--radius);
  padding: 26px 24px;
  font-size: 15px;
  color: var(--ink-faint);
  background: var(--bg-soft);
}

/* ------------------------------------------------- info list (목록 섹션) */
.info-list { border-top: 1px solid var(--line); }
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  flex-wrap: wrap;
}
.info-list a { font-weight: 600; }
.info-list a:hover { color: var(--mint-deep); }
.info-meta { color: var(--ink-faint); font-size: 13px; white-space: nowrap; }

/* ----------------------------------------------------- news (피지컬 AI) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.news-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.news-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.news-tag {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}
.news-tag--latest { background: var(--mint); color: #08312a; }
.news-tag--prev { background: var(--bg-soft); color: var(--ink-faint); border: 1px solid var(--line); }
.news-date { font-size: 12px; color: var(--ink-faint); font-family: 'Rubik', sans-serif; }
.news-card img { width: 100%; height: auto; display: block; }
.news-ph {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  background: var(--bg-soft);
}

/* ------------------------------------------- 교육·세미나 아코디언 */
.edu-list { display: grid; gap: 12px; }
.edu-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.edu-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.edu-item summary::-webkit-details-marker { display: none; }
.edu-item summary:hover .edu-title { color: var(--mint-deep); }
.edu-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  background: var(--bg-soft);
}
.edu-title { font-weight: 600; font-size: 15px; color: var(--navy); }
.edu-meta { margin-left: auto; color: var(--ink-faint); font-size: 13px; white-space: nowrap; }
.edu-chevron { color: var(--ink-faint); transition: transform .2s ease; }
.edu-item[open] .edu-chevron { transform: rotate(180deg); }
.edu-body {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  justify-items: start;
}
.edu-body img { border-radius: 4px; max-width: 720px; width: 100%; }
.edu-desc { font-size: 14px; color: var(--ink-soft); }
.btn--sm { padding: 10px 18px; font-size: 14px; margin-left: 0; }

/* ------------------------------------------- AI 업무자동화 입문 (파란색) */
.section--ai .ai-panel {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 32px;
}
.section--ai h2 { color: var(--blue); }
.section--ai .empty-note { background: #fff; border-color: var(--blue-line); }
.sidebar a.is-ai { color: var(--blue); font-weight: 600; }
.sidebar a.is-ai:hover, .sidebar a.is-ai.is-active { color: var(--blue-deep); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 40px;
}

/* ----------------------------------------------------------------- cards */
.card { display: flex; flex-direction: column; }
.card__image {
  position: relative;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__image img { transform: scale(1.04); }
.card__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}
.card h4 { font-size: 20px; margin-top: 16px; }
.card h4 a { color: var(--navy); }
.card:hover h4 a { color: var(--mint-deep); }
.card__body { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.card__link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  font-family: 'Rubik', sans-serif;
  word-break: break-all;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 20px 44px;
}
.site-footer strong { color: var(--navy); font-weight: 700; }

.site-footer__ask { max-width: 620px; }
.site-footer__ask h3 { font-size: 22px; color: var(--navy); }
.site-footer__ask p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.site-footer__actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.site-footer__actions .btn { margin-left: 0; padding: 11px 22px; font-size: 14px; }
.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(25, 42, 86, .25);
}
.footer-link:hover { border-bottom-color: var(--navy); }

.site-footer__contact { margin-top: 36px; }
.site-footer__contact .sidebar__label { margin-bottom: 12px; }
.site-footer__contact ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-footer__contact li { display: flex; align-items: center; gap: 8px; }
.site-footer__contact li > span { color: var(--ink-faint); }
.site-footer__contact a { color: var(--navy); font-weight: 600; }
.site-footer__contact a:hover { text-decoration: underline; }

.site-footer__bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--navy); }

/* ------------------------------------------------------- detail (subpage) */
.detail { padding-bottom: 24px; }
.backlink {
  display: inline-block;
  margin: 28px 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.backlink:hover { color: var(--navy); }
.detail-hero {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 56px 56px 60px;
}
.detail-hero h1 { font-size: 38px; color: #14202b; margin-bottom: 16px; }
.detail-hero p { font-size: 17px; line-height: 1.8; color: #17303a; max-width: 720px; }
.detail-hero .hero__meta { margin-top: 24px; }

.block { padding-top: 60px; scroll-margin-top: calc(var(--header-h) + 16px); }
.block__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  font-family: 'Rubik', sans-serif;
  margin-bottom: 8px;
}
.block h2 { font-size: 26px; }
.block > p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); line-height: 1.8; max-width: 760px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--navy);
}
.figure {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: #fff;
}
.bullets { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bullet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.bullet strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.bullet span { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.cta {
  margin-top: 64px;
  background: var(--brand);
  border-radius: var(--radius);
  padding: 44px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h3 { font-size: 24px; color: #fff; }
.cta p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .74); line-height: 1.7; }
.btn {
  margin-left: auto;
  display: inline-block;
  background: var(--mint);
  color: #08312a;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  padding: 14px 26px;
  white-space: nowrap;
}
.btn:hover { background: #4fd8bc; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .hero { padding: 52px 40px; }
  .hero h1 { font-size: 34px; }
  .hero__logo img { height: 168px; }
}

@media (max-width: 880px) {
  .shell { display: block; padding: 0 16px; }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 0 0;
    margin: 0 -16px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar__label, .sidebar hr, .sidebar__note { display: none; }
  .sidebar ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar ul::-webkit-scrollbar { display: none; }
  .sidebar li { flex: 0 0 auto; }
  .sidebar a {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
  }
  .sidebar a.is-active { border-color: var(--mint-deep); }
  .sidebar .count { display: none; }
  .main { padding-top: 20px; }
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 26px; padding: 36px 28px 40px; }
  .hero__logo { align-self: flex-start; padding-right: 0; }
  .hero__logo img { height: 116px; }
  .detail-hero { padding: 40px 28px 44px; }
  .detail-hero h1 { font-size: 30px; }
  .bullets { grid-template-columns: 1fr; }
  .cta { padding: 32px 28px; }
  .btn { margin-left: 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .section--ai .ai-panel { padding: 24px 20px; }
  .card h4 { font-size: 17px; }
  .card__body { font-size: 14px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 16px; }
  .section h2, .block h2 { font-size: 22px; }
  .site-header__inner { gap: 12px; }
  .brand { font-size: 16px; }
  .header-links { font-size: 13px; }
  .header-links span { display: none; }
}
