:root {
  --navy: #062a5a;
  --blue: #0d6ee8;
  --blue-2: #18a5ff;
  --line: #dbe6f3;
  --soft: #f6f9fd;
  --text: #14213d;
  --muted: #5c6c81;
  --sidebar: 170px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: var(--text);
  font-family: Pretendard,"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1120px,100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0,1fr);
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 36px rgba(16,48,88,.08);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 14px 22px;
  border-right: 1px solid #dde6f0;
  background: #fff;
  overflow: auto;
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 2px 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#05396e,#18a5ff);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.4;
  color: #123b75;
}

.brand-text strong {
  font-size: 10px;
}

.brand-text span {
  font-weight: 700;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  min-height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  font-weight: 700;
  color: #233852;
  transition: .2s;
}

.nav-item:hover {
  background: #f5f9ff;
  border-radius: 10px;
}

.nav-item.active {
  background: linear-gradient(135deg,#12397e,#0f56c4);
  color: #fff;
  border-radius: 10px;
  border-bottom-color: transparent;
  box-shadow: 0 8px 18px rgba(22,84,177,.2);
}

.nav-icon {
  width: 24px;
  font-size: 20px;
  text-align: center;
  color: #5c8bea;
}

.active .nav-icon {
  color: #fff;
}

.sidebar-card {
  margin-top: 18px;
  padding: 12px 8px;
  border: 1px solid #dfe8f4;
  border-radius: 12px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #174c95;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-card p {
  margin: 0;
}

.qr-placeholder {
  width: 48px;
  aspect-ratio: 1;
  border: 5px solid #111;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  background: repeating-conic-gradient(#111 0 25%,#fff 0 50%) 0 0/9px 9px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

.qr-placeholder.small {
  width: 54px;
}

.manual-links {
  display: none;
}

.content {
  padding: 18px 18px 28px;
  min-width: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 42px 42px;
  border-radius: 22px 22px 0 0;
  background: radial-gradient(circle at 70% 45%,#0b5bbb 0,#072f68 31%,#031d43 70%,#02152f 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(64,156,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(64,156,255,.09) 1px,transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to left,#000,transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 17px;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -1.8px;
}

.hero h1 em {
  font-style: normal;
  color: #30bbff;
}

.hero-desc {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #dceaff;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.btn-light {
  background: #fff;
  color: #14457f;
}

.btn-blue {
  background: linear-gradient(90deg,#0a77ec,#15a3ff);
  color: #fff;
}

.hero-visual {
  position: relative;
  height: 270px;
  display: grid;
  place-items: center;
}

.ai-core {
  position: relative;
  z-index: 3;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%,#1db7ff,#0a62c7 40%,#052f69 70%);
  box-shadow: 0 0 40px #0da4ff88,inset 0 0 20px #75d7ff66;
}

.ai-core:after {
  content: "";
  position: absolute;
  width: 205px;
  height: 58px;
  bottom: -28px;
  border-radius: 50%;
  background: linear-gradient(#0f69d2,#021f48);
  box-shadow: 0 14px 0 #031a38,0 0 28px #00a3ff66;
}

.brain {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -5px;
  text-shadow: 0 0 14px #9be7ff;
}

.orbit {
  position: absolute;
  border: 1px solid #1e91ff66;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.orbit-1 {
  width: 310px;
  height: 180px;
}

.orbit-2 {
  width: 360px;
  height: 230px;
}

.float-icon {
  position: absolute;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #1b8fffaa;
  background: #073269aa;
  box-shadow: 0 0 18px #0e8dff55;
  font-size: 20px;
}

.icon-a {
  right: 13%;
  top: 10%;
}

.icon-b {
  left: 12%;
  top: 16%;
}

.icon-c {
  right: 4%;
  top: 50%;
}

.icon-d {
  left: 10%;
  bottom: 8%;
}

.panel {
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(23,55,96,.04);
}

.purpose {
  border-radius: 0 0 18px 18px;
  padding: 28px 40px 24px;
}

.section-title-wrap h2, .section-head h2, .info-card h2 {
  margin: 0;
  font-size: 20px;
  color: #0f397a;
  letter-spacing: -.6px;
}

.section-kicker {
  display: block;
  width: 26px;
  height: 3px;
  background: #0d95e9;
  margin-bottom: 10px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 20px;
}

.doc-covers {
  display: flex;
  gap: 18px;
}

.doc-cover {
  width: 160px;
  height: 215px;
  border: 1px solid #bfc9d6;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 40px 10px 28px;
  color: #214779;
  font-size: 10px;
}

.doc-cover:before {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background: #0c93df;
  margin-bottom: -18px;
}

.doc-cover small {
  color: #333;
}

.doc-cover.second {
  justify-content: center;
  gap: 18px;
}

.doc-cover.second:before {
  display: none;
}

.purpose-copy {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.purpose-copy p {
  margin: 0 0 18px;
}

.books {
  margin-top: 12px;
  padding: 22px 30px 18px;
  background: linear-gradient(180deg,#fbfdff,#f4f8fd);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-head a {
  font-size: 11px;
  font-weight: 800;
  color: #1459a8;
}

.book-slider {
  position: relative;
  margin-top: 18px;
}

.book-track {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 10px 18px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.book-track::-webkit-scrollbar {
  display: none;
}

.book-card {
  flex: 0 0 112px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: .25s;
  scroll-snap-align: center;
}

.book-card>span:last-child {
  font-size: 10px;
  font-weight: 800;
  color: #23497a;
}

.book-cover {
  width: 104px;
  height: 150px;
  border: 1px solid #cdd5df;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(28,62,105,.07);
  transition: .25s;
}

.book-cover b {
  font-size: 17px;
  line-height: 1.16;
  text-align: left;
}

.book-cover i {
  margin-top: auto;
  font-size: 8px;
  font-style: normal;
  color: #667;
}

.ko.orange b, .en.orange b {
  color: #f28a00;
}

.ko.red b, .en.red b {
  color: #ed4242;
}

.ko.teal b, .en.teal b {
  color: #009797;
}

.en b {
  font-size: 12px;
  line-height: 1.35;
}

.book-card.selected {
  transform: translateY(-5px) scale(1.12);
  z-index: 3;
}

.book-card.selected .book-cover {
  border: 1px solid #25a9e7;
  box-shadow: 0 10px 24px rgba(19,123,197,.18);
}

.slider-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1d5fad;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 5px 15px rgba(20,58,100,.12);
  cursor: pointer;
}

.slider-arrow.prev {
  left: -21px;
}

.slider-arrow.next {
  right: -21px;
}

.book-note-row {
  display: grid;
  grid-template-columns: 1fr 0px;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  font-size: 16px;
  color: #333;
}

.ebook-box {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8f3ff;
  border-radius: 10px;
  padding: 10px 12px;
  color: #145195;
  font-size: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.slider-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd6e5;
}

.slider-dots .on {
  width: 18px;
  border-radius: 99px;
  background: #178ce0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.info-card {
  padding: 18px 22px;
}

.info-card-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.info-card-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

.story-cover {
  height: 185px;
 /*  background: linear-gradient(160deg,#164a8a 0 55%,#f3f6fa 55%); */
  display: flex;
  align-items: flex-start;
  padding: 16px;
  color: #fff;
  font-weight: 800;
}

.screen-mock {
  height: 154px;
  background: #fff;
  padding: 12px;
  font-size: 9px;
  color: #355;
}

.screen-top {
  height: 8px;
  background: #eef2f7;
  margin-bottom: 16px;
}

.dna {
  width: 40px;
  height: 70px;
  margin: 7px auto;
  background: repeating-linear-gradient(45deg,#2450a8 0 6px,#e34f75 6px 12px);
  border-radius: 22px;
}

.outline-btn {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid #6ea3e2;
  color: #15569f;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 10px;
  font-weight: 800;
}

.resource-strip {
  margin-top: 12px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}

.resource-strip article {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid #e4ebf4;
}

.resource-strip article:last-child {
  border-right: 0;
}

.resource-icon {
  font-size: 28px;
  color: #0e73cf;
}

.resource-strip h3 {
  margin: 0 0 3px;
  font-size: 11px;
  color: #174b8b;
}

.resource-strip p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  color: #4b5b6f;
}

.notice {
  margin-top: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice div {
  display: flex;
  gap: 18px;
  align-items: center;
}

.notice strong {
  color: #123e7a;
}

.notice span, .notice a {
  font-size: 11px;
  color: #607086;
}

.notice a {
  font-weight: 800;
  color: #0e68bc;
}

@media (max-width:900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dde6f0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .side-nav {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }
  .nav-item {
    border: 1px solid #e7edf5;
    border-radius: 9px;
    min-height: 44px;
  }
  .sidebar-card {
    display: none;
  }
  .content {
    padding: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-visual {
    height: 220px;
  }
  .purpose-grid, .two-col {
    grid-template-columns: 1fr;
  }
  .resource-strip {
    grid-template-columns: 1fr 1fr;
  }
  .purpose-grid {
    gap: 18px;
  }
  .purpose {
    padding: 24px;
  }
  .book-note-row {
    grid-template-columns: 1fr;
  }
  .ebook-box {
    justify-self: start;
  }
}

@media (max-width:620px) {
  .side-nav {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 30px 22px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-visual {
    display: none;
  }
  .purpose {
    padding: 20px;
  }
  .purpose-grid {
    grid-template-columns: 1fr;
  }
  .doc-covers {
    justify-content: center;
  }
  .books {
    padding: 20px;
  }
  .book-track {
    gap: 10px;
  }
  .book-card {
    flex-basis: 96px;
  }
  .book-cover {
    width: 90px;
    height: 132px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .info-card-body {
    grid-template-columns: 110px 1fr;
  }
  .resource-strip {
    grid-template-columns: 1fr;
  }
  .resource-strip article {
    border-right: 0;
    border-bottom: 1px solid #e4ebf4;
    padding: 12px 0;
  }
  .resource-strip article:last-child {
    border-bottom: 0;
  }
  .notice div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* =====================================================
   모바일
   일상 속 인공지능 윤리 이야기
   AI Ethics for Practitioners
   깨짐 방지
   ===================================================== */

@media (max-width: 900px) {

  /* 두 개 카드 가로배치 → 세로배치 */
  .two-col {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 16px !important;
  }


  /* 각각의 콘텐츠 카드 */
  .two-col .info-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    padding: 22px 18px !important;

    box-sizing: border-box;
  }


  /* 제목 */
  .two-col .info-card h2 {
    width: 100%;

    margin: 0 0 18px;

    font-size: 22px !important;
    line-height: 1.35;

    word-break: keep-all;
  }


  /* 이미지 + 설명
     PC 가로배치 → 모바일 세로배치 */
  .two-col .info-card-body {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 18px !important;
  }


  /* =================================
     일상 속 인공지능 윤리 이야기 이미지
     ================================= */

  .two-col .story-cover,
  .two-col .story-cover-image {
    display: block !important;

    width: 100% !important;
    max-width: 260px !important;
    height: auto !important;

    margin: 0 auto !important;

    padding: 0 !important;

    flex: none !important;

    background: none !important;

    overflow: hidden;
  }


  .two-col .story-cover img,
  .two-col .story-cover-image img {
    display: block;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    object-fit: contain !important;

    margin: 0 auto;
  }


  /* =================================
     AI Ethics for Practitioners 이미지
     ================================= */

  .two-col .screen-mock,
  .two-col .screen-image {
    display: block !important;

    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 auto !important;

    padding: 0 !important;

    flex: none !important;

    background: none !important;

    overflow: hidden;
  }


  .two-col .screen-mock img,
  .two-col .screen-image img {
    display: block;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    object-fit: contain !important;

    margin: 0 auto;
  }


  /* 설명 영역 */
  .two-col .info-card-body > div:last-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    flex: none !important;
  }


  /* 설명 글 */
  .two-col .info-card-body p {
    width: 100%;

    margin: 0;

    font-size: 15px !important;
    line-height: 1.75 !important;

    word-break: keep-all;
    overflow-wrap: break-word;

    box-sizing: border-box;
  }

}


/* =====================================================
   작은 스마트폰
   ===================================================== */

@media (max-width: 480px) {

  .two-col {
    gap: 12px !important;
  }


  .two-col .info-card {
    padding: 20px 16px !important;
  }


  .two-col .info-card h2 {
    font-size: 20px !important;
    line-height: 1.4;
  }


  /* 책 표지는 너무 크게 나오지 않도록 */
  .two-col .story-cover,
  .two-col .story-cover-image {
    max-width: 220px !important;
  }


  /* Practitioners 이미지는 화면폭에 맞춤 */
  .two-col .screen-mock,
  .two-col .screen-image {
    max-width: 100% !important;
  }


  .two-col .info-card-body p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

}


    /* 페이지 하단 네이버 블로그 바로가기 */
.blog-link-section {
      margin: 28px 0 10px;
      padding: 30px 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      border-radius: 22px;
      background: linear-gradient(135deg, #f5f9ff 0%, #eef5ff 100%);
      border: 1px solid #dfe9f7;
    }
    .blog-link-copy { min-width: 0; }
    .blog-link-kicker {
      display: block; margin-bottom: 8px; color: #169b5c;
      font-size: 12px; font-weight: 800; letter-spacing: .08em;
    }
    .blog-link-copy h2 {
      margin: 0 0 8px; color: #173f83; font-size: 22px; line-height: 1.35; word-break: keep-all;
    }
    .blog-link-copy p {
      margin: 0; color: #5f6f83; font-size: 14px; line-height: 1.65; word-break: keep-all;
    }
    .blog-link-btn {
      flex: 0 0 auto; min-height: 54px; padding: 0 20px;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      border-radius: 14px; background: #03c75a; color: #fff;
      text-decoration: none; font-size: 15px; font-weight: 800;
      box-shadow: 0 9px 22px rgba(3,199,90,.18); transition: .2s ease;
    }
    .blog-link-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(3,199,90,.26); }
    .naver-blog-icon {
      width: 28px; height: 28px; display: grid; place-items: center;
      border-radius: 7px; background: #fff; color: #03c75a; font-size: 17px; font-weight: 900;
    }
    .blog-link-arrow { font-size: 20px; line-height: 1; }
    @media (max-width: 900px) {
      .blog-link-section { margin-top: 18px; padding: 24px 20px; flex-direction: column; align-items: stretch; gap: 18px; border-radius: 18px; }
      .blog-link-copy h2 { font-size: 20px; }
      .blog-link-btn { width: 100%; padding: 13px 14px; text-align: center; }
    }