/* COVA Education System - Minimalist Architectural Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Cascade Layers - 우선순위 제어 시스템 */
@layer reset, base, components, utilities, overrides;

/* ===================================
   MODAL V2 SYSTEM - CSS-ONLY LAYOUT  
   No JavaScript Interference
   =================================== */
.cova-modal2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.cova-modal2.is-open {
  display: flex;
}

.cova-modal2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.cova-modal2-dialog {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  height: min(88vh, 960px);
  width: min(1200px, 96vw);
  max-width: 1200px;
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.modal2-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 0;
}

.modal2-media-box {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal2-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  border: none;
  outline: none;
}

.modal2-panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
}

.modal2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.modal2-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text);
  margin: 0;
  flex: 1;
}

.modal2-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal2-close:hover {
  background: var(--bg-accent);
  color: var(--text);
  border-color: var(--border);
}

.modal2-content {
  flex: 1;
  overflow-y: auto;
}

.modal2-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.modal2-keymoments {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal2-keymoment {
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal2-keymoment:hover {
  background: var(--bg-sophisticated);
  border-color: var(--border);
}

.modal2-keymoment-time {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--accent-sophisticated);
  margin-bottom: var(--space-1);
}

.modal2-keymoment-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-bottom: var(--space-1);
}

.modal2-keymoment-summary {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Mobile Responsive */
/* PC 화면용 기본 설정 */
.hero-content {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  /* 모바일 텍스트 완전 선명화 - 모든 렌더링 최적화 */
  .hero-content,
  .hero-content *,
  .text-reveal,
  .hero-title-dynamic,
  .text-highlight,
  .btn,
  .tagline {
    /* 렌더링 최적화 */
    -webkit-font-smoothing: subpixel-antialiased !important;
    -moz-osx-font-smoothing: auto !important;
    text-rendering: optimizeLegibility !important;
    
    /* 모든 효과 제거 */
    filter: none !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    
    /* Transform 제거 */
    transform: none !important;
    will-change: auto !important;
    
    /* 레이어링 최적화 */
    contain: none !important;
    isolation: auto !important;
    
    /* 폰트 강화 */
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    
    /* 흰색 글씨로 되돌리기 */
    color: #ffffff !important;
  }

  /* 🎯 모바일 전용: text-highlight 배경 애니메이션 제거 - 텍스트 선명도 향상 */
  .text-highlight::before {
    transform: none !important;
    transition: none !important;
    opacity: 0 !important; /* 배경 강조바 완전 제거 */
  }

  /* 📱 모바일 폰트 렌더링 완전 최적화 - 웹폰트 로딩 문제 해결 */
  .hero-content,
  .hero-content *,
  .text-reveal,
  .text-reveal *,
  .hero-title-dynamic,
  .hero-title-dynamic *,
  .text-highlight,
  .text-highlight * {
    /* 시스템 폰트 강제 사용 - 로딩 지연 없음 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    
    /* 폰트 디스플레이 최적화 */
    font-display: block !important;
    font-variant-ligatures: none !important;
    
    /* 서브픽셀 렌더링 강화 */
    text-rendering: geometricPrecision !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    
    /* 폰트 크기 고정 - 동적 크기 변화 방지 */
    font-size-adjust: none !important;
  }

  /* FOLLOW 버튼 원래대로 */
  .hero-content .btn {
    background: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  .cova-modal2-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: min(95vh, 800px);
    width: 95vw;
    gap: 0;
  }
  
  .modal2-media-box {
    aspect-ratio: 3 / 2;
  }
  
  .modal2-panel {
    max-height: 40vh;
    padding: var(--space-4);
  }
}

/* Modal Open Body State */
body.modal-open {
  overflow: hidden;
}

.modal2-no-keymoments {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  padding: var(--space-4);
}

/* ===================================
   KICKOFF MODAL - 3 AREA LAYOUT
   6:4 ratio with left split (video/image)
   =================================== */

/* Kickoff-specific modal layout */
.cova-modal2.kickoff-layout .cova-modal2-dialog {
  grid-template-columns: 3fr 2fr; /* 6:4 ratio */
  grid-template-areas: 
    "media panel"
    "media panel";
  gap: 0;
  max-width: 1400px;
  width: min(1400px, 96vw);
}

/* Left area - split into video (top) and image (bottom) - KICKOFF ONLY */
.cova-modal2.kickoff-layout .modal2-media {
  grid-area: media;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto; /* Content-sized bottom */
  gap: 1px;
  background: #000000;
  padding: 0;
  min-height: 0;
}

/* Video section (top left) - KICKOFF ONLY */
.cova-modal2.kickoff-layout .modal2-video-section {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  margin-top: -38px;
}

.cova-modal2.kickoff-layout .modal2-media-box {
  width: 100%;
  height: 100%;
  aspect-ratio: unset; /* Remove fixed aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cinematic wrapper for professional video effects - KICKOFF ONLY */
.cova-modal2.kickoff-layout .cinematic-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.cova-modal2.kickoff-layout .modal2-video {
  width: 100%; /* 오른쪽을 2cm 늘려서 원래 크기로 복원 */
  height: 85% !important; /* 높이를 85%로 줄여서 썸네일과 겹치지 않도록 */
  margin-left: 0.5cm; /* 중앙 정렬을 위해 여백 조정 */
  margin-top: -5% !important; /* 영상을 더 위로 올려서 썸네일과 겹치지 않도록 */
  object-fit: cover;
  aspect-ratio: 3 / 2; /* Maintain 3:2 video ratio */
  max-height: 85% !important;
  max-width: 100%; /* 최대 너비도 동일하게 조정 */
  pointer-events: none; /* Disable all mouse interactions */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Ambient background video styling - KICKOFF ONLY */
.cova-modal2.kickoff-layout .modal2-video.ambient {
  filter: blur(1.2px) saturate(0.58) contrast(0.9) brightness(0.85);
  animation: none;
  will-change: auto;
}

/* Professional color grading (preserve for other contexts) */
.cova-modal2.kickoff-layout .modal2-video.cinematic {
  filter: contrast(1.08) saturate(1.12) brightness(0.96) sepia(0.06) hue-rotate(-5deg);
  will-change: transform;
  animation: cam-drift 12s ease-in-out infinite;
  transform-origin: center;
}

/* Subtle handheld camera movement */
@keyframes cam-drift {
  0% { transform: translate3d(0, 0, 0) scale(1.018); }
  25% { transform: translate3d(0.2%, -0.15%, 0) scale(1.022); }
  50% { transform: translate3d(-0.1%, 0.1%, 0) scale(1.020); }
  75% { transform: translate3d(0.15%, -0.05%, 0) scale(1.019); }
  100% { transform: translate3d(0, 0, 0) scale(1.018); }
}

/* Vignette effect */
.cova-modal2.kickoff-layout .cinematic-wrap::before {
  content: "";
  position: absolute;
  inset: -2%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 80%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Stronger vignette for ambient mode */
.cova-modal2.kickoff-layout .cinematic-wrap.ambient::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.5) 100%);
}

/* Ambient overlay for background feel */
.cova-modal2.kickoff-layout .ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.45) 100%),
    radial-gradient(ellipse at 50% 35%, rgba(112,225,184,0.06), transparent 60%);
  mix-blend-mode: soft-light;
  z-index: 2;
}

/* Overall wrapper opacity for ambient */
.cova-modal2.kickoff-layout .cinematic-wrap.ambient {
  opacity: 0.82;
}

/* Film grain */
.cova-modal2.kickoff-layout .grain {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 0 1px,
    rgba(0,0,0,0.08) 1px 2px
  );
  mix-blend-mode: soft-light;
  animation: grain-move 1.8s steps(3) infinite;
  z-index: 2;
}

/* Reduced grain for ambient */
.cova-modal2.kickoff-layout .cinematic-wrap.ambient .grain {
  opacity: 0.02;
  animation: none;
}

@keyframes grain-move {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-0.8%, 0.5%); }
  66% { transform: translate(0.6%, -0.3%); }
  100% { transform: translate(0, 0); }
}

/* Subtle bloom effect */
.cova-modal2.kickoff-layout .bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04), transparent 65%);
  mix-blend-mode: screen;
  z-index: 3;
}

/* Reduced bloom for ambient */
.cova-modal2.kickoff-layout .cinematic-wrap.ambient .bloom {
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.02), transparent 55%);
}

/* Mobile adjustments for ambient */
@media (max-width: 768px) {
  .cova-modal2.kickoff-layout .modal2-video.ambient {
    filter: blur(1.6px) saturate(0.55) contrast(0.88) brightness(0.82);
  }
  .cova-modal2.kickoff-layout .cinematic-wrap.ambient {
    opacity: 0.78;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cova-modal2.kickoff-layout .modal2-video.cinematic {
    animation: none;
  }
  .cova-modal2.kickoff-layout .grain {
    animation: none;
  }
}

.cova-modal2.kickoff-layout .modal2-video::-webkit-media-controls {
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-video::-webkit-media-controls-panel {
  display: none !important;
}

/* Image section (bottom left) - KICKOFF ONLY */
.cova-modal2.kickoff-layout .modal2-image-section {
  background: var(--bg-secondary);
  display: grid;
  place-content: end center;
  padding: var(--space-1) var(--space-2) var(--space-3) var(--space-2);
  border-top: 1px solid var(--border);
  min-height: 0;
  overflow: hidden;
}

/* Thumbnails Grid - KICKOFF ONLY */
.cova-modal2.kickoff-layout .modal2-thumbnails-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: var(--space-2);
  width: 98%;
  padding: var(--space-2);
  box-sizing: border-box;
}

.thumbnail-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  min-height: 100px;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 225, 184, 0.3);
}

.thumbnail-item:hover img {
  transform: scale(1.05);
}

/* Right panel (full height) */
.cova-modal2.kickoff-layout .modal2-panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

/* Complete scrollbar removal for kickoff panel */
.cova-modal2.kickoff-layout .modal2-panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  position: relative;
}

.cova-modal2.kickoff-layout .modal2-panel::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-panel::-webkit-scrollbar-track {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-panel::-webkit-scrollbar-thumb {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-panel::-webkit-scrollbar-corner {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-panel::-webkit-scrollbar-button {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* Global scrollbar removal for all modal panels */
.cova-modal2 .modal2-panel,
.cova-modal2 .modal2-content {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.cova-modal2 .modal2-panel::-webkit-scrollbar,
.cova-modal2 .modal2-content::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2 .modal2-panel::-webkit-scrollbar-track,
.cova-modal2 .modal2-content::-webkit-scrollbar-track {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2 .modal2-panel::-webkit-scrollbar-thumb,
.cova-modal2 .modal2-content::-webkit-scrollbar-thumb {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2 .modal2-panel::-webkit-scrollbar-corner,
.cova-modal2 .modal2-content::-webkit-scrollbar-corner {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2 .modal2-panel::-webkit-scrollbar-button,
.cova-modal2 .modal2-content::-webkit-scrollbar-button {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* Hide video description areas for kickoff layout */
.cova-modal2.kickoff-layout .modal2-video-header {
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-panel .modal2-description {
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-kickoff-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.cova-modal2.kickoff-layout .modal2-detail-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 0, 0, 0.5) 100%
  ) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: var(--space-3);
  margin: 0 var(--space-3) var(--space-3) var(--space-3);
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cova-modal2.kickoff-layout .modal2-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.cova-modal2.kickoff-layout .modal2-detail-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cova-modal2.kickoff-layout .modal2-detail-section:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  backdrop-filter: blur(30px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-4px) scale(1.03) !important;
}

.cova-modal2.kickoff-layout .modal2-detail-section:hover::after {
  opacity: 1;
}

/* ===================================
   STEPZERO (GRADE-JUNIOR) LAYOUT STYLES
   =================================== */

/* STEPZERO VIDEO SIZING - Match KICK-OFF size */
.cova-modal2.stepzero-layout .modal2-media-box {
  width: 100%;
  height: 100%;
  aspect-ratio: unset; /* Remove fixed aspect ratio to match kickoff */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Keep frame size, crop enlarged video */
}

/* Create stepzero cinematic wrapper like kickoff */
.cova-modal2.stepzero-layout .cinematic-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.cova-modal2.stepzero-layout .cinematic-wrap.ambient {
  opacity: 0.82;
}

/* Removed cross-layout coupling selector - now handled in isolated system */

/* Removed global and cross-layout selectors - now handled in isolated system */

/* Ensure stepzero video is always muted and has no controls */
.cova-modal2.stepzero-layout .modal2-video,
.cova-modal2.stepzero-layout .modal2-video.ambient {
  /* 영상 위치와 크기는 JavaScript에서 설정하므로 여기서는 제거 */
  pointer-events: none !important; /* Disable all interactions */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.cova-modal2.stepzero-layout .modal2-video::-webkit-media-controls {
  display: none !important;
}

.cova-modal2.stepzero-layout .modal2-video::-webkit-media-controls-panel {
  display: none !important;
}

/* Apply same glassmorphism effects for stepzero layout */
.cova-modal2.stepzero-layout .modal2-detail-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 0, 0, 0.5) 100%
  ) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: var(--space-3);
  margin: 0 var(--space-3) var(--space-3) var(--space-3);
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cova-modal2.stepzero-layout .modal2-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.cova-modal2.stepzero-layout .modal2-detail-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cova-modal2.stepzero-layout .modal2-detail-section:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  backdrop-filter: blur(30px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-4px) scale(1.03) !important;
}

.cova-modal2.stepzero-layout .modal2-detail-section:hover::after {
  opacity: 1;
}

/* Complete scrollbar removal for stepzero panel */
.cova-modal2.stepzero-layout .modal2-panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

.cova-modal2.stepzero-layout .modal2-panel::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.stepzero-layout .modal2-panel::-webkit-scrollbar-track {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.stepzero-layout .modal2-panel::-webkit-scrollbar-thumb {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.stepzero-layout .modal2-panel::-webkit-scrollbar-corner {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.stepzero-layout .modal2-panel::-webkit-scrollbar-button {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* ===================================
   GRADE1 LAYOUT STYLES
   =================================== */

/* Removed duplicate - now handled in isolated system at end of file */

/* Apply same glassmorphism effects for grade1 layout */
.cova-modal2.grade1-layout .modal2-detail-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 0, 0, 0.5) 100%
  ) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: var(--space-3);
  margin: 0 var(--space-3) var(--space-3) var(--space-3);
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cova-modal2.grade1-layout .modal2-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.cova-modal2.grade1-layout .modal2-detail-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cova-modal2.grade1-layout .modal2-detail-section:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  backdrop-filter: blur(30px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-4px) scale(1.03) !important;
}

.cova-modal2.grade1-layout .modal2-detail-section:hover::after {
  opacity: 1;
}

/* Complete scrollbar removal for grade1 panel */
.cova-modal2.grade1-layout .modal2-panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

.cova-modal2.grade1-layout .modal2-panel::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade1-layout .modal2-panel::-webkit-scrollbar-track {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade1-layout .modal2-panel::-webkit-scrollbar-thumb {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade1-layout .modal2-panel::-webkit-scrollbar-corner {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade1-layout .modal2-panel::-webkit-scrollbar-button {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* ===================================
   GRADE2 LAYOUT STYLES
   =================================== */

/* Removed duplicate - now handled in isolated system at end of file */

/* Apply same glassmorphism effects for grade2 layout */
.cova-modal2.grade2-layout .modal2-detail-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 0, 0, 0.5) 100%
  ) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: var(--space-3);
  margin: 0 var(--space-3) var(--space-3) var(--space-3);
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cova-modal2.grade2-layout .modal2-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.cova-modal2.grade2-layout .modal2-detail-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cova-modal2.grade2-layout .modal2-detail-section:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  backdrop-filter: blur(30px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-4px) scale(1.03) !important;
}

.cova-modal2.grade2-layout .modal2-detail-section:hover::after {
  opacity: 1;
}

/* Complete scrollbar removal for grade2 panel */
.cova-modal2.grade2-layout .modal2-panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: var(--space-6) var(--space-5) var(--space-6) var(--space-6);
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

.cova-modal2.grade2-layout .modal2-panel::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade2-layout .modal2-panel::-webkit-scrollbar-track {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade2-layout .modal2-panel::-webkit-scrollbar-thumb {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade2-layout .modal2-panel::-webkit-scrollbar-corner {
  width: 0px !important;
  background: transparent !important;
  display: none !important;
}

.cova-modal2.grade2-layout .modal2-panel::-webkit-scrollbar-button {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

/* Overview section styling */
.modal2-overview-section {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.modal2-overview-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.modal2-overview-icon {
  font-size: 1.2rem;
}

.modal2-overview-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal2-overview-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Education goals section styling */
.modal2-education-goals-section {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.modal2-education-goals-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.modal2-education-goals-icon {
  font-size: 1.2rem;
}

.modal2-education-goals-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal2-education-goals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal2-education-goal-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.modal2-goal-bullet {
  color: var(--primary);
  font-weight: bold;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal2-goal-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Program Features Section */
.modal2-program-features {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: var(--space-5);
  margin: var(--space-4) 0;
}

.modal2-features-header {
  margin-bottom: var(--space-4);
}

.modal2-features-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal2-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.modal2-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal2-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal2-feature-content {
  flex: 1;
}

.modal2-feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.modal2-feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .modal2-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Force modal2 features to be visible - override any collapsible/hidden styles */
.cova-modal2 .modal2-program-features {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

.cova-modal2 .modal2-features-grid {
  display: grid !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cova-modal2 .modal2-feature-item {
  display: flex !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hide all timeline elements for stepzero layout */
.cova-modal2.stepzero-layout .modal2-keymoment-time,
.cova-modal2.stepzero-layout .keymoment-marker,
.cova-modal2.stepzero-layout .modal2-methodology-time,
.cova-modal2.stepzero-layout .modal2-step-time,
.cova-modal2.stepzero-layout .timeline-progress,
.cova-modal2.stepzero-layout .keymoments-timeline,
.cova-modal2.stepzero-layout .modal2-keymoment,
.cova-modal2.stepzero-layout .keymoment-item,
.cova-modal2.stepzero-layout .moment-time,
.cova-modal2.stepzero-layout .keymoments-list,
.cova-modal2.stepzero-layout .keymoments-container,
.cova-modal2.stepzero-layout [data-time],
.cova-modal2.stepzero-layout *[class*="time"],
.cova-modal2.stepzero-layout *[class*="moment"]:not(.modal2-detail-section) {
  display: none !important;
  visibility: hidden !important;
}

.cova-modal2.kickoff-layout .modal2-detail-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cova-modal2.kickoff-layout .modal2-detail-content {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
}

.cova-modal2.kickoff-layout .modal2-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cova-modal2.kickoff-layout .modal2-detail-list li {
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cova-modal2.kickoff-layout .modal2-detail-list li:last-child {
  border-bottom: none;
}

/* Kickoff mobile responsiveness */
@media (max-width: 768px) {
  .cova-modal2.kickoff-layout .cova-modal2-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: 
      "media"
      "panel";
    height: min(95vh, 900px);
    gap: 0;
  }
  
  .cova-modal2.kickoff-layout .modal2-media {
    grid-template-rows: 1fr auto; /* Video takes more space, image compacts */
    max-height: 60vh;
  }
  
  .cova-modal2.kickoff-layout .modal2-image-section {
    padding: var(--space-2);
    max-height: 240px; /* Sufficient height for 2x3 mobile grid */
  }
  
  .cova-modal2.kickoff-layout .modal2-panel {
    max-height: 40vh;
    padding: var(--space-4);
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ===================================
   CURRICULUM FONT SIZE UNIFICATION
   =================================== */

/* Ensure all curriculum sections have unified font size */
.modal2-step-content {
  font-size: var(--text-xs) !important;
  line-height: var(--leading-relaxed) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.modal2-curriculum-preview .modal2-step-content {
  font-size: var(--text-xs) !important;
  line-height: var(--leading-relaxed) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Target all curriculum detail content containers */
#kickoffCurriculum .modal2-step-content,
#kickoffG1Preview .modal2-step-content, 
#kickoffG2Preview .modal2-step-content,
#kickoffStep4 .modal2-step-content {
  font-size: var(--text-xs) !important;
  line-height: var(--leading-relaxed) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ===================================
   ENHANCED KICKOFF CONTENT STYLING
   =================================== */

/* Video Header (Information Display) */
.modal2-video-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  color: white;
  padding: var(--space-3);
  z-index: 2;
  border-radius: 4px 4px 0 0;
}

.modal2-video-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.modal2-video-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  color: white;
}

.modal2-video-desc {
  font-size: var(--text-xs);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
}

.modal2-video-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
}

.modal2-video-duration {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: var(--font-weight-medium);
}

.modal2-video-separator {
  opacity: 0.6;
}

.modal2-video-points {
  font-weight: var(--font-weight-medium);
}

/* Key Moments Visual Markers - Enhanced with proper layering */
.modal2-keymoment-markers {
  position: absolute;
  bottom: 60px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none; /* Prevent interference with video controls */
}

/* Specific container for markers overlay */
#modal2KeymomentMarkers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  pointer-events: none; /* Container doesn't block video controls */
  z-index: 15; /* Higher than video controls but below modal overlays */
}

.keymoment-marker {
  position: absolute;
  top: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent-sophisticated);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto; /* Individual markers can be clicked */
  z-index: 16; /* Ensure markers are above their container */
}

.keymoment-marker:hover {
  transform: scale(1.3);
  background: var(--accent);
}

.keymoment-marker:before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: transparent;
  border-radius: 50%;
  z-index: -1;
}

/* Image Section Enhancements */
.modal2-image-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal2-image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: white;
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.modal2-image-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.modal2-image-desc {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
}


/* Tab Navigation */
.modal2-tab-nav {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-accent);
  border-radius: 4px 4px 0 0;
  padding: 2px;
}

.modal2-tab-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal2-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.modal2-tab-btn.active {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px) scale(1.02);
}

.modal2-tab-btn:hover:not(.active) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 5px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.01);
}

/* Tab Content */
.modal2-tab-content {
  display: none;
}

.modal2-tab-content.active {
  display: block;
}

/* Enhanced Detail Sections - Advanced Glassmorphism */
.modal2-detail-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid;
  border-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  ) 1;
  border-radius: 16px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.modal2-detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.modal2-detail-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal2-detail-section:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%
  ) 1;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.02);
}

.modal2-detail-section:hover::after {
  opacity: 1;
}

/* Goal Cards with Icons */
.modal2-goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.modal2-goal-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
  transition: all 0.2s ease;
}

.modal2-goal-card:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}

.modal2-goal-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  display: inline-block;
  margin-right: var(--space-2);
}

.modal2-goal-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-3);
}

.modal2-goal-content {
  flex: 1;
}

.modal2-goal-title {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-1);
}

.modal2-goal-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

/* Methodology Timeline */
.modal2-methodology-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal2-methodology-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  position: relative;
}

.modal2-methodology-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-sophisticated);
  border-radius: 0 2px 2px 0;
}

.modal2-methodology-phase {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--accent-sophisticated);
  min-width: 80px;
}

.modal2-methodology-content {
  flex: 1;
}

.modal2-methodology-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  background: var(--bg-accent);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
}

.modal2-methodology-details {
  margin-top: var(--space-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.modal2-methodology-detail {
  font-size: var(--text-xs);
  background: var(--bg-accent);
  color: var(--text-secondary);
  padding: 1px 4px;
  border-radius: 2px;
}

/* FAQ Styling */
.modal2-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal2-faq-item {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.modal2-faq-question {
  padding: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  background: var(--bg-accent);
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal2-faq-question:hover {
  background: var(--bg-sophisticated);
}

.modal2-faq-answer {
  padding: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--border-subtle);
}

/* Results Section Styling - Professional Grade 2 Results Display */
.modal2-results {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.result-step {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-4);
  transition: all 0.2s ease;
  position: relative;
}

.result-step:hover {
  background: var(--bg-accent);
  border-color: var(--border);
}

.result-step-title {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  font-family: var(--font-display);
}

.result-step-list {
  margin: 0;
  padding-left: var(--space-4);
  list-style: none;
}

.result-step-item {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
  position: relative;
  font-size: var(--text-xs);
}

.result-step-item:before {
  content: '•';
  position: absolute;
  left: calc(var(--space-3) * -1);
  color: var(--accent-sophisticated);
  font-weight: var(--font-weight-semibold);
}

.result-step-item:last-child {
  margin-bottom: 0;
}

/* Philosophy Styling */
.modal2-philosophy-motto {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--accent-sophisticated);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--space-4);
  font-style: italic;
  position: relative;
}


/* Expected Outcomes */
.modal2-outcomes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal2-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg);
  border-left: 3px solid var(--accent-sophisticated);
  border-radius: 0 4px 4px 0;
}

.modal2-outcome-item::before {
  content: '✓';
  color: var(--accent-sophisticated);
  font-weight: var(--font-weight-semibold);
  flex-shrink: 0;
}

.modal2-outcome-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Enhanced mobile responsiveness for new elements */
@media (max-width: 768px) {
  .modal2-goals-grid {
    grid-template-columns: 1fr;
  }
  
  .modal2-video-header {
    position: relative;
    background: var(--bg-accent);
    color: var(--text);
    border-radius: 0;
  }
  
  .modal2-video-title,
  .modal2-video-desc {
    color: var(--text);
  }
  
  .modal2-video-meta {
    color: var(--text-secondary);
  }
  
  /* Mobile thumbnails grid - KICKOFF ONLY */
  .cova-modal2.kickoff-layout .modal2-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--space-1);
    padding: var(--space-2);
  }
}

/* ================================= */

:root {
  /* nagi Inspired Black Theme (Default) */
  --bg: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #111111;
  --bg-accent: rgba(255, 255, 255, 0.05);
  --bg-sophisticated: rgba(255, 255, 255, 0.08);
  --card: #000000;
  --card-elevated: #111111;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --accent: #ffffff;
  --accent-hover: rgba(255, 255, 255, 0.8);
  --accent-sophisticated: #70e1b8;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  
  /* nagi Typography Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */
  
  /* nagi Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* nagi Letter Spacing (Tracking) */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* nagi Line Heights (Leading) */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* nagi Pure Black Theme Enhanced */
.dark {
  --bg: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #0a0a0a;
  --bg-accent: rgba(255, 255, 255, 0.03);
  --bg-sophisticated: rgba(255, 255, 255, 0.06);
  --card: #000000;
  --card-elevated: #0a0a0a;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.03);
  --accent: #ffffff;
  --accent-hover: rgba(255, 255, 255, 0.9);
  --accent-sophisticated: #70e1b8;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Accessibility and Performance States */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduced-motion .video-tile {
  animation: none !important;
  transform: none !important;
  opacity: 1.0 !important;
}

.performance-mode .video-tile {
  will-change: auto;
}

.performance-mode .video-mosaic-container::before,
.performance-mode .video-mosaic-container::after {
  opacity: 0.5 !important;
}

.video-fallback .video-mosaic-container {
  opacity: 0.3 !important;
}

.video-fallback .video-tile {
  animation: none !important;
  opacity: 0.4 !important;
}

.video-fallback .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(112, 225, 184, 0.1) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(112, 225, 184, 0.05) 100%);
  z-index: 2;
}

/* Mobile Performance Optimizations - PC와 동일한 설정 사용 */
@media (max-width: 768px) {
  /* 비디오 관련 override 모두 제거 - PC 설정 그대로 사용 */
  
  .performance-toggle .toggle-text {
    display: none;
  }
  
  .header-controls {
    gap: var(--space-2);
  }
  
  .performance-toggle {
    padding: var(--space-2);
    width: 32px;
    height: 32px;
    justify-content: center;
  }
}

/* Reduce animation complexity on low-end devices */
@media (max-width: 480px), 
       (prefers-reduced-motion: reduce),
       screen and (max-device-width: 768px) and (-webkit-device-pixel-ratio: 1) {
  .video-tile {
    animation-duration: 1.5s !important;
    animation-timing-function: ease-in-out !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .performance-toggle {
    border-width: 2px;
    background: transparent;
  }
  
  .performance-toggle.active {
    background: var(--text);
    color: var(--bg);
  }
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* COVA Loading Screen */
.cova-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
  font-family: Arial, sans-serif;
}

.cova-loading-screen.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

.loading-content-center {
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cova-main-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cova-loading-text {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.cova-percentage {
  font-size: 5rem;
  font-weight: 100;
  font-family: var(--font-display);
  color: #ffffff;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 3rem;
}

.cova-footer-text {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* nagi Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

/* Hero-level Typography - nagi inspired */
.hero-title,
.hero-title-dynamic {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

/* Responsive scaling for hero titles */
@media (min-width: 768px) {
  .hero-title,
  .hero-title-dynamic {
    font-size: var(--text-8xl);
  }
}

/* Standard heading hierarchy */
h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
}

h2, .section-title-dynamic {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-normal);
}

/* Body text - nagi style */
p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

/* nagi Typography Utilities */
.text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.text-xl {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* Letter spacing utilities */
.tracking-tight {
  letter-spacing: var(--tracking-tight);
}

.tracking-tighter {
  letter-spacing: var(--tracking-tighter);
}

.tracking-wide {
  letter-spacing: var(--tracking-wide);
}

/* Line height utilities */
.leading-tight {
  line-height: var(--leading-tight);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

/* Font weight utilities */
.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4) 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.dark .site-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.site-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

:root {
  --nav-item-height: 2.3rem;
}

.nav-list {
  align-items: center;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-item-height);
  padding: 0 var(--space-2);
  line-height: 1;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--text);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* All navigation items - 2-line stacked style */
.nav-list a.nav-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: var(--nav-item-height);
  padding: 0 var(--space-8);
  line-height: 1;
  gap: 1px;
  flex: 1;
}

.nav-stacked .nav-number {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.nav-stacked .nav-text {
  display: block;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.performance-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  backdrop-filter: blur(10px);
  height: 32px;
  white-space: nowrap;
}

.performance-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.performance-toggle.active {
  background: var(--accent-sophisticated);
  color: #000000;
  border-color: var(--accent-sophisticated);
}

.performance-toggle.active:hover {
  background: var(--accent-hover);
}

.toggle-icon {
  font-size: 0.75rem;
}

.toggle-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  width: 32px;
  height: 32px;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

/* Dynamic Mosaic Video Gallery - Absolute Positioning System */
.video-mosaic-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
  padding: 40px !important;
  pointer-events: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important; /* 모바일에서 더 작은 간격 */
}

.video-tile {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  opacity: 1.0 !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  width: 280px !important;
  height: 160px !important;
  flex-shrink: 0 !important;
}

/* 타일들이 이제 flexbox 중앙 정렬로 배치됨 - 개별 위치 설정 불필요 */

/* nagi-style cinematic video elements */
.video-tile video {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  transition: all 0.6s ease !important;
  background: #1a1a1a !important;
  opacity: 1.0 !important;
  filter: none !important;
}

/* 메인화면 타일영상 직접 수정 - 정확한 선택자 */
.tile-video {
  opacity: 1.0 !important;
  visibility: visible !important;
  transform: none !important;
}

/* JavaScript opacity 덮어쓰기 방지 - 필터 완전 제거 */
.video-tile .tile-video,
.video-mosaic-container .tile-video,
[data-tile] .tile-video,
video.tile-video {
  opacity: 1.0 !important;
  filter: none !important;
}

/* Video tile specific styling with animated backgrounds for nagi-style cinematics */
.video-tile video[data-video="video-1"] {
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea) !important;
  background-size: 400% 400% !important;
  animation: gradientShift1 8s ease-in-out infinite !important;
}

.video-tile video[data-video="video-2"] {
  background: linear-gradient(-45deg, #f093fb, #f5576c, #f093fb) !important;
  background-size: 400% 400% !important;
  animation: gradientShift2 12s ease-in-out infinite !important;
}

/* 특정 비디오의 위치 조정 - 남자 모습이 더 잘 보이도록 물리적으로 왼쪽 이동 */
.video-tile[data-video="video-2"] > video {
  position: relative !important;
  width: 135% !important;
  height: 100% !important;
  left: -25% !important;
  object-fit: cover !important;
}

/* 그림_그리는_여자를_보는_사람들 영상 - 사람들이 더 잘 보이도록 아래쪽 영역 표시 */
.video-tile[data-video="video-3"] > video {
  object-fit: cover !important;
  transform: translateY(18%) scale(1.12) !important;
  transform-origin: center center !important;
}

.video-tile video[data-video="video-3"] {
  background: linear-gradient(135deg, #4facfe, #00f2fe, #4facfe) !important;
  background-size: 400% 400% !important;
  animation: gradientShift3 10s ease-in-out infinite !important;
}

.video-tile video[data-video="video-4"] {
  background: linear-gradient(225deg, #43e97b, #38f9d7, #43e97b) !important;
  background-size: 400% 400% !important;
  animation: gradientShift4 15s ease-in-out infinite !important;
}

.video-tile video[data-video="video-5"] {
  background: linear-gradient(90deg, #fa709a, #fee140, #fa709a) !important;
  background-size: 400% 400% !important;
  animation: gradientShift5 9s ease-in-out infinite !important;
}

.video-tile video[data-video="video-6"] {
  background: linear-gradient(180deg, #a8edea, #fed6e3, #a8edea) !important;
  background-size: 400% 400% !important;
  animation: gradientShift6 13s ease-in-out infinite !important;
}

.video-tile video[data-video="video-7"] {
  background: linear-gradient(270deg, #ff9a9e, #fecfef, #ff9a9e) !important;
  background-size: 400% 400% !important;
  animation: gradientShift7 11s ease-in-out infinite !important;
}

.video-tile video[data-video="video-8"] {
  background: linear-gradient(315deg, #a18cd1, #fbc2eb, #a18cd1) !important;
  background-size: 400% 400% !important;
  animation: gradientShift8 14s ease-in-out infinite !important;
}

/* nagi-style gradient animations for cinematic effect */
@keyframes gradientShift1 {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes gradientShift2 {
  0%, 100% { background-position: 0% 0%; }
  33% { background-position: 100% 100%; }
  66% { background-position: 0% 100%; }
}

@keyframes gradientShift3 {
  0%, 100% { background-position: 50% 0%; }
  30% { background-position: 100% 50%; }
  60% { background-position: 50% 100%; }
  90% { background-position: 0% 50%; }
}

@keyframes gradientShift4 {
  0%, 100% { background-position: 0% 50%; }
  20% { background-position: 50% 0%; }
  40% { background-position: 100% 50%; }
  60% { background-position: 50% 100%; }
  80% { background-position: 0% 100%; }
}

@keyframes gradientShift5 {
  0%, 100% { background-position: 100% 0%; }
  25% { background-position: 0% 50%; }
  75% { background-position: 100% 100%; }
}

@keyframes gradientShift6 {
  0%, 100% { background-position: 50% 50%; }
  35% { background-position: 0% 0%; }
  70% { background-position: 100% 100%; }
}

@keyframes gradientShift7 {
  0%, 100% { background-position: 0% 100%; }
  40% { background-position: 100% 0%; }
  80% { background-position: 50% 50%; }
}

@keyframes gradientShift8 {
  0%, 100% { background-position: 100% 100%; }
  30% { background-position: 0% 0%; }
  60% { background-position: 100% 50%; }
  90% { background-position: 50% 100%; }
}

/* Mosaic positioning with CSS variables - logical grid layout */
[data-tile="tile-1"] {
  --x: 0;
  --y: 0;
  --w: calc((100% - 120px) * 0.5);
  --h: calc((100vh - 160px) * 0.33);
}

[data-tile="tile-2"] {
  --x: calc((100% - 120px) * 0.5 + 20px);
  --y: 0;
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.66 + 20px);
}

[data-tile="tile-3"] {
  --x: calc((100% - 120px) * 0.75 + 40px);
  --y: 0;
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.33);
}

[data-tile="tile-4"] {
  --x: 0;
  --y: calc((100vh - 160px) * 0.33 + 20px);
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.67);
}

[data-tile="tile-5"] {
  --x: calc((100% - 120px) * 0.25 + 20px);
  --y: calc((100vh - 160px) * 0.33 + 20px);
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.33);
}

[data-tile="tile-6"] {
  --x: calc((100% - 120px) * 0.75 + 40px);
  --y: calc((100vh - 160px) * 0.33 + 20px);
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.67);
}

[data-tile="tile-7"] {
  --x: calc((100% - 120px) * 0.25 + 20px);
  --y: calc((100vh - 160px) * 0.66 + 40px);
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.34);
}

[data-tile="tile-8"] {
  --x: calc((100% - 120px) * 0.5 + 20px);
  --y: calc((100vh - 160px) * 0.66 + 40px);
  --w: calc((100% - 120px) * 0.25);
  --h: calc((100vh - 160px) * 0.34);
}

/* nagi Cinematic Film Effects System */

/* 1. Film Grain Effect - CSS-based noise texture */
.video-mosaic-container::after {
  content: '';
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 0.12 !important;
  mix-blend-mode: overlay !important;
  background-image: 
    radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 10% 50%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 90% 90%, #fff 1px, transparent 1px),
    radial-gradient(circle at 20% 80%, #fff 0.5px, transparent 0.5px);
  background-size: 
    50px 50px,
    80px 80px,
    30px 30px,
    40px 40px,
    60px 60px,
    35px 35px;
  background-position:
    0 0,
    25px 25px,
    10px 5px,
    35px 15px,
    5px 30px,
    15px 40px;
  animation: filmGrainShift 8s linear infinite !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: background-position !important;
}

/* Film grain animation for living texture */
@keyframes filmGrainShift {
  0% { 
    background-position: 0 0, 25px 25px, 10px 5px, 35px 15px, 5px 30px, 15px 40px;
  }
  25% { 
    background-position: 5px 3px, 20px 30px, 12px 2px, 38px 18px, 2px 25px, 18px 35px;
  }
  50% { 
    background-position: -3px 5px, 30px 20px, 8px 8px, 32px 12px, 8px 35px, 12px 45px;
  }
  75% { 
    background-position: 2px -2px, 15px 35px, 15px 3px, 40px 20px, 3px 20px, 20px 30px;
  }
  100% { 
    background-position: 0 0, 25px 25px, 10px 5px, 35px 15px, 5px 30px, 15px 40px;
  }
}

/* 2. Cinematic Vignette Effect - Dark edges for nagi style */
.film-vignette {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background: radial-gradient(
    ellipse 70% 50% at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.35) 100%
  ) !important;
  opacity: 0.8 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* 3. Color Grading System - nagi cinematic color correction */
.video-mosaic-container {
  /* Enhanced positioning and z-index management */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
  padding: 40px !important;
  pointer-events: none !important;
  
  /* nagi Cinematic Color Grading */
  filter: 
    contrast(1.08) 
    saturate(0.92) 
    hue-rotate(-3deg) 
    brightness(0.96) 
    sepia(0.03) !important;
  
  /* 하드웨어 가속 제거 - 텍스트 선명도를 위해 */
  transform: none !important;
  will-change: auto !important;
}

/* 4. Enhanced Video Tiles with Cinematic Depth */
.video-tile {
  position: absolute !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  opacity: 0.88 !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  
  /* CSS Variables for positioning and sizing */
  left: var(--x, 0) !important;
  top: var(--y, 0) !important;
  width: var(--w, 100px) !important;
  height: var(--h, 100px) !important;
  
  /* GPU 가속 제거 - 텍스트 선명도를 위해 */
  transform: none !important;
  will-change: auto !important;
}

/* Individual video enhancement for nagi style */
.video-tile video {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  transition: all 0.6s ease !important;
  background: #1a1a1a !important;
  
  /* Individual video color correction */
  filter: 
    contrast(1.05) 
    saturate(0.95) 
    brightness(0.98) !important;
  
  /* GPU 가속 제거 - 텍스트 선명도를 위해 */
  transform: none !important;
  will-change: auto !important;
}

/* 5. Cinematic Depth Enhancement - Subtle parallax effect */
.video-tile:nth-child(odd) {
  animation: cinematicFloat1 20s ease-in-out infinite !important;
}

.video-tile:nth-child(even) {
  animation: cinematicFloat2 25s ease-in-out infinite !important;
}

@keyframes cinematicFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) !important; }
  25% { transform: translate3d(1px, -2px, 0) scale(1.002) !important; }
  50% { transform: translate3d(-1px, 1px, 0) scale(0.998) !important; }
  75% { transform: translate3d(2px, 1px, 0) scale(1.001) !important; }
}

@keyframes cinematicFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) !important; }
  30% { transform: translate3d(-1px, 2px, 0) scale(1.001) !important; }
  60% { transform: translate3d(2px, -1px, 0) scale(0.999) !important; }
  90% { transform: translate3d(-2px, -1px, 0) scale(1.002) !important; }
}

/* Real Video Elements with Cinematic Effects and Loading States */
.tile-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  /* mix-blend-mode 제거 - PHILOSOPHY와 동일 */
  opacity: 0; /* Start invisible */
  border-radius: 12px;
  filter: brightness(0.95); /* 밝기 은은하게 낮춤 */
  transform: scale(0.95); /* Start slightly smaller */
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

/* Loading state shimmer effect - visible during loading */
.tile-video.loading {
  opacity: 1.0 !important; /* 로딩 중에도 완전 불투명 */
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a, #1a1a1a);
  background-size: 200% 200%;
  animation: shimmer 2s ease-in-out infinite;
  mix-blend-mode: normal; /* 로딩 중에는 블렌드 모드 제거 */
  filter: none !important; /* 로딩 중에도 blur 제거 */
}

/* Loaded state - PHILOSOPHY 영상과 동일한 설정 */
.tile-video.loaded {
  opacity: 1; /* PHILOSOPHY와 동일 */
  transform: scale(1);
  background: none; /* 로딩 완료 후 배경 제거 */
  /* mix-blend-mode 제거 - PHILOSOPHY와 동일 */
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Real video styling complete - gradient fallbacks removed */

/* Dynamic background animation keyframes */
@keyframes dynamicBg1 {
  0%, 100% { background-position: 0% 0%; transform: scale(1) rotate(0deg); }
  25% { background-position: 100% 25%; transform: scale(1.05) rotate(0.5deg); }
  50% { background-position: 50% 100%; transform: scale(0.98) rotate(-0.3deg); }
  75% { background-position: 75% 50%; transform: scale(1.02) rotate(0.2deg); }
}

@keyframes dynamicBg2 {
  0%, 100% { background-position: 25% 25%; transform: scale(1) rotate(0deg); }
  30% { background-position: 75% 10%; transform: scale(1.03) rotate(-0.4deg); }
  60% { background-position: 10% 90%; transform: scale(0.97) rotate(0.6deg); }
  90% { background-position: 90% 75%; transform: scale(1.01) rotate(-0.2deg); }
}

@keyframes dynamicBg3 {
  0%, 100% { background-position: 50% 0%; transform: scale(1) rotate(0deg); }
  20% { background-position: 100% 50%; transform: scale(1.04) rotate(0.3deg); }
  40% { background-position: 75% 100%; transform: scale(0.96) rotate(-0.5deg); }
  60% { background-position: 25% 75%; transform: scale(1.02) rotate(0.4deg); }
  80% { background-position: 0% 25%; transform: scale(0.99) rotate(-0.1deg); }
}

@keyframes dynamicBg4 {
  0%, 100% { background-position: 20% 80%; transform: scale(1) rotate(0deg); }
  25% { background-position: 80% 20%; transform: scale(1.06) rotate(-0.3deg); }
  50% { background-position: 60% 60%; transform: scale(0.94) rotate(0.7deg); }
  75% { background-position: 40% 40%; transform: scale(1.03) rotate(-0.4deg); }
}

@keyframes dynamicBg5 {
  0%, 100% { background-position: 75% 25%; transform: scale(1) rotate(0deg); }
  35% { background-position: 25% 75%; transform: scale(1.02) rotate(0.2deg); }
  70% { background-position: 85% 85%; transform: scale(0.98) rotate(-0.6deg); }
}

@keyframes dynamicBg6 {
  0%, 100% { background-position: 10% 10%; transform: scale(1) rotate(0deg); }
  40% { background-position: 90% 30%; transform: scale(1.05) rotate(0.5deg); }
  80% { background-position: 30% 90%; transform: scale(0.95) rotate(-0.3deg); }
}

@keyframes dynamicBg7 {
  0%, 100% { background-position: 60% 40%; transform: scale(1) rotate(0deg); }
  30% { background-position: 40% 60%; transform: scale(1.04) rotate(-0.2deg); }
  60% { background-position: 80% 20%; transform: scale(0.97) rotate(0.4deg); }
  90% { background-position: 20% 80%; transform: scale(1.01) rotate(-0.1deg); }
}

@keyframes dynamicBg8 {
  0%, 100% { background-position: 35% 65%; transform: scale(1) rotate(0deg); }
  25% { background-position: 65% 35%; transform: scale(1.03) rotate(0.3deg); }
  50% { background-position: 15% 85%; transform: scale(0.98) rotate(-0.4deg); }
  75% { background-position: 85% 15%; transform: scale(1.01) rotate(0.1deg); }
}

/* Fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .css-video-bg {
    animation: none !important;
    transform: none !important;
    opacity: 0.6 !important;
  }
}

/* 6. Dark mode enhancements for film effects */
.dark .film-vignette {
  background: radial-gradient(
    ellipse 70% 50% at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.2) 65%,
    rgba(0, 0, 0, 0.45) 100%
  ) !important;
  opacity: 0.9 !important;
}

.dark .video-mosaic-container {
  filter: none !important;
}

.dark .video-mosaic-container::after {
  opacity: 0.15 !important;
  mix-blend-mode: soft-light !important;
}

/* Dark Overlay for Text Readability - Enhanced */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  max-width: 800px;
  position: relative;
  z-index: 10 !important;
  text-align: center;
}

.hero h1 {
  color: var(--text);
  margin-bottom: var(--space-8);
}

.hero h1 strong {
  color: var(--accent);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--space-12);
  max-width: 600px;
  line-height: 1.6;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover,
.btn.text-scale-in:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:hover::before,
.btn.text-scale-in:hover::before {
  left: 100%;
}

/* Portfolio Section */
.portfolio-intro {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-intro p {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.portfolio-container {
  margin-top: var(--space-16);
  position: relative;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  margin-top: var(--space-8);
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  gap: var(--space-4);
}

.carousel-item {
  flex: 0 0 auto; /* 카드의 실제 크기에 맞춤 */
  width: 460px; /* 카드 컨테이너 크기 고정 */
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* 기존 grid 스타일은 유지하되 이름을 변경 */
.portfolio-grid {
  display: none; /* 기존 그리드는 숨김 */
}

.program-card {
  flex-shrink: 0;
  width: 460px !important;
  cursor: pointer;
  group: relative;
  border-radius: 12px;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 카루셀 내 프로그램 카드 크기 강제 적용 */
.carousel-item .program-card {
  width: 460px !important;
  max-width: 460px !important;
}

.program-image {
  position: relative;
  width: 100%;
  height: 224px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border-subtle);
}

.program-visual {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  position: relative;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grade1-visual {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #4a4a4a 100%);
}

.grade2-visual {
  background: linear-gradient(135deg, #2a2a2a 0%, #444 50%, #666 100%);
}

.kickoff-visual {
  background: linear-gradient(135deg, #1a2a3a 0%, #2a4a6a 50%, #3a6a8a 100%);
}

.stepzero-visual {
  background: linear-gradient(135deg, #2a1a3a 0%, #4a2a6a 50%, #6a3a8a 100%);
}

.philosophy-visual {
  background: linear-gradient(135deg, #3a2a1a 0%, #6a4a2a 50%, #8a6a3a 100%);
}

.program-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.02) 2px,
    rgba(255,255,255,0.02) 4px
  );
  opacity: 0.3;
}

.program-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
}

.program-badge span {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text);
}

.program-duration {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 2;
}

.program-duration span {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-normal);
  color: var(--text);
}

.program-info {
  color: var(--text);
}

.program-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.program-info p {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
}

/* Program card hover effects - nagi style */
.program-card:hover .program-visual {
  transform: scale(1.05) !important;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.program-card:hover .program-overlay {
  background: rgba(0, 0, 0, 0.2) !important;
  transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.program-card:hover .program-info h3 {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 프로그램 제안서 버튼 스타일 */
.program-proposal-btn {
  margin-top: var(--space-4);
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  text-align: center;
}

.program-proposal-btn:hover {
  background: var(--bg-accent);
  border-color: var(--accent-sophisticated);
  color: var(--accent-sophisticated);
  transform: translateY(-1px);
}

.program-proposal-btn:active {
  transform: translateY(0);
}

/* Sections */
.section {
  padding: var(--space-32) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.section:nth-child(odd) {
  background: var(--bg);
}

.section:last-of-type {
  border-bottom: none;
}

/* Special sophisticated sections */
.section.sophisticated {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-sophisticated) 100%);
  color: var(--text);
}

/* Clean animation system for section numbers */
.js-enabled .section-number {
  will-change: transform, opacity;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease;
}

.js-enabled .text-slide-left {
  opacity: 0;
  transform: translateX(-48px);
}

.js-enabled .text-slide-right {
  opacity: 0;
  transform: translateX(48px);
}

.js-enabled .section-number.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fix stacking context for problematic sections */
#philosophy .section-header,
#stepzero .section-header {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

#philosophy .section-header .section-number,
#stepzero .section-header .section-number {
  mix-blend-mode: normal;
  color: #fff;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  background: var(--bg);
  border: 1px solid var(--accent-sophisticated);
  font-weight: 700;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section.sophisticated .card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Section Headers */
.section-header {
  margin-bottom: var(--space-20);
  position: relative;
  overflow: visible;
}

.section-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sophisticated);
  background: var(--bg-accent);
  padding: var(--space-2) var(--space-3);
  border-radius: 0;
  display: inline-block;
  margin-bottom: var(--space-6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 20;
  opacity: 1;
  visibility: visible;
}

.section-number:hover {
  background: var(--bg-sophisticated);
  color: var(--text);
}

.section-header h2 {
  color: var(--text);
  margin-bottom: var(--space-4);
}

.section-progress {
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  background: var(--text);
  width: 0%;
  transition: width 0.6s ease-out;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-12);
}

.grid.two {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  backdrop-filter: blur(15px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-sophisticated), var(--bg-sophisticated));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px) scale(1.01);
  background: var(--card-elevated);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  color: var(--text);
  margin-bottom: var(--space-6);
  font-size: 1rem;
  font-weight: 500;
}

/* Lists */
.check {
  list-style: none;
  padding: 0;
}

.check li {
  padding: var(--space-3) 0;
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.check li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: var(--space-3);
  color: var(--text-tertiary);
  font-weight: 400;
}

.pill {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.pill li {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--bg-secondary);
  color: var(--text);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: var(--bg-secondary);
}

/* Accordion */
.accordion details {
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.accordion summary {
  padding: var(--space-6);
  cursor: pointer;
  font-weight: 500;
  background: var(--bg-secondary);
  transition: background-color 0.15s ease;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.accordion summary:hover {
  background: var(--bg-tertiary);
}

.accordion div {
  padding: var(--space-6);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Utilities */
.muted {
  color: var(--text-tertiary);
}

.small {
  font-size: 0.875rem;
}

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

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--bg-sophisticated) 0%, var(--bg-accent) 100%);
  border-top: 1px solid var(--border);
  padding: var(--space-20) var(--space-6);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-sophisticated), transparent);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    padding: 0 var(--space-4);
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
  }

  .nav-list.open {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: var(--space-20) 0;
  }

  .hero-content {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-20) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-16);
  }

  .card {
    padding: var(--space-6);
  }

  .grid {
    gap: var(--space-8);
  }
}

/* Dynamic Text Movement Effects (inspired by ehyundai.com) */
.text-reveal {
  opacity: 0;
  /* transform: translateY(50px); - 텍스트 흐림 원인 제거 */
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-reveal.visible {
  opacity: 1;
  /* transform: translateY(0); - 깔끔한 페이드인만 */
}

.text-slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-enabled .text-slide-left.visible,
.js-enabled .text-slide-right.visible { 
  opacity: 1; 
  transform: translateX(0); 
}

.text-slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered word animation */
.text-stagger {
  overflow: hidden;
}

.text-stagger .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-stagger.visible .word {
  opacity: 1;
  transform: translateY(0);
}

.text-stagger .word:nth-child(1) { transition-delay: 0.1s; }
.text-stagger .word:nth-child(2) { transition-delay: 0.2s; }
.text-stagger .word:nth-child(3) { transition-delay: 0.3s; }
.text-stagger .word:nth-child(4) { transition-delay: 0.4s; }
.text-stagger .word:nth-child(5) { transition-delay: 0.5s; }
.text-stagger .word:nth-child(6) { transition-delay: 0.6s; }
.text-stagger .word:nth-child(7) { transition-delay: 0.7s; }
.text-stagger .word:nth-child(8) { transition-delay: 0.8s; }
.text-stagger .word:nth-child(9) { transition-delay: 0.9s; }
.text-stagger .word:nth-child(10) { transition-delay: 1.0s; }

/* Text highlight reveal effect */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-sophisticated), var(--bg-sophisticated));
  opacity: 0.15;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.text-highlight.visible::before {
  transform: scaleX(1);
}

/* Parallax text movement */
.text-parallax {
  transition: transform 0.1s ease-out;
}

/* Floating text effect */
.text-float {
  animation: textFloat 6s ease-in-out infinite;
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Large hero text effects - 3D 제거로 텍스트 선명도 향상 */
.hero-title-dynamic {
  /* perspective: 800px; - 텍스트 흐림 원인 제거 */
  /* transform-style: preserve-3d; - 3D 컨텍스트 제거 */
  opacity: 1; /* Ensure always visible as fallback */
}

.hero-title-dynamic .line {
  display: block;
  overflow: hidden;
  margin-bottom: 0.2em;
}

/* 기본적으로 모든 글자가 보이도록 */
.hero-title-dynamic .line span {
  display: block;
  transform: translateX(0);
  opacity: 1;
  transition: all 0.6s ease;
}

/* 애니메이션이 있는 경우에만 초기 상태 - Transform 제거 */
.hero-title-dynamic.js-enabled .line span {
  /* transform: translateX(-50px); - 텍스트 흐림 원인 제거 */
  opacity: 0;
}

/* 보이는 상태 - Transform 제거 */
.hero-title-dynamic.js-enabled.visible .line span {
  /* transform: translateX(0); - 깔끔한 페이드인만 */
  opacity: 1;
}

.hero-title-dynamic.js-enabled .line:nth-child(1) span { 
  transition-delay: 0.1s; 
}
.hero-title-dynamic.js-enabled .line:nth-child(2) span { 
  transition-delay: 0.3s; 
}

/* Additional dramatic effects */
.hero-title-dynamic .line span strong {
  background: linear-gradient(135deg, var(--text), var(--accent-sophisticated));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Section title effects */
.section-title-dynamic {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title-dynamic.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Text typing effect */
.text-typing {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  margin: 0 auto;
  animation: 
    typing 3s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Scale in text effect */
.text-scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotation text effect */
.text-rotate-in {
  opacity: 0;
  transform: rotateX(90deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-rotate-in.visible {
  opacity: 1;
  transform: rotateX(0deg);
}

/* Counter animation */
.counter {
  transition: all 0.5s ease;
}

/* Focus States */
button:focus,
a:focus,
summary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .theme-toggle,
  .nav-toggle {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* === Philosophy Section Background Video === */
#philosophy {
  position: relative;
  overflow: hidden;
  min-height: calc(120vh - 420px);
  padding: 8rem 0;
}

.philosophy-video-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.philosophy-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: calc(100% + 185px);
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.3;
  filter: brightness(1.1); /* blur 제거, 밝기만 유지 */
  z-index: 1;
}

/* 풀스크린 모드에서 비디오 크롭핑 문제 해결 */
.philosophy-bg-video:fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  z-index: 99999;
  background: #000;
}

/* 웹킷 브라우저 풀스크린 지원 */
.philosophy-bg-video:-webkit-full-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  z-index: 99999;
  background: #000;
}

/* 모질라 브라우저 풀스크린 지원 */
.philosophy-bg-video:-moz-full-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  z-index: 99999;
  background: #000;
}

/* Microsoft Edge 풀스크린 지원 */
.philosophy-bg-video:-ms-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  z-index: 99999;
  background: #000;
}

.philosophy-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}

/* Ensure content appears above video */
#philosophy .container {
  position: relative;
  z-index: 3;
  margin-top: 265px;
}

#philosophy .section-header,
#philosophy #philosophyContent {
  position: relative;
  z-index: 3;
}

/* PHILOSOPHY 섹션 텍스트 세련된 스타일링 - OVERRIDDEN */

/* PHILOSOPHY 최종 해결책 - 높은 특이성으로 모든 규칙 덮어쓰기 */
#philosophy #philosophyContent .card {
  position: relative !important;
  display: inline-block !important;
  width: fit-content !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  margin-left: 8% !important;
}

#philosophy #philosophyContent .card::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: calc(-1 * 24px) calc(-1 * 32px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
  pointer-events: none !important;
}

#philosophy #philosophyContent .card > .text-reveal {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

#philosophy #philosophyContent {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  padding: 0 !important;
  margin: 0 !important;
}

#philosophy #philosophyContent .text-reveal {
  text-align: left;
  padding: 0 !important;
  margin: 0 !important;
}

#philosophy #philosophyContent .card * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#philosophy #philosophyContent .card p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

#philosophy #philosophyContent .card h1,
#philosophy #philosophyContent .card h2,
#philosophy #philosophyContent .card h3 {
  margin: 0 !important;
  padding: 0 !important;
}

#philosophy #philosophyContent .text-reveal {
  display: block;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Program Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 92vw;
  max-width: 1600px;
  min-width: 1000px;
  height: 90vh;
  max-height: 90vh;
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Split View Container - Balanced Height Layout */
.modal-split-container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  height: auto;
  align-items: start;
}

/* Media Panel (Left 60%) - Height-Matched Video Content */
.modal-media-panel {
  position: relative;
  overflow: hidden;
  background: #000;
  min-width: 400px;
  min-height: 500px;
  height: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
}

/* Content Panel (Right 40%) - Enhanced Scrollable Area */
.modal-content-panel {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

/* Hero Content in Content Panel - Enhanced Padding */
.modal-content-panel .modal-hero-content {
  flex-shrink: 0;
  padding: var(--space-8) var(--space-6) var(--space-6) var(--space-6);
  margin-bottom: 0;
  min-height: fit-content;
}

.modal-content-panel .modal-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  position: relative;
}

.modal-content-panel .modal-title-enhanced {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin: 0;
  margin-bottom: var(--space-2);
}

.modal-content-panel .modal-program-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.modal-content-panel .program-duration-badge,
.modal-content-panel .program-level-badge {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.modal-content-panel .hero-description-text {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* Enhanced close button positioning */
.modal-content-panel .modal-close-enhanced {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  padding: 0;
}

.modal-content-panel .modal-close-enhanced:hover {
  background: var(--bg-sophisticated);
  color: var(--text);
  transform: scale(1.05);
  border-color: var(--accent-sophisticated);
}

.modal-content-panel .modal-close-enhanced svg {
  width: 18px;
  height: 18px;
}

/* Modal Background Video - Updated for Split View */
.modal-ambient-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.ambient-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  opacity: 1.0;
  filter: none;
  z-index: 1;
  background: #000;
}

/* Minimal Overlay for Video (0-20% gradient) */
.modal-minimal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Legacy video overlay - keeping for compatibility */
.modal-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-program-content {
  color: #ffffff;
  line-height: 1.6;
}

.modal-program-content h3 {
  color: #ffffff;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-program-content h3:first-child {
  margin-top: 0;
}

.modal-program-content p {
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
}

.modal-program-content ul,
.modal-program-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

.modal-program-content li {
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
}

.program-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ENHANCED COVA MODAL STYLES - nagi Inspired
   ============================================ */

/* Enhanced Modal Structure */
.modal-enhanced {
  align-items: center;
  justify-content: center;
}

.modal-enhanced.active {
  display: flex;
  animation: modalFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay-enhanced {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-enhanced {
  width: 92vw;
  max-width: 1600px;
  min-width: 1000px;
  height: 90vh;
  max-height: 90vh;
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(40px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-enhanced.active .modal-content-enhanced {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Ambient Gallery Style - Sculptural Background */
.modal-content-enhanced {
  position: relative;
  overflow: hidden;
}

/* Updated for Split View - Media Panel Video */
.modal-media-panel .modal-ambient-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.modal-media-panel .ambient-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1.0;
  z-index: 1;
  display: block;
}

@keyframes ambient-ken-burns {
  0% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-52%, -48%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-video {
    animation: none;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Sculptural Tint Overlay - Ensure no pointer interference */
.modal-tint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    linear-gradient(180deg, 
      rgba(227, 103, 69, 0.05) 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.2) 100%),
    radial-gradient(ellipse at center, 
      transparent 60%, 
      rgba(0, 0, 0, 0.1) 90%);
}

/* Organic Sculptural Overlay - Ensure no pointer interference */
.modal-sculptural-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}

.sculptural-ribbon {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.ribbon-path {
  animation: ribbon-flow 40s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes ribbon-flow {
  0% { transform: translateX(-20px) rotate(0deg); }
  100% { transform: translateX(20px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-path {
    animation: none;
  }
}

/* ============================================
   RESPONSIVE SPLIT VIEW MODAL OPTIMIZATIONS
   ============================================ */

/* Large Desktop - Optimal Split View */
@media (min-width: 1400px) {
  .modal-content,
  .modal-content-enhanced {
    width: 85vw;
    max-width: 1800px;
  }
}

/* Standard Desktop - Current Settings Work Well */
@media (min-width: 1200px) and (max-width: 1399px) {
  .modal-content,
  .modal-content-enhanced {
    width: 90vw;
    max-width: 1600px;
  }
}

/* Laptop/Tablet Landscape - Maintain Split View */
@media (min-width: 900px) and (max-width: 1199px) {
  .modal-content,
  .modal-content-enhanced {
    width: 95vw;
    max-width: 1200px;
    min-width: 900px;
    height: 85vh;
    min-height: 500px;
  }
  
  .modal-split-container {
    grid-template-columns: 58% 42%;
    gap: 1px;
    height: auto;
    align-items: start;
  }
  
  .modal-media-panel {
    min-width: 350px;
    height: fit-content;
    max-height: 65vh;
    aspect-ratio: 3/2;
  }
  
  .modal-content-panel {
    min-width: 250px;
  }
  
  .modal-content-panel .modal-hero-content {
    padding: var(--space-6) var(--space-4) var(--space-4) var(--space-4);
  }
}

/* Tablet Portrait - Stack Vertically */
@media (max-width: 899px) {
  .modal-content,
  .modal-content-enhanced {
    width: 95vw;
    max-width: 100%;
    min-width: 320px;
    height: 90vh;
    max-height: 90vh;
    min-height: 400px;
  }
  
  .modal-split-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1px;
    height: auto;
  }
  
  .modal-media-panel {
    min-width: auto;
    height: fit-content;
    max-height: 40vh;
    aspect-ratio: 3/2;
    order: 1;
  }
  
  .modal-content-panel {
    min-width: auto;
    order: 2;
  }
  
  .modal-content-panel .modal-hero-content {
    padding: var(--space-4);
  }
}

/* Mobile - Optimized Single Column */
@media (max-width: 480px) {
  .modal-content,
  .modal-content-enhanced {
    width: 98vw;
    height: 95vh;
    max-height: 95vh;
    min-height: 400px;
    border-radius: 8px;
  }
  
  .modal-split-container {
    grid-template-rows: auto 1fr;
    height: auto;
  }
  
  .modal-media-panel {
    height: fit-content;
    max-height: 35vh;
    aspect-ratio: 3/2;
  }
  
  .modal-content-panel .modal-hero-content {
    padding: var(--space-3);
  }
  
  .modal-content-panel .modal-title-enhanced {
    font-size: var(--text-xl);
  }
}

/* Glass Content Panel - Proper Scrolling */
.modal-glass-panel {
  position: relative;
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin: 2rem;
  padding: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-enhanced.active .modal-glass-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.3s;
}

/* Custom scrollbar styling for content section */
.modal-content-section::-webkit-scrollbar {
  width: 6px;
}

.modal-content-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.modal-content-section::-webkit-scrollbar-thumb {
  background: rgba(227, 103, 69, 0.4);
  border-radius: 3px;
}

.modal-content-section::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 103, 69, 0.6);
}

/* Fixed content sections with proper scrolling */
.modal-hero-content {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  flex-shrink: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1500;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.modal-enhanced.active .modal-hero-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.5s;
}

.modal-enhanced.active .modal-content-section {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.7s;
}

/* Legacy sections - hide old mosaic */
.modal-hero-section {
  display: none;
}

.modal-hero-mosaic {
  display: none;
}

.hero-video-tile {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Artistic overlay inspired by uploaded abstract sculptural image */
.hero-video-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(227, 103, 69, 0.18) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(227, 103, 69, 0.12) 60%,
    rgba(40, 40, 40, 0.3) 100%
  );
  z-index: 2;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: overlay;
}

/* Organic flowing shapes for sculptural aesthetic */
.hero-video-tile::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  right: -30%;
  bottom: -30%;
  background: 
    radial-gradient(
      ellipse 70% 50% at 25% 30%,
      rgba(227, 103, 69, 0.15) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 50% 70% at 75% 70%,
      rgba(60, 60, 60, 0.2) 0%,
      transparent 50%
    ),
    conic-gradient(
      from 45deg at 50% 50%,
      rgba(227, 103, 69, 0.08) 0deg,
      transparent 90deg,
      rgba(40, 40, 40, 0.15) 180deg,
      transparent 270deg
    );
  z-index: 3;
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: rotate(8deg) scale(1.2);
  mix-blend-mode: soft-light;
}

/* Subtle texture overlay for gallery feel */
.hero-video-tile .hero-tile-video {
  position: relative;
}

.hero-video-tile .hero-tile-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(227, 103, 69, 0.05) 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video-tile:hover::before {
  opacity: 1;
}

.hero-video-tile:hover::after {
  opacity: 1;
  transform: rotate(-3deg) scale(1.05);
}

.hero-video-tile:hover .hero-tile-video::before {
  opacity: 1;
}

.hero-tile-primary {
  grid-row: 1 / -1;
  grid-column: 1;
}

.hero-tile-secondary {
  grid-column: 2;
  grid-row: 1;
}

.hero-tile-accent {
  grid-column: 3;
  grid-row: 1 / -1;
}

.hero-tile-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  opacity: 0.9;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-video-tile:hover .hero-tile-video {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
  filter: brightness(1.2) saturate(1.3) contrast(1.1);
}

/* Much stronger artistic overlay effects */
.hero-video-tile {
  border: 3px solid rgba(227, 103, 69, 0.4);
  background: linear-gradient(135deg, 
    rgba(227, 103, 69, 0.15) 0%, 
    rgba(0, 0, 0, 0.8) 50%,
    rgba(227, 103, 69, 0.1) 100%);
  box-shadow: 
    0 4px 20px rgba(227, 103, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-video-tile:hover {
  border: 3px solid rgba(227, 103, 69, 0.8);
  background: linear-gradient(135deg, 
    rgba(227, 103, 69, 0.3) 0%, 
    rgba(0, 0, 0, 0.6) 50%,
    rgba(227, 103, 69, 0.2) 100%);
  box-shadow: 
    0 12px 40px rgba(227, 103, 69, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(227, 103, 69, 0.4);
  transform: translateY(-4px) scale(1.02);
}

/* Additional sculptural effect */
.hero-video-tile .hero-tile-video {
  filter: brightness(0.9) contrast(1.05);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cinematic Film Effects - nagi Style */
.modal-film-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 5;
  pointer-events: none;
}

.modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 6;
}

/* Hero Content */
.modal-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-8) var(--space-8) var(--space-6);
  color: #ffffff;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  backdrop-filter: blur(1px);
}

.modal-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2000;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.modal-title-enhanced {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 1),
    0 4px 16px rgba(0, 0, 0, 0.8),
    0 1px 0px rgba(255, 255, 255, 0.1);
  margin: 0;
  filter: contrast(1.1) brightness(1.1);
}

.modal-program-meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.program-duration-badge,
.program-level-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  z-index: 2100;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Standard modal close button - consistent styling */
.modal-close-enhanced {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  padding: 0;
  backdrop-filter: blur(10px);
}

.modal-close-enhanced:hover {
  background: var(--bg-sophisticated);
  color: var(--text);
  transform: scale(1.05);
  border-color: var(--accent-sophisticated);
}

.modal-close-enhanced svg {
  width: 18px;
  height: 18px;
}

.hero-description-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 1),
    0 4px 8px rgba(0, 0, 0, 0.8),
    0 1px 0px rgba(255, 255, 255, 0.1);
  margin: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: var(--space-4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  filter: contrast(1.1) brightness(1.05);
  z-index: 2000;
  position: relative;
}

/* Tab content area with proper scrolling */
.modal-content-panels {
  flex: 1;
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.modal-panel {
  display: none;
  min-height: 200px;
}

.modal-panel.active {
  display: block;
}

/* Tab navigation in right panel */
.modal-tabs {
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.modal-tabs-container {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.modal-tab {
  background: none;
  border: none;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.modal-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent-sophisticated);
}

.modal-tab:hover {
  color: var(--text);
}

.tab-number {
  font-size: var(--text-xs);
  opacity: 0.7;
  margin-right: var(--space-1);
}

.tab-label {
  font-weight: var(--font-weight-medium);
}

/* Interactive Content Section - Legacy compatibility */
.modal-content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  overflow: hidden;
  z-index: 1500;
  position: relative;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive design for modal */
@media (max-width: 768px) {
  .modal-content {
    width: 98%;
    height: 95vh;
    max-height: 95vh;
    margin: 2.5vh auto;
  }
  
  .modal-split-container {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }
  
  .modal-media-panel {
    order: 1;
  }
  
  .modal-content-panel {
    order: 2;
  }
  
  .modal-content-panel .modal-hero-content {
    padding: var(--space-4);
  }
  
  .modal-tabs {
    padding: 0 var(--space-4);
  }
  
  .modal-content-panels {
    padding: 0 var(--space-4) var(--space-4) var(--space-4);
  }
  
  .modal-tab {
    padding: 3px 1px;
    min-width: 20%;
    max-width: 20%;
    width: 20%;
    flex: 0 0 20%;
  }
  
  .tab-label {
    font-size: 6px;
    line-height: 1;
  }
  
  .tab-number {
    font-size: 6px;
  }
  
  .modal-content-panel .modal-title-enhanced {
    font-size: var(--text-xl);
  }
  
  .modal-emergency-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .modal-split-container {
    grid-template-rows: 35vh 1fr;
  }
  
  .modal-content-panel .modal-hero-content {
    padding: var(--space-3);
  }
  
  .modal-tabs {
    padding: 0 var(--space-3);
  }
  
  .modal-content-panels {
    padding: 0 var(--space-3) var(--space-3) var(--space-3);
  }
}

/* Tab Navigation - COVA Style */
.modal-tabs-old {
  position: relative;
  z-index: 1700;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.modal-tabs-container {
  display: flex;
  position: relative;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px 8px 0 0;
}

.modal-tab {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4px 1px;
  background: rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1800;
  backdrop-filter: blur(10px);
  border-radius: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  width: 20%;
  min-width: 20%;
  max-width: 20%;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  height: auto;
}

.modal-tab:hover {
  background: var(--bg-accent);
}

.modal-tab.active {
  background: var(--bg-sophisticated);
  color: var(--text);
}

.tab-number {
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  position: relative;
  line-height: 1;
  margin-bottom: 1px;
}

.modal-tab.active .tab-number {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

.tab-label {
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1;
  width: 100%;
  text-align: center;
}

.modal-tab.active .tab-label {
  color: #ffffff;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

.modal-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent-sophisticated);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

/* Content Panels */
.modal-content-panels {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.modal-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-6);
  z-index: 1600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.modal-panel.active {
  opacity: 1;
  transform: translateX(0);
}

/* Overview Panel */
.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
  height: 100%;
}

.panel-main {
  min-height: 0;
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.overview-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 1800;
  position: relative;
}

.overview-content h3 {
  color: #ffffff;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  z-index: 1900;
  position: relative;
}

.overview-content p {
  margin-bottom: var(--space-4);
}

.overview-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

.overview-content li {
  margin-bottom: var(--space-2);
}

/* Program Stats */
.program-stats {
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-sophisticated);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
}

/* Curriculum Timeline */
.curriculum-timeline {
  max-width: 100%;
}

.curriculum-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Process Visualization */
.process-visualization {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.process-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* Outcomes Gallery */
.outcomes-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.outcomes-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4);
}

/* Enhanced Footer */
.modal-footer-enhanced {
  border-top: 1px solid var(--border);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-secondary);
}

.modal-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
}

.modal-action-secondary,
.modal-action-primary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.modal-action-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.modal-action-secondary:hover {
  background: var(--bg-accent);
  border-color: var(--border-subtle);
  color: var(--text);
}

.modal-action-primary {
  background: var(--accent-sophisticated);
  border: 1px solid var(--accent-sophisticated);
  color: var(--bg);
}

.modal-action-primary:hover {
  background: transparent;
  color: var(--accent-sophisticated);
  transform: translateY(-1px);
}

/* Animations */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(20px);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced Content Element Styles */
.curriculum-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-left: 2px solid var(--accent-sophisticated);
  margin-bottom: var(--space-4);
  background: var(--bg-accent);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curriculum-item:hover {
  transform: translateX(4px);
  background: var(--bg-sophisticated);
}

.curriculum-week {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-2);
}

.week-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-sophisticated);
  line-height: var(--leading-tight);
}

.week-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
}

.curriculum-details h4 {
  color: var(--text);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
}

.curriculum-details p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.curriculum-details ul {
  margin: 0;
  padding-left: var(--space-4);
}

.curriculum-details li {
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}

.process-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-card:hover {
  background: var(--bg-sophisticated);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-sophisticated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--bg);
}

.process-content h4 {
  color: var(--text);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
}

.process-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.process-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-tag {
  background: var(--accent-sophisticated);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  border-radius: 16px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.outcome-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.outcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.outcome-image {
  height: 160px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.outcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.outcome-card:hover .outcome-image img {
  transform: scale(1.05);
}

.outcome-info {
  padding: var(--space-4);
}

.outcome-info h4 {
  color: var(--text);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
}

.outcome-student {
  color: var(--accent-sophisticated);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
}

.outcome-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content-enhanced {
    width: 98vw;
    height: 98vh;
    border-radius: 12px;
  }
  
  .modal-hero-section {
    height: 240px;
  }
  
  .modal-hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
    gap: 1px;
  }
  
  .hero-tile-primary {
    grid-row: 1;
    grid-column: 1 / -1;
  }
  
  .hero-tile-secondary {
    grid-column: 1;
    grid-row: 2;
  }
  
  .hero-tile-accent {
    grid-column: 2;
    grid-row: 2;
  }
  
  .modal-hero-content {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }
  
  .modal-title-enhanced {
    font-size: var(--text-2xl);
  }
  
  .panel-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .modal-panel {
    padding: var(--space-4);
  }
  
  .modal-footer-enhanced {
    padding: var(--space-4);
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-action-secondary,
  .modal-action-primary {
    justify-content: center;
  }
}

/* ============================================
   KEY MOMENTS SYSTEM STYLES
   ============================================ */

/* Key Moments Container */
.keymoments-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  height: 100%;
  overflow: hidden;
}

/* Key Moments Header */
.keymoments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.keymoments-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin: 0;
}

.keymoments-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}

/* Video Time Display */
.video-time-display {
  font-family: var(--font-mono, 'Monaco', 'Consolas', monospace);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 80px;
  text-align: center;
}

/* Playback Speed Controls */
.playback-speed-control {
  display: flex;
  gap: 2px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.speed-btn {
  padding: var(--space-1) var(--space-2);
  background: transparent;
  border: none;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 36px;
  text-align: center;
}

.speed-btn:hover {
  background: var(--bg-sophisticated);
  color: var(--text);
}

.speed-btn.active {
  background: var(--accent-sophisticated);
  color: #ffffff;
  font-weight: var(--font-weight-bold);
}

/* Timeline Container */
.keymoments-timeline {
  position: relative;
  padding: var(--space-2) 0;
}

.timeline-track {
  position: relative;
  height: 6px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  overflow: visible;
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--accent-sophisticated) 0%, 
    var(--primary-sophisticated) 100%);
  border-radius: 3px;
  transition: width 0.1s ease;
  width: 0%;
}

.timeline-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.timeline-marker {
  position: absolute;
  top: -2px;
  width: 10px;
  height: 10px;
  background: var(--accent-sophisticated);
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: all;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-marker:hover {
  transform: translateX(-50%) scale(1.2);
  background: var(--primary-sophisticated);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.timeline-marker:focus {
  outline: 2px solid var(--accent-sophisticated);
  outline-offset: 2px;
}

.timeline-handle {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid var(--accent-sophisticated);
  border-radius: 50%;
  transform: translateX(-50%);
  cursor: grab;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

.timeline-handle:hover,
.timeline-handle:focus {
  transform: translateX(-50%) scale(1.1);
  border-color: var(--primary-sophisticated);
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.timeline-handle:active {
  cursor: grabbing;
  transform: translateX(-50%) scale(0.95);
}

/* Key Moments List */
.keymoments-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

.keymoment-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 44px; /* Accessibility: minimum touch target */
  outline: none;
}

.keymoment-item:hover {
  background: var(--bg-accent);
  border-color: var(--accent-sophisticated);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.keymoment-item:focus {
  border-color: var(--accent-sophisticated);
  box-shadow: 0 0 0 2px rgba(var(--accent-sophisticated-rgb), 0.3);
}

.keymoment-item.active {
  background: var(--accent-sophisticated);
  border-color: var(--primary-sophisticated);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.keymoment-item.active .moment-time,
.keymoment-item.active .moment-title,
.keymoment-item.active .moment-summary {
  color: #ffffff;
}

.moment-time {
  font-family: var(--font-mono, 'Monaco', 'Consolas', monospace);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  min-width: 48px;
  text-align: center;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.moment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.moment-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  line-height: var(--leading-tight);
}

.moment-summary {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.moment-indicator {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.keymoment-item.active .moment-indicator {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Shortcuts Info */
.keymoments-shortcuts {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.shortcuts-info h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  margin: 0 0 var(--space-2) 0;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1);
}

.shortcut-item kbd {
  font-family: var(--font-mono, 'Monaco', 'Consolas', monospace);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shortcut-item span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-tight);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .timeline-marker,
[data-theme="dark"] .timeline-handle {
  border-color: var(--bg-sophisticated);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .keymoment-item.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive for Key Moments */
@media (max-width: 768px) {
  .keymoments-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  
  .keymoments-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .shortcut-grid {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  
  .shortcut-item {
    padding: var(--space-1) 0;
  }
  
  .keymoment-item {
    min-height: 48px; /* Larger touch targets on mobile */
    padding: var(--space-4) var(--space-3);
  }
  
  .moment-time {
    min-width: 44px;
  }
  
  .timeline-track {
    height: 8px; /* Larger touch target */
  }
  
  .timeline-marker {
    width: 12px;
    height: 12px;
    top: -2px;
  }
  
  .timeline-handle {
    width: 16px;
    height: 16px;
    top: -4px;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .keymoment-item,
  .timeline-marker,
  .timeline-handle,
  .timeline-progress {
    transition: none;
  }
  
  .keymoment-item:hover {
    transform: none;
  }
  
  .timeline-marker:hover,
  .timeline-handle:hover {
    transform: translateX(-50%);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .keymoment-item {
    border-width: 2px;
  }
  
  .keymoment-item.active {
    border-width: 3px;
  }
  
  .timeline-marker,
  .timeline-handle {
    border-width: 3px;
  }
}

/* Focus Visible for Better Accessibility */
.keymoment-item:focus-visible,
.timeline-marker:focus-visible,
.timeline-handle:focus-visible,
.speed-btn:focus-visible {
  outline: 2px solid var(--accent-sophisticated);
  outline-offset: 2px;
}

/* Loading State */
.keymoments-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.keymoments-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-sophisticated);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: var(--space-2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.keymoments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: var(--space-2);
  color: var(--text-secondary);
  text-align: center;
}

.keymoments-empty-icon {
  font-size: 32px;
  opacity: 0.5;
}

/* ===================================================================
   COVA 모달 영상 크기 문제 해결 - 전문가 진단 기반 수정
   =================================================================== */

/* 1. 강제 분할 레이아웃 */
.cova-modal .modal-body { 
  display: grid; 
  grid-template-columns: 60% 40%; 
  gap: 24px; 
  align-items: start; 
}

/* 2. 좌측 패널 aspect-ratio 컨테이너 */
.cova-modal .modal-media-panel { 
  inline-size: 100%; 
  aspect-ratio: 3 / 2; 
  max-block-size: 80vh; 
  min-block-size: 300px; 
  /* height: auto 유지 (명시적 height 설정하지 않음) */
}

/* 3. 영상이 컨테이너를 가득 채우도록 */
.cova-modal .modal-media-panel video { 
  inline-size: 100%; 
  block-size: 100%; 
  object-fit: contain; 
  object-position: center; 
  display: block; 
  background: #000; 
}

/* 4. 축소 방지 */
.cova-modal .modal-media-panel { 
  flex: 0 0 auto; 
}

.cova-modal .modal-content, 
.cova-modal .modal-body { 
  width: min(1200px, 90vw); 
}

/* 5. 우측 패널 스크롤 */
.cova-modal .modal-info-panel { 
  overflow: auto; 
}

/* ===================================
   PHILOSOPHY 섹션 완전 격리 해결책
   모든 간섭 요소 제거 및 CSS 우선순위 완전 제어
   =================================== */

@layer overrides {
  /* 완전 격리된 PHILOSOPHY 스코프 */
  #philosophy .ph-scope,
  #philosophy .ph-scope *:not(.card):not(.card::before) {
    backdrop-filter: none !important;
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
  }
  
  /* ph-text 클래스 - 완전히 새로운 텍스트 스타일 */
  #philosophy .ph-scope .ph-text {
    all: revert-layer;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Inter', system-ui, sans-serif !important;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    filter: none !important;
  }
  
  /* card 요소 - 투명 배경 카드가 보이도록 설정 */
  #philosophy .ph-scope .card {
    transform: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    padding: 24px 32px !important;
    margin: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    display: inline-block !important;
    width: fit-content !important;
    margin-left: 8% !important;
  }
  
  /* 텍스트 관련 pseudo-elements만 제거 */
  #philosophy .ph-scope .ph-text::before,
  #philosophy .ph-scope .ph-text::after {
    content: none !important;
    display: none !important;
  }
  
  /* ::before 요소는 이제 필요 없음 - 카드 자체에 배경 적용 */
}

/* ===================================
   UNIFIED CSS VARIABLE SYSTEM
   Each program defines its video layout via CSS variables
   Single rule set consumes these variables - no conflicts
   =================================== */

/* Program-specific CSS variable definitions with modal scoping */
.cova-modal2[data-program="kickoff"] {
  --video-width: 100%;
  --video-height: 85%;
  --video-object-fit: cover;
  --video-aspect-ratio: 3 / 2;
  --media-box-padding-left: 0.5rem;
  --media-box-margin-top: -5%;
}

.cova-modal2[data-program="grade1"] {
  --video-width: 100%;
  --video-height: 100%;
  --video-object-fit: contain;
  --media-box-padding-right: 3rem;
}

.cova-modal2[data-program="grade2"] {
  --video-width: 100%;
  --video-height: 100%;
  --video-object-fit: contain;
}

/* STEPZERO: CSS-only video cropping to remove letterbox */
.cova-modal2[data-program="stepzero"] .modal2-media-box {
  overflow: hidden;
}

.cova-modal2[data-program="stepzero"] .modal2-video {
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  object-fit: cover !important;
  transform-origin: center;
  transform: translate(-1%, 0) scale(1.15, 1.15);
}

/* GRADE2: CSS-only video sizing to match thumbnail width */
.cova-modal2[data-program="grade2"] .modal2-media-box {
  overflow: hidden;
}

.cova-modal2[data-program="grade2"] .modal2-video {
  width: 100% !important;
  height: 80% !important;
  left: 0 !important;
  top: 7.5% !important;
  object-fit: cover !important;
  object-position: 15% 30%;
  transform-origin: center;
  transform: translateX(-2%) scale(0.95, 1);
}

/* DEFAULT LAYOUT FOR NON-KICKOFF PROGRAMS */
.cova-modal2:not(.kickoff-layout) .modal2-media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: var(--space-4);
}

.cova-modal2:not(.kickoff-layout) .modal2-video-section {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cova-modal2:not(.kickoff-layout) .modal2-image-section {
  display: none; /* Hide thumbnails for non-kickoff programs */
}

/* DEFAULT HIDDEN STATES WITH HIGH SPECIFICITY */
.cova-modal2 .modal2-image-section {
  display: none !important;
}

.cova-modal2 .modal2-thumbnails-grid {
  display: none !important;
}

.cova-modal2 .modal2-video-header {
  display: none !important;
}

.cova-modal2 .modal2-kickoff-details {
  display: none !important;
}

.cova-modal2 .modal2-tab-content {
  display: none !important;
}

/* VISIBLE STATES VIA DATA ATTRIBUTES */
.cova-modal2 .modal2-image-section[data-visible="true"] {
  display: flex !important;
}

.cova-modal2 .modal2-thumbnails-grid[data-visible="true"] {
  display: grid !important;
}

.cova-modal2 .modal2-video-header[data-visible="true"] {
  display: block !important;
}

.cova-modal2 .modal2-kickoff-details[data-visible="true"] {
  display: block !important;
}

.cova-modal2.kickoff-layout .modal2-kickoff-details[data-visible="true"] {
  display: flex !important;
  flex-direction: column;
  gap: var(--space-4);
}

.cova-modal2 .modal2-tab-content[data-visible="true"] {
  display: block !important;
}

/* FIX KICKOFF SPECIFICITY CONFLICTS */
.cova-modal2.kickoff-layout .modal2-thumbnails-grid:not([data-visible="true"]) {
  display: none !important;
}

.cova-modal2.kickoff-layout .modal2-image-section:not([data-visible="true"]) {
  display: none !important;
}

/* Single unified video system using CSS variables */
.cova-modal2 .modal2-media-box {
  padding-left: var(--media-box-padding-left, 0);
  padding-right: var(--media-box-padding-right, 0);
  margin-top: var(--media-box-margin-top, 0);
}

.cova-modal2 .modal2-video {
  width: var(--video-width, 100%);
  height: var(--video-height, 100%);
  object-fit: var(--video-object-fit, contain);
  object-position: var(--video-object-position, center);
  aspect-ratio: var(--video-aspect-ratio, unset);
  transform: var(--video-transform, none);
  position: relative;
  left: var(--video-left, auto);
  top: var(--video-top, auto);
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===================================================
   MOBILE-ONLY OPTIMIZATIONS - PC 화면은 변경 없음
   ULTRA HIGH SPECIFICITY - 기존 CSS 덮어쓰기
   ==================================================== */

/* 매우 작은 모바일 화면 (480px 이하) - 스마트폰 최적화 */
@media screen and (max-width: 480px) {
  /* Hero Section - 모바일 최적화 - 최고 우선순위 */
  html body main section.hero {
    min-height: 100vh !important; /* 전체 화면 활용 */
    padding: 60px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  html body main section.hero .hero-content {
    padding: 0 16px !important; /* 더 넉넉한 패딩 */
    max-width: 100% !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  /* Hero 제목 - 모바일 최적화 - 최고 우선순위 */
  html body main section.hero .hero-content h1.hero-title-dynamic,
  html body main section.hero .hero-content .hero-title-dynamic {
    font-size: 2.2rem !important; /* 모바일에서 더 큰 텍스트 */
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    color: white !important;
  }
  
  /* Hero 설명 텍스트 - 모바일 최적화 - 최고 우선순위 */
  html body main section.hero .hero-content p.text-reveal,
  html body main section.hero .hero-content .text-reveal {
    font-size: 0.95rem !important; /* 적절한 크기 */
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Hero 버튼 - 터치 친화적 - 최고 우선순위 */
  html body main section.hero .hero-content a.btn,
  html body main section.hero .hero-content .btn {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    min-height: 48px !important; /* 터치 최적화 */
    min-width: 120px !important;
    display: inline-block !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
  }
  
  /* 3. Video Mosaic 중앙 배열 - 모바일 성능 최적화 */
  html body main section.hero .video-mosaic-container {
    padding: 5px !important; /* 모바일에서 패딩 최소화 - 좌우폭 최대 활용 */
    left: 0 !important; /* 왼쪽 정렬로 변경 */
    transform: translateX(var(--mobile-offset, 0px)) !important; /* 커스텀 프로퍼티로 이동 가능 */
    width: 100vw !important; /* 뷰포트 전체 너비 사용 */
    max-width: 100vw !important; /* 최대 너비도 뷰포트 전체 */
    margin: 0 !important; /* 마진 제거 */
  }
  
  html body main section.hero .video-mosaic-container .video-tile {
    /* PC와 동일한 설정 - opacity 제거 */
    animation-duration: 3s !important;
  }
  
  /* 1. 흐릿한 필터 제거 + 2. 밝기 은은하게 낮춤 - 강제 적용 */
  html body main section.hero .video-mosaic-container .video-tile .tile-video,
  html body main section.hero .video-mosaic-container .video-tile .tile-video.loaded,
  html body main section.hero .video-mosaic-container .video-tile .tile-video.loading {
    filter: none !important; /* blur 완전 제거 */
    opacity: 1.0 !important; /* 완전 불투명 */
  }
  
  /* 검은 오버레이 완전 제거 - 모바일에서 */
  html body section.hero .hero-overlay {
    display: none !important; /* 오버레이 완전 제거 */
  }
  
  /* Navigation - 모바일 최적화 - 최고 우선순위 */
  html body header.site-header {
    padding: 12px 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  html body header.site-header .container {
    padding: 0 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  html body header.site-header .nav-toggle {
    min-width: 44px !important; /* 터치 최적화 */
    min-height: 44px !important;
    font-size: 1.2rem !important;
    display: block !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 4px !important;
  }
  
  html body header.site-header .brand .logo {
    font-size: 1.5rem !important; /* 모바일에서 적절한 크기 */
    color: #ffd700 !important;
    font-weight: 700 !important;
  }
  
  html body header.site-header .brand .tagline {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }
  
  /* Modal System - 모바일 최적화 - 최고 우선순위 */
  html body .cova-modal2 .cova-modal2-dialog {
    width: 98vw !important;
    height: 98vh !important;
    margin: 1vh auto !important;
    border-radius: 8px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto !important;
    max-width: none !important;
  }
  
  html body .cova-modal2 .modal2-panel {
    padding: 12px !important;
    max-height: 45vh !important;
    overflow-y: auto !important;
  }
  
  html body .cova-modal2 .modal2-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
  }
  
  /* Body 전체 조정 - 모바일 */
  html body {
    padding-top: 70px !important; /* Fixed header 공간 확보 */
  }
  
  /* Sections - 모바일 간격 최적화 - 최고 우선순위 */
  html body main section.section,
  html body main .section {
    padding: 60px 0 !important;
    margin: 0 !important;
  }
  
  html body main section .container,
  html body main .section .container,
  html body .container {
    padding: 0 16px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Grid Systems - 모바일 최적화 - 최고 우선순위 */
  html body main section .grid.two,
  html body main .grid.two,
  html body .grid.two {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    display: block !important;
  }
  
  html body main section .grid.two > *,
  html body main .grid.two > *,
  html body .grid.two > * {
    margin-bottom: 30px !important;
  }
  
  /* Text Scaling - 모바일 가독성 - 최고 우선순위 */
  html body main h2,
  html body h2 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    color: white !important;
  }
  
  html body main h3,
  html body h3 {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    color: white !important;
  }
  
  html body main p,
  html body p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  
  /* Navigation List - 모바일 최적화 */
  html body header.site-header .nav-list {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 20px !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 200px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(20px) !important;
  }
  
  html body header.site-header .nav-list.open {
    display: flex !important;
  }
  
  html body header.site-header .nav-list a {
    min-height: 48px !important;
    padding: 12px 16px !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
  }
  
  html body header.site-header .nav-list a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  
  
  /* 타일 비디오 모바일 최적화 - 검은 화면 문제 해결 */
  html body .tile-video.loaded,
  html body .hero-tile-video {
    opacity: 1 !important; /* 완전 불투명으로 변경 */
    mix-blend-mode: normal !important; /* 블렌드 모드 제거 */
    background: none !important; /* 어두운 배경 완전 제거 */
  }
  
  /* 로딩 상태도 완전 선명하게 */
  html body .tile-video.loading {
    opacity: 1.0 !important; /* 로딩 중에도 완전 불투명 */
    background: linear-gradient(45deg, #333, #555, #333) !important; /* 더 밝은 배경 */
    filter: none !important; /* 로딩 중에도 blur 완전 제거 */
  }
  
  /* About COVA 섹션 - 모바일 전용 수직 배치 (텍스트 위, 영상 아래) */
  html body main section#kickoff div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  html body main section#kickoff .about-cova-description {
    flex: none !important;
    width: 100% !important;
    order: 1;
    margin-bottom: 1rem !important;
  }
  
  html body main section#kickoff .video-container {
    flex: none !important;
    width: 100% !important;
    order: 2;
  }
  
  html body main section#kickoff .about-cova-video {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    object-fit: cover !important;
  }
  
  /* 모바일에서 PC와 동일한 설정 유지 - override 제거 */
}

/* 중간 모바일 화면 (481px - 768px) - 태블릿 최적화 */
@media (min-width: 481px) and (max-width: 768px) {
  /* Hero Section - 태블릿 최적화 */
  .hero-content {
    padding: 0 var(--space-5);
    max-width: 90%;
  }
  
  .hero-title-dynamic {
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
  }
  
  /* Video Mosaic - 태블릿 최적화 */
  .video-mosaic-container {
    padding: 15px !important; /* 태블릿에서도 패딩 축소 - 좌우폭 활용 */
  }
  
  /* .video-tile opacity override 제거 - PC와 동일하게 */
  
  /* Modal System - 태블릿 최적화 */
  .cova-modal2-dialog {
    width: 95vw !important;
    height: 92vh !important;
    margin: 4vh auto !important;
  }
  
  .modal2-panel {
    padding: var(--space-4) !important;
    max-height: 42vh !important;
  }
}

/* 터치 디바이스 전용 최적화 */
@media (hover: none) and (pointer: coarse) {
  /* 모든 클릭 가능한 요소 - 터치 최적화 */
  button, 
  .btn, 
  a[role="button"], 
  .nav-toggle,
  .modal2-close {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: var(--space-3) var(--space-4) !important;
  }
  
  /* Navigation 링크 - 터치 최적화 */
  .nav-list a {
    min-height: 48px !important;
    padding: var(--space-3) var(--space-4) !important;
  }
  
  /* Modal 닫기 버튼 - 터치 최적화 */
  .modal2-close,
  .modal-emergency-close {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }
  
  /* 비디오 타일 - 터치 비활성화 */
  .video-tile {
    pointer-events: none !important;
  }
}

/* 작은 화면에서 성능 최적화 */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* 애니메이션 축소 - 성능 향상 */
  .video-tile {
    animation-duration: 3s !important;
    animation-timing-function: ease-in-out !important;
  }
  
  /* 블러 효과 완전 제거 - 타일 비디오 선명도 확보 */
  .film-vignette {
    backdrop-filter: none !important;
  }
  
  /* 모바일에서 hero-overlay 제거 */
  .hero-overlay {
    display: none !important;
  }
  
  /* 모바일 타일 비디오 은은한 톤다운 효과 - 밝기와 채도 자연스럽게 낮춤 */
  .video-tile .tile-video,
  .video-mosaic-container .tile-video,
  [data-tile] .tile-video,
  video.tile-video {
    filter: none !important;
  }
  
  /* 모바일 타일영상 섹션 전체 오른쪽 4cm 이동 */
  .video-mosaic-container {
    margin-left: 151px; /* 4cm ≈ 151px */
  }
  
  /* 모바일 타일 간격 조정 - 중앙 타일들 간격 넓히기 */
  .video-tile {
    margin: 8px !important; /* 타일 간격 더 증가 */
  }
  
  /* 모바일 타일 모자이크 간격 조정 */
  .video-mosaic-tiles {
    gap: 16px !important; /* 모바일 최적화된 간격 더 증가 */
  }
  
  /* 모바일 중앙 4개 타일 강제 좌측 이동 - 모든 조건 무시 */
  body .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(3),
  body .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(4),
  body .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(5), 
  body .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(6) {
    margin-left: 5px !important; /* 좌측 여백 줄임 */
    margin-right: 15px !important; /* 우측 여백 늘림 */
    position: relative !important;
    left: -35px !important; /* 강제 좌측 이동 */
    z-index: 15 !important;
  }
  
  /* 모든 클래스 상태에서도 적용 */
  body.reduced-motion .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(3),
  body.reduced-motion .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(4), 
  body.reduced-motion .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(5),
  body.reduced-motion .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(6),
  body.performance-mode .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(3),
  body.performance-mode .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(4), 
  body.performance-mode .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(5),
  body.performance-mode .video-mosaic-container .video-mosaic-tiles .video-tile:nth-child(6) {
    left: -35px !important; /* 모든 상태에서 강제 좌측 이동 */
  }
}

/* 가로 모드 모바일 최적화 */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
  /* Hero Section - 가로 모드 최적화 */
  .hero {
    min-height: 100vh;
    padding: var(--space-8) 0;
  }
  
  .hero-content {
    padding: 0 var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .hero-title-dynamic {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    margin-bottom: var(--space-3) !important;
  }
  
  .text-reveal {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: var(--space-4) !important;
  }
  
  /* Modal - 가로 모드 최적화 */
  .cova-modal2-dialog {
    grid-template-columns: 2fr 1fr !important;
    grid-template-rows: 1fr !important;
    height: 95vh !important;
  }
  
  .modal2-panel {
    max-height: none !important;
    overflow-y: auto !important;
  }
}