/* ============================================================
   새빛드론 메인 스타일시트
   컬러: #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;
}

/* 푸터 로고 이미지 */
.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%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image .4s ease;
}
.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: 200px 24px 100px;
}
.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;
  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;
  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-item:first-child { padding-left: 0; }
.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; }

/* ===== 블로그 리뷰 카드 (review-blog-card) ===== */
.review-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.review-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,200,200,.15), 0 2px 8px rgba(0,0,0,.07);
  transform: translateY(-3px);
  border-color: var(--teal);
  text-decoration: none;
  color: inherit;
}
/* 썸네일 영역 */
.rbc-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.rbc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.review-blog-card:hover .rbc-thumb img { transform: scale(1.05); }
.rbc-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #03C75A;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
/* 본문 영역 */
.rbc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 14px;
  flex: 1;
}
.rbc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #03C75A;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .4px;
  width: fit-content;
}
.rbc-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rbc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.rbc-author { color: var(--gray-600); }
.rbc-author strong { color: var(--navy); }
.rbc-stars { font-size: .85rem; }
.rbc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}
.rbc-date { font-size: .75rem; color: var(--gray-400); }
.rbc-link {
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rbc-link i { font-size: .65rem; }

/* ===== 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); }
.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-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; }
  .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: 120px 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); }
}

/* ===== REVIEWS-PAGE-GRID (gallery.html) ===== */

/* 피처드(최신 1개) 대형 카드 */
.review-featured-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  min-height: 260px;
}
.review-featured-card:hover {
  box-shadow: 0 12px 40px rgba(0,200,200,.15), 0 3px 12px rgba(0,0,0,.07);
  transform: translateY(-3px);
  border-color: var(--teal);
  color: inherit;
  text-decoration: none;
}
/* 썸네일 */
.rfc-thumb {
  width: 42%;
  min-width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
.rfc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.review-featured-card:hover .rfc-thumb img { transform: scale(1.05); }
.rfc-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #03C75A;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  height: 100%;
}
/* 본문 */
.rfc-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  flex: 1;
  gap: 12px;
}
.rfc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rfc-newest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .4px;
}
.rfc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.rfc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rfc-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rfc-stars {
  color: #FFB800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.rfc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* 나머지 카드 그리드 */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.reviews-page-grid .review-blog-card { height: auto; }
.reviews-page-grid .review-card:not(.review-blog-card) { display: flex; flex-direction: column; }

/* 반응형 */
@media (max-width: 1024px) {
  .reviews-page-grid { grid-template-columns: repeat(2, 1fr); }
  .rfc-thumb { min-width: 200px; width: 38%; }
  .rfc-body { padding: 22px 24px; }
  .rfc-title { font-size: 1.05rem; }
}
@media (max-width: 768px) {
  /* 피처드 카드: 모바일에서 세로형으로 전환 */
  .review-featured-card { flex-direction: column; min-height: unset; }
  .rfc-thumb { width: 100%; min-width: unset; height: 220px; }
  .rbc-thumb { height: 140px; }
}
@media (max-width: 640px) {
  .reviews-page-grid { grid-template-columns: 1fr; gap: 16px; }
  .rfc-body { padding: 18px 20px; }
  .rfc-title { font-size: 1rem; }
}
