/* ============================================================
   새빛드론 메인 스타일시트
   컬러: #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;
}
/* 모바일은 영상을 재생하지 않으므로 상단바를 처음부터 표시 */
@media (max-width: 768px) {
  body.hero-video-playing .notice-top,
  body.hero-video-playing #site-header {
    transform: none; opacity: 1; 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;
}
.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; }

/* 인트로 영상(드론 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: 100vh; min-height: 100svh;
  justify-content: flex-start;
}
/* 문구 크게: 로고 아래 ~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; }
/* 낮은 화면(노트북)에서는 한 단계 작게 */
@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;
}

/* 순차 등장: 기본 숨김 → .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: var(--navy); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.why-left .section-tag { color: var(--teal); }
.section-title.white { color: #fff; }
.why-desc { color: rgba(255,255,255,.6); 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(255,255,255,.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-white:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,200,200,.08); }
.why-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: var(--transition);
}
.why-item:hover { border-color: rgba(0, 200, 200, 0.3); background: rgba(0, 200, 200, 0.06); }
.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 200, 200, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-content h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-content p { color: rgba(255,255,255,.6); 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: var(--navy);
  color: #fff;
  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(--navy-mid); transform: translateY(-2px); }
.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; }

/* ===== 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; }
  .sub-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    width: 100%;
    background: rgba(0,200,200,.04);
    border: none;
    padding: 8px 4px;
    display: none;
    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 { display: grid; }
  .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); }
}
