/* ============================================================
   새빛드론 메인 스타일시트
   컬러: #00C8C8 (청록), #0A0E1A (딥네이비), #FFFFFF
   ============================================================ */

/* ===== 다크모드 강제 차단 ===== */
:root { color-scheme: light only; }
html, body { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  html { filter: none !important; }
  body { background: #ffffff !important; color: #1a1a2e !important; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; color-scheme: light; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --teal: #00C8C8;
  --teal-dark: #009999;
  --teal-light: #E0FAFA;
  --navy: #0A0E1A;
  --navy-mid: #131929;
  --navy-light: #1E2A3A;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NOTICE TOP BAR ===== */
.notice-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--teal);
  overflow: hidden;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  display: flex;
  align-items: center;
}
.notice-top .container { width: 100%; max-width: 100%; padding: 0; }
.notice-top-inner {
  display: flex;
  align-items: center;
  height: 36px;
  width: 100%;
}
.notice-top-label {
  flex-shrink: 0;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 0 16px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.notice-top-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 20px;
}
.notice-top-marquee span {
  display: inline-block;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  animation: marquee 30s linear infinite;
}

/* ===== INTRO ANIMATION ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* 기본 불투명: 오버레이가 완전히 보임 */
  opacity: 1;
  transition: opacity .5s ease;
}
.intro-overlay.hidden {
  display: none !important;
}
.intro-overlay.fade-out {
  opacity: 0;
}
.intro-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  animation: introLogoIn .6s cubic-bezier(.22,1,.36,1) .15s both;
}
.intro-logo-img {
  width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 로고 페이드인+스케일업 */
@keyframes introLogoIn {
  from { opacity: 0; transform: scale(.72); }
  to   { opacity: 1; transform: scale(1); }
}
/* 인트로 동안 스크롤 잠금 */
body.intro-active {
  overflow: hidden;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff !important;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: var(--transition);
  color-scheme: light;
}
#site-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
/* 헤더 로고 이미지 */
.logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .4s ease;
  /* 인트로 애니메이션이 있는 페이지(index.html)에서 JS가 opacity를 제어함 */
}
.logo:hover .logo-img { opacity: .8; }

/* 인트로 실행 중: 헤더 로고 숨김 (JS에서 .intro-active 클래스 추가) */
body.intro-active #site-header .logo-img {
  opacity: 0 !important;
  transition: none !important;
}

/* ===== 히어로 영상 재생 중: 상단 공지바 + 헤더 숨김 → 영상 종료 시 위에서 내려오며 등장 ===== */
.notice-top, #site-header {
  transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .9s ease, background .3s, box-shadow .3s;
}
body.hero-video-playing .notice-top,
body.hero-video-playing #site-header {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}
/* 영상 재생 중에는 챗봇 버튼도 숨김 (종료 후 페이드인) */
.chatbot-wrapper { transition: opacity .8s ease, transform .8s ease; }
body.hero-video-playing .chatbot-wrapper {
  opacity: 0; transform: translateY(24px); pointer-events: none;
}
/* 모바일은 영상을 재생하지 않으므로 상단바·챗봇을 처음부터 표시 */
@media (max-width: 768px) {
  body.hero-video-playing .notice-top,
  body.hero-video-playing #site-header {
    transform: none; opacity: 1; pointer-events: auto;
  }
  body.hero-video-playing .chatbot-wrapper { opacity: 1; transform: none; pointer-events: auto; }
}
/* 영상 재생 중에는 헤더가 없으므로 영상을 최상단부터 꽉 채움 */
.hero.has-video { margin-top: 0; }

/* 푸터 로고 이미지 */
.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 12px;
}

/* 챗봇 로고 이미지 */
.chatbot-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: #2d3748;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--teal); background: rgba(0, 200, 200, 0.08); }
.main-nav .fa-chevron-down { font-size: .7rem; margin-left: 4px; }

/* ── 드롭다운 서브메뉴 (가로 카드 그리드) ── */
.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 560px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  z-index: 200;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
/* 드롭다운 위쪽 삼각형 화살표 */
.sub-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  border-radius: 3px 0 0 0;
  rotate: 45deg;
}
/* 드롭다운은 '진짜 hover가 있는 포인터(마우스)' + 데스크톱 폭에서만.
   터치 기기에서는 탭 직후 스티키 hover가 걸려 서브메뉴가 먼저 떠버리는 충돌이 나므로 제외 */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
/* 각 서브메뉴 카드 */
.sub-menu li { list-style: none; margin: 0; padding: 0; }
.sub-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  color: #2d3748;
  font-size: .83rem;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  background: #f8fafc;
  text-decoration: none;
  line-height: 1.3;
}
.sub-menu a:hover {
  color: var(--teal);
  background: rgba(0,200,200,.08);
  border-color: rgba(0,200,200,.35);
  transform: translateY(-2px);
}
/* 아이콘 원형 배경 */
.sub-menu .nav-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,200,200,.15), rgba(0,200,200,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: var(--teal);
  transition: background .18s;
  flex-shrink: 0;
}
.sub-menu a:hover .nav-icon {
  background: linear-gradient(135deg, rgba(0,200,200,.28), rgba(0,200,200,.12));
}
.sub-menu .nav-label { font-weight: 700; font-size: .82rem; color: inherit; }
.sub-menu .nav-desc  { font-size: .71rem; color: #a0aec0; font-weight: 400; line-height: 1.4; }

/* Header CTA */
.btn-consult {
  background: var(--teal);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-consult:hover { background: var(--teal-dark); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #2d3748; border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,200,200,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,150,255,.08) 0%, transparent 60%),
    linear-gradient(135deg, #0A0E1A 0%, #131929 50%, #0A0E1A 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C8C8' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  /* 상단 공지(36px) + 헤더(80px) = 116px + 추가 여백 */
  padding: 150px 24px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 스크롤 시 JS가 opacity/transform 조절 (그라데이션 페이드아웃) */
  will-change: opacity, transform;
}

/* 배경 영상 */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  display: none;
}
.hero-video.ready { display: block; opacity: 1; }
/* 재생 중(종료 전)에는 16:9 영상을 위아래 자르지 않고 전체 표시 (와이드 화면에선 상하 레터박스)
   종료 후 하늘 장면은 화면을 꽉 채움(cover) */
@media (min-aspect-ratio: 16/9) and (min-width: 769px) {
  .hero.has-video .hero-video {
    object-fit: contain;
    background: radial-gradient(ellipse at center, #0b1a2e 0%, #050b16 70%);
    transform-origin: center center;
    transition: opacity 1s ease, transform 1.6s cubic-bezier(.22,1,.36,1);
  }
  /* 종료 후 하늘 장면: 부드럽게 확대해 화면을 꽉 채움 (--hero-video-scale 은 hero.js 가 화면비로 계산) */
  .hero.has-video.video-ended .hero-video { transform: scale(var(--hero-video-scale, 1)); }
}

/* 인트로 영상(드론 20초): 배경·오버레이 위에 전체화면으로 먼저 재생 → 종료 시 페이드아웃 */
.hero-intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #050b16;
  z-index: 3;
  opacity: 0;
  display: none;
  transition: opacity 1.3s ease;
}
.hero-intro-video.ready { display: block; opacity: 1; }
.hero.intro-done .hero-intro-video { opacity: 0; pointer-events: none; }
.hero.hero-still .hero-intro-video { display: none !important; }

/* ── 영상 모드: 영상 마지막 프레임의 로고(세로 43% 중심, 하단 52%) 아래에 문구 배치 ── */
.hero.has-video { display: block; background: #0a1628; }
.hero.has-video .hero-bg {
  /* 영상은 항상 첫 화면 높이에 고정 (로고 위치 유지) */
  bottom: auto; height: 100vh; height: 100svh;
}
.hero.has-video .hero-particles { display: none; }
.hero.has-video .hero-fade-bottom { opacity: 0; transition: opacity 1.2s ease; }
/* --hero-logo-bottom : 영상 속 로고 하단 위치(% of hero 높이) — hero.js가 영상 비율/화면 크기로 실측해 갱신 */
.hero.has-video { --hero-logo-bottom: 26%; }
/* 영상 재생 중: 덮개 없음 (영상 그대로) */
.hero.has-video .hero-overlay {
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0) 100%);
  transition: background 1.2s ease;
}
/* 영상 정지 후: 로고 영역은 그대로, 로고 바로 아래부터 어둡게 (밝은 하늘 위 흰 글씨 가독성) */
.hero.has-video.video-ended .hero-overlay {
  background: linear-gradient(180deg,
    rgba(10,22,40,0) 0%,
    rgba(10,22,40,0) calc(var(--hero-logo-bottom) - 3%),
    rgba(10,22,40,.5) calc(var(--hero-logo-bottom) + 9%),
    rgba(10,22,40,.82) 75%,
    rgba(10,22,40,.92) 100%);
}
.hero.has-video.video-ended .hero-fade-bottom { opacity: 1; }
/* 문구: 로고 하단 바로 아래에서 시작 (hero.js가 padding-top을 px로 정밀 세팅) */
.hero.has-video .hero-content {
  padding-top: 140px; /* hero.js가 px로 재설정 (화면 세로 중앙 정렬) */
  padding-bottom: 48px;
  /* min-height 를 두면 hero.js 가 콘텐츠 실제 높이를 재지 못해 항상 상단에 붙음 → 제거 */
  min-height: 0;
  justify-content: flex-start;
}
/* 큰 모니터(세로 1000px 이상): 화면 비율에 맞춰 한 단계 크게 */
@media (min-height: 1000px) and (min-width: 1400px) {
  .hero.has-video .hero-logo { width: clamp(220px, 15vw, 300px); margin-bottom: 16px; }
  .hero.has-video .hero-title { font-size: clamp(3.4rem, 4.3vw, 5.8rem); margin-bottom: 30px; }
  .hero.has-video .hero-sub { font-size: clamp(1.3rem, 1.35vw, 1.8rem); margin-bottom: 42px; }
  .hero.has-video .hero-cta { margin-bottom: 52px; }
  .hero.has-video .hero-cta .btn-primary, .hero.has-video .hero-cta .btn-ghost { padding: 20px 50px; font-size: 1.3rem; }
  .hero.has-video .stat-num { font-size: 3.8rem; }
  .hero.has-video .stat-unit { font-size: 1.9rem; }
  .hero.has-video .stat-label { font-size: 1.1rem; }
  .hero.has-video .stat-divider { height: 70px; }
}
/* 문구 크게: 로고 아래 ~70% 높이를 채우도록 */
.hero.has-video .hero-title { font-size: clamp(2.8rem, 5.6vw, 4.8rem); margin-bottom: 26px; line-height: 1.16; letter-spacing: -1.5px; }
.hero.has-video .hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.5rem); margin-bottom: 36px; line-height: 1.7; color: rgba(255,255,255,.9); }
.hero.has-video .hero-cta { margin-bottom: 44px; gap: 22px; }
.hero.has-video .hero-cta .btn-primary, .hero.has-video .hero-cta .btn-ghost { padding: 18px 44px; font-size: 1.2rem; }
.hero.has-video .stat-num { font-size: 3.2rem; }
.hero.has-video .stat-unit { font-size: 1.6rem; }
.hero.has-video .stat-label { font-size: 1rem; margin-top: 6px; }
.hero.has-video .stat-item { padding: 0 44px; }
.hero.has-video .stat-divider { height: 60px; }
/* 중간 높이(821~1000px, FHD 모니터 브라우저): 통계까지 첫 화면에 들어오도록 여백 축소 */
@media (max-height: 1000px) and (min-width: 769px) {
  .hero.has-video .hero-logo { width: clamp(150px, 14vw, 190px); margin-bottom: 6px; }
  .hero.has-video .hero-title { font-size: clamp(2.5rem, 4.8vw, 4rem); margin-bottom: 18px; line-height: 1.14; }
  .hero.has-video .hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin-bottom: 26px; line-height: 1.6; }
  .hero.has-video .hero-cta { margin-bottom: 30px; }
  .hero.has-video .hero-cta .btn-primary, .hero.has-video .hero-cta .btn-ghost { padding: 16px 38px; font-size: 1.1rem; }
  .hero.has-video .stat-num { font-size: 2.8rem; }
  .hero.has-video .stat-unit { font-size: 1.4rem; }
  .hero.has-video .stat-divider { height: 52px; }
}
/* 낮은 화면(노트북)에서는 한 단계 작게 */
@media (max-height: 820px) and (min-width: 769px) {
  .hero.has-video .hero-title { font-size: clamp(2.3rem, 4.5vw, 3.7rem); margin-bottom: 14px; line-height: 1.12; }
  .hero.has-video .hero-sub { font-size: clamp(1rem, 1.4vw, 1.25rem); margin-bottom: 20px; line-height: 1.6; }
  .hero.has-video .hero-cta { margin-bottom: 24px; }
  .hero.has-video .hero-cta .btn-primary, .hero.has-video .hero-cta .btn-ghost { padding: 14px 34px; font-size: 1.05rem; }
  .hero.has-video .stat-num { font-size: 2.5rem; }
  .hero.has-video .stat-unit { font-size: 1.3rem; }
  .hero.has-video .stat-divider { height: 46px; }
  .hero.has-video .hero-logo { width: clamp(140px, 13vw, 170px); margin-bottom: 4px; }
}
.hero.has-video .hero-scroll-indicator { display: none; }

/* 모바일: 영상 대신 마지막 하늘 이미지 + 로고(PNG)를 CSS로 정확히 배치 */
.hero.hero-still .hero-bg {
  background: var(--hero-still, url('../images/hero_sky_mobile_v3.jpg')) center top / cover no-repeat, #0a1628;
}
/* 로고: 콘텐츠 흐름 안에서 "하늘을 향한" 바로 위 (순차 등장 1번) */
.hero-logo {
  display: block;
  width: clamp(170px, 17vw, 240px);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 18px rgba(0,230,230,.5)) drop-shadow(0 0 44px rgba(0,200,200,.25));
}
/* 데스크톱 영상 종료 후: 로고 하단 아래만 어둡게 (하늘 유지) + 텍스트 그림자 */
.hero.has-video.video-ended .hero-title, .hero.has-video.video-ended .hero-sub { text-shadow: 0 2px 14px rgba(5,12,25,.75), 0 1px 3px rgba(5,12,25,.6); }
.hero.hero-still .hero-video { display: none !important; }
.hero.hero-still .hero-skip { display: none !important; }
.hero.hero-still .hero-fade-bottom { opacity: 1; }
/* 정지 화면 모드: 배경이 히어로 전체 높이를 채움 (콘텐츠가 100vh를 넘어도 잘리지 않음) */
.hero.hero-still .hero-bg { bottom: 0; height: auto; }
/* 하늘이 보이도록 가벼운 덤개: 위쪽은 거의 투명, 문구 구간만 적당히 어둡게 */
.hero.hero-still .hero-overlay {
  background: linear-gradient(180deg,
    rgba(10,22,40,0) 0%,
    rgba(10,22,40,.08) calc(var(--hero-logo-bottom) - 2%),
    rgba(10,22,40,.42) calc(var(--hero-logo-bottom) + 12%),
    rgba(10,22,40,.62) 70%,
    rgba(10,22,40,.8) 100%);
}
/* 하단 그라데이션도 정지화면 모드에서는 약하게 */
.hero.hero-still .hero-fade-bottom {
  height: 28%;
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.5) 60%, #0a1628 100%);
}
/* 가독성 보강: 밝은 하늘 위 흰 글씨에 그림자 */
.hero.hero-still .hero-title, .hero.hero-still .hero-sub { text-shadow: 0 2px 14px rgba(5,12,25,.75), 0 1px 3px rgba(5,12,25,.6); }

/* ───── 모바일 히어로 레이아웃 (정지 화면 모드) ───── */
@media (max-width: 768px) {
  .hero.hero-still { min-height: 100vh; min-height: 100svh; }
  .hero.hero-still .hero-content {
    min-height: 0;
    padding-left: 20px; padding-right: 20px; padding-bottom: 36px;
  }
  .hero-logo { width: clamp(150px, 42vw, 190px); margin-bottom: 12px; }
  .hero.hero-still .hero-title { font-size: 1.95rem; margin-bottom: 10px; letter-spacing: -1px; line-height: 1.18; }
  .hero.hero-still .hero-sub { font-size: .9rem; margin-bottom: 16px; line-height: 1.55; }
  .hero.hero-still .hero-sub .hero-line { display: block; }
  .hero.hero-still .hero-cta { margin-bottom: 18px; gap: 8px; width: 100%; max-width: 360px; }
  .hero.hero-still .hero-cta .btn-primary, .hero.hero-still .hero-cta .btn-ghost { padding: 12px 20px; font-size: .98rem; }
  /* 통계: 2×2 그리드로 한 눈에 (4번째 항목이 혼자 떨어지는 문제 해결) */
  .hero.hero-still .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; width: 100%; max-width: 360px;
  }
  .hero.hero-still .stat-divider { display: none; }
  .hero.hero-still .stat-item {
    padding: 10px 6px; margin: 0;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
    column-gap: 3px; justify-content: center; align-items: baseline;
  }
  .hero.hero-still .stat-num { font-size: 1.6rem; line-height: 1; }
  .hero.hero-still .stat-unit { font-size: .9rem; }
  .hero.hero-still .stat-label { font-size: .74rem; margin-top: 4px; grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 380px) {
  .hero.hero-still .hero-title { font-size: 1.8rem; }
  .hero.hero-still .stat-num { font-size: 1.7rem; }
}

/* (옵션) 영상 종료 후 하늘 이미지 페이드인 — index.html에서 HERO_END_BG='sky'일 때만 (.end-sky) */
.hero.has-video.end-sky .hero-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: url('../images/hero_sky_desktop.jpg?v=2') center / cover no-repeat;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero.has-video.end-sky.video-ended:not(.hero-still) .hero-bg::before { opacity: 1; }
.hero.has-video .hero-overlay, .hero.has-video .hero-fade-bottom { z-index: 1; }
/* 영상 종료 후(기본): 마지막 프레임 위에 문구 가독성용 덤개 */
.hero.has-video.video-ended:not(.hero-still) .hero-overlay {
  background: linear-gradient(180deg,
    rgba(10,22,40,.35) 0%,
    rgba(10,22,40,.45) calc(var(--hero-logo-bottom) - 4%),
    rgba(10,22,40,.62) calc(var(--hero-logo-bottom) + 10%),
    rgba(10,22,40,.78) 75%,
    rgba(10,22,40,.9) 100%);
}

/* 영상 재생 중 건너뛰기 안내 (하단 중앙) */
.hero-skip {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: none; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(10,22,40,.38); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.28); border-radius: 100px;
  padding: 10px 18px 8px; font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  cursor: pointer; font-family: inherit;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s ease, background .2s;
}
.hero-skip i { font-size: .8rem; animation: bounce 2s infinite; }
.hero-skip:hover { background: rgba(0,200,200,.35); }
.hero.has-video.video-playing .hero-skip { display: flex; opacity: 1; }
.hero.has-video.video-ended .hero-skip { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .hero-skip { bottom: 20px; font-size: .72rem; padding: 9px 14px 7px; }
}
/* 히어로 하단 → 다음 섹션으로 그라데이션 */
.hero-fade-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.6) 55%, #0a1628 100%);
  pointer-events: none;
  z-index: 1;
}

/* 보관 중인 영상 히어로(hidden 속성)는 .hero{display:flex} 보다 우선해 숨김 */
.hero[hidden] { display: none !important; }

/* ===== 메인 키비주얼 캐러셀 (HERO_MODE='banner', js/hero-banner.js) — 삼성스토어 메인 KV 방식 =====
   - 배너는 화면을 꽉 채우지 않고 **가운데 고정 폭(최대 1280px) × 16:7 비율** → 큰 모니터에서도 사진이 원본 해상도 근처로 표시되어 화질 저하·과도한 위아래 잘림 없음
   - 1280px 이하 화면에서는 폭 100% (비율 유지), 모바일은 세로 높이 clamp 로 전환. 고정 헤더(공지 36 + 헤더 80 = 116px) 아래에서 시작
   - 배너 1: 훈련장 사진 / 배너 2: 교관 비행 사진 / 배너 3: 학생 일러스트 — 모두 cover + HTML 문구 */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 116px auto 0;
  background: #0a1628;
  overflow: hidden;
  aspect-ratio: 2 / 1;           /* 1280 × 640 (소개 배너에 최근 소식 3개까지 들어가는 높이) */
  height: auto;
  min-height: 560px;
  max-height: 680px;
  outline: none;
}
/* 배너보다 넓은 화면: 가운데 카드처럼 둥글게, 양옆은 페이지 배경(흰색) */
@media (min-width: 1320px) {
  .hero-banner { border-radius: 20px; margin-top: 132px; box-shadow: 0 16px 40px rgba(10,22,40,.12); }
}
.hb-track {
  display: flex; height: 100%; width: 100%;
  transition: transform .75s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.hb-slide {
  position: relative; flex: 0 0 100%; width: 100%; height: 100%;
  overflow: hidden;
}
.hb-img {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  user-select: none; -webkit-user-drag: none;
}
/* 왼쪽 텍스트 가독성용 그라데이션 (사진 왼쪽만 살짝 어둡게) */
.hb-shade {
  position: absolute; inset: 0; z-index: 1;
  /* 밝은 톤: 글자 뒤만 살짝, 사진 우측/상단은 원본 밝기 그대로 */
  background:
    linear-gradient(90deg, rgba(8,20,40,.42) 0%, rgba(8,20,40,.22) 34%, rgba(8,20,40,0) 58%),
    linear-gradient(180deg, rgba(8,20,40,0) 0%, rgba(8,20,40,0) 72%, rgba(8,20,40,.28) 100%);
}
/* 배너 1 (훈련장 사진): 밴·드론 기체가 화면 아래쪽에 남도록 위쪽 하늘을 조금 잘라냄 (사진 원본은 밝아 보정 없음) */
.hb-slide[data-slide="intro"] .hb-img { object-position: center 70%; }
/* .container 규칙(후반 모바일 미디어쿼리의 padding:0 14px)에 밀리지 않도록 부모 선택자로 우선순위 확보 */
.hero-banner .hb-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center;
  padding: 20px 24px 72px; /* 하단 72px = 컨트롤 필 자리 */
}
.hb-text { color: #fff; max-width: 640px; }
.hb-brand {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: -.2px;
}
.hb-brand img { height: 34px; width: auto; filter: drop-shadow(0 0 12px rgba(0,230,230,.45)); }
.hb-eyebrow { font-size: clamp(.95rem, 1.2vw, 1.15rem); font-weight: 600; color: rgba(255,255,255,.95); margin: 0 0 12px; letter-spacing: -.2px; text-shadow: 0 1px 10px rgba(5,12,25,.6); }
.hb-title {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -2px;
  margin: 0 0 18px; text-shadow: 0 2px 18px rgba(5,12,25,.7), 0 1px 3px rgba(5,12,25,.5);
}
.hb-title .hero-line { display: block; }
.hb-title .highlight { color: var(--teal); }
.hb-sub { font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.7; color: rgba(255,255,255,.95); margin: 0 0 30px; text-shadow: 0 1px 10px rgba(5,12,25,.6); }
.hb-sub .hero-line { display: block; }
.hb-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 30px; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; white-space: nowrap; text-decoration: none; letter-spacing: -.2px;
  cursor: pointer; outline: none;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.hb-btn i { font-size: .85em; transition: transform .2s ease; }
.hb-btn:hover i { transform: translateX(3px); }
.hb-btn-primary { background: var(--teal); color: #0a0e1a; box-shadow: 0 6px 20px rgba(0,200,200,.35); }
.hb-btn-primary:hover, .hb-btn-primary:focus-visible { background: #19e0e0; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,200,200,.5); }
.hb-btn-ghost {
  background: rgba(10,14,26,.35); color: #fff; border: 1.5px solid rgba(255,255,255,.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hb-btn-ghost:hover, .hb-btn-ghost:focus-visible { background: rgba(255,255,255,.14); border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.hb-tag {
  position: absolute; right: 24px; top: 28px;
  font-family: 'Orbitron', sans-serif; font-size: .78rem; letter-spacing: 5px; color: rgba(255,255,255,.75);
  padding-left: 14px; border-left: 1px solid rgba(255,255,255,.45);
}

/* 통계 스트립 (배너 아래) */
.hb-stats { background: #fff; border-bottom: 1px solid #e6eef4; box-shadow: 0 6px 20px rgba(10,22,40,.05); position: relative; z-index: 2; }
.hb-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 22px; padding-bottom: 22px;
}
.hb-stat {
  display: flex; align-items: center; gap: 16px; padding: 6px 28px;
  border-left: 1px solid #e9eef3;
}
.hb-stat:first-child { border-left: none; }
.hb-stat > i {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light); border: 1px solid rgba(0,200,200,.35); color: var(--teal-dark); font-size: 1.15rem;
}
/* 숫자 + 단위를 한 줄에: 숫자는 Orbitron 큰 글씨, 단위는 작게 바로 옆에 (줄바꿈 금지) */
.hb-stat strong {
  display: flex; align-items: baseline; gap: 3px; white-space: nowrap;
  font-size: 1.1rem; font-weight: 800; color: var(--teal-dark); line-height: 1; letter-spacing: -.3px;
}
.hb-stat strong .stat-num {
  display: inline-block; font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: 1.9rem; line-height: 1; color: var(--teal-dark);
}
.hb-stat > div > span { display: block; font-size: .85rem; color: var(--gray-600); margin-top: 6px; } /* 라벨만 (strong 안 .stat-num 제외) */

/* 배너 2: 이벤트 — 교관 비행 사진 배경(cover, 오른쪽 교관 유지) + 왼쪽 하늘 영역에 HTML 텍스트 (배너 1과 동일 구조) */
.hb-event { background: #1b2a3c; }
.hb-img-event { object-fit: cover; object-position: 60% center; }
/* 밝은 구름 하늘 위 흰 글자 가독성: 왼쪽만 남색 음영 */
.hb-event-shade {
  background:
    linear-gradient(90deg, rgba(6,20,40,.62) 0%, rgba(6,20,40,.40) 38%, rgba(6,20,40,.05) 64%, rgba(6,20,40,0) 80%),
    linear-gradient(180deg, rgba(6,20,40,.12) 0%, rgba(6,20,40,0) 30%, rgba(6,20,40,0) 70%, rgba(6,20,40,.35) 100%);
}
.hb-event-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hb-event .hb-tag { right: 24px; }
.hb-event-text { color: #fff; text-align: left; max-width: 700px; }
.hb-event-text .hero-event-badge { margin-bottom: 20px; }
.hb-event-title {
  font-size: clamp(2.2rem, 4.2vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -1.5px;
  margin: 0 0 22px; text-shadow: 0 2px 14px rgba(5,12,25,.6);
}
.hb-event-title .hero-line { display: block; }
.hb-event-title .highlight { color: var(--teal); }
.hb-event-sub { font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.7; color: rgba(255,255,255,.95); margin: 0 0 32px; text-shadow: 0 1px 10px rgba(5,12,25,.6); }
.hb-event-sub .hero-line { display: block; }
.hb-event-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
/* 배너 1(소개) 안 최근 소식 3개 (버튼 아래, 반투명 유리 카드 3열)
   → 소식 띄가 들어가는 슬라이드는 세로 간격을 압축하고, 하단 컨트롤 필(≈66px) 위로 올라오도록 패딩 확보 */
.hero-banner .hb-slide[data-slide="intro"] .hb-inner { padding-top: 16px; padding-bottom: 92px; }
.hb-slide[data-slide="intro"] .hb-brand { margin-bottom: 12px; }
.hb-slide[data-slide="intro"] .hb-eyebrow { margin-bottom: 6px; }
.hb-slide[data-slide="intro"] .hb-title { font-size: clamp(2.1rem, 3.8vw, 3.6rem); margin-bottom: 10px; line-height: 1.1; }
.hb-slide[data-slide="intro"] .hb-sub { margin-bottom: 18px; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.55; }
.hb-slide[data-slide="intro"] .hb-sub br { display: none; }
.hb-news { margin-top: 16px; max-width: 760px; }
.hb-news-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,.85); text-transform: uppercase;
}
.hb-news-head i { color: var(--teal); }
.hb-news-head a { margin-left: auto; color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 600; letter-spacing: 0; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.hb-news-head a:hover { color: var(--teal); }
.hb-news-head a i { color: inherit; font-size: .6rem; }
.hb-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hb-news-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px;
  background: rgba(10,22,40,.46); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; min-width: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.hb-news-item:hover { background: rgba(0,200,200,.22); border-color: rgba(0,200,200,.6); transform: translateY(-2px); }
.hb-news-thumb {
  width: 52px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
}
.hb-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-news-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hb-news-cat { font-size: .68rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-news-title {
  font-size: .82rem; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


.hb-btn-dark { background: rgba(10,14,26,.55); border-color: rgba(10,14,26,.75); }
.hb-btn-dark:hover, .hb-btn-dark:focus-visible { background: rgba(10,14,26,.72); border-color: var(--teal); }

/* 포스터형 배너(3 학생 할인 이벤트 / 4 앱 출시): 사용자 완성본 원본을 그대로, 버튼·HTML 문구 없이 이미지 전체가 링크.
   contain 으로 절대 잘리지 않게, 비율 차이로 남는 영역은 이미지 가장자리와 같은 배경색으로 채움 */
.hb-slide.hb-poster { display: block; cursor: pointer; text-decoration: none; overflow: hidden; }
/* 빈 띄 없이 꽉 차 보이도록: 같은 이미지를 블러·확대해 배경으로 깔고(.hb-poster-blur), 그 위에 원본을 contain 으로 올림(원본은 절대 안 잘림) */
.hb-slide.hb-poster .hb-poster-blur .hb-img { object-fit: cover; object-position: center; filter: blur(28px) saturate(1.1); transform: scale(1.2); z-index: 0; }
.hb-slide.hb-poster .hb-img-poster { position: absolute; inset: 0; z-index: 1; object-fit: contain; object-position: center center; transition: transform .4s ease; }
.hb-slide.hb-poster:hover .hb-img-poster { transform: scale(1.01); }
.hb-student { background: #bfe3f7; }   /* 할인 이벤트 포스터 하늘색 */
.hb-app { background: #eaf6f2; }       /* 앱 배너 민트 */

/* 하단 중앙 컨트롤 알약 하나: ◀  01 ━━━━ 02  ⏸  ▶  (삼성스토어 slide-counter 방식, 화살표도 안에 포함) */
.hb-arrow {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .7rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.hb-arrow:hover { background: rgba(0,200,200,.35); border-color: var(--teal); }
.hb-controls {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px; border-radius: 100px;
  background: rgba(10,22,40,.42); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-family: 'Orbitron', sans-serif; font-size: .8rem; letter-spacing: 1px;
}
.hb-current { color: #fff; }
.hb-total { color: rgba(255,255,255,.55); }
.hb-progress {
  position: relative; display: block; width: 120px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.25); overflow: hidden;
}
.hb-progress i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--teal); box-shadow: 0 0 8px rgba(0,200,200,.8);
  /* 폭 0→100% 를 자동 넘김 간격 동안 (JS 가 --hb-interval 세팅 후 .run 토글) */
  transition: none;
}
.hb-progress i.run { width: 100%; transition: width var(--hb-interval, 6000ms) linear; }
.hb-pause {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); flex-shrink: 0;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.hb-pause:hover { background: rgba(0,200,200,.35); border-color: var(--teal); }
/* 점 인디케이터는 보조용 — 시각적으로 숨김(스크린리더 접근 유지) */
.hb-dots { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.hero-banner.single .hb-arrow, .hero-banner.single .hb-controls { display: none; }

@media (max-width: 1024px) {
  .hb-event-inner { grid-template-columns: 1fr; }
  .hb-event-visual { display: none; }
  .hb-tag { display: none; }
}
@media (max-width: 768px) {
  .hero-banner {
    margin-top: 84px;               /* 공지 28 + 헤더 56 */
    aspect-ratio: auto;
    height: clamp(520px, 78svh, 680px);
    max-height: none;
  }
  /* 모바일은 <picture> 로 세로형 원본(*_m.png)을 사용 → 위치 보정 없이 중앙 그대로 */
  /* 세로 완성본은 상단에 글자가 있으므로 위쪽 기준으로 채움(위 잘림 방지, 남는 부분은 아래쪽 잔디가 잘림) */
  .hb-img { object-position: center top; }
  .hb-shade {
    background:
      linear-gradient(180deg, rgba(8,20,40,.22) 0%, rgba(8,20,40,.12) 40%, rgba(8,20,40,.62) 100%);
  }
  .hero-banner .hb-inner { align-items: flex-end; padding: 24px 18px 80px; }
  .hb-text { max-width: none; text-align: left; }
  .hb-brand { margin-bottom: 10px; font-size: .74rem; gap: 8px; }
  .hb-brand img { height: 24px; }
  .hb-eyebrow { font-size: .8rem; margin-bottom: 6px; opacity: .9; }
  .hb-title { font-size: 2rem; letter-spacing: -1.2px; margin-bottom: 10px; line-height: 1.12; }
  .hb-sub { font-size: .88rem; margin-bottom: 16px; line-height: 1.6; }
  .hb-cta { gap: 8px; }
  .hb-cta .hb-btn { flex: 1; min-width: 0; padding: 12px 8px; font-size: .9rem; border-radius: 12px; }
  /* 배너 2 (모바일 세로 완성본 hero_banner_03_event_m.png — 제목·서브 문구가 이미지에 포함):
     HTML 배지·제목·서브는 숨기고 버튼 2개만 하단(컨트롤 필 바로 위), 음영은 버튼 뒤 하단만 살짝 */
  .hb-event-text .hero-event-badge,
  .hb-event-text .hb-event-title,
  .hb-event-text .hb-event-sub { display: none; }
  .hero-banner .hb-event-inner { display: flex; align-items: flex-end; padding: 24px 18px 80px; }
  .hb-event-text { width: 100%; }
  .hb-event-shade {
    background: linear-gradient(180deg, rgba(6,20,40,0) 0%, rgba(6,20,40,0) 65%, rgba(6,20,40,.5) 100%);
  }
  .hb-event-text { text-align: left; max-width: none; }
  /* 모바일 배너 1: 글자 블록은 하단에 모으고, 서브 문구 줄바꿈 유지, 최근 소식은 써네일 + 제목 1줄 카드 3개 */
  .hero-banner .hb-slide[data-slide="intro"] .hb-inner { padding-top: 16px; padding-bottom: 76px; }
  .hb-slide[data-slide="intro"] .hb-brand { margin-bottom: 8px; }
  .hb-slide[data-slide="intro"] .hb-eyebrow { margin-bottom: 4px; }
  .hb-slide[data-slide="intro"] .hb-title { font-size: 1.9rem; margin-bottom: 8px; }
  .hb-slide[data-slide="intro"] .hb-sub { margin-bottom: 14px; font-size: .86rem; line-height: 1.55; }
  .hb-slide[data-slide="intro"] .hb-sub br { display: inline; }
  .hb-news { margin-top: 14px; max-width: none; }
  .hb-news-head { margin-bottom: 6px; font-size: .68rem; letter-spacing: 1px; }
  .hb-news-head a { font-size: .7rem; }
  .hb-news-list { grid-template-columns: 1fr; gap: 5px; }
  .hb-news-item {
    padding: 6px 10px 6px 6px; gap: 10px; border-radius: 10px;
    background: rgba(10,22,40,.42); border-color: rgba(255,255,255,.16);
  }
  .hb-news-thumb { width: 44px; height: 34px; border-radius: 7px; }
  .hb-news-cat { display: none; }
  .hb-news-title { -webkit-line-clamp: 1; font-size: .8rem; font-weight: 600; }
  .hb-event-title { font-size: 1.95rem; letter-spacing: -1px; margin-bottom: 12px; }
  .hb-event-sub { font-size: .9rem; margin-bottom: 20px; }
  .hb-event-cta a { flex: 1; min-width: 0; padding: 12px 10px; font-size: .95rem; }
  /* 포스터형 배너 3·4 (모바일): 세로 완성본을 contain 으로 전체 표시(잘림 없음), 위쪽 기준·컨트롤 필 자리(하단 60px)만 비움 */
  .hb-slide.hb-poster .hb-img-poster { object-fit: contain; object-position: center top; height: calc(100% - 60px); }
  .hb-slide.hb-poster .hb-poster-blur .hb-img { height: 100%; }
  .hb-controls { bottom: 16px; gap: 8px; padding: 5px 6px; font-size: .72rem; }
  .hb-arrow, .hb-pause { width: 28px; height: 28px; font-size: .65rem; }
  .hb-progress { width: 56px; }
  /* 통계 스트립 2×2 */
  .hb-stats-inner { grid-template-columns: 1fr 1fr; gap: 6px 0; padding: 14px 0; }
  .hb-stat { padding: 10px 12px; gap: 10px; border-left: none; }
  .hb-stat > i { width: 38px; height: 38px; font-size: .95rem; border-radius: 10px; }
  .hb-stat strong { font-size: .95rem; }
  .hb-stat strong .stat-num { font-size: 1.45rem; }
  .hb-stat > div > span { font-size: .74rem; margin-top: 3px; }
}

/* ===== 히어로 슬라이드 (소개 ↔ 이벤트) — 영상 모드(HERO_MODE='video') 전용, 보관 =====
   - 기존 로고/통계는 고정, 제목·서브·버튼 블록만 교대
   - 두 슬라이드를 같은 칸(grid stack)에 겹쳐 높이 점프 방지 */
.hero-slides {
  position: relative;
  display: grid;
  width: 100%;
  justify-items: center;
}
.hero-slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), visibility 0s linear .9s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), visibility 0s;
  pointer-events: auto;
}
/* 이벤트 슬라이드: 문구 등장 연출이 끝난 뒤에만 보이므로 hero-reveal 없이 바로 표시 */
.hero-event-badge {
  margin-bottom: 18px;
  font-size: .85rem; letter-spacing: 2px; font-weight: 800;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(0,200,200,.18); border: 1px solid rgba(0,200,200,.55); color: var(--teal);
  text-shadow: none;
}
.hero-event-title { margin-bottom: 26px; }
/* 슬라이드 컨트롤 (문구 등장 완료 후 .hero.slides-ready 에서만 표시) */
.hero-slide-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(10,22,40,.38); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; cursor: pointer; z-index: 3;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .5s ease, background .2s, border-color .2s;
}
.hero-slide-arrow.prev { left: -8px; }
.hero-slide-arrow.next { right: -8px; }
.hero-slide-arrow:hover { background: rgba(0,200,200,.35); border-color: var(--teal); }
.hero-slide-dots {
  display: flex; justify-content: center; gap: 10px;
  margin: 2px 0 34px;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.hero-slide-dots button {
  width: 34px; height: 5px; border-radius: 100px; border: none; padding: 0;
  background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s, width .3s;
}
.hero-slide-dots button.is-active { background: var(--teal); width: 48px; box-shadow: 0 0 12px rgba(0,200,200,.6); }
.hero.slides-ready .hero-slide-arrow, .hero.slides-ready .hero-slide-dots { opacity: 1; pointer-events: auto; }
@media (max-width: 1100px) { .hero-slide-arrow.prev { left: 0; } .hero-slide-arrow.next { right: 0; } }
@media (max-width: 768px) {
  .hero-slide-arrow { display: none; }
  .hero-slide-dots { margin: 0 0 18px; gap: 8px; }
  .hero-slide-dots button { width: 26px; height: 4px; }
  .hero-slide-dots button.is-active { width: 38px; }
  .hero-event-badge { margin-bottom: 12px; font-size: .75rem; padding: 6px 14px; }
}

/* 순차 등장: 기본 숨김 → .in 클래스로 표시 */
.hero-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.hero-reveal.in { opacity: 1; transform: none; }
.hero-title .hero-line, .hero-sub .hero-line { display: block; }
/* 통계 구분선은 이동 없이 페이드만 */
.stat-divider.hero-reveal { transform: none; }
/* 히어로 특정 요소의 기존 키프레임 애니메이션은 비활성 (순차 등장과 충돌 방지) */
.hero-title, .hero-sub, .hero-cta, .hero-stats { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { opacity: 1; transform: none; transition: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 200, 0.15);
  border: 1px solid rgba(0, 200, 200, 0.4);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown .6s ease;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeInUp .6s ease .1s both;
  letter-spacing: -1px;
}
.highlight { color: var(--white); position: relative; }
.highlight-teal { color: var(--teal); font-family: 'Orbitron', sans-serif; font-size: .85em; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp .6s ease .2s both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeInUp .6s ease .3s both;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,200,.3); }
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,200,200,.08); }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: fadeInUp .6s ease .4s both;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal);
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
}
.stat-unit { font-size: 1.2rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  animation: bounce 2s infinite;
}
.scroll-arrow { font-size: 1.2rem; }

/* ===== NOTICE BAR (메인 히어로 아래 구 배너 — 숨김 처리, 상단 notice-top으로 대체) ===== */
.notice-bar { display: none; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== COURSES GRID ===== */
.courses-section { background: var(--gray-100); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.course-card:hover::before { transform: scaleX(1); }
.course-icon { margin-bottom: 16px; }
.course-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.course-badge.special {
  background: linear-gradient(135deg, var(--teal), #0099cc);
  color: #fff;
}
.course-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.course-card p {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.course-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.course-info span {
  font-size: .82rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-info i { color: var(--teal); }
.course-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-card {
  border-color: var(--teal);
  background: linear-gradient(135deg, #f0fffe, #fff);
}

/* ===== WHY SECTION ===== */
.why-section {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(0,200,200,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(0,180,255,.10) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef7fa 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.why-left .section-tag { color: var(--teal-dark); }
.section-title.white { color: var(--navy); }
.why-desc { color: var(--gray-600); font-size: 1rem; margin: 16px 0 32px; line-height: 1.8; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(10,14,26,.18);
  color: var(--navy);
  background: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-white:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }
.why-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3eaf0;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(10,22,40,.05);
  transition: var(--transition);
}
.why-item:hover { border-color: rgba(0, 200, 200, 0.5); box-shadow: 0 14px 32px rgba(10,22,40,.10); transform: translateY(-3px); }
.why-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-content h4 { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-content p { color: var(--gray-600); font-size: .88rem; line-height: 1.7; }

/* ===== BUSINESS SECTION ===== */
.business-section { background: #fff; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.biz-card {
  padding: 36px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.biz-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.biz-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(0, 200, 200, 0.1);
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
}
.biz-icon { font-size: 2.2rem; color: var(--teal); margin-bottom: 16px; }
.biz-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }
.biz-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.7; }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--gray-100); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.review-name { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.review-course { font-size: .8rem; color: var(--teal); font-weight: 600; }
.review-stars { color: #FFB800; font-size: .9rem; }
.review-content { color: var(--gray-600); font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.review-date { font-size: .78rem; color: var(--gray-400); }
.review-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 12px;
}
.review-loading { text-align: center; padding: 40px; color: var(--gray-400); grid-column: 1/-1; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.8); font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary-lg {
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-lg:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-phone {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,.3);
}
.btn-phone:hover { background: rgba(255,255,255,.3); }

/* ===== GALLERY PREVIEW ===== */
.gallery-preview-section { background: #fff; }
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.gallery-preview-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-preview-item:hover img { transform: scale(1.07); }
.gallery-preview-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-preview-item:hover .overlay { opacity: 1; }
.gallery-preview-item .overlay span { color: #fff; font-size: .85rem; font-weight: 600; }

/* Center btn */
.center-btn { text-align: center; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
/* 네이버 블로그 버튼 변형 */
.btn-outline.btn-naver { border-color: #03c75a; color: #03c75a; }
.btn-outline.btn-naver:hover { background: #03c75a; color: #fff; }

/* ===== CHATBOT ===== */
.chatbot-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}
.chatbot-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 200, 200, 0.4);
  transition: var(--transition);
  position: relative;
}
.chatbot-bubble:hover { transform: scale(1.1); }
.chatbot-icon { font-size: 1.4rem; color: #fff; }
.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF4757;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-box {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chatbot-box.open { display: flex; }
.chatbot-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,200,200,.15);
  border: 2px solid rgba(0,200,200,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
/* 로고 이미지가 있는 경우 흰색 배경 */
.chatbot-avatar.logo-avatar {
  background: #ffffff;
  border-color: rgba(255,255,255,0.25);
  padding: 2px;
}
.chatbot-header strong { display: block; color: #fff; font-size: .95rem; }
.chatbot-header small { color: rgba(255,255,255,.5); font-size: .75rem; }
.chatbot-close { margin-left: auto; color: rgba(255,255,255,.5); font-size: 1rem; transition: var(--transition); }
.chatbot-close:hover { color: #fff; }
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--teal);
  flex-shrink: 0;
}
.chat-bubble {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  font-size: .85rem;
  line-height: 1.6;
  color: #333;
  max-width: 220px;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user .chat-bubble {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  border-bottom-right-radius: 4px;
}
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.chat-quick-btns button {
  background: #fff;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.chat-quick-btns button:hover { background: var(--teal); color: #fff; }
.chatbot-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
.chatbot-input-area input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.chatbot-input-area input:focus { border-color: var(--teal); }
.chatbot-input-area button {
  background: var(--teal);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.chatbot-input-area button:hover { background: var(--teal-dark); }

/* ===== FOOTER ===== */
.site-footer { background: #ffffff; padding: 64px 0 0; border-top: 1px solid #e8ecf0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e8ecf0;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand p { color: #718096; font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-links h4, .footer-contact h4 { color: #1a202c; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #718096; font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #718096;
  font-size: .88rem;
}
.footer-contact i { color: var(--teal); margin-top: 2px; flex-shrink: 0; }
.btn-footer-consult {
  display: inline-block;
  margin-top: 16px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .88rem;
  transition: var(--transition);
}
.btn-footer-consult:hover { background: var(--teal-dark); }
/* ===== 포스터 라이트박스 (공통) ===== */
.poster-lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(5, 12, 25, .92);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; gap: 12px;
}
.poster-lightbox.open { display: flex; }
.poster-lightbox-img {
  max-width: min(96vw, 900px); max-height: 86vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: posterIn .25s ease;
}
@keyframes posterIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.poster-lightbox-caption { color: rgba(255,255,255,.75); font-size: .88rem; text-align: center; }
.poster-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.poster-lightbox-close:hover { background: var(--teal); }

/* 포스터형 이미지 카드 (클릭 확대) */
.poster-figure {
  position: relative; cursor: zoom-in; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid #e8edf4; box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
}
.poster-figure:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.poster-figure img { width: 100%; height: auto; display: block; }
.poster-figure .poster-zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(10,22,40,.82); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 6px 11px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px; pointer-events: none;
}
.poster-figure .poster-zoom-hint i { color: var(--teal); }

/* 푸터 해시태그 키워드 */
.footer-tags {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  padding: 18px 0 20px;
  border-top: 1px solid #e8ecf0;
}
.footer-tags span {
  font-size: .72rem; font-weight: 600; color: #8a94a6;
  background: #f1f5f9; border-radius: 100px;
  padding: 4px 11px; line-height: 1.4; white-space: nowrap;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0aec0;
  font-size: .82rem;
  border-top: 1px solid #e8ecf0;
}
.footer-bottom a { color: var(--teal); }
.footer-bottom p { color: #a0aec0; }
.admin-footer-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600;
  color: #a0aec0 !important;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.admin-footer-link:hover {
  color: var(--teal) !important;
  border-color: rgba(0,200,200,.35);
  background: rgba(0,200,200,.06);
}
.admin-footer-link i { font-size: .7rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 모바일 전용 상담 버튼 (데스크탑에서 숨김) */
.mobile-consult-item { display: none; }

@media (max-width: 768px) {
  /* 공지 바 */
  .notice-top { height: 28px; }
  .notice-top-label { font-size: .65rem; padding: 0 8px; height: 28px; gap: 4px; }
  .notice-top-label i { display: none; }
  .notice-top-marquee span { font-size: .72rem; }

  /* 헤더 */
  #site-header { top: 28px; }
  .header-inner { height: 56px; gap: 8px; padding: 0 16px; }
  .logo-img { height: 38px; width: auto; }
  .btn-consult { display: none; }  /* 모바일에서 무료상담 버튼 숨김 - 햄버거 메뉴 안에 포함 */
  .hamburger { display: flex; }

  /* 모바일 네비 */
  .main-nav {
    display: none;
    position: fixed;
    top: calc(28px + 56px);
    left: 0; right: 0;
    background: #ffffff;
    padding: 16px;
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav > ul > li { width: 100%; }
  .main-nav a { padding: 11px 14px; border-radius: 8px; color: #2d3748; font-size: .95rem; }
  /* 모바일 서브메뉴: hover 무시, 오직 .open(터치 토글)으로만 펼침 */
  .sub-menu,
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu {
    position: static !important;
    opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    transition: none !important;
    width: 100%;
    background: rgba(0,200,200,.04);
    border: none;
    padding: 8px 4px;
    display: none !important;
    box-shadow: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-radius: 10px;
    margin-top: 4px;
  }
  .sub-menu::before { display: none; }
  .has-sub.open .sub-menu,
  .has-sub.open:hover .sub-menu { display: grid !important; }
  .sub-menu a:hover { transform: none; }
  .main-nav a:hover { background: transparent; }
  .main-nav a.active, .has-sub.open > a { color: var(--teal); background: rgba(0,200,200,.08); }
  .sub-menu a { padding: 10px 6px; font-size: .76rem; border-radius: 8px; }
  .sub-menu .nav-icon { width: 32px; height: 32px; font-size: .85rem; }
  .sub-menu .nav-desc { display: none; }
  .mobile-consult-item { display: block; margin-top: 8px; }
  .mobile-consult-btn {
    display: block !important;
    background: var(--teal) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: 10px !important;
    padding: 13px !important;
  }

  /* 히어로 */
  .hero-content { padding-top: 130px; }
  .hero.has-video .hero-content { padding-bottom: 48px; }
  .hero.has-video .hero-title { font-size: 2.2rem; margin-bottom: 14px; letter-spacing: -1px; }
  .hero.has-video .hero-sub { font-size: 1rem; margin-bottom: 22px; }
  .hero.has-video .hero-cta { margin-bottom: 28px; gap: 12px; }
  .hero.has-video .hero-cta .btn-primary, .hero.has-video .hero-cta .btn-ghost { padding: 15px 24px; font-size: 1.05rem; }
  .hero.has-video .stat-num { font-size: 2rem; }
  .hero.has-video .stat-unit { font-size: 1.1rem; }
  .hero.has-video .stat-label { font-size: .8rem; }
  .hero.has-video .stat-item { padding: 0 14px; margin-bottom: 14px; }
  .hero-title { font-size: 1.7rem; letter-spacing: -.5px; }
  .hero-sub { font-size: .9rem; }
  .hero-badge { font-size: .75rem; padding: 6px 12px; }
  .hero-cta { flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { justify-content: center; text-align: center; }
  .btn-primary-lg { width: 100%; justify-content: center; font-size: .95rem; padding: 14px 20px; }
  .btn-phone { width: 100%; justify-content: center; font-size: .95rem; }

  /* 통계 */
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 0; }
  .stat-item { padding: 0 12px; flex: 0 0 auto; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: .72rem; }
  .stat-divider { height: 24px; }

  /* 섹션 공통 */
  .courses-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-logo-img { height: 48px; width: auto; margin: 0 0 10px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .chatbot-box { width: calc(100vw - 32px); right: 0; }
  .chatbot-wrapper { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 56px 0; }
  /* 공지(28px) + 헤더(56px) = 84px */
  .hero-content { padding: 110px 14px 56px; }
  .hero-title { font-size: 1.55rem; }
  .hero-stats .stat-divider { display: none; }
  .stat-item { padding: 0 10px; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
