/* ===================================================
   OMD 리뉴얼 - 메인 CSS
   디자인 컨셉: The House Concert 인스파이어드
   다크 테마 + 골드 포인트
=================================================== */

/* Google Fonts는 각 HTML 파일의 <head>에서 preconnect + link로 로드 */

/* ─── CSS 변수 (디자인 시스템 / 라이트 테마) ────── */
:root {
  /* 색상 */
  --bg:            #faf8f3;
  --bg-2:          #f1ece1;
  --bg-3:          #ffffff;
  --bg-4:          #e8e1d2;
  --text:          #2b2620;
  --text-muted:    #6e6557;
  --text-dim:      #a59b8b;
  --accent:        #1075e9;
  --accent-light:  #3d92f5;
  --accent-dark:   #0b57b5;
  --border:        #e4dccd;
  --border-light:  #d2c8b3;
  --white:         #ffffff;

  /* 타이포그래피 — 고딕(Pretendard) 통일 */
  --font-serif:    'Pretendard', 'Noto Sans KR', sans-serif;
  --font-sans:     'Pretendard', 'Noto Sans KR', sans-serif;
  --font-display:  'Pretendard', 'Noto Sans KR', sans-serif;

  /* 크기 */
  --container:     1280px;
  --container-sm:  960px;
  --section-py:    100px;
  --section-py-sm: 60px;

  /* 반경 */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-pill:   50px;

  /* 트랜지션 */
  --transition:    color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
                   transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  --transition-slow: transform 0.6s ease, opacity 0.6s ease;

  /* 태그 색상 */
  --tag-edu-color:     #2071c0;
  --tag-mission-color: #7a3fc9;

  /* 그림자 */
  --shadow-sm:     0 2px 8px rgba(75,60,30,0.08);
  --shadow-md:     0 8px 24px rgba(75,60,30,0.12);
  --shadow-lg:     0 20px 60px rgba(75,60,30,0.18);
  --shadow-accent: 0 4px 20px rgba(16,117,233,0.25);
}

/* ─── 리셋 & 기본 ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── 공통 레이아웃 ────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.container--sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--section-py) 0;
}

/* ─── 섹션 타이틀 ──────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 60px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin: 0 auto;
}

/* 타이틀 데코라인 */
.section-title-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.section-title-line h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  white-space: nowrap;
}

.section-title-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-light), transparent);
}

/* ─── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3d92f5 0%, #1075e9 100%);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4a9bf5 0%, #1075e9 100%);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
  padding: 8px 0;
}

.btn-ghost:hover {
  color: var(--accent-light);
}

.btn-ghost::after {
  content: ' →';
  transition: var(--transition);
}

.btn-ghost:hover::after {
  margin-left: 4px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ─── 카드 ─────────────────────────────────────── */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-4);
  position: relative;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card__thumb img {
  transform: scale(1.05);
}

.card__body {
  padding: 24px;
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(16,117,233,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── 그리드 ────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ─── 구분선 ─────────────────────────────────────  */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─── 태그/뱃지 ──────────────────────────────────  */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.tag--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16,117,233,0.08);
}

/* ─── 네비게이션 ─────────────────────────────────  */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* 스크롤 시(top!=0): 흰 배경 */
#site-header.scrolled {
  background: #ffffff;
  border-bottom-color: var(--border);
}

/* 스크롤 다운 시 위로 숨김 (업 시 스르르 내려옴) */
#site-header.hide {
  transform: translateY(-100%);
}

/* 메인 다크 히어로 위 — top(투명) 상태에서 헤더 요소 흰색 */
/* 다크 히어로 위 — top(투명) 상태에서 헤더 요소 흰색 (전 페이지) */
#site-header:not(.scrolled) .header__logo-text,
#site-header:not(.scrolled) .header__nav a { color: #ffffff; }
#site-header:not(.scrolled) .header__logo img { filter: brightness(0) invert(1); }
#site-header:not(.scrolled) .header__burger span { background: #ffffff; }
#site-header:not(.scrolled) .header__nav a:hover { color: var(--accent-light); }

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.header__logo-sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header__nav a {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--text);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 햄버거 (모바일) */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* 모바일 메뉴 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,248,243,0.98);
  z-index: 999;
  flex-direction: column;
  padding: 40px;
  gap: 32px;
  align-items: flex-start;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ─── 히어로 섹션 ────────────────────────────────  */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* 배경 딤(Dim): 검은 반투명 오버레이 — 텍스트 영역(좌측) 강하게, 우측은 이미지 식별 유지 */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero__video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,248,243,0.92) 0%, rgba(250,248,243,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 700px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.8); }
}

/* ─── 통계 배너 ──────────────────────────────────  */
.stats-banner {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ─── 비디오 썸네일 ─────────────────────────────── */
.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-4);
}

.video-thumb__img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.video-thumb:hover .video-thumb__img {
  transform: scale(1.04);
  opacity: 0.8;
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(16,117,233,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-thumb__play svg {
  width: 22px;
  height: 22px;
  fill: var(--bg);
  margin-left: 4px;
}

.video-thumb:hover .video-thumb__play {
  background: var(--accent-light);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 8px rgba(16,117,233,0.2);
}

.video-thumb__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.video-thumb__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.video-thumb__cat {
  font-size: 0.7rem;
  color: var(--accent-light); /* 다크 사진 오버레이 위 — 밝은 골드 고정 */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ─── 모달 (비디오 플레이어) ────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-overlay.open {
  display: flex;
}

.modal-video {
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.modal-video__close {
  position: absolute;
  top: -48px;
  right: 0;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  line-height: 1;
}

.modal-video__close:hover {
  color: var(--text);
}

.modal-video__iframe {
  aspect-ratio: 16/9;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* ─── 탭 필터 ────────────────────────────────────── */
.tab-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 8px 22px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 600;
}

/* ─── 지난 일정 접기 섹션 ─────────────────────────── */
.schedule-past {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  text-align: center;
}
.schedule-past__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: var(--transition);
}
.schedule-past__toggle::-webkit-details-marker { display: none; }
.schedule-past__toggle:hover { border-color: var(--accent); color: var(--accent); }
.schedule-past[open] .schedule-past__toggle { color: var(--accent); border-color: var(--accent); }
.schedule-past__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--white);
  background: var(--text-dim);
  border-radius: var(--radius-pill);
}
.schedule-past__toggle:hover .schedule-past__count,
.schedule-past[open] .schedule-past__toggle .schedule-past__count { background: var(--accent); }
.schedule-past__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.schedule-past[open] .schedule-past__toggle::after { transform: translateY(2px) rotate(225deg); }
.schedule-past__body {
  margin-top: 44px;
  text-align: left;
}
.schedule-past__body .schedule-card { opacity: 0.92; }

/* ─── 폼 ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,117,233,0.15);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ─── 푸터 ────────────────────────────────────────── */
#site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__col h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__col ul li a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__info {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}

/* ─── 스크롤 애니메이션 ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ─── 유틸리티 ───────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.w-full      { width: 100%; }

/* 스크린리더 전용 (시각적으로 숨김) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── 서브페이지 공통 히어로 (page-hero) ────────── */
.page-hero {
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #0a2c63;
  background-image:
    linear-gradient(rgba(8,20,42,0.78), rgba(8,20,42,0.62)),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero::before {
  content: attr(data-title);
  position: absolute;
  right: 40px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 10rem;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.page-hero__label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-light);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}

.page-hero__title em {
  font-style: italic;
  color: var(--accent-light);
}

.page-hero__breadcrumb {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-hero__breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero__breadcrumb a:hover { color: var(--accent-light); }

/* ─── 일정/영상 타입 배지 ────────────────────────── */
.schedule-type {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(16,117,233,0.1);
  color: var(--accent);
  border: 1px solid rgba(16,117,233,0.3);
}

.schedule-type.type-edu {
  background: rgba(100,180,255,0.1);
  color: var(--tag-edu-color);
  border-color: rgba(100,180,255,0.3);
}

.schedule-type.type-mission {
  background: rgba(180,130,255,0.1);
  color: var(--tag-mission-color);
  border-color: rgba(180,130,255,0.3);
}

/* ─── 반응형 ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-banner__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .page-hero::before { display: none; }

  .container { padding: 0 20px; }
  #site-header { padding: 0 20px; }
  .header__nav { display: none; }
  .header__cta .btn { display: none; }
  .header__burger { display: flex; }

  :root { --section-py: 60px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-banner__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__info { text-align: center; }

  .hero__title { font-size: 2.4rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero .container { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .stats-banner__grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .tab-filter { gap: 6px; }
  .tab-btn { padding: 6px 14px; font-size: 0.8rem; }
}

/* ─── 강사진 (Instructors) ──────────────────────── */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.instructor-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.instructor-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.instructor-card__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%);
  transition: var(--transition-slow);
}

.instructor-card:hover .instructor-card__img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.instructor-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 20%, rgba(10,10,10,0.6) 70%, transparent 100%);
}

/* 다크 사진 오버레이 위 — 밝은 색 고정 */
.instructor-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.instructor-card__name span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent-light);
  margin-left: 6px;
}

.instructor-card__role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.instructor-card__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 2px;
}

/* 강사 상세 모달 */
.instructor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.instructor-modal.open { display: flex; }

.instructor-modal__panel {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
}

.instructor-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.instructor-modal__close:hover { background: var(--accent); color: #ffffff; }

.instructor-modal__head {
  display: flex;
  gap: 28px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  align-items: flex-end;
  background: linear-gradient(to bottom, var(--bg-3), var(--bg-2));
}

.instructor-modal__photo {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.instructor-modal__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.instructor-modal__name span { font-size: 1rem; color: var(--accent); margin-left: 8px; }

.instructor-modal__title {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.instructor-modal__body { padding: 28px 32px 36px; }

.instructor-modal__section + .instructor-modal__section { margin-top: 24px; }

.instructor-modal__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.instructor-modal__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}

@media (max-width: 1024px) {
  .instructor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .instructor-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .instructor-modal__head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .instructor-modal__body { padding: 20px 24px 28px; }
}

@media (max-width: 480px) {
  .instructor-grid { grid-template-columns: 1fr 1fr; }
  .instructor-card__name { font-size: 0.95rem; }
}

/* ===================================================
   디자인 디벨롭 (2026-06-11) — 라이트 테마 고급화
=================================================== */

/* ─── 글로벌 피니싱 ─────────────────────────────── */
::selection {
  background: rgba(16,117,233,0.35);
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── 타이포그래피 정제 (한글 자간) ──────────────── */
.section-title,
.hero__title,
.page-hero__title {
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero__title { font-weight: 800; }

.card__title,
.video-thumb__title { letter-spacing: -0.01em; }

.header__nav a {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── 헤더: 스크롤 시 입체감 ─────────────────────── */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(75,60,30,0.08);
}

/* ─── 히어로: 다크 딤 배경 + 좌측 정렬 텍스트 ───────── */
/* 컨테이너를 풀폭으로 풀어 헤더 로고와 같은 좌측 라인(40px)에 맞춤 */
.hero .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* 콘텐츠는 컨테이너 내부에서 왼쪽 정렬 */
.hero__content {
  text-align: left;
  max-width: 680px;
  margin-right: auto;
}

/* 다크 배경용 텍스트 색상 (가독성 확보) */
.hero__title { color: #ffffff; }
.hero__title em { color: var(--accent-light); }
.hero__subtitle { color: rgba(255,255,255,0.82); }
.hero__label { color: var(--accent-light); }
.hero__scroll { color: rgba(255,255,255,0.6); }

/* 히어로 아웃라인 버튼 — 다크 배경 대비 */
.hero__actions .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.hero__actions .btn-outline:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ─── 통계 배너: 히어로 위로 떠 있는 카드 ────────── */
.stats-banner {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: -76px;
  position: relative;
  z-index: 5;
}

.stats-banner__grid {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stat-item { padding: 36px 20px; }

@media (max-width: 768px) {
  .stats-banner { margin-top: -48px; }
  .stat-item { padding: 24px 16px; border-right: none; }
  .stats-banner__grid .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ─── 섹션 헤더(센터형): 라벨 양옆 장식선 ────────── */
.section-header--center .section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-header--center .section-label::before,
.section-header--center .section-label::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent-light);
}

/* ─── 미디어 라운드 통일 ─────────────────────────── */
.video-thumb { border-radius: 0; }

/* ─── 메인 최신영상: 썸네일 세로 사이즈 확대 + 라운드 ── */
#home-videos-wrap .video-thumb { border-radius: var(--radius-md); }
#home-videos-wrap .video-thumb__img { aspect-ratio: 16/11; }

/* ─── 푸터: 다크 브라운 앵커 ─────────────────────── */
#site-footer {
  background: #241d12;
  border-top: 3px solid var(--accent-light);
  padding: 72px 0 36px;
}

#site-footer .footer__brand p { color: rgba(240,235,227,0.55); }

#site-footer .footer__brand div { color: #f0ebe3 !important; }

#site-footer .footer__col h4 {
  color: #f0ebe3;
  border-bottom-color: rgba(255,255,255,0.12);
}

#site-footer .footer__col ul li a { color: rgba(240,235,227,0.55); }
#site-footer .footer__col ul li a:hover { color: var(--accent-light); }

#site-footer .footer__bottom { border-top-color: rgba(255,255,255,0.12); }

#site-footer .footer__copy,
#site-footer .footer__info { color: rgba(240,235,227,0.4); }

/* 푸터 로고(회색)는 다크 배경에서 밝게 */
#site-footer .footer__brand img { filter: brightness(0) invert(0.92); }

/* ─── 라인 아이콘 유틸 (이모지 대체) ─────────────── */
.icon-line {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ─── 강사 카드 디벨롭 (2026-06-11) ──────────────── */
.instructor-card {
  border-radius: var(--radius-lg);
}

/* 전문분야 칩 (사진 좌상단) */
.instructor-card__chip {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.93);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.instructor-card__chip--leader {
  background: linear-gradient(135deg, #3d92f5, #1075e9);
  color: #ffffff;
}

/* 하단 골드 라인 (hover 시 좌→우) */
.instructor-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, #3d92f5, #1075e9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 3;
}

.instructor-card:hover::after { transform: scaleX(1); }

/* '상세 프로필' — hover 시 떠오름 (모바일은 항상 표시) */
.instructor-card__more {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.instructor-card:hover .instructor-card__more {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .instructor-card__more { opacity: 1; transform: none; }
}

/* ─── 비디오 썸네일 디벨롭 (2026-06-11) ──────────── */
/* 하단 골드 라인 (hover 좌→우) — 강사 카드와 동일 패턴 */
.video-thumb::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, #3d92f5, #1075e9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 3;
}

.video-thumb:hover::after { transform: scaleX(1); }

/* 재생 버튼 — hover 시 골드 펄스 링 */
@keyframes playPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,117,233,0.45); }
  100% { box-shadow: 0 0 0 18px rgba(16,117,233,0); }
}

.video-thumb:hover .video-thumb__play {
  animation: playPulse 1.3s ease infinite;
}

/* FEATURED 칩 (피처드 영상 좌상단) */
.video-chip {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #3d92f5, #1075e9);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
