:root {
  /* 브랜드 색상과 공통 크기: 사이트 전체 톤을 바꿀 때 우선 조정하는 변수입니다. */
  --wine: #8f1734;
  --wine-dark: #5f1023;
  --gold: #caa35b;
  --navy: #132033;
  --ink: #172033;
  --muted: #667386;
  --line: #dde5ef;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --green: #177c63;
  --shadow: 0 18px 42px rgba(19, 32, 51, 0.11);
  --stats-set-width: max(100vw, 1140px);
  /* 버튼과 카드가 같은 속도로 반응하도록 사용하는 공통 인터랙션 값입니다. */
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 4px rgba(143, 23, 52, 0.16);
  --card-hover-shadow: 0 20px 42px rgba(19, 32, 51, 0.14);
  --button-wine-highlight: #ad2852;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 39px;
  color: var(--ink);
  background: #fff;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== 공통 헤더와 내비게이션 ===== */
.site-header {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-top,
.main-nav,
.hero-section,
.course-section,
.faculty-section,
.book-section,
.news-section,
.notice-section,
.sub-hero,
.content-shell,
.catalog-shell,
.course-detail-shell,
.book-detail-shell,
.support-shell,
.article-shell,
.site-footer > * {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 430px;
  height: 42px;
  border: 1px solid #cfd9e7;
  border-radius: 999px;
  background: #fbfcff;
  overflow: hidden;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.search:focus-within {
  border-color: rgba(143, 23, 52, 0.65);
  box-shadow: var(--focus-ring);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--wine);
  background-image: linear-gradient(
    120deg,
    var(--wine) 0%,
    var(--wine) 38%,
    var(--button-wine-highlight) 66%,
    var(--wine-dark) 100%
  );
  background-position: 0% 50%;
  background-size: 240% 100%;
  color: #fff;
  cursor: pointer;
  transition:
    background-position var(--motion-base) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.kakao-link,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    background-position var(--motion-base) var(--ease-premium),
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.translation-control {
  position: relative;
}

.translation-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.translation-toggle:hover,
.translation-toggle:focus-visible,
.translation-toggle[aria-expanded="true"] {
  border-color: var(--wine);
  color: var(--wine);
  outline: 0;
}

.translation-toggle .icon {
  width: 18px;
  height: 18px;
}

.translation-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1100;
  width: 150px;
  padding: 6px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 27, 45, 0.16);
}

.translation-menu[hidden] {
  display: none;
}

.translation-menu button {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.translation-menu button:hover,
.translation-menu button:focus-visible {
  background: #f5f7fb;
  color: var(--wine);
  outline: 0;
}

.google-translate-host {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body > .skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.kakao-link,
.primary-btn {
  border: 1px solid var(--wine);
  background: var(--wine);
  background-image: linear-gradient(
    120deg,
    var(--wine) 0%,
    var(--wine) 38%,
    var(--button-wine-highlight) 66%,
    var(--wine-dark) 100%
  );
  background-position: 0% 50%;
  background-size: 240% 100%;
  color: #fff;
}

.ghost-btn {
  border: 1px solid #d6dfeb;
  background: #fff;
  color: var(--navy);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  min-height: 52px;
  color: #1d2737;
  font-size: 15px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-base) var(--ease-premium);
}

.main-nav a.is-active::after {
  transform: scaleX(1);
}

/* ===== 상단 고정 현황 전광판 ===== */
.stats-band {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: var(--navy);
  color: #eef3f8;
  font-size: 13px;
  font-weight: 700;
}

.stats-track {
  display: flex;
  width: max-content;
  animation: stats-marquee 24s linear infinite;
}

.stats-set {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex: 0 0 var(--stats-set-width);
  min-width: var(--stats-set-width);
}

.stats-set span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  white-space: nowrap;
}

.stats-band strong {
  color: #fff;
}

@keyframes stats-marquee {
  from {
    transform: translateX(calc(var(--stats-set-width) * -1));
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-track,
  .hero-slide-progress span {
    animation: none;
  }

  .hero-brand-visual .hero-slide {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 메인 히어로와 이미지 슬라이드 ===== */
.hero-section {
  padding: 42px 0 58px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(143, 23, 52, 0.08), transparent 38%),
    linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 58px 56px;
}

.eyebrow,
.section-head p {
  display: inline-block;
  margin: 0 0 13px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.hero-label {
  margin: 0 0 12px;
  color: #405066;
  font-size: 17px;
  font-weight: 800;
}

.hero-card h1 {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(36px, 4.6vw, 50px);
  line-height: 1.12;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-brand-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--navy);
}

.hero-brand-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(19, 32, 51, 0.62), transparent 42%, rgba(19, 32, 51, 0.24)),
    linear-gradient(180deg, transparent 62%, rgba(19, 32, 51, 0.76));
  pointer-events: none;
}

.hero-slide-stage {
  position: absolute;
  inset: 0;
}

.hero-slide-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  background: #f4f6f9;
}

.hero-slide-empty img {
  width: min(180px, 42%);
  height: auto;
  object-fit: contain;
}

.hero-brand-visual .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-brand-visual .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-caption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 3;
  color: #fff;
}

.hero-slide-caption span,
.hero-slide-caption small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide-caption strong {
  display: block;
  margin: 6px 0;
  font-size: 21px;
}

.hero-slide-progress {
  position: absolute;
  right: 26px;
  bottom: 16px;
  left: 26px;
  z-index: 4;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-slide-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: slide-progress 3600ms linear infinite;
}

.hero-slide-controls {
  position: absolute;
  right: 22px;
  bottom: 48px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 20, 34, 0.5);
  backdrop-filter: blur(12px);
}

.hero-slide-control,
.hero-slide-dots button {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-slide-control {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-slide-control:hover,
.hero-slide-control:focus-visible {
  background: var(--wine);
}

.hero-slide-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-slide-control.is-prev svg {
  transform: rotate(180deg);
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-slide-dots button.is-active {
  width: 22px;
  background: var(--gold);
}

@keyframes slide-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.benefit-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: center;
  min-height: 84px;
  padding: 18px 22px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #fff;
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.benefit-card .icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: var(--wine);
  color: #fff;
  transition: transform var(--motion-base) var(--ease-premium);
}

.benefit-card strong {
  color: var(--navy);
  font-size: 16px;
}

.benefit-card small {
  color: var(--muted);
  font-weight: 700;
}

/* ===== 메인 강좌 슬라이더와 강좌 카드 ===== */
.course-section {
  position: relative;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 42px;
  padding: 70px 0;
}

.course-section.light,
.book-section,
.notice-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: var(--soft);
}

.course-section.light {
  grid-template-columns: minmax(0, 238px) minmax(0, 850px);
  justify-content: center;
}

.course-section.compact {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.32;
}

.section-head.stacked {
  margin-bottom: 28px;
}

.section-head.stacked a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--wine);
  font-weight: 900;
}

.chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  background: #fff;
  color: var(--wine-dark);
  font-weight: 900;
}

.course-row {
  display: flex;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 28px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #bec9d8 transparent;
  -webkit-user-select: none;
}

.course-row.is-grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
}

.course-row::-webkit-scrollbar {
  height: 8px;
}

.course-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bec9d8;
}

.course-card {
  position: relative;
  flex: 0 0 clamp(190px, 23vw, 216px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 32, 51, 0.09);
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-user-drag: none;
  user-select: none;
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.course-card:focus-visible {
  outline: 3px solid rgba(143, 23, 52, 0.28);
  outline-offset: 4px;
}

.course-card img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
  background: #edf2f7;
  filter: saturate(0.78) contrast(1.04) brightness(0.97);
  pointer-events: none;
  -webkit-user-drag: none;
  transition:
    filter var(--motion-base) ease,
    transform var(--motion-base) var(--ease-premium);
}

.course-card > span,
.course-card strong,
.course-card small {
  display: block;
  padding: 0 16px;
}

.course-card > span {
  margin-top: 15px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
}

.course-card strong {
  min-height: 46px;
  margin-top: 6px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}

.course-card small {
  margin: 10px 0 48px;
  color: #748195;
  font-weight: 800;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px;
  margin-top: 10px;
}

.course-tags span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #50627b;
  font-size: 11px;
  font-weight: 900;
}

.course-card em {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.faculty-section {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 56px;
  align-items: center;
  padding: 78px 0;
}

.faculty-section > * {
  min-width: 0;
}

.teacher-list {
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #bec9d8 transparent;
  -webkit-user-select: none;
}

.teacher-list.is-grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
}

.teacher-list::-webkit-scrollbar {
  height: 7px;
}

.teacher-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bec9d8;
}

.teacher-list:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}

.teacher-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 150px;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 32, 51, 0.08);
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
  scroll-snap-align: start;
}

.teacher-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  object-position: top;
  transition: transform var(--motion-base) var(--ease-premium);
}

.teacher-card strong,
.teacher-card span {
  display: block;
  padding: 0 15px;
}

.teacher-card strong {
  margin-top: 14px;
  color: var(--navy);
}

.teacher-card span {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lecture-preview {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  transition:
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.lecture-preview img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.72;
  transition:
    opacity var(--motion-base) ease,
    transform var(--motion-base) var(--ease-premium);
}

.lecture-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  padding: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.lecture-play .icon {
  width: 32px;
  height: 32px;
}

.lecture-caption {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
}

.lecture-preview strong {
  display: block;
  font-size: 28px;
}

.lecture-preview small {
  color: #e5edf7;
  font-weight: 800;
}

.lecture-preview iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.lecture-preview.is-playing {
  transform: none;
}

/* 관리자에서 추가한 교수진의 전체 목록과 상세 소개 화면입니다. */
.faculty-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.faculty-directory-card {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faculty-directory-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.faculty-directory-card > div {
  padding: 24px;
}

.faculty-directory-card span,
.faculty-directory-card strong {
  color: var(--wine);
  font-weight: 800;
}

.faculty-directory-card h2 {
  margin: 8px 0 12px;
}

.faculty-directory-card p {
  min-height: 4.8em;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.faculty-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 40px;
}

.faculty-profile figure {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.faculty-profile figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-profile article {
  min-width: 0;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faculty-profile h2 {
  margin: 12px 0 20px;
}

.faculty-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.faculty-specialties span {
  padding: 7px 12px;
  color: var(--wine);
  font-weight: 700;
  background: #fff5f7;
  border: 1px solid #f0d7dd;
  border-radius: 999px;
}

.faculty-bio {
  margin-bottom: 32px;
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.book-section {
  padding-top: 64px;
  padding-bottom: 72px;
}

.book-section[hidden] {
  display: none;
}

.book-row {
  display: flex;
  gap: 22px;
  width: min(1120px, 100%);
  padding: 2px 0 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-color: #b8c5d8 transparent;
  scrollbar-width: thin;
}

.book-row.is-grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
}

.book-row:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 6px;
}

.book-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 220px;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(12, 35, 68, 0.07);
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.book-cover {
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #edf2f8;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--motion-base) var(--ease-premium);
}

.book-card-copy {
  padding: 20px;
}

.book-card-copy > span {
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
}

.book-card strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.book-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.book-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--wine);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.book-card em .icon {
  width: 16px;
  height: 16px;
}

.book-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0 90px;
}

.book-detail-cover {
  min-height: 480px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.book-detail-cover img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.book-detail-copy h1 {
  margin: 10px 0 22px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
}

.book-detail-copy {
  min-width: 0;
}

.book-detail-description {
  margin-bottom: 30px;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.8;
  word-break: break-word;
}

.book-detail-description p {
  margin: 0 0 14px;
}

.book-purchase-unavailable {
  color: var(--muted);
  font-weight: 700;
}

.news-section {
  padding: 76px 0 52px;
}

.news-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr;
  gap: 24px;
}

.feature-news,
.news-card {
  display: block;
}

.feature-news {
  padding: 28px;
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  background: #fff;
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.feature-news .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 14px;
  background: var(--wine);
  color: #fff;
}

.feature-news h3,
.news-card strong {
  display: block;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.4;
}

.feature-news p,
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  border-radius: 16px;
  transition:
    filter var(--motion-base) ease,
    transform var(--motion-base) var(--ease-premium);
}

.news-card strong {
  margin-top: 16px;
  font-size: 18px;
}

.notice-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 60px;
}

.notice-section h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 24px;
}

.notice-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid #d9e2ee;
  color: #34445b;
  font-weight: 800;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.notice-list time {
  color: #8290a4;
  font-size: 13px;
  white-space: nowrap;
}

.help-list a {
  display: block;
  padding: 11px 0;
  color: #43536a;
  font-weight: 850;
}

.award-card {
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(143, 23, 52, 0.09), rgba(202, 163, 91, 0.17)),
    #fff;
  color: var(--wine-dark);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.award-card .icon {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 16px;
  background: var(--wine);
  color: #fff;
}

.site-footer {
  padding: 34px 0 56px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #6a7688;
  text-align: center;
}

.footer-info {
  font-size: 13px;
  line-height: 1.7;
}

.brand.small {
  justify-content: center;
  min-width: 0;
  margin-bottom: 16px;
}

.brand.small img {
  width: 38px;
  height: 38px;
}

.footer-info nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 16px 0;
  color: #34445b;
  font-weight: 850;
}

.floating-tools {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.floating-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 10px 26px rgba(143, 23, 52, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.floating-tools a:last-child {
  width: 52px;
  padding: 0;
  background: var(--navy);
}

.sub-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 220px;
  padding: 54px 0 38px;
}

.sub-hero h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}

.sub-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.sub-hero nav,
.course-detail-title > a {
  align-self: flex-start;
}

.sub-hero nav {
  display: flex;
  gap: 10px;
  color: #8290a4;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.sub-hero nav strong {
  color: var(--wine);
}

.catalog-shell {
  padding-bottom: 80px;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.catalog-filter a {
  padding: 10px 16px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  color: #43536a;
  font-weight: 900;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.catalog-filter a.is-active {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

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

.catalog-grid .course-card {
  flex: initial;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 28px 0;
  padding: 34px;
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.content-shell {
  padding: 26px 0 88px;
}

.two-column,
.support-shell,
.notice-board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list article,
.benefit-list article,
.simple-page article,
.contact-panel,
.support-grid a,
.course-info-grid article {
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 32, 51, 0.07);
}

.process-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 18px;
  min-height: 126px;
  padding: 24px;
}

.process-list article span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fbf3e1;
  color: var(--wine);
  font-weight: 900;
}

.process-list h3,
.benefit-list h2,
.support-grid h3,
.simple-page h2,
.course-info-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.process-list p,
.benefit-list p,
.support-grid p,
.simple-page p,
.contact-panel p,
.course-info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-panel,
.simple-page article {
  padding: 28px;
}

.contact-panel > .icon,
.simple-page article > .icon,
.benefit-list article > .icon,
.support-grid a > .icon,
.course-info-grid article > .icon,
.course-summary article > .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  background: var(--wine);
  color: #fff;
}

.primary-btn .icon,
.ghost-btn .icon,
.kakao-link .icon {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  transition: transform var(--motion-fast) var(--ease-premium);
}

/* ===== 공통 인터랙션 효과 =====
   터치 환경에서는 hover가 고정되지 않도록 정밀 포인터 환경에서만 이동 효과를 켭니다. */
@media (hover: hover) and (pointer: fine) {
  .kakao-link:hover,
  .primary-btn:hover,
  .search button:hover {
    background-position: 100% 50%;
    border-color: var(--button-wine-highlight);
    box-shadow: 0 10px 24px rgba(95, 16, 35, 0.24);
    color: #fff;
    transform: translateY(-2px);
  }

  .ghost-btn:hover,
  .translation-toggle:hover {
    border-color: rgba(143, 23, 52, 0.5);
    background: #fff6f8;
    box-shadow: 0 10px 22px rgba(19, 32, 51, 0.08);
    color: var(--wine);
    transform: translateY(-1px);
  }

  .kakao-link:hover .icon,
  .primary-btn:hover .icon,
  .ghost-btn:hover .icon {
    transform: translateX(2px);
  }

  .main-nav a:hover::after {
    transform: scaleX(1);
  }

  .catalog-filter a:not(.is-active):hover {
    border-color: rgba(143, 23, 52, 0.45);
    background: #fff6f8;
    color: var(--wine);
    transform: translateY(-1px);
  }

  .catalog-filter a.is-active:hover {
    box-shadow: 0 8px 20px rgba(143, 23, 52, 0.2);
    transform: translateY(-1px);
  }

  .course-card:hover,
  .book-card:hover,
  .teacher-card:hover,
  .benefit-card:hover,
  .lecture-preview:hover,
  .feature-news:hover,
  .news-card:hover,
  .support-grid a:hover {
    border-color: rgba(143, 23, 52, 0.24);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
  }

  .course-card:hover img,
  .book-card:hover .book-cover img,
  .teacher-card:hover img,
  .lecture-preview:hover img,
  .news-card:hover img {
    filter: saturate(0.9) contrast(1.04) brightness(1);
    transform: scale(1.025);
  }

  .lecture-play:hover {
    background: #fff;
    box-shadow: 0 10px 28px rgba(19, 32, 51, 0.24);
    color: var(--button-wine-highlight);
    transform: translate(-50%, -50%) scale(1.06);
  }

  .lecture-preview.is-playing:hover {
    box-shadow: var(--shadow);
    transform: none;
  }

  .benefit-card:hover .icon {
    transform: translateY(-1px) scale(1.035);
  }

  .notice-list a:hover {
    color: var(--wine);
    transform: translateX(3px);
  }
}

.kakao-link:active,
.primary-btn:active,
.ghost-btn:active,
.translation-toggle:active,
.search button:active,
.catalog-filter a:active {
  box-shadow: none;
  transform: translateY(0) scale(0.985);
}

.kakao-link:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.translation-toggle:focus-visible,
.search button:focus-visible,
.catalog-filter a:focus-visible,
.main-nav a:focus-visible,
.book-card:focus-visible,
.teacher-card:focus-visible,
.feature-news:focus-visible,
.news-card:focus-visible,
.benefit-card:focus-visible,
.lecture-preview:focus-visible,
.support-grid a:focus-visible,
.notice-list a:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.lecture-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(143, 23, 52, 0.42);
}

.contact-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
}

.contact-panel .primary-btn,
.simple-page .primary-btn {
  margin-top: 22px;
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-actions .primary-btn,
.contact-actions .ghost-btn {
  width: 100%;
  margin-top: 0;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-list article,
.simple-page article {
  padding: 28px;
}

.support-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 26px 0 88px;
}

.customer-sidebar {
  min-height: 320px;
  padding: 28px;
  border: 1px solid #e0e7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 32, 51, 0.07);
}

.customer-sidebar h1,
.customer-sidebar h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 32px;
}

.customer-sidebar p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.customer-sidebar strong {
  display: block;
  margin-bottom: 20px;
  color: var(--wine);
  font-size: 30px;
}

.customer-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.customer-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: #34445b;
  font-weight: 850;
}

.customer-sidebar nav a.is-active {
  background: var(--wine);
  color: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-grid a {
  min-height: 180px;
  padding: 26px;
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-premium),
    transform var(--motion-base) var(--ease-premium);
}

.notice-board-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 54px 0 88px;
}

.notice-board-content {
  /* 넓은 공지 표는 이 열 안에서만 스크롤되고 모바일 문서 폭은 늘리지 않습니다. */
  min-width: 0;
}

.board-title-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 118px;
  margin-bottom: 38px;
}

.board-title-row h2 {
  margin: 0;
  color: var(--wine);
  font-size: 34px;
}

.board-line {
  height: 1px;
  background: #c9d5e5;
}

.board-title-row nav {
  display: flex;
  gap: 9px;
  color: #8290a4;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.board-title-row nav strong {
  color: var(--wine);
}

.board-count {
  margin: 0 0 26px;
  color: var(--muted);
  font-weight: 800;
}

.notice-table-wrap {
  overflow-x: auto;
  border-top: 3px solid var(--wine);
}

.notice-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

.notice-table th,
.notice-table td {
  padding: 19px 16px;
  border-bottom: 1px solid #d9e2ee;
  font-size: 15px;
}

.notice-table th {
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.notice-table td {
  color: #2f3d52;
  font-weight: 800;
}

.notice-table th:nth-child(1),
.notice-table td:nth-child(1) {
  width: 82px;
  text-align: center;
}

.notice-table th:nth-child(3),
.notice-table td:nth-child(3) {
  width: 170px;
  text-align: center;
}

.notice-table th:nth-child(4),
.notice-table td:nth-child(4) {
  width: 138px;
  text-align: center;
}

.notice-table td:nth-child(2) {
  color: var(--navy);
  font-size: 16px;
}

.board-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.board-pagination a,
.board-pagination strong {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid #c6d2e2;
  border-radius: 10px;
  color: var(--wine);
  font-weight: 900;
}

.board-pagination strong {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.course-detail-shell {
  padding: 70px 0 92px;
}

.course-intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.course-intro-copy {
  padding: 46px;
}

.course-intro-copy h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.18;
}

.course-intro-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.course-intro-copy .course-tags {
  padding: 0;
  margin: 20px 0 26px;
}

.course-intro-hero img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03) brightness(0.98);
}

.course-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 34px;
}

.intro-main,
.intro-side {
  display: grid;
  gap: 22px;
}

.intro-block,
.course-outline,
.course-summary,
.compact-panel {
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 32, 51, 0.06);
}

.intro-block,
.course-outline {
  padding: 30px;
}

.intro-block > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.intro-block h2,
.course-outline h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 25px;
}

.intro-block p,
.course-outline p,
.course-summary span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.course-outline ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-outline li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 18px;
  border-radius: 12px;
  background: #f7f9fc;
}

.course-outline li span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.course-outline strong {
  color: var(--navy);
}

.course-summary {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.course-summary article {
  padding: 22px;
  border-bottom: 1px solid #e8edf4;
}

.course-summary article:last-child {
  border-bottom: 0;
}

.course-summary strong,
.course-summary span {
  display: block;
}

.course-summary strong {
  margin-bottom: 6px;
  color: var(--navy);
}

.compact-panel {
  padding: 26px;
}

.course-detail-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.course-detail-title h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 42px;
}

.course-detail-title > div > span {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fbf3e1;
  color: var(--wine-dark);
  font-weight: 900;
}

.course-learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
}

.course-video {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 52% 48%, rgba(202, 163, 91, 0.72), transparent 17%),
    radial-gradient(circle at 52% 48%, rgba(143, 23, 52, 0.34), transparent 39%),
    linear-gradient(145deg, #111827 0%, #172033 56%, #080d15 100%);
  color: #fff;
  box-shadow: inset 0 -72px 70px rgba(0, 0, 0, 0.5);
}

.course-video::before {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 44px;
  left: 26px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.course-video::after {
  content: "00:02 / 30:42";
  position: absolute;
  left: 28px;
  bottom: 16px;
  font-weight: 900;
}

.course-video strong {
  position: absolute;
  top: 26px;
  left: 28px;
  font-size: 18px;
}

.course-video em {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-style: normal;
  font-weight: 900;
}

.course-video b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 28px;
  transform: translate(-50%, -50%);
}

.course-video i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px var(--gold);
  transform: translate(-50%, 32px);
}

.lesson-now {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 28px 0 14px;
}

.lesson-now span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #f7edf0;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.lesson-now h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.lesson-now strong {
  color: #7f8ba0;
  white-space: nowrap;
}

.lesson-now em {
  color: var(--wine);
  font-size: 28px;
  font-style: normal;
}

.lesson-progress {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--wine);
  border-radius: 999px;
}

.lesson-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--wine);
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.course-info-grid article {
  padding: 22px;
}

.course-learning-side {
  display: grid;
  gap: 20px;
}

.course-side-card {
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 18px;
  background: #fff;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #e0e7f1;
}

.side-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.side-title h2 span,
.side-title > span {
  color: var(--wine);
}

.side-title em {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.material-grid a {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  border-right: 1px solid #e0e7f1;
  color: var(--wine);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.material-grid a:last-child {
  border-right: 0;
}

.material-grid .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 12px;
  background: var(--wine);
  color: #fff;
}

.lesson-list {
  max-height: 510px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.lesson-list li {
  border-bottom: 1px solid #edf1f6;
}

.lesson-list li.is-active {
  background: var(--wine);
}

.lesson-list a {
  display: flex;
  gap: 12px;
  padding: 15px 22px;
  color: #2e3d52;
  font-size: 14px;
  font-weight: 900;
}

.lesson-list span {
  color: var(--wine);
}

.lesson-list .is-active a,
.lesson-list .is-active span {
  color: #fff;
}

.article-shell {
  padding: 18px 0 90px;
}

.article-shell h2 {
  margin: 0;
  padding: 28px 0;
  border-top: 3px solid var(--wine);
  border-bottom: 1px solid #d9e2ee;
  color: var(--navy);
  font-size: 28px;
}

.article-shell dl {
  display: flex;
  gap: 30px;
  margin: 0 0 30px;
  padding: 18px 0;
  border-bottom: 1px solid #d9e2ee;
}

.article-shell dl div {
  display: flex;
  gap: 10px;
}

.article-shell dt {
  color: var(--muted);
  font-weight: 900;
}

.article-shell dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.article-shell p {
  max-width: 780px;
  margin: 0 0 28px;
  color: #415168;
  line-height: 1.85;
}

.notice-article-image {
  width: min(100%, 880px);
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f3f6fa;
}

.notice-article-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.notice-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ===== 태블릿 반응형 ===== */
@media (max-width: 980px) {
  .header-top {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .stats-band {
    text-align: center;
  }

  .stats-set {
    gap: 22px;
  }

  .stats-set span {
    padding: 11px 0;
  }

  .hero-card,
  .course-intro-hero,
  .faculty-section,
  .notice-section,
  .two-column,
  .support-shell,
  .notice-board-shell,
  .course-intro-grid,
  .book-detail-shell,
  .course-learning-grid {
    grid-template-columns: 1fr;
  }

  .hero-card > img {
    height: 260px;
  }

  .hero-brand-visual {
    min-height: 300px;
  }

  .course-section,
  .course-section.light {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-grid,
  .benefit-list,
  .news-grid,
  .course-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card {
    flex-basis: clamp(200px, 46vw, 250px);
  }

  .sub-hero,
  .course-detail-title {
    display: grid;
  }

  .course-intro-hero img {
    min-height: 280px;
  }

  .board-title-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 34px;
  }
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 620px) {
  .faculty-directory,
  .faculty-profile {
    grid-template-columns: 1fr;
  }

  .faculty-profile {
    gap: 18px;
  }

  .faculty-profile figure {
    min-height: 380px;
  }

  .faculty-profile article {
    padding: 28px 22px;
  }

  .header-top,
  .main-nav,
  .hero-section,
  .course-section,
  .faculty-section,
  .book-section,
  .news-section,
  .notice-section,
  .sub-hero,
  .content-shell,
  .catalog-shell,
  .course-detail-shell,
  .book-detail-shell,
  .support-shell,
  .article-shell,
  .site-footer > * {
    width: min(100% - 24px, 1120px);
  }

  .header-actions {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .translation-control,
  .translation-toggle,
  .header-actions .kakao-link {
    width: 100%;
  }

  .benefit-grid,
  .catalog-grid,
  .benefit-list,
  .news-grid,
  .support-grid,
  .course-info-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    flex-basis: min(68vw, 210px);
  }

  .book-card {
    flex-basis: min(78vw, 300px);
  }

  .book-detail-shell {
    gap: 28px;
    padding-top: 40px;
  }

  .book-detail-cover {
    min-height: 360px;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .hero-card h1 {
    font-size: 36px;
  }

  .hero-brand-visual {
    min-height: 280px;
  }

  .hero-slide-caption {
    right: 18px;
    bottom: 24px;
    left: 18px;
  }

  .hero-slide-controls {
    right: 16px;
    bottom: 54px;
    gap: 7px;
    padding: 7px;
  }

  .hero-slide-control {
    width: 32px;
    height: 32px;
  }

  .course-card {
    flex-basis: 78vw;
  }

  .course-intro-copy,
  .intro-block,
  .course-outline {
    padding: 24px;
  }

  .floating-tools {
    display: none;
  }

  .footer-info nav {
    display: grid;
    gap: 10px;
  }

  .course-video {
    height: 280px;
  }

  .course-video b {
    font-size: 22px;
  }

  .lesson-now,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-grid a {
    border-right: 0;
    border-bottom: 1px solid #e0e7f1;
  }

  .article-shell dl {
    display: grid;
    gap: 10px;
  }
}
