/* ================================================
   김종진 AI 교육 전문가 - 메인 스타일시트
   ================================================ */

/* ── 변수 ── */
:root {
  --blue-dark:   #1a2f5e;
  --blue-mid:    #1e5fa8;
  --blue-light:  #4a9fd4;
  --blue-pale:   #d6eaf8;
  --blue-bg:     #eaf4fc;
  --accent:      #2563eb;
  --gold:        #f59e0b;
  --white:       #ffffff;
  --gray-100:    #f8fafc;
  --gray-200:    #f1f5f9;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text-main:   #1e293b;
  --text-sub:    #475569;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 8px rgba(30,95,168,.08);
  --shadow-md:   0 6px 24px rgba(30,95,168,.13);
  --shadow-lg:   0 12px 40px rgba(30,95,168,.18);
  --transition:  all .3s ease;
  --max-width:   1140px;
}

/* ── 리셋 & 기본 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ── 컨테이너 ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 섹션 공통 ── */
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.3;
}
.section-header h2 .highlight { color: var(--blue-mid); }
.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ── 버튼 공통 ── */
.btn-primary, .btn-secondary, .btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  border: 2px solid var(--blue-mid);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--blue-mid);
  border: 2px solid var(--blue-mid);
}
.btn-secondary:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}
.btn-linkedin {
  background: #0a66c2;
  color: var(--white);
  border: 2px solid #0a66c2;
}
.btn-linkedin:hover {
  background: #004182;
  border-color: #004182;
  transform: translateY(-2px);
}

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,95,168,.08);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.nav-logo span { color: var(--blue-mid); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}
.nav-menu li a:hover { background: var(--blue-pale); color: var(--blue-mid); }
.nav-menu li a.btn-nav {
  background: var(--blue-mid);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
}
.nav-menu li a.btn-nav:hover { background: var(--blue-dark); }
.nav-menu li a.active { color: var(--blue-mid); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--blue-dark);
  cursor: pointer;
  padding: 6px;
}

/* ================================================
   HERO
   ================================================ */
#hero {
  min-height: 100vh;
  padding-top: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-bg) 0%, #f0f7ff 50%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,95,168,.07) 0%, transparent 70%);
  border-radius: 50%;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(74,159,212,.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: var(--max-width);
  padding: 40px 24px;
  width: 100%;
  z-index: 1;
}

/* 프로필 사진 */
.hero-photo {
  flex-shrink: 0;
  width: 340px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* 텍스트 */
.hero-text { flex: 1; }
.hero-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.15;
}
.hero-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
  border-radius: 2px;
  margin: 20px 0;
}
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-badges li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}
.hero-badges li:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.hero-badges li i {
  color: var(--blue-mid);
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}



/* ================================================
   ABOUT
   ================================================ */
#about .about-photo-wrap {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#about .about-photo { width: 100%; object-fit: cover; }

/* ================================================
   EDUCATION
   ================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.edu-card {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.edu-card-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.edu-card-text p {
  font-size: .9rem;
  color: var(--text-sub);
}
.edu-card-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.edu-card-logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

/* ── 학력 로고 (개별 이미지) ── */
.edu-logo-hanyang,
.edu-logo-postech {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}
.edu-logo-hanyang img,
.edu-logo-postech img {
  width: 280px;
  height: 280px;
  object-fit: contain;
}

/* ================================================
   CAREER
   ================================================ */
.career-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.career-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.career-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.career-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}
.career-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.career-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.career-info p {
  font-size: .88rem;
  color: var(--text-sub);
}
.career-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.career-photo img { width: 100%; object-fit: cover; }

/* ================================================
   LECTURE HISTORY (새 2영역 구조)
   ================================================ */
.lhist-block {
  margin-bottom: 60px;
}
.lhist-block:last-child { margin-bottom: 0; }

.lhist-block-header {
  margin-bottom: 28px;
}
.lhist-block-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 10px 0 8px;
}
.lhist-block-header p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.lhist-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 20px;
}
.lhist-badge-blue  { background: #dbeafe; color: #1d4ed8; }
.lhist-badge-green { background: #d1fae5; color: #065f46; }

/* 사진 + 리스트 레이아웃 */
.lhist-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}
.lhist-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.lhist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .4s ease;
}
.lhist-photo:hover img { transform: scale(1.03); }

/* 이력 리스트 2열 그리드 */
.lhist-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.lhist-item {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.45;
  transition: var(--transition);
}
.lhist-item:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 기관·기업 아이템 hover 색상 */
.lhist-block:last-child .lhist-item:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

/* 구분선 */
.lhist-block:not(:last-child) {
  padding-bottom: 56px;
  border-bottom: 1.5px solid var(--blue-pale);
}

/* ================================================
   LECTURES (기존 호환 유지)
   ================================================ */
.lecture-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: center;
}
.lecture-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lecture-photo img { width: 100%; object-fit: cover; }

.lecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lecture-tag-item {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: var(--transition);
  line-height: 1.4;
}
.lecture-tag-item:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ================================================
   LECTURE SCENE
   ================================================ */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scene-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.scene-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.scene-img-wrap {
  height: 180px;
  overflow: hidden;
}
.scene-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.scene-card:hover .scene-img-wrap img { transform: scale(1.06); }

/* 카드별 이미지 위치 - 각 사진에 최적화 */
.scene-card:nth-child(1) .scene-img-wrap img { object-position: center center; }
.scene-card:nth-child(2) .scene-img-wrap img { object-position: center top; }
.scene-card:nth-child(3) .scene-img-wrap img { object-position: center center; }
.scene-card:nth-child(4) .scene-img-wrap img { object-position: center center; }

.scene-info { padding: 16px 18px; }
.scene-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.scene-info p { font-size: .82rem; color: var(--text-sub); line-height: 1.5; }

/* ================================================
   PROGRAMS
   ================================================ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.program-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}
.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.program-student  { background: #eff8ff; border-top-color: #3b82f6; }
.program-professor{ background: #fff7ed; border-top-color: #f59e0b; }
.program-staff    { background: #f0fdf4; border-top-color: #22c55e; }

.program-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.program-student  .program-badge { background: #dbeafe; color: #1d4ed8; }
.program-professor.program-badge { background: #fef3c7; color: #92400e; }
.program-professor .program-badge { background: #fef3c7; color: #92400e; }
.program-staff    .program-badge { background: #dcfce7; color: #15803d; }

.program-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
.program-card ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.program-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .87rem;
  color: var(--gray-800);
  line-height: 1.5;
}
.program-card ul li i { color: var(--blue-mid); margin-top: 3px; flex-shrink: 0; }
.program-student  ul li i { color: #3b82f6; }
.program-professor ul li i { color: #f59e0b; }
.program-staff    ul li i { color: #22c55e; }

.program-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(255,255,255,.7);
  border-radius: 20px;
  padding: 5px 14px;
}
.program-target i { color: var(--blue-mid); }

/* 프로그램 카드 포스터 이미지 */
.program-poster {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}
.program-poster img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.program-poster:hover img { transform: scale(1.03); }

/* 강의 주제 태그 */
.program-topics { text-align: center; margin-top: 52px; }
.program-topics h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

/* 강의 주제 현장 이미지 그리드 */
.topic-scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 28px;
}
.topic-scene-single {
  grid-template-columns: 1fr;
  max-width: 680px;
}
.topic-scene-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}
.topic-scene-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.topic-scene-img:hover img { transform: scale(1.04); }
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.topic-tags span {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--blue-dark);
  transition: var(--transition);
}
.topic-tags span:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ================================================
   PROGRAM GALLERY
   ================================================ */
.pgallery-group {
  margin-bottom: 52px;
}
.pgallery-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 20px;
  padding: 10px 20px;
  background: var(--white);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.pgallery-group-title i { color: var(--blue-mid); }

/* 그리드 레이아웃 */
.pgallery-grid {
  display: grid;
  gap: 24px;
}
.pgallery-3col { grid-template-columns: repeat(3, 1fr); }
.pgallery-2col { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.pgallery-center {
  grid-template-columns: 1fr;
  max-width: 320px;
}

/* 카드 */
.pgallery-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.pgallery-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* 배지 */
.pgallery-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 14px 14px 10px;
  align-self: flex-start;
}
.badge-student   { background: #dbeafe; color: #1d4ed8; }
.badge-professor { background: #fef3c7; color: #92400e; }
.badge-staff     { background: #dcfce7; color: #15803d; }

/* 이미지 래퍼 */
.pgallery-img-wrap {
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
  /* 세로형 포스터 비율 유지 */
  aspect-ratio: 3 / 4;
}
.pgallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
  padding: 0;
}
.pgallery-card:hover .pgallery-img-wrap img { transform: scale(1.03); }

/* 오버레이 돋보기 */
.pgallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 64, 175, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.pgallery-overlay i { color: #fff; font-size: 2rem; }
.pgallery-card:hover .pgallery-overlay { opacity: 1; }

/* 강의 제목 */
.pgallery-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 14px 16px 18px;
  line-height: 1.5;
  flex: 1;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 520px;
  width: 100%;
  animation: lbFadeIn .25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: var(--transition);
  z-index: 1;
}
.lightbox-close:hover { background: var(--blue-mid); color: #fff; }

/* ================================================
   BOOKS
   ================================================ */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.book-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--blue-light);
}
.book-cover {
  flex-shrink: 0;
  width: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.book-cover img { width: 100%; height: auto; object-fit: cover; }
.book-info { flex: 1; }
.book-num {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.book-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.book-info p {
  font-size: .87rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}
.book-author { font-weight: 600; color: var(--gray-800) !important; }

/* ================================================
   REVIEWS
   ================================================ */
.review-photo-wrap {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.review-main-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 14px; left: 20px;
  font-size: 3.5rem;
  color: var(--blue-pale);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--blue-light);
}
.review-from {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  padding-top: 8px;
}
.review-stars {
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-card blockquote { border: none; padding: 0; }
.review-card blockquote p {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}
.review-card blockquote p:last-child { margin-bottom: 0; }
.review-card blockquote strong { color: var(--gray-800); }

/* ================================================
   VIDEO
   ================================================ */
.video-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.video-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background: #000;
}
.video-thumb img {
  width: 100%;
  opacity: .85;
  transition: opacity .3s;
}
.video-thumb:hover img { opacity: .7; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  transition: var(--transition);
}
.video-play-btn i {
  font-size: 3.2rem;
  color: #ff0000;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform .3s;
}
.video-thumb:hover .video-play-btn i { transform: scale(1.12); }
.video-play-btn span {
  font-size: .95rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  background: rgba(0,0,0,.35);
  padding: 6px 18px;
  border-radius: 20px;
}
.video-caption {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--text-sub);
}

/* ================================================
   PDF CTA
   ================================================ */
.pdf-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-lg);
}
.pdf-cta-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.pdf-cta-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 4px;
}
.btn-pdf {
  background: var(--white) !important;
  color: var(--blue-dark) !important;
  border-color: var(--white) !important;
  font-size: 1rem !important;
  padding: 14px 30px !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-pdf:hover {
  background: var(--blue-pale) !important;
  transform: translateY(-2px);
}

/* ================================================
   CONTACT
   ================================================ */
.section-contact {
  background: linear-gradient(135deg, var(--blue-bg) 0%, #f0f7ff 100%);
  padding: 88px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.contact-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--blue-pale);
}
.contact-photo img { width: 100%; object-fit: cover; }

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.contact-desc {
  font-size: .95rem;
  color: var(--text-sub);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact-card {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-card h3 i { color: var(--blue-mid); }
.contact-card p {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-800);
}
.contact-list li i { color: var(--blue-mid); width: 16px; text-align: center; flex-shrink: 0; }
.contact-list li a { color: var(--blue-mid); transition: var(--transition); }
.contact-list li a:hover { color: var(--blue-dark); text-decoration: underline; }

.contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================================================
   FOOTER
   ================================================ */
#footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 36px 24px;
}
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-sub { font-size: .85rem; margin-bottom: 10px; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.45); }

/* ================================================
   SCROLL FADE-IN
   ================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .career-layout   { grid-template-columns: 1fr; }
  .career-photo    { max-width: 500px; margin: 0 auto; }
  .lecture-layout  { grid-template-columns: 1fr; }
  .lecture-photo   { max-width: 500px; margin: 0 auto; }
  .scene-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-layout  { grid-template-columns: 1fr; }
  .contact-photo   { max-width: 360px; margin: 0 auto; }

  /* 강의 이력 새 구조 */
  .lhist-layout { grid-template-columns: 1fr; }
  .lhist-photo  { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Navbar */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
    transform: translateY(-110%);
    transition: transform .35s ease;
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: .95rem;
  }
  .nav-menu li a.btn-nav {
    margin: 8px 20px 0;
    border-radius: 50px;
    text-align: center;
    display: block;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 32px 20px;
  }
  .hero-photo { width: 260px; height: 320px; }
  .hero-divider { margin: 16px auto; }
  .hero-btns { justify-content: center; }
  .hero-badges li { justify-content: flex-start; }

  /* Edu */
  .edu-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Program */
  .program-grid { grid-template-columns: 1fr; }

  /* Program Gallery */
  .pgallery-3col { grid-template-columns: repeat(2, 1fr); }
  .pgallery-2col { grid-template-columns: 1fr; max-width: 100%; }
  .pgallery-center { max-width: 100%; }

  /* Books */
  .books-grid { grid-template-columns: 1fr; }
  .book-card  { flex-direction: column; align-items: center; text-align: center; }
  .book-cover { width: 160px; }

  /* Reviews */
  .review-main-photo { height: 260px; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Lecture grid */
  .lecture-grid { grid-template-columns: 1fr; }
  /* 강의 이력 새 구조 모바일 */
  .lhist-list { grid-template-columns: 1fr; }

  /* PDF CTA */
  .pdf-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  /* Scene */
  .scene-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .scene-grid { grid-template-columns: 1fr; }
  .hero-photo { width: 220px; height: 270px; }
  .contact-btns { flex-direction: column; }
  .contact-btns .btn-primary,
  .contact-btns .btn-secondary,
  .contact-btns .btn-linkedin { justify-content: center; }

  /* Program Gallery 모바일 1열 */
  .pgallery-3col { grid-template-columns: 1fr; }
}
